@ihabdevteam/core 0.71.0 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.cjs.js +12 -12
- package/dist/components.esm.css +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +2 -2
- package/dist/ihabdevteam-core.d.ts +19 -2
- package/dist/packages/core/src/components/SummaryStrip.css +4 -0
- package/dist/packages/core/src/components/SummaryStrip.d.ts +18 -1
- package/dist/packages/core/src/components/SummaryStrip.js +5 -2
- package/dist/packages/core/src/version.d.ts +1 -1
- package/dist/packages/core/src/version.js +1 -1
- package/dist/utils.cjs.js +1 -1
- package/package.json +1 -1
|
@@ -834,7 +834,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
834
834
|
\uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
|
|
835
835
|
npm install @supabase/supabase-js
|
|
836
836
|
pnpm add @supabase/supabase-js
|
|
837
|
-
`),this.name="StorageNotConfiguredError"}};function ei(e){bw(e)}function Dr(e,t){if(!e)return null;const a=zo();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function ti(e){if(!e)return!1;const t=zo();if(!t)throw new Qn("fileExists");if(t.exists)return t.exists(e);try{return await t.resolveUrl(e)!==null}catch{return!1}}async function Oo(e){if(!e)return null;const t=zo();if(!t)throw new Qn("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Er(e){const t=zo();if(!t)throw new Qn("downloadSound");return t.download(e)}function ai(){return zo()?.noiseBaseUrl??"/sounds/noise"}const oi="__ihab_core_tts_config__";function Fd(e){globalThis[oi]=e}function Fo(){return globalThis[oi]?.urlResolver??null}function ri(){return globalThis[oi]?.fallbackUrlResolver??null}const gw=new Map;function Wd(){gw.clear()}const Hd="__ihab_core_pronunciation_resolver__";function Vd(e){globalThis[Hd]=e}function ni(){return globalThis[Hd]??null}let Wo=null;const Gd=new WeakMap;function fw(){if(Wo)return Wo;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Wo=new e,Wo):null}catch{return null}}function Ho(){try{Wo?.resume()}catch{}}function Vo(e){if(!e)return null;const t=Gd.get(e);if(t)return t;const a=fw();if(!a)return null;try{const r=a.createMediaElementSource(e),n=a.createAnalyser();return n.fftSize=1024,n.smoothingTimeConstant=.6,r.connect(n),r.connect(a.destination),Gd.set(e,n),n}catch{return null}}function ii(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const n=t[r];a+=n*n}return Math.sqrt(a/t.length)}const qd="__ihab_core_image_config__";function Yd(e){globalThis[qd]=e}function Ma(){return globalThis[qd]??null}const Go="word_image_existence_map_v1";let da=null;const jr=new Map;function qo(){if(da)return da;try{const e=typeof localStorage<"u"?localStorage.getItem(Go):null;da=e?JSON.parse(e):{}}catch{da={}}return da}let si=null;function vw(){si||(si=setTimeout(()=>{si=null;try{typeof localStorage<"u"&&da&&localStorage.setItem(Go,JSON.stringify(da))}catch{}},200))}function Lr(e,t){return`${e}_${t??1}`}async function Yo(e,t){const a=qo(),r=Lr(e,t);if(r in a)return a[r];if(jr.has(r))return jr.get(r);const n=Ma();if(!n)return!1;const i=n(e,t);if(!i)return!1;const s=fetch(i,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.ok).catch(()=>!1).then(c=>(a[r]=c,vw(),jr.delete(r),c));return jr.set(r,s),s}function li(e,t){const a=qo(),r=Lr(e,t);return r in a?a[r]:void 0}async function Ud(e,t={}){const{force:a=!1,concurrency:r=16,onProgress:n}=t,i=qo(),s=a?Array.from(new Set(e)):Array.from(new Set(e)).filter(d=>!(Lr(d)in i));let c=0;if(s.length>0){let d=0;const u=Array.from({length:Math.min(r,s.length)},async()=>{for(;d<s.length;){const m=d++,h=s[m],p=Lr(h);if(!a&&p in i){c++,n?.(c,s.length);continue}try{await Yo(h)}catch{}c++,n?.(c,s.length)}});await Promise.all(u)}try{typeof localStorage<"u"&&da&&localStorage.setItem(Go,JSON.stringify(da))}catch{}return{checked:s.length,cached:Object.keys(i).length,total:e.length}}function Mr(){const e=qo(),t=Object.values(e);return t.length===0?null:{total:t.length,exists:t.filter(Boolean).length}}function Kd(e){const t=qo();Object.assign(t,e);try{typeof localStorage<"u"&&localStorage.setItem(Go,JSON.stringify(t))}catch{}}function ci(){da={};try{typeof localStorage<"u"&&localStorage.removeItem(Go)}catch{}}const Ze=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],dt=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],gt=["","\u3131","\u3132","\u3133","\u3134","\u3135","\u3136","\u3137","\u3139","\u313A","\u313B","\u313C","\u313D","\u313E","\u313F","\u3140","\u3141","\u3142","\u3144","\u3145","\u3146","\u3147","\u3148","\u314A","\u314B","\u314C","\u314D","\u314E"];function Me(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function di(){const e=new Map;return t=>{let a=e.get(t);return a||(a=[...t].map(r=>Me(r)),e.set(t,a)),a}}function ua(e,t,a=0){return String.fromCharCode(44032+(e*21+t)*28+a)}function ui(e,t){if(!e||!t||e===t||e.length!==t.length)return"random";let a=0,r=null;for(let n=0;n<e.length;n++){const i=Me(e[n]),s=Me(t[n]);if(!i||!s)return"random";if(i.cho===s.cho&&i.jung===s.jung&&i.jong===s.jong)continue;a++;const c=i.cho!==s.cho,d=i.jung!==s.jung,u=i.jong!==s.jong;(c?1:0)+(d?1:0)+(u?1:0)>1?r="multi":c?r="cho":d?r="jung":r="jong"}return a!==1?"random":r==="cho"?"cho":r==="jung"?"jung":r==="jong"?"jong":"random"}function pi(e){const t=Me(e[0]||"");return t?Ze[t.cho]:""}function hi(e){return[...e].map(t=>{const a=Me(t);return a?Ze[a.cho]:t}).join("")}function mi(e){return!!e&&[...e].every(t=>Ze.includes(t))}function Zd(e,t){return t?mi(t)?hi(e).includes(t):e.toLowerCase().includes(t.toLowerCase()):!0}function ho(e,t){if(!t)return!0;const a=[...t],r=c=>Ze.includes(c),n=c=>dt.includes(c),i=a.map(c=>r(c)?"cho":n(c)?"jung":Me(c)?"syl":"other");if(i.includes("other"))return e.includes(t);const s=[...e];for(let c=0;c+a.length<=s.length;c++){let d=!0;for(let u=0;u<a.length;u++){const m=s[c+u],h=i[u];if(h==="cho"){if(pi(m)!==a[u]){d=!1;break}}else if(h==="jung"){const p=Me(m);if(!p||dt[p.jung]!==a[u]){d=!1;break}}else{const p=Me(a[u]);if(p&&p.jong===0){const g=Me(m);if(!g||g.cho!==p.cho||g.jung!==p.jung){d=!1;break}}else if(m!==a[u]){d=!1;break}}}if(d)return!0}return!1}const mo={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]},Xd=Object.fromEntries(Object.entries(mo).map(([e,t])=>[t.join(""),gt[Number(e)]]));function yw(e,t){if(!e||!t)return!1;for(const a of e){const r=Me(a);if(r){if(Ze[r.cho]===t)return!0;if(r.jong>0){if(gt[r.jong]===t)return!0;const n=mo[r.jong];if(n&&n.includes(t))return!0}}}return!1}function Jd(e,t){if(!e||!t)return!1;for(const a of e){const r=Me(a);if(r&&Ze[r.cho]===t)return!0}return!1}function Qd(e,t){if(!e||!t)return!1;for(const a of e){const r=Me(a);if(r&&dt[r.jung]===t)return!0}return!1}function eu(e,t){if(!e||!t)return!1;for(const a of e){const r=Me(a);if(!r||r.jong<=0)continue;if(gt[r.jong]===t)return!0;const n=mo[r.jong];if(n&&n.includes(t))return!0}return!1}function bo(e){if(!e)return 0;let t=0;for(const a of e)Me(a)&&t++;return t}function bi(e){if(!e)return!1;let t=!1;for(const a of e){const r=Me(a);if(r&&(t=!0,r.jong>0))return!1}return t}function xw(e,t){if(e.jong<=0)return!1;if(t.includes(gt[e.jong]))return!0;const a=mo[e.jong];return!!a&&a.some(r=>t.includes(r))}function gi(e,t,a){if(!e)return!1;const r=[...e],n=i=>{const s=Me(r[i]);if(!s||t.cho&&!t.cho.includes(Ze[s.cho])||t.jung&&!t.jung.includes(dt[s.jung]))return!1;if(t.jongNone){if(s.jong>0)return!1}else if(t.jong&&!xw(s,t.jong))return!1;return!0};if(a==="head")return n(0);if(a==="tail")return n(r.length-1);if(a==="mid"){for(let i=1;i<r.length-1;i++)if(n(i))return!0;return!1}for(let i=0;i<r.length;i++)if(n(i))return!0;return!1}function fi(e){return e.includes(",")||e.includes("_")}function tu(e){if(e==="")return[{kind:"any"}];if(e.includes("_")){const t=[...e];if(t.length>4)return[{kind:"invalid"}];const a=t[0]??"_",r=t[1]??"_";let n=t.slice(2).join("");if(n.length===2){const i=Xd[n];if(!i)return[{kind:"invalid"}];n=i}return[{kind:"template",cho:a,jung:r,jong:n||"_"}]}return[...e].map(t=>Me(t)?{kind:"syllable",ch:t}:Ze.includes(t)?{kind:"cho",jamo:t}:dt.includes(t)?{kind:"jung",jamo:t}:{kind:"invalid"})}function Cw(e,t){switch(t.kind){case"any":return!0;case"syllable":{const a=Me(t.ch);if(!a)return e===t.ch;if(a.jong===0){const r=Me(e);return!!r&&r.cho===a.cho&&r.jung===a.jung}return e===t.ch}case"cho":{const a=Me(e);return!!a&&Ze[a.cho]===t.jamo}case"jung":{const a=Me(e);return!!a&&dt[a.jung]===t.jamo}case"template":{const a=Me(e);return!(!a||t.cho!=="_"&&Ze[a.cho]!==t.cho||t.jung!=="_"&&dt[a.jung]!==t.jung||t.jong!=="_"&>[a.jong]!==t.jong)}case"invalid":return!1}}function vi(e,t){const a=t.split(",").flatMap(n=>tu(n.trim()));if(a.length===0)return!0;const r=[...e];if(r.length<a.length)return!1;for(let n=0;n+a.length<=r.length;n++)if(a.every((i,s)=>Cw(r[n+s],i)))return!0;return!1}function au(e){const t=e.split(",").flatMap(i=>tu(i.trim())),a=new Set,r=new Set,n=new Set;for(const i of t)switch(i.kind){case"cho":a.add(i.jamo);break;case"jung":r.add(i.jamo);break;case"template":i.cho!=="_"&&a.add(i.cho),i.jung!=="_"&&r.add(i.jung),i.jong!=="_"&&n.add(i.jong);break;case"syllable":{const s=Me(i.ch);s&&(a.add(Ze[s.cho]),r.add(dt[s.jung]),s.jong!==0&&n.add(gt[s.jong]));break}}return a.size===0&&r.size===0&&n.size===0?null:{cho:a.size?[...a]:null,jung:r.size?[...r]:null,jong:n.size?[...n]:null}}function _w(e){return!!Me(e)||Ze.includes(e)||dt.includes(e)}function ou(e){const t=e.trim();if(!t)return{ok:!0};for(const a of t.split(",")){const r=a.trim();if(r!==""){if(r.includes("_")){const n=[...r];if(n.length>4)return{ok:!1};const i=n[0],s=n[1],c=n.slice(2).join(""),d=i===void 0||i==="_"||Ze.includes(i),u=s===void 0||s==="_"||dt.includes(s),m=c===""||c==="_"||gt.filter(Boolean).includes(c)||!!Xd[c];if(d&&u&&m)continue;return{ok:!1}}if(![...r].every(_w))return{ok:!1}}}return{ok:!0}}const ww={cho:Ze.length,jung:dt.length,jong:gt.length};function kw(e,t,a,r,n=1/0){if(!e||a<1)return[];const i=[...e].map(h=>Me(h));if(i.some(h=>!h))return[];const s=i,c=s.length;if(a>c)return[];const d=ww[t],u=new Set,m=[];(function h(p,g){if(g.length===a){m.push([...g]);return}for(let f=p;f<c;f++)g.push(f),h(f+1,g),g.pop()})(0,[]);for(const h of m)if((function p(g,f){if(u.size>=n)return;if(g===h.length){const y=f.map(_=>ua(_.cho,_.jung,_.jong)).join("");y!==e&&r.has(y)&&u.add(y);return}const b=h[g],v=s[b][t];for(let y=0;y<d;y++){if(y===v)continue;const _=f.slice();if(_[b]={...f[b],[t]:y},p(g+1,_),u.size>=n)return}})(0,s),u.size>=n)break;return[...u]}function Sw(e,t){if(!e||!t||e.length!==t.length)return-1;let a=0;for(let r=0;r<e.length;r++){const n=Me(e[r]),i=Me(t[r]);if(!n||!i)return-1;n.cho!==i.cho&&a++,n.jung!==i.jung&&a++,n.jong!==i.jong&&a++}return a}function ru(e,t){const a=t.trim();if(!a||!/[^\s,_]/.test(a))return e;if(fi(a))return e.filter(s=>vi(s.word,a));const r=e.filter(s=>ho(s.word,a)||ho(s.pronunciation??"",a)),n=[...a].length,i=s=>!!s&&ho(s.slice(0,n),a);return r.map(s=>({w:s,rank:i(s.word)||i(s.pronunciation??"")?0:1})).sort((s,c)=>s.rank-c.rank).map(s=>s.w)}const yi="word_pair_index_v2",xi="word_pair_index_sig_v2";let pa=null,Uo=null;function nu(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(yi),t=localStorage.getItem(xi);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function Aw(e,t){try{if(typeof localStorage>"u")return;localStorage.setItem(yi,JSON.stringify(e)),localStorage.setItem(xi,t)}catch{}}function Tw(e){const t=e.map(r=>`${r.word}|${r.pron??""}`).sort();let a=0;for(const r of t)for(let n=0;n<r.length;n++)a=(a<<5)-a+r.charCodeAt(n)|0;return`${t.length}-${a}`}async function Bw(e,t){const a=new Set,r=[];for(const u of e){if(!u.word||a.has(u.word))continue;const m=u.pron||u.word,h=Array.from(m).map(Me);h.some(p=>p===null)||h.length===Array.from(u.word).length&&(a.add(u.word),r.push({word:u.word,syls:h}))}const n={},i=r.length,s=new Map;for(const u of r){const m=u.syls.length;s.has(m)||s.set(m,[]),s.get(m).push(u)}let c=0;const d=["cho","jung","jong"];for(const u of s.values()){const m=u[0].syls.length;for(let h=0;h<m;h++)for(const p of d){const g=new Map;for(const f of u){let b="";for(let y=0;y<m;y++){y>0&&(b+="~");const _=f.syls[y];y===h?p==="cho"?b+=`*:${_.jung}:${_.jong}`:p==="jung"?b+=`${_.cho}:*:${_.jong}`:b+=`${_.cho}:${_.jung}:*`:b+=`${_.cho}:${_.jung}:${_.jong}`}let v=g.get(b);v||(v=[],g.set(b,v)),v.push(f)}for(const f of g.values())if(!(f.length<2))for(let b=0;b<f.length;b++){const v=f[b];for(let y=b+1;y<f.length;y++){const _=f[y];v.syls[h][p]!==_.syls[h][p]&&(n[v.word]||(n[v.word]={cho:[],jung:[],jong:[]}),n[_.word]||(n[_.word]={cho:[],jung:[],jong:[]}),n[v.word][p].push(_.word),n[_.word][p].push(v.word))}}}c+=u.length,t?.(c,i),await new Promise(h=>setTimeout(h,0))}return i>0&&t?.(i,i),n}async function iu(e,t={}){const a=Tw(e);if(!t.force){if(pa&&Uo===a)return pa;const n=nu();if(n&&n.sig===a)return pa=n.index,Uo=a,pa}const r=await Bw(e,t.onProgress);return pa=r,Uo=a,Aw(r,a),r}function Ka(){if(pa)return pa;const e=nu();return e?(pa=e.index,Uo=e.sig,pa):null}function Ci(){pa=null,Uo=null;try{typeof localStorage<"u"&&(localStorage.removeItem(yi),localStorage.removeItem(xi))}catch{}}const _i={cho:Ze,jung:dt,jong:gt},ft=e=>Array.isArray(e)?e.length>0:!!e;function Ko(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){const r=e[a],n=t[a];if(!(!r||!n)&&(r.cho!==n.cho&&Ze[r.cho]==="\u3147"!=(Ze[n.cho]==="\u3147")||r.jong!==n.jong&&r.jong===0!=(n.jong===0)))return!0}return!1}function wi(e,t,a){const r=a.pronOf(e),n=a.decompOf,i=a.sameStructureOnly&&n?n(r):null,s=[];for(const c of t)c!==e&&(a.okSet&&!a.okSet.has(c)||a.pronOf(c)!==r&&(i&&n&&Ko(i,n(a.pronOf(c)))||s.push(c)));return s}function Pr(e,t,a){const r=t?.[e];if(!r)return[];const n=a.kind?r[a.kind]??[]:[...r.cho??[],...r.jung??[],...r.jong??[]];return wi(e,n,a)}function ki(e,t,a,r,n,i,s){const c=["cho","jung","jong"].filter(p=>ft(e[p])),d={};for(const p of c){const g=e[p];d[p]=new Set(Array.isArray(g)?g:[g])}const u=n==="pron",m=new Map;for(const p of t){const g=a(i(p));if(g.some(y=>!y))continue;let f=g;if(!u&&(f=a(p),f.length!==g.length||f.some(y=>!y)))continue;const b=g.length,v=m.get(b);v?v.push({w:p,dPron:g,dPos:f}):m.set(b,[{w:p,dPron:g,dPos:f}])}const h=new Map;for(const[p,g]of m){const f=new Map,b=(v,y)=>{const _=v.dPos[y];return _!=null&&c.every(x=>d[x].has(_i[x][_[x]]))};for(const v of g){let y;if(s==="head")y=b(v,0)?0:-1;else if(s==="tail")y=b(v,p-1)?p-1:-1;else if(s==="mid"){y=-1;for(let x=1;x<p-1;x++)if(b(v,x)){y=x;break}}else y=v.dPos.findIndex(x=>x!=null&&c.every(C=>d[C].has(_i[C][x[C]])));if(y<0)continue;const _=f.get(y);_?_.push(v):f.set(y,[v])}for(const[v,y]of f){const _=new Set(c.map(k=>v+":"+k)),x=k=>{let w="";for(let S=0;S<p;S++){const j=k[S];for(const A of["cho","jung","jong"])w+=(_.has(S+":"+A)?"*":j[A])+"."}return w},C=new Map;for(const k of g){const w=x(k.dPron),S=C.get(w);S?S.push(k):C.set(w,[k])}for(const k of y){const w=C.get(x(k.dPron))??[],S=[];for(const j of w){if(j.w===k.w)continue;let A=!0;for(const B of c){const W=k.dPron[v][B],M=j.dPron[v][B];if(M===W){A=!1;break}if(u&&d[B].has(_i[B][M])){A=!1;break}}A&&(r&&Ko(k.dPron,j.dPron)||S.push(j.w))}h.set(k.w,S)}}}return h}const Rr=0,su=1,Za=2,Si=3,Nw=4,$r=5,Ai=6,Ir=7,Dw=8,lu=9,Zo=10,Ew=11,Xo=12,jw=13,Jo=14,zr=15,Or=16,Qo=17,Lw=18,ha=0,_a=1,Mw=3,Xa=4,Ti=5,Bi=6,ma=7,At=8,cu=9,du=10,Fr=11,uu=12,Ni=13,Wr=15,Hr=16,wa=17,pu=18,Di=21,hu=27,Pw=20,Rw={1:Rr,2:su,4:Za,7:Si,8:$r,16:Ai,17:Ir,19:lu,20:Zo,22:Xo,23:Jo,24:zr,25:Or,26:Qo},$w={[Mw]:[_a,Zo],[Ti]:[Xa,Xo],[cu]:[At,Rr],[du]:[At,Ai],[Fr]:[At,Ir],[uu]:[At,Zo],[Ni]:[At,Or],14:[At,Qo],[pu]:[wa,Zo]},Iw={[Bi]:Za,[Wr]:$r},Ei={2:_a,24:_a,3:_a,9:_a,5:Xa,6:Xa,19:ma,20:ma,22:ma,23:ma,25:ma,27:ma,11:At,12:At,13:At,15:At,10:Hr,14:wa,18:wa,26:wa},mu={[Rr]:zr,[Si]:Or,[Ir]:Qo,[Xo]:Jo},bu={[Rr]:su,[Si]:Nw,[Ir]:Dw,[lu]:Zo,[Xo]:jw},zw=new Set([Ti,du,Fr,uu,Ni,Wr,pu]),Ow=new Set(["\uBC1F"]);function gu(e){const t=(e??"").trim();if(!t)return"";const a=[...t],r=a.map(Me);if(r.some(i=>i===null))return t;const n=r;for(let i=0;i<n.length;i++){const s=n[i],c=n[i+1],d=s.jong;if(!c){s.jong=Ei[s.jong]??s.jong;break}if(s.jong===ha)continue;if(c.cho===Ew){if(c.jung===Pw){if(s.jong===ma){s.jong=ha,c.cho=Xo;continue}if(s.jong===25){s.jong=ha,c.cho=Jo;continue}if(s.jong===Ni){s.jong=At,c.cho=Jo;continue}}if(s.jong===hu){s.jong=ha;continue}const m=Iw[s.jong];if(m!==void 0){s.jong=ha,c.cho=m;continue}const h=$w[s.jong];if(h){s.jong=h[0],c.cho=h[1];continue}const p=Rw[s.jong];p!==void 0&&(s.jong=ha,c.cho=p);continue}if((s.jong===hu||s.jong===Bi||s.jong===Wr)&&mu[c.cho]!==void 0){c.cho=mu[c.cho],s.jong=s.jong===Bi?Xa:s.jong===Wr?At:ha;continue}if(c.cho===Lw){if(s.jong===Ti){s.jong=Xa,c.cho=Jo;continue}if(s.jong===cu){s.jong=At,c.cho=zr;continue}if(s.jong===Fr){s.jong=At,c.cho=Qo;continue}const m=Ei[s.jong]??s.jong;if(m===_a){s.jong=ha,c.cho=zr;continue}if(m===ma){s.jong=ha,c.cho=Or;continue}if(m===wa){s.jong=ha,c.cho=Qo;continue}}let u=Ei[s.jong]??s.jong;d===Fr&&Ow.has(a[i])&&(u=wa),s.jong=u,bu[c.cho]!==void 0&&(u===_a||u===ma||u===wa||zw.has(d))&&(c.cho=bu[c.cho]),(c.cho===Za||c.cho===Ai)&&(s.jong===_a?s.jong=Di:s.jong===ma?s.jong=Xa:s.jong===wa&&(s.jong=Hr)),c.cho===$r?s.jong===Xa?s.jong=At:s.jong===Hr||s.jong===Di?c.cho=Za:s.jong===_a?(s.jong=Di,c.cho=Za):s.jong===wa&&(s.jong=Hr,c.cho=Za):s.jong===At&&c.cho===Za&&(c.cho=$r)}return n.map(i=>ua(i.cho,i.jung,i.jong)).join("")}const Fw={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"},Ww={\u314F:{nucleus:"\u314F"},\u3151:{glide:"j",nucleus:"\u314F"},\u3153:{nucleus:"\u3153"},\u3155:{glide:"j",nucleus:"\u3153"},\u3157:{nucleus:"\u3157"},\u315B:{glide:"j",nucleus:"\u3157"},\u315C:{nucleus:"\u315C"},\u3160:{glide:"j",nucleus:"\u315C"},\u3161:{nucleus:"\u3161"},\u3163:{nucleus:"\u3163"},\u3150:{nucleus:"\u3154/\u3150"},\u3152:{glide:"j",nucleus:"\u3154/\u3150"},\u3154:{nucleus:"\u3154/\u3150"},\u3156:{glide:"j",nucleus:"\u3154/\u3150"},\u3158:{glide:"w",nucleus:"\u314F"},\u3159:{glide:"w",nucleus:"\u3154/\u3150"},\u315A:{glide:"w",nucleus:"\u3154/\u3150"},\u315D:{glide:"w",nucleus:"\u3153"},\u315E:{glide:"w",nucleus:"\u3154/\u3150"},\u315F:{glide:"w",nucleus:"\u3163"},\u3162:{glide:"\u0270",nucleus:"\u3163"}};function Vr(e){return Fw[e]??e}const go=/[ㄱ-ㅎ]/,Hw=/[ㅏ-ㅣ]/;function er(e){for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||go.test(a)||Hw.test(a))return a}return null}function ji(e){const t=er(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":go.test(t)?"\uC774":"\uAC00"}function Li(e){return`${e}${ji(e)}`}function Mi(e){const t=er(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":go.test(t)?"\uC744":"\uB97C"}function Pi(e){return`${e}${Mi(e)}`}function Ri(e){const t=er(e);if(!t)return"\uB294";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC740":"\uB294":go.test(t)?"\uC740":"\uB294"}function fu(e){return`${e}${Ri(e)}`}function $i(e){const t=er(e);if(!t)return"\uC640";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uACFC":"\uC640":go.test(t)?"\uACFC":"\uC640"}function vu(e){return`${e}${$i(e)}`}function Ii(e){const t=er(e);if(!t)return"\uB85C";const a=t.charCodeAt(0);if(a>=44032&&a<=55203){const r=(a-44032)%28;return r===0||r===8?"\uB85C":"\uC73C\uB85C"}return t==="\u3139"?"\uB85C":go.test(t)?"\uC73C\uB85C":"\uB85C"}function yu(e){return`${e}${Ii(e)}`}function zi(e,t,a){const r=e.slice(),[n]=r.splice(t,1);return r.splice(a,0,n),r}function Ge(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const n=Math.floor(t()*(r+1));[a[r],a[n]]=[a[n],a[r]]}return a}function Jt(e,t,a=Math.random){return!Array.isArray(e)||e.length===0||t<=0?[]:t>=e.length?Ge(e,a):Ge(e,a).slice(0,t)}const fo={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}};function Vw(e){const t=e?fo[e]?.group:void 0;return t==="synthesis"||t==="deletion"||t==="substitution"?t:null}const Gw=Ze.indexOf("\u3147"),Gr={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==Gw},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0}},qw=new Set([]);function xu(e){return e in Gr}function Cu(e,t){const a=Gr[e];if(!a)return!0;const r=[...t];if(r.length!==a.syllables)return!1;const n=Me(r[0]);return!!n&&a.syllable(n)}function _u(e){return qw.has(e)}function Yw(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uC640":"\uACFC"}function Oi(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uB97C":"\uC744"}function wu(e){const t=e.charCodeAt((e.length||1)-1)||0;if(t<44032||t>55203)return"\uB85C";const a=(t-44032)%28;return a===0||a===8?"\uB85C":"\uC73C\uB85C"}function ku(e){const t=e.charAt((e.length||1)-1),a=t.charCodeAt(0)||0;return a>=44032&&a<=55203?(a-44032)%28===0?"\uAC00":"\uC774":/[ㄱ-ㅎ]/.test(t)?"\uC774":"\uAC00"}const Su={\u3131:"\uAE30\uC5ED",\u3132:"\uC30D\uAE30\uC5ED",\u3134:"\uB2C8\uC740",\u3137:"\uB514\uADFF",\u3138:"\uC30D\uB514\uADFF",\u3139:"\uB9AC\uC744",\u3141:"\uBBF8\uC74C",\u3142:"\uBE44\uC74D",\u3143:"\uC30D\uBE44\uC74D",\u3145:"\uC2DC\uC637",\u3146:"\uC30D\uC2DC\uC637",\u3147:"\uC774\uC751",\u3148:"\uC9C0\uC752",\u3149:"\uC30D\uC9C0\uC752",\u314A:"\uCE58\uC753",\u314B:"\uD0A4\uC754",\u314C:"\uD2F0\uC755",\u314D:"\uD53C\uC756",\u314E:"\uD788\uC757",\u3133:"\uAE30\uC5ED\uC2DC\uC637",\u3135:"\uB2C8\uC740\uC9C0\uC752",\u3136:"\uB2C8\uC740\uD788\uC757",\u313A:"\uB9AC\uC744\uAE30\uC5ED",\u313B:"\uB9AC\uC744\uBBF8\uC74C",\u313C:"\uB9AC\uC744\uBE44\uC74D",\u313D:"\uB9AC\uC744\uC2DC\uC637",\u313E:"\uB9AC\uC744\uD2F0\uC755",\u313F:"\uB9AC\uC744\uD53C\uC756",\u3140:"\uB9AC\uC744\uD788\uC757",\u3144:"\uBE44\uC74D\uC2DC\uC637",\u314F:"\uC544",\u3150:"\uC560",\u3151:"\uC57C",\u3152:"\uC598",\u3153:"\uC5B4",\u3154:"\uC5D0",\u3155:"\uC5EC",\u3156:"\uC608",\u3157:"\uC624",\u3158:"\uC640",\u3159:"\uC65C",\u315A:"\uC678",\u315B:"\uC694",\u315C:"\uC6B0",\u315D:"\uC6CC",\u315E:"\uC6E8",\u315F:"\uC704",\u3160:"\uC720",\u3161:"\uC73C",\u3162:"\uC758",\u3163:"\uC774"};function Au(e){if([...e].length!==1)return[e];const t=Me(e);if(!t)return[e];const a=[Ze[t.cho],dt[t.jung]];return t.jong!==0&&a.push(gt[t.jong]),a}function Fi(e,t=!1){const a=e.filter(Boolean);if(a.length<2)return"";const r=c=>Su[c]??c,n=a.slice(0,-1).map(c=>`"${c}"${Yw(r(c))}`).join(" "),i=a[a.length-1],s=`"${i}"${Oi(r(i))}`;return`${n} ${s} \uD569\uCE58\uBA74 \uC5B4\uB5A4 ${t?"\uC18C\uB9AC":"\uB2E8\uC5B4"}\uAC00 \uB418\uB098\uC694?`}function Uw(e,t){return Fi(t,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}function Kw(e,t){const a=String(t?.word??t?.original??""),r=String(t?.changedFrom??""),n=String(t?.changedTo??"");return e==="CHANGE_1_PHONEME_IN_1SYLL"?`"${a}"${Oi(a)} "${n}"${wu(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${a}"\uC5D0\uC11C "${r}"${Oi(r)} "${n}"${wu(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function Zw(e,t){const a=String(t?.word??t?.original??t?.base??""),r=String(t?.dropped??"");if(e==="DROP_FINAL_CONSONANT_FROM_1SYLL")return`"${a}"\uC5D0\uC11C \uBC1B\uCE68\uC774 \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`;if(e==="REMOVE_CONSONANT_AND_IDENTIFY_PHONEME"){const n=String(t?.missingConsonant??"");return`"${a}"\uC5D0\uC11C "${n}"${ku(n)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${a}"\uC5D0\uC11C "${r}"${ku(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Tu(e,t,a){switch(Vw(e)){case"synthesis":return Uw(e,a);case"substitution":return Kw(e,t);case"deletion":return Zw(e,t);default:return""}}function Bu(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(t,a,r)=>{const n=Su[a];if(!n)return t;if(!r)return`"${n}"`;const i=(n.charCodeAt(n.length-1)-44032)%28,s=i!==0;let c=r;return r==="\uC640"||r==="\uACFC"?c=s?"\uACFC":"\uC640":r==="\uC744"||r==="\uB97C"?c=s?"\uC744":"\uB97C":r==="\uC774"||r==="\uAC00"?c=s?"\uC774":"\uAC00":r==="\uC740"||r==="\uB294"?c=s?"\uC740":"\uB294":(r==="\uC73C\uB85C"||r==="\uB85C")&&(c=i===0||i===8?"\uB85C":"\uC73C\uB85C"),`"${n}"${c}`})}const Xw=e=>e==null?[]:Array.isArray(e)?e:[e];function Wi(e){if([...e].length!==1)return"";const t=Me(e);if(!t)return"";const a=Vr(gt[t.jong]),r=a===""?0:gt.indexOf(a);return ua(t.cho,t.jung,r<0?0:r)}function qr(e,t){return t.get(e)||Wi(e)||e}function tr(e){return e?ft(e.cho)?"cho":ft(e.jung)?"jung":ft(e.jong)?"jong":null:null}function Pa(e,t){const a=(r,n)=>!ft(r)||Xw(r).includes(n);return a(t.cho,Ze[e.cho])&&a(t.jung,dt[e.jung])&&a(t.jong,gt[e.jong])}function Ja(e,t,a){const r=[...e];if(a!=="pron")return r.map(i=>Me(i));const n=[...t.get(e)||e];return n.length!==r.length?r.map(i=>Me(i)):n.map(i=>Me(i))}function Qa(e,t,a,r,n){const i=t==="cho"?Ze:t==="jung"?dt:gt,s=e[t],c=[],d=new Set([qr(a,n)]),u=Ge(i.map((m,h)=>h).filter(m=>m!==s&&(t!=="cho"||i[m]!=="\u3147")&&(t!=="jong"||m!==0)));for(const m of u){if(c.length>=r)break;const h=t==="cho"?ua(m,e.jung,e.jong):t==="jung"?ua(e.cho,m,e.jong):ua(e.cho,e.jung,m),p=qr(h,n);d.has(p)||(d.add(p),c.push(h))}return c}function Hi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==2)return null;const c=s.map(h=>Me(h));if(c.some(h=>!h))return null;const d=Ja(e,a,r);if(d.some(h=>!h))return null;const u=tr(t);let m=u&&t?d.map((h,p)=>Pa(h,t)?p:-1).filter(h=>h>=0):[0,1];if(i!=null&&(m=m.filter(h=>h!==i)),!m.length)return null;for(const h of Ge(m)){const p=s[h];if(!n.has(p))continue;const g=Qa(c[h],u??"cho",p,40,a),f=[];for(const b of g)if(b!==p&&n.has(b)&&!f.includes(b)&&f.push(b),f.length>=2)break;if(!(f.length<2))return{question:e,distractors:[p,...f]}}return null}function Vi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==3)return null;const c=s.map(h=>Me(h));if(c.some(h=>!h))return null;const d=Ja(e,a,r);if(d.some(h=>!h))return null;const u=tr(t),m=u&&t?d.map((h,p)=>Pa(h,t)?p:-1).filter(h=>h>=0):[0,1,2];if(!m.length)return null;for(const h of Ge(m))for(const p of Ge([0,1,2].filter(g=>g!==h&&(i==null||g===i)))){const g=[0,1,2].filter(_=>_!==p),f=g.map(_=>s[_]).join("");if(!n.has(f))continue;const b=g.indexOf(h),v=Qa(c[h],u??"cho",s[h],40,a),y=[];for(const _ of v){const x=g.map(k=>s[k]);x[b]=_;const C=x.join("");if(C!==f&&n.has(C)&&!y.includes(C)&&y.push(C),y.length>=2)break}if(!(y.length<2))return{question:e,distractors:[f,...y]}}return null}function Gi(e,t,a,r,n,i=null){const s=[...e],c=s.length;if(c<2)return null;const d=[];for(let m=1;m<=c-1;m++)d.push({remain:s.slice(0,m).join(""),dropped:s.slice(m).join(""),droppedEnd:1}),d.push({remain:s.slice(c-m).join(""),dropped:s.slice(0,c-m).join(""),droppedEnd:0});const u=tr(t);for(const{remain:m,dropped:h,droppedEnd:p}of Ge(d)){if(i!=null&&p!==i||m===e||!n.has(m)||!n.has(h))continue;const g=[...m],f=g.map(y=>Me(y));if(f.some(y=>!y))continue;const b=Ja(m,a,r);if(b.some(y=>!y))continue;const v=u&&t?b.map((y,_)=>Pa(y,t)?_:-1).filter(y=>y>=0):g.map((y,_)=>_);if(v.length)for(const y of Ge(v)){const _=Qa(f[y],u??"cho",g[y],40,a),x=[];for(const C of _){const k=[...g];k[y]=C;const w=k.join("");if(w!==m&&n.has(w)&&!x.includes(w)&&x.push(w),x.length>=2)break}if(x.length>=2)return{question:e,distractors:[m,...x]}}}return null}function qi(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=Me(a.get(e)||e);if(!s||s.jong===0)return null;const c=ua(s.cho,s.jung,0),d=Qa({cho:s.cho,jung:s.jung,jong:0},"cho",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}const Yi=Ze.indexOf("\u3147");function Ui(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=Me(a.get(e)||e);if(!s||s.jong!==0||s.cho===Yi)return null;const c=ua(Yi,s.jung,0),d=Qa({cho:Yi,jung:s.jung,jong:0},"jung",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}function Ki(e){const t=new Map;for(const a of e){const r=[...a],n=r.length;if(!(n<2||n>3))for(let i=0;i<n;i++){let s=n+"|"+i+"|";for(let d=0;d<n;d++)s+=d===i?"*":r[d];const c=t.get(s);c?c.push(a):t.set(s,[a])}}return t}function Zi(e,t,a,r,n,i=null,s=null,c=2){const d=[...e],u=d.length;if(u<2||u>3)return null;const m=d.map(_=>Me(_));if(m.some(_=>!_))return null;const h=Ja(e,a,r);if(h.some(_=>!_))return null;const p=_=>a.get(_)??_,g=p(e),f=!!t&&(ft(t.cho)||ft(t.jung)||ft(t.jong)),b=!!s&&(ft(s.cho)||ft(s.jung)||ft(s.jong)),v=_=>{let x=u+"|"+_+"|";for(let C=0;C<u;C++)x+=C===_?"*":d[C];return x};let y;if(i!=null){if(i>=u||f&&!Pa(h[i],t))return null;y=[i]}else f?y=h.map((_,x)=>Pa(_,t)?x:-1).filter(_=>_>=0):y=Array.from({length:u},(_,x)=>x);for(const _ of Ge(y)){const x=n.get(v(_))??[],C=[],k=[];for(const B of x){if(B===e)continue;const W=[...B].map(E=>Me(E)),M=m[_],T=W[_];if(!M||!T)continue;let $=0;if(M.cho!==T.cho&&$++,M.jung!==T.jung&&$++,M.jong!==T.jong&&$++,!($<c||p(B)===g))if(b){const E=Ja(B,a,r)[_];E&&Pa(E,s)?C.push(B):k.push(B)}else C.push(B)}if(!C.length)continue;const w=Ge(C)[0],S=[],j=new Set([g,p(w)]),A=b?k:C.filter(B=>B!==w);for(const B of Ge(A)){const W=p(B);if(!j.has(W)&&(j.add(W),S.push(B),S.length>=2))break}if(!b&&S.length<2)for(const B of Ge(x)){if(B===e||B===w)continue;const W=p(B);if(!j.has(W)&&(j.add(W),S.push(B),S.length>=2))break}if(!(S.length<2))return{question:e,distractors:[w,...S]}}return null}function Yr(e,t="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"){if(e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return t}const Xi="\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.";function Ji(e){return e?/failed to fetch|load failed|networkerror|network request failed|fetcherror/i.test(e):!1}function Nu(e){return Ji(e)?Xi:e}function Du(e,t){return e==="id"?void 0:`${e}|${t?"asc":"desc"}`}function Eu(e){const[t,a]=e.split("|");return{key:t,asc:a==="asc"}}function ju(e){let t=e==null?"":String(e);return/^[=+\-@\t\r]/.test(t)&&(t=" "+t),/[",\n\r]/.test(t)?`"${t.replaceAll('"','""')}"`:t}function Lu(e,t){const a=new Blob(["\uFEFF"+t],{type:"text/csv;charset=utf-8"}),r=URL.createObjectURL(a),n=document.createElement("a");n.href=r,n.download=e,n.click(),URL.revokeObjectURL(r)}const Mu="__ihab_core_word_pool__";function Jw(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function Pu(e,t){const a=new Map;for(const n of e)a.set(n.word,n);const r={entries:e,pairIndex:t??null,byWord:a};globalThis[Mu]=r,Jw()}function vo(){return globalThis[Mu]??null}const yo=globalThis;function Qi(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function Ru(e){yo.__ihabTrainingTimeLogger=e}function es(e){Qi("time",()=>yo.__ihabTrainingTimeLogger?.(e))}function $u(e){yo.__ihabTrainingCompletionLogger=e}function ts(e){Qi("completion",()=>yo.__ihabTrainingCompletionLogger?.(e))}function Iu(e){yo.__ihabCrosswordLogger=e}function zu(e){Qi("crossword",()=>yo.__ihabCrosswordLogger?.(e))}function Qt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function as(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function os(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Qt(r.contextCode)??Qt(r.itemId)??Qt(r.itemCode)??Qt(r.id),question:Qt(r.question)??Qt(r.sentence)??Qt(r.word)??Qt(r.targetSyllable),answer:Qt(r.answer),selected:Qt(r.selectedText)??Qt(r.selected),correct:as(r)}}):[]}function Ou(e){return e.filter(t=>t.correct===!1)}let Fu=null,Wu=null,Hu=null;function Vu(e){Fu=e}function Gu(e){Wu=e}function qu(e){Hu=e}async function Yu(e,t){try{return await Fu?.(e,t)??null}catch{return null}}async function Uu(){try{return await Wu?.()??null}catch{return null}}async function Ku(e,t){try{return await Hu?.(e,t)??null}catch{return null}}const rs=globalThis;function Zu(e){rs.__ihabNoiseSettingsStore=e}async function ns(){try{return await rs.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function is(e){const t=a=>{};try{const a=rs.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function ar(e){const t=new TextEncoder().encode(String(e).normalize("NFC"));let a="";return t.forEach(r=>{a+=r.toString(16).padStart(2,"0")}),a}const Xu=ar;function Ju(e,t){return`${e}/${ar(t)}.mp3`}function Qu(e={}){const t=e.storagePrefix??"audio-cache",a=e.voice??"ko-f",r=typeof e.speed=="number"?e.speed:1,n=e.filenameSanitizer??ar;return async function(i){const s=String(i||"").trim();if(!s)return"";const c=`${n(s)}_${a}.mp3`,d=`${t}/${c}`;try{if(await ti(d)){const u=await Oo(d);if(u)return u}}catch{}if(e.generator)try{const u=await e.generator(s,d,e);if(u)return u}catch{}try{const u=`/api/tts?word=${encodeURIComponent(s)}&voice=${encodeURIComponent(a)}&speed=${encodeURIComponent(String(r))}`;return await fetch(u,{method:"GET"}),`/audio-cache/${c}`}catch{return`/audio-cache/${c}`}}}async function ss(e){if(typeof document<"u")try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.opacity="0",t.style.pointerEvents="none",document.body.appendChild(t),t.focus(),t.select(),t.setSelectionRange(0,e.length);const a=document.execCommand("copy");if(document.body.removeChild(t),a)return!0}catch{}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}const xo="Asia/Seoul";function ep(e){return new Date(e).toLocaleDateString("ko-KR",{timeZone:xo,year:"numeric",month:"short",day:"numeric"})}function tp(e){return new Date(e).toLocaleString("ko-KR",{timeZone:xo,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function ap(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleDateString(a,{timeZone:xo,year:"numeric",month:"short",day:"numeric"})}function op(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleString(a,{timeZone:xo,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function rp(e){return new Date(e).toLocaleString("ko-KR",{timeZone:xo,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function np(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("en-GB",{timeZone:xo,hour:"2-digit",minute:"2-digit",hour12:!1}).format(t)}function Ur(){return ka(new Date)}function ka(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t)}function Kr(e,t){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),n=Math.floor(r/60),i=Math.floor(n/60),s=Math.floor(i/24),c=Math.floor(s/7),d=Math.floor(s/30),u=Math.floor(s/365);return n<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):n<60?t("store.time.minutesAgo",{n}):i<24?t("store.time.hoursAgo",{n:i}):s<7?t("store.time.daysAgo",{n:s}):c<5?t("store.time.weeksAgo",{n:c}):s<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:u})}function Zr(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:n=!1,fallback:i="\u2014"}=t;if(!e)return i;const s=ka(e instanceof Date?e:String(e));if(!s)return i;const[c,d,u]=s.split("-"),m=r?d:String(Number(d)),h=r?u:String(Number(u));return`${c}${a}${m}${a}${h}${n?".":""}`}function ip(e){const t=e.replace(/\D/g,"").slice(0,11);return t.startsWith("02")?t.length<=2?t:t.length<=6?`${t.slice(0,2)}-${t.slice(2)}`:`${t.slice(0,2)}-${t.slice(2,t.length-4)}-${t.slice(t.length-4)}`:t.length<=3?t:t.length<=7?`${t.slice(0,3)}-${t.slice(3)}`:`${t.slice(0,3)}-${t.slice(3,t.length-4)}-${t.slice(t.length-4)}`}function sp(e){if(e){if(/^\d{4}\.\d{2}\.\d{2}$/.test(e))return e;if(/^\d{8}$/.test(e))return`${e.slice(0,4)}.${e.slice(4,6)}.${e.slice(6,8)}`;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e.replace(/-/g,".");if(/^\d{4}-\d{2}-\d{2}T/.test(e)){const t=new Date(e);return isNaN(t.getTime())?void 0:ka(t).replace(/-/g,".")}}}function lp(e){if(e)return/^\d{4}\.\d{2}\.\d{2}$/.test(e)?e.replace(/\./g,"-"):e}function or(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function Xr(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),n=Number(a[2]),i=a[1].padStart(2,"0");return n===0?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:n,mm:a[2]})}function rr(e){return(e??0).toLocaleString("ko-KR")}const Qw=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],e4=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];let ls=null;function cp(e){ls=e}function Jr(){return ls?.topicTypes??Qw}function cs(){return ls?.trainingTypes??e4}const dp="ihab_theme",t4="light";function ds(){try{const e=localStorage.getItem(dp);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return t4}function us(e){try{document.documentElement.setAttribute("data-theme",e),localStorage.setItem(dp,e)}catch{}}function up(){us(ds())}const pp="ihab_font_scale",a4="medium",o4=["medium","large1","large2","large3"];function ps(){try{const e=localStorage.getItem(pp);if(o4.includes(e))return e}catch{}return a4}function hs(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(pp,e)}catch{}}function hp(){hs(ps())}const Ra=[],$a=[],Ia=[],za=[],nr={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},ir={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},r4={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let ms=null,mp=null,Oa=null;function bs({counts:e,forceRefresh:t}={}){const a=Object.assign({},r4,e||{}),r=Ur(),n=ka(new Date(`${r}T00:00:00+09:00`).getTime()-864e5),i=JSON.stringify(a);if(!t&&mp===r&&ms===i&&Oa)return Object.assign(nr,Oa.today),Object.assign(ir,Oa.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:nr,yesterday:ir};const s={LISTEN_IN_NOISE:Jt(Ra,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:Jt($a,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:Jt(Ia,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:Jt(za,Math.max(0,Number(a.ORDERING_SENTENCE)||0))};let c=null;return Oa&&ms===i&&Oa.yesterday&&Oa.yesterday.date===n&&(c=Oa.yesterday.selection),c||(c={LISTEN_IN_NOISE:Jt(Ra,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:Jt($a,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:Jt(Ia,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:Jt(za,Math.max(0,Number(a.ORDERING_SENTENCE)||0))}),Object.assign(nr,s),Object.assign(ir,c),mp=r,ms=i,Oa={today:s,yesterday:{date:n,countsKey:i,selection:c}},{today:nr,yesterday:ir}}function bp(){return{today:nr,yesterday:ir}}function gs(){return{LISTEN_IN_NOISE:Ra,SHORT_STORY:$a,LONG_STORY:Ia,ORDERING_SENTENCE:za}}let fs=!1,sr=null;async function n4(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}&&void 0||"/",t=await fetch(`${e}data/allTrainingData.json`);return t.ok?await t.json():null}catch{return null}}async function vs(){if(!fs)return sr||(sr=(async()=>{const e=await n4();if(!e){sr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{for(const t of Object.keys(e||{})){const a=e[t]||[];for(const r of a){const n=r,i=String(n.training_type||t),s=String(n.category_main_code||n.category_main||n.category_0||""),c=String(n.category_sub_code||n.category_sub||n.category_1||""),d=Object.assign({},n,{training_type:i,category_0:s,category_1:c});i==="LISTEN_IN_NOISE"?Ra.push(d):i==="SHORT_STORY"?$a.push(d):i==="LONG_STORY"?Ia.push(d):i==="ORDERING_SENTENCE"&&za.push(d)}}}catch{sr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}try{bs()}catch{}fs=!0})(),sr)}function gp(){return fs}async function ys(e=3e3){const t=vs();return Promise.race([t,new Promise(a=>setTimeout(a,e))])}const Qr=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],fp=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:" \uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uC0C1\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],xs={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function i4(e){return Qr.map(t=>{const a=xs[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let en=null,vp=null,yp=null;function s4(){const e=vo();if(e&&e.entries.length>0){const t=Ka();if(en&&vp===e&&yp===t)return en;const a=new Set,r=[];for(const n of e.entries)!n.word||a.has(n.word)||(a.add(n.word),r.push({w:n.word,s:n.syllables,p:t?.[n.word]?[...t[n.word].cho??[],...t[n.word].jung??[],...t[n.word].jong??[]]:[],pron:n.pronunciation||n.word,grade:n.grade}));return en=r,vp=e,yp=t,en}return[]}const ea=new Proxy([],{get(e,t){const a=s4(),r=a[t];return typeof r=="function"?r.bind(a):r}});function tn(e){return e.length?e[Math.floor(Math.random()*e.length)]:void 0}function ta(e,t){if(t>=e.length)return Ge(e);if(t===0)return[];const a=e.slice();for(let r=0;r<t;r++){const n=r+Math.floor(Math.random()*(a.length-r)),i=a[r];a[r]=a[n],a[n]=i}return a.slice(0,t)}let Cs=null,xp=null;function eo(){const e=vo();if(Cs&&xp===e)return Cs;const t=new Map;for(const a of ea)a.w&&t.set(a.w,a.pron);return Cs=t,xp=e,t}function Ft(e){return eo().get(e)||e}function _s(e,t,a=new Set){const r=[];for(const n of Ge(e)){if(r.length>=t)break;const i=Ft(n);a.has(i)||(a.add(i),r.push(n))}return r}let l4=0;function Tt(e){return`${e}-rt-${++l4}`}function lr(e){const t=Mr();if(!t||t.total===0){const r=new Set;for(const n of e)r.add(n);return r}const a=new Set;for(const r of e)li(r)===!0&&a.add(r);return a}const an=new Map;let Cp=null,_p=null;function cr(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function wp(e){const t=cr(e.choseong),a=e.composition,r=a?.syllable==null?"":Array.isArray(a.syllable)?a.syllable.slice().sort().join(","):String(a.syllable),n=a?`${cr(a.cho)}/${cr(a.jung)}/${cr(a.jong)}/${a.jongNone?"N":""}/${r}`:"",i=cr(e.grade);return`${e.difficulty??""}|${t}|${n}|${e.excludeNoImage?"1":"0"}|${e.count??""}|x${e.contrastCount??1}|${e.fullCount?"F":""}|s${e.sameStructureOnly===!1?"0":"1"}|v${e.phonemeView==="pron"?"p":"c"}|g${i}|t${e.targetSyllable??""}|c${e.choicesPerItem??""}`}async function Wt(e){const t=vo(),a=Ka();(t!==Cp||a!==_p)&&(an.clear(),Cp=t,_p=a);const r=wp(e);return an.has(r)||an.set(r,d4(e)),an.get(r)}function c4(e){if(!e)return null;const t=s=>s==null?null:Array.isArray(s)?s.length?s:null:[s],a=t(e.cho),r=t(e.jung),n=!!e.jongNone,i=n?null:t(e.jong);return a||r||i||n?n&&!a&&!r&&!i?s=>bi(s):s=>gi(s,{cho:a,jung:r,jong:i,jongNone:n}):null}async function d4(e){const{difficulty:t=null,choseong:a=null,composition:r=null,targetSyllable:n=null,excludeNoImage:i=!1}=e,s=e.grade&&e.grade.length>0?new Set(e.grade):null,c=e.sameStructureOnly??!0,d=e.phonemeView==="pron"?"pron":"char",u=Math.max(1,e.contrastCount??1),m=t==="cho"||t==="jung"||t==="jong",h=m&&u>=2,p=t==="count",g=a?new Set(Array.isArray(a)?a:[a]):null,f=r?.syllable!=null?new Set(Array.isArray(r.syllable)?r.syllable:[r.syllable]):null,b=r?[c4(r),f?N=>f.has(bo(N)):null].filter(N=>N!=null):[],v=t==="random"||t===null,y=v||p,_=v||h||p;let x=ea.filter(N=>!N.w||s&&(!N.grade||!s.has(N.grade))?!1:_?!0:Array.isArray(N.p)&&N.p.length>0);g&&(x=x.filter(N=>{for(const L of g)if(yw(N.w,L))return!0;return!1})),b.length>0&&(x=x.filter(N=>{const L=d==="pron"?Ft(N.w):N.w;return b.every(R=>R(L))})),n&&(x=x.filter(N=>N.w[0]===n));let C;if(i){const N=new Set;for(const L of x)if(N.add(L.w),Array.isArray(L.p))for(const R of L.p)N.add(R);if(y)for(const L of ea)L.w&&N.add(L.w);C=lr(N)}else{const N=new Set;for(const L of x)if(N.add(L.w),Array.isArray(L.p))for(const R of L.p)N.add(R);if(y)for(const L of ea)L.w&&N.add(L.w);C=N}let k=null;if(h){const N=new Set;for(const L of ea)L.w&&N.add(L.w);k=i?lr(N):N}const w=x.filter(N=>C.has(N.w)),S=600,j=Array.from(C),A=j.length>S?ta(j,S):j,B=p&&r!=null&&(ft(r.cho)||ft(r.jung)||ft(r.jong)),W=2500,M=new Map;if(p&&!B&&u>=2){for(const N of j){const L=bo(N),R=M.get(L);R?R.push(N):M.set(L,[N])}for(const[N,L]of M)L.length>W&&M.set(N,ta(L,W))}const T=di(),$=B?ki(r,j,T,c,d,Ft):null,E=500,H=1500,te=e.fullCount?w:t==="random"?w.length>E?ta(w,E):w:w.length>H?ta(w,H):w,Q=Ka(),ae=[];for(const N of te){let L;const R=Ft(N.w);if(h)L=kw(N.w,t,u,k,24).filter(z=>Ft(z)!==R);else if(p)B?L=($.get(N.w)??[]).filter(z=>Ft(z)!==R):u<=1?L=Pr(N.w,Q,{okSet:C,pronOf:Ft,decompOf:T,sameStructureOnly:!1}):L=(M.get(bo(N.w))??[]).filter(z=>{if(z===N.w||Ft(z)===R)return!1;const V=Sw(N.w,z);return u>=5?V>=5:V===u});else if(v)L=A.filter(z=>z!==N.w&&z.length===N.w.length&&Ft(z)!==R);else{const z=t;L=Pr(N.w,Q,{kind:z,okSet:C,pronOf:Ft,decompOf:T,sameStructureOnly:!1}),L.length===0&&(L=(A.length>30?ta(A,30):A).filter(V=>V!==N.w&&ui(N.w,V)===t&&Ft(V)!==R))}if(c&&L.length>0&&(m||p&&!B)){const z=T(Ft(N.w));L=L.filter(V=>!Ko(z,T(Ft(V))))}L.length!==0&&ae.push({word:N,usable:L})}return ae}async function kp(e,t){const{choicesPerItem:a=3,count:r=10}=t,n=a-1,i=(await Wt(t)).filter(c=>c.usable.length>=n),s=[];for(const c of Ge(i)){if(s.length>=r)break;const d=_s(c.usable,n);if(d.length<n)continue;const u=Ge([c.word.w,...d]);s.push({id:Tt(e+"-item"),index:s.length+1,word:c.word.w,syllables:c.word.s,choices:u,answerIndex:u.indexOf(c.word.w)})}return s}async function u4(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Wt({...e,difficulty:null});if(n.length<t)return[];const i=[],s=Ge([...n]);for(const c of s){if(i.length>=a)break;const d=c.word.w,u=[...c.word.pron||d],m=tn(u);if(!m)continue;const h=n.filter(f=>f.word.w!==d&&f.word.s===c.word.s&&!(f.word.pron||f.word.w).includes(m)&&f.word.pron!==c.word.pron);if(h.length<r)continue;const p=_s(h.map(f=>f.word.w),r);if(p.length<r)continue;const g=Ge([d,...p]);i.push({id:Tt("HPI-item"),index:i.length+1,targetSyllable:m,word:d,choices:g,answerIndex:g.indexOf(d)})}return i}async function p4(e){const{count:t=10}=e,a=(await Wt(e)).filter(r=>r.usable.length>=1);return Array.from({length:t},(r,n)=>{const i=tn(a);if(!i)return null;const s=n%2===0;let c;if(s)c=[i.word.w,i.word.w];else{const d=tn(i.usable);c=Math.random()<.5?[i.word.w,d]:[d,i.word.w]}return{id:Tt("SOD-item"),index:n+1,word:i.word.w,pair:c,same:s}}).filter(r=>!!r)}async function h4(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Wt({...e,difficulty:null});if(n.length<t+1)return[];const i=n.map(p=>p.word.w),s=new Map(n.map(p=>[p.word.w,p.word.pron])),c=p=>(s.get(p)||p)[0]??"",d={};for(const p of n){const g=c(p.word.w);g&&(d[g]||(d[g]=[]),d[g].push(p.word.w))}const u=Object.entries(d).filter(([,p])=>p.length>=2).map(([p])=>p);if(u.length===0)return[];const m=[],h=Ge([...u]);for(let p=0;m.length<a&&p<a*4;p++){const g=h[p%h.length],f=d[g];if(f.length<2)continue;const b=Ge([...f]),v=b[0],y=b[1];if(!v||!y||v===y||(s.get(v)||v)===(s.get(y)||y))continue;const _=s.get(y)||y,x=i.filter(w=>c(w)!==g&&w!==v&&w!==y&&w.length===y.length&&(s.get(w)||w)!==_);if(x.length<r)continue;const C=_s(x,r);if(C.length<r)continue;const k=Ge([y,...C]);m.push({id:Tt("SWS-item"),index:m.length+1,sourceWord:v,targetSyllable:g,word:y,choices:k,answerIndex:k.indexOf(y)})}return m}function Sp(e,t,a){return ta(e,t).map((r,n)=>{const i=tn(r.usable)??"",s=[...r.word.w],c=[...i],d=s.findIndex((m,h)=>m!==c[h]),u=Ge(r.usable.filter(m=>m&&m!==i)).slice(0,2);return{id:Tt(a),index:n+1,word:r.word.w,original:r.word.w,changed:i,changedFrom:d>=0?s[d]:"",changedTo:d>=0?c[d]:"",distractors:u}})}async function Ap(e,t,a){const{count:r=10}=t,n=eo(),i=ea.filter(g=>g.w&&g.s===e),s=t.excludeNoImage?lr(i.map(g=>g.w)):null,c=s?i.filter(g=>s.has(g.w)):i,d=new Set(c.map(g=>g.w)),u=Ki(d),m=t.phonemeView??"char",h=t.composition??null,p=[];for(const g of Ge(c)){if(p.length>=r)break;const f=Zi(g.w,h,n,m,u,null,null);if(!f)continue;const b=f.distractors[0],v=[...g.w],y=[...b],_=v.findIndex((x,C)=>x!==y[C]);p.push({id:Tt(a),index:p.length+1,word:g.w,original:g.w,changed:b,changedFrom:_>=0?v[_]:"",changedTo:_>=0?y[_]:"",distractors:f.distractors.slice(1)})}return p}async function m4(e){return Ap(2,e,"CS2-item")}async function b4(e){return Ap(3,e,"CS3-item")}async function g4(e){const t=(await Wt({...e,difficulty:"count",contrastCount:1})).filter(a=>a.word.s===1&&a.usable.length>=1);return Sp(t,e.count??10,"CP1-item")}async function f4(e){const t=e.difficulty&&e.difficulty!=="random"?e.difficulty:"count",a=(await Wt({...e,difficulty:t,contrastCount:1})).filter(r=>r.word.s===2&&r.usable.length>=1);return Sp(a,e.count??10,"CP2-item")}async function v4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(r=>r.word.s===2);return ta(a,t).map((r,n)=>({id:Tt("M2S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function y4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(r=>r.word.s===3);return ta(a,t).map((r,n)=>({id:Tt("M3S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function x4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(c=>c.word.s===2),r=eo(),n=new Set(ea.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ge(a)){if(s.length>=t)break;const d=Hi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=[...c.word.w],p=h[0]===u?h[1]:h[0];s.push({id:Tt("D2-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:p,missingResult:u,distractors:m})}return s}async function C4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(c=>c.word.s===3),r=eo(),n=new Set(ea.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ge(a)){if(s.length>=t)break;const d=Vi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=[...c.word.w];let p="";for(let g=0;g<h.length;g++)if(h.filter((f,b)=>b!==g).join("")===u){p=h[g];break}s.push({id:Tt("D3-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:p,missingResult:u,distractors:m})}return s}async function _4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(c=>c.word.s>=2),r=eo(),n=new Set(ea.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ge(a)){if(s.length>=t)break;const d=Gi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=c.word.w,p=h.startsWith(u)?h.slice(u.length):h.endsWith(u)?h.slice(0,h.length-u.length):"";s.push({id:Tt("DPC-item"),index:s.length+1,original:h,word:h,dropped:p,missingResult:u,distractors:m})}return s}async function w4(e){const{count:t=10}=e,a=(await Wt({...e})).map(r=>r.word.w);return a.length<3?[]:Array.from({length:t},(r,n)=>{const i=ta(a,3);return{id:Tt("LRO-item"),index:n+1,sequence:i,choices:Ge(i)}})}function on(e,t,a){const r=ea.filter(s=>s.w&&s.s===e),n=t?lr(r.map(s=>s.w)):null,i=[];for(const s of r)if(!(n&&!n.has(s.w))){if(a){const c=Me(s.w);if(!c||!a(c))continue}i.push(s)}return i}function k4(e){const t=on(1,e.excludeNoImage??!1,a=>a.jong===0);return ta(t,e.count??10).map((a,r)=>{const n=Me(a.w);return{id:Tt("M2P-item"),index:r+1,parts:[Ze[n.cho],dt[n.jung]],answer:a.w,word:a.w}})}function S4(e){const t=on(1,e.excludeNoImage??!1,a=>a.jong>0&&!mo[a.jong]);return ta(t,e.count??10).map((a,r)=>{const n=Me(a.w);return{id:Tt("M3P-item"),index:r+1,parts:[Ze[n.cho],dt[n.jung],gt[n.jong]],answer:a.w,word:a.w}})}function A4(e){const t=Gr.DROP_FINAL_CONSONANT_FROM_1SYLL,a=on(t.syllables,e.excludeNoImage??!1,t.syllable),r=eo(),n=[];for(const i of Ge(a)){if(n.length>=(e.count??10))break;const s=qi(i.w,null,r);if(!s)continue;const[c,...d]=s.distractors;n.push({id:Tt("DFC-item"),index:n.length+1,original:i.w,word:i.w,result:c,distractors:d})}return n}function T4(e){const t=Gr.REMOVE_CONSONANT_AND_IDENTIFY_PHONEME,a=on(t.syllables,e.excludeNoImage??!1,t.syllable),r=eo(),n=[];for(const i of Ge(a)){if(n.length>=(e.count??10))break;const s=Ui(i.w,null,r);if(!s)continue;const c=Me(r.get(i.w)||i.w);if(!c)continue;const[d,...u]=s.distractors;n.push({id:Tt("RCP-item"),index:n.length+1,base:i.w,word:i.w,missingConsonant:Ze[c.cho],remaining:d,distractors:u})}return n}const rn=new Map;let Tp=null,Bp=null;async function Np(e,t={}){const a=vo(),r=Ka();(a!==Tp||r!==Bp)&&(rn.clear(),Tp=a,Bp=r);const n=`${e}:${wp(t)}`;if(rn.has(n))return rn.get(n);const i=await N4(e,t);return rn.set(n,i),i}const B4={SAME_SOUND_PICK:e=>kp("SSP",e),HEAR_AND_PICK_SAME:e=>kp("HPS",e),HEAR_AND_PICK_INCLUDED:e=>u4(e),SAME_OR_DIFF:e=>p4(e),STARTS_WITH_SAME_SOUND:e=>h4(e),LISTEN_AND_REMEMBER_ORDER:e=>w4(e),MERGE_2_SYLLABLES:e=>v4(e),MERGE_3_SYLLABLES:e=>y4(e),MERGE_2_PHONEMES:e=>k4(e),MERGE_3_PHONEMES:e=>S4(e),DROP_1_FROM_2SYLL:e=>x4(e),DROP_1_FROM_3SYLL:e=>C4(e),DROP_PART_FROM_COMPOUND:e=>_4(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>A4(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>T4(e),CHANGE_1_SYLL_IN_2SYLL:e=>m4(e),CHANGE_1_SYLL_IN_3SYLL:e=>b4(e),CHANGE_1_PHONEME_IN_1SYLL:e=>g4(e),CHANGE_1_PHONEME_IN_2SYLL:e=>f4(e)};async function N4(e,t={}){const a=B4[e];return a?await a(t):[]}async function D4(e){const t=[null,"count"],a=Object.keys(fo);let r=0;for(const n of t)for(const i of a){const s=fo[i];Np(i,{difficulty:s.difficulty?n:null,choseong:null,count:10,excludeNoImage:e}).catch(()=>{}),++r%6===0&&await new Promise(c=>setTimeout(c,0))}}async function E4(e){return(await Wt({...e,fullCount:!0})).length}async function j4(e={}){const t=[];for(const c of ea)c.w&&t.push(c.w);const a=e.excludeNoImage?lr(t):t,r=new Set,n=new Set,i=new Set,s=new Set;for(const c of a){s.add(bo(c));for(const d of c){const u=Me(d);if(u&&(Ze[u.cho]!=="\u3147"&&r.add(Ze[u.cho]),n.add(dt[u.jung]),u.jong>0)){i.add(gt[u.jong]);const m=mo[u.jong];m&&m.forEach(h=>i.add(h))}}}return{cho:r,jung:n,jong:i,syllable:s}}const Dp={free:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},personal_standard:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},mgr_free:{maxCustomers:5,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},none:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},lite_word:{maxCustomers:10,visitWord:!0,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!1},lite_sentence:{maxCustomers:10,visitWord:!1,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!0},lite:{maxCustomers:10,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},standard:{maxCustomers:30,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},pro:{maxCustomers:50,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0},enterprise:{maxCustomers:1/0,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!0,managerManagement:!0,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!0,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!0,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!0,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0}},Ep={none:0,free:1,personal_standard:3,mgr_free:4,lite_word:5,lite_sentence:5,lite:6,standard:7,pro:8,enterprise:9},jp={free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1},personal_standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null},mgr_free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1,trainingItemMax:5,customerMax:5,homeworkSendDaily:1},lite:{sentenceTrainingDaily:5,wordTrainingDaily:5,gameDaily:5,trainingItemMax:10,customerMax:10,homeworkSendDaily:10},standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:30,customerMax:30,homeworkSendDaily:30},pro:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:50,homeworkSendDaily:50},enterprise:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:null,homeworkSendDaily:null}};function Lp(e){const t=e.toLowerCase();return t.startsWith("manager_enterprise")?"enterprise":t.startsWith("manager_pro")?"pro":t.startsWith("manager_standard")?"standard":t.startsWith("manager_lite_word")?"lite_word":t.startsWith("manager_lite_sentence")?"lite_sentence":t.startsWith("manager_lite")||t.startsWith("mgr_lite")?"lite":t.startsWith("mgr_standard")?"standard":t.startsWith("mgr_pro")?"pro":t.startsWith("content_")||t.startsWith("speechear_")||t.startsWith("light_")||t==="light"?"personal_standard":"none"}const Mp=5,Pp=5;function Rp({rank:e,voteCount:t,quota:a=5}){return e<a&&t>0}const $p={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"},nn="0.71.0";var L4=Object.freeze({__proto__:null,CAPABILITY:fo,CHOSEONG:Ze,CORE_VERSION:nn,JONGSEONG:gt,JUNGSEONG:dt,LONG_STORIES:Ia,NETWORK_ERROR_MESSAGE:Xi,NOISE_DATAS:Ra,ORDER_SETS:za,PLAN_FEATURES:Dp,PLAN_LIMITS:jp,SHORT_STORIES:$a,TIER_RANK:Ep,TOPIC_TYPES:fp,TRAINING_TYPES:Qr,TRAINING_TYPE_I18N_KEY:xs,WORD_SUGGESTION_ACCOUNT_LIMIT:Pp,WORD_SUGGESTION_EXISTING_ERROR:$p,WORD_SUGGESTION_WEEKLY_QUOTA:Mp,applyFontScale:hs,applyTheme:us,buildChangeWholeSyllableProblem:Zi,buildDropCompoundProblem:Gi,buildDropContrast3Problem:Vi,buildDropContrastProblem:Hi,buildDropFinalConsonantProblem:qi,buildMultiPartPosContrast:ki,buildPairIndex:iu,buildRemoveConsonantProblem:Ui,buildSyllableMaskIndex:Ki,bulkSetImageExistence:Kd,cardQuestionTitle:Tu,checkImageExists:Yo,classifyPairDifficulty:ui,clearAudioExistsCache:Wd,clearImageExistenceCache:ci,clearPairIndexCache:Ci,composeSyllable:ua,computeDailySelection:bs,configureImageResolver:Yd,configureNoiseSettingsStore:Zu,configurePronunciationResolver:Vd,configureStorage:ei,configureTTS:Fd,configureTrainingCategories:cp,copyText:ss,createDecompCache:di,createTTSUrlResolver:Qu,dateToDb:lp,downloadCsvText:Lu,downloadSound:Er,ensureTrainingDataLoaded:ys,escapeCsvField:ju,fileExists:ti,filterContrastCandidates:wi,finalToPhoneme:Vr,firstChoseongOf:pi,formatCount:rr,formatDateKo:ep,formatDateLocale:ap,formatDateLongKo:tp,formatDateLongLocale:op,formatDatetimeKo:rp,formatPhone:ip,formatRelativeTime:Kr,formatTimeHM:Xr,formatYmd:Zr,getAssetBaseUrl:Jn,getDailySelection:bp,getElementAnalyser:Vo,getErrorMessage:Yr,getImageExistenceStats:Mr,getImageExistsCached:li,getImageResolver:Ma,getNoiseBaseUrl:ai,getPairIndex:Ka,getPlanTier:Lp,getPronunciationResolver:ni,getSavedFontScale:ps,getSavedTheme:ds,getSignedOrPublicUrl:Oo,getTTSFallbackUrlResolver:ri,getTTSUrlResolver:Fo,getTodayKst:Ur,getTopicTypes:Jr,getTrainingPools:gs,getTrainingTypes:cs,getWordPool:vo,hasQuestionWordConstraint:xu,hasSel:ft,hasStructureContrast:Ko,initFontScale:hp,initTheme:up,isAllChoseong:mi,isManualOnlyType:_u,isNetworkErrorMessage:Ji,isSyllablePattern:fi,isThisWeekPick:Rp,isTrainingDataLoaded:gp,isValidQuestionWord:Cu,itemCorrectness:as,jamoToNamesForSpeech:Bu,loadGameLeaderboard:Ku,loadMyGameRanks:Uu,loadNoiseSettings:ns,loadTrainingData:vs,logCrossword:zu,logTrainingCompletion:ts,logTrainingTime:es,matchSyllables:Ja,matchesChoseongSearch:Zd,matchesSyllablePattern:vi,matchesWordQuery:ho,mergeQuestionText:Fi,minimalPairDistractors:Pr,normalizeDate:sp,officialSoundPath:Ju,parseSortValue:Eu,parseSyllable:Me,patternToComposition:au,phonemePartsOf:Au,pickEuRo:Ii,pickEulReul:Mi,pickEunNeun:Ri,pickIga:ji,pickWaGwa:$i,prewarmImageCache:Ud,primarySelPart:tr,readLevel:ii,reorderArray:zi,resolveAssetUrl:Io,resolveSoundPath:Dr,resumeAudioMeter:Ho,sample:Jt,saveNoiseSettings:is,searchAndRankWords:ru,setAssetBaseUrl:zd,setCrosswordLogger:Iu,setGameLeaderboardLoader:qu,setGameRanksLoader:Gu,setGameScoreSubmitter:Vu,setTrainingCompletionLogger:$u,setTrainingTimeLogger:Ru,setWordPool:Pu,shuffle:Ge,sortToValue:Du,soundOf:qr,speak:Rd,stopSpeaking:$d,submitGameScore:Yu,syllMatchesComp:Pa,syllableContrasts:Qa,syllableLength:bo,syllablePron:Wi,toBase64UrlSafe:Xu,toChoseong:hi,toItemResults:os,toKstHm:np,toKstYmd:ka,toStandardPronunciation:gu,toStorageName:ar,toUserErrorMessage:Nu,validateSyllableSearchInput:ou,withEuRo:yu,withEulReul:Pi,withEunNeun:fu,withIga:Li,withWaGwa:vu,wordContainsChoseong:Jd,wordContainsJongseong:eu,wordContainsJungseong:Qd,wordHasNoCoda:bi,wordHasSyllableMatching:gi,wrongItems:Ou});function M4(e){return typeof window>"u"?"":pw.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function P4(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),[i,s]=l.useState(null),[c,d]=l.useState(null);return l.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),n(null),s(null);return}const u=e.split("/").pop();let m=e;u&&(e.startsWith("/")?m=Io(e):/^(Logo|Symbol)/i.test(u)?m=Io(`logo/${u}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),a(m)},[e]),l.useEffect(()=>{if(!t)return;let u=!1;async function m(){try{let h=await fetch(t);h.ok||(h=await fetch(t));const p=h.headers.get("content-type")||"";if(u)return;if(p.includes("svg")){n("mask");return}if(p.startsWith("image/")){n("img");return}const g=await fetch(t);if(!g.ok)throw new Error("not ok");const f=await g.text();if(u)return;if(/^\s*<svg[\s>]/i.test(f)){const b=M4(f);if(!b){n("none");return}s(b),n("inline");return}n("none")}catch{u||n("none")}}return m(),()=>{u=!0}},[t]),l.useEffect(()=>{let u=!1,m=null;return r==="mask"&&t&&fetch(t).then(h=>{if(!h.ok)throw new Error("fetch failed");return h.blob()}).then(h=>{u||(m=URL.createObjectURL(h),d(m))}).catch(()=>{u||n("img")}),()=>{u=!0,m&&URL.revokeObjectURL(m),d(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function Fe(e){const{icon:t,label:a,className:r,imgClassName:n,maskClassName:i,svgClassName:s,wrapperStyle:c,size:d}=e||{},u=r??"iconRenderer-icon",m=n??"iconRenderer-icon-image",h=i??"iconRenderer-icon-mask",p=s??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,f=E_(g),{iconToUse:b,mode:v,svgText:y,blobUrl:_}=P4(g),x=(S,j={})=>o.jsx("span",{className:u,style:c,...j,children:S}),C=(S,j={})=>o.jsx("img",{src:S,alt:typeof a=="string"?a:a?String(a):"",className:m,...j});if(!t)return null;if(typeof t!="string")return x(t);if(t==="none")return x(o.jsx("span",{className:p,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(f)try{return x(l.createElement(f,{className:p,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(v==="mask"){const S={"--icon-url":_?`url(${_})`:`url(${b})`};return x(o.jsx("span",{className:h,style:S}),{"aria-hidden":"true"})}return v==="img"?x(C(b,{onError:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="inline"?x(o.jsx("span",{className:p,dangerouslySetInnerHTML:y?{__html:y}:void 0}),{"aria-hidden":"true"}):x(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return C(Io(t),{style:c,onError:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}});const k=typeof d=="number"?d:20,w=`<svg width="${k}" height="${k}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return x(o.jsx("span",{className:p,dangerouslySetInnerHTML:{__html:w}}),{"aria-hidden":"true"})}function Ip({icon:e,emoji:t,title:a,message:r,hint:n,action:i,compact:s,className:c}){return o.jsxs("div",{className:_e("empty-state",s&&"empty-state--compact",c),children:[t&&o.jsx("span",{className:"empty-state__emoji",children:t}),e&&o.jsx(Fe,{icon:e,className:"empty-state__icon"}),a&&o.jsx("p",{className:"empty-state__title body-2",children:a}),r&&o.jsx("p",{className:"empty-state__message body-3",children:r}),n&&o.jsx("p",{className:"empty-state__hint caption-1",children:n}),i&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i.onClick,children:[i.icon&&o.jsx(Fe,{icon:i.icon,className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:i.label})]})]})}var R4=".ihabdevteam-core-scope .error-state__icon{color:var(--color-error)}";ee(R4);function zp({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:n,className:i}){const{t:s}=me.useTranslation();return o.jsxs("div",{className:_e("empty-state","error-state",i),role:"alert",children:[o.jsx(Fe,{icon:a,className:"empty-state__icon error-state__icon"}),o.jsx("p",{className:"empty-state__message body-3",children:e??s("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&o.jsx("p",{className:"empty-state__hint caption-1",children:t}),r&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[o.jsx(Fe,{icon:"rotate-cw",className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:n??s("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}var $4=".ihabdevteam-core-scope .action-card{--ac-color:var(--color-main);--ac-color-a10:var(--color-main-a10);aspect-ratio:1/1;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-l);box-shadow:var(--shadow-card);cursor:pointer;display:block;overflow:hidden;transition:transform .2s ease-out,box-shadow .2s ease-out,border-color .2s ease-out;width:100%}.ihabdevteam-core-scope .action-card--sub{--ac-color:var(--color-sub);--ac-color-a10:var(--color-sub-a10)}.ihabdevteam-core-scope .action-card:focus-visible{outline:none}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):focus-visible,.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover{border-color:var(--ac-color);box-shadow:var(--shadow-panel);transform:translateY(-4px)}.ihabdevteam-core-scope .action-card--disabled{cursor:wait;opacity:.6}.ihabdevteam-core-scope .action-card__body{display:flex;flex-direction:column;gap:var(--spacing-m);height:100%;padding:var(--spacing-l)}.ihabdevteam-core-scope .action-card__chip{align-items:center;background:var(--ac-color-a10);border-radius:var(--radius-m);color:var(--ac-color);display:flex;height:64px;justify-content:center;width:64px}.ihabdevteam-core-scope .action-card__text{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .action-card__title{color:var(--color-text-primary);font-size:var(--text-h2-size);font-weight:var(--text-h2-weight-bold);letter-spacing:var(--text-h2-spacing);line-height:var(--text-h2-line);margin:0}.ihabdevteam-core-scope .action-card__desc{color:var(--color-lightGray);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .action-card__cta{align-items:center;color:var(--ac-color);display:flex;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);gap:var(--spacing-xs);justify-content:flex-end;line-height:var(--text-body-2-line);margin-top:auto;padding-right:var(--spacing-s);padding-top:var(--spacing-s)}.ihabdevteam-core-scope .action-card__arrow{display:flex;transition:transform .2s}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover .action-card__arrow{transform:translateX(4px)}";ee($4);function Op({icon:e,title:t,description:a,cta:r,tone:n="main",disabled:i=!1,onClick:s,className:c=""}){const d=()=>{i||s?.()};return o.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":t,onClick:d,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d())},className:_e("action-card",`action-card--${n}`,i&&"action-card--disabled",c),children:o.jsxs("div",{className:"action-card__body",children:[o.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:o.jsx(Fe,{icon:e,size:34})}),o.jsxs("div",{className:"action-card__text",children:[o.jsx("h2",{className:"action-card__title",children:t}),o.jsx("p",{className:"action-card__desc",children:a})]}),o.jsxs("div",{className:"action-card__cta",children:[o.jsx("span",{children:r}),o.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:o.jsx(Fe,{icon:"arrow-right",size:18})})]})]})})}function Fp({as:e="div",className:t="",children:a,storage:r,...n}){r&&ei({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl});const i=_e("ihabdevteam-core-scope",t);return o.jsx(e,{className:i,...n,children:a})}var I4=".ihabdevteam-core-scope .notice-box{background:var(--color-darkWhite);border-radius:var(--radius-m);color:var(--color-gray);margin:0 auto var(--spacing-page);padding:var(--spacing-l);position:relative;text-align:left}.ihabdevteam-core-scope .notice-box ul{margin:0;padding:0 0 0 18px}.ihabdevteam-core-scope .notice-box__inner{border-radius:var(--radius-s);padding:12px 14px;text-align:left}.ihabdevteam-core-scope .notice-box__title{color:var(--color-darkGray);margin:0 0 10px}.ihabdevteam-core-scope .notice-box__body,.ihabdevteam-core-scope .notice-box__line{color:var(--color-deepGray)}.ihabdevteam-core-scope .notice-box--default{border-color:var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--dashed{background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--important{border:1px solid var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .notice-box__dismiss{background:none;border:none;border-radius:var(--radius-xs);color:var(--color-lightGray);cursor:pointer;font-size:18px;line-height:1;padding:2px 6px;position:absolute;right:10px;top:8px;transition:color .12s}.ihabdevteam-core-scope .notice-box__dismiss:hover{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .notice-box,.ihabdevteam-core-scope .notice-box__inner{padding:var(--spacing-s)}}";ee(I4);function Wp({title:e="",lines:t=[],notices:a=null,children:r,variant:n="default",dismissible:i=!1,className:s=""}){const{t:c}=me.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>u(!0),[]);if(d)return null;const h=`notice-box notice-box--${n} body-2 ${s}`.trim();if(a&&Array.isArray(a)&&a.length)return o.jsx("div",{className:h,role:"note",children:a.map((g,f)=>o.jsxs("div",{className:"notice-box__inner",children:[g.title?o.jsx("span",{className:"notice-box__title body-3",children:g.title}):null,o.jsx("div",{className:"notice-box__body",children:g.lines&&g.lines.length?o.jsx("div",{children:g.lines.map((b,v)=>o.jsx("span",{className:"notice-box__line body-3",children:b},v))}):g.children??null})]},f))});const p=e||t.length?o.jsxs("div",{className:"notice-box__inner",children:[e?o.jsx("span",{className:"notice-box__title body-1",children:e}):null,o.jsx("div",{className:"notice-box__body",children:t.length?o.jsx("ul",{children:t.map((g,f)=>o.jsx("li",{className:"notice-box__line",children:g},f))}):r})]}):o.jsx("div",{className:"notice-box__inner",children:r});return o.jsxs("div",{className:h,role:"note",children:[p,i&&o.jsx("button",{className:"notice-box__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var z4=".ihabdevteam-core-scope .button{align-items:center;background:var(--color-white);border:0;border:var(--button-border,0);box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);padding:0 12px;transition:background-color .14s ease,color .14s ease,transform .1s ease,box-shadow .14s ease}.ihabdevteam-core-scope .button__icon,.ihabdevteam-core-scope .button__left,.ihabdevteam-core-scope .button__right{align-items:center;color:inherit;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .button--align-center .button__label,.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:center}.ihabdevteam-core-scope .button__icon{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--small{height:16px;width:16px}.ihabdevteam-core-scope .button__icon--medium{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--large{height:36px;width:36px}.ihabdevteam-core-scope .button__center-group{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .button__center-group .button__label{display:inline-block;flex:0 1 auto;text-align:center}.ihabdevteam-core-scope .button__label{display:block;white-space:normal}.ihabdevteam-core-scope .button__label-text{align-items:center;display:inline-flex;justify-content:center;max-width:100%;vertical-align:middle;white-space:normal;word-break:break-word}.ihabdevteam-core-scope .button__label-text--has-sub{flex-direction:column;gap:3px}.ihabdevteam-core-scope .button__count{color:var(--color-main);font-weight:700;margin-left:4px}.ihabdevteam-core-scope .button--variant-main .button__count,.ihabdevteam-core-scope .is-selected .button__count,.ihabdevteam-core-scope [aria-pressed=true] .button__count{color:#fff}.ihabdevteam-core-scope .button__label:has(>.button__label-text+.button__label-text){gap:5px}.ihabdevteam-core-scope .button__sub-label-text{color:var(--button-subLabel-color,var(--color-gray));display:block}.ihabdevteam-core-scope .button__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .button__icon-mask{background-color:currentColor;display:block;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .button__icon-svg{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .button__icon-svg svg{display:block;height:100%;width:100%}.ihabdevteam-core-scope .button__icon-svg svg,.ihabdevteam-core-scope .button__icon-svg svg *{fill:currentColor;stroke:currentColor}.ihabdevteam-core-scope .button .button__label{color:currentColor;color:var(--button-text-color,currentColor);min-height:20px;min-width:20px}.ihabdevteam-core-scope .button .button__icon,.ihabdevteam-core-scope .button .button__left,.ihabdevteam-core-scope .button .button__right{color:currentColor;color:var(--button-icon-color,currentColor)}.ihabdevteam-core-scope .button--align-left{justify-content:flex-start}.ihabdevteam-core-scope .button--align-center{justify-content:center}.ihabdevteam-core-scope .button--align-right{justify-content:flex-end}.ihabdevteam-core-scope .button--align-left .button__label{align-items:center;display:inline-flex;flex:1 1 auto}.ihabdevteam-core-scope .button--align-left .button__label-text{justify-content:flex-start;text-align:left}.ihabdevteam-core-scope .button--align-center .button__label{align-items:center;display:flex;flex:1 1 auto;justify-content:center;text-align:center}.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:right}.ihabdevteam-core-scope .button--align-grid{justify-content:center}.ihabdevteam-core-scope .button--align-grid .button__label{display:grid;flex:1 1 auto;grid-auto-columns:1fr;grid-auto-flow:column;text-align:center}.ihabdevteam-core-scope .button.button--no-bg{background:transparent;border-color:transparent}.ihabdevteam-core-scope .button--variant-danger{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-error))}.ihabdevteam-core-scope .button--variant-danger:focus-visible,.ihabdevteam-core-scope .button--variant-danger:hover{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-error-a10);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-danger.is-selected,.ihabdevteam-core-scope .button--variant-danger[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-error);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-default{--button-text-color:var(--color-darkGray);--button-icon-color:var(--color-lightGray);--button-subLabel-color:var(--color-gray);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-whiteLine))}.ihabdevteam-core-scope .button--variant-default:focus-visible,.ihabdevteam-core-scope .button--variant-default:hover{--button-text-color:var(--color-black);--button-icon-color:var(--color-main);--button-subLabel-color:var(--color-black);background:var(--color-white);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-default.is-selected,.ihabdevteam-core-scope .button--variant-default[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-main{--button-subLabel-color:var(--color-white-a80);background:var(--color-main);border:var(--button-border,1px solid var(--color-main));color:#fff}.ihabdevteam-core-scope .button--variant-main:focus-visible,.ihabdevteam-core-scope .button--variant-main:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);border-color:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-main.is-selected,.ihabdevteam-core-scope .button--variant-main[aria-pressed=true]{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-sub{--button-subLabel-color:var(--color-white-a80);background:var(--color-primary,var(--color-sub));color:#fff}.ihabdevteam-core-scope .button--variant-sub:focus-visible,.ihabdevteam-core-scope .button--variant-sub:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-uiAccent);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white{--button-subLabel-color:var(--color-white-a60);background:transparent;border:var(--button-border,1px solid var(--color-white-a80));color:#fbfdff}.ihabdevteam-core-scope .button--variant-transparent-white:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-white:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-white-a10);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white.is-selected,.ihabdevteam-core-scope .button--variant-transparent-white[aria-pressed=true]{--button-subLabel-color:var(--color-lightGray);background:var(--color-white);color:var(--color-main)}.ihabdevteam-core-scope .button--variant-transparent-gray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-gray-a80));color:var(--color-gray-a80)}.ihabdevteam-core-scope .button--variant-transparent-gray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-gray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-gray-a10);color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-lightGray-a80));color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-lightGray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-lightGray-a10);color:var(--color-deepGray)}.ihabdevteam-core-scope .button--variant-disabled{--button-subLabel-color:var(--color-disabled);background-color:transparent;border:var(--button-border,1px solid var(--color-whiteLine));color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled .button__icon,.ihabdevteam-core-scope .button--variant-disabled .button__left,.ihabdevteam-core-scope .button--variant-disabled .button__right{color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled-covered{background-color:var(--color-darkWhite);border:var(--button-border,1px solid var(--color-darkWhite));border-color:var(--color-whiteLine);color:transparent}.ihabdevteam-core-scope .button--variant-disabled-covered .button__icon,.ihabdevteam-core-scope .button--variant-disabled-covered .button__left,.ihabdevteam-core-scope .button--variant-disabled-covered .button__right{color:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded,.ihabdevteam-core-scope .button--variant-disabled-invisibled{background:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded .button__icon,.ihabdevteam-core-scope .button--variant-disabled-faded .button__left,.ihabdevteam-core-scope .button--variant-disabled-faded .button__right,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__icon,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__label,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__left,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__right{color:transparent}.ihabdevteam-core-scope .button:disabled,.ihabdevteam-core-scope .button[disabled]{cursor:default}.ihabdevteam-core-scope .button--shape-rounded{border-radius:8px!important;border-radius:var(--button-rounded-radius,8px)!important}.ihabdevteam-core-scope .button--shape-pill{border-radius:9999px!important}.ihabdevteam-core-scope .button72{--button-rounded-radius:18px;border-radius:36px;height:72px;justify-content:center}.ihabdevteam-core-scope .button72--bar{min-width:220px}.ihabdevteam-core-scope .button72--dot{padding:0;width:72px}.ihabdevteam-core-scope .button56{--button-rounded-radius:14px;border-radius:28px;height:56px;justify-content:center}.ihabdevteam-core-scope .button56--bar{min-width:190px}.ihabdevteam-core-scope .button56--dot{padding:0;width:56px}.ihabdevteam-core-scope .button52{--button-rounded-radius:13px;border-radius:26px;height:52px;justify-content:center}.ihabdevteam-core-scope .button52--bar{min-width:175px}.ihabdevteam-core-scope .button52--dot{padding:0;width:52px}.ihabdevteam-core-scope .button48{--button-rounded-radius:12px;border-radius:24px;height:48px;justify-content:center}.ihabdevteam-core-scope .button48--bar{min-width:160px}.ihabdevteam-core-scope .button48--dot{padding:0;width:48px}.ihabdevteam-core-scope .button40{--button-rounded-radius:10px;border-radius:20px;height:40px;justify-content:center}.ihabdevteam-core-scope .button40--bar{min-width:100px}.ihabdevteam-core-scope .button40--dot{padding:0;width:40px}.ihabdevteam-core-scope .button40 .button__icon,.ihabdevteam-core-scope .button40--bar .button__icon,.ihabdevteam-core-scope .button40--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:16px;height:32px;justify-content:center}.ihabdevteam-core-scope .button32--bar{min-width:72px}.ihabdevteam-core-scope .button32--dot{padding:0;width:32px}.ihabdevteam-core-scope .button32 .button__icon,.ihabdevteam-core-scope .button32--bar .button__icon,.ihabdevteam-core-scope .button32--dot .button__icon{height:18px;width:18px}.ihabdevteam-core-scope .button28{--button-rounded-radius:7px;border-radius:14px;height:28px;justify-content:center}.ihabdevteam-core-scope .button28--bar{min-width:60px}.ihabdevteam-core-scope .button28--dot{padding:0;width:28px}.ihabdevteam-core-scope .button28 .button__icon,.ihabdevteam-core-scope .button28--bar .button__icon,.ihabdevteam-core-scope .button28--dot .button__icon{height:16px;width:16px}.ihabdevteam-core-scope .button24{--button-rounded-radius:6px;border-radius:12px;height:24px;justify-content:center}.ihabdevteam-core-scope .button24--bar{min-width:48px}.ihabdevteam-core-scope .button24--dot{padding:0;width:24px}.ihabdevteam-core-scope .button24 .button__icon,.ihabdevteam-core-scope .button24--bar .button__icon,.ihabdevteam-core-scope .button24--dot .button__icon{height:14px;width:14px}.ihabdevteam-core-scope .button-keyboard{border-radius:12px;height:32px;justify-content:center}.ihabdevteam-core-scope .button-keyboard--bar{min-width:32px;padding:0 12px}.ihabdevteam-core-scope .button-keyboard--dot{padding:0;width:32px}.ihabdevteam-core-scope .button-word{border-radius:12px;height:72px;justify-content:center;padding:0 16px}.ihabdevteam-core-scope .button-word--bar{min-width:120px}.ihabdevteam-core-scope .button-word--dot{padding:0;width:72px}@media (max-width:1024px){.ihabdevteam-core-scope .button56{--button-rounded-radius:13px;border-radius:25px;height:50px}.ihabdevteam-core-scope .button56--bar{min-width:170px}.ihabdevteam-core-scope .button56--dot{width:50px}.ihabdevteam-core-scope .button48{--button-rounded-radius:11px;border-radius:22px;height:44px}.ihabdevteam-core-scope .button48--bar{min-width:140px}.ihabdevteam-core-scope .button48--dot{width:44px}.ihabdevteam-core-scope .button40{--button-rounded-radius:9px;border-radius:18px;height:36px}.ihabdevteam-core-scope .button40--bar{min-width:88px}.ihabdevteam-core-scope .button40--dot{width:36px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:15px;height:30px}.ihabdevteam-core-scope .button32--bar{min-width:64px}.ihabdevteam-core-scope .button32--dot{width:30px}.ihabdevteam-core-scope .button24--bar{min-width:44px}}@media (max-width:768px){.ihabdevteam-core-scope .button56{--button-rounded-radius:12px;border-radius:23px;height:46px}.ihabdevteam-core-scope .button56--bar{min-width:150px}.ihabdevteam-core-scope .button56--dot{width:46px}.ihabdevteam-core-scope .button56 .button__icon,.ihabdevteam-core-scope .button56--bar .button__icon,.ihabdevteam-core-scope .button56--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button48{--button-rounded-radius:10px;border-radius:20px;height:40px}.ihabdevteam-core-scope .button48--bar{min-width:120px}.ihabdevteam-core-scope .button48--dot{width:40px}.ihabdevteam-core-scope .button48 .button__icon,.ihabdevteam-core-scope .button48--bar .button__icon,.ihabdevteam-core-scope .button48--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button40{--button-rounded-radius:8px;border-radius:17px;height:34px}.ihabdevteam-core-scope .button40--bar{min-width:80px}.ihabdevteam-core-scope .button40--dot{width:34px}.ihabdevteam-core-scope .button32{--button-rounded-radius:7px;border-radius:14px;height:28px}.ihabdevteam-core-scope .button32--bar{min-width:60px}.ihabdevteam-core-scope .button32--dot{width:28px}.ihabdevteam-core-scope .button24--bar{min-width:40px}}";ee(z4);var O4=".ihabdevteam-core-scope .tooltip-content{animation:tooltip-pop .2s cubic-bezier(.2,.9,.2,1) both;background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);box-sizing:border-box;pointer-events:auto;position:absolute;transform-origin:left center;white-space:normal;will-change:transform,opacity;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content--inline{position:static}.ihabdevteam-core-scope .tooltip-content--bordered{border:1px solid var(--color-whiteLine)}.ihabdevteam-core-scope .tooltip-content.tooltip-description,.ihabdevteam-core-scope .tooltip-content.tooltip-info,.ihabdevteam-core-scope .tooltip-content.tooltip-training{background:transparent;box-shadow:none}.ihabdevteam-core-scope .tooltip-content__header{align-items:center;color:var(--color-gray);display:flex;height:40px;padding:0 2px 10px}.ihabdevteam-core-scope .tooltip-content.is-closing{opacity:0;transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .tooltip-content[data-placement=top]{transform:translateY(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=bottom]{transform:translateY(6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=left]{transform:translateX(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=right]{transform:translateX(6px)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=top]{transform:translateY(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=bottom]{transform:translateY(6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=left]{transform:translateX(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=right]{transform:translateX(6px) scale(.98)}@keyframes tooltip-pop{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes tooltip-fade-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-6px) scale(.98)}}.ihabdevteam-core-scope .tooltip-backdrop{background:var(--color-popupBlock);inset:0;position:fixed;z-index:calc(var(--z-tooltip) - 1)}.ihabdevteam-core-scope .tooltip-portal{inset:0;position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content.is-mobile{left:50%!important;max-width:calc(100% - 40px)!important;top:50%!important;transform:translate(-50%,-50%)!important;visibility:visible!important;width:calc(100% - 40px)!important;z-index:var(--z-tooltip)!important}";ee(O4);function ws(e,t=!0){l.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=n=>{if(n.key!=="Tab")return;const i=Array.from(a.querySelectorAll(dr)).filter(d=>!d.closest('[aria-hidden="true"]'));if(!i.length){n.preventDefault();return}const s=i[0],c=i[i.length-1];n.shiftKey&&document.activeElement===s?(n.preventDefault(),c.focus()):!n.shiftKey&&document.activeElement===c&&(n.preventDefault(),s.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const dr='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function Sa(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:n=20,onClose:i,closeOnOutsideClick:s=!0,className:c="",role:d="dialog",ariaLabel:u="",children:m,backdrop:h=!1,isMobilePopup:p=!1,useBorder:g=!0,header:f}=e||{},b=l.useRef(null),[v,y]=l.useState({position:"fixed",left:0,top:-9999}),[_,x]=l.useState(!1),[C,k]=l.useState("bottom"),[w,S]=l.useState(!1),[j,A]=l.useState(!1),B=!t&&!a,W=l.useCallback((E=!1)=>{if(j&&p)return;const H=a?a.getBoundingClientRect():t;if(!H||!b.current)return;const te=b.current,{offsetWidth:Q,offsetHeight:ae}=te,N=window.innerWidth,L=window.innerHeight,R=N-H.right,z=H.left,V=H.top,X=L-H.bottom;let F=0,Y=0,O="top";if(V>=ae+r)O="top",Y=H.top-r-ae,F=H.left+H.width/2-Q/2;else if(X>=ae+r)O="bottom",Y=H.bottom+r,F=H.left+H.width/2-Q/2;else if(R>=Q+r)O="right",F=H.right+r,Y=H.top+H.height/2-ae/2;else if(z>=Q+r)O="left",F=H.left-r-Q,Y=H.top+H.height/2-ae/2;else{const ve=Math.max(V,X,R,z);ve===V?(O="top",Y=H.top-r-ae,F=H.left+H.width/2-Q/2):ve===X?(O="bottom",Y=H.bottom+r,F=H.left+H.width/2-Q/2):ve===R?(O="right",F=H.right+r,Y=H.top+H.height/2-ae/2):(O="left",F=H.left-r-Q,Y=H.top+H.height/2-ae/2)}const ne=Number(n)||8;F=Math.min(Math.max(F,ne),N-Q-ne),Y=Math.min(Math.max(Y,ne),L-ae-ne);const ue=Math.round(F),xe=Math.round(Y);E&&b.current?(b.current.style.left=`${ue}px`,b.current.style.top=`${xe}px`,b.current.dataset.placement=O):(k(O||C),y({position:"fixed",left:ue,top:xe}),S(!0))},[j,p,a,t,r,n,C]);l.useLayoutEffect(()=>{if(B)return;if(j&&p){y({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),S(!0);return}W();const E=requestAnimationFrame(()=>W());return()=>cancelAnimationFrame(E)},[t,a,r,m,n,B,j,p,W]),l.useEffect(()=>{if(B||j&&p||!b.current||typeof ResizeObserver>"u")return;const E=new ResizeObserver(()=>{t&&W()});return E.observe(b.current),()=>E.disconnect()},[t,m,n,B,j,p,W]),l.useEffect(()=>{if(B||j&&p)return;const E=()=>W(!0);return window.addEventListener("resize",E),document.addEventListener("scroll",E,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",E),document.removeEventListener("scroll",E,{capture:!0})}},[t,r,m,n,B,j,p,W]),l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const E=window.matchMedia("(max-width: 768px)"),H=()=>A(!!E.matches);H();try{E.addEventListener?E.addEventListener("change",H):E.addListener(H)}catch{try{E.addListener(H)}catch{}}return()=>{try{E.removeEventListener?E.removeEventListener("change",H):E.removeListener(H)}catch{}}},[]);const M=l.useRef(!1),T=l.useCallback((E=!1)=>{if(!(_||M.current)){if(M.current=!0,E){x(!0);try{i&&i()}catch{}return}x(!0),setTimeout(()=>{i&&i()},200)}},[_,i,x]);l.useEffect(()=>{const E=Q=>{const ae=b.current;if(!ae)return;const N=Q.target;if(N&&!ae.contains(N)){try{if(N.closest&&N.closest("[data-tooltip-ignore]"))return}catch{}s&&T(!0)}},H=Q=>{const ae=b.current;if(!ae)return;const N=Q.target;if(N&&!ae.contains(N)){try{if(N.closest&&N.closest("[data-tooltip-ignore]"))return}catch{}s&&T(!0)}},te=Q=>{if(Q.key==="Escape"){Q.stopPropagation(),T();return}if(Q.key==="Tab"){const ae=b.current;if(!ae)return;const N=ae.querySelectorAll(dr);if(!N||N.length===0)return;const L=N[0],R=N[N.length-1],z=document.activeElement;Q.shiftKey?z===L&&(Q.preventDefault(),R.focus()):z===R&&(Q.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",E,!0),document.addEventListener("click",H,!0),document.addEventListener("keydown",te),()=>{document.removeEventListener("pointerdown",E,!0),document.removeEventListener("click",H,!0),document.removeEventListener("keydown",te)}},[i,s,T]),l.useEffect(()=>{const E=()=>{T(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",E),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",E)}},[T]);const $=o.jsxs("div",{ref:b,className:`tooltip-content ${B?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${_?"is-closing":""} ${c} ${j&&p?"is-mobile":""}`,role:d,"aria-label":u||void 0,style:B?{}:{...v,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":C,"data-left":B?"":v.left,"data-top":B?"":v.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[f!=null&&o.jsx("div",{className:"tooltip-content__header h5",children:f}),m]});if(B||typeof document>"u")return $;if(h||j&&p){const E=o.jsxs("div",{className:"tooltip-portal",children:[o.jsx("div",{className:"tooltip-backdrop",onClick:()=>{s&&T(!0)}}),$]});return qt.createPortal(E,document.body)}return qt.createPortal($,document.body)}var F4='.ihabdevteam-core-scope .tooltip-info__content{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);color:var(--color-black);display:inline-flex;justify-content:center;line-height:1;overflow:hidden;padding:4px 12px;position:relative;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-content.tooltip-info{pointer-events:none}.ihabdevteam-core-scope .tooltip-content.tooltip-info .tooltip-info__content{box-shadow:var(--shadow-tooltip)}.ihabdevteam-core-scope .tooltip-info[data-placement=bottom] .tooltip-info__content:after,.ihabdevteam-core-scope .tooltip-info[data-placement=top] .tooltip-info__content:after{content:"";height:0;margin:0;padding:0;position:absolute;width:0}';ee(F4);function aa(e){const{anchorRect:t,text:a,offset:r=8,onClose:n,className:i="",ariaLabel:s}=e||{};return a?o.jsx(Sa,{anchorRect:t,offset:r,onClose:n,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:s||a,children:o.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}var W4=".ihabdevteam-core-scope .tooltip-description__box{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;flex-direction:column;gap:10px;max-width:640px;padding:16px 20px}.ihabdevteam-core-scope .tooltip-description__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .tooltip-description__items{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .tooltip-description__item{align-items:flex-start;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs);margin:0}.ihabdevteam-core-scope .tooltip-description__index{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .tooltip-description__item--active{color:var(--color-main);font-weight:600}.ihabdevteam-core-scope .tooltip-description__item--active .tooltip-description__index{color:var(--color-main)}";ee(W4);function to(e){const{t}=me.useTranslation(),{anchorRect:a,title:r,items:n,activeIndex:i=-1,showIndex:s=!0,onClose:c,offset:d=12}=e||{},u=Array.isArray(n)?n:n?[n]:[];return!u.length&&!r?null:o.jsx(Sa,{anchorRect:a,offset:d,onClose:c,closeOnOutsideClick:!0,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:o.jsxs("div",{className:"tooltip-description__box",children:[r&&o.jsx("span",{className:"tooltip-description__title body-2",children:r}),o.jsx("ol",{className:"tooltip-description__items",children:u.map((m,h)=>o.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[s&&u.length>1&&o.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),o.jsx("span",{children:m})]},h))})]})})}function re(e){const{size:t=48,type:a,htmlType:r,href:n,target:i,rel:s,icon:c,rightIcon:d,label:u,count:m,subLabel:h,children:p,ariaLabel:g,variant:f="default",align:b="center",selected:v,toggleable:y=!1,disabled:_=!1,useLabel:x=!0,useBorder:C=!0,useBG:k=!0,useDisabledCovered:w=!1,useDisabledInvisible:S=!1,width:j,minWidth:A,onClick:B,onDisabledClick:W,showTooltipInfo:M=!1,tooltipInfoText:T=null,tooltipDescription:$=null,iconSize:E="medium",iconColor:H,shape:te="rounded",color:Q,className:ae,...N}=e,L=typeof t=="string"&&isNaN(Number(t))?t.toLowerCase():String(Number(t)||48),R=L.match(/^\d+$/)?`button${L}`:`button-${L}`,z=Number(t),V=!isNaN(z)&&z<40?"button-2":"button-1",X=u??p,F=_||!!N.disabled,Y=F?w?"disabled-covered":S?"disabled-invisibled":"disabled":f,O=Y?`button--variant-${Y}`:"",ne=b?`button--align-${b}`:"",ue=te?`button--shape-${te}`:"",xe=typeof H=="string"&&H.startsWith("--")?`var(${H})`:H,ve={...j?{width:typeof j=="number"?`${j}px`:j}:{},...A?{minWidth:typeof A=="number"?`${A}px`:A}:{},...C?{}:{"--button-border":F?"0":"1px solid transparent"},...xe?{"--button-icon-color":xe}:{},...Q?{"--color-main":Q}:{}},pe=x===!1?"":X,P=Array.isArray(pe)?pe.length>0:!!pe,q=!!d,oe=a??(P||c||q?"bar":"dot"),ge=`${R}--${oe}`,de=l.useRef(null),I=l.useRef(F),[Z,J]=l.useState(!!v),[fe,De]=l.useState(!1),[$e,Le]=l.useState(null),Ee=l.useCallback(()=>De(!1),[]);l.useEffect(()=>{typeof v=="boolean"&&J(v)},[v]),l.useEffect(()=>{if(I.current&&!F&&de.current){const We=de.current;We.blur(),We.style.pointerEvents="none";const Je=requestAnimationFrame(()=>{requestAnimationFrame(()=>{de.current&&(de.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Je)}I.current=F},[F]);const je=typeof v=="boolean"?!!v:Z,Te=y||typeof v=="boolean"?je?"true":"false":void 0,Ie=_e("button",R,ge,O,ne,ue,je?"is-selected":null,k?null:"button--no-bg",ae),He=`button__icon button__icon--${E}`,be=Array.isArray(h)?h:h!==void 0?[h]:[],Ke=()=>{if(Array.isArray(pe))return pe.map((Je,tt)=>{const xt=be[tt];return o.jsxs("span",{className:`button__label-text${xt!==void 0?" button__label-text--has-sub":""}`,children:[Je,xt!==void 0&&o.jsx("span",{className:"button__sub-label-text caption-1",children:xt})]},tt)});const We=h!==void 0;return o.jsxs("span",{className:`button__label-text${We?" button__label-text--has-sub":""}`,children:[pe,m!=null&&o.jsx("span",{className:"button__count",children:m}),We&&o.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},Ve=We=>{F||(typeof N.onMouseLeave=="function"&&N.onMouseLeave(We),typeof v!="boolean"&&J(!1),We.currentTarget.blur())},Re=We=>{if(F){W?.(We);return}typeof v!="boolean"&&y&&J(Je=>!Je),B?.(We)},qe=l.useCallback(()=>{(M||$)&&(De(!0),Le(de.current?.getBoundingClientRect()??null))},[M,$]),vt=l.useCallback(()=>{(M||$)&&(De(!1),Le(null))},[M,$]),Ue={...N};delete Ue.disabled,delete Ue.className,delete Ue.faded,delete Ue.useFaded,delete Ue.loading,delete Ue.onMouseLeave,delete Ue.onPointerEnter,delete Ue.onPointerLeave,delete Ue.onFocus,delete Ue.onBlur,F&&(Object.keys(Ue).forEach(We=>{/^on[A-Z]/.test(We)&&typeof Ue[We]=="function"&&delete Ue[We]}),Ue["aria-disabled"]="true");const Xe=(typeof M=="string"?M:null)??(typeof T=="string"?T:null)??(typeof g=="string"?g:null)??(typeof X=="string"?X:null)??void 0,ut=typeof g=="string"?g:typeof X=="string"?X:Xe,ze=(We,Je)=>o.jsx(Fe,{icon:We,label:Je??ut,className:He,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),rt=()=>oe==="dot"?o.jsxs(o.Fragment,{children:[ze(c),P&&o.jsx("span",{className:`button__label ${V}`,children:Ke()})]}):b==="center"&&c?o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:"button__center-group",children:[o.jsx("span",{className:"button__left",children:ze(c)}),P&&o.jsx("span",{className:`button__label ${V}`,children:Ke()})]}),q&&o.jsx("span",{className:"button__right",children:ze(d)})]}):o.jsxs(o.Fragment,{children:[c&&o.jsx("span",{className:"button__left",children:ze(c,g??X)}),P&&o.jsx("span",{className:`button__label ${V}`,children:Ke()}),q&&o.jsx("span",{className:"button__right",children:ze(d)})]}),et=!!n&&!F;return o.jsxs(o.Fragment,{children:[o.jsx(et?"a":"button",{...Ue,ref:de,...et?{href:n,target:i,rel:s??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:F&&!W},className:Ie,"aria-pressed":Te,"aria-label":ut,"aria-disabled":et&&F?!0:void 0,style:ve,onClick:Re,onMouseLeave:Ve,onPointerEnter:We=>{qe(),!F&&typeof N.onPointerEnter=="function"&&N.onPointerEnter(We)},onPointerLeave:We=>{vt(),!F&&typeof N.onPointerLeave=="function"&&N.onPointerLeave(We)},onFocus:We=>{qe(),!F&&typeof N.onFocus=="function"&&N.onFocus(We)},onBlur:We=>{Ve(We),vt(),!F&&typeof N.onBlur=="function"&&N.onBlur(We)},children:rt()}),fe&&$?o.jsx(to,{anchorRect:$e,title:$.title,items:$.items,onClose:Ee}):fe&&Xe?o.jsx(aa,{anchorRect:$e,text:Xe,onClose:Ee}):null]})}function lt(e,t,a){const r=l.useRef(null);return l.useLayoutEffect(()=>{const n=r.current?.parentElement??null;return t(n,e),()=>a(n)},[e,t,a]),r}var H4=".ihabdevteam-core-scope .promo-banner-bg{border-radius:inherit;inset:0;pointer-events:none;position:absolute}";ee(H4);var V4=".ihabdevteam-core-scope .promo-banner-bg-main{background:linear-gradient(45deg,var(--color-main),var(--color-sub))}";ee(V4);const Co={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},ks=new WeakMap;function Ss(e){if(e)return ks.get(e)}function Bt(e,t){e&&(e.style.setProperty(Co.title,t.title),e.style.setProperty(Co.description,t.description),ks.set(e,t))}function Nt(e){e&&(e.style.removeProperty(Co.title),e.style.removeProperty(Co.description),ks.delete(e))}const As={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Ts(){const e=lt(As,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}var G4=".ihabdevteam-core-scope .promo-banner-bg-soft{background:var(--color-main-a10)}";ee(G4);const Bs={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Ns(){const e=lt(Bs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}var q4=".ihabdevteam-core-scope .promo-banner-bg-sub{background:var(--color-sub)}";ee(q4);const Ds={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Es(){const e=lt(Ds,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}var Y4=".ihabdevteam-core-scope .promo-banner-bg-deep{background:linear-gradient(135deg,var(--color-darkMain),var(--color-darkSub))}";ee(Y4);const js={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ls(){const e=lt(js,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}var U4=".ihabdevteam-core-scope .promo-banner-bg-soft-sub{background:var(--color-sub-a10)}";ee(U4);const Ms={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ps(){const e=lt(Ms,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}var K4=".ihabdevteam-core-scope .promo-banner-bg-warm{background:var(--color-warn)}";ee(K4);const Rs={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function $s(){const e=lt(Rs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}var Z4=".ihabdevteam-core-scope .promo-banner-bg-dark{background:var(--color-lightBlack)}";ee(Z4);const Is={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function zs(){const e=lt(Is,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}var X4=".ihabdevteam-core-scope .promo-banner-bg-radial{background:radial-gradient(circle at 15% 20%,var(--color-main) 0,var(--color-sub) 100%)}";ee(X4);const Os={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Fs(){const e=lt(Os,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}var J4=".ihabdevteam-core-scope .promo-banner-bg-diagonal{background-color:var(--color-lightMain);background-image:repeating-linear-gradient(45deg,var(--color-main-a10) 0,var(--color-main-a10) 10px,transparent 10px,transparent 20px)}";ee(J4);const Ws={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Hs(){const e=lt(Ws,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}var Q4=".ihabdevteam-core-scope .promo-banner-bg-dots{background-color:var(--color-lightSub);background-image:radial-gradient(var(--color-sub-a10) 2px,transparent 2px);background-size:14px 14px}";ee(Q4);const Vs={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Gs(){const e=lt(Vs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}var e5=".ihabdevteam-core-scope .promo-banner-bg-outline{background:var(--color-white);border:1px solid var(--color-whiteLine);box-sizing:border-box}.ihabdevteam-core-scope .promo-banner-bg-outline__dot{background:linear-gradient(45deg,var(--color-main),var(--color-sub));border-radius:50%;bottom:-40px;height:140px;opacity:.12;position:absolute;right:-40px;width:140px}";ee(e5);const qs={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Ys(){const e=lt(qs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:o.jsx("span",{className:"promo-banner-bg-outline__dot"})})}var t5=".ihabdevteam-core-scope .promo-banner-bg-success{background:var(--color-success)}";ee(t5);const Us={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ks(){const e=lt(Us,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}var a5=".ihabdevteam-core-scope .promo-banner-bg-naver{background:linear-gradient(90deg,#03c75a 0,var(--color-main) 100%)}";ee(a5);const Zs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Xs(){const e=lt(Zs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}var o5=".ihabdevteam-core-scope .promo-banner-bg-instagram{background:linear-gradient(45deg,#f9ce34,#ee2a7b 50%,#6228d7)}";ee(o5);const Js={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Qs(){const e=lt(Js,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Hp=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],el={main:Ts,soft:Ns,sub:Es,deep:Ls,softSub:Ps,warm:$s,dark:zs,radial:Fs,diagonal:Hs,dots:Gs,outline:Ys,success:Ks,naver:Xs,instagram:Qs};function sn({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:n=.1,lineHeightRatio:i=1.4}={}){const s=v=>Math.max(a,Math.min(r,Number(v))),[c,d]=l.useState(()=>{try{const v=localStorage.getItem(e),y=v?Number(v):1;return Number.isFinite(y)?y:1}catch{return 1}});l.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const u=v=>{d(typeof v=="function"?y=>s(v(y)):s(v))},m=()=>u(v=>+(v+n).toFixed(6)),h=()=>u(v=>+(v-n).toFixed(6)),p=c<r-Number.EPSILON,g=c>a+Number.EPSILON,f=Math.round(t*c),b=Math.round(f*i);return{scale:c,setScale:u,increase:m,decrease:h,canIncrease:p,canDecrease:g,fontSize:f,lineHeight:b}}const ln=l.createContext(null);function r5(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}function oa(e){const t=l.useContext(ln),a=i=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(i).matches,[r,n]=l.useState(a(e));return l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const i=window.matchMedia(e),s=d=>n(d.matches),c=i;return c.addEventListener?c.addEventListener("change",s):c.addListener&&c.addListener(s),n(i.matches),()=>{c.removeEventListener?c.removeEventListener("change",s):c.removeListener&&c.removeListener(s)}},[e]),t&&typeof t.mobile=="boolean"&&r5(e)?t.mobile:r}function tl(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),t}function ur(e,t){const a=tl(t);l.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const al=" \xB7 ",Vp=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(al)?e.split(al).pop()??e:e})(),ol=l.createContext(!1);function rl(e){const t=l.useContext(ol);l.useEffect(()=>{if(t||typeof e!="string"||!e)return;const a=document.title;return document.title=Vp?`${e}${al}${Vp}`:e,()=>{document.title=a}},[e,t])}function Gp(){const{t:e}=me.useTranslation();return l.useCallback(t=>{if(!t)return"";const a=new Date(t).getTime();if(Number.isNaN(a))return"";const r=Math.floor((Date.now()-a)/864e5);return r<=0?e("myHomework.relativeDay.today","\uC624\uB298"):r===1?e("myHomework.relativeDay.yesterday","\uC5B4\uC81C"):e("myHomework.relativeDay.daysAgo",{n:r})},[e])}function qp(e){const[t,a]=l.useState({current:"",next:"",confirm:""}),[r,n]=l.useState(null),[i,s]=l.useState(!1),c=l.useRef(null);l.useEffect(()=>()=>{c.current!==null&&clearTimeout(c.current)},[]);const d=l.useCallback(()=>{a({current:"",next:"",confirm:""}),n(null)},[]),u=l.useCallback(async()=>{if(!t.current){n({type:"error",text:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(!t.next){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(t.next!==t.confirm){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."});return}s(!0);const m=e?await e(t.current,t.next):null;if(s(!1),m){n({type:"error",text:m});return}n({type:"success",text:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}),a({current:"",next:"",confirm:""}),c.current!==null&&clearTimeout(c.current),c.current=setTimeout(()=>n(null),1500)},[t,e]);return{pw:t,setPw:a,pwMsg:r,setPwMsg:n,pwLoading:i,handleChangePw:u,reset:d}}const nl=[{id:"wordData",labelKey:"settings.cache.group.wordData.label",subKey:"settings.cache.group.wordData.sub",keys:["word_data_cache","word_data_version"]},{id:"pairIndex",labelKey:"settings.cache.group.pairIndex.label",subKey:"settings.cache.group.pairIndex.sub",keys:["word_pair_index_v2","word_pair_index_sig_v2"]},{id:"imageCache",labelKey:"settings.cache.group.imageCache.label",subKey:"settings.cache.group.imageCache.sub",keys:["word_image_existence_map_v1"]}];function il(e){return e.reduce((t,a)=>{try{const r=localStorage.getItem(a);return t+(r?new Blob([r]).size:0)}catch{return t}},0)}function Yp(e){return e===0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function Up(e){const{t}=me.useTranslation(),[a,r]=l.useState({}),[n,i]=l.useState(null),[s,c]=l.useState(null),[d,u]=l.useState(null),m=l.useCallback(()=>{const p={};nl.forEach(g=>{p[g.id]=il([...g.keys])}),r(p),typeof navigator<"u"&&navigator.storage?.estimate&&navigator.storage.estimate().then(g=>{u({usage:g.usage??0,quota:g.quota??0})}).catch(()=>{})},[]);l.useEffect(()=>{m()},[m]);const h=l.useCallback(async p=>{i(p);try{p==="wordData"?(localStorage.removeItem("word_data_cache"),localStorage.removeItem("word_data_version")):p==="pairIndex"?Ci():p==="imageCache"&&ci(),m(),e?.(t("settings.cache.cleared","\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."))}finally{i(null)}},[m,e,t]);return{cacheSizes:a,clearingId:n,confirmCacheId:s,setConfirmCacheId:c,storageEstimate:d,refreshCacheSizes:m,handleClearCache:h}}function Kp(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useCallback(()=>{const s=Ka();if(s){const d=Object.values(s),u=d.filter(m=>m.cho.length+m.jung.length+m.jong.length>0).length;a({matched:u,total:d.length})}else a(null);const c=Mr();n(c?{exists:c.exists,total:c.total}:null)},[]);return l.useEffect(()=>{i();const s=setTimeout(i,1e3);return()=>clearTimeout(s)},[e?.length,i]),{pairStats:t,imgStats:r,setPairStats:a,setImgStats:n,refreshStats:i}}function Zp(e,t=[]){const[a,r]=l.useState(t),[n,i]=l.useState(null),[s,c]=l.useState(!1),[d,u]=l.useState(e),m=l.useRef(s);l.useEffect(()=>{m.current=s});const h=l.useRef(null);l.useEffect(()=>{if(m.current)return;const y=h.current;y!==null&&y.length===t.length&&y.every((_,x)=>_===t[x])||(h.current=t,r(t))},[t]);const p=l.useCallback(y=>{i(y),c(!1),u({...y})},[]),g=l.useCallback(()=>c(!0),[]),f=l.useCallback(()=>c(!1),[]),b=l.useCallback((y,_)=>{r(y),i(_),c(!1)},[]),v=l.useCallback(y=>{r(_=>_.filter(x=>x!==y)),i(null)},[]);return{list:a,setList:r,selected:n,setSelected:i,isEditing:s,setIsEditing:c,editForm:d,setEditForm:u,openDetail:p,startEditing:g,cancelEditing:f,commitEdit:b,remove:v}}const _o=()=>{const e=new Date;return{year:String(e.getFullYear()),month:String(e.getMonth()+1).padStart(2,"0"),day:String(e.getDate()).padStart(2,"0")}},n5={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Xp(e=[]){const{list:t,setList:a,selected:r,setSelected:n,isEditing:i,setIsEditing:s,editForm:c,setEditForm:d,openDetail:u,commitEdit:m}=Zp(n5,e),{year:h,month:p,day:g}=_o(),[f,b]=l.useState({year:h,month:p,day:g,hour:"09",minute:"00",memo:""});return{visitHistory:t,visitForm:f,setVisitForm:b,setVisit:v=>y=>b(_=>({..._,[v]:y})),selectedVisit:r,setSelectedVisit:n,isEditingVisit:i,setIsEditingVisit:s,editVisitForm:c,setEditVisitForm:d,openVisitDetail:u,handleVisitSave:v=>{a(C=>[f,...C]);const{year:y,month:_,day:x}=_o();b({year:y,month:_,day:x,hour:"09",minute:"00",memo:""}),v?.()},handleVisitEditSave:()=>{m(v=>v.map(y=>y===r?c:y),c)},addVisit:v=>{a(y=>[v,...y])},removeVisit:v=>{a(y=>y.filter(_=>_!==v))},revertVisitEdit:(v,y)=>{a(_=>_.map(x=>x===y?v:x)),n(_=>_===y?v:_)}}}const Jp=e=>`${e.year.padStart(4,"0")}-${e.month.padStart(2,"0")}-${e.day.padStart(2,"0")} ${e.hour.padStart(2,"0")}:${e.minute.padStart(2,"0")}`,cn=e=>[...e].sort((t,a)=>{const r=Jp(t),n=Jp(a);return r<n?-1:r>n?1:0}),i5={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Qp(e,t=[]){const a=l.useMemo(()=>cn(t),[t]),{list:r,setList:n,selected:i,setSelected:s,isEditing:c,setIsEditing:d,editForm:u,setEditForm:m,openDetail:h,commitEdit:p,remove:g}=Zp(i5,a),[f,b]=l.useState([]),{year:v,month:y,day:_}=_o(),[x,C]=l.useState({year:v,month:y,day:_,hour:"09",minute:"00",memo:""}),k=$=>E=>C(H=>({...H,[$]:E})),w=$=>{n(Q=>cn([...Q,x]));const{year:E,month:H,day:te}=_o();C({year:E,month:H,day:te,hour:"09",minute:"00",memo:""}),$?.()},S=()=>{p($=>cn($.map(E=>E===i?u:E)),u)},j=l.useCallback($=>{g($)},[g]),A=l.useCallback($=>{e({year:$.year,month:$.month,day:$.day,hour:$.hour,minute:$.minute,memo:$.memo}),g($)},[e,g]),B=l.useCallback($=>{n(E=>E.filter(H=>H!==$)),b(E=>[$,...E]),s(null)},[n,s]),W=l.useCallback($=>{n(E=>cn([...E,$]))},[n]),M=l.useCallback($=>{n(E=>E.filter(H=>H!==$))},[n]),T=l.useCallback(($,E)=>{n(H=>H.map(te=>te===E?$:te)),s(H=>H===E?$:H)},[n,s]);return{scheduleList:r,noShowList:f,addSchedule:W,removeSchedule:M,revertScheduleEdit:T,scheduleForm:x,setScheduleForm:C,setSchedule:k,selectedSchedule:i,setSelectedSchedule:s,isEditingSchedule:c,setIsEditingSchedule:d,editScheduleForm:u,setEditScheduleForm:m,openScheduleDetail:h,handleScheduleSave:w,handleScheduleEditSave:S,handleScheduleDelete:j,handleScheduleToVisit:A,handleScheduleNoVisit:B}}const sl=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}];function eh(e){const[t,a]=l.useState(""),[r,n]=l.useState("25"),[i,s]=l.useState("all"),[c,d]=l.useState(1),u=l.useMemo(()=>e.filter(({item:g,status:f})=>!(t&&!g.memo.includes(t)||i!=="all"&&f!==i)),[e,t,i]),m=Math.max(1,Math.ceil(u.length/Number(r))),h=Math.min(c,m),p=l.useMemo(()=>u.slice((h-1)*Number(r),h*Number(r)),[u,h,r]);return{vapSearch:t,setVapSearch:a,vapPageSize:r,setVapPageSize:n,vapStatus:i,setVapStatus:s,vapPage:h,setVapPage:d,vapFiltered:u,vapTotal:m,vapPageItems:p}}function ll(e,t){const{t:a}=me.useTranslation(),[r,n]=l.useState("25"),[i,s]=l.useState(1),[c,d]=l.useState(t);c!==t&&(d(t),i!==1&&s(1));const u=l.useMemo(()=>sl.map(g=>({...g,label:a("visits.showN",{n:g.value})})),[a]),m=l.useCallback(g=>{n(g),s(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(r))),p=Math.min(i,h);return{pageRows:l.useMemo(()=>e.slice((p-1)*Number(r),p*Number(r)),[e,p,r]),pageSizeProps:{options:u,value:r,onChange:m},paginationProps:{page:p,total:h,onChange:s},setPage:s}}function cl(){const[e,t]=l.useState(null),a=l.useCallback(n=>{t(i=>i?.key===n?{key:n,asc:!i.asc}:{key:n,asc:!0})},[]),r=l.useCallback((n,i)=>({label:n,sortDir:e?.key===i?e.asc?"asc":"desc":null,onClick:()=>a(i)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}function th(){const[e,t]=l.useState(!1),[a,r]=l.useState("\uC88C"),[n,i]=l.useState({\uC88C:null,\uC6B0:null}),[s,c]=l.useState({\uC88C:[],\uC6B0:[]}),[d,u]=l.useState(!1),[m,h]=l.useState("\uC88C"),p=l.useCallback(f=>{const b=f.direction;i(v=>({...v,[b]:f})),c(v=>({...v,[b]:[f,...v[b]]})),t(!1)},[]),g=l.useCallback(f=>{const b=f.direction;i(v=>({...v,[b]:f})),u(!1)},[]);return{showDevice:e,setShowDevice:t,deviceDirection:a,setDeviceDirection:r,devices:n,setDevices:i,deviceHistory:s,setDeviceHistory:c,showDeviceList:d,setShowDeviceList:u,listForSide:m,setListForSide:h,handleDeviceSubmit:p,handleSelectFromList:g}}const Dt="\uC804\uCCB4";function dl(){const{t:e}=me.useTranslation();return l.useMemo(()=>({difficulty:e("wordSearch.filter.difficulty","\uB4F1\uAE09"),syllables:e("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),syllable5plus:e("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1"),partOfSpeech:e("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:e("wordSearch.filter.wordType","\uC720\uD615"),posMap:{[e("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)")]:["\uBA85","\uC218"],[e("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)")]:["\uB3D9","\uD615"],[e("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")]:["\uBD80","\uAD00"]},typeMap:{[e("wordSearch.filter.type.native","\uACE0\uC720\uC5B4")]:"\uACE0\uC720",[e("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4")]:"\uD55C\uC790",[e("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4")]:"\uC678\uB798",[e("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")]:"\uD63C\uC885"}}),[e])}function ul(e,t,a){return{label:t.difficulty,items:[1,2,3,4].map(r=>e("wordSearch.filter.grade",{n:r})),multiple:!0,allOption:!0,allLabel:a?.allLabel,labelAction:a?.labelAction,labelInfo:a?.labelInfo}}function pl(e){return{label:e.partOfSpeech,items:Object.keys(e.posMap),multiple:!0,allOption:!0}}function hl(e){return{label:e.wordType,items:Object.keys(e.typeMap),multiple:!0,allOption:!0}}function ah(e,t){return{label:t.syllables,items:[e("wordSearch.filter.syllable",{n:1}),e("wordSearch.filter.syllable",{n:2}),e("wordSearch.filter.syllable",{n:3}),e("wordSearch.filter.syllable",{n:4}),t.syllable5plus],multiple:!0,allOption:!0}}function oh(e,t){const a=[e("wordPairs.filter.onlyHasImage","\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC")];return t?.includeStructure&&a.push(e("wordPairs.filter.onlySameStructure","\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC")),{label:e("wordPairs.filter.selectLabel","\uC120\uD0DD"),items:a,multiple:!0,labelAction:t?.labelAction,labelInfo:t?.labelInfo}}function rh(e,t){const{label:a,headValue:r,midValue:n,tailValue:i,includeMid:s=!0,headDisabled:c,midDisabled:d,tailDisabled:u,allOptionDisabled:m,groupLabel:h,labelAction:p}=t;return{label:a,...h?{groupLabel:h}:{},...p?{labelAction:p}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...m?{allOptionDisabled:m}:{},items:[{value:r,displayLabel:e("wordSearch.filter.positionHead",{defaultValue:"\uC5B4\uB450"}),disabled:c},...s?[{value:n,displayLabel:e("wordSearch.filter.positionMid",{defaultValue:"\uC5B4\uC911"}),disabled:d}]:[],{value:i,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:u}]}}function nh(e,t,a){if(t===Dt){const{[a]:i,...s}=e;return s}const r=e[a]??[],n=r.includes(t)?r.filter(i=>i!==t):[...r,t];if(n.length===0){const{[a]:i,...s}=e;return s}return{...e,[a]:n}}Object.fromEntries(Object.entries(Ww).map(([e,{nucleus:t}])=>[e,t]));const s5={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},l5={"\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)":["\uBA85","\uC218"],"\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)":["\uB3D9","\uD615"],"\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)":["\uBD80","\uAD00"]},c5={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",posMap:l5,typeMap:s5};function d5(e,t,a=c5){const r=t[a.difficulty];if(r?.length&&!r.some(c=>e.grade===c.replace(/\D/g,"")))return!1;const n=t[a.syllables];if(n?.length){const c=e.syllables??0;if(!n.some(d=>d===a.syllable5plus?c>=5:c===parseInt(d)))return!1}const i=t[a.partOfSpeech];if(i?.length&&!i.flatMap(c=>a.posMap[c]??[c]).some(c=>(e.pos??"").includes(c)))return!1;const s=t[a.wordType];return!(s?.length&&!s.some(c=>e.wordType===a.typeMap[c]))}const Aa=(e,t)=>t.map(a=>({jamos:[a],tooltip:e})),wt=(e,t)=>({jamos:[...e],tooltip:t}),ml={cho:[Aa("\uC591\uC21C\uC74C",["\u3142","\u3143","\u314D","\u3141"]),Aa("\uCE58\uC870\uC74C",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Aa("\uCE58\uC870\uC74C",["\u3145","\u3146"]),Aa("\uACBD\uAD6C\uAC1C\uC74C",["\u3148","\u3149","\u314A"]),Aa("\uC5F0\uAD6C\uAC1C\uC74C",["\u3131","\u3132","\u314B"]),Aa("\uC131\uBB38\uC74C",["\u314E"])],jung:[[wt("\u3163","\uC804\uC124 \uACE0\uBAA8\uC74C"),wt("\u315F","\uC804\uC124 \uACE0\uBAA8\uC74C \xB7 w\uD65C\uC74C"),wt("\u3162","\uC804\uC124 \uACE0\uBAA8\uC74C \xB7 \u0270\uD65C\uC74C")],[wt("\u3161","\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C")],[wt("\u315C","\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"),wt("\u3160","\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C \xB7 j\uD65C\uC74C")],[wt("\u3154\u3150","\uC804\uC124 \uC911\uBAA8\uC74C"),wt("\u3156\u3152","\uC804\uC124 \uC911\uBAA8\uC74C \xB7 j\uD65C\uC74C"),wt("\u3159\u315A\u315E","\uC804\uC124 \uC911\uBAA8\uC74C \xB7 w\uD65C\uC74C")],[wt("\u3153","\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"),wt("\u3155","\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C \xB7 j\uD65C\uC74C"),wt("\u315D","\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C \xB7 w\uD65C\uC74C")],[wt("\u3157","\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"),wt("\u315B","\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C \xB7 j\uD65C\uC74C")],[wt("\u314F","\uC800\uBAA8\uC74C"),wt("\u3151","\uC800\uBAA8\uC74C \xB7 j\uD65C\uC74C"),wt("\u3158","\uC800\uBAA8\uC74C \xB7 w\uD65C\uC74C")]],jong:[Aa("\uC591\uC21C\uC74C",["\u3142","\u3141"]),Aa("\uCE58\uC870\uC74C",["\u3137","\u3134","\u3139"]),Aa("\uC5F0\uAD6C\uAC1C\uC74C",["\u3131","\u3147"])]},u5=[...Ze],p5=[...dt],h5=gt.filter(e=>e!==""),ba=e=>e===ra?[]:Array.from(e),ra="__NO_CODA__",ih=[1,2,3,4],na=5,m5=12,sh="SYL_",bl=e=>`${sh}${e}`,b5=e=>Number(e.slice(sh.length));function dn(e){return e>=na?Array.from({length:m5-na+1},(t,a)=>na+a):[e]}const lh={cho:u5,jung:p5,jong:h5},gl=e=>e.map(t=>t.map(({jamos:a,tooltip:r})=>({v:a.join(""),tooltip:r}))),fl={cho:gl(ml.cho),jung:gl(ml.jung),jong:gl(ml.jong)},ch={};fl.jung.flat().forEach(({v:e})=>{for(const t of ba(e))ch[t]=e});const g5=new Set(fl.cho.flat().map(e=>e.v));function vl(e,t){return e==="cho"?g5.has(t)?t:null:e==="jung"?ch[t]??t:Vr(t)}function yl(e,t,a){if(e==="jung"){const r=ba(t);return a&&r.includes(a)?a:r[0]??t}return t}function xl(e,t,a){const r=(n,i)=>i?n==="jong"&&i===ra?ra:t==="pron"?vl(n,i):yl(n,i,n==="jung"?a:null):null;return{...e,cho:r("cho",e.cho),jung:r("jung",e.jung),jong:r("jong",e.jong)}}const un={cho:null,jung:null,jong:null,syllable:null},f5="wt_filter",dh=e=>`wt_filter_${e}`;function uh(e){try{const t=localStorage.getItem(dh(e))??localStorage.getItem(f5);if(t)return JSON.parse(t)}catch{}return null}function v5(e){const t=e;return t?.composition?{cho:t.composition.cho??null,jung:t.composition.jung??null,jong:t.composition.jong??null,syllable:t.composition.syllable??null}:t?.choseong?{...un,cho:t.choseong}:un}function ph(e,t,a){const{t:r,i18n:n}=me.useTranslation(),[i]=l.useState(()=>a?.resetOnMount?null:uh(e)),s=i?.contrastCount,c=typeof s=="number"&&Number.isFinite(s)?s:1,[d,u]=l.useState(Math.min(5,Math.max(1,c))),[m,h]=l.useState(i?.phonemeView==="pron"?"pron":i?.phonemeView==="direct"?"direct":"char"),[p,g]=l.useState(()=>v5(i)),f=l.useCallback(()=>t.requireSyllable?{cho:"\u3131",jung:"\u314F",jong:ra,syllable:t.fixedSyllable??null}:{cho:null,jung:null,jong:t.fixedNoCoda?ra:null,syllable:t.fixedSyllable??null},[t.requireSyllable,t.fixedSyllable,t.fixedNoCoda]);l.useEffect(()=>{!t.requireSyllable&&t.fixedSyllable==null&&!t.fixedNoCoda||g(I=>I.cho||I.jung||I.syllable!=null||I.jong?I:f())},[]);const b=l.useMemo(()=>ft(p.cho)||ft(p.jung)||ft(p.jong)?"count":"random",[p.cho,p.jung,p.jong]),v=l.useRef(m==="char"?p.jung:null);l.useEffect(()=>{m==="char"&&(v.current=p.jung)},[m,p.jung]);const[y,_]=l.useState(a?.resetOnMount?!!a?.defaultImageOnly:i?.excludeNoImage??!0),[x,C]=l.useState(a?.resetOnMount?!1:i?.sameStructureOnly??!0),[k,w]=l.useState(Array.isArray(i?.gradeFilter)?i.gradeFilter:[]),[S,j]=l.useState(Array.isArray(i?.posFilter)?i.posFilter:[]),[A,B]=l.useState(Array.isArray(i?.wordTypeFilter)?i.wordTypeFilter:[]),W=l.useRef(a?.resetKey);l.useEffect(()=>{W.current!==a?.resetKey&&(W.current=a?.resetKey,g(f()),_(!1),C(!1),w([]),j([]),B([]),u(1))},[a?.resetKey]);const M=dl(),[T,$]=l.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[E,H]=l.useState(!1),[te,Q]=l.useState(null),ae=1,N=Math.max(1,[p.cho,p.jung,p.jong].filter(Boolean).length);l.useEffect(()=>{d<N&&u(N)},[N,d]);const[L,R]=l.useState(e);l.useEffect(()=>{if(L!==e){if(!a?.resetOnMount){const I=uh(e),Z=typeof I?.contrastCount=="number"&&Number.isFinite(I.contrastCount)?I.contrastCount:1;u(Math.min(5,Math.max(1,Z))),g(I?.composition??f()),_(I?.excludeNoImage??!0),C(I?.sameStructureOnly??!0),h(I?.phonemeView==="pron"?"pron":"char"),w(Array.isArray(I?.gradeFilter)?I.gradeFilter:[]),j(Array.isArray(I?.posFilter)?I.posFilter:[]),B(Array.isArray(I?.wordTypeFilter)?I.wordTypeFilter:[])}R(e)}},[e,L,a?.resetOnMount]),l.useEffect(()=>{if(!a?.resetOnMount&&L===e)try{localStorage.setItem(dh(e),JSON.stringify({contrastCount:d,composition:p,excludeNoImage:y,sameStructureOnly:x,phonemeView:m,gradeFilter:k,posFilter:S,wordTypeFilter:A}))}catch{}},[a?.resetOnMount,e,L,d,p,y,x,m,k,S,A]);const[z,V]=l.useState(0);ur("wordpool:update",()=>V(I=>I+1));const X=l.useRef(n.language);l.useEffect(()=>{X.current!==n.language&&(X.current=n.language,V(I=>I+1))},[n.language]),l.useEffect(()=>{if(!t.choseong)return;let I=!1;return j4({difficulty:b,excludeNoImage:y}).then(Z=>{I||($(Z),Z.cho.size+Z.jung.size+Z.jong.size>0&&H(!0))}).catch(()=>{I||$({cho:new Set,jung:new Set,jong:new Set,syllable:new Set})}),()=>{I=!0}},[t.choseong,b,y,z]),l.useEffect(()=>{let I=!1;const Z=p,J=Z.cho?ba(Z.cho):null,fe=Z.jung?ba(Z.jung):null,De=Z.jong===ra,$e=De?null:Z.jong?ba(Z.jong):null,Le=Z.syllable!=null?dn(Z.syllable):null,Ee=!!(J||fe||$e||De||Le);return E4({difficulty:t.difficulty?b:null,contrastCount:t.difficulty?d:1,composition:t.choseong&&Ee?{cho:J,jung:fe,jong:$e,jongNone:De,syllable:Le}:null,excludeNoImage:y,sameStructureOnly:x,phonemeView:m==="pron"?"pron":"char",grade:k.length>0?k:null}).then(je=>{I||Q(je)}).catch(()=>{I||Q(null)}),()=>{I=!0}},[t.choseong,t.difficulty,b,d,p,m,y,x,z,k]),l.useEffect(()=>{E&&g(I=>{const Z={...I};let J=!1;return["cho","jung","jong"].forEach(fe=>{const De=I[fe];!De||De===ra||ba(De).some($e=>T[fe].has($e))||(Z[fe]=null,J=!0)}),I.syllable!=null&&t.fixedSyllable==null&&(I.syllable>=na?[...T.syllable].some(fe=>fe>=na)||(Z.syllable=null,J=!0):(!T.syllable.has(I.syllable)||I.syllable<ae)&&(Z.syllable=null,J=!0)),J?Z:I})},[T,E,ae,t.fixedSyllable]);const F=l.useMemo(()=>{const I=Z=>{const J=new Set;for(const fe of lh[Z])T[Z].has(fe)&&J.add(fe);return J};return{cho:I("cho"),jung:I("jung"),jong:I("jong")}},[T]),Y=l.useMemo(()=>({exact:new Set(ih.filter(I=>T.syllable.has(I))),min:[...T.syllable].some(I=>I>=na)}),[T]),O=l.useMemo(()=>({diffPhonemeCount:r("training.contrast.diffPhonemeCount",{defaultValue:"\uB2E4\uB978 \uC74C\uC18C\uC758 \uCD1D \uAC2F\uC218"}),composition:r("wordPairs.composition","\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131"),syllableCount:r("wordPairs.syllableCount","\uC74C\uC808 \uC218"),onset:r("wordPairs.onset","\uCD08\uC131"),vowel:r("wordPairs.vowel","\uBAA8\uC74C"),coda:r("wordPairs.coda","\uC885\uC131"),phonemeGroup:r("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),trainOnset:r("training.filter.trainOnset",{defaultValue:"\uCD08\uC131"}),trainVowel:r("training.filter.trainVowel",{defaultValue:"\uBAA8\uC74C"}),trainCoda:r("training.filter.trainCoda",{defaultValue:"\uC885\uC131"}),random:r("training.filter.random","\uBB34\uC791\uC704"),exclude:r("wordSearch.filter.exclude","\uC81C\uC678"),selectLabel:r("training.filter.selectSection",{defaultValue:"\uC120\uD0DD"}),none:r("common.none","\uC5C6\uC74C"),noImage:r("wordSearch.filter.excludeNoImage","\uC774\uBBF8\uC9C0 \uC5C6\uC74C"),excludeImage:r("training.filter.excludeImage",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"}),sameStructure:r("training.filter.sameStructure",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"}),noLimit:r("training.filter.noLimit",{defaultValue:"\uBB34\uAD00"}),codaExclude:r("training.filter.codaExclude",{defaultValue:"\uC81C\uC678"}),gradeLabel:r("training.filter.gradeLabel",{defaultValue:"\uB09C\uC774\uB3C4 \uB4F1\uAE09"})}),[r]),ne=l.useMemo(()=>({[O.trainOnset]:"cho",[O.trainVowel]:"jung",[O.trainCoda]:"jong"}),[O]),ue=l.useCallback((I,Z)=>({title:Z,items:I}),[]),xe=l.useMemo(()=>[r("training.filter.excludeImageInfo",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4."}),r("training.filter.sameStructureInfo",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694."})],[r]),ve=l.useMemo(()=>{const I=[];if(t.choseong){const Z={value:ra,displayLabel:O.codaExclude},J=t.fixedNoCoda===!0,fe=(De,$e)=>{const Le=J&&De==="jong",Ee={label:$e,groupLabel:O.phonemeGroup,allOption:!t.requireSyllable,allLabel:O.noLimit,allOptionDisabled:Le};if(m==="pron"){const Te=fl[De].map(Ie=>Ie.map(({v:He,tooltip:be})=>{const Ke=ba(He),Ve=Le||!Ke.some(Re=>T[De].has(Re));return Ke.length>1?{value:He,labels:Ke,tooltip:be,disabled:Ve}:{value:He,tooltip:be,disabled:Ve}}));return De==="jong"&&!t.requireCoda&&Te.unshift([Z]),{...Ee,groups:Te}}const je=lh[De].map(Te=>!Le&&F[De].has(Te)?Te:{value:Te,disabled:!0});return{...Ee,items:De==="jong"&&!t.requireCoda?[Z,...je]:je}};I.push(fe("cho",O.trainOnset)),I.push(fe("jung",O.trainVowel)),I.push(fe("jong",O.trainCoda))}if(I.push({...ul(r,M,{labelInfo:ue([r("wordPairs.filter.difficultyInfo",{defaultValue:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4."})])}),label:O.gradeLabel}),t.partOfSpeech&&I.push(pl(M)),t.wordType&&I.push(hl(M)),t.choseong||t.fixedSyllable!=null){const Z=t.fixedSyllable;I.push({label:O.syllableCount,items:[...ih.map(J=>({value:bl(J),displayLabel:r("wordPairs.syllableN",{n:J,defaultValue:"{{n}}\uC74C\uC808"}),disabled:Z!=null?J!==Z:!Y.exact.has(J)||J<ae})),{value:bl(na),displayLabel:r("wordPairs.syllableNPlus",{n:na,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:Z!=null?na!==Z:!Y.min}],allOption:!0,allOptionDisabled:Z!=null})}return t.choseong?I.push({label:O.exclude,displayLabel:O.selectLabel,multiple:!0,items:[O.excludeImage,O.sameStructure],labelInfo:ue(xe)}):I.push({label:O.exclude,displayLabel:O.selectLabel,multiple:!0,items:[O.excludeImage],labelInfo:ue([xe[0]])}),I},[t.choseong,t.partOfSpeech,t.wordType,t.requireSyllable,t.fixedSyllable,t.fixedNoCoda,t.requireCoda,ae,F,T,m,Y,O,r,ue,xe,M]),pe={...t.difficulty?{[O.diffPhonemeCount]:String(d)}:{},...(t.choseong||t.fixedSyllable!=null)&&p.syllable!=null?{[O.syllableCount]:bl(p.syllable)}:{},...t.choseong&&p.cho?{[O.trainOnset]:p.cho}:{},...t.choseong&&p.jung?{[O.trainVowel]:p.jung}:{},...t.choseong&&p.jong?{[O.trainCoda]:p.jong}:{},[O.exclude]:[...y?[O.excludeImage]:[],...x?[O.sameStructure]:[]],[O.gradeLabel]:k.map(I=>r("wordSearch.filter.grade",{n:Number(I),defaultValue:"{{n}}\uB4F1\uAE09"})),...t.partOfSpeech?{[M.partOfSpeech]:S}:{},...t.wordType?{[M.wordType]:A}:{}},P=l.useCallback((I,Z)=>{if(Z===O.diffPhonemeCount){const J=Number(I);J>=1&&u(J)}else if(Z===O.exclude)I===O.excludeImage?_(J=>!J):I===O.sameStructure&&C(J=>!J);else if(Z===O.syllableCount)g(J=>{if(!I||I===Dt)return{...J,syllable:null};const fe=b5(I);return{...J,syllable:J.syllable===fe?null:fe}});else if(Z===O.gradeLabel){if(!I||I===Dt){w([]);return}const J=I.replace(/\D/g,"");w(fe=>fe.includes(J)?fe.filter(De=>De!==J):[...fe,J])}else if(Z===M.partOfSpeech){if(!I||I===Dt){j([]);return}j(J=>J.includes(I)?J.filter(fe=>fe!==I):[...J,I])}else if(Z===M.wordType){if(!I||I===Dt){B([]);return}B(J=>J.includes(I)?J.filter(fe=>fe!==I):[...J,I])}else{const J=ne[Z];if(!J)return;g(fe=>t.requireSyllable?I&&I!==Dt?{...fe,[J]:I}:fe:!I||I===Dt||fe[J]===I?{...fe,[J]:null}:{...fe,[J]:I})}},[O,ne,M,t.requireSyllable]),q=l.useCallback(I=>!t.partOfSpeech&&!t.wordType?!0:d5(I,{...t.partOfSpeech?{[M.partOfSpeech]:S}:{},...t.wordType?{[M.wordType]:A}:{}},M),[t.partOfSpeech,t.wordType,S,A,M]),oe=l.useCallback(I=>{I!==m&&(I!=="direct"&&m!=="direct"&&g(Z=>xl(Z,I,v.current)),h(I))},[m]),ge=l.useCallback(()=>({composition:p,contrastCount:d,excludeNoImage:y,sameStructureOnly:x,phonemeView:m,gradeFilter:k}),[p,d,y,x,m,k]),de=l.useCallback(I=>{g(I.composition),u(I.contrastCount),_(I.excludeNoImage),C(I.sameStructureOnly??!0),h(I.phonemeView),w(Array.isArray(I.gradeFilter)?I.gradeFilter:[])},[]);return{difficulty:b,contrastCount:d,composition:p,choseong:p.cho,excludeNoImage:y,sameStructureOnly:x,gradeFilter:k,posFilter:S,wordTypeFilter:A,matchesWordAttributes:q,poolVersion:z,filterSections:ve,filterSelected:pe,handleFilterSelect:P,phonemeView:m,setPhonemeView:oe,phonemeGroupLabel:O.phonemeGroup,wordCount:te,getFilterSnapshot:ge,restoreFilterSnapshot:de}}function y5(e){const t=c=>c?ba(c):null,a=t(e.cho),r=t(e.jung),n=e.jong===ra,i=n?null:t(e.jong),s=e.syllable!=null?dn(e.syllable):null;return!a&&!r&&!i&&!n&&!s?null:{cho:a,jung:r,jong:i,jongNone:n,syllable:s}}function hh(e,t,a,r,n,i,s=!0,c="char",d=[]){const[u,m]=l.useState({}),[h,p]=l.useState(!1),{cho:g=null,jung:f=null,jong:b=null,syllable:v=null}=r??{},y=d.length>0?d.slice().sort().join(","):"";return l.useEffect(()=>{i>0&&D4(n).catch(()=>{})},[i,n]),l.useEffect(()=>{let _=!1;return p(!0),(async()=>{const x=y5({cho:g,jung:f,jong:b,syllable:v}),C=`${g??""}_${f??""}_${b??""}_${v??""}_${y}`,k={};await Promise.all(e.map(async w=>{const S=fo[w.key];try{const j=await Np(w.key,{difficulty:S.difficulty?t:null,contrastCount:S.difficulty?a:1,composition:S.choseong?x:null,count:5,excludeNoImage:n,sameStructureOnly:s,phonemeView:c,grade:d.length>0?d:null});j&&j.length>0?k[w.key]={id:`wt-${w.key}-${t}-${C}-${Date.now()}`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:j,itemCount:j.length}:k[w.key]={id:`wt-${w.key}-empty`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:[],itemCount:0,__empty:!0}}catch{k[w.key]=null}})),_||(m(k),p(!1))})(),()=>{_=!0}},[t,a,g,f,b,v,n,s,c,i,y]),{perTypeData:u,generating:h}}function x5(e){let t=2166136261;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,16777619);return t>>>0}function C5(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let a=Math.imul(t^t>>>15,1|t);return a=a+Math.imul(a^a>>>7,61|a)^a,((a^a>>>14)>>>0)/4294967296}}const pn=Jt;function Cl(e,t){const a=t?C5(x5(t)):Math.random;return{LISTEN_IN_NOISE:pn(Ra,Math.max(0,e.LISTEN_IN_NOISE||0),a),SHORT_STORY:pn($a,Math.max(0,e.SHORT_STORY||0),a),LONG_STORY:pn(Ia,Math.max(0,e.LONG_STORY||0),a),ORDERING_SENTENCE:pn(za,Math.max(0,e.ORDERING_SENTENCE||0),a)}}function mh(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const _5={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function bh(e=!1,t=_5,a){const r=ka(Date.now()),n=ka(Date.now()-864e5),i=`${a??""}|${r}`,s=`${a??""}|${n}`;return Ra.length>0||$a.length>0||Ia.length>0||za.length>0?{today:Cl(t,i),yesterday:Cl(t,s)}:{today:Cl(t,i),yesterday:null}}function gh(e){const t=l.useRef({LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),a=l.useRef(null),[r,n]=l.useState(!1),[i,s]=l.useState(!1),[c,d]=l.useState(0),[u,m]=l.useState(!1);l.useEffect(()=>{let p=!1,g,f=0;const b=40,v=()=>{g!==void 0&&(clearInterval(g),g=void 0)};let y=!1;try{const C=new URLSearchParams(window.location.search),k=C.get("forceRefresh")||C.get("force");y=k==="1"||k==="true"}catch{}const _=C=>{t.current=C.today,a.current=C.yesterday,n(!0),m(!0),d(k=>k+1),p=!0,v()},x=async()=>{if(p)return;if(!y){const k=bh(!1,void 0,e);if(mh(k.today)){_(k);return}}try{await ys(3e3)}catch{}if(p)return;const C=bh(y,void 0,e);if(mh(C.today)){_(C);return}++f>=b&&(n(!0),m(!1),p=!0,v())};return x(),g=setInterval(x,250),()=>{p=!0,v()}},[e]);const h=l.useCallback(p=>{const g=i?a.current:t.current,f=i?t.current:a.current;return g?.[p]?.length?g[p]:f?.[p]?.length?f[p]:void 0},[i,c]);return{loaded:r,hasData:u,showYesterday:i,setShowYesterday:s,getTrainingPerType:h}}const wo=[];let hn=!1;function fh(e){if(e.key!=="Escape"||e.defaultPrevented)return;const t=wo[wo.length-1];t&&(e.stopPropagation(),t())}function _l(e){return wo.push(e),!hn&&typeof document<"u"&&(document.addEventListener("keydown",fh),hn=!0),()=>{const t=wo.lastIndexOf(e);t>=0&&wo.splice(t,1),wo.length===0&&hn&&typeof document<"u"&&(document.removeEventListener("keydown",fh),hn=!1)}}function wl(e,t=!0){const a=tl(e);l.useEffect(()=>{if(t)return _l(()=>{a.current?.()})},[t,a])}const mn=(e,t)=>`${e}:${t??1}`,kl=new Map;function vh(e,t){const[a,r]=l.useState(0),n=e.map(i=>mn(i.word,i.homonum)).join("|");return l.useEffect(()=>{const i=(n?n.split("|"):[]).filter(d=>!kl.has(d));if(i.length===0)return;let s=!1;const c=Array.from(new Set(i.map(d=>d.slice(0,d.lastIndexOf(":")))));return t(c).then(d=>{if(!(s||d.length===0)){for(const u of d)u.Meaning&&kl.set(mn(u.Word,u.Homonum??void 0),u.Meaning);r(u=>u+1)}}),()=>{s=!0}},[n,t]),l.useMemo(()=>{const i=n?n.split("|"):[],s=new Map;for(const c of i){const d=kl.get(c);d!=null&&s.set(c,d)}return s},[n,a])}function ko(){const[e,t]=l.useState(null),a=l.useCallback(i=>t(i.getBoundingClientRect()),[]),r=l.useCallback(()=>t(null),[]),n=l.useCallback(i=>{const s=i.getBoundingClientRect();t(c=>c?null:s)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:n}}function yh(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useRef(null);l.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const s=l.useCallback((d,u)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),n(u)},e)},[e]),c=l.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),n(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:s,close:c}}function xh(e,t,a){const r=Number.isFinite(t)&&t>=1?Math.floor(t):1,n=Math.max(1,Math.ceil(e.length/r)),i=Number.isFinite(a)?Math.min(Math.max(1,Math.floor(a)),n):1;return{pageItems:l.useMemo(()=>e.slice((i-1)*r,i*r),[e,i,r]),totalPages:n,curPage:i}}function bn(e="warning"){const[t,a]=l.useState(""),[r,n]=l.useState(e),[i,s]=l.useState(0),c=l.useCallback((h,p)=>{n(p),a(h),s(g=>g+1)},[]),d=l.useCallback(h=>c(h,"warning"),[c]),u=l.useCallback(h=>c(h,"normal"),[c]),m=l.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:d,showNormal:u,clearToast:m}}const pr={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},hr=pr.blue,gn=pr.green,mr=pr.amber,fn=pr.purple,w5=pr.pink,k5=[{key:"discrimination",label:"\uBCC0\uBCC4\uD6C8\uB828",disc:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0, \uB610\uB294 \uD2B9\uC815 \uC18C\uB9AC\uB97C \uAD6C\uBCC4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"ear",types:[{key:"SAME_SOUND_PICK",label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",icon:"volume-2",color:hr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"SAME_OR_DIFF",label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",icon:"diff",color:hr,subTitle:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},{key:"HEAR_AND_PICK_SAME",label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"headphones",color:hr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"HEAR_AND_PICK_INCLUDED",label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"scan-search",color:hr,subTitle:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"STARTS_WITH_SAME_SOUND",label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"play-circle",color:hr,subTitle:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."}]},{key:"synthesis",label:"\uD569\uC131\uD6C8\uB828",disc:"\uB450 \uAC1C \uC774\uC0C1\uC758 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uD569\uCCD0 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"git-merge",types:[{key:"MERGE_2_SYLLABLES",label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",icon:"link-2",color:gn,subTitle:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_SYLLABLES",label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",icon:"git-merge",color:gn,subTitle:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_2_PHONEMES",label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",icon:"combine",color:gn,subTitle:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_PHONEMES",label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",icon:"braces",color:gn,subTitle:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"}]},{key:"deletion",label:"\uD0C8\uB77D\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC5D0\uC11C \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uC81C\uAC70\uD588\uC744 \uB54C \uB0A8\uB294 \uC18C\uB9AC\uB97C \uC778\uC2DD\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"scissors",types:[{key:"DROP_1_FROM_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"scissors",color:mr,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_1_FROM_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"minus-circle",color:mr,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_PART_FROM_COMPOUND",label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84\uD0C8\uB77D",icon:"unlink",color:mr,subTitle:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_FINAL_CONSONANT_FROM_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",icon:"eraser",color:mr,subTitle:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"REMOVE_CONSONANT_AND_IDENTIFY_PHONEME",label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",icon:"audio-lines",color:mr,subTitle:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"}]},{key:"substitution",label:"\uB300\uCE58\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC758 \uC77C\uBD80 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uBC14\uAFB8\uC5B4 \uC0C8\uB85C\uC6B4 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"replace",types:[{key:"CHANGE_1_SYLL_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"replace",color:fn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_SYLL_IN_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"shuffle",color:fn,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"arrow-right-left",color:fn,subTitle:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"flip-horizontal",color:fn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}]},{key:"attention",label:"\uCCAD\uAC01\uC801\uC8FC\uC758\uB825\uD6C8\uB828",disc:"\uC5EC\uB7EC \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uC21C\uC11C\uB97C \uAE30\uC5B5\uD558\uB294 \uC8FC\uC758\uB825\uACFC \uB2E8\uAE30 \uAE30\uC5B5 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"list-ordered",types:[{key:"LISTEN_AND_REMEMBER_ORDER",label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",icon:"list-ordered",color:w5,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function Ch(){const{t:e}=me.useTranslation();return l.useMemo(()=>{const t=Object.fromEntries(i4(e).map(r=>[r.key,r.label])),a={...t};return k5.flatMap(r=>r.types).forEach(r=>{a[r.key]=e(`trainingType.${r.key}.label`,{defaultValue:r.label})}),{sentence:t,all:a}},[e])}function ao({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[n,i]=l.useState(!1),[s,c]=l.useState({}),d=l.useRef(null),u=l.useRef(null),m=l.useCallback(()=>{d.current&&c(e(d.current.getBoundingClientRect()))},[e]);l.useEffect(()=>{if(!n)return;m();const g=y=>{const _=y.target;r&&_.closest?.(r)||d.current?.contains(_)||u.current?.contains(_)||i(!1)};document.addEventListener("mousedown",g);const f=y=>{u.current?.contains(y.target)||(t==="reposition"?m():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",f,!0);const b=()=>{a==="reposition"?m():a==="close"&&i(!1)};a!=="ignore"&&window.addEventListener("resize",b);const v=y=>{y.key==="Escape"&&i(!1)};return document.addEventListener("keydown",v),()=>{document.removeEventListener("mousedown",g),t!=="ignore"&&window.removeEventListener("scroll",f,!0),a!=="ignore"&&window.removeEventListener("resize",b),document.removeEventListener("keydown",v)}},[n,m,t,a,r]);const h=l.useCallback(()=>i(g=>!g),[]),p=l.useCallback(()=>i(!1),[]);return{open:n,setOpen:i,toggle:h,close:p,style:s,triggerRef:d,menuRef:u}}function Sl(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:n,playMs:i=1100,feedbackMs:s=1500}={}){const[c,d]=l.useState([]),[u,m]=l.useState(0),[h,p]=l.useState("idle"),[g,f]=l.useState(null),[b,v]=l.useState([]),[y,_]=l.useState(null),[x,C]=l.useState(0),k=l.useRef(0),w=l.useCallback(N=>{k.current=typeof N=="function"?N(k.current):N,C(k.current)},[]),S=l.useRef(r),j=l.useRef(n);l.useEffect(()=>{S.current=r,j.current=n},[r,n]);const A=l.useRef([]),B=()=>{A.current.forEach(clearTimeout),A.current=[]},W=(N,L)=>{A.current.push(setTimeout(L,N))};l.useEffect(()=>()=>B(),[]);const M=c[u]?.id??null,T=l.useCallback(()=>{B(),p("playing"),v([]),_(null),w(0);let N=0;e.forEach((L,R)=>{W(N,()=>{m(R),f(L.id),S.current?.(L)}),W(N+1e3,()=>{f(null),v(z=>[...z,L.id])}),N+=1300}),W(N,()=>{p("done"),j.current?.({score:0,total:e.length})})},[e,w]),$=l.useCallback((N,L)=>{if(L>=N.length){p("done"),j.current?.({score:k.current,total:N.length});return}m(L),_(null),p("playing"),f(N[L].id),S.current?.(N[L]),W(i,()=>{f(null),p("waiting")})},[i]),E=l.useCallback(()=>{B();const N=Ge(e);d(N),w(0),v([]),$(N,0)},[e,$,w]),H=l.useCallback(()=>{t==="playback"?(d(e),T()):E()},[t,e,T,E]),te=l.useCallback(()=>{B(),p("idle"),f(null),v([]),_(null),m(0),w(0),d([])},[w]);l.useEffect(()=>{a?H():te()},[t,e.length,a]);const Q=l.useCallback(N=>{h!=="waiting"||t==="playback"||(_(N),N===c[u]?.id&&w(L=>L+1),t==="exam"?(p("playing"),W(400,()=>$(c,u+1))):(p("feedback"),W(s,()=>$(c,u+1))))},[h,t,c,u,$,s,w]),ae=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:g,playedIds:b,selectedId:y,answerId:M,showFeedback:h==="feedback",clickable:h==="waiting",onSelectSpeaker:Q},index:u,total:ae,score:x,phase:h,done:h==="done",start:H,reset:te}}var S5=Object.freeze({__proto__:null,CACHE_GROUPS:nl,CORE_VERSION:nn,DocumentTitleSuppressContext:ol,EMPTY_COMPOSITION:un,MediaQueryOverrideContext:ln,NO_CODA:ra,SYLLABLE_MIN:na,VAP_PAGE_SIZE_OPTIONS:sl,buildGradeSection:ul,buildPartOfSpeechSection:pl,buildPositionSection:rh,buildSelectSection:oh,buildSyllableSection:ah,buildWordTypeSection:hl,charToPronValue:vl,convertComposition:xl,fmtBytes:Yp,lsBytes:il,meaningKey:mn,pronToCharValue:yl,syllableToFilter:dn,today:_o,toggleAttributeFilter:nh,useAnchoredMenu:ao,useCacheManagement:Up,useDailyTrainingSelection:gh,useDelayedHoverAnchor:yh,useDeviceManagement:th,useDocumentTitle:rl,useEscToClose:wl,useFontScale:sn,useHoverAnchor:ko,useMediaQuery:oa,usePagedList:xh,usePasswordChange:qp,useRelativeDay:Gp,useSoundCompassExam:Sl,useTablePaging:ll,useTableSort:cl,useToastState:bn,useTrainingTypeLabels:Ch,useVisitAllPanel:eh,useVisitHistory:Xp,useVisitSchedule:Qp,useWindowEvent:ur,useWordAttributeFilterKeys:dl,useWordDataStats:Kp,useWordMeanings:vh,useWordTrainingDataGeneration:hh,useWordTrainingFilter:ph,valueToJamos:ba}),A5=".ihabdevteam-core-scope .promo-banner{align-items:center;border-radius:var(--radius-s);box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;overflow:hidden;position:relative;text-align:left}.ihabdevteam-core-scope .promo-banner--medium{min-height:120px;padding:20px 24px}.ihabdevteam-core-scope .promo-banner--small{padding:14px 16px}.ihabdevteam-core-scope .promo-banner__title{color:inherit;color:var(--promo-banner-bg-title,inherit)}.ihabdevteam-core-scope .promo-banner__description{color:inherit;color:var(--promo-banner-bg-description,inherit)}.ihabdevteam-core-scope .promo-banner__text{display:flex;flex-direction:column;justify-content:center;min-width:0;position:relative;z-index:1}.ihabdevteam-core-scope .promo-banner__description{margin-left:2px;margin-top:1px}.ihabdevteam-core-scope .promo-banner>.button{flex-shrink:0;position:relative;z-index:1}";ee(A5);function _h({title:e,description:t,actionLabel:a,onAction:r,bg:n,color:i,size:s="medium",actionVariant:c,titleColor:d,descriptionColor:u,className:m=""}){const h=n??i??"main",p=l.useRef(null),[g,f]=l.useState("main"),b=oa("(max-width: 767px)");l.useLayoutEffect(()=>{const _=p.current;_&&(d!==void 0&&_.style.setProperty("--promo-banner-bg-title",d),u!==void 0&&_.style.setProperty("--promo-banner-bg-description",u))},[d,u]),l.useLayoutEffect(()=>{const _=p.current;if(!_)return;const x=Ss(_);f(x?.actionVariant??"main")},[h]);const v=_e("promo-banner",`promo-banner--${s}`,m),y=el[h];return o.jsxs("div",{ref:p,className:v,role:"note",children:[o.jsx(y,{}),o.jsxs("div",{className:"promo-banner__text",children:[o.jsx("span",{className:`promo-banner__title ${s==="small"?"body-2":"h2"}`,children:e}),t&&o.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&o.jsx(re,{size:40,variant:c??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...b?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}var T5='.ihabdevteam-core-scope .top-banner{--top-banner-min-h:120px;display:flex;flex-direction:column;padding-bottom:var(--spacing-page);position:relative}.ihabdevteam-core-scope .top-banner__viewport{border-radius:var(--radius-m);min-height:var(--top-banner-min-h);overflow:hidden}.ihabdevteam-core-scope .top-banner__track{align-items:stretch;display:flex;min-height:var(--top-banner-min-h);transition:transform .4s ease}.ihabdevteam-core-scope .top-banner__slide{flex:0 0 100%;min-width:0}.ihabdevteam-core-scope .top-banner__slide>*{box-sizing:border-box;min-height:100%;width:100%}.ihabdevteam-core-scope .top-banner__dots{bottom:calc(var(--spacing-page) + 12px);display:flex;gap:6px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .top-banner__dot{background:var(--color-white-a30);border:none;border-radius:3px;cursor:pointer;height:6px;padding:0;position:relative;transition:width .25s ease,background-color .25s ease;width:6px}.ihabdevteam-core-scope .top-banner__dot:after{content:"";height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:calc(100% + 6px)}.ihabdevteam-core-scope .top-banner__dot--active{background:var(--color-white);width:18px}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot{background:var(--color-lightGray-a80)}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot--active{background:var(--color-main)}';ee(T5);function wh({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":n}){const{t:i}=me.useTranslation(),s=n??i("topBanner.ariaLabel","\uBC30\uB108"),c=l.Children.toArray(e),d=c.length,[u,m]=l.useState(0),[h,p]=l.useState(!1),g=d>0?u%d:0;return l.useEffect(()=>{if(d<2||t<=0||h)return;const f=window.setInterval(()=>m(b=>(b+1)%d),t);return()=>window.clearInterval(f)},[d,t,h]),d===0?null:o.jsxs("section",{className:_e("top-banner",r),"aria-label":s,"aria-roledescription":"carousel",onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onFocus:()=>p(!0),onBlur:()=>p(!1),children:[o.jsx("div",{className:"top-banner__viewport",children:o.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${g*100}%)`},children:c.map((f,b)=>o.jsx("div",{className:"top-banner__slide","aria-hidden":b!==g,...b!==g?{inert:!0}:{},children:f},b))})}),d>1&&o.jsx("div",{className:`top-banner__dots${(a?.[g]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((f,b)=>o.jsx("button",{type:"button",className:`top-banner__dot${b===g?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:d,index:b+1,defaultValue:`${d}\uAC1C \uC911 ${b+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":b===g,onClick:()=>m(b)},b))})]})}var B5=".ihabdevteam-core-scope .accordion-item{background:transparent;border-radius:var(--radius-m)}.ihabdevteam-core-scope .accordion-item__header{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;cursor:pointer;display:flex;gap:var(--spacing-s);min-height:56px;outline:none;padding:0 20px;transition:background-color .2s ease,border-color .2s ease}.ihabdevteam-core-scope .accordion-item__header:hover{background:var(--color-deepWhite);border-color:var(--color-main)}.ihabdevteam-core-scope .accordion-item__header:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .accordion-item__avatar{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__title{flex:1;text-align:left}.ihabdevteam-core-scope .accordion-item__chevron{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__chevron-icon{align-items:center;color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .accordion-item__chevron-image{height:18px;opacity:.7;transition:transform .18s ease;width:18px}.ihabdevteam-core-scope .accordion-item.accordion-item--open{background:var(--color-main-a10);border-radius:var(--radius-m);overflow:hidden}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__header{background:var(--color-white);border:1px solid var(--color-main)}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__chevron-image{transform:rotate(180deg)}.ihabdevteam-core-scope .accordion-item__body p{margin:0}.ihabdevteam-core-scope .accordion-item__body{background:transparent;box-sizing:border-box;color:var(--color-darkGray);max-width:100%;overflow-wrap:break-word;padding:40px 32px;text-align:left;word-break:break-word}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{min-height:48px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{min-height:56px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{min-height:72px}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{border-radius:12px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{border-radius:14px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{border-radius:18px}.ihabdevteam-core-scope .accordion-group,.ihabdevteam-core-scope .accordion-group>.accordion-item{box-sizing:border-box;display:block;width:100%}.ihabdevteam-core-scope .accordion-group>.accordion-item+.accordion-item{margin-top:var(--spacing-s)}";ee(B5);function N5({title:e,body:t,open:a=!1,onToggle:r,avatar:n,titleClassName:i="body-2",bodyClassName:s="body-2",className:c=""}){const{t:d}=me.useTranslation();return o.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),children:[o.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:u=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),r?.();else if(u.key==="ArrowDown"||u.key==="ArrowUp"){u.preventDefault();const m=u.currentTarget.closest('[role="list"]');if(!m)return;const h=Array.from(m.querySelectorAll("[data-accordion-header]")),p=h.indexOf(u.currentTarget);(u.key==="ArrowDown"?h[p+1]:h[p-1])?.focus()}},children:[n&&o.jsx("div",{className:"accordion-item__avatar",children:n}),o.jsx("div",{className:`accordion-item__title ${i}`,children:e}),o.jsx("div",{className:"accordion-item__chevron",children:o.jsx(Fe,{icon:a?"chevron-up":"chevron-down",label:a?d("accordion.collapse","\uC811\uAE30"):d("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&o.jsx("div",{className:`accordion-item__body ${s}`,children:typeof t=="string"?o.jsx("p",{children:t}):t})]})}function kh({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:n}){const[i,s]=l.useState(t);return o.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>o.jsx(N5,{title:c.title,body:c.body,avatar:c.avatar,open:d===i,onToggle:()=>s(d===i?-1:d),bodyClassName:n},d))})}var D5=".ihabdevteam-core-scope .bottom-nav{align-items:flex-start;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:none;height:calc(72px + env(safe-area-inset-bottom));left:0;padding:8px calc(10px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(10px + env(safe-area-inset-left));position:fixed;right:0;z-index:var(--z-nav)}.ihabdevteam-core-scope .bottom-nav__left{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .bottom-nav__divider{align-self:flex-start;background:var(--color-whiteLine);border-radius:1px;flex-shrink:0;height:24px;margin:14px 0 0;width:1px}.ihabdevteam-core-scope .bottom-nav__items{align-items:center;display:flex;flex:1;gap:10px;justify-content:center;overflow:hidden}.ihabdevteam-core-scope .bottom-nav__right{align-items:center;display:flex;flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .bottom-nav{display:flex}}@media (min-width:768px){.ihabdevteam-core-scope .bottom-nav{display:none}}.ihabdevteam-core-scope .bottom-nav-item{align-items:center;background:transparent!important;border:none!important;border-radius:10px!important;color:var(--color-lightGray);cursor:pointer;display:flex!important;flex-direction:column;height:52px!important;justify-content:center;padding:0!important;transition:background .16s ease,color .16s ease!important;width:52px!important}.ihabdevteam-core-scope .bottom-nav-item:hover:not(.is-selected){background:var(--color-darkWhite)!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected{animation:bottom-nav-active-bg .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-sub)!important;box-shadow:0 6px 12px rgba(12,24,36,.06);color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected *{color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .bottom-nav-item:disabled,.ihabdevteam-core-scope .bottom-nav-item[disabled]{opacity:.6;pointer-events:none}@keyframes bottom-nav-active-bg{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";ee(D5);var E5=".ihabdevteam-core-scope .badge{align-items:center;background:var(--badge-color,var(--color-main));border-radius:999px;box-shadow:none;box-shadow:var(--badge-shadow,none);color:#fff;color:var(--badge-on-color,#fff);display:inline-flex;gap:6px;justify-content:center;line-height:1;vertical-align:middle;white-space:nowrap}.ihabdevteam-core-scope .badge--small{font-size:12px;height:20px;padding:0 10px}.ihabdevteam-core-scope .badge--medium{font-size:14px;height:28px;padding:0 14px}.ihabdevteam-core-scope .badge--large{font-size:16px;height:32px;padding:0 18px}.ihabdevteam-core-scope .badge__icon{align-items:center;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .badge--default{--badge-color:var(--color-lightGray);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--main{--badge-color:var(--color-main);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--sub{--badge-color:var(--color-sub);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--danger{--badge-color:var(--color-error);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--disabled{--badge-color:var(--color-disabled);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--like{--badge-color:var(--color-like);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--success{--badge-color:var(--color-success);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--warning{--badge-color:var(--color-warn);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--critical{--badge-color:#7c3aed;--badge-on-color:#fff}.ihabdevteam-core-scope .badge--outline{background:transparent;border:1px solid var(--badge-color);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .badge--soft{background:color-mix(in srgb,var(--badge-color) 10%,transparent);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .circle-badge{align-items:center;border:2px solid var(--color-pureWhite);border-radius:50%;box-sizing:border-box;display:inline-flex;flex-shrink:0;font-weight:700;justify-content:center;line-height:1;pointer-events:none;position:absolute;transition:background .12s,transform .12s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}@keyframes circle-badge-pop{0%{opacity:0;transform:scale(.3)}60%{opacity:1;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}.ihabdevteam-core-scope .circle-badge--animate{animation:circle-badge-pop .24s cubic-bezier(.34,1.56,.64,1)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .circle-badge--animate{animation:none}}.ihabdevteam-core-scope .circle-badge--clickable{cursor:pointer;pointer-events:auto}.ihabdevteam-core-scope .circle-badge--clickable:hover{transform:scale(1.12)}.ihabdevteam-core-scope .circle-badge--top-right{right:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--top-left{left:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--inline{border:none;position:static}.ihabdevteam-core-scope .circle-badge--24{border-width:1px;font-size:11px;height:24px;width:24px}.ihabdevteam-core-scope .circle-badge--32{border-width:2px;font-size:14px;height:32px;width:32px}.ihabdevteam-core-scope .circle-badge--40{border-width:2px;font-size:16px;height:40px;width:40px}.ihabdevteam-core-scope .circle-badge--check,.ihabdevteam-core-scope .circle-badge--number{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .circle-badge--remove{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .circle-badge--minus{background:var(--color-lightGray);color:#fff}.ihabdevteam-core-scope .circle-badge--24 svg{height:11px;width:11px}.ihabdevteam-core-scope .circle-badge--32 svg{height:15px;width:15px}.ihabdevteam-core-scope .circle-badge--40 svg{height:19px;width:19px}";ee(E5);function j5(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("polyline",{points:"2,6 5,9 10,3"})})}function L5(){return o.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[o.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),o.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function M5(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:o.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function ht(e){const{type:t="bar",size:a,className:r="","aria-label":n}=e;if(t==="dot"){const{icon:x,number:C,position:k="top-right",onClick:w,animate:S=!1}=e,j=C!==void 0?"number":x??"check",A=typeof a=="number"?a:32,B=_e("circle-badge",`circle-badge--${j}`,`circle-badge--${k}`,`circle-badge--${A}`,S?"circle-badge--animate":"",w?"circle-badge--clickable":"",r),W=C!==void 0?`${C}\uBC88\uC9F8 \uC120\uD0DD`:{check:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",minus:"\uC81C\uC678"}[x??"check"];return o.jsxs("span",{className:B,onClick:w,onKeyDown:w?M=>{M.key!=="Enter"&&M.key!==" "||(M.preventDefault(),M.currentTarget.click())}:void 0,"aria-label":n??W,role:w?"button":void 0,tabIndex:w?0:void 0,children:[C!==void 0&&C,C===void 0&&x==="check"&&o.jsx(j5,{}),C===void 0&&x==="remove"&&o.jsx(L5,{}),C===void 0&&x==="minus"&&o.jsx(M5,{})]})}const{label:i,children:s,variant:c="default",fill:d="filled",minWidth:u,iconLeft:m,iconRight:h,color:p}=e,g=typeof a=="number"?"medium":a??"medium",f={small:"caption-2b",medium:"body-3b",large:"body-2b"}[g]??"body-2b",b={small:12,medium:14,large:16}[g]??14,v=_e("badge",`badge--${c}`,`badge--${g}`,d!=="filled"?`badge--${d}`:"",f,r),y=p?.startsWith("--")?`var(${p})`:p,_=u!==void 0||y?{...u!==void 0?{minWidth:typeof u=="number"?`${u}px`:u}:{},...y?{"--badge-color":y}:{}}:void 0;return o.jsxs("span",{className:v,style:_,children:[m&&o.jsx(Fe,{icon:m,size:b,className:"badge__icon"}),i??s,h&&o.jsx(Fe,{icon:h,size:b,className:"badge__icon"})]})}var P5=".ihabdevteam-core-scope .tooltip-menu{display:flex;flex-direction:column;gap:var(--spacing-xs);min-width:160px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);display:flex;gap:var(--spacing-xs);height:52px;padding:8px 12px}.ihabdevteam-core-scope .tooltip-menu__title{font-weight:600}.ihabdevteam-core-scope .tooltip-menu__columns{display:flex;gap:var(--spacing-s);padding:4px}.ihabdevteam-core-scope .tooltip-menu__column{display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .tooltip-menu__column-title{color:var(--color-lightGray);margin-bottom:4px}.ihabdevteam-core-scope .tooltip-menu__items{display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .tooltip-menu--small{gap:2px;min-width:140px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__items{gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__columns{gap:var(--spacing-xs);padding:2px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__header{height:44px;padding:6px 10px}.ihabdevteam-core-scope .tooltip-menu__item{width:100%}@media (max-width:600px){.ihabdevteam-core-scope .tooltip-menu__columns{flex-direction:column}}";ee(P5);function br({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:n}=me.useTranslation(),i=r==="small"?40:48,[s,c]=l.useState([{title:null,columns:e}]),d=s[s.length-1];l.useEffect(()=>{c(f=>{try{if(!Array.isArray(f)||f.length===0)return[{title:null,columns:e}];const b=f.slice(),v=b[0]&&typeof b[0].title<"u"?b[0].title:null;return b[0]={title:v,columns:e},b}catch{return[{title:null,columns:e}]}})},[e]);const u=l.useCallback(()=>c(f=>f.length>1?f.slice(0,f.length-1):f),[]),m=l.useRef(null),h=l.useRef(null),p=s.length;l.useEffect(()=>{h.current||(h.current=document.activeElement);let f=0,b=0;const v=()=>{const y=m.current?.querySelector("button:not([disabled])");if(y&&y.offsetParent){y.focus({preventScroll:!0});return}b++<20&&(f=requestAnimationFrame(v))};return f=requestAnimationFrame(v),()=>cancelAnimationFrame(f)},[p]),l.useEffect(()=>()=>{h.current?.focus?.({preventScroll:!0})},[]);const g=l.useCallback(f=>{if(f){if(Array.isArray(f.children)&&f.children.length){c(b=>[...b,{title:f.label||null,columns:[{title:null,items:f.children||[]}]}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t]);return o.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(s.length>1||d.title)&&o.jsxs("div",{className:"tooltip-menu__header",children:[s.length>1?o.jsx(re,{size:i,type:"dot",icon:"chevron-left",ariaLabel:n("common.back","\uB4A4\uB85C"),onClick:u,variant:"transparent-gray",useBorder:!1}):null,o.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),o.jsx("div",{className:"tooltip-menu__columns",ref:m,children:d.columns&&d.columns.map((f,b)=>o.jsxs("div",{className:"tooltip-menu__column",children:[f.title?o.jsx("div",{className:"tooltip-menu__column-title body-3",children:f.title}):null,o.jsx("div",{className:"tooltip-menu__items",children:(f.items||[]).map((v,y)=>o.jsx(re,{className:"tooltip-menu__item",size:i,type:v.label?"bar":"dot",icon:v.selected?"check":v.icon||"none",rightIcon:Array.isArray(v.children)&&v.children.length?"chevron-right":v.badgeCount?o.jsx(ht,{type:"dot",position:"inline",number:Math.min(v.badgeCount,99),size:24,"aria-label":`${v.badgeCount}`}):void 0,label:v.label,ariaLabel:v.label,onClick:()=>g(v),selected:v.selected,disabled:v.disabled,showTooltipInfo:v.tooltip||!1,useBorder:!1,align:"left"},y))})]},b))})]})}const R5=52,Sh=10;function Al({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:n,moreItems:i=[]}){const{t:s}=me.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",u=r==="manager"?s("nav.modeLabelMalgwi","\uB9D0\uADC0"):s("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=l.useRef(null),[h,p]=l.useState(0),g=e.length;l.useEffect(()=>{const E=m.current;if(!E||(p(E.clientWidth),typeof ResizeObserver>"u"))return;const H=new ResizeObserver(te=>p(te[0].contentRect.width));return H.observe(E),()=>H.disconnect()},[]);const f=h>0?Math.floor((h+Sh)/(R5+Sh)):g,b=h>0&&f<g,v=b?f:g,y=e.slice(0,v),_=e.slice(v),x=b||i.length>0,C=l.useCallback(E=>({position:"fixed",bottom:window.innerHeight-E.top+8,right:window.innerWidth-E.right,zIndex:1e4}),[]),k=l.useId(),{open:w,toggle:S,close:j,style:A,triggerRef:B,menuRef:W}=ao({computeStyle:C,onScroll:"ignore",onResize:"ignore"}),M=l.useCallback(()=>n?.(c),[n,c]),T=l.useMemo(()=>_.find(E=>E.key===t)??i.find(E=>E.selected||E.key&&E.key===t),[_,t,i]),$=l.useMemo(()=>[{items:[..._.map(E=>({label:E.label,icon:E.icon,selected:E.key===t,closeOnSelect:!0,onClick:()=>{E.key&&a&&a(E.key),j()}})),...i.map(E=>({label:E.label,icon:E.icon,badgeCount:E.badgeCount,selected:E.selected??(!!E.key&&E.key===t),closeOnSelect:!0,onClick:()=>{E.onClick?.(),j()}}))]}],[_,i,t,a,j]);return o.jsxs("nav",{className:"bottom-nav","aria-label":s("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[n&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__left",children:o.jsx(re,{size:52,type:"dot",icon:d,ariaLabel:u,className:"bottom-nav-item",onClick:M})}),o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),o.jsx("div",{className:"bottom-nav__items",ref:m,children:y.map(E=>o.jsx(re,{size:52,type:"dot",icon:E.icon,ariaLabel:E.label,selected:E.key===t,disabled:E.state==="disabled",className:"bottom-nav-item",onClick:()=>E.key&&a?.(E.key)},E.key))}),x&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),o.jsx("div",{className:"bottom-nav__right",children:o.jsxs("div",{ref:B,children:[o.jsx(re,{size:52,type:"dot",icon:T?.icon??"ellipsis",ariaLabel:T?.label??s("nav.more","\uB354\uBCF4\uAE30"),selected:!!T,className:"bottom-nav-item",onClick:S,"aria-expanded":w,"aria-controls":w?k:void 0}),w&&qt.createPortal(o.jsx("div",{id:k,role:"group","aria-label":s("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:A,ref:W,children:o.jsx(br,{columns:$,onClose:j})}),document.body)]})})]})]})}var $5=".ihabdevteam-core-scope .side-nav__menu{-webkit-overflow-scrolling:touch;background-clip:padding-box;border-right:1px solid transparent;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:0 0 0 12px;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-gutter:stable;scrollbar-width:thin}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb:hover{background:var(--color-lightGray,var(--color-lightGray))}.ihabdevteam-core-scope .side-nav__menu-list{display:flex;flex:1 0 auto;flex-direction:column;gap:4px;overflow:visible;padding:4px 0}.ihabdevteam-core-scope .side-nav__notification-wrap{align-self:flex-start;display:inline-flex;position:relative}.ihabdevteam-core-scope .side-nav__footer{align-items:left;display:flex;flex-direction:column;flex-shrink:0;gap:var(--spacing-s);margin-top:var(--spacing-s);padding:0 0 var(--spacing-s) 0}.ihabdevteam-core-scope .side-nav__separator{background:var(--color-whiteLine);height:1px;margin:0 var(--spacing-s) var(--spacing-xs)}.ihabdevteam-core-scope .side-nav__separator--short{margin:4px var(--spacing-m);width:var(--spacing-xl)}@media (max-width:767px){.ihabdevteam-core-scope .side-nav__footer,.ihabdevteam-core-scope .side-nav__menu{display:none}}.ihabdevteam-core-scope .side-nav__item{align-items:center;background:transparent;border:none;border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);gap:var(--spacing-s);height:52px;justify-content:flex-start;padding:0 var(--spacing-m);text-align:left;width:100%}@keyframes ihabCoreSnSweep{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ihabCoreSnIconBounce{0%{transform:scale(1)}40%{transform:scale(1.12)}to{transform:scale(1)}}.ihabdevteam-core-scope .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-main) 50%,var(--color-sub) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:#fff}.ihabdevteam-core-scope .side-nav__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .side-nav__item.active .circle-badge{background:var(--color-pureWhite);color:var(--color-main)}.ihabdevteam-core-scope .side-nav__item .circle-badge--inline{border:1px solid var(--color-pureWhite)}.ihabdevteam-core-scope .side-nav__icon-wrap{display:inline-flex;flex:0 0 24px;position:relative}.ihabdevteam-core-scope .side-nav__icon{flex:0 0 24px}.ihabdevteam-core-scope .side-nav__icon img{display:block;height:20px;-o-object-fit:contain;object-fit:contain;width:20px}.ihabdevteam-core-scope .side-nav__icon-image{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:contain;display:inline-block;height:20px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:20px}.ihabdevteam-core-scope .side-nav__item .side-nav__icon img{filter:brightness(0) saturate(0) opacity(.45);transition:filter .16s ease,opacity .16s ease}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon img{filter:brightness(0) invert(1)}.ihabdevteam-core-scope .side-nav__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .side-nav__item{transition:background-color .16s ease,color .16s ease,transform 80ms ease}.ihabdevteam-core-scope .side-nav__item:focus-visible:not(.active),.ihabdevteam-core-scope .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .side-nav__item:hover:not(.active){background:var(--color-darkWhite)}.ihabdevteam-core-scope .side-nav__item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .side-nav__item.disabled,.ihabdevteam-core-scope .side-nav__item.disabled:focus,.ihabdevteam-core-scope .side-nav__item.disabled:hover{background:transparent;color:var(--color-lightGray);cursor:default;opacity:.6;pointer-events:none;transform:none}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon{color:var(--color-lightGray)}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon img{filter:none;opacity:.8}.ihabdevteam-core-scope .side-nav__item--child{height:40px;padding-left:30px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__icon{height:20px;width:20px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__label{font-weight:400}";ee($5);function I5(e){const{t}=me.useTranslation(),{activeKey:a,unreadCount:r,onDebug:n,onNotification:i,onSetting:s,onHelp:c,onAccount:d}=e||{},u="default";return o.jsxs("div",{className:"side-nav__footer",children:[n&&o.jsx(re,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:n,selected:a==="debug"}),o.jsxs("span",{className:"side-nav__notification-wrap",children:[o.jsx(re,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"bell",ariaLabel:t("nav.notifications","\uC54C\uB9BC"),onClick:i,selected:a==="notifications"}),!!r&&o.jsx(ht,{type:"dot",number:Math.min(r,99),size:24})]}),o.jsx(re,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:s,selected:a==="settings"}),o.jsx(re,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),o.jsx(re,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]})}function Ah(e){const{item:t,itemKey:a,label:r,icon:n,active:i,onClick:s,style:c,state:d,labelStyle:u}=e||{},m=t?.key??a??"",h=t?.label??r??"",p=t?.icon??n??"",g=t?.badge??0,f=o.jsx("span",{className:"side-nav__icon-wrap",children:o.jsx(Fe,{icon:p,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),b=d==="disabled",v=`side-nav__item ${i?"active":""} ${d||""} ${b?"disabled":""} ${t?.child?"side-nav__item--child":""}`,y=l.useCallback(_=>{if(!b){try{_.currentTarget.blur()}catch{}s?.(m,_.currentTarget)}},[b,m,s]);return o.jsxs("button",{className:v,onClick:y,"aria-label":typeof h=="string"?h:void 0,style:c,"aria-disabled":b,children:[f,o.jsx("span",{className:"side-nav__label button-1 f",style:u,children:h}),g>0&&o.jsx(ht,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-label":`${g}`}),d==="loading"&&o.jsx("span",{className:"side-nav__spinner","aria-label":"loading"})]})}function Tl(e){const{t}=me.useTranslation(),{items:a=[],activeKey:r,onChange:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}=e||{},g=l.useCallback(()=>p?.(h==="malgwi"?"manager":"malgwi"),[p,h]);return o.jsxs("nav",{"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[o.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,b)=>o.jsxs(l.Fragment,{children:[f.divider&&o.jsx("div",{className:"side-nav__separator"}),o.jsx(Ah,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(v,y)=>{if(f.disabled)return;if(f.href){window.open(f.href,"_blank","noopener,noreferrer");try{y?.blur()}catch{}return}n?.(f.key);try{const x=document.querySelector(".content-area");x?x.scrollTop=0:window.scrollTo({top:0})}catch{}try{y?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const _=document.querySelector(".header");if(_&&!(typeof _.matches=="function"&&_.matches(":hover"))){_.classList.add("header--force-collapsed");const x=()=>{_.classList.remove("header--force-collapsed"),_.removeEventListener("mouseenter",x)};_.addEventListener("mouseenter",x)}}})]},f.key??`side-nav__item-${b}`)),p&&o.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),p&&o.jsx(Ah,{item:{key:"__mode-switch__",label:h==="malgwi"?t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:h==="malgwi"?"arrow-right":"arrow-left"},onClick:g})]}),o.jsx(I5,{activeKey:r,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m})]})}var Bl='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2080_3066)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="black"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="black"/>%0A<path d="M46.4288 17.8571H25.0002C15.138 17.8571 7.14307 25.852 7.14307 35.7143V57.1428C7.14307 67.0051 15.138 75 25.0002 75H46.4288C56.291 75 64.2859 67.0051 64.2859 57.1428V35.7143C64.2859 25.852 56.291 17.8571 46.4288 17.8571Z" fill="%234DCDC0"/>%0A<path d="M34.8607 50.7393C25.8285 60.6821 10.6142 61.6678 0.385667 53.1643C-0.0821902 52.775 -0.13219 52.0678 0.278524 51.6178L16.3535 33.925L34.8607 50.7393Z" fill="%234DCDC0"/>%0A<path d="M53.5714 25H32.1428C22.2821 25 14.2856 32.9964 14.2856 42.8571V64.2857C14.2856 74.1464 22.2821 82.1429 32.1428 82.1429H48.2535C49.2178 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7214 51.8928 85.6321C62.8392 84.675 71.4285 75.4821 71.4285 64.2857V42.8571C71.4285 32.9964 63.4321 25 53.5714 25Z" fill="%234DCDC0"/>%0A<path d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23499CDF"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="white"/>%0A<path d="M36.0715 57.1429C35.0287 57.1429 33.9822 56.875 33.0358 56.3286C32.1822 55.8357 31.8894 54.7429 32.3858 53.8893C32.8787 53.0357 33.9715 52.7429 34.8251 53.2393C35.8037 53.8036 37.043 53.6429 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3536 40.4322 35.9107 37.5072 35.7286C36.5215 35.6679 35.5715 35.8464 34.693 36.2679C33.8037 36.6929 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0429C34.5751 32.3714 36.1537 32.0679 37.7322 32.1643C42.4894 32.4607 46.3072 36.4286 46.4251 41.1964C46.4822 43.5286 45.6715 45.7786 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9357C41.8965 53.2464 41.3037 54.4357 40.368 55.375C39.2001 56.5429 37.6465 57.15 36.0751 57.15L36.0715 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2080_3066">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Nl='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7374)">%0A<path d="M237.151 26.0393V72.7214H216.65V26.0393H237.151ZM234.408 70.0464V28.7179H219.254V70.0464H234.408ZM261.495 76.3607H258.819V48.9679H247.575V75.4679H244.899V23.9821H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3607Z" fill="black"/>%0A<path d="M299.722 69.2571C302.076 68.775 304.031 68.1464 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.789 72.0357C297.435 72.4929 295.045 72.7214 292.623 72.7214H272.257V25.6964H275V69.975H292.623C294.998 69.975 297.364 69.7357 299.722 69.2536V69.2571ZM311.69 76.4321V23.6393H314.433V76.3643L311.69 76.4321Z" fill="black"/>%0A<path d="M340.556 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.329 62.2643 333.632 65.925C330.935 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.33 63.1107C334.617 59.3572 336.354 54.5179 337.542 48.5893C338.73 42.6643 339.369 36.0393 339.461 28.7143H324.992V26.0357H356.602V28.7143H342.201C342.155 35.9 341.605 42.3072 340.556 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="black"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="black"/>%0A<path d="M181.886 47.8714V57.275C179.097 58.5571 174.73 59.1964 168.791 59.1964H168.174V76.3607H158.299V59.1964H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8714H181.886ZM148.971 34.2786V24.875H177.634V47.05H167.76V34.2821H148.971V34.2786ZM194.64 76.3607H184.765V23.6393H194.64V76.3643V76.3607Z" fill="black"/>%0A<path d="M48.1549 17.8571H26.7511C16.9002 17.8571 8.91455 25.852 8.91455 35.7143V57.1428C8.91455 67.0051 16.9002 75 26.7511 75H48.1549C58.0058 75 65.9915 67.0051 65.9915 57.1428V35.7143C65.9915 25.852 58.0058 17.8571 48.1549 17.8571Z" fill="%234DCDC0"/>%0A<path d="M36.6007 50.7393C27.579 60.6821 12.3823 61.6678 2.1655 53.1643C1.69818 52.775 1.64824 52.0678 2.05848 51.6178L18.1149 33.925L36.6007 50.7393Z" fill="%234DCDC0"/>%0A<path d="M55.2897 25H33.8859C24.0365 25 16.0493 32.9964 16.0493 42.8571V64.2857C16.0493 74.1464 24.0365 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7214 53.6131 85.6321C64.5469 84.675 73.1262 75.4821 73.1262 64.2857V42.8571C73.1262 32.9964 65.139 25 55.2897 25Z" fill="%234DCDC0"/>%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23499CDF"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="white"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7374">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',z5='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',O5='.ihabdevteam-core-scope .header{background:var(--color-deepWhite);border-left:1px solid var(--color-whiteLine);border-right:1px solid var(--color-whiteLine);bottom:0;box-sizing:content-box;display:flex;flex-direction:column;isolation:isolate;left:0;overflow:visible;overscroll-behavior:none;position:fixed;top:0;z-index:var(--z-sidebar)}.ihabdevteam-core-scope .header__menu-button{background:transparent;border:none;display:none}.ihabdevteam-core-scope .header__bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:flex;height:56px;justify-content:center;left:0;padding:0;padding-bottom:calc(var(--spacing-content) + env(safe-area-inset-bottom));position:fixed;right:0}.ihabdevteam-core-scope .header__category-button{background:transparent;border:none}.ihabdevteam-core-scope .header:before{background:linear-gradient(160deg,var(--color-main) 0,var(--color-sub) 100%);content:"";inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .2s ease;z-index:-1}.ihabdevteam-core-scope .header--manager{border-right-color:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .header--manager:before{opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__separator{background:hsla(0,0%,100%,.25)}.ihabdevteam-core-scope .header--manager .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item{color:var(--color-deepWhite)}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active){background:hsla(0,0%,100%,.15);color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active) .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active) .side-nav__icon{color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-pureWhite) 50%,color-mix(in srgb,var(--color-main) 50%,#fff) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-card);color:var(--color-darkGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:var(--color-lightGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon img{filter:none;opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__footer [role=button],.ihabdevteam-core-scope .header--manager .side-nav__footer button{color:hsla(0,0%,100%,.55)}@media (min-width:1024px){.ihabdevteam-core-scope .header{width:220px}.ihabdevteam-core-scope .header__bottom,.ihabdevteam-core-scope .header__menu-button{display:none}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .header__branding{height:80px}.ihabdevteam-core-scope .header .side-nav__menu{padding:0 10px;transition:padding .18s ease}.ihabdevteam-core-scope .header .side-nav__item{border-radius:var(--radius-card);gap:0;padding:0 14px;transition:padding .18s ease,gap .18s ease}.ihabdevteam-core-scope .header:focus-within .side-nav__menu,.ihabdevteam-core-scope .header:hover .side-nav__menu{padding:0 10px}.ihabdevteam-core-scope .header:focus-within .side-nav__item,.ihabdevteam-core-scope .header:hover .side-nav__item{gap:10px;padding:0 16px}.ihabdevteam-core-scope .header .side-nav__label{display:inline-block;max-width:0;opacity:0;overflow:hidden;pointer-events:none;transform:translateX(-6px);transition:max-width .18s ease,opacity .18s ease,transform .18s ease;white-space:nowrap}.ihabdevteam-core-scope .header{overflow:visible;transition:width .18s ease;width:72px}.ihabdevteam-core-scope .header:focus-within,.ihabdevteam-core-scope .header:hover{width:220px}.ihabdevteam-core-scope .header:focus-within .side-nav__label,.ihabdevteam-core-scope .header:hover .side-nav__label{max-width:200px;opacity:1;pointer-events:auto;transform:translateX(0)}.ihabdevteam-core-scope .header.header--force-collapsed{width:72px}.ihabdevteam-core-scope .header.header--force-collapsed .side-nav__label{max-width:0;opacity:0;pointer-events:none;transform:translateX(-6px)}.ihabdevteam-core-scope .header.header--force-collapsed:hover{width:72px}}@media (max-width:767px){.ihabdevteam-core-scope .header{align-items:center;border-bottom:1px solid var(--color-whiteLine);border-left:none;border-right:none;flex-direction:row;height:64px;justify-content:space-between;left:0;position:fixed;right:0;top:0;width:100%}.ihabdevteam-core-scope .header__top{align-items:center;display:flex;flex:1}.ihabdevteam-core-scope .header__branding{height:auto}.ihabdevteam-core-scope .header__menu-button{display:inline-flex}.ihabdevteam-core-scope .header__bi{align-items:center;display:flex;gap:var(--spacing-xs);padding:0 calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left));width:100%}.ihabdevteam-core-scope .header__bi .header__menu-button{margin-left:auto}.ihabdevteam-core-scope .header__bottom{display:none}}.ihabdevteam-core-scope .brand-identity__root{align-items:center;display:flex;height:100px;justify-content:center}.ihabdevteam-core-scope .brand-identity__image{height:48px;-o-object-fit:contain;object-fit:contain;width:auto}@media (min-width:1024px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (max-width:767px){.ihabdevteam-core-scope .brand-identity__root{height:64px;padding:10px}.ihabdevteam-core-scope .brand-identity__image{height:40px}}';ee(O5);function Dl({appMode:e}){const{t}=me.useTranslation(),a=e==="manager",r=a?Nl:Bl,n=z5,i=oa("(min-width: 768px) and (max-width: 1023px)");return o.jsx("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:i?o.jsx("img",{src:n,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):o.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function El({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}){const{t:g}=me.useTranslation(),f=oa("(max-width: 767px)"),b=l.useMemo(()=>{const A=[];return s&&A.push({key:"debug",icon:"terminal",label:g("nav.debug","\uB514\uBC84\uADF8"),onClick:s}),c&&A.push({key:"notifications",icon:"bell",label:g("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),u&&A.push({key:"settings",icon:"settings",label:g("nav.settings","\uC124\uC815"),onClick:u}),m&&A.push({key:"help",icon:"message-circle-question-mark",label:g("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),d&&A.push({key:"account",icon:"user-round",label:g("nav.account","\uACC4\uC815"),onClick:d}),A},[g,s,c,u,m,d,i]),v=l.useCallback(A=>({position:"fixed",top:A.bottom+8,right:Math.max(8,window.innerWidth-A.right),zIndex:1e4}),[]),y=l.useId(),{open:_,toggle:x,close:C,style:k,triggerRef:w,menuRef:S}=ao({computeStyle:v,onScroll:"ignore",onResize:"ignore"}),j=l.useMemo(()=>[{items:b.map(A=>({label:A.label,icon:A.icon,badgeCount:A.badgeCount,selected:A.selected??(!!A.key&&A.key===e),closeOnSelect:!0,onClick:()=>{A.onClick?.(),C()}}))}],[b,e,C]);return o.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[o.jsxs("div",{className:"header__bi",children:[o.jsx(Dl,{appMode:h}),o.jsxs("div",{className:"header__menu-button",ref:w,children:[o.jsx(re,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:g("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:x,"aria-expanded":_,"aria-controls":_?y:void 0}),_&&qt.createPortal(o.jsx("div",{id:y,role:"group","aria-label":g("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:k,ref:S,children:o.jsx(br,{columns:j,onClose:C})}),document.body)]})]}),o.jsx(Tl,{items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}),f&&o.jsx(Al,{items:a,activeKey:e??void 0,onChange:t,appMode:h,onAppModeChange:p})]})}const Th=El;var F5='.ihabdevteam-core-scope .payment-plan__card{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex:1 1 340px;flex-direction:column;gap:28px;max-width:360px;min-width:min(340px,100%);padding:20px;position:relative;text-align:left;transition:box-shadow .2s ease,transform .2s ease;width:100%}.ihabdevteam-core-scope .payment-plan__card:hover{box-shadow:var(--shadow-dropdown);transform:translateY(-4px)}.ihabdevteam-core-scope .payment-plan__card-badge{position:absolute;right:32px;top:32px}.ihabdevteam-core-scope .payment-plan__pricing-card{cursor:pointer;display:flex;justify-content:center}.ihabdevteam-core-scope .payment-plan__title{color:var(--color-black);display:flex;flex-direction:column;margin:0}.ihabdevteam-core-scope .payment-plan__quote{color:var(--color-sub);margin:0 0 4px;min-height:1.4em}.ihabdevteam-core-scope .payment-plan__title-heading{margin:0}.ihabdevteam-core-scope .payment-plan__subtitle{color:var(--color-gray);line-height:1.5;margin:8px 0 0;text-align:left}.ihabdevteam-core-scope .payment-plan__box,.ihabdevteam-core-scope .payment-plan__box-title{display:block}.ihabdevteam-core-scope .payment-plan__contact-button{width:100%}.ihabdevteam-core-scope .payment-plan__feature-list{display:flex;flex-direction:column;gap:10px;list-style:none;margin:12px 0 0;padding:0}.ihabdevteam-core-scope .payment-plan__feature-item{align-items:center;color:var(--color-darkGray);display:flex;gap:10px;line-height:1.45}.ihabdevteam-core-scope .payment-plan__feature-check{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .payment-plan__card-pricing{display:flex;flex-direction:column;gap:6px;margin-top:auto;text-align:left;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-list{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .payment-plan__pricing-row{grid-row-gap:4px;align-items:center;background:var(--plan-color,var(--color-darkWhite));border:1px solid transparent;border-radius:var(--radius-s);box-sizing:border-box;color:#fff;cursor:pointer;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;padding:14px 18px;row-gap:4px;transition:filter .15s ease,transform .15s ease,box-shadow .15s ease;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-row--static{cursor:default;pointer-events:none}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight{background:var(--color-white);border:1px solid var(--plan-color,var(--color-main));color:var(--color-darkGray)}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-current,.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-row-price{color:var(--plan-color,var(--color-main))}.ihabdevteam-core-scope .payment-plan__pricing-row:hover{box-shadow:var(--shadow-dropdown);filter:brightness(1.04);transform:translateY(-2px)}.ihabdevteam-core-scope .payment-plan__pricing-row-title{display:contents}.ihabdevteam-core-scope .payment-plan__pricing-row-label{grid-column:1;grid-row:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-row-price{align-items:center;color:#fff;display:flex;gap:var(--spacing-xs);grid-column:1/-1;grid-row:2;justify-content:flex-end;margin:0;text-align:right}.ihabdevteam-core-scope .payment-plan__pricing-current{color:#fff;margin:0;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-symbol{font-weight:600;margin-right:2px}.ihabdevteam-core-scope .payment-plan__list{grid-gap:var(--spacing-l);align-items:stretch;display:grid;gap:var(--spacing-l);grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),360px));justify-content:center;margin:0 auto var(--spacing-page);width:100%}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:stretch}.ihabdevteam-core-scope .payment-plan__card.recommended{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .payment-plan__feature{align-items:center;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .payment-plan__feature:before{color:var(--color-success);content:"\u2713";font-weight:700}@media (max-width:767px){.ihabdevteam-core-scope .payment-plan__list{align-items:center;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:center;flex:none;max-width:360px;width:100%}}';ee(F5);function Bh(e){if(!(e==null||e===""))return or(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function W5(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function H5(e){if(e.durationDays&&e.durationDays>0){const n=e.durationDays;return n%365===0?`${n/365}\uB144`:`${n}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);return r?r[1].replace(/\s+/g,""):a||"\uC774\uC6A9\uAD8C"}function V5(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function jl(e){return{type:e.type??W5(e),plan:H5(e),label:e.label,price:Bh(e.price),originalPrice:Bh(e.originalPrice),discountLabel:e.discountLabel}}var G5='.ihabdevteam-core-scope .pass-card-frame{container-type:inline-size;height:188px;max-width:100%;width:300px}.ihabdevteam-core-scope .pass-card{border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;height:188px;overflow:hidden;padding:var(--spacing-l);position:relative;width:300px}.ihabdevteam-core-scope .pass-card-frame>.pass-card{aspect-ratio:auto;border-radius:5.33cqw;height:100%;padding:6.67cqw;width:100%}.ihabdevteam-core-scope .pass-card--clickable{cursor:pointer}@media (max-width:360px){.ihabdevteam-core-scope .pass-card,.ihabdevteam-core-scope .pass-card-frame{max-width:300px;width:100%}}.ihabdevteam-core-scope .pass-card--active{box-shadow:0 4px 16px rgba(0,0,0,.08)}.ihabdevteam-core-scope .pass-card--pending{box-shadow:0 2px 8px rgba(0,0,0,.05)}.ihabdevteam-core-scope .pass-card--expired{--color-main:var(--color-disabled);--color-sub:var(--color-whiteLine);--pass-card-expired-shape:var(--color-whiteLine);box-shadow:none}.ihabdevteam-core-scope [data-theme=dark] .pass-card--expired,.ihabdevteam-core-scope[data-theme=dark] .pass-card--expired,[data-theme=dark] .pass-card--expired .ihabdevteam-core-scope{--pass-card-expired-shape:hsla(0,0%,100%,.18)}@media (prefers-color-scheme:dark){.ihabdevteam-core-scope :root:not([data-theme=light]):not([data-theme=dark]) .pass-card--expired{--pass-card-expired-shape:hsla(0,0%,100%,.18)}}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg{background:var(--color-darkWhite)}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg__symbol{background:var(--pass-card-expired-shape)}.ihabdevteam-core-scope .pass-card--expired .pass-card__copyright,.ihabdevteam-core-scope .pass-card--expired .pass-card__plan,.ihabdevteam-core-scope .pass-card--expired .pass-card__price-area,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-percent,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-remaining{color:var(--color-gray)}.ihabdevteam-core-scope .pass-card.pass-card--expired:after{box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 color-mix(in srgb,var(--color-gray) 10%,transparent)}.ihabdevteam-core-scope .pass-card:after{border-radius:inherit;box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 rgba(73,156,223,.2);content:"";inset:0;pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .pass-card__top{align-items:flex-start;display:flex;flex-direction:row;justify-content:space-between;margin-top:-1.67cqw;position:relative;z-index:1}.ihabdevteam-core-scope .pass-card__top-left{align-items:flex-start;display:flex;flex-direction:column;gap:0}.ihabdevteam-core-scope .pass-card__logo{height:10.67cqw;-o-object-fit:contain;object-fit:contain;width:auto}.ihabdevteam-core-scope .pass-card__plan{color:var(--pass-card-text,var(--color-pureBlack));display:flex;flex-direction:column;gap:0;margin-top:-.67cqw;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__plan .h0{font-size:13.33cqw;line-height:1.3}.ihabdevteam-core-scope .pass-card .pass-card__plan-number{font-size:17.33cqw;letter-spacing:-1cqw;line-height:1}.ihabdevteam-core-scope .pass-card__plan .h5b{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__plan-unit{margin-left:.67cqw;position:relative;top:-.67cqw}.ihabdevteam-core-scope .pass-card__plan-suffix{margin-left:.67cqw;margin-top:0}.ihabdevteam-core-scope .pass-card .pass-card__copyright{color:var(--pass-card-text,var(--color-black));font-size:3.67cqw;line-height:1.36;margin:auto 0 0;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__price-area{align-items:flex-end;bottom:4.67cqw;display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__price-area .h1{font-size:10.67cqw;line-height:1.375}.ihabdevteam-core-scope .pass-card__price-area .h5{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__usage{align-items:flex-end;bottom:4.67cqw;color:var(--pass-card-text,var(--color-black));display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__usage-percent{align-items:baseline;display:inline-flex;font-size:3.67cqw;gap:0;line-height:1.36;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-remaining{font-size:5cqw;line-height:1.53;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-value{font-size:10.67cqw;line-height:1.2}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-symbol{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__discount{color:var(--pass-card-text,var(--color-pureBlack));font-size:4.67cqw;line-height:1.2;text-align:right;white-space:pre-line}.ihabdevteam-core-scope .pass-card__price{align-items:baseline;color:var(--pass-card-text,var(--color-pureBlack));display:inline-flex;gap:2cqw;text-align:right}.ihabdevteam-core-scope .pass-card__price-original{color:color-mix(in srgb,var(--pass-card-text,var(--color-pureBlack)) 75%,transparent);font-size:4.67cqw;line-height:1.57;text-decoration:line-through;text-decoration-thickness:1px}';ee(G5);var q5='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Y5='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',U5='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7325)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23111111"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23111111"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23111111"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23111111"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23111111"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7325">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',K5='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7395)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23FAFAFA"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23FAFAFA"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23FAFAFA"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23FAFAFA"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23FAFAFA"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7395">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Z5='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 371 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="371" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M237.15,26.04v46.68h-20.5V26.04h20.5ZM234.41,70.05V28.72h-15.15v41.33h15.15ZM261.49,76.36h-2.68v-27.39h-11.24v26.5h-2.68V23.98h2.68v22.31h11.24v-22.65h2.68v52.73h0Z"/>%0A <path class="st3" d="M299.72,69.26c2.35-.48,4.31-1.11,5.86-1.89v2.75c-1.51.82-3.44,1.46-5.79,1.92-2.35.46-4.74.69-7.17.69h-20.37V25.7h2.74v44.28h17.62c2.38,0,4.74-.24,7.1-.72h0ZM311.69,76.43V23.64h2.74v52.73l-2.74.07Z"/>%0A <path class="st3" d="M340.56,47.94l17.62,22.52-2.13,1.65-16.18-20.94c-1.46,6.18-3.54,11.1-6.24,14.76-2.7,3.66-5.9,5.93-9.6,6.8v-2.75c3.25-.82,6.01-3.11,8.3-6.86,2.29-3.75,4.02-8.59,5.21-14.52,1.19-5.92,1.83-12.55,1.92-19.87h-14.47v-2.68h31.61v2.68h-14.4c-.05,7.19-.6,13.59-1.64,19.22h0ZM369.22,76.36h-2.74v-28.9h-14.06v-2.68h14.06v-21.14h2.74v52.73Z"/>%0A <path class="st3" d="M92.88,48.35v-24.1h30.58v24.1h-30.58ZM139.37,69.15v7.21h-44.71v-15.72h34.42v-2.13h-34.56v-7.21h44.3v15.72h-34.28v2.13h34.83,0ZM102.68,32.56v7.41h11.04v-7.41h-11.04ZM144.72,40.39h-5.9v9.06h-9.88v-25.81h9.88v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M181.89,47.87v9.4c-2.79,1.28-7.16,1.92-13.1,1.92h-.62v17.16h-9.88v-17.16h-12.2v-9.4h22.83c5.85,0,10.17-.64,12.96-1.92h0ZM148.97,34.28v-9.4h28.66v22.17h-9.87v-12.77h-18.79ZM194.64,76.36h-9.88V23.64h9.88v52.73h0Z"/>%0A <path class="st1" d="M48.15,17.86h-21.4c-9.85,0-17.84,7.99-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h21.4c9.85,0,17.84-7.99,17.84-17.86v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st1" d="M36.6,50.74c-9.02,9.94-24.22,10.93-34.44,2.42-.47-.39-.52-1.1-.11-1.55l16.06-17.69,18.49,16.81Z"/>%0A <path class="st1" d="M55.29,25h-21.4c-9.85,0-17.84,8-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h16.09c.96,0,1.74.78,1.74,1.75,0,1.02.87,1.83,1.89,1.74,10.93-.96,19.51-10.15,19.51-21.35v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st2" d="M26.75,25c-5.91,0-10.7,4.8-10.7,10.71v28.57c0,3.09.79,6,2.17,8.54,2.53,1.39,5.44,2.17,8.53,2.17h28.54c5.91,0,10.7-4.8,10.7-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.53-1.39-5.44-2.17-8.53-2.17h-28.54Z"/>%0A <path class="st3" d="M27.11,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M37.81,57.14c-1.04,0-2.09-.27-3.03-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.58-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.32-4.44,2.9-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.34-5.56-.99-.06-1.93.12-2.81.54-.89.43-1.95.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.75.3,8.57,4.26,8.68,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',X5='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7394)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23111111"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23111111"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23111111"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23111111"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23111111"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23111111"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23111111"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7394">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',J5=".ihabdevteam-core-scope .pass-card-bg{border-radius:inherit;inset:0;overflow:hidden;pointer-events:none;position:absolute}:where(.ihabdevteam-core-scope){--pass-card-symbol-opacity:1}.ihabdevteam-core-scope .pass-card-bg__symbol{background:var(--symbol-url) center /contain no-repeat;height:48px;-webkit-mask:var(--symbol-url) center /contain no-repeat;mask:var(--symbol-url) center /contain no-repeat;position:absolute;right:12px;top:12px;width:48px}";ee(J5);var Q5=".ihabdevteam-core-scope .pass-card-bg-two-circle{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1,.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{border-radius:50%;opacity:.75;opacity:var(--pass-card-symbol-opacity,.75);position:absolute}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1{background:var(--color-main);height:340px;right:-150px;top:-140px;width:340px}.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{background:var(--color-sub);bottom:-90px;height:220px;right:-50px;width:220px}.ihabdevteam-core-scope .pass-card-bg-two-circle__symbol{background:var(--color-darkWhite)}";ee(Q5);var Nh='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Fa={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Ll=new WeakMap;function e3(e){if(e)return Ll.get(e)}function ga(e,t){e&&(e.style.setProperty(Fa.text,t.text),e.style.setProperty(Fa.sub,t.sub),t.copyrightColor&&e.style.setProperty(Fa.copyright,t.copyrightColor),Ll.set(e,t))}function fa(e){e&&(e.style.removeProperty(Fa.text),e.style.removeProperty(Fa.sub),e.style.removeProperty(Fa.copyright),Ll.delete(e))}const Ml={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Pl(e={}){const t=lt(Ml,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-two-circle__c1"}),o.jsx("div",{className:"pass-card-bg-two-circle__c3"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${Nh}")`}})]})}const Dh="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464Z";var t3=".ihabdevteam-core-scope .pass-card-bg-sound-move{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-sound-move__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ee(t3);var gr='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65181)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="url(%23paint0_linear_2175_65181)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2175_65181" x1="29.6392" y1="29.6393" x2="75.2535" y2="75.2536" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2175_65181">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const a3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},o3=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Eh(e={}){const t=lt(a3,ga,fa),a="var(--color-main)",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[o.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:o3.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:Dh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}var r3=".ihabdevteam-core-scope .pass-card-bg-sound-move-v1{background:linear-gradient(135deg,var(--color-main),var(--color-sub))}.ihabdevteam-core-scope .pass-card-bg-sound-move-v1__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ee(r3);const n3={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},i3=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function s3(e={}){const t=lt(n3,ga,fa),a="#ffffff",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[o.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:i3.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:Dh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${Nh}")`}})]})}var l3=".ihabdevteam-core-scope .pass-card-bg-talk{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk__shape--left{background:var(--color-main);border-radius:42px 42px 42px 4px;transform:translateX(-18px)}.ihabdevteam-core-scope .pass-card-bg-talk__shape--right{background:var(--color-sub);border-radius:50%;opacity:.7;transform:translateX(18px)}";ee(l3);const c3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function d3(e={}){const t=lt(c3,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}const u3={Logo_speechear_kr:{"":Bl,_white:q5,_textWhite:Y5,_black:U5},Logo_speechearManager_kr:{"":Nl,_white:K5,_textWhite:Z5,_black:X5}};function p3(e,t){if(e)return u3[e]?.[t??""]??void 0}const h3={speechear:Bl,manager:Nl},m3={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},jh=10;function b3(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const n=Math.floor(e/60);return n>0?t("passCard.remainingMinute",{n}):t("passCard.remainingSecond",{n:Math.floor(e)})}function g3(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),n=a==="\uC624\uD508\uD2B9\uAC00"||a===Ca.t("passCard.specialLabel");return r?o.jsx(d3,{}):n?o.jsx(s3,{}):o.jsx(Eh,{})}return o.jsx(Pl,{})}function Rl({product:e,showPrice:t=!1,plan:a,type:r,endDate:n,remainingSeconds:i,state:s="active",bg:c,bgOnly:d=!1,textColor:u,subColor:m,copyrightColor:h,logoSrc:p,label:g,price:f,originalPrice:b,discountLabel:v,onUse:y,onRefund:_,onDelete:x}){const{t:C}=me.useTranslation(),k=e?jl(e):void 0,w=r??k?.type??"speechear",S=a??k?.plan??"\uC774\uC6A9\uAD8C",j=g??k?.label,A=f??(t?k?.price:void 0),B=b??(t?k?.originalPrice:void 0),W=v??k?.discountLabel,M=l.useMemo(()=>{if(A)return null;const P=e?.durationDays??V5(e?.code);if(!P||P<=0)return null;const q=P*86400;let oe;if(i!=null)oe=i;else if((s==="active"||s==="expired")&&n){const de=new Date(n).getTime();if(Number.isNaN(de))return null;const I=new Date;I.setHours(0,0,0,0);const Z=new Date(de);Z.setHours(0,0,0,0);const J=Math.round((Z.getTime()-I.getTime())/864e5);oe=Math.max(0,J)*86400}else s==="expired"?oe=0:oe=q;const ge=Math.max(0,Math.min(100,Math.floor(Math.min(oe,q)/q*100)));return s==="pending"&&ge>=100?null:{percent:ge,remainingLabel:b3(oe,C)}},[A,s,n,i,e?.durationDays,e?.code,C]),T=l.useRef(null),[$,E]=l.useState({}),[H,te]=l.useState(null),Q=!!(y||_||x),ae=l.useRef(!1),N=l.useRef(void 0),[L,R]=l.useState(p);l.useLayoutEffect(()=>{R(p)},[p]),l.useLayoutEffect(()=>{const P=T.current;P&&(u!==void 0&&P.style.setProperty("--pass-card-text",u),m!==void 0&&P.style.setProperty("--pass-card-sub",m),h!==void 0&&P.style.setProperty("--pass-card-copyright",h))},[u,m,h]),l.useLayoutEffect(()=>{const P=T.current;if(!P)return;const q=e3(P);if(!p){const oe=m3[w],ge=s==="expired"?"_black":q?.logoColor??"",de=p3(oe,ge);R(de)}},[c,p,w,s]);const z=P=>{const q=T.current;if(!q)return null;const{left:oe,top:ge,width:de,height:I}=q.getBoundingClientRect(),Z=(P.clientX-oe)/de-.5;return{rotateX:-((P.clientY-ge)/I-.5)*jh,rotateY:Z*jh}},V=(P,q)=>{const oe=q*-.7,ge=P*.7+10,de=20+(Math.abs(P)+Math.abs(q))*.4;return`${oe}px ${ge}px ${de}px rgba(0, 0, 0, 0.18)`},X=l.useCallback(P=>{ae.current=!0,clearTimeout(N.current),N.current=setTimeout(()=>{ae.current=!1},200);const q=z(P);q&&E({transform:`perspective(800px) rotateX(${q.rotateX}deg) rotateY(${q.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:V(q.rotateX,q.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),F=l.useCallback(P=>{const q=z(P);if(!q)return;const oe=ae.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";E({transform:`perspective(800px) rotateX(${q.rotateX}deg) rotateY(${q.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:V(q.rotateX,q.rotateY),transition:oe})},[]),Y=l.useCallback(()=>{clearTimeout(N.current),ae.current=!1,E({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=l.useCallback(()=>te(null),[]),ne=l.useMemo(()=>{const P=S.replace("\uC774\uC6A9\uAD8C","").trim(),q=P.match(/^(.*?)(일|년)$/);return q?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"h0 pass-card__plan-number",children:q[1]}),o.jsx("span",{className:"h5b pass-card__plan-unit",children:q[2]==="\uB144"?C("passCard.unitYear","\uB144"):C("passCard.unitDay","\uC77C")})]}):o.jsx("span",{className:"h0",children:P})},[S,C]),ue=l.useMemo(()=>{const P=or(A);if(!P)return null;const q=P.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!q)return o.jsx("span",{className:"h1",children:P});const[,oe,ge,de]=q;return o.jsxs(o.Fragment,{children:[oe&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:oe}),o.jsx("span",{className:"h1 pass-card__price-amount",children:ge}),de.trim()&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:de.trim()})]})},[A]),xe=l.useCallback(()=>{Q&&te(P=>{if(P)return null;const q=T.current?.getBoundingClientRect();if(!q)return null;const oe=50;return{left:q.left,right:q.right,width:q.width,height:q.height,x:q.x,y:q.y+oe,top:q.top+oe,bottom:q.bottom+oe}})},[Q]),ve=l.useCallback(P=>{Q&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),xe())},[Q,xe]),pe=[{items:[...y?[{label:C("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{y(),te(null)},closeOnSelect:!0}]:[],..._?[{label:C("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{_(),te(null)},closeOnSelect:!0}]:[],...x?[{label:C("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{x(),te(null)},closeOnSelect:!0}]:[]]}];return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card-frame",children:o.jsxs("div",{ref:T,className:`pass-card pass-card--${s}${Q?" pass-card--clickable":""}`,style:$,onMouseEnter:X,onMouseMove:F,onMouseLeave:Y,onClick:xe,onKeyDown:Q?ve:void 0,role:Q?"button":void 0,tabIndex:Q?0:void 0,children:[c??g3(w,S,j),!d&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card__top",children:o.jsxs("div",{className:"pass-card__top-left",children:[o.jsx("img",{src:L??h3[w],className:"pass-card__logo",alt:w==="manager"?C("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):C("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),o.jsxs("div",{className:"pass-card__plan",children:[o.jsx("div",{children:ne}),o.jsx("span",{className:"h5b pass-card__plan-suffix",children:j?C("passCard.labeledPlan",{label:j}):C("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),A?o.jsxs("div",{className:"pass-card__price-area",children:[W&&o.jsx("span",{className:"pass-card__discount body-3",children:W}),o.jsxs("div",{className:"pass-card__price",children:[B&&o.jsx("span",{className:"pass-card__price-original body-3",children:or(B)}),ue]})]}):M?o.jsxs("div",{className:"pass-card__usage",children:[o.jsx("span",{className:"h5b pass-card__usage-remaining",children:M.remainingLabel}),o.jsxs("span",{className:"pass-card__usage-percent",children:[o.jsx("span",{className:"h1 pass-card__usage-value",children:M.percent}),o.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):o.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),H&&o.jsx(Sa,{anchorRect:H,onClose:O,ariaLabel:C("tooltip.menu","\uBA54\uB274"),children:o.jsx(br,{columns:pe,onClose:O,size:"small"})})]})}var f3=".ihabdevteam-core-scope .pass-card-bg-sound-line{background:linear-gradient(60deg,var(--color-pureWhite) 0,color-mix(in srgb,var(--color-sub) 15%,var(--color-pureWhite)) 100%)}.ihabdevteam-core-scope .pass-card-bg-sound-line__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ee(f3);const v3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function y3(e={}){const t=`passcard-sound-line-grad-${l.useId()}`,a=lt(v3,ga,fa);return o.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[o.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("defs",{children:o.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[o.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),o.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),o.jsx("g",{transform:"translate(25, 45)",children:o.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}var x3=".ihabdevteam-core-scope .pass-card-bg-talk-v1{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--left{background:linear-gradient(70deg,var(--color-main),var(--color-sub));border-radius:999px;height:92px;transform:translateX(0) rotate(120deg);width:180px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--right{background:var(--color-sub);border-radius:50%;height:60px;opacity:1;transform:translate(38px,12px);width:60px}";ee(x3);const C3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function _3(e={}){const t=lt(C3,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}function w3(e,t){if(e){if(t==="manager_pro")return o.jsx(_3,{});if(t==="manager_standard")return o.jsx(y3,{});if(t==="manager_lite")return o.jsx(Eh,{})}}function k3(e){const t=or(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,n,i]=a;return o.jsxs(o.Fragment,{children:[r&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),n,i.trim()&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Lh(e){const{t}=me.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:n,onSelect:i,period:s="monthly",ownedCodes:c}=e||{},d=x=>!!x&&!!c?.includes(x),u=(n.tiers||[]).some(x=>/오픈\s*특가/.test(x.label??"")&&d(x.code)),m=x=>{const C=x.prices?x.prices[s]:x.price;return C?(n.tiers||[]).some(k=>!!k.badge&&k.originals?.[s]===C):!1},h=n.colorToken?`var(--color-${n.colorToken})`:"var(--color-gray)",p=t("payment.plan.freePrice","\uBB34\uB8CC"),g=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=x=>x.prices?x.prices[s]:x.price,b=(n.tiers||[]).length>0&&(n.tiers||[]).every(x=>{const C=f(x);return C==="\uBB34\uB8CC"||C===p||C==="0\uC6D0"}),v=(n.tiers||[]).length>0&&(n.tiers||[]).every(x=>{const C=f(x);return C==="\uBB38\uC758"||C===g}),y=n.group==="org",_=y?"manager":"speechear";return o.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[n.cardBadge&&o.jsx("div",{className:"payment-plan__card-badge",children:o.jsx(ht,{label:n.cardBadge,variant:"main",size:"medium",fill:"soft"})}),o.jsxs("div",{className:"payment-plan__title",children:[o.jsx("p",{className:"payment-plan__quote body-3b",style:{color:h},children:n.quote||"\xA0"}),o.jsx("h3",{className:"payment-plan__title-heading h1",children:n.tier??n.title}),o.jsx("p",{className:"payment-plan__subtitle body-3",children:n.subtitle})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(n.recommendedFor||[]).map((x,C)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(Fe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),x]},C))})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(n.features||[]).map((x,C)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(Fe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),x]},C))})]}),o.jsx("div",{className:"payment-plan__card-pricing",children:b?null:v?o.jsx(re,{className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>n.tiers?.[0]&&i?.({...n.tiers[0],productId:n.id,productTitle:n.title})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"payment-plan__pricing-list",children:(n.tiers||[]).map(x=>{const C=x.label||a,k=/오픈\s*특가/.test(C),w=k||x.openPromo===!0,S=C.replace(/^오픈\s*특가\s*/,"")||a,j=x.prices?x.prices[s]:x.price,A=x.badge?w?`${r}
|
|
837
|
+
`),this.name="StorageNotConfiguredError"}};function ei(e){bw(e)}function Dr(e,t){if(!e)return null;const a=zo();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function ti(e){if(!e)return!1;const t=zo();if(!t)throw new Qn("fileExists");if(t.exists)return t.exists(e);try{return await t.resolveUrl(e)!==null}catch{return!1}}async function Oo(e){if(!e)return null;const t=zo();if(!t)throw new Qn("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Er(e){const t=zo();if(!t)throw new Qn("downloadSound");return t.download(e)}function ai(){return zo()?.noiseBaseUrl??"/sounds/noise"}const oi="__ihab_core_tts_config__";function Fd(e){globalThis[oi]=e}function Fo(){return globalThis[oi]?.urlResolver??null}function ri(){return globalThis[oi]?.fallbackUrlResolver??null}const gw=new Map;function Wd(){gw.clear()}const Hd="__ihab_core_pronunciation_resolver__";function Vd(e){globalThis[Hd]=e}function ni(){return globalThis[Hd]??null}let Wo=null;const Gd=new WeakMap;function fw(){if(Wo)return Wo;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Wo=new e,Wo):null}catch{return null}}function Ho(){try{Wo?.resume()}catch{}}function Vo(e){if(!e)return null;const t=Gd.get(e);if(t)return t;const a=fw();if(!a)return null;try{const r=a.createMediaElementSource(e),n=a.createAnalyser();return n.fftSize=1024,n.smoothingTimeConstant=.6,r.connect(n),r.connect(a.destination),Gd.set(e,n),n}catch{return null}}function ii(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const n=t[r];a+=n*n}return Math.sqrt(a/t.length)}const qd="__ihab_core_image_config__";function Yd(e){globalThis[qd]=e}function Ma(){return globalThis[qd]??null}const Go="word_image_existence_map_v1";let da=null;const jr=new Map;function qo(){if(da)return da;try{const e=typeof localStorage<"u"?localStorage.getItem(Go):null;da=e?JSON.parse(e):{}}catch{da={}}return da}let si=null;function vw(){si||(si=setTimeout(()=>{si=null;try{typeof localStorage<"u"&&da&&localStorage.setItem(Go,JSON.stringify(da))}catch{}},200))}function Lr(e,t){return`${e}_${t??1}`}async function Yo(e,t){const a=qo(),r=Lr(e,t);if(r in a)return a[r];if(jr.has(r))return jr.get(r);const n=Ma();if(!n)return!1;const i=n(e,t);if(!i)return!1;const s=fetch(i,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.ok).catch(()=>!1).then(c=>(a[r]=c,vw(),jr.delete(r),c));return jr.set(r,s),s}function li(e,t){const a=qo(),r=Lr(e,t);return r in a?a[r]:void 0}async function Ud(e,t={}){const{force:a=!1,concurrency:r=16,onProgress:n}=t,i=qo(),s=a?Array.from(new Set(e)):Array.from(new Set(e)).filter(d=>!(Lr(d)in i));let c=0;if(s.length>0){let d=0;const u=Array.from({length:Math.min(r,s.length)},async()=>{for(;d<s.length;){const m=d++,h=s[m],p=Lr(h);if(!a&&p in i){c++,n?.(c,s.length);continue}try{await Yo(h)}catch{}c++,n?.(c,s.length)}});await Promise.all(u)}try{typeof localStorage<"u"&&da&&localStorage.setItem(Go,JSON.stringify(da))}catch{}return{checked:s.length,cached:Object.keys(i).length,total:e.length}}function Mr(){const e=qo(),t=Object.values(e);return t.length===0?null:{total:t.length,exists:t.filter(Boolean).length}}function Kd(e){const t=qo();Object.assign(t,e);try{typeof localStorage<"u"&&localStorage.setItem(Go,JSON.stringify(t))}catch{}}function ci(){da={};try{typeof localStorage<"u"&&localStorage.removeItem(Go)}catch{}}const Ze=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],dt=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],gt=["","\u3131","\u3132","\u3133","\u3134","\u3135","\u3136","\u3137","\u3139","\u313A","\u313B","\u313C","\u313D","\u313E","\u313F","\u3140","\u3141","\u3142","\u3144","\u3145","\u3146","\u3147","\u3148","\u314A","\u314B","\u314C","\u314D","\u314E"];function Me(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function di(){const e=new Map;return t=>{let a=e.get(t);return a||(a=[...t].map(r=>Me(r)),e.set(t,a)),a}}function ua(e,t,a=0){return String.fromCharCode(44032+(e*21+t)*28+a)}function ui(e,t){if(!e||!t||e===t||e.length!==t.length)return"random";let a=0,r=null;for(let n=0;n<e.length;n++){const i=Me(e[n]),s=Me(t[n]);if(!i||!s)return"random";if(i.cho===s.cho&&i.jung===s.jung&&i.jong===s.jong)continue;a++;const c=i.cho!==s.cho,d=i.jung!==s.jung,u=i.jong!==s.jong;(c?1:0)+(d?1:0)+(u?1:0)>1?r="multi":c?r="cho":d?r="jung":r="jong"}return a!==1?"random":r==="cho"?"cho":r==="jung"?"jung":r==="jong"?"jong":"random"}function pi(e){const t=Me(e[0]||"");return t?Ze[t.cho]:""}function hi(e){return[...e].map(t=>{const a=Me(t);return a?Ze[a.cho]:t}).join("")}function mi(e){return!!e&&[...e].every(t=>Ze.includes(t))}function Zd(e,t){return t?mi(t)?hi(e).includes(t):e.toLowerCase().includes(t.toLowerCase()):!0}function ho(e,t){if(!t)return!0;const a=[...t],r=c=>Ze.includes(c),n=c=>dt.includes(c),i=a.map(c=>r(c)?"cho":n(c)?"jung":Me(c)?"syl":"other");if(i.includes("other"))return e.includes(t);const s=[...e];for(let c=0;c+a.length<=s.length;c++){let d=!0;for(let u=0;u<a.length;u++){const m=s[c+u],h=i[u];if(h==="cho"){if(pi(m)!==a[u]){d=!1;break}}else if(h==="jung"){const p=Me(m);if(!p||dt[p.jung]!==a[u]){d=!1;break}}else{const p=Me(a[u]);if(p&&p.jong===0){const g=Me(m);if(!g||g.cho!==p.cho||g.jung!==p.jung){d=!1;break}}else if(m!==a[u]){d=!1;break}}}if(d)return!0}return!1}const mo={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]},Xd=Object.fromEntries(Object.entries(mo).map(([e,t])=>[t.join(""),gt[Number(e)]]));function yw(e,t){if(!e||!t)return!1;for(const a of e){const r=Me(a);if(r){if(Ze[r.cho]===t)return!0;if(r.jong>0){if(gt[r.jong]===t)return!0;const n=mo[r.jong];if(n&&n.includes(t))return!0}}}return!1}function Jd(e,t){if(!e||!t)return!1;for(const a of e){const r=Me(a);if(r&&Ze[r.cho]===t)return!0}return!1}function Qd(e,t){if(!e||!t)return!1;for(const a of e){const r=Me(a);if(r&&dt[r.jung]===t)return!0}return!1}function eu(e,t){if(!e||!t)return!1;for(const a of e){const r=Me(a);if(!r||r.jong<=0)continue;if(gt[r.jong]===t)return!0;const n=mo[r.jong];if(n&&n.includes(t))return!0}return!1}function bo(e){if(!e)return 0;let t=0;for(const a of e)Me(a)&&t++;return t}function bi(e){if(!e)return!1;let t=!1;for(const a of e){const r=Me(a);if(r&&(t=!0,r.jong>0))return!1}return t}function xw(e,t){if(e.jong<=0)return!1;if(t.includes(gt[e.jong]))return!0;const a=mo[e.jong];return!!a&&a.some(r=>t.includes(r))}function gi(e,t,a){if(!e)return!1;const r=[...e],n=i=>{const s=Me(r[i]);if(!s||t.cho&&!t.cho.includes(Ze[s.cho])||t.jung&&!t.jung.includes(dt[s.jung]))return!1;if(t.jongNone){if(s.jong>0)return!1}else if(t.jong&&!xw(s,t.jong))return!1;return!0};if(a==="head")return n(0);if(a==="tail")return n(r.length-1);if(a==="mid"){for(let i=1;i<r.length-1;i++)if(n(i))return!0;return!1}for(let i=0;i<r.length;i++)if(n(i))return!0;return!1}function fi(e){return e.includes(",")||e.includes("_")}function tu(e){if(e==="")return[{kind:"any"}];if(e.includes("_")){const t=[...e];if(t.length>4)return[{kind:"invalid"}];const a=t[0]??"_",r=t[1]??"_";let n=t.slice(2).join("");if(n.length===2){const i=Xd[n];if(!i)return[{kind:"invalid"}];n=i}return[{kind:"template",cho:a,jung:r,jong:n||"_"}]}return[...e].map(t=>Me(t)?{kind:"syllable",ch:t}:Ze.includes(t)?{kind:"cho",jamo:t}:dt.includes(t)?{kind:"jung",jamo:t}:{kind:"invalid"})}function Cw(e,t){switch(t.kind){case"any":return!0;case"syllable":{const a=Me(t.ch);if(!a)return e===t.ch;if(a.jong===0){const r=Me(e);return!!r&&r.cho===a.cho&&r.jung===a.jung}return e===t.ch}case"cho":{const a=Me(e);return!!a&&Ze[a.cho]===t.jamo}case"jung":{const a=Me(e);return!!a&&dt[a.jung]===t.jamo}case"template":{const a=Me(e);return!(!a||t.cho!=="_"&&Ze[a.cho]!==t.cho||t.jung!=="_"&&dt[a.jung]!==t.jung||t.jong!=="_"&>[a.jong]!==t.jong)}case"invalid":return!1}}function vi(e,t){const a=t.split(",").flatMap(n=>tu(n.trim()));if(a.length===0)return!0;const r=[...e];if(r.length<a.length)return!1;for(let n=0;n+a.length<=r.length;n++)if(a.every((i,s)=>Cw(r[n+s],i)))return!0;return!1}function au(e){const t=e.split(",").flatMap(i=>tu(i.trim())),a=new Set,r=new Set,n=new Set;for(const i of t)switch(i.kind){case"cho":a.add(i.jamo);break;case"jung":r.add(i.jamo);break;case"template":i.cho!=="_"&&a.add(i.cho),i.jung!=="_"&&r.add(i.jung),i.jong!=="_"&&n.add(i.jong);break;case"syllable":{const s=Me(i.ch);s&&(a.add(Ze[s.cho]),r.add(dt[s.jung]),s.jong!==0&&n.add(gt[s.jong]));break}}return a.size===0&&r.size===0&&n.size===0?null:{cho:a.size?[...a]:null,jung:r.size?[...r]:null,jong:n.size?[...n]:null}}function _w(e){return!!Me(e)||Ze.includes(e)||dt.includes(e)}function ou(e){const t=e.trim();if(!t)return{ok:!0};for(const a of t.split(",")){const r=a.trim();if(r!==""){if(r.includes("_")){const n=[...r];if(n.length>4)return{ok:!1};const i=n[0],s=n[1],c=n.slice(2).join(""),d=i===void 0||i==="_"||Ze.includes(i),u=s===void 0||s==="_"||dt.includes(s),m=c===""||c==="_"||gt.filter(Boolean).includes(c)||!!Xd[c];if(d&&u&&m)continue;return{ok:!1}}if(![...r].every(_w))return{ok:!1}}}return{ok:!0}}const ww={cho:Ze.length,jung:dt.length,jong:gt.length};function kw(e,t,a,r,n=1/0){if(!e||a<1)return[];const i=[...e].map(h=>Me(h));if(i.some(h=>!h))return[];const s=i,c=s.length;if(a>c)return[];const d=ww[t],u=new Set,m=[];(function h(p,g){if(g.length===a){m.push([...g]);return}for(let f=p;f<c;f++)g.push(f),h(f+1,g),g.pop()})(0,[]);for(const h of m)if((function p(g,f){if(u.size>=n)return;if(g===h.length){const y=f.map(_=>ua(_.cho,_.jung,_.jong)).join("");y!==e&&r.has(y)&&u.add(y);return}const b=h[g],v=s[b][t];for(let y=0;y<d;y++){if(y===v)continue;const _=f.slice();if(_[b]={...f[b],[t]:y},p(g+1,_),u.size>=n)return}})(0,s),u.size>=n)break;return[...u]}function Sw(e,t){if(!e||!t||e.length!==t.length)return-1;let a=0;for(let r=0;r<e.length;r++){const n=Me(e[r]),i=Me(t[r]);if(!n||!i)return-1;n.cho!==i.cho&&a++,n.jung!==i.jung&&a++,n.jong!==i.jong&&a++}return a}function ru(e,t){const a=t.trim();if(!a||!/[^\s,_]/.test(a))return e;if(fi(a))return e.filter(s=>vi(s.word,a));const r=e.filter(s=>ho(s.word,a)||ho(s.pronunciation??"",a)),n=[...a].length,i=s=>!!s&&ho(s.slice(0,n),a);return r.map(s=>({w:s,rank:i(s.word)||i(s.pronunciation??"")?0:1})).sort((s,c)=>s.rank-c.rank).map(s=>s.w)}const yi="word_pair_index_v2",xi="word_pair_index_sig_v2";let pa=null,Uo=null;function nu(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(yi),t=localStorage.getItem(xi);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function Aw(e,t){try{if(typeof localStorage>"u")return;localStorage.setItem(yi,JSON.stringify(e)),localStorage.setItem(xi,t)}catch{}}function Tw(e){const t=e.map(r=>`${r.word}|${r.pron??""}`).sort();let a=0;for(const r of t)for(let n=0;n<r.length;n++)a=(a<<5)-a+r.charCodeAt(n)|0;return`${t.length}-${a}`}async function Bw(e,t){const a=new Set,r=[];for(const u of e){if(!u.word||a.has(u.word))continue;const m=u.pron||u.word,h=Array.from(m).map(Me);h.some(p=>p===null)||h.length===Array.from(u.word).length&&(a.add(u.word),r.push({word:u.word,syls:h}))}const n={},i=r.length,s=new Map;for(const u of r){const m=u.syls.length;s.has(m)||s.set(m,[]),s.get(m).push(u)}let c=0;const d=["cho","jung","jong"];for(const u of s.values()){const m=u[0].syls.length;for(let h=0;h<m;h++)for(const p of d){const g=new Map;for(const f of u){let b="";for(let y=0;y<m;y++){y>0&&(b+="~");const _=f.syls[y];y===h?p==="cho"?b+=`*:${_.jung}:${_.jong}`:p==="jung"?b+=`${_.cho}:*:${_.jong}`:b+=`${_.cho}:${_.jung}:*`:b+=`${_.cho}:${_.jung}:${_.jong}`}let v=g.get(b);v||(v=[],g.set(b,v)),v.push(f)}for(const f of g.values())if(!(f.length<2))for(let b=0;b<f.length;b++){const v=f[b];for(let y=b+1;y<f.length;y++){const _=f[y];v.syls[h][p]!==_.syls[h][p]&&(n[v.word]||(n[v.word]={cho:[],jung:[],jong:[]}),n[_.word]||(n[_.word]={cho:[],jung:[],jong:[]}),n[v.word][p].push(_.word),n[_.word][p].push(v.word))}}}c+=u.length,t?.(c,i),await new Promise(h=>setTimeout(h,0))}return i>0&&t?.(i,i),n}async function iu(e,t={}){const a=Tw(e);if(!t.force){if(pa&&Uo===a)return pa;const n=nu();if(n&&n.sig===a)return pa=n.index,Uo=a,pa}const r=await Bw(e,t.onProgress);return pa=r,Uo=a,Aw(r,a),r}function Ka(){if(pa)return pa;const e=nu();return e?(pa=e.index,Uo=e.sig,pa):null}function Ci(){pa=null,Uo=null;try{typeof localStorage<"u"&&(localStorage.removeItem(yi),localStorage.removeItem(xi))}catch{}}const _i={cho:Ze,jung:dt,jong:gt},ft=e=>Array.isArray(e)?e.length>0:!!e;function Ko(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){const r=e[a],n=t[a];if(!(!r||!n)&&(r.cho!==n.cho&&Ze[r.cho]==="\u3147"!=(Ze[n.cho]==="\u3147")||r.jong!==n.jong&&r.jong===0!=(n.jong===0)))return!0}return!1}function wi(e,t,a){const r=a.pronOf(e),n=a.decompOf,i=a.sameStructureOnly&&n?n(r):null,s=[];for(const c of t)c!==e&&(a.okSet&&!a.okSet.has(c)||a.pronOf(c)!==r&&(i&&n&&Ko(i,n(a.pronOf(c)))||s.push(c)));return s}function Pr(e,t,a){const r=t?.[e];if(!r)return[];const n=a.kind?r[a.kind]??[]:[...r.cho??[],...r.jung??[],...r.jong??[]];return wi(e,n,a)}function ki(e,t,a,r,n,i,s){const c=["cho","jung","jong"].filter(p=>ft(e[p])),d={};for(const p of c){const g=e[p];d[p]=new Set(Array.isArray(g)?g:[g])}const u=n==="pron",m=new Map;for(const p of t){const g=a(i(p));if(g.some(y=>!y))continue;let f=g;if(!u&&(f=a(p),f.length!==g.length||f.some(y=>!y)))continue;const b=g.length,v=m.get(b);v?v.push({w:p,dPron:g,dPos:f}):m.set(b,[{w:p,dPron:g,dPos:f}])}const h=new Map;for(const[p,g]of m){const f=new Map,b=(v,y)=>{const _=v.dPos[y];return _!=null&&c.every(x=>d[x].has(_i[x][_[x]]))};for(const v of g){let y;if(s==="head")y=b(v,0)?0:-1;else if(s==="tail")y=b(v,p-1)?p-1:-1;else if(s==="mid"){y=-1;for(let x=1;x<p-1;x++)if(b(v,x)){y=x;break}}else y=v.dPos.findIndex(x=>x!=null&&c.every(C=>d[C].has(_i[C][x[C]])));if(y<0)continue;const _=f.get(y);_?_.push(v):f.set(y,[v])}for(const[v,y]of f){const _=new Set(c.map(k=>v+":"+k)),x=k=>{let w="";for(let S=0;S<p;S++){const j=k[S];for(const A of["cho","jung","jong"])w+=(_.has(S+":"+A)?"*":j[A])+"."}return w},C=new Map;for(const k of g){const w=x(k.dPron),S=C.get(w);S?S.push(k):C.set(w,[k])}for(const k of y){const w=C.get(x(k.dPron))??[],S=[];for(const j of w){if(j.w===k.w)continue;let A=!0;for(const B of c){const W=k.dPron[v][B],M=j.dPron[v][B];if(M===W){A=!1;break}if(u&&d[B].has(_i[B][M])){A=!1;break}}A&&(r&&Ko(k.dPron,j.dPron)||S.push(j.w))}h.set(k.w,S)}}}return h}const Rr=0,su=1,Za=2,Si=3,Nw=4,$r=5,Ai=6,Ir=7,Dw=8,lu=9,Zo=10,Ew=11,Xo=12,jw=13,Jo=14,zr=15,Or=16,Qo=17,Lw=18,ha=0,_a=1,Mw=3,Xa=4,Ti=5,Bi=6,ma=7,At=8,cu=9,du=10,Fr=11,uu=12,Ni=13,Wr=15,Hr=16,wa=17,pu=18,Di=21,hu=27,Pw=20,Rw={1:Rr,2:su,4:Za,7:Si,8:$r,16:Ai,17:Ir,19:lu,20:Zo,22:Xo,23:Jo,24:zr,25:Or,26:Qo},$w={[Mw]:[_a,Zo],[Ti]:[Xa,Xo],[cu]:[At,Rr],[du]:[At,Ai],[Fr]:[At,Ir],[uu]:[At,Zo],[Ni]:[At,Or],14:[At,Qo],[pu]:[wa,Zo]},Iw={[Bi]:Za,[Wr]:$r},Ei={2:_a,24:_a,3:_a,9:_a,5:Xa,6:Xa,19:ma,20:ma,22:ma,23:ma,25:ma,27:ma,11:At,12:At,13:At,15:At,10:Hr,14:wa,18:wa,26:wa},mu={[Rr]:zr,[Si]:Or,[Ir]:Qo,[Xo]:Jo},bu={[Rr]:su,[Si]:Nw,[Ir]:Dw,[lu]:Zo,[Xo]:jw},zw=new Set([Ti,du,Fr,uu,Ni,Wr,pu]),Ow=new Set(["\uBC1F"]);function gu(e){const t=(e??"").trim();if(!t)return"";const a=[...t],r=a.map(Me);if(r.some(i=>i===null))return t;const n=r;for(let i=0;i<n.length;i++){const s=n[i],c=n[i+1],d=s.jong;if(!c){s.jong=Ei[s.jong]??s.jong;break}if(s.jong===ha)continue;if(c.cho===Ew){if(c.jung===Pw){if(s.jong===ma){s.jong=ha,c.cho=Xo;continue}if(s.jong===25){s.jong=ha,c.cho=Jo;continue}if(s.jong===Ni){s.jong=At,c.cho=Jo;continue}}if(s.jong===hu){s.jong=ha;continue}const m=Iw[s.jong];if(m!==void 0){s.jong=ha,c.cho=m;continue}const h=$w[s.jong];if(h){s.jong=h[0],c.cho=h[1];continue}const p=Rw[s.jong];p!==void 0&&(s.jong=ha,c.cho=p);continue}if((s.jong===hu||s.jong===Bi||s.jong===Wr)&&mu[c.cho]!==void 0){c.cho=mu[c.cho],s.jong=s.jong===Bi?Xa:s.jong===Wr?At:ha;continue}if(c.cho===Lw){if(s.jong===Ti){s.jong=Xa,c.cho=Jo;continue}if(s.jong===cu){s.jong=At,c.cho=zr;continue}if(s.jong===Fr){s.jong=At,c.cho=Qo;continue}const m=Ei[s.jong]??s.jong;if(m===_a){s.jong=ha,c.cho=zr;continue}if(m===ma){s.jong=ha,c.cho=Or;continue}if(m===wa){s.jong=ha,c.cho=Qo;continue}}let u=Ei[s.jong]??s.jong;d===Fr&&Ow.has(a[i])&&(u=wa),s.jong=u,bu[c.cho]!==void 0&&(u===_a||u===ma||u===wa||zw.has(d))&&(c.cho=bu[c.cho]),(c.cho===Za||c.cho===Ai)&&(s.jong===_a?s.jong=Di:s.jong===ma?s.jong=Xa:s.jong===wa&&(s.jong=Hr)),c.cho===$r?s.jong===Xa?s.jong=At:s.jong===Hr||s.jong===Di?c.cho=Za:s.jong===_a?(s.jong=Di,c.cho=Za):s.jong===wa&&(s.jong=Hr,c.cho=Za):s.jong===At&&c.cho===Za&&(c.cho=$r)}return n.map(i=>ua(i.cho,i.jung,i.jong)).join("")}const Fw={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"},Ww={\u314F:{nucleus:"\u314F"},\u3151:{glide:"j",nucleus:"\u314F"},\u3153:{nucleus:"\u3153"},\u3155:{glide:"j",nucleus:"\u3153"},\u3157:{nucleus:"\u3157"},\u315B:{glide:"j",nucleus:"\u3157"},\u315C:{nucleus:"\u315C"},\u3160:{glide:"j",nucleus:"\u315C"},\u3161:{nucleus:"\u3161"},\u3163:{nucleus:"\u3163"},\u3150:{nucleus:"\u3154/\u3150"},\u3152:{glide:"j",nucleus:"\u3154/\u3150"},\u3154:{nucleus:"\u3154/\u3150"},\u3156:{glide:"j",nucleus:"\u3154/\u3150"},\u3158:{glide:"w",nucleus:"\u314F"},\u3159:{glide:"w",nucleus:"\u3154/\u3150"},\u315A:{glide:"w",nucleus:"\u3154/\u3150"},\u315D:{glide:"w",nucleus:"\u3153"},\u315E:{glide:"w",nucleus:"\u3154/\u3150"},\u315F:{glide:"w",nucleus:"\u3163"},\u3162:{glide:"\u0270",nucleus:"\u3163"}};function Vr(e){return Fw[e]??e}const go=/[ㄱ-ㅎ]/,Hw=/[ㅏ-ㅣ]/;function er(e){for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||go.test(a)||Hw.test(a))return a}return null}function ji(e){const t=er(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":go.test(t)?"\uC774":"\uAC00"}function Li(e){return`${e}${ji(e)}`}function Mi(e){const t=er(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":go.test(t)?"\uC744":"\uB97C"}function Pi(e){return`${e}${Mi(e)}`}function Ri(e){const t=er(e);if(!t)return"\uB294";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC740":"\uB294":go.test(t)?"\uC740":"\uB294"}function fu(e){return`${e}${Ri(e)}`}function $i(e){const t=er(e);if(!t)return"\uC640";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uACFC":"\uC640":go.test(t)?"\uACFC":"\uC640"}function vu(e){return`${e}${$i(e)}`}function Ii(e){const t=er(e);if(!t)return"\uB85C";const a=t.charCodeAt(0);if(a>=44032&&a<=55203){const r=(a-44032)%28;return r===0||r===8?"\uB85C":"\uC73C\uB85C"}return t==="\u3139"?"\uB85C":go.test(t)?"\uC73C\uB85C":"\uB85C"}function yu(e){return`${e}${Ii(e)}`}function zi(e,t,a){const r=e.slice(),[n]=r.splice(t,1);return r.splice(a,0,n),r}function Ge(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const n=Math.floor(t()*(r+1));[a[r],a[n]]=[a[n],a[r]]}return a}function Jt(e,t,a=Math.random){return!Array.isArray(e)||e.length===0||t<=0?[]:t>=e.length?Ge(e,a):Ge(e,a).slice(0,t)}const fo={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}};function Vw(e){const t=e?fo[e]?.group:void 0;return t==="synthesis"||t==="deletion"||t==="substitution"?t:null}const Gw=Ze.indexOf("\u3147"),Gr={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==Gw},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0}},qw=new Set([]);function xu(e){return e in Gr}function Cu(e,t){const a=Gr[e];if(!a)return!0;const r=[...t];if(r.length!==a.syllables)return!1;const n=Me(r[0]);return!!n&&a.syllable(n)}function _u(e){return qw.has(e)}function Yw(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uC640":"\uACFC"}function Oi(e){const t=e.charCodeAt((e.length||1)-1)||0;return t<44032||t>55203||(t-44032)%28===0?"\uB97C":"\uC744"}function wu(e){const t=e.charCodeAt((e.length||1)-1)||0;if(t<44032||t>55203)return"\uB85C";const a=(t-44032)%28;return a===0||a===8?"\uB85C":"\uC73C\uB85C"}function ku(e){const t=e.charAt((e.length||1)-1),a=t.charCodeAt(0)||0;return a>=44032&&a<=55203?(a-44032)%28===0?"\uAC00":"\uC774":/[ㄱ-ㅎ]/.test(t)?"\uC774":"\uAC00"}const Su={\u3131:"\uAE30\uC5ED",\u3132:"\uC30D\uAE30\uC5ED",\u3134:"\uB2C8\uC740",\u3137:"\uB514\uADFF",\u3138:"\uC30D\uB514\uADFF",\u3139:"\uB9AC\uC744",\u3141:"\uBBF8\uC74C",\u3142:"\uBE44\uC74D",\u3143:"\uC30D\uBE44\uC74D",\u3145:"\uC2DC\uC637",\u3146:"\uC30D\uC2DC\uC637",\u3147:"\uC774\uC751",\u3148:"\uC9C0\uC752",\u3149:"\uC30D\uC9C0\uC752",\u314A:"\uCE58\uC753",\u314B:"\uD0A4\uC754",\u314C:"\uD2F0\uC755",\u314D:"\uD53C\uC756",\u314E:"\uD788\uC757",\u3133:"\uAE30\uC5ED\uC2DC\uC637",\u3135:"\uB2C8\uC740\uC9C0\uC752",\u3136:"\uB2C8\uC740\uD788\uC757",\u313A:"\uB9AC\uC744\uAE30\uC5ED",\u313B:"\uB9AC\uC744\uBBF8\uC74C",\u313C:"\uB9AC\uC744\uBE44\uC74D",\u313D:"\uB9AC\uC744\uC2DC\uC637",\u313E:"\uB9AC\uC744\uD2F0\uC755",\u313F:"\uB9AC\uC744\uD53C\uC756",\u3140:"\uB9AC\uC744\uD788\uC757",\u3144:"\uBE44\uC74D\uC2DC\uC637",\u314F:"\uC544",\u3150:"\uC560",\u3151:"\uC57C",\u3152:"\uC598",\u3153:"\uC5B4",\u3154:"\uC5D0",\u3155:"\uC5EC",\u3156:"\uC608",\u3157:"\uC624",\u3158:"\uC640",\u3159:"\uC65C",\u315A:"\uC678",\u315B:"\uC694",\u315C:"\uC6B0",\u315D:"\uC6CC",\u315E:"\uC6E8",\u315F:"\uC704",\u3160:"\uC720",\u3161:"\uC73C",\u3162:"\uC758",\u3163:"\uC774"};function Au(e){if([...e].length!==1)return[e];const t=Me(e);if(!t)return[e];const a=[Ze[t.cho],dt[t.jung]];return t.jong!==0&&a.push(gt[t.jong]),a}function Fi(e,t=!1){const a=e.filter(Boolean);if(a.length<2)return"";const r=c=>Su[c]??c,n=a.slice(0,-1).map(c=>`"${c}"${Yw(r(c))}`).join(" "),i=a[a.length-1],s=`"${i}"${Oi(r(i))}`;return`${n} ${s} \uD569\uCE58\uBA74 \uC5B4\uB5A4 ${t?"\uC18C\uB9AC":"\uB2E8\uC5B4"}\uAC00 \uB418\uB098\uC694?`}function Uw(e,t){return Fi(t,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}function Kw(e,t){const a=String(t?.word??t?.original??""),r=String(t?.changedFrom??""),n=String(t?.changedTo??"");return e==="CHANGE_1_PHONEME_IN_1SYLL"?`"${a}"${Oi(a)} "${n}"${wu(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${a}"\uC5D0\uC11C "${r}"${Oi(r)} "${n}"${wu(n)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function Zw(e,t){const a=String(t?.word??t?.original??t?.base??""),r=String(t?.dropped??"");if(e==="DROP_FINAL_CONSONANT_FROM_1SYLL")return`"${a}"\uC5D0\uC11C \uBC1B\uCE68\uC774 \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`;if(e==="REMOVE_CONSONANT_AND_IDENTIFY_PHONEME"){const n=String(t?.missingConsonant??"");return`"${a}"\uC5D0\uC11C "${n}"${ku(n)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${a}"\uC5D0\uC11C "${r}"${ku(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Tu(e,t,a){switch(Vw(e)){case"synthesis":return Uw(e,a);case"substitution":return Kw(e,t);case"deletion":return Zw(e,t);default:return""}}function Bu(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(t,a,r)=>{const n=Su[a];if(!n)return t;if(!r)return`"${n}"`;const i=(n.charCodeAt(n.length-1)-44032)%28,s=i!==0;let c=r;return r==="\uC640"||r==="\uACFC"?c=s?"\uACFC":"\uC640":r==="\uC744"||r==="\uB97C"?c=s?"\uC744":"\uB97C":r==="\uC774"||r==="\uAC00"?c=s?"\uC774":"\uAC00":r==="\uC740"||r==="\uB294"?c=s?"\uC740":"\uB294":(r==="\uC73C\uB85C"||r==="\uB85C")&&(c=i===0||i===8?"\uB85C":"\uC73C\uB85C"),`"${n}"${c}`})}const Xw=e=>e==null?[]:Array.isArray(e)?e:[e];function Wi(e){if([...e].length!==1)return"";const t=Me(e);if(!t)return"";const a=Vr(gt[t.jong]),r=a===""?0:gt.indexOf(a);return ua(t.cho,t.jung,r<0?0:r)}function qr(e,t){return t.get(e)||Wi(e)||e}function tr(e){return e?ft(e.cho)?"cho":ft(e.jung)?"jung":ft(e.jong)?"jong":null:null}function Pa(e,t){const a=(r,n)=>!ft(r)||Xw(r).includes(n);return a(t.cho,Ze[e.cho])&&a(t.jung,dt[e.jung])&&a(t.jong,gt[e.jong])}function Ja(e,t,a){const r=[...e];if(a!=="pron")return r.map(i=>Me(i));const n=[...t.get(e)||e];return n.length!==r.length?r.map(i=>Me(i)):n.map(i=>Me(i))}function Qa(e,t,a,r,n){const i=t==="cho"?Ze:t==="jung"?dt:gt,s=e[t],c=[],d=new Set([qr(a,n)]),u=Ge(i.map((m,h)=>h).filter(m=>m!==s&&(t!=="cho"||i[m]!=="\u3147")&&(t!=="jong"||m!==0)));for(const m of u){if(c.length>=r)break;const h=t==="cho"?ua(m,e.jung,e.jong):t==="jung"?ua(e.cho,m,e.jong):ua(e.cho,e.jung,m),p=qr(h,n);d.has(p)||(d.add(p),c.push(h))}return c}function Hi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==2)return null;const c=s.map(h=>Me(h));if(c.some(h=>!h))return null;const d=Ja(e,a,r);if(d.some(h=>!h))return null;const u=tr(t);let m=u&&t?d.map((h,p)=>Pa(h,t)?p:-1).filter(h=>h>=0):[0,1];if(i!=null&&(m=m.filter(h=>h!==i)),!m.length)return null;for(const h of Ge(m)){const p=s[h];if(!n.has(p))continue;const g=Qa(c[h],u??"cho",p,40,a),f=[];for(const b of g)if(b!==p&&n.has(b)&&!f.includes(b)&&f.push(b),f.length>=2)break;if(!(f.length<2))return{question:e,distractors:[p,...f]}}return null}function Vi(e,t,a,r,n,i=null){const s=[...e];if(s.length!==3)return null;const c=s.map(h=>Me(h));if(c.some(h=>!h))return null;const d=Ja(e,a,r);if(d.some(h=>!h))return null;const u=tr(t),m=u&&t?d.map((h,p)=>Pa(h,t)?p:-1).filter(h=>h>=0):[0,1,2];if(!m.length)return null;for(const h of Ge(m))for(const p of Ge([0,1,2].filter(g=>g!==h&&(i==null||g===i)))){const g=[0,1,2].filter(_=>_!==p),f=g.map(_=>s[_]).join("");if(!n.has(f))continue;const b=g.indexOf(h),v=Qa(c[h],u??"cho",s[h],40,a),y=[];for(const _ of v){const x=g.map(k=>s[k]);x[b]=_;const C=x.join("");if(C!==f&&n.has(C)&&!y.includes(C)&&y.push(C),y.length>=2)break}if(!(y.length<2))return{question:e,distractors:[f,...y]}}return null}function Gi(e,t,a,r,n,i=null){const s=[...e],c=s.length;if(c<2)return null;const d=[];for(let m=1;m<=c-1;m++)d.push({remain:s.slice(0,m).join(""),dropped:s.slice(m).join(""),droppedEnd:1}),d.push({remain:s.slice(c-m).join(""),dropped:s.slice(0,c-m).join(""),droppedEnd:0});const u=tr(t);for(const{remain:m,dropped:h,droppedEnd:p}of Ge(d)){if(i!=null&&p!==i||m===e||!n.has(m)||!n.has(h))continue;const g=[...m],f=g.map(y=>Me(y));if(f.some(y=>!y))continue;const b=Ja(m,a,r);if(b.some(y=>!y))continue;const v=u&&t?b.map((y,_)=>Pa(y,t)?_:-1).filter(y=>y>=0):g.map((y,_)=>_);if(v.length)for(const y of Ge(v)){const _=Qa(f[y],u??"cho",g[y],40,a),x=[];for(const C of _){const k=[...g];k[y]=C;const w=k.join("");if(w!==m&&n.has(w)&&!x.includes(w)&&x.push(w),x.length>=2)break}if(x.length>=2)return{question:e,distractors:[m,...x]}}}return null}function qi(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=Me(a.get(e)||e);if(!s||s.jong===0)return null;const c=ua(s.cho,s.jung,0),d=Qa({cho:s.cho,jung:s.jung,jong:0},"cho",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}const Yi=Ze.indexOf("\u3147");function Ui(e,t,a,r,n,i=null){if([...e].length!==1)return null;const s=Me(a.get(e)||e);if(!s||s.jong!==0||s.cho===Yi)return null;const c=ua(Yi,s.jung,0),d=Qa({cho:Yi,jung:s.jung,jong:0},"jung",c,2,a);return d.length<2?null:{question:e,distractors:[c,...d]}}function Ki(e){const t=new Map;for(const a of e){const r=[...a],n=r.length;if(!(n<2||n>3))for(let i=0;i<n;i++){let s=n+"|"+i+"|";for(let d=0;d<n;d++)s+=d===i?"*":r[d];const c=t.get(s);c?c.push(a):t.set(s,[a])}}return t}function Zi(e,t,a,r,n,i=null,s=null,c=2){const d=[...e],u=d.length;if(u<2||u>3)return null;const m=d.map(_=>Me(_));if(m.some(_=>!_))return null;const h=Ja(e,a,r);if(h.some(_=>!_))return null;const p=_=>a.get(_)??_,g=p(e),f=!!t&&(ft(t.cho)||ft(t.jung)||ft(t.jong)),b=!!s&&(ft(s.cho)||ft(s.jung)||ft(s.jong)),v=_=>{let x=u+"|"+_+"|";for(let C=0;C<u;C++)x+=C===_?"*":d[C];return x};let y;if(i!=null){if(i>=u||f&&!Pa(h[i],t))return null;y=[i]}else f?y=h.map((_,x)=>Pa(_,t)?x:-1).filter(_=>_>=0):y=Array.from({length:u},(_,x)=>x);for(const _ of Ge(y)){const x=n.get(v(_))??[],C=[],k=[];for(const B of x){if(B===e)continue;const W=[...B].map(E=>Me(E)),M=m[_],T=W[_];if(!M||!T)continue;let $=0;if(M.cho!==T.cho&&$++,M.jung!==T.jung&&$++,M.jong!==T.jong&&$++,!($<c||p(B)===g))if(b){const E=Ja(B,a,r)[_];E&&Pa(E,s)?C.push(B):k.push(B)}else C.push(B)}if(!C.length)continue;const w=Ge(C)[0],S=[],j=new Set([g,p(w)]),A=b?k:C.filter(B=>B!==w);for(const B of Ge(A)){const W=p(B);if(!j.has(W)&&(j.add(W),S.push(B),S.length>=2))break}if(!b&&S.length<2)for(const B of Ge(x)){if(B===e||B===w)continue;const W=p(B);if(!j.has(W)&&(j.add(W),S.push(B),S.length>=2))break}if(!(S.length<2))return{question:e,distractors:[w,...S]}}return null}function Yr(e,t="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"){if(e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return t}const Xi="\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.";function Ji(e){return e?/failed to fetch|load failed|networkerror|network request failed|fetcherror/i.test(e):!1}function Nu(e){return Ji(e)?Xi:e}function Du(e,t){return e==="id"?void 0:`${e}|${t?"asc":"desc"}`}function Eu(e){const[t,a]=e.split("|");return{key:t,asc:a==="asc"}}function ju(e){let t=e==null?"":String(e);return/^[=+\-@\t\r]/.test(t)&&(t=" "+t),/[",\n\r]/.test(t)?`"${t.replaceAll('"','""')}"`:t}function Lu(e,t){const a=new Blob(["\uFEFF"+t],{type:"text/csv;charset=utf-8"}),r=URL.createObjectURL(a),n=document.createElement("a");n.href=r,n.download=e,n.click(),URL.revokeObjectURL(r)}const Mu="__ihab_core_word_pool__";function Jw(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function Pu(e,t){const a=new Map;for(const n of e)a.set(n.word,n);const r={entries:e,pairIndex:t??null,byWord:a};globalThis[Mu]=r,Jw()}function vo(){return globalThis[Mu]??null}const yo=globalThis;function Qi(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function Ru(e){yo.__ihabTrainingTimeLogger=e}function es(e){Qi("time",()=>yo.__ihabTrainingTimeLogger?.(e))}function $u(e){yo.__ihabTrainingCompletionLogger=e}function ts(e){Qi("completion",()=>yo.__ihabTrainingCompletionLogger?.(e))}function Iu(e){yo.__ihabCrosswordLogger=e}function zu(e){Qi("crossword",()=>yo.__ihabCrosswordLogger?.(e))}function Qt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function as(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function os(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Qt(r.contextCode)??Qt(r.itemId)??Qt(r.itemCode)??Qt(r.id),question:Qt(r.question)??Qt(r.sentence)??Qt(r.word)??Qt(r.targetSyllable),answer:Qt(r.answer),selected:Qt(r.selectedText)??Qt(r.selected),correct:as(r)}}):[]}function Ou(e){return e.filter(t=>t.correct===!1)}let Fu=null,Wu=null,Hu=null;function Vu(e){Fu=e}function Gu(e){Wu=e}function qu(e){Hu=e}async function Yu(e,t){try{return await Fu?.(e,t)??null}catch{return null}}async function Uu(){try{return await Wu?.()??null}catch{return null}}async function Ku(e,t){try{return await Hu?.(e,t)??null}catch{return null}}const rs=globalThis;function Zu(e){rs.__ihabNoiseSettingsStore=e}async function ns(){try{return await rs.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function is(e){const t=a=>{};try{const a=rs.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function ar(e){const t=new TextEncoder().encode(String(e).normalize("NFC"));let a="";return t.forEach(r=>{a+=r.toString(16).padStart(2,"0")}),a}const Xu=ar;function Ju(e,t){return`${e}/${ar(t)}.mp3`}function Qu(e={}){const t=e.storagePrefix??"audio-cache",a=e.voice??"ko-f",r=typeof e.speed=="number"?e.speed:1,n=e.filenameSanitizer??ar;return async function(i){const s=String(i||"").trim();if(!s)return"";const c=`${n(s)}_${a}.mp3`,d=`${t}/${c}`;try{if(await ti(d)){const u=await Oo(d);if(u)return u}}catch{}if(e.generator)try{const u=await e.generator(s,d,e);if(u)return u}catch{}try{const u=`/api/tts?word=${encodeURIComponent(s)}&voice=${encodeURIComponent(a)}&speed=${encodeURIComponent(String(r))}`;return await fetch(u,{method:"GET"}),`/audio-cache/${c}`}catch{return`/audio-cache/${c}`}}}async function ss(e){if(typeof document<"u")try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.opacity="0",t.style.pointerEvents="none",document.body.appendChild(t),t.focus(),t.select(),t.setSelectionRange(0,e.length);const a=document.execCommand("copy");if(document.body.removeChild(t),a)return!0}catch{}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}const xo="Asia/Seoul";function ep(e){return new Date(e).toLocaleDateString("ko-KR",{timeZone:xo,year:"numeric",month:"short",day:"numeric"})}function tp(e){return new Date(e).toLocaleString("ko-KR",{timeZone:xo,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function ap(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleDateString(a,{timeZone:xo,year:"numeric",month:"short",day:"numeric"})}function op(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleString(a,{timeZone:xo,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function rp(e){return new Date(e).toLocaleString("ko-KR",{timeZone:xo,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function np(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("en-GB",{timeZone:xo,hour:"2-digit",minute:"2-digit",hour12:!1}).format(t)}function Ur(){return ka(new Date)}function ka(e){if(e==null||e==="")return"";const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t)}function Kr(e,t){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),n=Math.floor(r/60),i=Math.floor(n/60),s=Math.floor(i/24),c=Math.floor(s/7),d=Math.floor(s/30),u=Math.floor(s/365);return n<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):n<60?t("store.time.minutesAgo",{n}):i<24?t("store.time.hoursAgo",{n:i}):s<7?t("store.time.daysAgo",{n:s}):c<5?t("store.time.weeksAgo",{n:c}):s<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:u})}function Zr(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:n=!1,fallback:i="\u2014"}=t;if(!e)return i;const s=ka(e instanceof Date?e:String(e));if(!s)return i;const[c,d,u]=s.split("-"),m=r?d:String(Number(d)),h=r?u:String(Number(u));return`${c}${a}${m}${a}${h}${n?".":""}`}function ip(e){const t=e.replace(/\D/g,"").slice(0,11);return t.startsWith("02")?t.length<=2?t:t.length<=6?`${t.slice(0,2)}-${t.slice(2)}`:`${t.slice(0,2)}-${t.slice(2,t.length-4)}-${t.slice(t.length-4)}`:t.length<=3?t:t.length<=7?`${t.slice(0,3)}-${t.slice(3)}`:`${t.slice(0,3)}-${t.slice(3,t.length-4)}-${t.slice(t.length-4)}`}function sp(e){if(e){if(/^\d{4}\.\d{2}\.\d{2}$/.test(e))return e;if(/^\d{8}$/.test(e))return`${e.slice(0,4)}.${e.slice(4,6)}.${e.slice(6,8)}`;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e.replace(/-/g,".");if(/^\d{4}-\d{2}-\d{2}T/.test(e)){const t=new Date(e);return isNaN(t.getTime())?void 0:ka(t).replace(/-/g,".")}}}function lp(e){if(e)return/^\d{4}\.\d{2}\.\d{2}$/.test(e)?e.replace(/\./g,"-"):e}function or(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function Xr(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),n=Number(a[2]),i=a[1].padStart(2,"0");return n===0?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:n,mm:a[2]})}function rr(e){return(e??0).toLocaleString("ko-KR")}const Qw=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],e4=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];let ls=null;function cp(e){ls=e}function Jr(){return ls?.topicTypes??Qw}function cs(){return ls?.trainingTypes??e4}const dp="ihab_theme",t4="light";function ds(){try{const e=localStorage.getItem(dp);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return t4}function us(e){try{document.documentElement.setAttribute("data-theme",e),localStorage.setItem(dp,e)}catch{}}function up(){us(ds())}const pp="ihab_font_scale",a4="medium",o4=["medium","large1","large2","large3"];function ps(){try{const e=localStorage.getItem(pp);if(o4.includes(e))return e}catch{}return a4}function hs(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(pp,e)}catch{}}function hp(){hs(ps())}const Ra=[],$a=[],Ia=[],za=[],nr={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},ir={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},r4={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let ms=null,mp=null,Oa=null;function bs({counts:e,forceRefresh:t}={}){const a=Object.assign({},r4,e||{}),r=Ur(),n=ka(new Date(`${r}T00:00:00+09:00`).getTime()-864e5),i=JSON.stringify(a);if(!t&&mp===r&&ms===i&&Oa)return Object.assign(nr,Oa.today),Object.assign(ir,Oa.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:nr,yesterday:ir};const s={LISTEN_IN_NOISE:Jt(Ra,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:Jt($a,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:Jt(Ia,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:Jt(za,Math.max(0,Number(a.ORDERING_SENTENCE)||0))};let c=null;return Oa&&ms===i&&Oa.yesterday&&Oa.yesterday.date===n&&(c=Oa.yesterday.selection),c||(c={LISTEN_IN_NOISE:Jt(Ra,Math.max(0,Number(a.LISTEN_IN_NOISE)||0)),SHORT_STORY:Jt($a,Math.max(0,Number(a.SHORT_STORY)||0)),LONG_STORY:Jt(Ia,Math.max(0,Number(a.LONG_STORY)||0)),ORDERING_SENTENCE:Jt(za,Math.max(0,Number(a.ORDERING_SENTENCE)||0))}),Object.assign(nr,s),Object.assign(ir,c),mp=r,ms=i,Oa={today:s,yesterday:{date:n,countsKey:i,selection:c}},{today:nr,yesterday:ir}}function bp(){return{today:nr,yesterday:ir}}function gs(){return{LISTEN_IN_NOISE:Ra,SHORT_STORY:$a,LONG_STORY:Ia,ORDERING_SENTENCE:za}}let fs=!1,sr=null;async function n4(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}&&void 0||"/",t=await fetch(`${e}data/allTrainingData.json`);return t.ok?await t.json():null}catch{return null}}async function vs(){if(!fs)return sr||(sr=(async()=>{const e=await n4();if(!e){sr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{for(const t of Object.keys(e||{})){const a=e[t]||[];for(const r of a){const n=r,i=String(n.training_type||t),s=String(n.category_main_code||n.category_main||n.category_0||""),c=String(n.category_sub_code||n.category_sub||n.category_1||""),d=Object.assign({},n,{training_type:i,category_0:s,category_1:c});i==="LISTEN_IN_NOISE"?Ra.push(d):i==="SHORT_STORY"?$a.push(d):i==="LONG_STORY"?Ia.push(d):i==="ORDERING_SENTENCE"&&za.push(d)}}}catch{sr=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}try{bs()}catch{}fs=!0})(),sr)}function gp(){return fs}async function ys(e=3e3){const t=vs();return Promise.race([t,new Promise(a=>setTimeout(a,e))])}const Qr=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],fp=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:" \uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uC0C1\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],xs={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function i4(e){return Qr.map(t=>{const a=xs[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let en=null,vp=null,yp=null;function s4(){const e=vo();if(e&&e.entries.length>0){const t=Ka();if(en&&vp===e&&yp===t)return en;const a=new Set,r=[];for(const n of e.entries)!n.word||a.has(n.word)||(a.add(n.word),r.push({w:n.word,s:n.syllables,p:t?.[n.word]?[...t[n.word].cho??[],...t[n.word].jung??[],...t[n.word].jong??[]]:[],pron:n.pronunciation||n.word,grade:n.grade}));return en=r,vp=e,yp=t,en}return[]}const ea=new Proxy([],{get(e,t){const a=s4(),r=a[t];return typeof r=="function"?r.bind(a):r}});function tn(e){return e.length?e[Math.floor(Math.random()*e.length)]:void 0}function ta(e,t){if(t>=e.length)return Ge(e);if(t===0)return[];const a=e.slice();for(let r=0;r<t;r++){const n=r+Math.floor(Math.random()*(a.length-r)),i=a[r];a[r]=a[n],a[n]=i}return a.slice(0,t)}let Cs=null,xp=null;function eo(){const e=vo();if(Cs&&xp===e)return Cs;const t=new Map;for(const a of ea)a.w&&t.set(a.w,a.pron);return Cs=t,xp=e,t}function Ft(e){return eo().get(e)||e}function _s(e,t,a=new Set){const r=[];for(const n of Ge(e)){if(r.length>=t)break;const i=Ft(n);a.has(i)||(a.add(i),r.push(n))}return r}let l4=0;function Tt(e){return`${e}-rt-${++l4}`}function lr(e){const t=Mr();if(!t||t.total===0){const r=new Set;for(const n of e)r.add(n);return r}const a=new Set;for(const r of e)li(r)===!0&&a.add(r);return a}const an=new Map;let Cp=null,_p=null;function cr(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function wp(e){const t=cr(e.choseong),a=e.composition,r=a?.syllable==null?"":Array.isArray(a.syllable)?a.syllable.slice().sort().join(","):String(a.syllable),n=a?`${cr(a.cho)}/${cr(a.jung)}/${cr(a.jong)}/${a.jongNone?"N":""}/${r}`:"",i=cr(e.grade);return`${e.difficulty??""}|${t}|${n}|${e.excludeNoImage?"1":"0"}|${e.count??""}|x${e.contrastCount??1}|${e.fullCount?"F":""}|s${e.sameStructureOnly===!1?"0":"1"}|v${e.phonemeView==="pron"?"p":"c"}|g${i}|t${e.targetSyllable??""}|c${e.choicesPerItem??""}`}async function Wt(e){const t=vo(),a=Ka();(t!==Cp||a!==_p)&&(an.clear(),Cp=t,_p=a);const r=wp(e);return an.has(r)||an.set(r,d4(e)),an.get(r)}function c4(e){if(!e)return null;const t=s=>s==null?null:Array.isArray(s)?s.length?s:null:[s],a=t(e.cho),r=t(e.jung),n=!!e.jongNone,i=n?null:t(e.jong);return a||r||i||n?n&&!a&&!r&&!i?s=>bi(s):s=>gi(s,{cho:a,jung:r,jong:i,jongNone:n}):null}async function d4(e){const{difficulty:t=null,choseong:a=null,composition:r=null,targetSyllable:n=null,excludeNoImage:i=!1}=e,s=e.grade&&e.grade.length>0?new Set(e.grade):null,c=e.sameStructureOnly??!0,d=e.phonemeView==="pron"?"pron":"char",u=Math.max(1,e.contrastCount??1),m=t==="cho"||t==="jung"||t==="jong",h=m&&u>=2,p=t==="count",g=a?new Set(Array.isArray(a)?a:[a]):null,f=r?.syllable!=null?new Set(Array.isArray(r.syllable)?r.syllable:[r.syllable]):null,b=r?[c4(r),f?N=>f.has(bo(N)):null].filter(N=>N!=null):[],v=t==="random"||t===null,y=v||p,_=v||h||p;let x=ea.filter(N=>!N.w||s&&(!N.grade||!s.has(N.grade))?!1:_?!0:Array.isArray(N.p)&&N.p.length>0);g&&(x=x.filter(N=>{for(const L of g)if(yw(N.w,L))return!0;return!1})),b.length>0&&(x=x.filter(N=>{const L=d==="pron"?Ft(N.w):N.w;return b.every(R=>R(L))})),n&&(x=x.filter(N=>N.w[0]===n));let C;if(i){const N=new Set;for(const L of x)if(N.add(L.w),Array.isArray(L.p))for(const R of L.p)N.add(R);if(y)for(const L of ea)L.w&&N.add(L.w);C=lr(N)}else{const N=new Set;for(const L of x)if(N.add(L.w),Array.isArray(L.p))for(const R of L.p)N.add(R);if(y)for(const L of ea)L.w&&N.add(L.w);C=N}let k=null;if(h){const N=new Set;for(const L of ea)L.w&&N.add(L.w);k=i?lr(N):N}const w=x.filter(N=>C.has(N.w)),S=600,j=Array.from(C),A=j.length>S?ta(j,S):j,B=p&&r!=null&&(ft(r.cho)||ft(r.jung)||ft(r.jong)),W=2500,M=new Map;if(p&&!B&&u>=2){for(const N of j){const L=bo(N),R=M.get(L);R?R.push(N):M.set(L,[N])}for(const[N,L]of M)L.length>W&&M.set(N,ta(L,W))}const T=di(),$=B?ki(r,j,T,c,d,Ft):null,E=500,H=1500,te=e.fullCount?w:t==="random"?w.length>E?ta(w,E):w:w.length>H?ta(w,H):w,Q=Ka(),ae=[];for(const N of te){let L;const R=Ft(N.w);if(h)L=kw(N.w,t,u,k,24).filter(z=>Ft(z)!==R);else if(p)B?L=($.get(N.w)??[]).filter(z=>Ft(z)!==R):u<=1?L=Pr(N.w,Q,{okSet:C,pronOf:Ft,decompOf:T,sameStructureOnly:!1}):L=(M.get(bo(N.w))??[]).filter(z=>{if(z===N.w||Ft(z)===R)return!1;const V=Sw(N.w,z);return u>=5?V>=5:V===u});else if(v)L=A.filter(z=>z!==N.w&&z.length===N.w.length&&Ft(z)!==R);else{const z=t;L=Pr(N.w,Q,{kind:z,okSet:C,pronOf:Ft,decompOf:T,sameStructureOnly:!1}),L.length===0&&(L=(A.length>30?ta(A,30):A).filter(V=>V!==N.w&&ui(N.w,V)===t&&Ft(V)!==R))}if(c&&L.length>0&&(m||p&&!B)){const z=T(Ft(N.w));L=L.filter(V=>!Ko(z,T(Ft(V))))}L.length!==0&&ae.push({word:N,usable:L})}return ae}async function kp(e,t){const{choicesPerItem:a=3,count:r=10}=t,n=a-1,i=(await Wt(t)).filter(c=>c.usable.length>=n),s=[];for(const c of Ge(i)){if(s.length>=r)break;const d=_s(c.usable,n);if(d.length<n)continue;const u=Ge([c.word.w,...d]);s.push({id:Tt(e+"-item"),index:s.length+1,word:c.word.w,syllables:c.word.s,choices:u,answerIndex:u.indexOf(c.word.w)})}return s}async function u4(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Wt({...e,difficulty:null});if(n.length<t)return[];const i=[],s=Ge([...n]);for(const c of s){if(i.length>=a)break;const d=c.word.w,u=[...c.word.pron||d],m=tn(u);if(!m)continue;const h=n.filter(f=>f.word.w!==d&&f.word.s===c.word.s&&!(f.word.pron||f.word.w).includes(m)&&f.word.pron!==c.word.pron);if(h.length<r)continue;const p=_s(h.map(f=>f.word.w),r);if(p.length<r)continue;const g=Ge([d,...p]);i.push({id:Tt("HPI-item"),index:i.length+1,targetSyllable:m,word:d,choices:g,answerIndex:g.indexOf(d)})}return i}async function p4(e){const{count:t=10}=e,a=(await Wt(e)).filter(r=>r.usable.length>=1);return Array.from({length:t},(r,n)=>{const i=tn(a);if(!i)return null;const s=n%2===0;let c;if(s)c=[i.word.w,i.word.w];else{const d=tn(i.usable);c=Math.random()<.5?[i.word.w,d]:[d,i.word.w]}return{id:Tt("SOD-item"),index:n+1,word:i.word.w,pair:c,same:s}}).filter(r=>!!r)}async function h4(e){const{choicesPerItem:t=3,count:a=10}=e,r=t-1,n=await Wt({...e,difficulty:null});if(n.length<t+1)return[];const i=n.map(p=>p.word.w),s=new Map(n.map(p=>[p.word.w,p.word.pron])),c=p=>(s.get(p)||p)[0]??"",d={};for(const p of n){const g=c(p.word.w);g&&(d[g]||(d[g]=[]),d[g].push(p.word.w))}const u=Object.entries(d).filter(([,p])=>p.length>=2).map(([p])=>p);if(u.length===0)return[];const m=[],h=Ge([...u]);for(let p=0;m.length<a&&p<a*4;p++){const g=h[p%h.length],f=d[g];if(f.length<2)continue;const b=Ge([...f]),v=b[0],y=b[1];if(!v||!y||v===y||(s.get(v)||v)===(s.get(y)||y))continue;const _=s.get(y)||y,x=i.filter(w=>c(w)!==g&&w!==v&&w!==y&&w.length===y.length&&(s.get(w)||w)!==_);if(x.length<r)continue;const C=_s(x,r);if(C.length<r)continue;const k=Ge([y,...C]);m.push({id:Tt("SWS-item"),index:m.length+1,sourceWord:v,targetSyllable:g,word:y,choices:k,answerIndex:k.indexOf(y)})}return m}function Sp(e,t,a){return ta(e,t).map((r,n)=>{const i=tn(r.usable)??"",s=[...r.word.w],c=[...i],d=s.findIndex((m,h)=>m!==c[h]),u=Ge(r.usable.filter(m=>m&&m!==i)).slice(0,2);return{id:Tt(a),index:n+1,word:r.word.w,original:r.word.w,changed:i,changedFrom:d>=0?s[d]:"",changedTo:d>=0?c[d]:"",distractors:u}})}async function Ap(e,t,a){const{count:r=10}=t,n=eo(),i=ea.filter(g=>g.w&&g.s===e),s=t.excludeNoImage?lr(i.map(g=>g.w)):null,c=s?i.filter(g=>s.has(g.w)):i,d=new Set(c.map(g=>g.w)),u=Ki(d),m=t.phonemeView??"char",h=t.composition??null,p=[];for(const g of Ge(c)){if(p.length>=r)break;const f=Zi(g.w,h,n,m,u,null,null);if(!f)continue;const b=f.distractors[0],v=[...g.w],y=[...b],_=v.findIndex((x,C)=>x!==y[C]);p.push({id:Tt(a),index:p.length+1,word:g.w,original:g.w,changed:b,changedFrom:_>=0?v[_]:"",changedTo:_>=0?y[_]:"",distractors:f.distractors.slice(1)})}return p}async function m4(e){return Ap(2,e,"CS2-item")}async function b4(e){return Ap(3,e,"CS3-item")}async function g4(e){const t=(await Wt({...e,difficulty:"count",contrastCount:1})).filter(a=>a.word.s===1&&a.usable.length>=1);return Sp(t,e.count??10,"CP1-item")}async function f4(e){const t=e.difficulty&&e.difficulty!=="random"?e.difficulty:"count",a=(await Wt({...e,difficulty:t,contrastCount:1})).filter(r=>r.word.s===2&&r.usable.length>=1);return Sp(a,e.count??10,"CP2-item")}async function v4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(r=>r.word.s===2);return ta(a,t).map((r,n)=>({id:Tt("M2S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function y4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(r=>r.word.s===3);return ta(a,t).map((r,n)=>({id:Tt("M3S-item"),index:n+1,word:r.word.w,answer:r.word.w,parts:[...r.word.w]}))}async function x4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(c=>c.word.s===2),r=eo(),n=new Set(ea.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ge(a)){if(s.length>=t)break;const d=Hi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=[...c.word.w],p=h[0]===u?h[1]:h[0];s.push({id:Tt("D2-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:p,missingResult:u,distractors:m})}return s}async function C4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(c=>c.word.s===3),r=eo(),n=new Set(ea.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ge(a)){if(s.length>=t)break;const d=Vi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=[...c.word.w];let p="";for(let g=0;g<h.length;g++)if(h.filter((f,b)=>b!==g).join("")===u){p=h[g];break}s.push({id:Tt("D3-item"),index:s.length+1,original:c.word.w,word:c.word.w,dropped:p,missingResult:u,distractors:m})}return s}async function _4(e){const{count:t=10}=e,a=(await Wt({...e})).filter(c=>c.word.s>=2),r=eo(),n=new Set(ea.map(c=>c.w)),i=e.phonemeView??"char",s=[];for(const c of Ge(a)){if(s.length>=t)break;const d=Gi(c.word.w,e.composition??null,r,i,n);if(!d)continue;const[u,...m]=d.distractors,h=c.word.w,p=h.startsWith(u)?h.slice(u.length):h.endsWith(u)?h.slice(0,h.length-u.length):"";s.push({id:Tt("DPC-item"),index:s.length+1,original:h,word:h,dropped:p,missingResult:u,distractors:m})}return s}async function w4(e){const{count:t=10}=e,a=(await Wt({...e})).map(r=>r.word.w);return a.length<3?[]:Array.from({length:t},(r,n)=>{const i=ta(a,3);return{id:Tt("LRO-item"),index:n+1,sequence:i,choices:Ge(i)}})}function on(e,t,a){const r=ea.filter(s=>s.w&&s.s===e),n=t?lr(r.map(s=>s.w)):null,i=[];for(const s of r)if(!(n&&!n.has(s.w))){if(a){const c=Me(s.w);if(!c||!a(c))continue}i.push(s)}return i}function k4(e){const t=on(1,e.excludeNoImage??!1,a=>a.jong===0);return ta(t,e.count??10).map((a,r)=>{const n=Me(a.w);return{id:Tt("M2P-item"),index:r+1,parts:[Ze[n.cho],dt[n.jung]],answer:a.w,word:a.w}})}function S4(e){const t=on(1,e.excludeNoImage??!1,a=>a.jong>0&&!mo[a.jong]);return ta(t,e.count??10).map((a,r)=>{const n=Me(a.w);return{id:Tt("M3P-item"),index:r+1,parts:[Ze[n.cho],dt[n.jung],gt[n.jong]],answer:a.w,word:a.w}})}function A4(e){const t=Gr.DROP_FINAL_CONSONANT_FROM_1SYLL,a=on(t.syllables,e.excludeNoImage??!1,t.syllable),r=eo(),n=[];for(const i of Ge(a)){if(n.length>=(e.count??10))break;const s=qi(i.w,null,r);if(!s)continue;const[c,...d]=s.distractors;n.push({id:Tt("DFC-item"),index:n.length+1,original:i.w,word:i.w,result:c,distractors:d})}return n}function T4(e){const t=Gr.REMOVE_CONSONANT_AND_IDENTIFY_PHONEME,a=on(t.syllables,e.excludeNoImage??!1,t.syllable),r=eo(),n=[];for(const i of Ge(a)){if(n.length>=(e.count??10))break;const s=Ui(i.w,null,r);if(!s)continue;const c=Me(r.get(i.w)||i.w);if(!c)continue;const[d,...u]=s.distractors;n.push({id:Tt("RCP-item"),index:n.length+1,base:i.w,word:i.w,missingConsonant:Ze[c.cho],remaining:d,distractors:u})}return n}const rn=new Map;let Tp=null,Bp=null;async function Np(e,t={}){const a=vo(),r=Ka();(a!==Tp||r!==Bp)&&(rn.clear(),Tp=a,Bp=r);const n=`${e}:${wp(t)}`;if(rn.has(n))return rn.get(n);const i=await N4(e,t);return rn.set(n,i),i}const B4={SAME_SOUND_PICK:e=>kp("SSP",e),HEAR_AND_PICK_SAME:e=>kp("HPS",e),HEAR_AND_PICK_INCLUDED:e=>u4(e),SAME_OR_DIFF:e=>p4(e),STARTS_WITH_SAME_SOUND:e=>h4(e),LISTEN_AND_REMEMBER_ORDER:e=>w4(e),MERGE_2_SYLLABLES:e=>v4(e),MERGE_3_SYLLABLES:e=>y4(e),MERGE_2_PHONEMES:e=>k4(e),MERGE_3_PHONEMES:e=>S4(e),DROP_1_FROM_2SYLL:e=>x4(e),DROP_1_FROM_3SYLL:e=>C4(e),DROP_PART_FROM_COMPOUND:e=>_4(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>A4(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>T4(e),CHANGE_1_SYLL_IN_2SYLL:e=>m4(e),CHANGE_1_SYLL_IN_3SYLL:e=>b4(e),CHANGE_1_PHONEME_IN_1SYLL:e=>g4(e),CHANGE_1_PHONEME_IN_2SYLL:e=>f4(e)};async function N4(e,t={}){const a=B4[e];return a?await a(t):[]}async function D4(e){const t=[null,"count"],a=Object.keys(fo);let r=0;for(const n of t)for(const i of a){const s=fo[i];Np(i,{difficulty:s.difficulty?n:null,choseong:null,count:10,excludeNoImage:e}).catch(()=>{}),++r%6===0&&await new Promise(c=>setTimeout(c,0))}}async function E4(e){return(await Wt({...e,fullCount:!0})).length}async function j4(e={}){const t=[];for(const c of ea)c.w&&t.push(c.w);const a=e.excludeNoImage?lr(t):t,r=new Set,n=new Set,i=new Set,s=new Set;for(const c of a){s.add(bo(c));for(const d of c){const u=Me(d);if(u&&(Ze[u.cho]!=="\u3147"&&r.add(Ze[u.cho]),n.add(dt[u.jung]),u.jong>0)){i.add(gt[u.jong]);const m=mo[u.jong];m&&m.forEach(h=>i.add(h))}}}return{cho:r,jung:n,jong:i,syllable:s}}const Dp={free:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},personal_standard:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},mgr_free:{maxCustomers:5,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},none:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},lite_word:{maxCustomers:10,visitWord:!0,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!1},lite_sentence:{maxCustomers:10,visitWord:!1,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!0},lite:{maxCustomers:10,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},standard:{maxCustomers:30,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},pro:{maxCustomers:50,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0},enterprise:{maxCustomers:1/0,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!0,managerManagement:!0,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!0,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!0,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!0,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0}},Ep={none:0,free:1,personal_standard:3,mgr_free:4,lite_word:5,lite_sentence:5,lite:6,standard:7,pro:8,enterprise:9},jp={free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1},personal_standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null},mgr_free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1,trainingItemMax:5,customerMax:5,homeworkSendDaily:1},lite:{sentenceTrainingDaily:5,wordTrainingDaily:5,gameDaily:5,trainingItemMax:10,customerMax:10,homeworkSendDaily:10},standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:30,customerMax:30,homeworkSendDaily:30},pro:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:50,homeworkSendDaily:50},enterprise:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:null,homeworkSendDaily:null}};function Lp(e){const t=e.toLowerCase();return t.startsWith("manager_enterprise")?"enterprise":t.startsWith("manager_pro")?"pro":t.startsWith("manager_standard")?"standard":t.startsWith("manager_lite_word")?"lite_word":t.startsWith("manager_lite_sentence")?"lite_sentence":t.startsWith("manager_lite")||t.startsWith("mgr_lite")?"lite":t.startsWith("mgr_standard")?"standard":t.startsWith("mgr_pro")?"pro":t.startsWith("content_")||t.startsWith("speechear_")||t.startsWith("light_")||t==="light"?"personal_standard":"none"}const Mp=5,Pp=5;function Rp({rank:e,voteCount:t,quota:a=5}){return e<a&&t>0}const $p={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"},nn="0.72.0";var L4=Object.freeze({__proto__:null,CAPABILITY:fo,CHOSEONG:Ze,CORE_VERSION:nn,JONGSEONG:gt,JUNGSEONG:dt,LONG_STORIES:Ia,NETWORK_ERROR_MESSAGE:Xi,NOISE_DATAS:Ra,ORDER_SETS:za,PLAN_FEATURES:Dp,PLAN_LIMITS:jp,SHORT_STORIES:$a,TIER_RANK:Ep,TOPIC_TYPES:fp,TRAINING_TYPES:Qr,TRAINING_TYPE_I18N_KEY:xs,WORD_SUGGESTION_ACCOUNT_LIMIT:Pp,WORD_SUGGESTION_EXISTING_ERROR:$p,WORD_SUGGESTION_WEEKLY_QUOTA:Mp,applyFontScale:hs,applyTheme:us,buildChangeWholeSyllableProblem:Zi,buildDropCompoundProblem:Gi,buildDropContrast3Problem:Vi,buildDropContrastProblem:Hi,buildDropFinalConsonantProblem:qi,buildMultiPartPosContrast:ki,buildPairIndex:iu,buildRemoveConsonantProblem:Ui,buildSyllableMaskIndex:Ki,bulkSetImageExistence:Kd,cardQuestionTitle:Tu,checkImageExists:Yo,classifyPairDifficulty:ui,clearAudioExistsCache:Wd,clearImageExistenceCache:ci,clearPairIndexCache:Ci,composeSyllable:ua,computeDailySelection:bs,configureImageResolver:Yd,configureNoiseSettingsStore:Zu,configurePronunciationResolver:Vd,configureStorage:ei,configureTTS:Fd,configureTrainingCategories:cp,copyText:ss,createDecompCache:di,createTTSUrlResolver:Qu,dateToDb:lp,downloadCsvText:Lu,downloadSound:Er,ensureTrainingDataLoaded:ys,escapeCsvField:ju,fileExists:ti,filterContrastCandidates:wi,finalToPhoneme:Vr,firstChoseongOf:pi,formatCount:rr,formatDateKo:ep,formatDateLocale:ap,formatDateLongKo:tp,formatDateLongLocale:op,formatDatetimeKo:rp,formatPhone:ip,formatRelativeTime:Kr,formatTimeHM:Xr,formatYmd:Zr,getAssetBaseUrl:Jn,getDailySelection:bp,getElementAnalyser:Vo,getErrorMessage:Yr,getImageExistenceStats:Mr,getImageExistsCached:li,getImageResolver:Ma,getNoiseBaseUrl:ai,getPairIndex:Ka,getPlanTier:Lp,getPronunciationResolver:ni,getSavedFontScale:ps,getSavedTheme:ds,getSignedOrPublicUrl:Oo,getTTSFallbackUrlResolver:ri,getTTSUrlResolver:Fo,getTodayKst:Ur,getTopicTypes:Jr,getTrainingPools:gs,getTrainingTypes:cs,getWordPool:vo,hasQuestionWordConstraint:xu,hasSel:ft,hasStructureContrast:Ko,initFontScale:hp,initTheme:up,isAllChoseong:mi,isManualOnlyType:_u,isNetworkErrorMessage:Ji,isSyllablePattern:fi,isThisWeekPick:Rp,isTrainingDataLoaded:gp,isValidQuestionWord:Cu,itemCorrectness:as,jamoToNamesForSpeech:Bu,loadGameLeaderboard:Ku,loadMyGameRanks:Uu,loadNoiseSettings:ns,loadTrainingData:vs,logCrossword:zu,logTrainingCompletion:ts,logTrainingTime:es,matchSyllables:Ja,matchesChoseongSearch:Zd,matchesSyllablePattern:vi,matchesWordQuery:ho,mergeQuestionText:Fi,minimalPairDistractors:Pr,normalizeDate:sp,officialSoundPath:Ju,parseSortValue:Eu,parseSyllable:Me,patternToComposition:au,phonemePartsOf:Au,pickEuRo:Ii,pickEulReul:Mi,pickEunNeun:Ri,pickIga:ji,pickWaGwa:$i,prewarmImageCache:Ud,primarySelPart:tr,readLevel:ii,reorderArray:zi,resolveAssetUrl:Io,resolveSoundPath:Dr,resumeAudioMeter:Ho,sample:Jt,saveNoiseSettings:is,searchAndRankWords:ru,setAssetBaseUrl:zd,setCrosswordLogger:Iu,setGameLeaderboardLoader:qu,setGameRanksLoader:Gu,setGameScoreSubmitter:Vu,setTrainingCompletionLogger:$u,setTrainingTimeLogger:Ru,setWordPool:Pu,shuffle:Ge,sortToValue:Du,soundOf:qr,speak:Rd,stopSpeaking:$d,submitGameScore:Yu,syllMatchesComp:Pa,syllableContrasts:Qa,syllableLength:bo,syllablePron:Wi,toBase64UrlSafe:Xu,toChoseong:hi,toItemResults:os,toKstHm:np,toKstYmd:ka,toStandardPronunciation:gu,toStorageName:ar,toUserErrorMessage:Nu,validateSyllableSearchInput:ou,withEuRo:yu,withEulReul:Pi,withEunNeun:fu,withIga:Li,withWaGwa:vu,wordContainsChoseong:Jd,wordContainsJongseong:eu,wordContainsJungseong:Qd,wordHasNoCoda:bi,wordHasSyllableMatching:gi,wrongItems:Ou});function M4(e){return typeof window>"u"?"":pw.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function P4(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),[i,s]=l.useState(null),[c,d]=l.useState(null);return l.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),n(null),s(null);return}const u=e.split("/").pop();let m=e;u&&(e.startsWith("/")?m=Io(e):/^(Logo|Symbol)/i.test(u)?m=Io(`logo/${u}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),a(m)},[e]),l.useEffect(()=>{if(!t)return;let u=!1;async function m(){try{let h=await fetch(t);h.ok||(h=await fetch(t));const p=h.headers.get("content-type")||"";if(u)return;if(p.includes("svg")){n("mask");return}if(p.startsWith("image/")){n("img");return}const g=await fetch(t);if(!g.ok)throw new Error("not ok");const f=await g.text();if(u)return;if(/^\s*<svg[\s>]/i.test(f)){const b=M4(f);if(!b){n("none");return}s(b),n("inline");return}n("none")}catch{u||n("none")}}return m(),()=>{u=!0}},[t]),l.useEffect(()=>{let u=!1,m=null;return r==="mask"&&t&&fetch(t).then(h=>{if(!h.ok)throw new Error("fetch failed");return h.blob()}).then(h=>{u||(m=URL.createObjectURL(h),d(m))}).catch(()=>{u||n("img")}),()=>{u=!0,m&&URL.revokeObjectURL(m),d(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function Fe(e){const{icon:t,label:a,className:r,imgClassName:n,maskClassName:i,svgClassName:s,wrapperStyle:c,size:d}=e||{},u=r??"iconRenderer-icon",m=n??"iconRenderer-icon-image",h=i??"iconRenderer-icon-mask",p=s??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,f=E_(g),{iconToUse:b,mode:v,svgText:y,blobUrl:_}=P4(g),x=(S,j={})=>o.jsx("span",{className:u,style:c,...j,children:S}),C=(S,j={})=>o.jsx("img",{src:S,alt:typeof a=="string"?a:a?String(a):"",className:m,...j});if(!t)return null;if(typeof t!="string")return x(t);if(t==="none")return x(o.jsx("span",{className:p,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(f)try{return x(l.createElement(f,{className:p,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(v==="mask"){const S={"--icon-url":_?`url(${_})`:`url(${b})`};return x(o.jsx("span",{className:h,style:S}),{"aria-hidden":"true"})}return v==="img"?x(C(b,{onError:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="inline"?x(o.jsx("span",{className:p,dangerouslySetInnerHTML:y?{__html:y}:void 0}),{"aria-hidden":"true"}):x(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return C(Io(t),{style:c,onError:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}});const k=typeof d=="number"?d:20,w=`<svg width="${k}" height="${k}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return x(o.jsx("span",{className:p,dangerouslySetInnerHTML:{__html:w}}),{"aria-hidden":"true"})}function Ip({icon:e,emoji:t,title:a,message:r,hint:n,action:i,compact:s,className:c}){return o.jsxs("div",{className:_e("empty-state",s&&"empty-state--compact",c),children:[t&&o.jsx("span",{className:"empty-state__emoji",children:t}),e&&o.jsx(Fe,{icon:e,className:"empty-state__icon"}),a&&o.jsx("p",{className:"empty-state__title body-2",children:a}),r&&o.jsx("p",{className:"empty-state__message body-3",children:r}),n&&o.jsx("p",{className:"empty-state__hint caption-1",children:n}),i&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i.onClick,children:[i.icon&&o.jsx(Fe,{icon:i.icon,className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:i.label})]})]})}var R4=".ihabdevteam-core-scope .error-state__icon{color:var(--color-error)}";ee(R4);function zp({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:n,className:i}){const{t:s}=me.useTranslation();return o.jsxs("div",{className:_e("empty-state","error-state",i),role:"alert",children:[o.jsx(Fe,{icon:a,className:"empty-state__icon error-state__icon"}),o.jsx("p",{className:"empty-state__message body-3",children:e??s("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&o.jsx("p",{className:"empty-state__hint caption-1",children:t}),r&&o.jsxs("button",{className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[o.jsx(Fe,{icon:"rotate-cw",className:"button__icon"}),o.jsx("span",{className:"button__label button-1",children:n??s("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}var $4=".ihabdevteam-core-scope .action-card{--ac-color:var(--color-main);--ac-color-a10:var(--color-main-a10);aspect-ratio:1/1;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-l);box-shadow:var(--shadow-card);cursor:pointer;display:block;overflow:hidden;transition:transform .2s ease-out,box-shadow .2s ease-out,border-color .2s ease-out;width:100%}.ihabdevteam-core-scope .action-card--sub{--ac-color:var(--color-sub);--ac-color-a10:var(--color-sub-a10)}.ihabdevteam-core-scope .action-card:focus-visible{outline:none}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):focus-visible,.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover{border-color:var(--ac-color);box-shadow:var(--shadow-panel);transform:translateY(-4px)}.ihabdevteam-core-scope .action-card--disabled{cursor:wait;opacity:.6}.ihabdevteam-core-scope .action-card__body{display:flex;flex-direction:column;gap:var(--spacing-m);height:100%;padding:var(--spacing-l)}.ihabdevteam-core-scope .action-card__chip{align-items:center;background:var(--ac-color-a10);border-radius:var(--radius-m);color:var(--ac-color);display:flex;height:64px;justify-content:center;width:64px}.ihabdevteam-core-scope .action-card__text{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .action-card__title{color:var(--color-text-primary);font-size:var(--text-h2-size);font-weight:var(--text-h2-weight-bold);letter-spacing:var(--text-h2-spacing);line-height:var(--text-h2-line);margin:0}.ihabdevteam-core-scope .action-card__desc{color:var(--color-lightGray);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .action-card__cta{align-items:center;color:var(--ac-color);display:flex;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);gap:var(--spacing-xs);justify-content:flex-end;line-height:var(--text-body-2-line);margin-top:auto;padding-right:var(--spacing-s);padding-top:var(--spacing-s)}.ihabdevteam-core-scope .action-card__arrow{display:flex;transition:transform .2s}.ihabdevteam-core-scope .action-card:not(.action-card--disabled):hover .action-card__arrow{transform:translateX(4px)}";ee($4);function Op({icon:e,title:t,description:a,cta:r,tone:n="main",disabled:i=!1,onClick:s,className:c=""}){const d=()=>{i||s?.()};return o.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":t,onClick:d,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d())},className:_e("action-card",`action-card--${n}`,i&&"action-card--disabled",c),children:o.jsxs("div",{className:"action-card__body",children:[o.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:o.jsx(Fe,{icon:e,size:34})}),o.jsxs("div",{className:"action-card__text",children:[o.jsx("h2",{className:"action-card__title",children:t}),o.jsx("p",{className:"action-card__desc",children:a})]}),o.jsxs("div",{className:"action-card__cta",children:[o.jsx("span",{children:r}),o.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:o.jsx(Fe,{icon:"arrow-right",size:18})})]})]})})}function Fp({as:e="div",className:t="",children:a,storage:r,...n}){r&&ei({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl});const i=_e("ihabdevteam-core-scope",t);return o.jsx(e,{className:i,...n,children:a})}var I4=".ihabdevteam-core-scope .notice-box{background:var(--color-darkWhite);border-radius:var(--radius-m);color:var(--color-gray);margin:0 auto var(--spacing-page);padding:var(--spacing-l);position:relative;text-align:left}.ihabdevteam-core-scope .notice-box ul{margin:0;padding:0 0 0 18px}.ihabdevteam-core-scope .notice-box__inner{border-radius:var(--radius-s);padding:12px 14px;text-align:left}.ihabdevteam-core-scope .notice-box__title{color:var(--color-darkGray);margin:0 0 10px}.ihabdevteam-core-scope .notice-box__body,.ihabdevteam-core-scope .notice-box__line{color:var(--color-deepGray)}.ihabdevteam-core-scope .notice-box--default{border-color:var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--dashed{background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine)}.ihabdevteam-core-scope .notice-box--important{border:1px solid var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .notice-box__dismiss{background:none;border:none;border-radius:var(--radius-xs);color:var(--color-lightGray);cursor:pointer;font-size:18px;line-height:1;padding:2px 6px;position:absolute;right:10px;top:8px;transition:color .12s}.ihabdevteam-core-scope .notice-box__dismiss:hover{color:var(--color-gray)}@media (max-width:767px){.ihabdevteam-core-scope .notice-box,.ihabdevteam-core-scope .notice-box__inner{padding:var(--spacing-s)}}";ee(I4);function Wp({title:e="",lines:t=[],notices:a=null,children:r,variant:n="default",dismissible:i=!1,className:s=""}){const{t:c}=me.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>u(!0),[]);if(d)return null;const h=`notice-box notice-box--${n} body-2 ${s}`.trim();if(a&&Array.isArray(a)&&a.length)return o.jsx("div",{className:h,role:"note",children:a.map((g,f)=>o.jsxs("div",{className:"notice-box__inner",children:[g.title?o.jsx("span",{className:"notice-box__title body-3",children:g.title}):null,o.jsx("div",{className:"notice-box__body",children:g.lines&&g.lines.length?o.jsx("div",{children:g.lines.map((b,v)=>o.jsx("span",{className:"notice-box__line body-3",children:b},v))}):g.children??null})]},f))});const p=e||t.length?o.jsxs("div",{className:"notice-box__inner",children:[e?o.jsx("span",{className:"notice-box__title body-1",children:e}):null,o.jsx("div",{className:"notice-box__body",children:t.length?o.jsx("ul",{children:t.map((g,f)=>o.jsx("li",{className:"notice-box__line",children:g},f))}):r})]}):o.jsx("div",{className:"notice-box__inner",children:r});return o.jsxs("div",{className:h,role:"note",children:[p,i&&o.jsx("button",{className:"notice-box__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var z4=".ihabdevteam-core-scope .button{align-items:center;background:var(--color-white);border:0;border:var(--button-border,0);box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);padding:0 12px;transition:background-color .14s ease,color .14s ease,transform .1s ease,box-shadow .14s ease}.ihabdevteam-core-scope .button__icon,.ihabdevteam-core-scope .button__left,.ihabdevteam-core-scope .button__right{align-items:center;color:inherit;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .button--align-center .button__label,.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:center}.ihabdevteam-core-scope .button__icon{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--small{height:16px;width:16px}.ihabdevteam-core-scope .button__icon--medium{height:24px;width:24px}.ihabdevteam-core-scope .button__icon--large{height:36px;width:36px}.ihabdevteam-core-scope .button__center-group{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .button__center-group .button__label{display:inline-block;flex:0 1 auto;text-align:center}.ihabdevteam-core-scope .button__label{display:block;white-space:normal}.ihabdevteam-core-scope .button__label-text{align-items:center;display:inline-flex;justify-content:center;max-width:100%;vertical-align:middle;white-space:normal;word-break:break-word}.ihabdevteam-core-scope .button__label-text--has-sub{flex-direction:column;gap:3px}.ihabdevteam-core-scope .button__count{color:var(--color-main);font-weight:700;margin-left:4px}.ihabdevteam-core-scope .button--variant-main .button__count,.ihabdevteam-core-scope .is-selected .button__count,.ihabdevteam-core-scope [aria-pressed=true] .button__count{color:#fff}.ihabdevteam-core-scope .button__label:has(>.button__label-text+.button__label-text){gap:5px}.ihabdevteam-core-scope .button__sub-label-text{color:var(--button-subLabel-color,var(--color-gray));display:block}.ihabdevteam-core-scope .button__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .button__icon-mask{background-color:currentColor;display:block;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .button__icon-svg{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .button__icon-svg svg{display:block;height:100%;width:100%}.ihabdevteam-core-scope .button__icon-svg svg,.ihabdevteam-core-scope .button__icon-svg svg *{fill:currentColor;stroke:currentColor}.ihabdevteam-core-scope .button .button__label{color:currentColor;color:var(--button-text-color,currentColor);min-height:20px;min-width:20px}.ihabdevteam-core-scope .button .button__icon,.ihabdevteam-core-scope .button .button__left,.ihabdevteam-core-scope .button .button__right{color:currentColor;color:var(--button-icon-color,currentColor)}.ihabdevteam-core-scope .button--align-left{justify-content:flex-start}.ihabdevteam-core-scope .button--align-center{justify-content:center}.ihabdevteam-core-scope .button--align-right{justify-content:flex-end}.ihabdevteam-core-scope .button--align-left .button__label{align-items:center;display:inline-flex;flex:1 1 auto}.ihabdevteam-core-scope .button--align-left .button__label-text{justify-content:flex-start;text-align:left}.ihabdevteam-core-scope .button--align-center .button__label{align-items:center;display:flex;flex:1 1 auto;justify-content:center;text-align:center}.ihabdevteam-core-scope .button--align-right .button__label{flex:1 1 auto;text-align:right}.ihabdevteam-core-scope .button--align-grid{justify-content:center}.ihabdevteam-core-scope .button--align-grid .button__label{display:grid;flex:1 1 auto;grid-auto-columns:1fr;grid-auto-flow:column;text-align:center}.ihabdevteam-core-scope .button.button--no-bg{background:transparent;border-color:transparent}.ihabdevteam-core-scope .button--variant-danger{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-error))}.ihabdevteam-core-scope .button--variant-danger:focus-visible,.ihabdevteam-core-scope .button--variant-danger:hover{--button-text-color:var(--color-error);--button-icon-color:var(--color-error);--button-subLabel-color:var(--color-error);background:var(--color-error-a10);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-danger.is-selected,.ihabdevteam-core-scope .button--variant-danger[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-error);border-color:var(--color-error)}.ihabdevteam-core-scope .button--variant-default{--button-text-color:var(--color-darkGray);--button-icon-color:var(--color-lightGray);--button-subLabel-color:var(--color-gray);background:var(--color-deepWhite);border:var(--button-border,1px solid var(--color-whiteLine))}.ihabdevteam-core-scope .button--variant-default:focus-visible,.ihabdevteam-core-scope .button--variant-default:hover{--button-text-color:var(--color-black);--button-icon-color:var(--color-main);--button-subLabel-color:var(--color-black);background:var(--color-white);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-default.is-selected,.ihabdevteam-core-scope .button--variant-default[aria-pressed=true]{--button-text-color:#fff;--button-icon-color:#fff;--button-subLabel-color:#fff;background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .button--variant-main{--button-subLabel-color:var(--color-white-a80);background:var(--color-main);border:var(--button-border,1px solid var(--color-main));color:#fff}.ihabdevteam-core-scope .button--variant-main:focus-visible,.ihabdevteam-core-scope .button--variant-main:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);border-color:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-main.is-selected,.ihabdevteam-core-scope .button--variant-main[aria-pressed=true]{--button-subLabel-color:var(--color-white-a80);background:var(--color-sub);color:#fff}.ihabdevteam-core-scope .button--variant-sub{--button-subLabel-color:var(--color-white-a80);background:var(--color-primary,var(--color-sub));color:#fff}.ihabdevteam-core-scope .button--variant-sub:focus-visible,.ihabdevteam-core-scope .button--variant-sub:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-uiAccent);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white{--button-subLabel-color:var(--color-white-a60);background:transparent;border:var(--button-border,1px solid var(--color-white-a80));color:#fbfdff}.ihabdevteam-core-scope .button--variant-transparent-white:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-white:hover{--button-subLabel-color:var(--color-white-a80);background:var(--color-white-a10);color:#fff}.ihabdevteam-core-scope .button--variant-transparent-white.is-selected,.ihabdevteam-core-scope .button--variant-transparent-white[aria-pressed=true]{--button-subLabel-color:var(--color-lightGray);background:var(--color-white);color:var(--color-main)}.ihabdevteam-core-scope .button--variant-transparent-gray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-gray-a80));color:var(--color-gray-a80)}.ihabdevteam-core-scope .button--variant-transparent-gray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-gray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-gray-a10);color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray{--button-subLabel-color:var(--color-gray-a60);background:transparent;border:var(--button-border,1px solid var(--color-lightGray-a80));color:var(--color-gray)}.ihabdevteam-core-scope .button--variant-transparent-lightGray:focus-visible,.ihabdevteam-core-scope .button--variant-transparent-lightGray:hover{--button-subLabel-color:var(--color-gray-a60);background:var(--color-lightGray-a10);color:var(--color-deepGray)}.ihabdevteam-core-scope .button--variant-disabled{--button-subLabel-color:var(--color-disabled);background-color:transparent;border:var(--button-border,1px solid var(--color-whiteLine));color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled .button__icon,.ihabdevteam-core-scope .button--variant-disabled .button__left,.ihabdevteam-core-scope .button--variant-disabled .button__right{color:var(--color-disabled)}.ihabdevteam-core-scope .button--variant-disabled-covered{background-color:var(--color-darkWhite);border:var(--button-border,1px solid var(--color-darkWhite));border-color:var(--color-whiteLine);color:transparent}.ihabdevteam-core-scope .button--variant-disabled-covered .button__icon,.ihabdevteam-core-scope .button--variant-disabled-covered .button__left,.ihabdevteam-core-scope .button--variant-disabled-covered .button__right{color:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded,.ihabdevteam-core-scope .button--variant-disabled-invisibled{background:transparent}.ihabdevteam-core-scope .button--variant-disabled-faded .button__icon,.ihabdevteam-core-scope .button--variant-disabled-faded .button__left,.ihabdevteam-core-scope .button--variant-disabled-faded .button__right,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__icon,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__label,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__left,.ihabdevteam-core-scope .button--variant-disabled-invisibled .button__right{color:transparent}.ihabdevteam-core-scope .button:disabled,.ihabdevteam-core-scope .button[disabled]{cursor:default}.ihabdevteam-core-scope .button--shape-rounded{border-radius:8px!important;border-radius:var(--button-rounded-radius,8px)!important}.ihabdevteam-core-scope .button--shape-pill{border-radius:9999px!important}.ihabdevteam-core-scope .button72{--button-rounded-radius:18px;border-radius:36px;height:72px;justify-content:center}.ihabdevteam-core-scope .button72--bar{min-width:220px}.ihabdevteam-core-scope .button72--dot{padding:0;width:72px}.ihabdevteam-core-scope .button56{--button-rounded-radius:14px;border-radius:28px;height:56px;justify-content:center}.ihabdevteam-core-scope .button56--bar{min-width:190px}.ihabdevteam-core-scope .button56--dot{padding:0;width:56px}.ihabdevteam-core-scope .button52{--button-rounded-radius:13px;border-radius:26px;height:52px;justify-content:center}.ihabdevteam-core-scope .button52--bar{min-width:175px}.ihabdevteam-core-scope .button52--dot{padding:0;width:52px}.ihabdevteam-core-scope .button48{--button-rounded-radius:12px;border-radius:24px;height:48px;justify-content:center}.ihabdevteam-core-scope .button48--bar{min-width:160px}.ihabdevteam-core-scope .button48--dot{padding:0;width:48px}.ihabdevteam-core-scope .button40{--button-rounded-radius:10px;border-radius:20px;height:40px;justify-content:center}.ihabdevteam-core-scope .button40--bar{min-width:100px}.ihabdevteam-core-scope .button40--dot{padding:0;width:40px}.ihabdevteam-core-scope .button40 .button__icon,.ihabdevteam-core-scope .button40--bar .button__icon,.ihabdevteam-core-scope .button40--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:16px;height:32px;justify-content:center}.ihabdevteam-core-scope .button32--bar{min-width:72px}.ihabdevteam-core-scope .button32--dot{padding:0;width:32px}.ihabdevteam-core-scope .button32 .button__icon,.ihabdevteam-core-scope .button32--bar .button__icon,.ihabdevteam-core-scope .button32--dot .button__icon{height:18px;width:18px}.ihabdevteam-core-scope .button28{--button-rounded-radius:7px;border-radius:14px;height:28px;justify-content:center}.ihabdevteam-core-scope .button28--bar{min-width:60px}.ihabdevteam-core-scope .button28--dot{padding:0;width:28px}.ihabdevteam-core-scope .button28 .button__icon,.ihabdevteam-core-scope .button28--bar .button__icon,.ihabdevteam-core-scope .button28--dot .button__icon{height:16px;width:16px}.ihabdevteam-core-scope .button24{--button-rounded-radius:6px;border-radius:12px;height:24px;justify-content:center}.ihabdevteam-core-scope .button24--bar{min-width:48px}.ihabdevteam-core-scope .button24--dot{padding:0;width:24px}.ihabdevteam-core-scope .button24 .button__icon,.ihabdevteam-core-scope .button24--bar .button__icon,.ihabdevteam-core-scope .button24--dot .button__icon{height:14px;width:14px}.ihabdevteam-core-scope .button-keyboard{border-radius:12px;height:32px;justify-content:center}.ihabdevteam-core-scope .button-keyboard--bar{min-width:32px;padding:0 12px}.ihabdevteam-core-scope .button-keyboard--dot{padding:0;width:32px}.ihabdevteam-core-scope .button-word{border-radius:12px;height:72px;justify-content:center;padding:0 16px}.ihabdevteam-core-scope .button-word--bar{min-width:120px}.ihabdevteam-core-scope .button-word--dot{padding:0;width:72px}@media (max-width:1024px){.ihabdevteam-core-scope .button56{--button-rounded-radius:13px;border-radius:25px;height:50px}.ihabdevteam-core-scope .button56--bar{min-width:170px}.ihabdevteam-core-scope .button56--dot{width:50px}.ihabdevteam-core-scope .button48{--button-rounded-radius:11px;border-radius:22px;height:44px}.ihabdevteam-core-scope .button48--bar{min-width:140px}.ihabdevteam-core-scope .button48--dot{width:44px}.ihabdevteam-core-scope .button40{--button-rounded-radius:9px;border-radius:18px;height:36px}.ihabdevteam-core-scope .button40--bar{min-width:88px}.ihabdevteam-core-scope .button40--dot{width:36px}.ihabdevteam-core-scope .button32{--button-rounded-radius:8px;border-radius:15px;height:30px}.ihabdevteam-core-scope .button32--bar{min-width:64px}.ihabdevteam-core-scope .button32--dot{width:30px}.ihabdevteam-core-scope .button24--bar{min-width:44px}}@media (max-width:768px){.ihabdevteam-core-scope .button56{--button-rounded-radius:12px;border-radius:23px;height:46px}.ihabdevteam-core-scope .button56--bar{min-width:150px}.ihabdevteam-core-scope .button56--dot{width:46px}.ihabdevteam-core-scope .button56 .button__icon,.ihabdevteam-core-scope .button56--bar .button__icon,.ihabdevteam-core-scope .button56--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button48{--button-rounded-radius:10px;border-radius:20px;height:40px}.ihabdevteam-core-scope .button48--bar{min-width:120px}.ihabdevteam-core-scope .button48--dot{width:40px}.ihabdevteam-core-scope .button48 .button__icon,.ihabdevteam-core-scope .button48--bar .button__icon,.ihabdevteam-core-scope .button48--dot .button__icon{height:20px;width:20px}.ihabdevteam-core-scope .button40{--button-rounded-radius:8px;border-radius:17px;height:34px}.ihabdevteam-core-scope .button40--bar{min-width:80px}.ihabdevteam-core-scope .button40--dot{width:34px}.ihabdevteam-core-scope .button32{--button-rounded-radius:7px;border-radius:14px;height:28px}.ihabdevteam-core-scope .button32--bar{min-width:60px}.ihabdevteam-core-scope .button32--dot{width:28px}.ihabdevteam-core-scope .button24--bar{min-width:40px}}";ee(z4);var O4=".ihabdevteam-core-scope .tooltip-content{animation:tooltip-pop .2s cubic-bezier(.2,.9,.2,1) both;background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);box-sizing:border-box;pointer-events:auto;position:absolute;transform-origin:left center;white-space:normal;will-change:transform,opacity;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content--inline{position:static}.ihabdevteam-core-scope .tooltip-content--bordered{border:1px solid var(--color-whiteLine)}.ihabdevteam-core-scope .tooltip-content.tooltip-description,.ihabdevteam-core-scope .tooltip-content.tooltip-info,.ihabdevteam-core-scope .tooltip-content.tooltip-training{background:transparent;box-shadow:none}.ihabdevteam-core-scope .tooltip-content__header{align-items:center;color:var(--color-gray);display:flex;height:40px;padding:0 2px 10px}.ihabdevteam-core-scope .tooltip-content.is-closing{opacity:0;transition:opacity .2s ease,transform .2s ease}.ihabdevteam-core-scope .tooltip-content[data-placement=top]{transform:translateY(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=bottom]{transform:translateY(6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=left]{transform:translateX(-6px)}.ihabdevteam-core-scope .tooltip-content[data-placement=right]{transform:translateX(6px)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=top]{transform:translateY(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=bottom]{transform:translateY(6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=left]{transform:translateX(-6px) scale(.98)}.ihabdevteam-core-scope .tooltip-content.is-closing[data-placement=right]{transform:translateX(6px) scale(.98)}@keyframes tooltip-pop{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes tooltip-fade-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-6px) scale(.98)}}.ihabdevteam-core-scope .tooltip-backdrop{background:var(--color-popupBlock);inset:0;position:fixed;z-index:calc(var(--z-tooltip) - 1)}.ihabdevteam-core-scope .tooltip-portal{inset:0;position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-content.is-mobile{left:50%!important;max-width:calc(100% - 40px)!important;top:50%!important;transform:translate(-50%,-50%)!important;visibility:visible!important;width:calc(100% - 40px)!important;z-index:var(--z-tooltip)!important}";ee(O4);function ws(e,t=!0){l.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=n=>{if(n.key!=="Tab")return;const i=Array.from(a.querySelectorAll(dr)).filter(d=>!d.closest('[aria-hidden="true"]'));if(!i.length){n.preventDefault();return}const s=i[0],c=i[i.length-1];n.shiftKey&&document.activeElement===s?(n.preventDefault(),c.focus()):!n.shiftKey&&document.activeElement===c&&(n.preventDefault(),s.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const dr='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function Sa(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:n=20,onClose:i,closeOnOutsideClick:s=!0,className:c="",role:d="dialog",ariaLabel:u="",children:m,backdrop:h=!1,isMobilePopup:p=!1,useBorder:g=!0,header:f}=e||{},b=l.useRef(null),[v,y]=l.useState({position:"fixed",left:0,top:-9999}),[_,x]=l.useState(!1),[C,k]=l.useState("bottom"),[w,S]=l.useState(!1),[j,A]=l.useState(!1),B=!t&&!a,W=l.useCallback((E=!1)=>{if(j&&p)return;const H=a?a.getBoundingClientRect():t;if(!H||!b.current)return;const te=b.current,{offsetWidth:Q,offsetHeight:ae}=te,N=window.innerWidth,L=window.innerHeight,R=N-H.right,z=H.left,V=H.top,X=L-H.bottom;let F=0,Y=0,O="top";if(V>=ae+r)O="top",Y=H.top-r-ae,F=H.left+H.width/2-Q/2;else if(X>=ae+r)O="bottom",Y=H.bottom+r,F=H.left+H.width/2-Q/2;else if(R>=Q+r)O="right",F=H.right+r,Y=H.top+H.height/2-ae/2;else if(z>=Q+r)O="left",F=H.left-r-Q,Y=H.top+H.height/2-ae/2;else{const ve=Math.max(V,X,R,z);ve===V?(O="top",Y=H.top-r-ae,F=H.left+H.width/2-Q/2):ve===X?(O="bottom",Y=H.bottom+r,F=H.left+H.width/2-Q/2):ve===R?(O="right",F=H.right+r,Y=H.top+H.height/2-ae/2):(O="left",F=H.left-r-Q,Y=H.top+H.height/2-ae/2)}const ne=Number(n)||8;F=Math.min(Math.max(F,ne),N-Q-ne),Y=Math.min(Math.max(Y,ne),L-ae-ne);const ue=Math.round(F),xe=Math.round(Y);E&&b.current?(b.current.style.left=`${ue}px`,b.current.style.top=`${xe}px`,b.current.dataset.placement=O):(k(O||C),y({position:"fixed",left:ue,top:xe}),S(!0))},[j,p,a,t,r,n,C]);l.useLayoutEffect(()=>{if(B)return;if(j&&p){y({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),S(!0);return}W();const E=requestAnimationFrame(()=>W());return()=>cancelAnimationFrame(E)},[t,a,r,m,n,B,j,p,W]),l.useEffect(()=>{if(B||j&&p||!b.current||typeof ResizeObserver>"u")return;const E=new ResizeObserver(()=>{t&&W()});return E.observe(b.current),()=>E.disconnect()},[t,m,n,B,j,p,W]),l.useEffect(()=>{if(B||j&&p)return;const E=()=>W(!0);return window.addEventListener("resize",E),document.addEventListener("scroll",E,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",E),document.removeEventListener("scroll",E,{capture:!0})}},[t,r,m,n,B,j,p,W]),l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const E=window.matchMedia("(max-width: 768px)"),H=()=>A(!!E.matches);H();try{E.addEventListener?E.addEventListener("change",H):E.addListener(H)}catch{try{E.addListener(H)}catch{}}return()=>{try{E.removeEventListener?E.removeEventListener("change",H):E.removeListener(H)}catch{}}},[]);const M=l.useRef(!1),T=l.useCallback((E=!1)=>{if(!(_||M.current)){if(M.current=!0,E){x(!0);try{i&&i()}catch{}return}x(!0),setTimeout(()=>{i&&i()},200)}},[_,i,x]);l.useEffect(()=>{const E=Q=>{const ae=b.current;if(!ae)return;const N=Q.target;if(N&&!ae.contains(N)){try{if(N.closest&&N.closest("[data-tooltip-ignore]"))return}catch{}s&&T(!0)}},H=Q=>{const ae=b.current;if(!ae)return;const N=Q.target;if(N&&!ae.contains(N)){try{if(N.closest&&N.closest("[data-tooltip-ignore]"))return}catch{}s&&T(!0)}},te=Q=>{if(Q.key==="Escape"){Q.stopPropagation(),T();return}if(Q.key==="Tab"){const ae=b.current;if(!ae)return;const N=ae.querySelectorAll(dr);if(!N||N.length===0)return;const L=N[0],R=N[N.length-1],z=document.activeElement;Q.shiftKey?z===L&&(Q.preventDefault(),R.focus()):z===R&&(Q.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",E,!0),document.addEventListener("click",H,!0),document.addEventListener("keydown",te),()=>{document.removeEventListener("pointerdown",E,!0),document.removeEventListener("click",H,!0),document.removeEventListener("keydown",te)}},[i,s,T]),l.useEffect(()=>{const E=()=>{T(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",E),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",E)}},[T]);const $=o.jsxs("div",{ref:b,className:`tooltip-content ${B?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${_?"is-closing":""} ${c} ${j&&p?"is-mobile":""}`,role:d,"aria-label":u||void 0,style:B?{}:{...v,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":C,"data-left":B?"":v.left,"data-top":B?"":v.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[f!=null&&o.jsx("div",{className:"tooltip-content__header h5",children:f}),m]});if(B||typeof document>"u")return $;if(h||j&&p){const E=o.jsxs("div",{className:"tooltip-portal",children:[o.jsx("div",{className:"tooltip-backdrop",onClick:()=>{s&&T(!0)}}),$]});return qt.createPortal(E,document.body)}return qt.createPortal($,document.body)}var F4='.ihabdevteam-core-scope .tooltip-info__content{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);color:var(--color-black);display:inline-flex;justify-content:center;line-height:1;overflow:hidden;padding:4px 12px;position:relative;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-content.tooltip-info{pointer-events:none}.ihabdevteam-core-scope .tooltip-content.tooltip-info .tooltip-info__content{box-shadow:var(--shadow-tooltip)}.ihabdevteam-core-scope .tooltip-info[data-placement=bottom] .tooltip-info__content:after,.ihabdevteam-core-scope .tooltip-info[data-placement=top] .tooltip-info__content:after{content:"";height:0;margin:0;padding:0;position:absolute;width:0}';ee(F4);function aa(e){const{anchorRect:t,text:a,offset:r=8,onClose:n,className:i="",ariaLabel:s}=e||{};return a?o.jsx(Sa,{anchorRect:t,offset:r,onClose:n,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:s||a,children:o.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}var W4=".ihabdevteam-core-scope .tooltip-description__box{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;flex-direction:column;gap:10px;max-width:640px;padding:16px 20px}.ihabdevteam-core-scope .tooltip-description__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .tooltip-description__items{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .tooltip-description__item{align-items:flex-start;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs);margin:0}.ihabdevteam-core-scope .tooltip-description__index{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .tooltip-description__item--active{color:var(--color-main);font-weight:600}.ihabdevteam-core-scope .tooltip-description__item--active .tooltip-description__index{color:var(--color-main)}";ee(W4);function to(e){const{t}=me.useTranslation(),{anchorRect:a,title:r,items:n,activeIndex:i=-1,showIndex:s=!0,onClose:c,offset:d=12}=e||{},u=Array.isArray(n)?n:n?[n]:[];return!u.length&&!r?null:o.jsx(Sa,{anchorRect:a,offset:d,onClose:c,closeOnOutsideClick:!0,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:o.jsxs("div",{className:"tooltip-description__box",children:[r&&o.jsx("span",{className:"tooltip-description__title body-2",children:r}),o.jsx("ol",{className:"tooltip-description__items",children:u.map((m,h)=>o.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[s&&u.length>1&&o.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),o.jsx("span",{children:m})]},h))})]})})}function re(e){const{size:t=48,type:a,htmlType:r,href:n,target:i,rel:s,icon:c,rightIcon:d,label:u,count:m,subLabel:h,children:p,ariaLabel:g,variant:f="default",align:b="center",selected:v,toggleable:y=!1,disabled:_=!1,useLabel:x=!0,useBorder:C=!0,useBG:k=!0,useDisabledCovered:w=!1,useDisabledInvisible:S=!1,width:j,minWidth:A,onClick:B,onDisabledClick:W,showTooltipInfo:M=!1,tooltipInfoText:T=null,tooltipDescription:$=null,iconSize:E="medium",iconColor:H,shape:te="rounded",color:Q,className:ae,...N}=e,L=typeof t=="string"&&isNaN(Number(t))?t.toLowerCase():String(Number(t)||48),R=L.match(/^\d+$/)?`button${L}`:`button-${L}`,z=Number(t),V=!isNaN(z)&&z<40?"button-2":"button-1",X=u??p,F=_||!!N.disabled,Y=F?w?"disabled-covered":S?"disabled-invisibled":"disabled":f,O=Y?`button--variant-${Y}`:"",ne=b?`button--align-${b}`:"",ue=te?`button--shape-${te}`:"",xe=typeof H=="string"&&H.startsWith("--")?`var(${H})`:H,ve={...j?{width:typeof j=="number"?`${j}px`:j}:{},...A?{minWidth:typeof A=="number"?`${A}px`:A}:{},...C?{}:{"--button-border":F?"0":"1px solid transparent"},...xe?{"--button-icon-color":xe}:{},...Q?{"--color-main":Q}:{}},pe=x===!1?"":X,P=Array.isArray(pe)?pe.length>0:!!pe,q=!!d,oe=a??(P||c||q?"bar":"dot"),ge=`${R}--${oe}`,de=l.useRef(null),I=l.useRef(F),[Z,J]=l.useState(!!v),[fe,De]=l.useState(!1),[$e,Le]=l.useState(null),Ee=l.useCallback(()=>De(!1),[]);l.useEffect(()=>{typeof v=="boolean"&&J(v)},[v]),l.useEffect(()=>{if(I.current&&!F&&de.current){const We=de.current;We.blur(),We.style.pointerEvents="none";const Je=requestAnimationFrame(()=>{requestAnimationFrame(()=>{de.current&&(de.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Je)}I.current=F},[F]);const je=typeof v=="boolean"?!!v:Z,Te=y||typeof v=="boolean"?je?"true":"false":void 0,Ie=_e("button",R,ge,O,ne,ue,je?"is-selected":null,k?null:"button--no-bg",ae),He=`button__icon button__icon--${E}`,be=Array.isArray(h)?h:h!==void 0?[h]:[],Ke=()=>{if(Array.isArray(pe))return pe.map((Je,tt)=>{const xt=be[tt];return o.jsxs("span",{className:`button__label-text${xt!==void 0?" button__label-text--has-sub":""}`,children:[Je,xt!==void 0&&o.jsx("span",{className:"button__sub-label-text caption-1",children:xt})]},tt)});const We=h!==void 0;return o.jsxs("span",{className:`button__label-text${We?" button__label-text--has-sub":""}`,children:[pe,m!=null&&o.jsx("span",{className:"button__count",children:m}),We&&o.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},Ve=We=>{F||(typeof N.onMouseLeave=="function"&&N.onMouseLeave(We),typeof v!="boolean"&&J(!1),We.currentTarget.blur())},Re=We=>{if(F){W?.(We);return}typeof v!="boolean"&&y&&J(Je=>!Je),B?.(We)},qe=l.useCallback(()=>{(M||$)&&(De(!0),Le(de.current?.getBoundingClientRect()??null))},[M,$]),vt=l.useCallback(()=>{(M||$)&&(De(!1),Le(null))},[M,$]),Ue={...N};delete Ue.disabled,delete Ue.className,delete Ue.faded,delete Ue.useFaded,delete Ue.loading,delete Ue.onMouseLeave,delete Ue.onPointerEnter,delete Ue.onPointerLeave,delete Ue.onFocus,delete Ue.onBlur,F&&(Object.keys(Ue).forEach(We=>{/^on[A-Z]/.test(We)&&typeof Ue[We]=="function"&&delete Ue[We]}),Ue["aria-disabled"]="true");const Xe=(typeof M=="string"?M:null)??(typeof T=="string"?T:null)??(typeof g=="string"?g:null)??(typeof X=="string"?X:null)??void 0,ut=typeof g=="string"?g:typeof X=="string"?X:Xe,ze=(We,Je)=>o.jsx(Fe,{icon:We,label:Je??ut,className:He,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),rt=()=>oe==="dot"?o.jsxs(o.Fragment,{children:[ze(c),P&&o.jsx("span",{className:`button__label ${V}`,children:Ke()})]}):b==="center"&&c?o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:"button__center-group",children:[o.jsx("span",{className:"button__left",children:ze(c)}),P&&o.jsx("span",{className:`button__label ${V}`,children:Ke()})]}),q&&o.jsx("span",{className:"button__right",children:ze(d)})]}):o.jsxs(o.Fragment,{children:[c&&o.jsx("span",{className:"button__left",children:ze(c,g??X)}),P&&o.jsx("span",{className:`button__label ${V}`,children:Ke()}),q&&o.jsx("span",{className:"button__right",children:ze(d)})]}),et=!!n&&!F;return o.jsxs(o.Fragment,{children:[o.jsx(et?"a":"button",{...Ue,ref:de,...et?{href:n,target:i,rel:s??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:F&&!W},className:Ie,"aria-pressed":Te,"aria-label":ut,"aria-disabled":et&&F?!0:void 0,style:ve,onClick:Re,onMouseLeave:Ve,onPointerEnter:We=>{qe(),!F&&typeof N.onPointerEnter=="function"&&N.onPointerEnter(We)},onPointerLeave:We=>{vt(),!F&&typeof N.onPointerLeave=="function"&&N.onPointerLeave(We)},onFocus:We=>{qe(),!F&&typeof N.onFocus=="function"&&N.onFocus(We)},onBlur:We=>{Ve(We),vt(),!F&&typeof N.onBlur=="function"&&N.onBlur(We)},children:rt()}),fe&&$?o.jsx(to,{anchorRect:$e,title:$.title,items:$.items,onClose:Ee}):fe&&Xe?o.jsx(aa,{anchorRect:$e,text:Xe,onClose:Ee}):null]})}function lt(e,t,a){const r=l.useRef(null);return l.useLayoutEffect(()=>{const n=r.current?.parentElement??null;return t(n,e),()=>a(n)},[e,t,a]),r}var H4=".ihabdevteam-core-scope .promo-banner-bg{border-radius:inherit;inset:0;pointer-events:none;position:absolute}";ee(H4);var V4=".ihabdevteam-core-scope .promo-banner-bg-main{background:linear-gradient(45deg,var(--color-main),var(--color-sub))}";ee(V4);const Co={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},ks=new WeakMap;function Ss(e){if(e)return ks.get(e)}function Bt(e,t){e&&(e.style.setProperty(Co.title,t.title),e.style.setProperty(Co.description,t.description),ks.set(e,t))}function Nt(e){e&&(e.style.removeProperty(Co.title),e.style.removeProperty(Co.description),ks.delete(e))}const As={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Ts(){const e=lt(As,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}var G4=".ihabdevteam-core-scope .promo-banner-bg-soft{background:var(--color-main-a10)}";ee(G4);const Bs={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Ns(){const e=lt(Bs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}var q4=".ihabdevteam-core-scope .promo-banner-bg-sub{background:var(--color-sub)}";ee(q4);const Ds={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Es(){const e=lt(Ds,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}var Y4=".ihabdevteam-core-scope .promo-banner-bg-deep{background:linear-gradient(135deg,var(--color-darkMain),var(--color-darkSub))}";ee(Y4);const js={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ls(){const e=lt(js,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}var U4=".ihabdevteam-core-scope .promo-banner-bg-soft-sub{background:var(--color-sub-a10)}";ee(U4);const Ms={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ps(){const e=lt(Ms,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}var K4=".ihabdevteam-core-scope .promo-banner-bg-warm{background:var(--color-warn)}";ee(K4);const Rs={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function $s(){const e=lt(Rs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}var Z4=".ihabdevteam-core-scope .promo-banner-bg-dark{background:var(--color-lightBlack)}";ee(Z4);const Is={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function zs(){const e=lt(Is,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}var X4=".ihabdevteam-core-scope .promo-banner-bg-radial{background:radial-gradient(circle at 15% 20%,var(--color-main) 0,var(--color-sub) 100%)}";ee(X4);const Os={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Fs(){const e=lt(Os,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}var J4=".ihabdevteam-core-scope .promo-banner-bg-diagonal{background-color:var(--color-lightMain);background-image:repeating-linear-gradient(45deg,var(--color-main-a10) 0,var(--color-main-a10) 10px,transparent 10px,transparent 20px)}";ee(J4);const Ws={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Hs(){const e=lt(Ws,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}var Q4=".ihabdevteam-core-scope .promo-banner-bg-dots{background-color:var(--color-lightSub);background-image:radial-gradient(var(--color-sub-a10) 2px,transparent 2px);background-size:14px 14px}";ee(Q4);const Vs={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Gs(){const e=lt(Vs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}var e5=".ihabdevteam-core-scope .promo-banner-bg-outline{background:var(--color-white);border:1px solid var(--color-whiteLine);box-sizing:border-box}.ihabdevteam-core-scope .promo-banner-bg-outline__dot{background:linear-gradient(45deg,var(--color-main),var(--color-sub));border-radius:50%;bottom:-40px;height:140px;opacity:.12;position:absolute;right:-40px;width:140px}";ee(e5);const qs={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Ys(){const e=lt(qs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:o.jsx("span",{className:"promo-banner-bg-outline__dot"})})}var t5=".ihabdevteam-core-scope .promo-banner-bg-success{background:var(--color-success)}";ee(t5);const Us={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ks(){const e=lt(Us,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}var a5=".ihabdevteam-core-scope .promo-banner-bg-naver{background:linear-gradient(90deg,#03c75a 0,var(--color-main) 100%)}";ee(a5);const Zs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Xs(){const e=lt(Zs,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}var o5=".ihabdevteam-core-scope .promo-banner-bg-instagram{background:linear-gradient(45deg,#f9ce34,#ee2a7b 50%,#6228d7)}";ee(o5);const Js={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Qs(){const e=lt(Js,Bt,Nt);return o.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Hp=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],el={main:Ts,soft:Ns,sub:Es,deep:Ls,softSub:Ps,warm:$s,dark:zs,radial:Fs,diagonal:Hs,dots:Gs,outline:Ys,success:Ks,naver:Xs,instagram:Qs};function sn({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:n=.1,lineHeightRatio:i=1.4}={}){const s=v=>Math.max(a,Math.min(r,Number(v))),[c,d]=l.useState(()=>{try{const v=localStorage.getItem(e),y=v?Number(v):1;return Number.isFinite(y)?y:1}catch{return 1}});l.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const u=v=>{d(typeof v=="function"?y=>s(v(y)):s(v))},m=()=>u(v=>+(v+n).toFixed(6)),h=()=>u(v=>+(v-n).toFixed(6)),p=c<r-Number.EPSILON,g=c>a+Number.EPSILON,f=Math.round(t*c),b=Math.round(f*i);return{scale:c,setScale:u,increase:m,decrease:h,canIncrease:p,canDecrease:g,fontSize:f,lineHeight:b}}const ln=l.createContext(null);function r5(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}function oa(e){const t=l.useContext(ln),a=i=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(i).matches,[r,n]=l.useState(a(e));return l.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const i=window.matchMedia(e),s=d=>n(d.matches),c=i;return c.addEventListener?c.addEventListener("change",s):c.addListener&&c.addListener(s),n(i.matches),()=>{c.removeEventListener?c.removeEventListener("change",s):c.removeListener&&c.removeListener(s)}},[e]),t&&typeof t.mobile=="boolean"&&r5(e)?t.mobile:r}function tl(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),t}function ur(e,t){const a=tl(t);l.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const al=" \xB7 ",Vp=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(al)?e.split(al).pop()??e:e})(),ol=l.createContext(!1);function rl(e){const t=l.useContext(ol);l.useEffect(()=>{if(t||typeof e!="string"||!e)return;const a=document.title;return document.title=Vp?`${e}${al}${Vp}`:e,()=>{document.title=a}},[e,t])}function Gp(){const{t:e}=me.useTranslation();return l.useCallback(t=>{if(!t)return"";const a=new Date(t).getTime();if(Number.isNaN(a))return"";const r=Math.floor((Date.now()-a)/864e5);return r<=0?e("myHomework.relativeDay.today","\uC624\uB298"):r===1?e("myHomework.relativeDay.yesterday","\uC5B4\uC81C"):e("myHomework.relativeDay.daysAgo",{n:r})},[e])}function qp(e){const[t,a]=l.useState({current:"",next:"",confirm:""}),[r,n]=l.useState(null),[i,s]=l.useState(!1),c=l.useRef(null);l.useEffect(()=>()=>{c.current!==null&&clearTimeout(c.current)},[]);const d=l.useCallback(()=>{a({current:"",next:"",confirm:""}),n(null)},[]),u=l.useCallback(async()=>{if(!t.current){n({type:"error",text:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(!t.next){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694."});return}if(t.next!==t.confirm){n({type:"error",text:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."});return}s(!0);const m=e?await e(t.current,t.next):null;if(s(!1),m){n({type:"error",text:m});return}n({type:"success",text:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}),a({current:"",next:"",confirm:""}),c.current!==null&&clearTimeout(c.current),c.current=setTimeout(()=>n(null),1500)},[t,e]);return{pw:t,setPw:a,pwMsg:r,setPwMsg:n,pwLoading:i,handleChangePw:u,reset:d}}const nl=[{id:"wordData",labelKey:"settings.cache.group.wordData.label",subKey:"settings.cache.group.wordData.sub",keys:["word_data_cache","word_data_version"]},{id:"pairIndex",labelKey:"settings.cache.group.pairIndex.label",subKey:"settings.cache.group.pairIndex.sub",keys:["word_pair_index_v2","word_pair_index_sig_v2"]},{id:"imageCache",labelKey:"settings.cache.group.imageCache.label",subKey:"settings.cache.group.imageCache.sub",keys:["word_image_existence_map_v1"]}];function il(e){return e.reduce((t,a)=>{try{const r=localStorage.getItem(a);return t+(r?new Blob([r]).size:0)}catch{return t}},0)}function Yp(e){return e===0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function Up(e){const{t}=me.useTranslation(),[a,r]=l.useState({}),[n,i]=l.useState(null),[s,c]=l.useState(null),[d,u]=l.useState(null),m=l.useCallback(()=>{const p={};nl.forEach(g=>{p[g.id]=il([...g.keys])}),r(p),typeof navigator<"u"&&navigator.storage?.estimate&&navigator.storage.estimate().then(g=>{u({usage:g.usage??0,quota:g.quota??0})}).catch(()=>{})},[]);l.useEffect(()=>{m()},[m]);const h=l.useCallback(async p=>{i(p);try{p==="wordData"?(localStorage.removeItem("word_data_cache"),localStorage.removeItem("word_data_version")):p==="pairIndex"?Ci():p==="imageCache"&&ci(),m(),e?.(t("settings.cache.cleared","\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."))}finally{i(null)}},[m,e,t]);return{cacheSizes:a,clearingId:n,confirmCacheId:s,setConfirmCacheId:c,storageEstimate:d,refreshCacheSizes:m,handleClearCache:h}}function Kp(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useCallback(()=>{const s=Ka();if(s){const d=Object.values(s),u=d.filter(m=>m.cho.length+m.jung.length+m.jong.length>0).length;a({matched:u,total:d.length})}else a(null);const c=Mr();n(c?{exists:c.exists,total:c.total}:null)},[]);return l.useEffect(()=>{i();const s=setTimeout(i,1e3);return()=>clearTimeout(s)},[e?.length,i]),{pairStats:t,imgStats:r,setPairStats:a,setImgStats:n,refreshStats:i}}function Zp(e,t=[]){const[a,r]=l.useState(t),[n,i]=l.useState(null),[s,c]=l.useState(!1),[d,u]=l.useState(e),m=l.useRef(s);l.useEffect(()=>{m.current=s});const h=l.useRef(null);l.useEffect(()=>{if(m.current)return;const y=h.current;y!==null&&y.length===t.length&&y.every((_,x)=>_===t[x])||(h.current=t,r(t))},[t]);const p=l.useCallback(y=>{i(y),c(!1),u({...y})},[]),g=l.useCallback(()=>c(!0),[]),f=l.useCallback(()=>c(!1),[]),b=l.useCallback((y,_)=>{r(y),i(_),c(!1)},[]),v=l.useCallback(y=>{r(_=>_.filter(x=>x!==y)),i(null)},[]);return{list:a,setList:r,selected:n,setSelected:i,isEditing:s,setIsEditing:c,editForm:d,setEditForm:u,openDetail:p,startEditing:g,cancelEditing:f,commitEdit:b,remove:v}}const _o=()=>{const e=new Date;return{year:String(e.getFullYear()),month:String(e.getMonth()+1).padStart(2,"0"),day:String(e.getDate()).padStart(2,"0")}},n5={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Xp(e=[]){const{list:t,setList:a,selected:r,setSelected:n,isEditing:i,setIsEditing:s,editForm:c,setEditForm:d,openDetail:u,commitEdit:m}=Zp(n5,e),{year:h,month:p,day:g}=_o(),[f,b]=l.useState({year:h,month:p,day:g,hour:"09",minute:"00",memo:""});return{visitHistory:t,visitForm:f,setVisitForm:b,setVisit:v=>y=>b(_=>({..._,[v]:y})),selectedVisit:r,setSelectedVisit:n,isEditingVisit:i,setIsEditingVisit:s,editVisitForm:c,setEditVisitForm:d,openVisitDetail:u,handleVisitSave:v=>{a(C=>[f,...C]);const{year:y,month:_,day:x}=_o();b({year:y,month:_,day:x,hour:"09",minute:"00",memo:""}),v?.()},handleVisitEditSave:()=>{m(v=>v.map(y=>y===r?c:y),c)},addVisit:v=>{a(y=>[v,...y])},removeVisit:v=>{a(y=>y.filter(_=>_!==v))},revertVisitEdit:(v,y)=>{a(_=>_.map(x=>x===y?v:x)),n(_=>_===y?v:_)}}}const Jp=e=>`${e.year.padStart(4,"0")}-${e.month.padStart(2,"0")}-${e.day.padStart(2,"0")} ${e.hour.padStart(2,"0")}:${e.minute.padStart(2,"0")}`,cn=e=>[...e].sort((t,a)=>{const r=Jp(t),n=Jp(a);return r<n?-1:r>n?1:0}),i5={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Qp(e,t=[]){const a=l.useMemo(()=>cn(t),[t]),{list:r,setList:n,selected:i,setSelected:s,isEditing:c,setIsEditing:d,editForm:u,setEditForm:m,openDetail:h,commitEdit:p,remove:g}=Zp(i5,a),[f,b]=l.useState([]),{year:v,month:y,day:_}=_o(),[x,C]=l.useState({year:v,month:y,day:_,hour:"09",minute:"00",memo:""}),k=$=>E=>C(H=>({...H,[$]:E})),w=$=>{n(Q=>cn([...Q,x]));const{year:E,month:H,day:te}=_o();C({year:E,month:H,day:te,hour:"09",minute:"00",memo:""}),$?.()},S=()=>{p($=>cn($.map(E=>E===i?u:E)),u)},j=l.useCallback($=>{g($)},[g]),A=l.useCallback($=>{e({year:$.year,month:$.month,day:$.day,hour:$.hour,minute:$.minute,memo:$.memo}),g($)},[e,g]),B=l.useCallback($=>{n(E=>E.filter(H=>H!==$)),b(E=>[$,...E]),s(null)},[n,s]),W=l.useCallback($=>{n(E=>cn([...E,$]))},[n]),M=l.useCallback($=>{n(E=>E.filter(H=>H!==$))},[n]),T=l.useCallback(($,E)=>{n(H=>H.map(te=>te===E?$:te)),s(H=>H===E?$:H)},[n,s]);return{scheduleList:r,noShowList:f,addSchedule:W,removeSchedule:M,revertScheduleEdit:T,scheduleForm:x,setScheduleForm:C,setSchedule:k,selectedSchedule:i,setSelectedSchedule:s,isEditingSchedule:c,setIsEditingSchedule:d,editScheduleForm:u,setEditScheduleForm:m,openScheduleDetail:h,handleScheduleSave:w,handleScheduleEditSave:S,handleScheduleDelete:j,handleScheduleToVisit:A,handleScheduleNoVisit:B}}const sl=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}];function eh(e){const[t,a]=l.useState(""),[r,n]=l.useState("25"),[i,s]=l.useState("all"),[c,d]=l.useState(1),u=l.useMemo(()=>e.filter(({item:g,status:f})=>!(t&&!g.memo.includes(t)||i!=="all"&&f!==i)),[e,t,i]),m=Math.max(1,Math.ceil(u.length/Number(r))),h=Math.min(c,m),p=l.useMemo(()=>u.slice((h-1)*Number(r),h*Number(r)),[u,h,r]);return{vapSearch:t,setVapSearch:a,vapPageSize:r,setVapPageSize:n,vapStatus:i,setVapStatus:s,vapPage:h,setVapPage:d,vapFiltered:u,vapTotal:m,vapPageItems:p}}function ll(e,t){const{t:a}=me.useTranslation(),[r,n]=l.useState("25"),[i,s]=l.useState(1),[c,d]=l.useState(t);c!==t&&(d(t),i!==1&&s(1));const u=l.useMemo(()=>sl.map(g=>({...g,label:a("visits.showN",{n:g.value})})),[a]),m=l.useCallback(g=>{n(g),s(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(r))),p=Math.min(i,h);return{pageRows:l.useMemo(()=>e.slice((p-1)*Number(r),p*Number(r)),[e,p,r]),pageSizeProps:{options:u,value:r,onChange:m},paginationProps:{page:p,total:h,onChange:s},setPage:s}}function cl(){const[e,t]=l.useState(null),a=l.useCallback(n=>{t(i=>i?.key===n?{key:n,asc:!i.asc}:{key:n,asc:!0})},[]),r=l.useCallback((n,i)=>({label:n,sortDir:e?.key===i?e.asc?"asc":"desc":null,onClick:()=>a(i)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}function th(){const[e,t]=l.useState(!1),[a,r]=l.useState("\uC88C"),[n,i]=l.useState({\uC88C:null,\uC6B0:null}),[s,c]=l.useState({\uC88C:[],\uC6B0:[]}),[d,u]=l.useState(!1),[m,h]=l.useState("\uC88C"),p=l.useCallback(f=>{const b=f.direction;i(v=>({...v,[b]:f})),c(v=>({...v,[b]:[f,...v[b]]})),t(!1)},[]),g=l.useCallback(f=>{const b=f.direction;i(v=>({...v,[b]:f})),u(!1)},[]);return{showDevice:e,setShowDevice:t,deviceDirection:a,setDeviceDirection:r,devices:n,setDevices:i,deviceHistory:s,setDeviceHistory:c,showDeviceList:d,setShowDeviceList:u,listForSide:m,setListForSide:h,handleDeviceSubmit:p,handleSelectFromList:g}}const Dt="\uC804\uCCB4";function dl(){const{t:e}=me.useTranslation();return l.useMemo(()=>({difficulty:e("wordSearch.filter.difficulty","\uB4F1\uAE09"),syllables:e("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),syllable5plus:e("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1"),partOfSpeech:e("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:e("wordSearch.filter.wordType","\uC720\uD615"),posMap:{[e("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)")]:["\uBA85","\uC218"],[e("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)")]:["\uB3D9","\uD615"],[e("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")]:["\uBD80","\uAD00"]},typeMap:{[e("wordSearch.filter.type.native","\uACE0\uC720\uC5B4")]:"\uACE0\uC720",[e("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4")]:"\uD55C\uC790",[e("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4")]:"\uC678\uB798",[e("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")]:"\uD63C\uC885"}}),[e])}function ul(e,t,a){return{label:t.difficulty,items:[1,2,3,4].map(r=>e("wordSearch.filter.grade",{n:r})),multiple:!0,allOption:!0,allLabel:a?.allLabel,labelAction:a?.labelAction,labelInfo:a?.labelInfo}}function pl(e){return{label:e.partOfSpeech,items:Object.keys(e.posMap),multiple:!0,allOption:!0}}function hl(e){return{label:e.wordType,items:Object.keys(e.typeMap),multiple:!0,allOption:!0}}function ah(e,t){return{label:t.syllables,items:[e("wordSearch.filter.syllable",{n:1}),e("wordSearch.filter.syllable",{n:2}),e("wordSearch.filter.syllable",{n:3}),e("wordSearch.filter.syllable",{n:4}),t.syllable5plus],multiple:!0,allOption:!0}}function oh(e,t){const a=[e("wordPairs.filter.onlyHasImage","\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC")];return t?.includeStructure&&a.push(e("wordPairs.filter.onlySameStructure","\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC")),{label:e("wordPairs.filter.selectLabel","\uC120\uD0DD"),items:a,multiple:!0,labelAction:t?.labelAction,labelInfo:t?.labelInfo}}function rh(e,t){const{label:a,headValue:r,midValue:n,tailValue:i,includeMid:s=!0,headDisabled:c,midDisabled:d,tailDisabled:u,allOptionDisabled:m,groupLabel:h,labelAction:p}=t;return{label:a,...h?{groupLabel:h}:{},...p?{labelAction:p}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...m?{allOptionDisabled:m}:{},items:[{value:r,displayLabel:e("wordSearch.filter.positionHead",{defaultValue:"\uC5B4\uB450"}),disabled:c},...s?[{value:n,displayLabel:e("wordSearch.filter.positionMid",{defaultValue:"\uC5B4\uC911"}),disabled:d}]:[],{value:i,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:u}]}}function nh(e,t,a){if(t===Dt){const{[a]:i,...s}=e;return s}const r=e[a]??[],n=r.includes(t)?r.filter(i=>i!==t):[...r,t];if(n.length===0){const{[a]:i,...s}=e;return s}return{...e,[a]:n}}Object.fromEntries(Object.entries(Ww).map(([e,{nucleus:t}])=>[e,t]));const s5={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},l5={"\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)":["\uBA85","\uC218"],"\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)":["\uB3D9","\uD615"],"\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)":["\uBD80","\uAD00"]},c5={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",posMap:l5,typeMap:s5};function d5(e,t,a=c5){const r=t[a.difficulty];if(r?.length&&!r.some(c=>e.grade===c.replace(/\D/g,"")))return!1;const n=t[a.syllables];if(n?.length){const c=e.syllables??0;if(!n.some(d=>d===a.syllable5plus?c>=5:c===parseInt(d)))return!1}const i=t[a.partOfSpeech];if(i?.length&&!i.flatMap(c=>a.posMap[c]??[c]).some(c=>(e.pos??"").includes(c)))return!1;const s=t[a.wordType];return!(s?.length&&!s.some(c=>e.wordType===a.typeMap[c]))}const Aa=(e,t)=>t.map(a=>({jamos:[a],tooltip:e})),wt=(e,t)=>({jamos:[...e],tooltip:t}),ml={cho:[Aa("\uC591\uC21C\uC74C",["\u3142","\u3143","\u314D","\u3141"]),Aa("\uCE58\uC870\uC74C",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Aa("\uCE58\uC870\uC74C",["\u3145","\u3146"]),Aa("\uACBD\uAD6C\uAC1C\uC74C",["\u3148","\u3149","\u314A"]),Aa("\uC5F0\uAD6C\uAC1C\uC74C",["\u3131","\u3132","\u314B"]),Aa("\uC131\uBB38\uC74C",["\u314E"])],jung:[[wt("\u3163","\uC804\uC124 \uACE0\uBAA8\uC74C"),wt("\u315F","\uC804\uC124 \uACE0\uBAA8\uC74C \xB7 w\uD65C\uC74C"),wt("\u3162","\uC804\uC124 \uACE0\uBAA8\uC74C \xB7 \u0270\uD65C\uC74C")],[wt("\u3161","\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C")],[wt("\u315C","\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"),wt("\u3160","\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C \xB7 j\uD65C\uC74C")],[wt("\u3154\u3150","\uC804\uC124 \uC911\uBAA8\uC74C"),wt("\u3156\u3152","\uC804\uC124 \uC911\uBAA8\uC74C \xB7 j\uD65C\uC74C"),wt("\u3159\u315A\u315E","\uC804\uC124 \uC911\uBAA8\uC74C \xB7 w\uD65C\uC74C")],[wt("\u3153","\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"),wt("\u3155","\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C \xB7 j\uD65C\uC74C"),wt("\u315D","\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C \xB7 w\uD65C\uC74C")],[wt("\u3157","\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"),wt("\u315B","\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C \xB7 j\uD65C\uC74C")],[wt("\u314F","\uC800\uBAA8\uC74C"),wt("\u3151","\uC800\uBAA8\uC74C \xB7 j\uD65C\uC74C"),wt("\u3158","\uC800\uBAA8\uC74C \xB7 w\uD65C\uC74C")]],jong:[Aa("\uC591\uC21C\uC74C",["\u3142","\u3141"]),Aa("\uCE58\uC870\uC74C",["\u3137","\u3134","\u3139"]),Aa("\uC5F0\uAD6C\uAC1C\uC74C",["\u3131","\u3147"])]},u5=[...Ze],p5=[...dt],h5=gt.filter(e=>e!==""),ba=e=>e===ra?[]:Array.from(e),ra="__NO_CODA__",ih=[1,2,3,4],na=5,m5=12,sh="SYL_",bl=e=>`${sh}${e}`,b5=e=>Number(e.slice(sh.length));function dn(e){return e>=na?Array.from({length:m5-na+1},(t,a)=>na+a):[e]}const lh={cho:u5,jung:p5,jong:h5},gl=e=>e.map(t=>t.map(({jamos:a,tooltip:r})=>({v:a.join(""),tooltip:r}))),fl={cho:gl(ml.cho),jung:gl(ml.jung),jong:gl(ml.jong)},ch={};fl.jung.flat().forEach(({v:e})=>{for(const t of ba(e))ch[t]=e});const g5=new Set(fl.cho.flat().map(e=>e.v));function vl(e,t){return e==="cho"?g5.has(t)?t:null:e==="jung"?ch[t]??t:Vr(t)}function yl(e,t,a){if(e==="jung"){const r=ba(t);return a&&r.includes(a)?a:r[0]??t}return t}function xl(e,t,a){const r=(n,i)=>i?n==="jong"&&i===ra?ra:t==="pron"?vl(n,i):yl(n,i,n==="jung"?a:null):null;return{...e,cho:r("cho",e.cho),jung:r("jung",e.jung),jong:r("jong",e.jong)}}const un={cho:null,jung:null,jong:null,syllable:null},f5="wt_filter",dh=e=>`wt_filter_${e}`;function uh(e){try{const t=localStorage.getItem(dh(e))??localStorage.getItem(f5);if(t)return JSON.parse(t)}catch{}return null}function v5(e){const t=e;return t?.composition?{cho:t.composition.cho??null,jung:t.composition.jung??null,jong:t.composition.jong??null,syllable:t.composition.syllable??null}:t?.choseong?{...un,cho:t.choseong}:un}function ph(e,t,a){const{t:r,i18n:n}=me.useTranslation(),[i]=l.useState(()=>a?.resetOnMount?null:uh(e)),s=i?.contrastCount,c=typeof s=="number"&&Number.isFinite(s)?s:1,[d,u]=l.useState(Math.min(5,Math.max(1,c))),[m,h]=l.useState(i?.phonemeView==="pron"?"pron":i?.phonemeView==="direct"?"direct":"char"),[p,g]=l.useState(()=>v5(i)),f=l.useCallback(()=>t.requireSyllable?{cho:"\u3131",jung:"\u314F",jong:ra,syllable:t.fixedSyllable??null}:{cho:null,jung:null,jong:t.fixedNoCoda?ra:null,syllable:t.fixedSyllable??null},[t.requireSyllable,t.fixedSyllable,t.fixedNoCoda]);l.useEffect(()=>{!t.requireSyllable&&t.fixedSyllable==null&&!t.fixedNoCoda||g(I=>I.cho||I.jung||I.syllable!=null||I.jong?I:f())},[]);const b=l.useMemo(()=>ft(p.cho)||ft(p.jung)||ft(p.jong)?"count":"random",[p.cho,p.jung,p.jong]),v=l.useRef(m==="char"?p.jung:null);l.useEffect(()=>{m==="char"&&(v.current=p.jung)},[m,p.jung]);const[y,_]=l.useState(a?.resetOnMount?!!a?.defaultImageOnly:i?.excludeNoImage??!0),[x,C]=l.useState(a?.resetOnMount?!1:i?.sameStructureOnly??!0),[k,w]=l.useState(Array.isArray(i?.gradeFilter)?i.gradeFilter:[]),[S,j]=l.useState(Array.isArray(i?.posFilter)?i.posFilter:[]),[A,B]=l.useState(Array.isArray(i?.wordTypeFilter)?i.wordTypeFilter:[]),W=l.useRef(a?.resetKey);l.useEffect(()=>{W.current!==a?.resetKey&&(W.current=a?.resetKey,g(f()),_(!1),C(!1),w([]),j([]),B([]),u(1))},[a?.resetKey]);const M=dl(),[T,$]=l.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[E,H]=l.useState(!1),[te,Q]=l.useState(null),ae=1,N=Math.max(1,[p.cho,p.jung,p.jong].filter(Boolean).length);l.useEffect(()=>{d<N&&u(N)},[N,d]);const[L,R]=l.useState(e);l.useEffect(()=>{if(L!==e){if(!a?.resetOnMount){const I=uh(e),Z=typeof I?.contrastCount=="number"&&Number.isFinite(I.contrastCount)?I.contrastCount:1;u(Math.min(5,Math.max(1,Z))),g(I?.composition??f()),_(I?.excludeNoImage??!0),C(I?.sameStructureOnly??!0),h(I?.phonemeView==="pron"?"pron":"char"),w(Array.isArray(I?.gradeFilter)?I.gradeFilter:[]),j(Array.isArray(I?.posFilter)?I.posFilter:[]),B(Array.isArray(I?.wordTypeFilter)?I.wordTypeFilter:[])}R(e)}},[e,L,a?.resetOnMount]),l.useEffect(()=>{if(!a?.resetOnMount&&L===e)try{localStorage.setItem(dh(e),JSON.stringify({contrastCount:d,composition:p,excludeNoImage:y,sameStructureOnly:x,phonemeView:m,gradeFilter:k,posFilter:S,wordTypeFilter:A}))}catch{}},[a?.resetOnMount,e,L,d,p,y,x,m,k,S,A]);const[z,V]=l.useState(0);ur("wordpool:update",()=>V(I=>I+1));const X=l.useRef(n.language);l.useEffect(()=>{X.current!==n.language&&(X.current=n.language,V(I=>I+1))},[n.language]),l.useEffect(()=>{if(!t.choseong)return;let I=!1;return j4({difficulty:b,excludeNoImage:y}).then(Z=>{I||($(Z),Z.cho.size+Z.jung.size+Z.jong.size>0&&H(!0))}).catch(()=>{I||$({cho:new Set,jung:new Set,jong:new Set,syllable:new Set})}),()=>{I=!0}},[t.choseong,b,y,z]),l.useEffect(()=>{let I=!1;const Z=p,J=Z.cho?ba(Z.cho):null,fe=Z.jung?ba(Z.jung):null,De=Z.jong===ra,$e=De?null:Z.jong?ba(Z.jong):null,Le=Z.syllable!=null?dn(Z.syllable):null,Ee=!!(J||fe||$e||De||Le);return E4({difficulty:t.difficulty?b:null,contrastCount:t.difficulty?d:1,composition:t.choseong&&Ee?{cho:J,jung:fe,jong:$e,jongNone:De,syllable:Le}:null,excludeNoImage:y,sameStructureOnly:x,phonemeView:m==="pron"?"pron":"char",grade:k.length>0?k:null}).then(je=>{I||Q(je)}).catch(()=>{I||Q(null)}),()=>{I=!0}},[t.choseong,t.difficulty,b,d,p,m,y,x,z,k]),l.useEffect(()=>{E&&g(I=>{const Z={...I};let J=!1;return["cho","jung","jong"].forEach(fe=>{const De=I[fe];!De||De===ra||ba(De).some($e=>T[fe].has($e))||(Z[fe]=null,J=!0)}),I.syllable!=null&&t.fixedSyllable==null&&(I.syllable>=na?[...T.syllable].some(fe=>fe>=na)||(Z.syllable=null,J=!0):(!T.syllable.has(I.syllable)||I.syllable<ae)&&(Z.syllable=null,J=!0)),J?Z:I})},[T,E,ae,t.fixedSyllable]);const F=l.useMemo(()=>{const I=Z=>{const J=new Set;for(const fe of lh[Z])T[Z].has(fe)&&J.add(fe);return J};return{cho:I("cho"),jung:I("jung"),jong:I("jong")}},[T]),Y=l.useMemo(()=>({exact:new Set(ih.filter(I=>T.syllable.has(I))),min:[...T.syllable].some(I=>I>=na)}),[T]),O=l.useMemo(()=>({diffPhonemeCount:r("training.contrast.diffPhonemeCount",{defaultValue:"\uB2E4\uB978 \uC74C\uC18C\uC758 \uCD1D \uAC2F\uC218"}),composition:r("wordPairs.composition","\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131"),syllableCount:r("wordPairs.syllableCount","\uC74C\uC808 \uC218"),onset:r("wordPairs.onset","\uCD08\uC131"),vowel:r("wordPairs.vowel","\uBAA8\uC74C"),coda:r("wordPairs.coda","\uC885\uC131"),phonemeGroup:r("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),trainOnset:r("training.filter.trainOnset",{defaultValue:"\uCD08\uC131"}),trainVowel:r("training.filter.trainVowel",{defaultValue:"\uBAA8\uC74C"}),trainCoda:r("training.filter.trainCoda",{defaultValue:"\uC885\uC131"}),random:r("training.filter.random","\uBB34\uC791\uC704"),exclude:r("wordSearch.filter.exclude","\uC81C\uC678"),selectLabel:r("training.filter.selectSection",{defaultValue:"\uC120\uD0DD"}),none:r("common.none","\uC5C6\uC74C"),noImage:r("wordSearch.filter.excludeNoImage","\uC774\uBBF8\uC9C0 \uC5C6\uC74C"),excludeImage:r("training.filter.excludeImage",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"}),sameStructure:r("training.filter.sameStructure",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"}),noLimit:r("training.filter.noLimit",{defaultValue:"\uBB34\uAD00"}),codaExclude:r("training.filter.codaExclude",{defaultValue:"\uC81C\uC678"}),gradeLabel:r("training.filter.gradeLabel",{defaultValue:"\uB09C\uC774\uB3C4 \uB4F1\uAE09"})}),[r]),ne=l.useMemo(()=>({[O.trainOnset]:"cho",[O.trainVowel]:"jung",[O.trainCoda]:"jong"}),[O]),ue=l.useCallback((I,Z)=>({title:Z,items:I}),[]),xe=l.useMemo(()=>[r("training.filter.excludeImageInfo",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4."}),r("training.filter.sameStructureInfo",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694."})],[r]),ve=l.useMemo(()=>{const I=[];if(t.choseong){const Z={value:ra,displayLabel:O.codaExclude},J=t.fixedNoCoda===!0,fe=(De,$e)=>{const Le=J&&De==="jong",Ee={label:$e,groupLabel:O.phonemeGroup,allOption:!t.requireSyllable,allLabel:O.noLimit,allOptionDisabled:Le};if(m==="pron"){const Te=fl[De].map(Ie=>Ie.map(({v:He,tooltip:be})=>{const Ke=ba(He),Ve=Le||!Ke.some(Re=>T[De].has(Re));return Ke.length>1?{value:He,labels:Ke,tooltip:be,disabled:Ve}:{value:He,tooltip:be,disabled:Ve}}));return De==="jong"&&!t.requireCoda&&Te.unshift([Z]),{...Ee,groups:Te}}const je=lh[De].map(Te=>!Le&&F[De].has(Te)?Te:{value:Te,disabled:!0});return{...Ee,items:De==="jong"&&!t.requireCoda?[Z,...je]:je}};I.push(fe("cho",O.trainOnset)),I.push(fe("jung",O.trainVowel)),I.push(fe("jong",O.trainCoda))}if(I.push({...ul(r,M,{labelInfo:ue([r("wordPairs.filter.difficultyInfo",{defaultValue:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4."})])}),label:O.gradeLabel}),t.partOfSpeech&&I.push(pl(M)),t.wordType&&I.push(hl(M)),t.choseong||t.fixedSyllable!=null){const Z=t.fixedSyllable;I.push({label:O.syllableCount,items:[...ih.map(J=>({value:bl(J),displayLabel:r("wordPairs.syllableN",{n:J,defaultValue:"{{n}}\uC74C\uC808"}),disabled:Z!=null?J!==Z:!Y.exact.has(J)||J<ae})),{value:bl(na),displayLabel:r("wordPairs.syllableNPlus",{n:na,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:Z!=null?na!==Z:!Y.min}],allOption:!0,allOptionDisabled:Z!=null})}return t.choseong?I.push({label:O.exclude,displayLabel:O.selectLabel,multiple:!0,items:[O.excludeImage,O.sameStructure],labelInfo:ue(xe)}):I.push({label:O.exclude,displayLabel:O.selectLabel,multiple:!0,items:[O.excludeImage],labelInfo:ue([xe[0]])}),I},[t.choseong,t.partOfSpeech,t.wordType,t.requireSyllable,t.fixedSyllable,t.fixedNoCoda,t.requireCoda,ae,F,T,m,Y,O,r,ue,xe,M]),pe={...t.difficulty?{[O.diffPhonemeCount]:String(d)}:{},...(t.choseong||t.fixedSyllable!=null)&&p.syllable!=null?{[O.syllableCount]:bl(p.syllable)}:{},...t.choseong&&p.cho?{[O.trainOnset]:p.cho}:{},...t.choseong&&p.jung?{[O.trainVowel]:p.jung}:{},...t.choseong&&p.jong?{[O.trainCoda]:p.jong}:{},[O.exclude]:[...y?[O.excludeImage]:[],...x?[O.sameStructure]:[]],[O.gradeLabel]:k.map(I=>r("wordSearch.filter.grade",{n:Number(I),defaultValue:"{{n}}\uB4F1\uAE09"})),...t.partOfSpeech?{[M.partOfSpeech]:S}:{},...t.wordType?{[M.wordType]:A}:{}},P=l.useCallback((I,Z)=>{if(Z===O.diffPhonemeCount){const J=Number(I);J>=1&&u(J)}else if(Z===O.exclude)I===O.excludeImage?_(J=>!J):I===O.sameStructure&&C(J=>!J);else if(Z===O.syllableCount)g(J=>{if(!I||I===Dt)return{...J,syllable:null};const fe=b5(I);return{...J,syllable:J.syllable===fe?null:fe}});else if(Z===O.gradeLabel){if(!I||I===Dt){w([]);return}const J=I.replace(/\D/g,"");w(fe=>fe.includes(J)?fe.filter(De=>De!==J):[...fe,J])}else if(Z===M.partOfSpeech){if(!I||I===Dt){j([]);return}j(J=>J.includes(I)?J.filter(fe=>fe!==I):[...J,I])}else if(Z===M.wordType){if(!I||I===Dt){B([]);return}B(J=>J.includes(I)?J.filter(fe=>fe!==I):[...J,I])}else{const J=ne[Z];if(!J)return;g(fe=>t.requireSyllable?I&&I!==Dt?{...fe,[J]:I}:fe:!I||I===Dt||fe[J]===I?{...fe,[J]:null}:{...fe,[J]:I})}},[O,ne,M,t.requireSyllable]),q=l.useCallback(I=>!t.partOfSpeech&&!t.wordType?!0:d5(I,{...t.partOfSpeech?{[M.partOfSpeech]:S}:{},...t.wordType?{[M.wordType]:A}:{}},M),[t.partOfSpeech,t.wordType,S,A,M]),oe=l.useCallback(I=>{I!==m&&(I!=="direct"&&m!=="direct"&&g(Z=>xl(Z,I,v.current)),h(I))},[m]),ge=l.useCallback(()=>({composition:p,contrastCount:d,excludeNoImage:y,sameStructureOnly:x,phonemeView:m,gradeFilter:k}),[p,d,y,x,m,k]),de=l.useCallback(I=>{g(I.composition),u(I.contrastCount),_(I.excludeNoImage),C(I.sameStructureOnly??!0),h(I.phonemeView),w(Array.isArray(I.gradeFilter)?I.gradeFilter:[])},[]);return{difficulty:b,contrastCount:d,composition:p,choseong:p.cho,excludeNoImage:y,sameStructureOnly:x,gradeFilter:k,posFilter:S,wordTypeFilter:A,matchesWordAttributes:q,poolVersion:z,filterSections:ve,filterSelected:pe,handleFilterSelect:P,phonemeView:m,setPhonemeView:oe,phonemeGroupLabel:O.phonemeGroup,wordCount:te,getFilterSnapshot:ge,restoreFilterSnapshot:de}}function y5(e){const t=c=>c?ba(c):null,a=t(e.cho),r=t(e.jung),n=e.jong===ra,i=n?null:t(e.jong),s=e.syllable!=null?dn(e.syllable):null;return!a&&!r&&!i&&!n&&!s?null:{cho:a,jung:r,jong:i,jongNone:n,syllable:s}}function hh(e,t,a,r,n,i,s=!0,c="char",d=[]){const[u,m]=l.useState({}),[h,p]=l.useState(!1),{cho:g=null,jung:f=null,jong:b=null,syllable:v=null}=r??{},y=d.length>0?d.slice().sort().join(","):"";return l.useEffect(()=>{i>0&&D4(n).catch(()=>{})},[i,n]),l.useEffect(()=>{let _=!1;return p(!0),(async()=>{const x=y5({cho:g,jung:f,jong:b,syllable:v}),C=`${g??""}_${f??""}_${b??""}_${v??""}_${y}`,k={};await Promise.all(e.map(async w=>{const S=fo[w.key];try{const j=await Np(w.key,{difficulty:S.difficulty?t:null,contrastCount:S.difficulty?a:1,composition:S.choseong?x:null,count:5,excludeNoImage:n,sameStructureOnly:s,phonemeView:c,grade:d.length>0?d:null});j&&j.length>0?k[w.key]={id:`wt-${w.key}-${t}-${C}-${Date.now()}`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:j,itemCount:j.length}:k[w.key]={id:`wt-${w.key}-empty`,name:w.label,training_type:w.key,category_main_code:"WORD",iconColor:w.color,subTitle:w.subTitle,items:[],itemCount:0,__empty:!0}}catch{k[w.key]=null}})),_||(m(k),p(!1))})(),()=>{_=!0}},[t,a,g,f,b,v,n,s,c,i,y]),{perTypeData:u,generating:h}}function x5(e){let t=2166136261;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,16777619);return t>>>0}function C5(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let a=Math.imul(t^t>>>15,1|t);return a=a+Math.imul(a^a>>>7,61|a)^a,((a^a>>>14)>>>0)/4294967296}}const pn=Jt;function Cl(e,t){const a=t?C5(x5(t)):Math.random;return{LISTEN_IN_NOISE:pn(Ra,Math.max(0,e.LISTEN_IN_NOISE||0),a),SHORT_STORY:pn($a,Math.max(0,e.SHORT_STORY||0),a),LONG_STORY:pn(Ia,Math.max(0,e.LONG_STORY||0),a),ORDERING_SENTENCE:pn(za,Math.max(0,e.ORDERING_SENTENCE||0),a)}}function mh(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const _5={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function bh(e=!1,t=_5,a){const r=ka(Date.now()),n=ka(Date.now()-864e5),i=`${a??""}|${r}`,s=`${a??""}|${n}`;return Ra.length>0||$a.length>0||Ia.length>0||za.length>0?{today:Cl(t,i),yesterday:Cl(t,s)}:{today:Cl(t,i),yesterday:null}}function gh(e){const t=l.useRef({LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),a=l.useRef(null),[r,n]=l.useState(!1),[i,s]=l.useState(!1),[c,d]=l.useState(0),[u,m]=l.useState(!1);l.useEffect(()=>{let p=!1,g,f=0;const b=40,v=()=>{g!==void 0&&(clearInterval(g),g=void 0)};let y=!1;try{const C=new URLSearchParams(window.location.search),k=C.get("forceRefresh")||C.get("force");y=k==="1"||k==="true"}catch{}const _=C=>{t.current=C.today,a.current=C.yesterday,n(!0),m(!0),d(k=>k+1),p=!0,v()},x=async()=>{if(p)return;if(!y){const k=bh(!1,void 0,e);if(mh(k.today)){_(k);return}}try{await ys(3e3)}catch{}if(p)return;const C=bh(y,void 0,e);if(mh(C.today)){_(C);return}++f>=b&&(n(!0),m(!1),p=!0,v())};return x(),g=setInterval(x,250),()=>{p=!0,v()}},[e]);const h=l.useCallback(p=>{const g=i?a.current:t.current,f=i?t.current:a.current;return g?.[p]?.length?g[p]:f?.[p]?.length?f[p]:void 0},[i,c]);return{loaded:r,hasData:u,showYesterday:i,setShowYesterday:s,getTrainingPerType:h}}const wo=[];let hn=!1;function fh(e){if(e.key!=="Escape"||e.defaultPrevented)return;const t=wo[wo.length-1];t&&(e.stopPropagation(),t())}function _l(e){return wo.push(e),!hn&&typeof document<"u"&&(document.addEventListener("keydown",fh),hn=!0),()=>{const t=wo.lastIndexOf(e);t>=0&&wo.splice(t,1),wo.length===0&&hn&&typeof document<"u"&&(document.removeEventListener("keydown",fh),hn=!1)}}function wl(e,t=!0){const a=tl(e);l.useEffect(()=>{if(t)return _l(()=>{a.current?.()})},[t,a])}const mn=(e,t)=>`${e}:${t??1}`,kl=new Map;function vh(e,t){const[a,r]=l.useState(0),n=e.map(i=>mn(i.word,i.homonum)).join("|");return l.useEffect(()=>{const i=(n?n.split("|"):[]).filter(d=>!kl.has(d));if(i.length===0)return;let s=!1;const c=Array.from(new Set(i.map(d=>d.slice(0,d.lastIndexOf(":")))));return t(c).then(d=>{if(!(s||d.length===0)){for(const u of d)u.Meaning&&kl.set(mn(u.Word,u.Homonum??void 0),u.Meaning);r(u=>u+1)}}),()=>{s=!0}},[n,t]),l.useMemo(()=>{const i=n?n.split("|"):[],s=new Map;for(const c of i){const d=kl.get(c);d!=null&&s.set(c,d)}return s},[n,a])}function ko(){const[e,t]=l.useState(null),a=l.useCallback(i=>t(i.getBoundingClientRect()),[]),r=l.useCallback(()=>t(null),[]),n=l.useCallback(i=>{const s=i.getBoundingClientRect();t(c=>c?null:s)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:n}}function yh(e){const[t,a]=l.useState(null),[r,n]=l.useState(null),i=l.useRef(null);l.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const s=l.useCallback((d,u)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),n(u)},e)},[e]),c=l.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),n(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:s,close:c}}function xh(e,t,a){const r=Number.isFinite(t)&&t>=1?Math.floor(t):1,n=Math.max(1,Math.ceil(e.length/r)),i=Number.isFinite(a)?Math.min(Math.max(1,Math.floor(a)),n):1;return{pageItems:l.useMemo(()=>e.slice((i-1)*r,i*r),[e,i,r]),totalPages:n,curPage:i}}function bn(e="warning"){const[t,a]=l.useState(""),[r,n]=l.useState(e),[i,s]=l.useState(0),c=l.useCallback((h,p)=>{n(p),a(h),s(g=>g+1)},[]),d=l.useCallback(h=>c(h,"warning"),[c]),u=l.useCallback(h=>c(h,"normal"),[c]),m=l.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:c,showWarning:d,showNormal:u,clearToast:m}}const pr={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},hr=pr.blue,gn=pr.green,mr=pr.amber,fn=pr.purple,w5=pr.pink,k5=[{key:"discrimination",label:"\uBCC0\uBCC4\uD6C8\uB828",disc:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0, \uB610\uB294 \uD2B9\uC815 \uC18C\uB9AC\uB97C \uAD6C\uBCC4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"ear",types:[{key:"SAME_SOUND_PICK",label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",icon:"volume-2",color:hr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"SAME_OR_DIFF",label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",icon:"diff",color:hr,subTitle:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},{key:"HEAR_AND_PICK_SAME",label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"headphones",color:hr,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"HEAR_AND_PICK_INCLUDED",label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"scan-search",color:hr,subTitle:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"STARTS_WITH_SAME_SOUND",label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"play-circle",color:hr,subTitle:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."}]},{key:"synthesis",label:"\uD569\uC131\uD6C8\uB828",disc:"\uB450 \uAC1C \uC774\uC0C1\uC758 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uD569\uCCD0 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"git-merge",types:[{key:"MERGE_2_SYLLABLES",label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",icon:"link-2",color:gn,subTitle:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_SYLLABLES",label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",icon:"git-merge",color:gn,subTitle:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_2_PHONEMES",label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",icon:"combine",color:gn,subTitle:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_PHONEMES",label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",icon:"braces",color:gn,subTitle:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"}]},{key:"deletion",label:"\uD0C8\uB77D\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC5D0\uC11C \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uC81C\uAC70\uD588\uC744 \uB54C \uB0A8\uB294 \uC18C\uB9AC\uB97C \uC778\uC2DD\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"scissors",types:[{key:"DROP_1_FROM_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"scissors",color:mr,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_1_FROM_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"minus-circle",color:mr,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_PART_FROM_COMPOUND",label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84\uD0C8\uB77D",icon:"unlink",color:mr,subTitle:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_FINAL_CONSONANT_FROM_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",icon:"eraser",color:mr,subTitle:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"REMOVE_CONSONANT_AND_IDENTIFY_PHONEME",label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",icon:"audio-lines",color:mr,subTitle:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"}]},{key:"substitution",label:"\uB300\uCE58\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC758 \uC77C\uBD80 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uBC14\uAFB8\uC5B4 \uC0C8\uB85C\uC6B4 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"replace",types:[{key:"CHANGE_1_SYLL_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"replace",color:fn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_SYLL_IN_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"shuffle",color:fn,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"arrow-right-left",color:fn,subTitle:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"flip-horizontal",color:fn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}]},{key:"attention",label:"\uCCAD\uAC01\uC801\uC8FC\uC758\uB825\uD6C8\uB828",disc:"\uC5EC\uB7EC \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uC21C\uC11C\uB97C \uAE30\uC5B5\uD558\uB294 \uC8FC\uC758\uB825\uACFC \uB2E8\uAE30 \uAE30\uC5B5 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"list-ordered",types:[{key:"LISTEN_AND_REMEMBER_ORDER",label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",icon:"list-ordered",color:w5,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function Ch(){const{t:e}=me.useTranslation();return l.useMemo(()=>{const t=Object.fromEntries(i4(e).map(r=>[r.key,r.label])),a={...t};return k5.flatMap(r=>r.types).forEach(r=>{a[r.key]=e(`trainingType.${r.key}.label`,{defaultValue:r.label})}),{sentence:t,all:a}},[e])}function ao({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[n,i]=l.useState(!1),[s,c]=l.useState({}),d=l.useRef(null),u=l.useRef(null),m=l.useCallback(()=>{d.current&&c(e(d.current.getBoundingClientRect()))},[e]);l.useEffect(()=>{if(!n)return;m();const g=y=>{const _=y.target;r&&_.closest?.(r)||d.current?.contains(_)||u.current?.contains(_)||i(!1)};document.addEventListener("mousedown",g);const f=y=>{u.current?.contains(y.target)||(t==="reposition"?m():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",f,!0);const b=()=>{a==="reposition"?m():a==="close"&&i(!1)};a!=="ignore"&&window.addEventListener("resize",b);const v=y=>{y.key==="Escape"&&i(!1)};return document.addEventListener("keydown",v),()=>{document.removeEventListener("mousedown",g),t!=="ignore"&&window.removeEventListener("scroll",f,!0),a!=="ignore"&&window.removeEventListener("resize",b),document.removeEventListener("keydown",v)}},[n,m,t,a,r]);const h=l.useCallback(()=>i(g=>!g),[]),p=l.useCallback(()=>i(!1),[]);return{open:n,setOpen:i,toggle:h,close:p,style:s,triggerRef:d,menuRef:u}}function Sl(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:n,playMs:i=1100,feedbackMs:s=1500}={}){const[c,d]=l.useState([]),[u,m]=l.useState(0),[h,p]=l.useState("idle"),[g,f]=l.useState(null),[b,v]=l.useState([]),[y,_]=l.useState(null),[x,C]=l.useState(0),k=l.useRef(0),w=l.useCallback(N=>{k.current=typeof N=="function"?N(k.current):N,C(k.current)},[]),S=l.useRef(r),j=l.useRef(n);l.useEffect(()=>{S.current=r,j.current=n},[r,n]);const A=l.useRef([]),B=()=>{A.current.forEach(clearTimeout),A.current=[]},W=(N,L)=>{A.current.push(setTimeout(L,N))};l.useEffect(()=>()=>B(),[]);const M=c[u]?.id??null,T=l.useCallback(()=>{B(),p("playing"),v([]),_(null),w(0);let N=0;e.forEach((L,R)=>{W(N,()=>{m(R),f(L.id),S.current?.(L)}),W(N+1e3,()=>{f(null),v(z=>[...z,L.id])}),N+=1300}),W(N,()=>{p("done"),j.current?.({score:0,total:e.length})})},[e,w]),$=l.useCallback((N,L)=>{if(L>=N.length){p("done"),j.current?.({score:k.current,total:N.length});return}m(L),_(null),p("playing"),f(N[L].id),S.current?.(N[L]),W(i,()=>{f(null),p("waiting")})},[i]),E=l.useCallback(()=>{B();const N=Ge(e);d(N),w(0),v([]),$(N,0)},[e,$,w]),H=l.useCallback(()=>{t==="playback"?(d(e),T()):E()},[t,e,T,E]),te=l.useCallback(()=>{B(),p("idle"),f(null),v([]),_(null),m(0),w(0),d([])},[w]);l.useEffect(()=>{a?H():te()},[t,e.length,a]);const Q=l.useCallback(N=>{h!=="waiting"||t==="playback"||(_(N),N===c[u]?.id&&w(L=>L+1),t==="exam"?(p("playing"),W(400,()=>$(c,u+1))):(p("feedback"),W(s,()=>$(c,u+1))))},[h,t,c,u,$,s,w]),ae=t==="playback"?e.length:c.length;return{bind:{activeSpeakerId:g,playedIds:b,selectedId:y,answerId:M,showFeedback:h==="feedback",clickable:h==="waiting",onSelectSpeaker:Q},index:u,total:ae,score:x,phase:h,done:h==="done",start:H,reset:te}}var S5=Object.freeze({__proto__:null,CACHE_GROUPS:nl,CORE_VERSION:nn,DocumentTitleSuppressContext:ol,EMPTY_COMPOSITION:un,MediaQueryOverrideContext:ln,NO_CODA:ra,SYLLABLE_MIN:na,VAP_PAGE_SIZE_OPTIONS:sl,buildGradeSection:ul,buildPartOfSpeechSection:pl,buildPositionSection:rh,buildSelectSection:oh,buildSyllableSection:ah,buildWordTypeSection:hl,charToPronValue:vl,convertComposition:xl,fmtBytes:Yp,lsBytes:il,meaningKey:mn,pronToCharValue:yl,syllableToFilter:dn,today:_o,toggleAttributeFilter:nh,useAnchoredMenu:ao,useCacheManagement:Up,useDailyTrainingSelection:gh,useDelayedHoverAnchor:yh,useDeviceManagement:th,useDocumentTitle:rl,useEscToClose:wl,useFontScale:sn,useHoverAnchor:ko,useMediaQuery:oa,usePagedList:xh,usePasswordChange:qp,useRelativeDay:Gp,useSoundCompassExam:Sl,useTablePaging:ll,useTableSort:cl,useToastState:bn,useTrainingTypeLabels:Ch,useVisitAllPanel:eh,useVisitHistory:Xp,useVisitSchedule:Qp,useWindowEvent:ur,useWordAttributeFilterKeys:dl,useWordDataStats:Kp,useWordMeanings:vh,useWordTrainingDataGeneration:hh,useWordTrainingFilter:ph,valueToJamos:ba}),A5=".ihabdevteam-core-scope .promo-banner{align-items:center;border-radius:var(--radius-s);box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;overflow:hidden;position:relative;text-align:left}.ihabdevteam-core-scope .promo-banner--medium{min-height:120px;padding:20px 24px}.ihabdevteam-core-scope .promo-banner--small{padding:14px 16px}.ihabdevteam-core-scope .promo-banner__title{color:inherit;color:var(--promo-banner-bg-title,inherit)}.ihabdevteam-core-scope .promo-banner__description{color:inherit;color:var(--promo-banner-bg-description,inherit)}.ihabdevteam-core-scope .promo-banner__text{display:flex;flex-direction:column;justify-content:center;min-width:0;position:relative;z-index:1}.ihabdevteam-core-scope .promo-banner__description{margin-left:2px;margin-top:1px}.ihabdevteam-core-scope .promo-banner>.button{flex-shrink:0;position:relative;z-index:1}";ee(A5);function _h({title:e,description:t,actionLabel:a,onAction:r,bg:n,color:i,size:s="medium",actionVariant:c,titleColor:d,descriptionColor:u,className:m=""}){const h=n??i??"main",p=l.useRef(null),[g,f]=l.useState("main"),b=oa("(max-width: 767px)");l.useLayoutEffect(()=>{const _=p.current;_&&(d!==void 0&&_.style.setProperty("--promo-banner-bg-title",d),u!==void 0&&_.style.setProperty("--promo-banner-bg-description",u))},[d,u]),l.useLayoutEffect(()=>{const _=p.current;if(!_)return;const x=Ss(_);f(x?.actionVariant??"main")},[h]);const v=_e("promo-banner",`promo-banner--${s}`,m),y=el[h];return o.jsxs("div",{ref:p,className:v,role:"note",children:[o.jsx(y,{}),o.jsxs("div",{className:"promo-banner__text",children:[o.jsx("span",{className:`promo-banner__title ${s==="small"?"body-2":"h2"}`,children:e}),t&&o.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&o.jsx(re,{size:40,variant:c??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...b?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}var T5='.ihabdevteam-core-scope .top-banner{--top-banner-min-h:120px;display:flex;flex-direction:column;padding-bottom:var(--spacing-page);position:relative}.ihabdevteam-core-scope .top-banner__viewport{border-radius:var(--radius-m);min-height:var(--top-banner-min-h);overflow:hidden}.ihabdevteam-core-scope .top-banner__track{align-items:stretch;display:flex;min-height:var(--top-banner-min-h);transition:transform .4s ease}.ihabdevteam-core-scope .top-banner__slide{flex:0 0 100%;min-width:0}.ihabdevteam-core-scope .top-banner__slide>*{box-sizing:border-box;min-height:100%;width:100%}.ihabdevteam-core-scope .top-banner__dots{bottom:calc(var(--spacing-page) + 12px);display:flex;gap:6px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .top-banner__dot{background:var(--color-white-a30);border:none;border-radius:3px;cursor:pointer;height:6px;padding:0;position:relative;transition:width .25s ease,background-color .25s ease;width:6px}.ihabdevteam-core-scope .top-banner__dot:after{content:"";height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:calc(100% + 6px)}.ihabdevteam-core-scope .top-banner__dot--active{background:var(--color-white);width:18px}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot{background:var(--color-lightGray-a80)}.ihabdevteam-core-scope .top-banner__dots--dark .top-banner__dot--active{background:var(--color-main)}';ee(T5);function wh({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":n}){const{t:i}=me.useTranslation(),s=n??i("topBanner.ariaLabel","\uBC30\uB108"),c=l.Children.toArray(e),d=c.length,[u,m]=l.useState(0),[h,p]=l.useState(!1),g=d>0?u%d:0;return l.useEffect(()=>{if(d<2||t<=0||h)return;const f=window.setInterval(()=>m(b=>(b+1)%d),t);return()=>window.clearInterval(f)},[d,t,h]),d===0?null:o.jsxs("section",{className:_e("top-banner",r),"aria-label":s,"aria-roledescription":"carousel",onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onFocus:()=>p(!0),onBlur:()=>p(!1),children:[o.jsx("div",{className:"top-banner__viewport",children:o.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${g*100}%)`},children:c.map((f,b)=>o.jsx("div",{className:"top-banner__slide","aria-hidden":b!==g,...b!==g?{inert:!0}:{},children:f},b))})}),d>1&&o.jsx("div",{className:`top-banner__dots${(a?.[g]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((f,b)=>o.jsx("button",{type:"button",className:`top-banner__dot${b===g?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:d,index:b+1,defaultValue:`${d}\uAC1C \uC911 ${b+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":b===g,onClick:()=>m(b)},b))})]})}var B5=".ihabdevteam-core-scope .accordion-item{background:transparent;border-radius:var(--radius-m)}.ihabdevteam-core-scope .accordion-item__header{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;cursor:pointer;display:flex;gap:var(--spacing-s);min-height:56px;outline:none;padding:0 20px;transition:background-color .2s ease,border-color .2s ease}.ihabdevteam-core-scope .accordion-item__header:hover{background:var(--color-deepWhite);border-color:var(--color-main)}.ihabdevteam-core-scope .accordion-item__header:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .accordion-item__avatar{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__title{flex:1;text-align:left}.ihabdevteam-core-scope .accordion-item__chevron{align-items:center;display:inline-flex;flex:none}.ihabdevteam-core-scope .accordion-item__chevron-icon{align-items:center;color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .accordion-item__chevron-image{height:18px;opacity:.7;transition:transform .18s ease;width:18px}.ihabdevteam-core-scope .accordion-item.accordion-item--open{background:var(--color-main-a10);border-radius:var(--radius-m);overflow:hidden}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__header{background:var(--color-white);border:1px solid var(--color-main)}.ihabdevteam-core-scope .accordion-item.accordion-item--open .accordion-item__chevron-image{transform:rotate(180deg)}.ihabdevteam-core-scope .accordion-item__body p{margin:0}.ihabdevteam-core-scope .accordion-item__body{background:transparent;box-sizing:border-box;color:var(--color-darkGray);max-width:100%;overflow-wrap:break-word;padding:40px 32px;text-align:left;word-break:break-word}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{min-height:48px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{min-height:56px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{min-height:72px}.ihabdevteam-core-scope .accordion-group--s48 .accordion-item,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s48 .accordion-item__header{border-radius:12px}.ihabdevteam-core-scope .accordion-group--s56 .accordion-item,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s56 .accordion-item__header{border-radius:14px}.ihabdevteam-core-scope .accordion-group--s72 .accordion-item,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item.accordion-item--open,.ihabdevteam-core-scope .accordion-group--s72 .accordion-item__header{border-radius:18px}.ihabdevteam-core-scope .accordion-group,.ihabdevteam-core-scope .accordion-group>.accordion-item{box-sizing:border-box;display:block;width:100%}.ihabdevteam-core-scope .accordion-group>.accordion-item+.accordion-item{margin-top:var(--spacing-s)}";ee(B5);function N5({title:e,body:t,open:a=!1,onToggle:r,avatar:n,titleClassName:i="body-2",bodyClassName:s="body-2",className:c=""}){const{t:d}=me.useTranslation();return o.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),children:[o.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:u=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),r?.();else if(u.key==="ArrowDown"||u.key==="ArrowUp"){u.preventDefault();const m=u.currentTarget.closest('[role="list"]');if(!m)return;const h=Array.from(m.querySelectorAll("[data-accordion-header]")),p=h.indexOf(u.currentTarget);(u.key==="ArrowDown"?h[p+1]:h[p-1])?.focus()}},children:[n&&o.jsx("div",{className:"accordion-item__avatar",children:n}),o.jsx("div",{className:`accordion-item__title ${i}`,children:e}),o.jsx("div",{className:"accordion-item__chevron",children:o.jsx(Fe,{icon:a?"chevron-up":"chevron-down",label:a?d("accordion.collapse","\uC811\uAE30"):d("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&o.jsx("div",{className:`accordion-item__body ${s}`,children:typeof t=="string"?o.jsx("p",{children:t}):t})]})}function kh({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:n}){const[i,s]=l.useState(t);return o.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>o.jsx(N5,{title:c.title,body:c.body,avatar:c.avatar,open:d===i,onToggle:()=>s(d===i?-1:d),bodyClassName:n},d))})}var D5=".ihabdevteam-core-scope .bottom-nav{align-items:flex-start;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:none;height:calc(72px + env(safe-area-inset-bottom));left:0;padding:8px calc(10px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(10px + env(safe-area-inset-left));position:fixed;right:0;z-index:var(--z-nav)}.ihabdevteam-core-scope .bottom-nav__left{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .bottom-nav__divider{align-self:flex-start;background:var(--color-whiteLine);border-radius:1px;flex-shrink:0;height:24px;margin:14px 0 0;width:1px}.ihabdevteam-core-scope .bottom-nav__items{align-items:center;display:flex;flex:1;gap:10px;justify-content:center;overflow:hidden}.ihabdevteam-core-scope .bottom-nav__right{align-items:center;display:flex;flex-shrink:0}@media (max-width:767px){.ihabdevteam-core-scope .bottom-nav{display:flex}}@media (min-width:768px){.ihabdevteam-core-scope .bottom-nav{display:none}}.ihabdevteam-core-scope .bottom-nav-item{align-items:center;background:transparent!important;border:none!important;border-radius:10px!important;color:var(--color-lightGray);cursor:pointer;display:flex!important;flex-direction:column;height:52px!important;justify-content:center;padding:0!important;transition:background .16s ease,color .16s ease!important;width:52px!important}.ihabdevteam-core-scope .bottom-nav-item:hover:not(.is-selected){background:var(--color-darkWhite)!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected{animation:bottom-nav-active-bg .36s cubic-bezier(.4,0,.2,1) forwards;background-color:var(--color-sub)!important;box-shadow:0 6px 12px rgba(12,24,36,.06);color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item.is-selected *{color:#fff!important}.ihabdevteam-core-scope .bottom-nav-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .bottom-nav-item:disabled,.ihabdevteam-core-scope .bottom-nav-item[disabled]{opacity:.6;pointer-events:none}@keyframes bottom-nav-active-bg{0%{background-color:var(--color-sub)}to{background-color:var(--color-main)}}";ee(D5);var E5=".ihabdevteam-core-scope .badge{align-items:center;background:var(--badge-color,var(--color-main));border-radius:999px;box-shadow:none;box-shadow:var(--badge-shadow,none);color:#fff;color:var(--badge-on-color,#fff);display:inline-flex;gap:6px;justify-content:center;line-height:1;vertical-align:middle;white-space:nowrap}.ihabdevteam-core-scope .badge--small{font-size:12px;height:20px;padding:0 10px}.ihabdevteam-core-scope .badge--medium{font-size:14px;height:28px;padding:0 14px}.ihabdevteam-core-scope .badge--large{font-size:16px;height:32px;padding:0 18px}.ihabdevteam-core-scope .badge__icon{align-items:center;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .badge--default{--badge-color:var(--color-lightGray);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--main{--badge-color:var(--color-main);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--sub{--badge-color:var(--color-sub);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--danger{--badge-color:var(--color-error);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--disabled{--badge-color:var(--color-disabled);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--like{--badge-color:var(--color-like);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--success{--badge-color:var(--color-success);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--warning{--badge-color:var(--color-warn);--badge-on-color:#fff}.ihabdevteam-core-scope .badge--critical{--badge-color:#7c3aed;--badge-on-color:#fff}.ihabdevteam-core-scope .badge--outline{background:transparent;border:1px solid var(--badge-color);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .badge--soft{background:color-mix(in srgb,var(--badge-color) 10%,transparent);box-shadow:none;color:var(--badge-color)}.ihabdevteam-core-scope .circle-badge{align-items:center;border:2px solid var(--color-pureWhite);border-radius:50%;box-sizing:border-box;display:inline-flex;flex-shrink:0;font-weight:700;justify-content:center;line-height:1;pointer-events:none;position:absolute;transition:background .12s,transform .12s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}@keyframes circle-badge-pop{0%{opacity:0;transform:scale(.3)}60%{opacity:1;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}.ihabdevteam-core-scope .circle-badge--animate{animation:circle-badge-pop .24s cubic-bezier(.34,1.56,.64,1)}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .circle-badge--animate{animation:none}}.ihabdevteam-core-scope .circle-badge--clickable{cursor:pointer;pointer-events:auto}.ihabdevteam-core-scope .circle-badge--clickable:hover{transform:scale(1.12)}.ihabdevteam-core-scope .circle-badge--top-right{right:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--top-left{left:-6px;top:-6px}.ihabdevteam-core-scope .circle-badge--inline{border:none;position:static}.ihabdevteam-core-scope .circle-badge--24{border-width:1px;font-size:11px;height:24px;width:24px}.ihabdevteam-core-scope .circle-badge--32{border-width:2px;font-size:14px;height:32px;width:32px}.ihabdevteam-core-scope .circle-badge--40{border-width:2px;font-size:16px;height:40px;width:40px}.ihabdevteam-core-scope .circle-badge--check,.ihabdevteam-core-scope .circle-badge--number{background:var(--color-main);color:#fff}.ihabdevteam-core-scope .circle-badge--remove{background:var(--color-error);color:#fff}.ihabdevteam-core-scope .circle-badge--minus{background:var(--color-lightGray);color:#fff}.ihabdevteam-core-scope .circle-badge--24 svg{height:11px;width:11px}.ihabdevteam-core-scope .circle-badge--32 svg{height:15px;width:15px}.ihabdevteam-core-scope .circle-badge--40 svg{height:19px;width:19px}";ee(E5);function j5(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("polyline",{points:"2,6 5,9 10,3"})})}function L5(){return o.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[o.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),o.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function M5(){return o.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:o.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function ht(e){const{type:t="bar",size:a,className:r="","aria-label":n}=e;if(t==="dot"){const{icon:x,number:C,position:k="top-right",onClick:w,animate:S=!1}=e,j=C!==void 0?"number":x??"check",A=typeof a=="number"?a:32,B=_e("circle-badge",`circle-badge--${j}`,`circle-badge--${k}`,`circle-badge--${A}`,S?"circle-badge--animate":"",w?"circle-badge--clickable":"",r),W=C!==void 0?`${C}\uBC88\uC9F8 \uC120\uD0DD`:{check:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",minus:"\uC81C\uC678"}[x??"check"];return o.jsxs("span",{className:B,onClick:w,onKeyDown:w?M=>{M.key!=="Enter"&&M.key!==" "||(M.preventDefault(),M.currentTarget.click())}:void 0,"aria-label":n??W,role:w?"button":void 0,tabIndex:w?0:void 0,children:[C!==void 0&&C,C===void 0&&x==="check"&&o.jsx(j5,{}),C===void 0&&x==="remove"&&o.jsx(L5,{}),C===void 0&&x==="minus"&&o.jsx(M5,{})]})}const{label:i,children:s,variant:c="default",fill:d="filled",minWidth:u,iconLeft:m,iconRight:h,color:p}=e,g=typeof a=="number"?"medium":a??"medium",f={small:"caption-2b",medium:"body-3b",large:"body-2b"}[g]??"body-2b",b={small:12,medium:14,large:16}[g]??14,v=_e("badge",`badge--${c}`,`badge--${g}`,d!=="filled"?`badge--${d}`:"",f,r),y=p?.startsWith("--")?`var(${p})`:p,_=u!==void 0||y?{...u!==void 0?{minWidth:typeof u=="number"?`${u}px`:u}:{},...y?{"--badge-color":y}:{}}:void 0;return o.jsxs("span",{className:v,style:_,children:[m&&o.jsx(Fe,{icon:m,size:b,className:"badge__icon"}),i??s,h&&o.jsx(Fe,{icon:h,size:b,className:"badge__icon"})]})}var P5=".ihabdevteam-core-scope .tooltip-menu{display:flex;flex-direction:column;gap:var(--spacing-xs);min-width:160px;padding:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);display:flex;gap:var(--spacing-xs);height:52px;padding:8px 12px}.ihabdevteam-core-scope .tooltip-menu__title{font-weight:600}.ihabdevteam-core-scope .tooltip-menu__columns{display:flex;gap:var(--spacing-s);padding:4px}.ihabdevteam-core-scope .tooltip-menu__column{display:flex;flex:1;flex-direction:column;gap:var(--spacing-xs);min-width:0}.ihabdevteam-core-scope .tooltip-menu__column-title{color:var(--color-lightGray);margin-bottom:4px}.ihabdevteam-core-scope .tooltip-menu__items{display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .tooltip-menu--small{gap:2px;min-width:140px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__items{gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__columns{gap:var(--spacing-xs);padding:2px}.ihabdevteam-core-scope .tooltip-menu--small .tooltip-menu__header{height:44px;padding:6px 10px}.ihabdevteam-core-scope .tooltip-menu__item{width:100%}@media (max-width:600px){.ihabdevteam-core-scope .tooltip-menu__columns{flex-direction:column}}";ee(P5);function br({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:n}=me.useTranslation(),i=r==="small"?40:48,[s,c]=l.useState([{title:null,columns:e}]),d=s[s.length-1];l.useEffect(()=>{c(f=>{try{if(!Array.isArray(f)||f.length===0)return[{title:null,columns:e}];const b=f.slice(),v=b[0]&&typeof b[0].title<"u"?b[0].title:null;return b[0]={title:v,columns:e},b}catch{return[{title:null,columns:e}]}})},[e]);const u=l.useCallback(()=>c(f=>f.length>1?f.slice(0,f.length-1):f),[]),m=l.useRef(null),h=l.useRef(null),p=s.length;l.useEffect(()=>{h.current||(h.current=document.activeElement);let f=0,b=0;const v=()=>{const y=m.current?.querySelector("button:not([disabled])");if(y&&y.offsetParent){y.focus({preventScroll:!0});return}b++<20&&(f=requestAnimationFrame(v))};return f=requestAnimationFrame(v),()=>cancelAnimationFrame(f)},[p]),l.useEffect(()=>()=>{h.current?.focus?.({preventScroll:!0})},[]);const g=l.useCallback(f=>{if(f){if(Array.isArray(f.children)&&f.children.length){c(b=>[...b,{title:f.label||null,columns:[{title:null,items:f.children||[]}]}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t]);return o.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(s.length>1||d.title)&&o.jsxs("div",{className:"tooltip-menu__header",children:[s.length>1?o.jsx(re,{size:i,type:"dot",icon:"chevron-left",ariaLabel:n("common.back","\uB4A4\uB85C"),onClick:u,variant:"transparent-gray",useBorder:!1}):null,o.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),o.jsx("div",{className:"tooltip-menu__columns",ref:m,children:d.columns&&d.columns.map((f,b)=>o.jsxs("div",{className:"tooltip-menu__column",children:[f.title?o.jsx("div",{className:"tooltip-menu__column-title body-3",children:f.title}):null,o.jsx("div",{className:"tooltip-menu__items",children:(f.items||[]).map((v,y)=>o.jsx(re,{className:"tooltip-menu__item",size:i,type:v.label?"bar":"dot",icon:v.selected?"check":v.icon||"none",rightIcon:Array.isArray(v.children)&&v.children.length?"chevron-right":v.badgeCount?o.jsx(ht,{type:"dot",position:"inline",number:Math.min(v.badgeCount,99),size:24,"aria-label":`${v.badgeCount}`}):void 0,label:v.label,ariaLabel:v.label,onClick:()=>g(v),selected:v.selected,disabled:v.disabled,showTooltipInfo:v.tooltip||!1,useBorder:!1,align:"left"},y))})]},b))})]})}const R5=52,Sh=10;function Al({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:n,moreItems:i=[]}){const{t:s}=me.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",u=r==="manager"?s("nav.modeLabelMalgwi","\uB9D0\uADC0"):s("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=l.useRef(null),[h,p]=l.useState(0),g=e.length;l.useEffect(()=>{const E=m.current;if(!E||(p(E.clientWidth),typeof ResizeObserver>"u"))return;const H=new ResizeObserver(te=>p(te[0].contentRect.width));return H.observe(E),()=>H.disconnect()},[]);const f=h>0?Math.floor((h+Sh)/(R5+Sh)):g,b=h>0&&f<g,v=b?f:g,y=e.slice(0,v),_=e.slice(v),x=b||i.length>0,C=l.useCallback(E=>({position:"fixed",bottom:window.innerHeight-E.top+8,right:window.innerWidth-E.right,zIndex:1e4}),[]),k=l.useId(),{open:w,toggle:S,close:j,style:A,triggerRef:B,menuRef:W}=ao({computeStyle:C,onScroll:"ignore",onResize:"ignore"}),M=l.useCallback(()=>n?.(c),[n,c]),T=l.useMemo(()=>_.find(E=>E.key===t)??i.find(E=>E.selected||E.key&&E.key===t),[_,t,i]),$=l.useMemo(()=>[{items:[..._.map(E=>({label:E.label,icon:E.icon,selected:E.key===t,closeOnSelect:!0,onClick:()=>{E.key&&a&&a(E.key),j()}})),...i.map(E=>({label:E.label,icon:E.icon,badgeCount:E.badgeCount,selected:E.selected??(!!E.key&&E.key===t),closeOnSelect:!0,onClick:()=>{E.onClick?.(),j()}}))]}],[_,i,t,a,j]);return o.jsxs("nav",{className:"bottom-nav","aria-label":s("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[n&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__left",children:o.jsx(re,{size:52,type:"dot",icon:d,ariaLabel:u,className:"bottom-nav-item",onClick:M})}),o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),o.jsx("div",{className:"bottom-nav__items",ref:m,children:y.map(E=>o.jsx(re,{size:52,type:"dot",icon:E.icon,ariaLabel:E.label,selected:E.key===t,disabled:E.state==="disabled",className:"bottom-nav-item",onClick:()=>E.key&&a?.(E.key)},E.key))}),x&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),o.jsx("div",{className:"bottom-nav__right",children:o.jsxs("div",{ref:B,children:[o.jsx(re,{size:52,type:"dot",icon:T?.icon??"ellipsis",ariaLabel:T?.label??s("nav.more","\uB354\uBCF4\uAE30"),selected:!!T,className:"bottom-nav-item",onClick:S,"aria-expanded":w,"aria-controls":w?k:void 0}),w&&qt.createPortal(o.jsx("div",{id:k,role:"group","aria-label":s("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:A,ref:W,children:o.jsx(br,{columns:$,onClose:j})}),document.body)]})})]})]})}var $5=".ihabdevteam-core-scope .side-nav__menu{-webkit-overflow-scrolling:touch;background-clip:padding-box;border-right:1px solid transparent;display:flex;flex:1;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:0 0 0 12px;scrollbar-color:var(--color-darkWhite) transparent;scrollbar-gutter:stable;scrollbar-width:thin}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb{background:var(--color-darkWhite);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .side-nav__menu::-webkit-scrollbar-thumb:hover{background:var(--color-lightGray,var(--color-lightGray))}.ihabdevteam-core-scope .side-nav__menu-list{display:flex;flex:1 0 auto;flex-direction:column;gap:4px;overflow:visible;padding:4px 0}.ihabdevteam-core-scope .side-nav__notification-wrap{align-self:flex-start;display:inline-flex;position:relative}.ihabdevteam-core-scope .side-nav__footer{align-items:left;display:flex;flex-direction:column;flex-shrink:0;gap:var(--spacing-s);margin-top:var(--spacing-s);padding:0 0 var(--spacing-s) 0}.ihabdevteam-core-scope .side-nav__separator{background:var(--color-whiteLine);height:1px;margin:0 var(--spacing-s) var(--spacing-xs)}.ihabdevteam-core-scope .side-nav__separator--short{margin:4px var(--spacing-m);width:var(--spacing-xl)}@media (max-width:767px){.ihabdevteam-core-scope .side-nav__footer,.ihabdevteam-core-scope .side-nav__menu{display:none}}.ihabdevteam-core-scope .side-nav__item{align-items:center;background:transparent;border:none;border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);gap:var(--spacing-s);height:52px;justify-content:flex-start;padding:0 var(--spacing-m);text-align:left;width:100%}@keyframes ihabCoreSnSweep{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ihabCoreSnIconBounce{0%{transform:scale(1)}40%{transform:scale(1.12)}to{transform:scale(1)}}.ihabdevteam-core-scope .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-main) 50%,var(--color-sub) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-button);color:#fff}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:#fff}.ihabdevteam-core-scope .side-nav__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;height:24px;justify-content:center;width:24px}.ihabdevteam-core-scope .side-nav__item.active .circle-badge{background:var(--color-pureWhite);color:var(--color-main)}.ihabdevteam-core-scope .side-nav__item .circle-badge--inline{border:1px solid var(--color-pureWhite)}.ihabdevteam-core-scope .side-nav__icon-wrap{display:inline-flex;flex:0 0 24px;position:relative}.ihabdevteam-core-scope .side-nav__icon{flex:0 0 24px}.ihabdevteam-core-scope .side-nav__icon img{display:block;height:20px;-o-object-fit:contain;object-fit:contain;width:20px}.ihabdevteam-core-scope .side-nav__icon-image{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:contain;display:inline-block;height:20px;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:20px}.ihabdevteam-core-scope .side-nav__item .side-nav__icon img{filter:brightness(0) saturate(0) opacity(.45);transition:filter .16s ease,opacity .16s ease}.ihabdevteam-core-scope .side-nav__item.active .side-nav__icon img{filter:brightness(0) invert(1)}.ihabdevteam-core-scope .side-nav__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .side-nav__item{transition:background-color .16s ease,color .16s ease,transform 80ms ease}.ihabdevteam-core-scope .side-nav__item:focus-visible:not(.active),.ihabdevteam-core-scope .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .side-nav__item:hover:not(.active){background:var(--color-darkWhite)}.ihabdevteam-core-scope .side-nav__item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.ihabdevteam-core-scope .side-nav__item.disabled,.ihabdevteam-core-scope .side-nav__item.disabled:focus,.ihabdevteam-core-scope .side-nav__item.disabled:hover{background:transparent;color:var(--color-lightGray);cursor:default;opacity:.6;pointer-events:none;transform:none}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon{color:var(--color-lightGray)}.ihabdevteam-core-scope .side-nav__item.disabled .side-nav__icon img{filter:none;opacity:.8}.ihabdevteam-core-scope .side-nav__item--child{height:40px;padding-left:30px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__icon{height:20px;width:20px}.ihabdevteam-core-scope .side-nav__item--child .side-nav__label{font-weight:400}";ee($5);function I5(e){const{t}=me.useTranslation(),{activeKey:a,unreadCount:r,onDebug:n,onNotification:i,onSetting:s,onHelp:c,onAccount:d}=e||{},u="default";return o.jsxs("div",{className:"side-nav__footer",children:[n&&o.jsx(re,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:n,selected:a==="debug"}),o.jsxs("span",{className:"side-nav__notification-wrap",children:[o.jsx(re,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"bell",ariaLabel:t("nav.notifications","\uC54C\uB9BC"),onClick:i,selected:a==="notifications"}),!!r&&o.jsx(ht,{type:"dot",number:Math.min(r,99),size:24})]}),o.jsx(re,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:s,selected:a==="settings"}),o.jsx(re,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),o.jsx(re,{size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:u,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]})}function Ah(e){const{item:t,itemKey:a,label:r,icon:n,active:i,onClick:s,style:c,state:d,labelStyle:u}=e||{},m=t?.key??a??"",h=t?.label??r??"",p=t?.icon??n??"",g=t?.badge??0,f=o.jsx("span",{className:"side-nav__icon-wrap",children:o.jsx(Fe,{icon:p,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),b=d==="disabled",v=`side-nav__item ${i?"active":""} ${d||""} ${b?"disabled":""} ${t?.child?"side-nav__item--child":""}`,y=l.useCallback(_=>{if(!b){try{_.currentTarget.blur()}catch{}s?.(m,_.currentTarget)}},[b,m,s]);return o.jsxs("button",{className:v,onClick:y,"aria-label":typeof h=="string"?h:void 0,style:c,"aria-disabled":b,children:[f,o.jsx("span",{className:"side-nav__label button-1 f",style:u,children:h}),g>0&&o.jsx(ht,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-label":`${g}`}),d==="loading"&&o.jsx("span",{className:"side-nav__spinner","aria-label":"loading"})]})}function Tl(e){const{t}=me.useTranslation(),{items:a=[],activeKey:r,onChange:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}=e||{},g=l.useCallback(()=>p?.(h==="malgwi"?"manager":"malgwi"),[p,h]);return o.jsxs("nav",{"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[o.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,b)=>o.jsxs(l.Fragment,{children:[f.divider&&o.jsx("div",{className:"side-nav__separator"}),o.jsx(Ah,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(v,y)=>{if(f.disabled)return;if(f.href){window.open(f.href,"_blank","noopener,noreferrer");try{y?.blur()}catch{}return}n?.(f.key);try{const x=document.querySelector(".content-area");x?x.scrollTop=0:window.scrollTo({top:0})}catch{}try{y?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const _=document.querySelector(".header");if(_&&!(typeof _.matches=="function"&&_.matches(":hover"))){_.classList.add("header--force-collapsed");const x=()=>{_.classList.remove("header--force-collapsed"),_.removeEventListener("mouseenter",x)};_.addEventListener("mouseenter",x)}}})]},f.key??`side-nav__item-${b}`)),p&&o.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),p&&o.jsx(Ah,{item:{key:"__mode-switch__",label:h==="malgwi"?t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:h==="malgwi"?"arrow-right":"arrow-left"},onClick:g})]}),o.jsx(I5,{activeKey:r,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m})]})}var Bl='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2080_3066)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="black"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="black"/>%0A<path d="M46.4288 17.8571H25.0002C15.138 17.8571 7.14307 25.852 7.14307 35.7143V57.1428C7.14307 67.0051 15.138 75 25.0002 75H46.4288C56.291 75 64.2859 67.0051 64.2859 57.1428V35.7143C64.2859 25.852 56.291 17.8571 46.4288 17.8571Z" fill="%234DCDC0"/>%0A<path d="M34.8607 50.7393C25.8285 60.6821 10.6142 61.6678 0.385667 53.1643C-0.0821902 52.775 -0.13219 52.0678 0.278524 51.6178L16.3535 33.925L34.8607 50.7393Z" fill="%234DCDC0"/>%0A<path d="M53.5714 25H32.1428C22.2821 25 14.2856 32.9964 14.2856 42.8571V64.2857C14.2856 74.1464 22.2821 82.1429 32.1428 82.1429H48.2535C49.2178 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7214 51.8928 85.6321C62.8392 84.675 71.4285 75.4821 71.4285 64.2857V42.8571C71.4285 32.9964 63.4321 25 53.5714 25Z" fill="%234DCDC0"/>%0A<path d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23499CDF"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="white"/>%0A<path d="M36.0715 57.1429C35.0287 57.1429 33.9822 56.875 33.0358 56.3286C32.1822 55.8357 31.8894 54.7429 32.3858 53.8893C32.8787 53.0357 33.9715 52.7429 34.8251 53.2393C35.8037 53.8036 37.043 53.6429 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3536 40.4322 35.9107 37.5072 35.7286C36.5215 35.6679 35.5715 35.8464 34.693 36.2679C33.8037 36.6929 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0429C34.5751 32.3714 36.1537 32.0679 37.7322 32.1643C42.4894 32.4607 46.3072 36.4286 46.4251 41.1964C46.4822 43.5286 45.6715 45.7786 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9357C41.8965 53.2464 41.3037 54.4357 40.368 55.375C39.2001 56.5429 37.6465 57.15 36.0751 57.15L36.0715 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2080_3066">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Nl='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7374)">%0A<path d="M237.151 26.0393V72.7214H216.65V26.0393H237.151ZM234.408 70.0464V28.7179H219.254V70.0464H234.408ZM261.495 76.3607H258.819V48.9679H247.575V75.4679H244.899V23.9821H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3607Z" fill="black"/>%0A<path d="M299.722 69.2571C302.076 68.775 304.031 68.1464 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.789 72.0357C297.435 72.4929 295.045 72.7214 292.623 72.7214H272.257V25.6964H275V69.975H292.623C294.998 69.975 297.364 69.7357 299.722 69.2536V69.2571ZM311.69 76.4321V23.6393H314.433V76.3643L311.69 76.4321Z" fill="black"/>%0A<path d="M340.556 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.329 62.2643 333.632 65.925C330.935 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.33 63.1107C334.617 59.3572 336.354 54.5179 337.542 48.5893C338.73 42.6643 339.369 36.0393 339.461 28.7143H324.992V26.0357H356.602V28.7143H342.201C342.155 35.9 341.605 42.3072 340.556 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="black"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="black"/>%0A<path d="M181.886 47.8714V57.275C179.097 58.5571 174.73 59.1964 168.791 59.1964H168.174V76.3607H158.299V59.1964H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8714H181.886ZM148.971 34.2786V24.875H177.634V47.05H167.76V34.2821H148.971V34.2786ZM194.64 76.3607H184.765V23.6393H194.64V76.3643V76.3607Z" fill="black"/>%0A<path d="M48.1549 17.8571H26.7511C16.9002 17.8571 8.91455 25.852 8.91455 35.7143V57.1428C8.91455 67.0051 16.9002 75 26.7511 75H48.1549C58.0058 75 65.9915 67.0051 65.9915 57.1428V35.7143C65.9915 25.852 58.0058 17.8571 48.1549 17.8571Z" fill="%234DCDC0"/>%0A<path d="M36.6007 50.7393C27.579 60.6821 12.3823 61.6678 2.1655 53.1643C1.69818 52.775 1.64824 52.0678 2.05848 51.6178L18.1149 33.925L36.6007 50.7393Z" fill="%234DCDC0"/>%0A<path d="M55.2897 25H33.8859C24.0365 25 16.0493 32.9964 16.0493 42.8571V64.2857C16.0493 74.1464 24.0365 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7214 53.6131 85.6321C64.5469 84.675 73.1262 75.4821 73.1262 64.2857V42.8571C73.1262 32.9964 65.139 25 55.2897 25Z" fill="%234DCDC0"/>%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23499CDF"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="white"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7374">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',z5='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',O5='.ihabdevteam-core-scope .header{background:var(--color-deepWhite);border-left:1px solid var(--color-whiteLine);border-right:1px solid var(--color-whiteLine);bottom:0;box-sizing:content-box;display:flex;flex-direction:column;isolation:isolate;left:0;overflow:visible;overscroll-behavior:none;position:fixed;top:0;z-index:var(--z-sidebar)}.ihabdevteam-core-scope .header__menu-button{background:transparent;border:none;display:none}.ihabdevteam-core-scope .header__bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);bottom:0;display:flex;height:56px;justify-content:center;left:0;padding:0;padding-bottom:calc(var(--spacing-content) + env(safe-area-inset-bottom));position:fixed;right:0}.ihabdevteam-core-scope .header__category-button{background:transparent;border:none}.ihabdevteam-core-scope .header:before{background:linear-gradient(160deg,var(--color-main) 0,var(--color-sub) 100%);content:"";inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .2s ease;z-index:-1}.ihabdevteam-core-scope .header--manager{border-right-color:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .header--manager:before{opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__separator{background:hsla(0,0%,100%,.25)}.ihabdevteam-core-scope .header--manager .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item{color:var(--color-deepWhite)}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active),.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active){background:hsla(0,0%,100%,.15);color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item:focus:not(.active) .side-nav__icon,.ihabdevteam-core-scope .header--manager .side-nav__item:hover:not(.active) .side-nav__icon{color:#fff}.ihabdevteam-core-scope .header--manager .side-nav__item.active{animation:ihabCoreSnSweep 1s cubic-bezier(.4,0,.2,1) forwards;background:linear-gradient(90deg,var(--color-pureWhite) 50%,color-mix(in srgb,var(--color-main) 50%,#fff) 100%);background-position:0 0;background-size:200% 100%;box-shadow:var(--shadow-card);color:var(--color-darkGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon{animation:ihabCoreSnIconBounce .48s cubic-bezier(.4,0,.2,1) forwards;color:var(--color-lightGray)}.ihabdevteam-core-scope .header--manager .side-nav__item.active .side-nav__icon img{filter:none;opacity:1}.ihabdevteam-core-scope .header--manager .side-nav__footer [role=button],.ihabdevteam-core-scope .header--manager .side-nav__footer button{color:hsla(0,0%,100%,.55)}@media (min-width:1024px){.ihabdevteam-core-scope .header{width:220px}.ihabdevteam-core-scope .header__bottom,.ihabdevteam-core-scope .header__menu-button{display:none}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .header__branding{height:80px}.ihabdevteam-core-scope .header .side-nav__menu{padding:0 10px;transition:padding .18s ease}.ihabdevteam-core-scope .header .side-nav__item{border-radius:var(--radius-card);gap:0;padding:0 14px;transition:padding .18s ease,gap .18s ease}.ihabdevteam-core-scope .header:focus-within .side-nav__menu,.ihabdevteam-core-scope .header:hover .side-nav__menu{padding:0 10px}.ihabdevteam-core-scope .header:focus-within .side-nav__item,.ihabdevteam-core-scope .header:hover .side-nav__item{gap:10px;padding:0 16px}.ihabdevteam-core-scope .header .side-nav__label{display:inline-block;max-width:0;opacity:0;overflow:hidden;pointer-events:none;transform:translateX(-6px);transition:max-width .18s ease,opacity .18s ease,transform .18s ease;white-space:nowrap}.ihabdevteam-core-scope .header{overflow:visible;transition:width .18s ease;width:72px}.ihabdevteam-core-scope .header:focus-within,.ihabdevteam-core-scope .header:hover{width:220px}.ihabdevteam-core-scope .header:focus-within .side-nav__label,.ihabdevteam-core-scope .header:hover .side-nav__label{max-width:200px;opacity:1;pointer-events:auto;transform:translateX(0)}.ihabdevteam-core-scope .header.header--force-collapsed{width:72px}.ihabdevteam-core-scope .header.header--force-collapsed .side-nav__label{max-width:0;opacity:0;pointer-events:none;transform:translateX(-6px)}.ihabdevteam-core-scope .header.header--force-collapsed:hover{width:72px}}@media (max-width:767px){.ihabdevteam-core-scope .header{align-items:center;border-bottom:1px solid var(--color-whiteLine);border-left:none;border-right:none;flex-direction:row;height:64px;justify-content:space-between;left:0;position:fixed;right:0;top:0;width:100%}.ihabdevteam-core-scope .header__top{align-items:center;display:flex;flex:1}.ihabdevteam-core-scope .header__branding{height:auto}.ihabdevteam-core-scope .header__menu-button{display:inline-flex}.ihabdevteam-core-scope .header__bi{align-items:center;display:flex;gap:var(--spacing-xs);padding:0 calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left));width:100%}.ihabdevteam-core-scope .header__bi .header__menu-button{margin-left:auto}.ihabdevteam-core-scope .header__bottom{display:none}}.ihabdevteam-core-scope .brand-identity__root{align-items:center;display:flex;height:100px;justify-content:center}.ihabdevteam-core-scope .brand-identity__image{height:48px;-o-object-fit:contain;object-fit:contain;width:auto}@media (min-width:1024px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (min-width:768px) and (max-width:1023px){.ihabdevteam-core-scope .brand-identity__root{height:100px}}@media (max-width:767px){.ihabdevteam-core-scope .brand-identity__root{height:64px;padding:10px}.ihabdevteam-core-scope .brand-identity__image{height:40px}}';ee(O5);function Dl({appMode:e}){const{t}=me.useTranslation(),a=e==="manager",r=a?Nl:Bl,n=z5,i=oa("(min-width: 768px) and (max-width: 1023px)");return o.jsx("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:i?o.jsx("img",{src:n,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):o.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function El({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:n,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}){const{t:g}=me.useTranslation(),f=oa("(max-width: 767px)"),b=l.useMemo(()=>{const A=[];return s&&A.push({key:"debug",icon:"terminal",label:g("nav.debug","\uB514\uBC84\uADF8"),onClick:s}),c&&A.push({key:"notifications",icon:"bell",label:g("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),u&&A.push({key:"settings",icon:"settings",label:g("nav.settings","\uC124\uC815"),onClick:u}),m&&A.push({key:"help",icon:"message-circle-question-mark",label:g("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),d&&A.push({key:"account",icon:"user-round",label:g("nav.account","\uACC4\uC815"),onClick:d}),A},[g,s,c,u,m,d,i]),v=l.useCallback(A=>({position:"fixed",top:A.bottom+8,right:Math.max(8,window.innerWidth-A.right),zIndex:1e4}),[]),y=l.useId(),{open:_,toggle:x,close:C,style:k,triggerRef:w,menuRef:S}=ao({computeStyle:v,onScroll:"ignore",onResize:"ignore"}),j=l.useMemo(()=>[{items:b.map(A=>({label:A.label,icon:A.icon,badgeCount:A.badgeCount,selected:A.selected??(!!A.key&&A.key===e),closeOnSelect:!0,onClick:()=>{A.onClick?.(),C()}}))}],[b,e,C]);return o.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[o.jsxs("div",{className:"header__bi",children:[o.jsx(Dl,{appMode:h}),o.jsxs("div",{className:"header__menu-button",ref:w,children:[o.jsx(re,{size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:g("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:x,"aria-expanded":_,"aria-controls":_?y:void 0}),_&&qt.createPortal(o.jsx("div",{id:y,role:"group","aria-label":g("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:k,ref:S,children:o.jsx(br,{columns:j,onClose:C})}),document.body)]})]}),o.jsx(Tl,{items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:s,onNotification:c,onAccount:d,onSetting:u,onHelp:m,appMode:h,onAppModeChange:p}),f&&o.jsx(Al,{items:a,activeKey:e??void 0,onChange:t,appMode:h,onAppModeChange:p})]})}const Th=El;var F5='.ihabdevteam-core-scope .payment-plan__card{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex:1 1 340px;flex-direction:column;gap:28px;max-width:360px;min-width:min(340px,100%);padding:20px;position:relative;text-align:left;transition:box-shadow .2s ease,transform .2s ease;width:100%}.ihabdevteam-core-scope .payment-plan__card:hover{box-shadow:var(--shadow-dropdown);transform:translateY(-4px)}.ihabdevteam-core-scope .payment-plan__card-badge{position:absolute;right:32px;top:32px}.ihabdevteam-core-scope .payment-plan__pricing-card{cursor:pointer;display:flex;justify-content:center}.ihabdevteam-core-scope .payment-plan__title{color:var(--color-black);display:flex;flex-direction:column;margin:0}.ihabdevteam-core-scope .payment-plan__quote{color:var(--color-sub);margin:0 0 4px;min-height:1.4em}.ihabdevteam-core-scope .payment-plan__title-heading{margin:0}.ihabdevteam-core-scope .payment-plan__subtitle{color:var(--color-gray);line-height:1.5;margin:8px 0 0;text-align:left}.ihabdevteam-core-scope .payment-plan__box,.ihabdevteam-core-scope .payment-plan__box-title{display:block}.ihabdevteam-core-scope .payment-plan__contact-button{width:100%}.ihabdevteam-core-scope .payment-plan__feature-list{display:flex;flex-direction:column;gap:10px;list-style:none;margin:12px 0 0;padding:0}.ihabdevteam-core-scope .payment-plan__feature-item{align-items:center;color:var(--color-darkGray);display:flex;gap:10px;line-height:1.45}.ihabdevteam-core-scope .payment-plan__feature-check{align-items:center;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .payment-plan__card-pricing{display:flex;flex-direction:column;gap:6px;margin-top:auto;text-align:left;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-list{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .payment-plan__pricing-row{grid-row-gap:4px;align-items:center;background:var(--plan-color,var(--color-darkWhite));border:1px solid transparent;border-radius:var(--radius-s);box-sizing:border-box;color:#fff;cursor:pointer;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;padding:14px 18px;row-gap:4px;transition:filter .15s ease,transform .15s ease,box-shadow .15s ease;width:100%}.ihabdevteam-core-scope .payment-plan__pricing-row--static{cursor:default;pointer-events:none}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight{background:var(--color-white);border:1px solid var(--plan-color,var(--color-main));color:var(--color-darkGray)}.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-current,.ihabdevteam-core-scope .payment-plan__pricing-row--highlight .payment-plan__pricing-row-price{color:var(--plan-color,var(--color-main))}.ihabdevteam-core-scope .payment-plan__pricing-row:hover{box-shadow:var(--shadow-dropdown);filter:brightness(1.04);transform:translateY(-2px)}.ihabdevteam-core-scope .payment-plan__pricing-row-title{display:contents}.ihabdevteam-core-scope .payment-plan__pricing-row-label{grid-column:1;grid-row:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-row-price{align-items:center;color:#fff;display:flex;gap:var(--spacing-xs);grid-column:1/-1;grid-row:2;justify-content:flex-end;margin:0;text-align:right}.ihabdevteam-core-scope .payment-plan__pricing-current{color:#fff;margin:0;white-space:nowrap}.ihabdevteam-core-scope .payment-plan__pricing-symbol{font-weight:600;margin-right:2px}.ihabdevteam-core-scope .payment-plan__list{grid-gap:var(--spacing-l);align-items:stretch;display:grid;gap:var(--spacing-l);grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),360px));justify-content:center;margin:0 auto var(--spacing-page);width:100%}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:stretch}.ihabdevteam-core-scope .payment-plan__card.recommended{border-color:var(--color-main);box-shadow:var(--shadow-dropdown)}.ihabdevteam-core-scope .payment-plan__feature{align-items:center;color:var(--color-darkGray);display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .payment-plan__feature:before{color:var(--color-success);content:"\u2713";font-weight:700}@media (max-width:767px){.ihabdevteam-core-scope .payment-plan__list{align-items:center;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .payment-plan__list>.payment-plan__card{align-self:center;flex:none;max-width:360px;width:100%}}';ee(F5);function Bh(e){if(!(e==null||e===""))return or(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function W5(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function H5(e){if(e.durationDays&&e.durationDays>0){const n=e.durationDays;return n%365===0?`${n/365}\uB144`:`${n}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);return r?r[1].replace(/\s+/g,""):a||"\uC774\uC6A9\uAD8C"}function V5(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function jl(e){return{type:e.type??W5(e),plan:H5(e),label:e.label,price:Bh(e.price),originalPrice:Bh(e.originalPrice),discountLabel:e.discountLabel}}var G5='.ihabdevteam-core-scope .pass-card-frame{container-type:inline-size;height:188px;max-width:100%;width:300px}.ihabdevteam-core-scope .pass-card{border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;height:188px;overflow:hidden;padding:var(--spacing-l);position:relative;width:300px}.ihabdevteam-core-scope .pass-card-frame>.pass-card{aspect-ratio:auto;border-radius:5.33cqw;height:100%;padding:6.67cqw;width:100%}.ihabdevteam-core-scope .pass-card--clickable{cursor:pointer}@media (max-width:360px){.ihabdevteam-core-scope .pass-card,.ihabdevteam-core-scope .pass-card-frame{max-width:300px;width:100%}}.ihabdevteam-core-scope .pass-card--active{box-shadow:0 4px 16px rgba(0,0,0,.08)}.ihabdevteam-core-scope .pass-card--pending{box-shadow:0 2px 8px rgba(0,0,0,.05)}.ihabdevteam-core-scope .pass-card--expired{--color-main:var(--color-disabled);--color-sub:var(--color-whiteLine);--pass-card-expired-shape:var(--color-whiteLine);box-shadow:none}.ihabdevteam-core-scope [data-theme=dark] .pass-card--expired,.ihabdevteam-core-scope[data-theme=dark] .pass-card--expired,[data-theme=dark] .pass-card--expired .ihabdevteam-core-scope{--pass-card-expired-shape:hsla(0,0%,100%,.18)}@media (prefers-color-scheme:dark){.ihabdevteam-core-scope :root:not([data-theme=light]):not([data-theme=dark]) .pass-card--expired{--pass-card-expired-shape:hsla(0,0%,100%,.18)}}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg{background:var(--color-darkWhite)}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg__symbol{background:var(--pass-card-expired-shape)}.ihabdevteam-core-scope .pass-card--expired .pass-card__copyright,.ihabdevteam-core-scope .pass-card--expired .pass-card__plan,.ihabdevteam-core-scope .pass-card--expired .pass-card__price-area,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-percent,.ihabdevteam-core-scope .pass-card--expired .pass-card__usage-remaining{color:var(--color-gray)}.ihabdevteam-core-scope .pass-card.pass-card--expired:after{box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 color-mix(in srgb,var(--color-gray) 10%,transparent)}.ihabdevteam-core-scope .pass-card:after{border-radius:inherit;box-shadow:inset 1px 1px 0 hsla(0,0%,100%,.5),inset -1px -1px 0 rgba(73,156,223,.2);content:"";inset:0;pointer-events:none;position:absolute;z-index:2}.ihabdevteam-core-scope .pass-card__top{align-items:flex-start;display:flex;flex-direction:row;justify-content:space-between;margin-top:-1.67cqw;position:relative;z-index:1}.ihabdevteam-core-scope .pass-card__top-left{align-items:flex-start;display:flex;flex-direction:column;gap:0}.ihabdevteam-core-scope .pass-card__logo{height:10.67cqw;-o-object-fit:contain;object-fit:contain;width:auto}.ihabdevteam-core-scope .pass-card__plan{color:var(--pass-card-text,var(--color-pureBlack));display:flex;flex-direction:column;gap:0;margin-top:-.67cqw;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__plan .h0{font-size:13.33cqw;line-height:1.3}.ihabdevteam-core-scope .pass-card .pass-card__plan-number{font-size:17.33cqw;letter-spacing:-1cqw;line-height:1}.ihabdevteam-core-scope .pass-card__plan .h5b{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__plan-unit{margin-left:.67cqw;position:relative;top:-.67cqw}.ihabdevteam-core-scope .pass-card__plan-suffix{margin-left:.67cqw;margin-top:0}.ihabdevteam-core-scope .pass-card .pass-card__copyright{color:var(--pass-card-text,var(--color-black));font-size:3.67cqw;line-height:1.36;margin:auto 0 0;position:relative;text-align:left;z-index:1}.ihabdevteam-core-scope .pass-card__price-area{align-items:flex-end;bottom:4.67cqw;display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__price-area .h1{font-size:10.67cqw;line-height:1.375}.ihabdevteam-core-scope .pass-card__price-area .h5{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__usage{align-items:flex-end;bottom:4.67cqw;color:var(--pass-card-text,var(--color-black));display:flex;flex-direction:column;gap:0;position:absolute;right:6.67cqw;z-index:1}.ihabdevteam-core-scope .pass-card__usage-percent{align-items:baseline;display:inline-flex;font-size:3.67cqw;gap:0;line-height:1.36;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-remaining{font-size:5cqw;line-height:1.53;opacity:.9}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-value{font-size:10.67cqw;line-height:1.2}.ihabdevteam-core-scope .pass-card__usage .pass-card__usage-symbol{font-size:5cqw;line-height:1.53}.ihabdevteam-core-scope .pass-card__discount{color:var(--pass-card-text,var(--color-pureBlack));font-size:4.67cqw;line-height:1.2;text-align:right;white-space:pre-line}.ihabdevteam-core-scope .pass-card__price{align-items:baseline;color:var(--pass-card-text,var(--color-pureBlack));display:inline-flex;gap:2cqw;text-align:right}.ihabdevteam-core-scope .pass-card__price-original{color:color-mix(in srgb,var(--pass-card-text,var(--color-pureBlack)) 75%,transparent);font-size:4.67cqw;line-height:1.57;text-decoration:line-through;text-decoration-thickness:1px}';ee(G5);var q5='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Y5='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',U5='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7325)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23111111"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23111111"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23111111"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23111111"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23111111"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7325">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',K5='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7395)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23FAFAFA"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23FAFAFA"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23FAFAFA"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23FAFAFA"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23FAFAFA"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7395">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Z5='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 371 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="371" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M237.15,26.04v46.68h-20.5V26.04h20.5ZM234.41,70.05V28.72h-15.15v41.33h15.15ZM261.49,76.36h-2.68v-27.39h-11.24v26.5h-2.68V23.98h2.68v22.31h11.24v-22.65h2.68v52.73h0Z"/>%0A <path class="st3" d="M299.72,69.26c2.35-.48,4.31-1.11,5.86-1.89v2.75c-1.51.82-3.44,1.46-5.79,1.92-2.35.46-4.74.69-7.17.69h-20.37V25.7h2.74v44.28h17.62c2.38,0,4.74-.24,7.1-.72h0ZM311.69,76.43V23.64h2.74v52.73l-2.74.07Z"/>%0A <path class="st3" d="M340.56,47.94l17.62,22.52-2.13,1.65-16.18-20.94c-1.46,6.18-3.54,11.1-6.24,14.76-2.7,3.66-5.9,5.93-9.6,6.8v-2.75c3.25-.82,6.01-3.11,8.3-6.86,2.29-3.75,4.02-8.59,5.21-14.52,1.19-5.92,1.83-12.55,1.92-19.87h-14.47v-2.68h31.61v2.68h-14.4c-.05,7.19-.6,13.59-1.64,19.22h0ZM369.22,76.36h-2.74v-28.9h-14.06v-2.68h14.06v-21.14h2.74v52.73Z"/>%0A <path class="st3" d="M92.88,48.35v-24.1h30.58v24.1h-30.58ZM139.37,69.15v7.21h-44.71v-15.72h34.42v-2.13h-34.56v-7.21h44.3v15.72h-34.28v2.13h34.83,0ZM102.68,32.56v7.41h11.04v-7.41h-11.04ZM144.72,40.39h-5.9v9.06h-9.88v-25.81h9.88v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M181.89,47.87v9.4c-2.79,1.28-7.16,1.92-13.1,1.92h-.62v17.16h-9.88v-17.16h-12.2v-9.4h22.83c5.85,0,10.17-.64,12.96-1.92h0ZM148.97,34.28v-9.4h28.66v22.17h-9.87v-12.77h-18.79ZM194.64,76.36h-9.88V23.64h9.88v52.73h0Z"/>%0A <path class="st1" d="M48.15,17.86h-21.4c-9.85,0-17.84,7.99-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h21.4c9.85,0,17.84-7.99,17.84-17.86v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st1" d="M36.6,50.74c-9.02,9.94-24.22,10.93-34.44,2.42-.47-.39-.52-1.1-.11-1.55l16.06-17.69,18.49,16.81Z"/>%0A <path class="st1" d="M55.29,25h-21.4c-9.85,0-17.84,8-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h16.09c.96,0,1.74.78,1.74,1.75,0,1.02.87,1.83,1.89,1.74,10.93-.96,19.51-10.15,19.51-21.35v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st2" d="M26.75,25c-5.91,0-10.7,4.8-10.7,10.71v28.57c0,3.09.79,6,2.17,8.54,2.53,1.39,5.44,2.17,8.53,2.17h28.54c5.91,0,10.7-4.8,10.7-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.53-1.39-5.44-2.17-8.53-2.17h-28.54Z"/>%0A <path class="st3" d="M27.11,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M37.81,57.14c-1.04,0-2.09-.27-3.03-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.58-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.32-4.44,2.9-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.34-5.56-.99-.06-1.93.12-2.81.54-.89.43-1.95.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.75.3,8.57,4.26,8.68,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',X5='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7394)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23111111"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23111111"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23111111"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23111111"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23111111"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23111111"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23111111"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7394">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',J5=".ihabdevteam-core-scope .pass-card-bg{border-radius:inherit;inset:0;overflow:hidden;pointer-events:none;position:absolute}:where(.ihabdevteam-core-scope){--pass-card-symbol-opacity:1}.ihabdevteam-core-scope .pass-card-bg__symbol{background:var(--symbol-url) center /contain no-repeat;height:48px;-webkit-mask:var(--symbol-url) center /contain no-repeat;mask:var(--symbol-url) center /contain no-repeat;position:absolute;right:12px;top:12px;width:48px}";ee(J5);var Q5=".ihabdevteam-core-scope .pass-card-bg-two-circle{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1,.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{border-radius:50%;opacity:.75;opacity:var(--pass-card-symbol-opacity,.75);position:absolute}.ihabdevteam-core-scope .pass-card-bg-two-circle__c1{background:var(--color-main);height:340px;right:-150px;top:-140px;width:340px}.ihabdevteam-core-scope .pass-card-bg-two-circle__c3{background:var(--color-sub);bottom:-90px;height:220px;right:-50px;width:220px}.ihabdevteam-core-scope .pass-card-bg-two-circle__symbol{background:var(--color-darkWhite)}";ee(Q5);var Nh='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Fa={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Ll=new WeakMap;function e3(e){if(e)return Ll.get(e)}function ga(e,t){e&&(e.style.setProperty(Fa.text,t.text),e.style.setProperty(Fa.sub,t.sub),t.copyrightColor&&e.style.setProperty(Fa.copyright,t.copyrightColor),Ll.set(e,t))}function fa(e){e&&(e.style.removeProperty(Fa.text),e.style.removeProperty(Fa.sub),e.style.removeProperty(Fa.copyright),Ll.delete(e))}const Ml={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Pl(e={}){const t=lt(Ml,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-two-circle__c1"}),o.jsx("div",{className:"pass-card-bg-two-circle__c3"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${Nh}")`}})]})}const Dh="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464Z";var t3=".ihabdevteam-core-scope .pass-card-bg-sound-move{background:var(--color-pureWhite)}.ihabdevteam-core-scope .pass-card-bg-sound-move__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ee(t3);var gr='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65181)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="url(%23paint0_linear_2175_65181)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2175_65181" x1="29.6392" y1="29.6393" x2="75.2535" y2="75.2536" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2175_65181">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const a3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},o3=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Eh(e={}){const t=lt(a3,ga,fa),a="var(--color-main)",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[o.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:o3.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:Dh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}var r3=".ihabdevteam-core-scope .pass-card-bg-sound-move-v1{background:linear-gradient(135deg,var(--color-main),var(--color-sub))}.ihabdevteam-core-scope .pass-card-bg-sound-move-v1__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ee(r3);const n3={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},i3=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function s3(e={}){const t=lt(n3,ga,fa),a="#ffffff",r=270,n=170;return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[o.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:i3.map(({scale:i,opacity:s},c)=>o.jsx("g",{transform:`translate(${r} ${n}) scale(${i}) translate(-50 -50)`,opacity:s,children:o.jsx("path",{d:Dh,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${Nh}")`}})]})}var l3=".ihabdevteam-core-scope .pass-card-bg-talk{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk__shape--left{background:var(--color-main);border-radius:42px 42px 42px 4px;transform:translateX(-18px)}.ihabdevteam-core-scope .pass-card-bg-talk__shape--right{background:var(--color-sub);border-radius:50%;opacity:.7;transform:translateX(18px)}";ee(l3);const c3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function d3(e={}){const t=lt(c3,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}const u3={Logo_speechear_kr:{"":Bl,_white:q5,_textWhite:Y5,_black:U5},Logo_speechearManager_kr:{"":Nl,_white:K5,_textWhite:Z5,_black:X5}};function p3(e,t){if(e)return u3[e]?.[t??""]??void 0}const h3={speechear:Bl,manager:Nl},m3={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},jh=10;function b3(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const n=Math.floor(e/60);return n>0?t("passCard.remainingMinute",{n}):t("passCard.remainingSecond",{n:Math.floor(e)})}function g3(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),n=a==="\uC624\uD508\uD2B9\uAC00"||a===Ca.t("passCard.specialLabel");return r?o.jsx(d3,{}):n?o.jsx(s3,{}):o.jsx(Eh,{})}return o.jsx(Pl,{})}function Rl({product:e,showPrice:t=!1,plan:a,type:r,endDate:n,remainingSeconds:i,state:s="active",bg:c,bgOnly:d=!1,textColor:u,subColor:m,copyrightColor:h,logoSrc:p,label:g,price:f,originalPrice:b,discountLabel:v,onUse:y,onRefund:_,onDelete:x}){const{t:C}=me.useTranslation(),k=e?jl(e):void 0,w=r??k?.type??"speechear",S=a??k?.plan??"\uC774\uC6A9\uAD8C",j=g??k?.label,A=f??(t?k?.price:void 0),B=b??(t?k?.originalPrice:void 0),W=v??k?.discountLabel,M=l.useMemo(()=>{if(A)return null;const P=e?.durationDays??V5(e?.code);if(!P||P<=0)return null;const q=P*86400;let oe;if(i!=null)oe=i;else if((s==="active"||s==="expired")&&n){const de=new Date(n).getTime();if(Number.isNaN(de))return null;const I=new Date;I.setHours(0,0,0,0);const Z=new Date(de);Z.setHours(0,0,0,0);const J=Math.round((Z.getTime()-I.getTime())/864e5);oe=Math.max(0,J)*86400}else s==="expired"?oe=0:oe=q;const ge=Math.max(0,Math.min(100,Math.floor(Math.min(oe,q)/q*100)));return s==="pending"&&ge>=100?null:{percent:ge,remainingLabel:b3(oe,C)}},[A,s,n,i,e?.durationDays,e?.code,C]),T=l.useRef(null),[$,E]=l.useState({}),[H,te]=l.useState(null),Q=!!(y||_||x),ae=l.useRef(!1),N=l.useRef(void 0),[L,R]=l.useState(p);l.useLayoutEffect(()=>{R(p)},[p]),l.useLayoutEffect(()=>{const P=T.current;P&&(u!==void 0&&P.style.setProperty("--pass-card-text",u),m!==void 0&&P.style.setProperty("--pass-card-sub",m),h!==void 0&&P.style.setProperty("--pass-card-copyright",h))},[u,m,h]),l.useLayoutEffect(()=>{const P=T.current;if(!P)return;const q=e3(P);if(!p){const oe=m3[w],ge=s==="expired"?"_black":q?.logoColor??"",de=p3(oe,ge);R(de)}},[c,p,w,s]);const z=P=>{const q=T.current;if(!q)return null;const{left:oe,top:ge,width:de,height:I}=q.getBoundingClientRect(),Z=(P.clientX-oe)/de-.5;return{rotateX:-((P.clientY-ge)/I-.5)*jh,rotateY:Z*jh}},V=(P,q)=>{const oe=q*-.7,ge=P*.7+10,de=20+(Math.abs(P)+Math.abs(q))*.4;return`${oe}px ${ge}px ${de}px rgba(0, 0, 0, 0.18)`},X=l.useCallback(P=>{ae.current=!0,clearTimeout(N.current),N.current=setTimeout(()=>{ae.current=!1},200);const q=z(P);q&&E({transform:`perspective(800px) rotateX(${q.rotateX}deg) rotateY(${q.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:V(q.rotateX,q.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),F=l.useCallback(P=>{const q=z(P);if(!q)return;const oe=ae.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";E({transform:`perspective(800px) rotateX(${q.rotateX}deg) rotateY(${q.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:V(q.rotateX,q.rotateY),transition:oe})},[]),Y=l.useCallback(()=>{clearTimeout(N.current),ae.current=!1,E({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=l.useCallback(()=>te(null),[]),ne=l.useMemo(()=>{const P=S.replace("\uC774\uC6A9\uAD8C","").trim(),q=P.match(/^(.*?)(일|년)$/);return q?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"h0 pass-card__plan-number",children:q[1]}),o.jsx("span",{className:"h5b pass-card__plan-unit",children:q[2]==="\uB144"?C("passCard.unitYear","\uB144"):C("passCard.unitDay","\uC77C")})]}):o.jsx("span",{className:"h0",children:P})},[S,C]),ue=l.useMemo(()=>{const P=or(A);if(!P)return null;const q=P.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!q)return o.jsx("span",{className:"h1",children:P});const[,oe,ge,de]=q;return o.jsxs(o.Fragment,{children:[oe&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:oe}),o.jsx("span",{className:"h1 pass-card__price-amount",children:ge}),de.trim()&&o.jsx("span",{className:"h5 pass-card__price-symbol",children:de.trim()})]})},[A]),xe=l.useCallback(()=>{Q&&te(P=>{if(P)return null;const q=T.current?.getBoundingClientRect();if(!q)return null;const oe=50;return{left:q.left,right:q.right,width:q.width,height:q.height,x:q.x,y:q.y+oe,top:q.top+oe,bottom:q.bottom+oe}})},[Q]),ve=l.useCallback(P=>{Q&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),xe())},[Q,xe]),pe=[{items:[...y?[{label:C("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{y(),te(null)},closeOnSelect:!0}]:[],..._?[{label:C("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{_(),te(null)},closeOnSelect:!0}]:[],...x?[{label:C("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{x(),te(null)},closeOnSelect:!0}]:[]]}];return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card-frame",children:o.jsxs("div",{ref:T,className:`pass-card pass-card--${s}${Q?" pass-card--clickable":""}`,style:$,onMouseEnter:X,onMouseMove:F,onMouseLeave:Y,onClick:xe,onKeyDown:Q?ve:void 0,role:Q?"button":void 0,tabIndex:Q?0:void 0,children:[c??g3(w,S,j),!d&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pass-card__top",children:o.jsxs("div",{className:"pass-card__top-left",children:[o.jsx("img",{src:L??h3[w],className:"pass-card__logo",alt:w==="manager"?C("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):C("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),o.jsxs("div",{className:"pass-card__plan",children:[o.jsx("div",{children:ne}),o.jsx("span",{className:"h5b pass-card__plan-suffix",children:j?C("passCard.labeledPlan",{label:j}):C("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),A?o.jsxs("div",{className:"pass-card__price-area",children:[W&&o.jsx("span",{className:"pass-card__discount body-3",children:W}),o.jsxs("div",{className:"pass-card__price",children:[B&&o.jsx("span",{className:"pass-card__price-original body-3",children:or(B)}),ue]})]}):M?o.jsxs("div",{className:"pass-card__usage",children:[o.jsx("span",{className:"h5b pass-card__usage-remaining",children:M.remainingLabel}),o.jsxs("span",{className:"pass-card__usage-percent",children:[o.jsx("span",{className:"h1 pass-card__usage-value",children:M.percent}),o.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):o.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),H&&o.jsx(Sa,{anchorRect:H,onClose:O,ariaLabel:C("tooltip.menu","\uBA54\uB274"),children:o.jsx(br,{columns:pe,onClose:O,size:"small"})})]})}var f3=".ihabdevteam-core-scope .pass-card-bg-sound-line{background:linear-gradient(60deg,var(--color-pureWhite) 0,color-mix(in srgb,var(--color-sub) 15%,var(--color-pureWhite)) 100%)}.ihabdevteam-core-scope .pass-card-bg-sound-line__svg{height:100%;inset:0;pointer-events:none;position:absolute;width:100%}";ee(f3);const v3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function y3(e={}){const t=`passcard-sound-line-grad-${l.useId()}`,a=lt(v3,ga,fa);return o.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[o.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("defs",{children:o.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[o.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),o.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),o.jsx("g",{transform:"translate(25, 45)",children:o.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}var x3=".ihabdevteam-core-scope .pass-card-bg-talk-v1{align-items:center;background:var(--color-pureWhite);display:flex;justify-content:center}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape{height:76px;position:absolute;width:76px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--left{background:linear-gradient(70deg,var(--color-main),var(--color-sub));border-radius:999px;height:92px;transform:translateX(0) rotate(120deg);width:180px}.ihabdevteam-core-scope .pass-card-bg-talk-v1__shape--right{background:var(--color-sub);border-radius:50%;height:60px;opacity:1;transform:translate(38px,12px);width:60px}";ee(x3);const C3={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function _3(e={}){const t=lt(C3,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),o.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}function w3(e,t){if(e){if(t==="manager_pro")return o.jsx(_3,{});if(t==="manager_standard")return o.jsx(y3,{});if(t==="manager_lite")return o.jsx(Eh,{})}}function k3(e){const t=or(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,n,i]=a;return o.jsxs(o.Fragment,{children:[r&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),n,i.trim()&&o.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Lh(e){const{t}=me.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:n,onSelect:i,period:s="monthly",ownedCodes:c}=e||{},d=x=>!!x&&!!c?.includes(x),u=(n.tiers||[]).some(x=>/오픈\s*특가/.test(x.label??"")&&d(x.code)),m=x=>{const C=x.prices?x.prices[s]:x.price;return C?(n.tiers||[]).some(k=>!!k.badge&&k.originals?.[s]===C):!1},h=n.colorToken?`var(--color-${n.colorToken})`:"var(--color-gray)",p=t("payment.plan.freePrice","\uBB34\uB8CC"),g=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=x=>x.prices?x.prices[s]:x.price,b=(n.tiers||[]).length>0&&(n.tiers||[]).every(x=>{const C=f(x);return C==="\uBB34\uB8CC"||C===p||C==="0\uC6D0"}),v=(n.tiers||[]).length>0&&(n.tiers||[]).every(x=>{const C=f(x);return C==="\uBB38\uC758"||C===g}),y=n.group==="org",_=y?"manager":"speechear";return o.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[n.cardBadge&&o.jsx("div",{className:"payment-plan__card-badge",children:o.jsx(ht,{label:n.cardBadge,variant:"main",size:"medium",fill:"soft"})}),o.jsxs("div",{className:"payment-plan__title",children:[o.jsx("p",{className:"payment-plan__quote body-3b",style:{color:h},children:n.quote||"\xA0"}),o.jsx("h3",{className:"payment-plan__title-heading h1",children:n.tier??n.title}),o.jsx("p",{className:"payment-plan__subtitle body-3",children:n.subtitle})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(n.recommendedFor||[]).map((x,C)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(Fe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),x]},C))})]}),o.jsxs("div",{className:"payment-plan__box",children:[o.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),o.jsx("ul",{className:"payment-plan__feature-list",children:(n.features||[]).map((x,C)=>o.jsxs("li",{className:"payment-plan__feature-item body-3",children:[o.jsx(Fe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),x]},C))})]}),o.jsx("div",{className:"payment-plan__card-pricing",children:b?null:v?o.jsx(re,{className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>n.tiers?.[0]&&i?.({...n.tiers[0],productId:n.id,productTitle:n.title})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"payment-plan__pricing-list",children:(n.tiers||[]).map(x=>{const C=x.label||a,k=/오픈\s*특가/.test(C),w=k||x.openPromo===!0,S=C.replace(/^오픈\s*특가\s*/,"")||a,j=x.prices?x.prices[s]:x.price,A=x.badge?w?`${r}
|
|
838
838
|
${x.badge}`:x.badge:void 0;if(k&&d(x.code))return null;if(!x.badge&&!u)return m(x)?null:o.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${x.highlight?" payment-plan__pricing-row--highlight":""}`,children:[o.jsx("div",{className:"payment-plan__pricing-row-title",children:o.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:x.label})}),o.jsx("div",{className:"payment-plan__pricing-row-price",children:o.jsx("span",{className:"payment-plan__pricing-current h1",children:k3(j)})})]},x.id);const B=n.tier??(y?n.title:void 0),W=o.jsx(Rl,{showPrice:!0,product:{type:_,code:x.code,name:S,label:B,price:j,originalPrice:x.originals?.[s]??void 0,discountLabel:A},bg:w3(y,n.id)}),M=()=>i?.({...x,productId:n.id,productTitle:n.title,preview:W});return o.jsx("div",{className:"payment-plan__pricing-card",onClick:M,onKeyDown:i?T=>{T.target===T.currentTarget&&(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),M())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:W},x.id)})})})})]})}function Mh({variant:e="default"}){return o.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),o.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var S3=".ihabdevteam-core-scope .pass-card-bg-ihab{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol{bottom:-24px;height:140px;-o-object-fit:contain;object-fit:contain;opacity:.06;position:absolute;right:-24px;width:140px}.ihabdevteam-core-scope .pass-card-bg-ihab__symbol-top{transform:translate(-48px) rotate(-90deg);transform-origin:top right;width:126.72px}";ee(S3);var $l='data:image/svg+xml,<svg width="264" height="100" viewBox="0 0 264 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2079_3030)">%0A<path d="M60.9019 24.7464C54.4446 18.2821 45.5257 14.2857 35.6757 14.2857C25.8256 14.2857 23.2106 24.5964 16.7569 31.0607C10.2996 37.5214 0 40.1857 0 50C0 59.8143 3.99211 68.7893 10.4494 75.2536C16.9067 81.7178 25.8256 85.7143 35.6757 85.7143C45.5257 85.7143 54.4446 81.7178 60.9019 75.2536C67.3592 68.7893 71.3513 59.8607 71.3513 50C71.3513 40.1393 67.3592 31.2107 60.9019 24.7464ZM48.2906 62.6286C45.0619 65.8607 40.6025 67.8571 35.6757 67.8571C30.7489 67.8571 26.2894 65.8571 23.0608 62.6286C19.8321 59.3964 17.8378 54.9321 17.8378 50C17.8378 45.0678 19.8357 40.6036 23.0608 37.3714C26.2894 34.1393 30.7489 32.1428 35.6757 32.1428C40.6025 32.1428 45.0619 34.1428 48.2906 37.3714C51.5192 40.6036 53.5135 45.0678 53.5135 50C53.5135 54.9321 51.5157 59.3964 48.2906 62.6286Z" fill="url(%23paint0_linear_2079_3030)"/>%0A<path d="M106.735 74.8322H93.6274V24.8322H106.735V74.8322Z" fill="%23111111"/>%0A<path d="M113.495 24.8322H126.602V44.5143H145.022V24.8322H158.197V74.8322H145.022V55.15H126.602V74.8322H113.495V24.8322Z" fill="%23111111"/>%0A<path d="M163.027 74.8322L179.652 24.8322H197.519L214.076 74.8322H199.934L196.969 65.025H180.205L177.241 74.8322H163.031H163.027ZM193.933 55.0786L188.76 38.2964H188.346L183.241 55.0786H193.933Z" fill="%23111111"/>%0A<path d="M218.906 24.8322H240.29C251.674 24.8322 257.675 29.7357 257.675 37.4C257.675 42.925 253.743 47.1393 248.085 48.3107V48.7929C254.364 49 259.605 53.6286 259.605 60.7393C259.605 68.8893 252.983 74.8286 242.081 74.8286H218.902V24.8322H218.906ZM244.157 40.1643C244.157 36.9857 241.674 35.1929 238.085 35.1929H232.013V45.1393H237.878C241.535 45.1393 244.157 43.3429 244.157 40.1679V40.1643ZM245.741 59.0857C245.741 55.425 243.119 53.3536 238.913 53.3536H232.013V64.2643H238.706C243.397 64.2643 245.741 62.4679 245.741 59.0857Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2079_3030" x1="15.337" y1="29.6393" x2="60.9512" y2="75.2042" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2079_3030">%0A<rect width="264" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Il={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Ph(){const e=lt(Il,ga,fa);return o.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${$l}")`}})})}var A3=".ihabdevteam-core-scope .pass-card-bg-left-color-grid{background:var(--color-white)}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__bar{background:linear-gradient(120deg,var(--color-main),var(--color-sub));border-radius:16px 0 0 16px;height:100%;left:0;position:absolute;top:0;width:76%}.ihabdevteam-core-scope .pass-card-bg-left-color-grid__grid{--grid-line:rgba(73,156,223,.06);background-image:linear-gradient(rgba(73,156,223,.06) 1px,transparent 0),linear-gradient(90deg,rgba(73,156,223,.06) 1px,transparent 0);background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);background-size:24px 24px;inset:0;position:absolute}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__grid{--grid-line:transparent}.ihabdevteam-core-scope .pass-card--expired .pass-card-bg-left-color-grid__bar{background:var(--pass-card-expired-shape)}";ee(A3);const zl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Rh(e={}){const t=lt(zl,ga,fa);return o.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[o.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),o.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),o.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${gr}")`}})]})}var T3=".ihabdevteam-core-scope .shortcut-badge{align-items:center;display:inline-flex;gap:4px;pointer-events:none;z-index:10}.ihabdevteam-core-scope .shortcut-badge--top-left{left:0;position:absolute;top:0;transform:translate(-25%,-25%) scale(1);transform:translate(-25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--top-right{position:absolute;right:0;top:0;transform:translate(25%,-25%) scale(1);transform:translate(25%,-25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-left{bottom:0;left:0;position:absolute;transform:translate(-25%,25%) scale(1);transform:translate(-25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge--bottom-right{bottom:0;position:absolute;right:0;transform:translate(25%,25%) scale(1);transform:translate(25%,25%) scale(var(--shortcut-badge-scale,1))}.ihabdevteam-core-scope .shortcut-badge__group{align-items:center;display:inline-flex;gap:4px}.ihabdevteam-core-scope .shortcut-badge__plus{color:var(--color-lightGray);font-size:11px;line-height:1}.ihabdevteam-core-scope .shortcut-badge__key{align-items:center;background:var(--color-lightBlack);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-white);display:inline-flex;font-family:inherit;font-size:11px;font-weight:400;justify-content:center;line-height:1;min-height:24px;min-width:24px;padding:0 5px;white-space:nowrap}";ee(T3);function Ol({keys:e,anchor:t="top-right",scale:a,className:r=""}){const n=Array.isArray(e)?e:[e];return o.jsx("span",{className:_e("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:n.map((i,s)=>o.jsxs("span",{className:"shortcut-badge__group",children:[s>0&&o.jsx("span",{className:"shortcut-badge__plus",children:"+"}),o.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${s}`))})}var B3=".ihabdevteam-core-scope .sound-compass{--scb-idle-bg:var(--color-deepWhite);--scb-idle-border:var(--color-whiteLine);--scb-idle-fg:var(--color-lightGray);--scb-active-bg:var(--color-main);--scb-active-border:var(--color-main);--scb-active-fg:#fff;--scb-played-bg:var(--color-sub);--scb-played-border:var(--color-sub);--scb-played-fg:#fff;--scb-wrong-bg:#ef4444;--scb-wrong-border:#ef4444;--scb-wrong-fg:#fff;--scb-idle-hover-bg:var(--color-whiteLine);--scb-idle-hover-border:var(--color-lightGray);--scb-idle-hover-fg:var(--scb-idle-fg);--scb-focus-ring:var(--color-main);--scc-bg:var(--color-white);--scc-border:var(--color-whiteLine);--scc-fg:var(--color-lightGray);--scc-hover-bg:var(--color-deepWhite);--scc-hover-border:var(--color-lightGray);--scc-hover-fg:var(--color-darkGray);--scc-disabled-bg:var(--color-deepWhite);--scc-disabled-border:var(--color-whiteLine);--scc-disabled-fg:var(--color-whiteLine);align-items:center;display:flex;flex-direction:column;width:100%}.ihabdevteam-core-scope .sound-compass__svg{left:0;overflow:visible;position:absolute;top:0}.ihabdevteam-core-scope .sound-compass__speaker-btn{all:unset;align-items:center;border-radius:50%;border-style:solid;border-width:1px;box-sizing:border-box;display:flex;flex-direction:column;gap:1px;justify-content:center;position:relative;transition:background-color .15s,border-color .15s,color .15s;z-index:1}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle{background:var(--scb-idle-bg);border-color:var(--scb-idle-border);color:var(--scb-idle-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--active{background:var(--scb-active-bg);border-color:var(--scb-active-border);color:var(--scb-active-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--correct,.ihabdevteam-core-scope .sound-compass__speaker-btn--played{background:var(--scb-played-bg);border-color:var(--scb-played-border);color:var(--scb-played-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn--wrong{background:var(--scb-wrong-bg);border-color:var(--scb-wrong-border);color:var(--scb-wrong-fg)}.ihabdevteam-core-scope .sound-compass__speaker-number{color:inherit;font-weight:700;line-height:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .sound-compass__compass-wrap{flex-shrink:0;margin-bottom:24px;overflow:visible;position:relative}.ihabdevteam-core-scope .sound-compass__center{align-items:center;background:var(--scc-bg);border:1px solid var(--scc-border);border-radius:50%;color:var(--scc-fg);display:flex;justify-content:center;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}@keyframes sound-compass-pulse{0%{opacity:0;transform:scale(.95)}8%{opacity:.45;transform:scale(1.05)}to{opacity:0;transform:scale(2.8);transform:scale(var(--sc-pulse-scale,2.8))}}.ihabdevteam-core-scope .sound-compass__center--button{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;font:inherit;padding:0;pointer-events:auto;transition:background-color .15s,border-color .15s,color .15s}.ihabdevteam-core-scope .sound-compass__center--button:hover{background:var(--scc-hover-bg);border-color:var(--scc-hover-border);color:var(--scc-hover-fg)}.ihabdevteam-core-scope .sound-compass__center--button:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__center--disabled{background:var(--scc-disabled-bg);border-color:var(--scc-disabled-border);color:var(--scc-disabled-fg);cursor:default;pointer-events:none}.ihabdevteam-core-scope .sound-compass__pulse--center{z-index:0}.ihabdevteam-core-scope .sound-compass__pulse{animation:sound-compass-pulse 1s cubic-bezier(.33,1,.68,1) infinite;background:var(--sc-pulse-color,var(--scb-active-bg));border-radius:50%;height:40px;left:0;pointer-events:none;position:absolute;top:0;width:40px}.ihabdevteam-core-scope .sound-compass__pulse--idle{background:var(--sc-pulse-color,var(--scb-idle-bg))}.ihabdevteam-core-scope .sound-compass__pulse--active{background:var(--sc-pulse-color,var(--scb-active-bg))}.ihabdevteam-core-scope .sound-compass__pulse--correct,.ihabdevteam-core-scope .sound-compass__pulse--played{background:var(--sc-pulse-color,var(--scb-played-bg))}.ihabdevteam-core-scope .sound-compass__pulse--wrong{background:var(--sc-pulse-color,var(--scb-wrong-bg))}.ihabdevteam-core-scope .sound-compass__pulse--once{animation-duration:1s;animation-duration:var(--sc-pulse-duration-once,1s);animation-iteration-count:1}.ihabdevteam-core-scope .sound-compass__speaker-btn:hover{box-shadow:0 0 0 4px color-mix(in srgb,var(--scb-focus-ring) 14%,transparent)}.ihabdevteam-core-scope .sound-compass__speaker-btn--idle:hover{background:var(--scb-idle-hover-bg);border-color:var(--scb-idle-hover-border);color:var(--scb-idle-hover-fg)}.ihabdevteam-core-scope .sound-compass__speaker-btn:focus-visible{outline:2px solid var(--scb-focus-ring);outline-offset:2px}.ihabdevteam-core-scope .sound-compass__speaker-shortcut{pointer-events:none;z-index:2}.ihabdevteam-core-scope .sound-compass__speaker-pos{position:absolute}";ee(B3);const fr=(e,t,a)=>e+(t-e)*a;function $h({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:n,selectedId:i=null,answerId:s=null,showFeedback:c=!1,pulseSelected:d=!1,pulseSelectedDuration:u,pulseScale:m,clickable:h=!1,onSelectSpeaker:p,buttonSize:g=40,showIcon:f=!0,onCenterClick:b,centerLabel:v,centerDisabled:y=!1,centerAttention:_=!1,shortcutAnchor:x="top-right",shortcutScale:C,scaleShortcut:k=!1}){const w=Math.max(0,Math.min(1,a)),S=t/2,j=110/300,A=.18,B=P=>t*(j+(P-1)*A),W=P=>{const q=B(P.row??1),oe=P.angleDeg*Math.PI/180;return{x:S+q*Math.cos(oe),y:S+q*Math.sin(oe)}},M=Math.max(...e.map(P=>P.row??1),1),T=t*.08,$=t*.1,E=t*.24,H=t-2*T,te=t-$-E,Q=t-E/2,ae=l.useMemo(()=>[...new Set(e.map(P=>P.deg))].sort((P,q)=>P-q),[e]),N=ae.length,L=Math.max(68,N>1?H/(N-1):0),R=l.useMemo(()=>new Map(ae.map((P,q)=>[P,q])),[ae]),z=P=>{const q=R.get(P.deg)??0,oe=S+(q-(N-1)/2)*L,ge=M>1?Math.min(68,te/(M-1)):0,de=ge*(M-1),I=$+(te-de)/2,Z=M===1?$+te*.4:I+(M-(P.row??1))*ge;return{x:oe,y:Z}},V=P=>{const q=W(P),oe=z(P);return{x:fr(q.x,oe.x,w),y:fr(q.y,oe.y,w)}},X={x:S,y:fr(S,Q,w)},F=Math.round(g*1.2),Y=Math.round(Math.max(16,Math.min(80,g*.7))),O=[],ne=new Map;for(const P of e){const q=P.row??1;ne.has(q)||ne.set(q,[]),ne.get(q).push(P)}for(const[P,q]of ne.entries()){if(q.length<2)continue;const oe=[...q].sort((Te,Ie)=>Te.deg-Ie.deg),ge=oe.map(Te=>V(Te)),de=oe.map(Te=>Te.deg),I=de[de.length-1]-de[0],Z=I/(de.length-1),J=360-I,fe=oe.length>=3&&Z>0&&J<=Z*1.5,De=Math.round(B(P)*1e3)/1e3,$e=(Te,Ie,He,be)=>{const Ke=(Ie.angleDeg-Te.angleDeg+540)%360-180;if(Ke===0)return`L ${be.x} ${be.y}`;if(w===0)return`A ${De} ${De} 0 0 ${Ke>0?1:0} ${be.x} ${be.y}`;const Ve=(Te.angleDeg+Ke/2)*Math.PI/180,Re={x:S+De*Math.cos(Ve),y:S+De*Math.sin(Ve)},qe={x:(He.x+be.x)/2,y:(He.y+be.y)/2},vt={x:fr(Re.x,qe.x,w),y:fr(Re.y,qe.y,w)},Ue={x:2*vt.x-qe.x,y:2*vt.y-qe.y};return`Q ${Ue.x} ${Ue.y} ${be.x} ${be.y}`},Le=fe?[...oe,oe[0]]:oe,Ee=fe?[...ge,ge[0]]:ge;let je=`M ${Ee[0].x} ${Ee[0].y}`;for(let Te=1;Te<Ee.length;Te++)je+=" "+$e(Le[Te-1],Le[Te],Ee[Te-1],Ee[Te]);O.push({key:`arc-${P}`,d:je})}const ue=l.useMemo(()=>new Set(n??[]),[n]),xe=P=>{if(r===P.id)return"active";if(c){if(P.id===s)return"correct";if(P.id===i&&i!==s)return"wrong"}return ue.has(P.id)?"played":"idle"},ve=P=>r===P.id?"loop":c?P.id===s?"loop":null:d&&P.id===i?"once":null,pe=(P,q)=>{switch(P){case"played":case"correct":return o.jsx(ed,{size:q});case"wrong":return o.jsx(dd,{size:q});default:return o.jsx(cd,{size:q})}};return o.jsx("div",{className:"sound-compass",children:o.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[o.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[w===0&&e.map(P=>{const{x:q,y:oe}=V(P);return o.jsx("line",{x1:X.x,y1:X.y,x2:q,y2:oe,stroke:"#dde3ec",strokeWidth:"1"},P.id)}),O.map(P=>o.jsx("path",{d:P.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},P.key))]}),_&&!y&&o.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:F,height:F,left:X.x-F/2,top:X.y-F/2}}),b?o.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${y?" sound-compass__center--disabled":""}`,style:{width:F,height:F,left:X.x,top:X.y},"aria-label":v,"aria-disabled":y||void 0,tabIndex:y?-1:0,onClick:y?void 0:b,children:o.jsx(Hn,{size:Y,color:"currentColor",strokeWidth:1.5})}):o.jsx("div",{className:"sound-compass__center",style:{width:F,height:F,left:X.x,top:X.y},children:o.jsx(Hn,{size:Y,color:"currentColor",strokeWidth:1.5})}),e.map((P,q)=>{const{x:oe,y:ge}=V(P),de=xe(P),I=ve(P),Z={...C!==void 0||k?{"--shortcut-badge-scale":String(C??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:h?"auto":"none",cursor:h?"pointer":"default",zIndex:de!=="idle"?10:1},J=g,fe=Math.round(Math.max(10,Math.min(56,J*.38))),De=Math.round(Math.max(7,Math.min(18,J*.2))),$e=Math.round(Math.max(10,Math.min(56,J*.4))),Le=f==="answered"&&(de==="played"||de==="correct"||de==="wrong"),Ee=f===!0||Le,je=!Le;return o.jsxs("div",{className:"sound-compass__speaker-pos",style:{...Z,left:oe-J/2,top:ge-J/2},children:[I&&o.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${de}`+(I==="once"?" sound-compass__pulse--once":""),style:{width:J,height:J,...I==="once"&&u!==void 0?{"--sc-pulse-duration-once":`${u}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),o.jsxs("button",{type:"button",tabIndex:h?0:-1,"aria-disabled":h?void 0:!0,onClick:h?()=>p?.(P.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${de}`,style:{width:J,height:J},"aria-label":P.label,children:[Ee&&pe(de,fe),je&&o.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:f===!0?De:$e},children:q+1})]}),P.shortcut&&o.jsx(Ol,{keys:P.shortcut,anchor:x,className:"sound-compass__speaker-shortcut"})]},P.id)})]})})}function Ih({children:e,position:t="top-left",size:a=24,className:r=""}){return o.jsx("span",{className:_e("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}var N3=".ihabdevteam-core-scope .divider--horizontal{align-items:center;border:none;border-top:1px solid var(--color-whiteLine);display:flex;width:100%}.ihabdevteam-core-scope .divider--vertical{border:none;border-left:1px solid var(--color-whiteLine);display:inline-block;height:1em;vertical-align:middle;width:1px}.ihabdevteam-core-scope .divider--labeled{border-top:none;gap:var(--spacing-s)}.ihabdevteam-core-scope .divider__line{background:var(--color-whiteLine);flex:1 1 auto;height:1px}.ihabdevteam-core-scope .divider__label{color:var(--color-gray);flex:0 0 auto;white-space:nowrap}";ee(N3);function zh({orientation:e="horizontal",label:t,className:a=""}){const r=_e("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?o.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?o.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[o.jsx("span",{className:"divider__line"}),o.jsx("span",{className:"divider__label caption-1",children:t}),o.jsx("span",{className:"divider__line"})]}):o.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}var D3='.ihabdevteam-core-scope .radio{align-items:center;cursor:pointer;display:inline-flex;gap:var(--spacing-xs);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .radio input{height:0;opacity:0;position:absolute;width:0}.ihabdevteam-core-scope .radio__dot{background:var(--color-pureWhite);border:1.5px solid var(--color-whiteLine);border-radius:50%;display:inline-block;flex-shrink:0;height:20px;position:relative;transition:border-color .15s,background .15s;width:20px}.ihabdevteam-core-scope .radio__dot:before{background:var(--color-pureWhite);border-radius:50%;content:"";inset:4px;position:absolute;transform:scale(0);transition:transform .15s}.ihabdevteam-core-scope .radio input:checked+.radio__dot{background:var(--color-main);border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:checked+.radio__dot:before{transform:scale(1)}.ihabdevteam-core-scope .radio:not(.radio--disabled):hover .radio__dot{border-color:var(--color-main)}.ihabdevteam-core-scope .radio input:focus-visible+.radio__dot{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .radio__label{color:var(--color-black)}.ihabdevteam-core-scope .radio--disabled{cursor:not-allowed;opacity:.45}';ee(D3);function Fl({checked:e,onChange:t,name:a,value:r,disabled:n=!1,label:i,className:s=""}){const c=l.useId();return o.jsxs("label",{className:`radio${n?" radio--disabled":""} ${s}`.trim(),htmlFor:c,children:[o.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:n,onChange:d=>t?.(d.target.checked)}),o.jsx("span",{className:"radio__dot"}),i&&o.jsx("span",{className:"radio__label body-2",children:i})]})}var E3=".ihabdevteam-core-scope .radio-group{display:flex}.ihabdevteam-core-scope .radio-group--vertical{flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .radio-group--horizontal{flex-direction:row;flex-wrap:wrap;gap:var(--spacing-l)}";ee(E3);function Oh({options:e,value:t,onChange:a,name:r,disabled:n=!1,direction:i="vertical",className:s=""}){const c=l.useId(),d=r??`radio-group-${c}`;return o.jsx("div",{className:`radio-group radio-group--${i} ${s}`.trim(),role:"radiogroup",children:e.map(u=>o.jsx(Fl,{name:d,value:u.value,checked:t===u.value,disabled:n||u.disabled,label:u.label,onChange:m=>{m&&a?.(u.value)}},u.value))})}var j3=".ihabdevteam-core-scope .alert{align-items:flex-start;background:color-mix(in srgb,var(--alert-color) 10%,transparent);border:1px solid color-mix(in srgb,var(--alert-color) 25%,transparent);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);padding:var(--spacing-m)}.ihabdevteam-core-scope .alert__icon{align-items:center;color:var(--alert-color);display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .alert__body{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0}.ihabdevteam-core-scope .alert__header{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .alert__message--indented{margin-left:calc(20px + var(--spacing-xs))}.ihabdevteam-core-scope .alert__title{color:var(--color-black)}.ihabdevteam-core-scope .alert__message{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert__dismiss{align-items:center;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;font-size:18px;height:20px;justify-content:center;line-height:1;padding:0;width:20px}.ihabdevteam-core-scope .alert__dismiss:hover{color:var(--color-darkGray)}.ihabdevteam-core-scope .alert--info{--alert-color:var(--color-main)}.ihabdevteam-core-scope .alert--success{--alert-color:var(--color-success)}.ihabdevteam-core-scope .alert--warning{--alert-color:var(--color-warn)}.ihabdevteam-core-scope .alert--danger{--alert-color:var(--color-error)}";ee(j3);const L3={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Fh({tone:e="info",title:t,message:a,children:r,dismissible:n=!1,onDismiss:i,className:s=""}){const{t:c}=me.useTranslation(),[d,u]=l.useState(!1),m=l.useCallback(()=>{u(!0),i?.()},[i]);if(d)return null;const h=_e("alert",`alert--${e}`,s),p=!!t,g=!!(a||r);return o.jsxs("div",{className:h,role:"alert",children:[o.jsxs("div",{className:"alert__body",children:[o.jsxs("div",{className:"alert__header",children:[o.jsx(Fe,{icon:L3[e],size:20,className:"alert__icon"}),p&&o.jsx("span",{className:"alert__title body-2",children:t}),!p&&g&&o.jsx("div",{className:"alert__message body-3",children:a??r})]}),p&&g&&o.jsx("div",{className:"alert__message alert__message--indented body-3",children:a??r})]}),n&&o.jsx("button",{type:"button",className:"alert__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}var M3=".ihabdevteam-core-scope .search-summary{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-card);box-sizing:border-box;color:var(--color-gray);display:inline-flex;gap:var(--spacing-xs);max-width:100%;padding:30px 20px;text-align:left}.ihabdevteam-core-scope .search-summary__icon{color:currentColor;display:inline-flex;flex-shrink:0}.ihabdevteam-core-scope .search-summary__text{min-width:0;overflow-wrap:anywhere;word-break:keep-all}.ihabdevteam-core-scope .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--ready{background:var(--color-white);color:var(--color-deepGray)}.ihabdevteam-core-scope .search-summary--ready .search-summary__em{color:var(--color-main)}.ihabdevteam-core-scope .search-summary--guide{background:var(--color-deepWhite);color:var(--color-gray)}.ihabdevteam-core-scope .search-summary--error{background:var(--color-white);color:var(--color-error)}.ihabdevteam-core-scope .search-summary--error .search-summary__em{color:var(--color-error)}";ee(M3);const P3={ready:"search",guide:"info",error:"circle-alert"};function R3(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let n=0,i=0;for(const s of a){const c=e.indexOf(s,n);c<0||(c>n&&r.push(e.slice(n,c)),r.push(o.jsx("strong",{className:"search-summary__em body-2",children:s},i++)),n=c+s.length)}return n<e.length&&r.push(e.slice(n)),r}function Wh({status:e="guide",label:t,children:a,emphasis:r,icon:n,className:i=""}){const s=n===!1?null:n??P3[e],c=_e("search-summary",`search-summary--${e}`,i),d=t??a,u=typeof d=="string"&&r&&r.length>0?R3(d,r):d;return o.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[s!=null&&o.jsx(Fe,{icon:s,size:18,className:"search-summary__icon"}),o.jsx("span",{className:"search-summary__text body-2",children:u})]})}function So({title:e,items:t}){const{t:a}=me.useTranslation(),{anchorRect:r,openAt:n,close:i}=ko();return o.jsxs(o.Fragment,{children:[o.jsx(re,{size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:s=>n(s.currentTarget),onPointerLeave:i,onFocus:s=>n(s.currentTarget),onBlur:i}),r&&o.jsx(to,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}var $3=".ihabdevteam-core-scope .tabs{display:flex;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .tabs__list{border-bottom:1px solid var(--color-whiteLine);display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tabs__tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--color-gray);cursor:pointer;padding:0 var(--spacing-xs);transition:color .15s,border-color .15s;white-space:nowrap}.ihabdevteam-core-scope .tabs__list--32 .tabs__tab{height:32px}.ihabdevteam-core-scope .tabs__list--40 .tabs__tab{height:40px}.ihabdevteam-core-scope .tabs__list--48 .tabs__tab{height:48px}.ihabdevteam-core-scope .tabs__tab:hover:not(:disabled){color:var(--color-darkGray)}.ihabdevteam-core-scope .tabs__tab:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .tabs__tab--active{border-bottom-color:var(--color-main);color:var(--color-main)}.ihabdevteam-core-scope .tabs__tab:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .tabs__panel{outline:none}.ihabdevteam-core-scope .tabs__panel:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}";ee($3);function Hh({items:e=[],value:t,onChange:a,className:r="",size:n=40}){const i=l.useId(),{t:s}=me.useTranslation(),c=l.useRef(null),d=t??e[0]?.key,u=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),m=(g,f=u())=>{if(f.length===0)return;const b=(g%f.length+f.length)%f.length;f[b]?.focus(),f[b]?.click()},h=g=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(g.key))return;g.preventDefault();const f=u(),b=f.indexOf(g.currentTarget);g.key==="ArrowRight"||g.key==="ArrowDown"?m(b+1,f):g.key==="ArrowLeft"||g.key==="ArrowUp"?m(b-1,f):g.key==="Home"?m(0,f):m(f.length-1,f)},p=e.find(g=>g.key===d);return o.jsxs("div",{className:`tabs ${r}`.trim(),children:[o.jsx("div",{ref:c,className:`tabs__list tabs__list--${n}`,role:"tablist","aria-label":s("tabs.ariaLabel","\uD0ED"),children:e.map(g=>o.jsx("button",{id:`tabs__tab-${i}-${g.key}`,type:"button",role:"tab","aria-selected":g.key===d,"aria-controls":`tabs__panel-${i}-${g.key}`,disabled:g.disabled,tabIndex:g.key===d?0:-1,className:`tabs__tab body-2${g.key===d?" tabs__tab--active":""}`,onClick:()=>a?.(g.key),onKeyDown:h,children:g.label},g.key))}),p&&o.jsx("div",{id:`tabs__panel-${i}-${p.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${p.key}`,tabIndex:0,className:"tabs__panel",children:p.panel},p.key)]})}var I3=".ihabdevteam-core-scope .avatar{align-items:center;background:var(--color-lightGray-a10);color:var(--color-gray);display:inline-flex;flex-shrink:0;height:var(--avatar-size);justify-content:center;overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--avatar-size)}.ihabdevteam-core-scope .avatar--circle{border-radius:50%}.ihabdevteam-core-scope .avatar--rounded-square{border-radius:var(--radius-card)}.ihabdevteam-core-scope .avatar--xs{--avatar-size:24px}.ihabdevteam-core-scope .avatar--sm{--avatar-size:32px}.ihabdevteam-core-scope .avatar--md{--avatar-size:40px}.ihabdevteam-core-scope .avatar--lg{--avatar-size:56px}.ihabdevteam-core-scope .avatar--xl{--avatar-size:80px}.ihabdevteam-core-scope .avatar__image{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .avatar__initials{font-size:calc(var(--avatar-size)*.4);font-weight:600;line-height:1}.ihabdevteam-core-scope .avatar__icon{align-items:center;display:inline-flex;justify-content:center}";ee(I3);const z3={xs:12,sm:16,md:20,lg:28,xl:36};function O3(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function Vh({src:e,name:t,size:a="md",shape:r="circle",className:n=""}){const{t:i}=me.useTranslation(),[s,c]=l.useState(!1),d=t?O3(t):"",u=!!e&&!s,m=!u&&!!d,h=t||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return o.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${n}`.trim(),role:"img","aria-label":h,children:[u&&o.jsx("img",{className:"avatar__image",src:e,alt:h,onError:()=>c(!0)}),!u&&m&&o.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!u&&!m&&o.jsx(Fe,{icon:"user-round",size:z3[a],className:"avatar__icon"})]})}var F3=".ihabdevteam-core-scope .file-upload{display:flex;flex-direction:column;gap:var(--spacing-s)}.ihabdevteam-core-scope .file-upload__dropzone{align-items:center;background:var(--color-deepWhite);border:1px dashed var(--color-whiteLine);border-radius:var(--radius-card);cursor:pointer;display:flex;flex-direction:column;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-xl);position:relative;transition:border-color .15s,background .15s}.ihabdevteam-core-scope .file-upload__dropzone:hover:not(.file-upload__dropzone--disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .file-upload__dropzone--dragging{background:var(--color-main-a10);border-color:var(--color-main)}.ihabdevteam-core-scope .file-upload__dropzone--disabled{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .file-upload__icon{color:var(--color-gray)}.ihabdevteam-core-scope .file-upload__prompt{color:var(--color-gray);text-align:center}.ihabdevteam-core-scope .file-upload__browse-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--color-pureWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);color:var(--color-main);cursor:pointer;padding:var(--spacing-xs) var(--spacing-m)}.ihabdevteam-core-scope .file-upload__browse-button:disabled{color:var(--color-disabled);cursor:not-allowed}.ihabdevteam-core-scope .file-upload__input{height:1px;opacity:0;overflow:hidden;pointer-events:none;position:absolute;width:1px}.ihabdevteam-core-scope .file-upload__list{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .file-upload__list-item{align-items:center;background:var(--color-deepWhite);border-radius:var(--radius-sm);display:flex;gap:var(--spacing-s);justify-content:space-between;padding:var(--spacing-xs) var(--spacing-s)}.ihabdevteam-core-scope .file-upload__file-name{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .file-upload__remove-button{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center}.ihabdevteam-core-scope .file-upload__remove-button:hover{color:var(--color-error)}";ee(F3);function W3(e,t){if(!t)return!0;const a=t.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),n=e.type.toLowerCase();return a.some(i=>{const s=i.toLowerCase();return s.startsWith(".")?r.endsWith(s):s.endsWith("/*")?n.startsWith(s.slice(0,-1)):n===s})}function Gh({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:n=!0,files:i,onRemove:s,className:c=""}){const{t:d}=me.useTranslation(),u=l.useRef(null),[m,h]=l.useState(!1),[p,g]=l.useState([]),f=i??p,b=w=>{if(!w||w.length===0)return;const S=Array.from(w).filter(A=>W3(A,t));if(S.length===0)return;const j=a?S:S.slice(0,1);if(i===void 0){const A=a?[...f,...j]:j;g(A),e?.(A)}else e?.(j)},v=w=>{w.preventDefault(),!r&&h(!0)},y=w=>{w.preventDefault(),h(!1)},_=w=>{w.preventDefault(),h(!1),!r&&b(w.dataTransfer.files)},x=w=>{b(w.target.files),w.target.value=""},C=()=>{r||u.current?.click()},k=w=>{if(s){s(w);return}if(i===void 0){const S=f.filter((j,A)=>A!==w);g(S),e?.(S)}};return o.jsxs("div",{className:`file-upload ${c}`.trim(),children:[o.jsxs("div",{className:_e("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:C,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),C())},onDragOver:v,onDragLeave:y,onDrop:_,children:[o.jsx(Fe,{icon:"upload",size:24,className:"file-upload__icon"}),o.jsx("span",{className:"file-upload__prompt body-2",children:d("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),o.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:w=>{w.stopPropagation(),C()},children:d("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),o.jsx("input",{ref:u,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:x,tabIndex:-1})]}),n&&f.length>0&&o.jsx("ul",{className:"file-upload__list",children:f.map((w,S)=>o.jsxs("li",{className:"file-upload__list-item body-3",children:[o.jsx("span",{className:"file-upload__file-name body-3",children:w.name}),o.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":d("fileUpload.removeAriaLabel",{name:w.name}),onClick:()=>k(S),children:o.jsx(Fe,{icon:"x",size:14})})]},`${w.name}-${S}`))})]})}var H3=".ihabdevteam-core-scope .breadcrumb{align-items:center;display:inline-flex}.ihabdevteam-core-scope .breadcrumb__list{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .breadcrumb__item{align-items:center;display:inline-flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .breadcrumb__link{align-items:center;background:none;border:none;color:var(--color-gray);cursor:pointer;display:inline-flex;justify-content:center;margin:0;min-height:24px;min-width:24px;padding:0}.ihabdevteam-core-scope .breadcrumb__link:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .breadcrumb__link:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .breadcrumb__current{color:var(--color-darkGray)}.ihabdevteam-core-scope .breadcrumb__separator{align-items:center;color:var(--color-disabled);display:inline-flex;flex-shrink:0}";ee(H3);function qh({items:e,className:t=""}){return o.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":"breadcrumb",children:o.jsx("ol",{className:"breadcrumb__list",children:e.map((a,r)=>{const n=r===e.length-1;return o.jsxs("li",{className:"breadcrumb__item",children:[n?o.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:a.label}):o.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:a.onClick,children:a.label}),!n&&o.jsx(Fe,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},r)})})})}var V3=".ihabdevteam-core-scope .rating{--rating-color:var(--color-warn);--rating-empty-color:var(--color-whiteLine);align-items:center;display:inline-flex;gap:2px}.ihabdevteam-core-scope .rating__item{align-items:center;background:none;border:none;display:inline-flex;justify-content:center;line-height:0;margin:0;padding:0}.ihabdevteam-core-scope .rating__item--interactive{cursor:pointer;min-height:24px;min-width:24px}.ihabdevteam-core-scope .rating__item--interactive:focus-visible{border-radius:var(--radius-xs);outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .rating--readOnly .rating__item{cursor:default}.ihabdevteam-core-scope .rating__star-wrap{display:inline-flex;line-height:0;position:relative}.ihabdevteam-core-scope .rating__star--empty{color:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star--empty svg{fill:var(--rating-empty-color)}.ihabdevteam-core-scope .rating__star-fill{display:inline-flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap;width:100%}.ihabdevteam-core-scope .rating__star-fill--half{width:50%}.ihabdevteam-core-scope .rating__star--filled{color:var(--rating-color)}.ihabdevteam-core-scope .rating__star--filled svg{fill:var(--rating-color)}";ee(V3);const G3={small:14,medium:20,large:28};function Yh({value:e,onChange:t,max:a=5,readOnly:r=!1,size:n="medium",ariaLabel:i,className:s=""}){const{t:c}=me.useTranslation(),d=r||!t,[u,m]=l.useState(null),h=u??e,p=G3[n],g=C=>{d||t?.(C)},f=C=>{d||m(C)},b=l.useRef(null),v=C=>{const k=Math.min(a,Math.max(1,C));t?.(k),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(k))?.focus()},y=C=>{if(!d){switch(C.key){case"ArrowRight":case"ArrowUp":v((e||0)+1);break;case"ArrowLeft":case"ArrowDown":v((e||1)-1);break;case"Home":v(1);break;case"End":v(a);break;default:return}C.preventDefault()}},_=e>=1&&e<=a?Math.round(e):1,x=()=>{d||m(null)};return o.jsx("div",{className:`rating rating--${n}${d?" rating--readOnly":""} ${s}`.trim(),ref:b,onKeyDown:y,role:d?"img":"radiogroup","aria-label":d?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:x,children:Array.from({length:a},(C,k)=>{const w=k+1,S=Math.max(0,Math.min(1,h-k)),j=S>0&&S<1,A=o.jsxs("span",{className:"rating__star-wrap",children:[o.jsx(Fe,{icon:"star",size:p,className:"rating__star rating__star--empty"}),S>0&&o.jsx("span",{className:`rating__star-fill${j?" rating__star-fill--half":""}`,children:o.jsx(Fe,{icon:"star",size:p,className:"rating__star rating__star--filled"})})]});return d?o.jsx("span",{className:"rating__item","aria-hidden":"true",children:A},w):o.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===w,"aria-label":c("rating.starLabel",{n:w}),"data-star":w,tabIndex:w===_?0:-1,onClick:()=>g(w),onMouseEnter:()=>f(w),children:A},w)})})}var q3=".ihabdevteam-core-scope .color-picker{display:flex;flex-wrap:wrap;gap:var(--spacing-xs)}.ihabdevteam-core-scope .color-picker__swatch{align-items:center;border:none;cursor:pointer;display:inline-flex;justify-content:center;padding:0;position:relative;transition:transform .12s,box-shadow .12s}.ihabdevteam-core-scope .color-picker__swatch--32{border-radius:8px;height:32px;width:32px}.ihabdevteam-core-scope .color-picker__swatch--40{border-radius:10px;height:40px;width:40px}.ihabdevteam-core-scope .color-picker__swatch--48{border-radius:12px;height:48px;width:48px}.ihabdevteam-core-scope .color-picker__swatch:hover{transform:scale(1.08)}.ihabdevteam-core-scope .color-picker__swatch:focus-visible{outline:2px solid var(--color-main);outline-offset:2px}.ihabdevteam-core-scope .color-picker__check{color:#fff}.ihabdevteam-core-scope .color-picker__check svg{display:block}";ee(q3);const Y3=20,U3=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function Uh({value:e,onChange:t,palette:a=U3,size:r=40,className:n=""}){const{t:i}=me.useTranslation();return o.jsx("div",{className:`color-picker ${n}`.trim(),role:"group",children:a.map(s=>{const c=e?.toLowerCase()===s.toLowerCase();return o.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:s},onClick:()=>t(s),"aria-pressed":c,"aria-label":c?`${s} ${i("colorPicker.selected","\uC120\uD0DD\uB428")}`:s,children:c&&o.jsx(Fe,{icon:"check",size:Y3,className:"color-picker__check"})},s)})})}var K3=".ihabdevteam-core-scope .count-tile{background:var(--color-deepWhite);border:1px solid var(--color-darkWhite);border-radius:16px;box-sizing:border-box;flex-shrink:0;height:72px;padding:12px;position:relative;transition:border-color .15s,background .15s;width:72px}.ihabdevteam-core-scope .count-tile__icon{color:var(--color-main);left:12px;position:absolute;top:12px}.ihabdevteam-core-scope .count-tile__count{bottom:12px;color:var(--color-darkGray);line-height:1;position:absolute;right:12px}.ihabdevteam-core-scope .count-tile--clickable{cursor:pointer}.ihabdevteam-core-scope .count-tile--clickable:hover{background:var(--color-white)}@media (max-width:767px){.ihabdevteam-core-scope .count-tile{border-radius:14px;height:60px;padding:10px;width:60px}.ihabdevteam-core-scope .count-tile__icon{left:8px;top:8px}.ihabdevteam-core-scope .count-tile__count{bottom:8px;right:8px}}";ee(K3);function Kh({icon:e,count:t,title:a,className:r="",onClick:n,onMouseEnter:i,onMouseLeave:s}){const c=_e("count-tile",n&&"count-tile--clickable",r);return o.jsxs("div",{className:c,onClick:n,onKeyDown:n?d=>{d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),d.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:s,role:n?"button":"img",tabIndex:n?0:void 0,"aria-label":a?`${a} ${t}`:String(t),children:[o.jsx(Fe,{icon:e,size:20,className:"count-tile__icon"}),o.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]})}var Z3=".ihabdevteam-core-scope .dialog{align-items:center;background:rgba(16,24,32,.6);display:flex;inset:0;justify-content:center;padding:32px;position:fixed;z-index:2200;z-index:var(--z-modal,2200)}@supports (color:rgb(0 0 0/0)) and (top:var(--f )){.ihabdevteam-core-scope .dialog{background:var(--color-popupBlock,rgba(16,24,32,.6))}}.ihabdevteam-core-scope .dialog__surface{background:#fff;background:var(--color-pureWhite,#fff);border-radius:20px;border-radius:var(--radius-dialog,20px);box-shadow:var(--shadow-popup);max-height:calc(100vh - 64px);outline:none;overflow:auto;position:relative;width:100%}.ihabdevteam-core-scope .dialog__surface--sm{max-width:420px}.ihabdevteam-core-scope .dialog__surface--md{max-width:640px}.ihabdevteam-core-scope .dialog__surface--lg{max-width:1000px}.ihabdevteam-core-scope .dialog__surface--full{background:none;box-shadow:none;max-width:1000px;overflow:visible}.ihabdevteam-core-scope .dialog__header{padding:24px 24px 0}.ihabdevteam-core-scope .dialog__title{color:var(--color-black);margin:0}.ihabdevteam-core-scope .dialog__close{align-items:center;background:none;border:0;border-radius:999px;border-radius:var(--radius-full,999px);color:var(--color-gray);cursor:pointer;display:flex;height:40px;justify-content:center;position:absolute;right:12px;top:12px;transition:background .15s ease,color .15s ease;width:40px}.ihabdevteam-core-scope .dialog__close:hover{background:var(--color-darkWhite);color:var(--color-black)}.ihabdevteam-core-scope .dialog__close>svg{height:20px;width:20px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close{background:hsla(0,0%,100%,.1);color:var(--color-pureWhite);right:0;top:-48px}.ihabdevteam-core-scope .dialog__surface--full .dialog__close:hover{background:hsla(0,0%,100%,.2)}.ihabdevteam-core-scope .dialog__body{padding:24px}.ihabdevteam-core-scope .dialog__surface--full .dialog__body{padding:0}@media (max-width:639px){.ihabdevteam-core-scope .dialog{padding:16px}.ihabdevteam-core-scope .dialog__body{padding:20px}}";ee(Z3);function X3(){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:o.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function Zh({open:e,onClose:t,ariaLabel:a,title:r,children:n,size:i="md",closeOnBackdrop:s=!0,closeOnEscape:c=!0,showClose:d=!0,className:u,contentClassName:m}){const{t:h}=me.useTranslation(),p=l.useId(),g=l.useRef(null),f=l.useCallback(()=>t(),[t]);return l.useEffect(()=>{if(!e)return;const b=document.activeElement,{overflow:v}=document.body.style;return document.body.style.overflow="hidden",g.current?.focus(),()=>{document.body.style.overflow=v,b?.focus?.()}},[e]),l.useEffect(()=>{if(!(!e||!c))return _l(f)},[e,c,f]),ws(g,e),!e||typeof document>"u"?null:qt.createPortal(o.jsx("div",{className:_e("dialog",u),onClick:s?f:void 0,children:o.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?p:void 0,tabIndex:-1,className:_e("dialog__surface",`dialog__surface--${i}`,m),onClick:b=>b.stopPropagation(),children:[r?o.jsx("div",{className:"dialog__header",children:o.jsx("h2",{id:p,className:"dialog__title h4b",children:r})}):null,d?o.jsx("button",{type:"button",className:"dialog__close","aria-label":h("common.close","\uB2EB\uAE30"),onClick:f,children:o.jsx(X3,{})}):null,o.jsx("div",{className:"dialog__body",children:n})]})}),document.body)}var J3=".ihabdevteam-core-scope .board{width:100%}.ihabdevteam-core-scope .board__head{align-items:flex-end;display:flex;flex-wrap:wrap;gap:var(--spacing-m);justify-content:space-between;margin-bottom:var(--spacing-m)}.ihabdevteam-core-scope .board__title{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:500;line-height:var(--text-body-2-line);margin:0}.ihabdevteam-core-scope .board__toolbar{align-items:center;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .board__table{border-collapse:collapse;border-top:1px solid var(--color-text-primary);text-align:left;width:100%}.ihabdevteam-core-scope .board__caption{clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ihabdevteam-core-scope .board__th{border-bottom:1px solid var(--color-border);color:var(--color-text-primary);font-size:var(--text-body-3-size);font-weight:500;line-height:var(--text-body-3-line);padding:14px 0}.ihabdevteam-core-scope .board__row{border-bottom:1px solid var(--color-border);transition:background .15s ease;transition:background var(--duration-fast,.15s) var(--ease-out,ease)}.ihabdevteam-core-scope .board__row:hover{background:var(--color-surface-raised)}.ihabdevteam-core-scope .board__td{color:var(--color-text-primary);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line);padding:var(--spacing-m) 0}.ihabdevteam-core-scope .board__cell--left{text-align:left}.ihabdevteam-core-scope .board__cell--center{text-align:center}.ihabdevteam-core-scope .board__cell--right{text-align:right}.ihabdevteam-core-scope .board__state{color:var(--color-text-secondary);font-size:var(--text-body-3-size);padding:56px 0;text-align:center}";ee(J3);function Xh({columns:e,rows:t,rowKey:a,title:r,toolbar:n,empty:i="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:s,caption:c,className:d=""}){const u=!s&&t.length===0;return o.jsxs("div",{className:_e("board",d),children:[r||n?o.jsxs("div",{className:"board__head",children:[r?o.jsx("h2",{className:"board__title",children:r}):o.jsx("span",{}),n?o.jsx("div",{className:"board__toolbar",children:n}):null]}):null,o.jsxs("table",{className:"board__table",children:[c?o.jsx("caption",{className:"board__caption",children:c}):null,o.jsx("thead",{children:o.jsx("tr",{children:e.map(m=>o.jsx("th",{scope:"col",className:_e("board__th",`board__cell--${m.headerAlign??m.align??"left"}`),style:m.width?{width:m.width}:void 0,children:m.header},m.key))})}),o.jsx("tbody",{children:s?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:s})}):u?o.jsx("tr",{children:o.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):t.map((m,h)=>o.jsx("tr",{className:"board__row",children:e.map(p=>o.jsx("td",{className:_e("board__td",`board__cell--${p.align??"left"}`),children:p.render(m,h)},p.key))},a(m,h)))})]})]})}var Q3=".ihabdevteam-core-scope .person-card{display:flex;flex-direction:column}.ihabdevteam-core-scope .person-card__photo{background:var(--color-surface-raised);border-radius:var(--radius-full);flex-shrink:0;margin-inline:auto;max-width:100%;overflow:hidden}.ihabdevteam-core-scope .person-card__photo>*,.ihabdevteam-core-scope .person-card__photo>img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.ihabdevteam-core-scope .person-card__name{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin-top:var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .person-card__role{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin-top:6px;text-align:center}.ihabdevteam-core-scope .person-card__credentials{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;margin:var(--spacing-xl) auto 0;max-width:100%;padding:0;text-align:left;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .person-card__credentials>li{color:var(--color-darkGray);font-size:var(--text-body-3-size);line-height:var(--text-body-3-line)}@media (max-width:767px){.ihabdevteam-core-scope .person-card__credentials,.ihabdevteam-core-scope .person-card__name{margin-top:var(--spacing-l)}}";ee(Q3);function Jh({name:e,role:t,photo:a,media:r,credentials:n,size:i=190,className:s=""}){return o.jsxs("div",{className:_e("person-card",s),children:[o.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?o.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),o.jsx("h3",{className:"person-card__name",children:e}),t?o.jsx("p",{className:"person-card__role",children:t}):null,n?.length?o.jsx("ul",{className:"person-card__credentials",children:n.map(c=>o.jsx("li",{children:c},c))}):null]})}var e8=".ihabdevteam-core-scope .timeline{display:flex;flex-direction:column;gap:56px}.ihabdevteam-core-scope .timeline__title{color:var(--color-text-primary);font-size:var(--text-h1-size);font-weight:var(--text-h1-weight);letter-spacing:var(--text-h1-spacing);line-height:var(--text-h1-line);margin:0}.ihabdevteam-core-scope .timeline__rows{border-top:1px solid var(--color-border);list-style:none;margin:var(--spacing-m) 0 0;padding:0}.ihabdevteam-core-scope .timeline__row{border-bottom:1px solid var(--color-border);display:flex;gap:40px;padding:var(--spacing-l) 0}.ihabdevteam-core-scope .timeline__label{color:var(--color-text-primary);flex-shrink:0;font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight-bold);line-height:var(--text-body-2-line);padding-top:1px;width:28px}.ihabdevteam-core-scope .timeline__items{display:flex;flex-direction:column;gap:4px}.ihabdevteam-core-scope .timeline__items>p{color:var(--color-text-primary);font-size:var(--text-body-2-size);font-weight:var(--text-body-2-weight);line-height:var(--text-body-2-line);margin:0}@media (max-width:767px){.ihabdevteam-core-scope .timeline{gap:40px}.ihabdevteam-core-scope .timeline__row{gap:var(--spacing-xl)}}";ee(e8);function Qh({groups:e,className:t=""}){return o.jsx("div",{className:_e("timeline",t),children:e.map(a=>o.jsxs("section",{className:"timeline__group",children:[o.jsx("h3",{className:"timeline__title",children:a.title}),o.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,n)=>o.jsxs("li",{className:"timeline__row",children:[r.label?o.jsx("span",{className:"timeline__label",children:r.label}):null,o.jsx("div",{className:"timeline__items",children:r.items.map((i,s)=>o.jsx("p",{children:i},s))})]},`${r.label??""}-${n}`))})]},a.title))})}var t8=".ihabdevteam-core-scope .publication-card{background:var(--color-surface-raised);border-radius:var(--radius-m);box-sizing:border-box;display:flex;flex-direction:column;padding:36px var(--spacing-xl) 32px;position:relative}.ihabdevteam-core-scope .publication-card__badge{height:88px;pointer-events:none;position:absolute;right:var(--spacing-xl);top:0}.ihabdevteam-core-scope .publication-card__badge>*,.ihabdevteam-core-scope .publication-card__badge>img{height:100%;width:auto}.ihabdevteam-core-scope .publication-card__title{color:var(--color-text-primary);font-size:var(--text-h4-size);font-weight:var(--text-h4-weight-bold);line-height:var(--text-h4-line);margin:0;padding-right:96px;position:relative;z-index:1}.ihabdevteam-core-scope .publication-card__kind{color:var(--color-darkGray);font-size:var(--text-body-3-size);font-weight:var(--text-body-3-weight);line-height:var(--text-body-3-line);margin:var(--spacing-m) 0 0}.ihabdevteam-core-scope .publication-card__body{color:var(--color-darkGray);font-size:var(--text-caption-1-size);line-height:1.65;margin:var(--spacing-m) 0 0}@media (max-width:767px){.ihabdevteam-core-scope .publication-card{padding:32px var(--spacing-l) 28px}.ihabdevteam-core-scope .publication-card__kind{margin-top:var(--spacing-m)}}.ihabdevteam-core-scope .publication-card__footer{margin-top:auto;padding-top:var(--spacing-l)}";ee(t8);function em({title:e,kind:t,body:a,badge:r,badgeSrc:n,footer:i,width:s,className:c=""}){const d=r??(n?o.jsx("img",{src:n,alt:""}):null);return o.jsxs("div",{className:_e("publication-card",c),style:s?{width:s,flexShrink:0}:void 0,children:[d?o.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:d}):null,o.jsx("h3",{className:"publication-card__title",children:e}),t?o.jsx("p",{className:"publication-card__kind",children:t}):null,o.jsx("p",{className:"publication-card__body",children:a}),i?o.jsx("div",{className:"publication-card__footer",children:i}):null]})}var a8="@keyframes splash-logo{0%{opacity:0;transform:scale(.92)}18%{opacity:1;transform:scale(1)}75%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.04)}}.ihabdevteam-core-scope .splash-logo{align-items:center;background:var(--color-pureWhite);display:flex;inset:0;justify-content:center;position:absolute;z-index:1000;z-index:var(--z-modal,1000)}.ihabdevteam-core-scope .splash-logo__image{animation:splash-logo 3s cubic-bezier(.4,0,.2,1) forwards;animation:splash-logo var(--splash-logo-duration,3s) cubic-bezier(.4,0,.2,1) forwards;height:80px;height:var(--splash-logo-height,80px);width:auto}@media (prefers-reduced-motion:reduce){.ihabdevteam-core-scope .splash-logo__image{animation:none;opacity:1}}";ee(a8);function tm({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const n=tl(a);return l.useEffect(()=>{if(!n.current)return;const i=setTimeout(()=>n.current?.(),r);return()=>clearTimeout(i)},[r,n]),o.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:o.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}var o8='.ihabdevteam-core-scope .section-header{text-align:center}.ihabdevteam-core-scope .section-header__eyebrow{align-items:center;display:flex;font-size:var(--text-caption-1-size);font-weight:600;gap:10px;justify-content:center;letter-spacing:.18em;line-height:var(--text-caption-1-line);margin:0}.ihabdevteam-core-scope .section-header__index{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;opacity:.6}.ihabdevteam-core-scope .section-header__rule{background:currentColor;height:1px;opacity:.3;width:24px}.ihabdevteam-core-scope .section-header__title{font-family:inherit;font-family:var(--font-display,inherit);font-size:clamp(2rem,1.35rem + 2.1vw,2.9rem);font-weight:700;letter-spacing:-.01em;line-height:1.15;margin:0}.ihabdevteam-core-scope .section-header__eyebrow+.section-header__title{margin-top:var(--spacing-xl)}.ihabdevteam-core-scope .section-header__description{font-size:var(--text-body-2-size);line-height:1.9;margin-top:var(--spacing-m)}.ihabdevteam-core-scope .section-header--dark .section-header__eyebrow{color:var(--color-main)}.ihabdevteam-core-scope .section-header--dark .section-header__title{color:var(--color-text-primary)}.ihabdevteam-core-scope .section-header--dark .section-header__description{color:var(--color-darkGray)}.ihabdevteam-core-scope .section-header--light .section-header__eyebrow{color:hsla(0,0%,100%,.85)}.ihabdevteam-core-scope .section-header--light .section-header__title{color:var(--color-pureWhite)}.ihabdevteam-core-scope .section-header--light .section-header__description{color:hsla(0,0%,100%,.85)}';ee(o8);function am({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:n=2,tone:i="dark",className:s=""}){const c=n===1?"h1":"h2";return o.jsxs("div",{className:_e("section-header",`section-header--${i}`,s),children:[e?o.jsxs("p",{className:"section-header__eyebrow",children:[t?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"section-header__index",children:t}),o.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?o.jsx(c,{className:"section-header__title",children:a}):null,r?o.jsx("div",{className:"section-header__description",children:r}):null]})}var r8=".ihabdevteam-core-scope .company-meta{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;font-size:var(--text-caption-1-size);gap:var(--spacing-xs);list-style:none;margin:0;padding:0}.ihabdevteam-core-scope .company-meta__item{align-items:center;display:flex}.ihabdevteam-core-scope .company-meta__divider{color:var(--color-whiteLine);display:none;padding-inline:var(--spacing-m)}@media (min-width:640px){.ihabdevteam-core-scope .company-meta{flex-direction:row;gap:0}.ihabdevteam-core-scope .company-meta__divider{display:inline}}";ee(r8);function om({items:e,className:t=""}){return o.jsx("ul",{className:_e("company-meta",t),children:e.map((a,r)=>o.jsxs("li",{className:"company-meta__item",children:[r>0?o.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function Wl({value:e,onChange:t,suggestions:a,openOnFocus:r=!1}){const n=l.useId(),[i,s]=l.useState(!1),[c,d]=l.useState(-1),u=l.useRef(null),m=l.useMemo(()=>{if(!a.length)return[];const b=e??"";return b?a.filter(v=>v.toLowerCase().includes(b.toLowerCase())):r?a:[]},[a,e,r]);l.useEffect(()=>{i||d(-1)},[i]),l.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const h=l.useCallback(b=>{t?.(b),s(!1)},[t]),p=l.useCallback(()=>s(!0),[]),g=l.useCallback(()=>{u.current=setTimeout(()=>s(!1),120)},[]),f=l.useCallback(b=>{b.key==="ArrowDown"?(b.preventDefault(),s(!0),d(v=>Math.min(m.length-1,v+1))):b.key==="ArrowUp"?(b.preventDefault(),d(v=>Math.max(-1,v-1))):b.key==="Enter"?c>=0&&!b.nativeEvent.isComposing&&h(m[c]):b.key==="Escape"&&i&&(b.preventDefault(),s(!1))},[m,c,i,h]);return{listId:n,open:i,activeIdx:c,filtered:m,handleFocus:p,handleBlur:g,handleKeyDown:f,handleSelect:h}}var n8=".ihabdevteam-core-scope .text-field{box-sizing:border-box;display:inline-flex;flex-direction:column;gap:6px;position:relative}.ihabdevteam-core-scope .text-field--full-width{display:flex;width:100%}.ihabdevteam-core-scope .text-field__label{align-items:center;color:var(--color-darkGray);display:flex;gap:4px}.ihabdevteam-core-scope .text-field__required{color:var(--color-main);line-height:1}.ihabdevteam-core-scope .text-field__wrap{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;display:flex;overflow:hidden;position:relative;transition:border-color .12s,background .12s,box-shadow .12s}.ihabdevteam-core-scope .text-field--s32 .text-field__wrap{border-radius:8px}.ihabdevteam-core-scope .text-field--s40 .text-field__wrap{border-radius:10px}.ihabdevteam-core-scope .text-field--s48 .text-field__wrap{border-radius:12px}.ihabdevteam-core-scope .text-field--s64 .text-field__wrap{border-radius:14px}.ihabdevteam-core-scope .text-field__wrap:focus-within{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .text-field--error .text-field__wrap{border-color:var(--color-error)}.ihabdevteam-core-scope .text-field--error .text-field__wrap:focus-within{box-shadow:0 0 0 3px var(--color-error-a10)}.ihabdevteam-core-scope .text-field--disabled .text-field__wrap{cursor:not-allowed;opacity:.5}.ihabdevteam-core-scope .text-field--readonly .text-field__input{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .text-field--readonly .text-field__wrap{border-color:var(--color-darkWhite)}.ihabdevteam-core-scope .text-field__input{background:transparent;border:none;box-sizing:border-box;color:var(--color-darkGray);flex:1;margin:0;min-width:0;outline:none;padding:0 12px}.ihabdevteam-core-scope .text-field__input::-moz-placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input::placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .text-field__input:disabled{cursor:not-allowed}.ihabdevteam-core-scope .text-field__input[readonly]{cursor:default}.ihabdevteam-core-scope .text-field__input--textarea{align-self:stretch;line-height:1.6;min-height:80px;padding:10px 12px;resize:vertical}.ihabdevteam-core-scope .text-field__input--auto{align-self:stretch;line-height:1.5;overflow:hidden;padding:0 12px;resize:none}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__wrap,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__wrap{align-items:flex-start}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__icon,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__clear,.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__icon{margin-top:var(--spacing-s)}.ihabdevteam-core-scope .text-field--s32 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:30px}.ihabdevteam-core-scope .text-field--s40 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:38px}.ihabdevteam-core-scope .text-field--s48 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:46px}.ihabdevteam-core-scope .text-field--s64 .text-field__input:not(.text-field__input--textarea):not(.text-field__input--auto){height:62px;line-height:normal}.ihabdevteam-core-scope .text-field--display .text-field__input{font-weight:700;text-align:center}.ihabdevteam-core-scope .text-field--display .text-field__input::-moz-placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__input::placeholder{color:transparent}.ihabdevteam-core-scope .text-field--display .text-field__placeholder{align-items:center;color:var(--color-lightGray);display:flex;font-weight:400;inset:0;justify-content:center;pointer-events:none;position:absolute}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:-moz-placeholder)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display .text-field__input:not(:placeholder-shown)~.text-field__placeholder{display:none}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__input{font-size:22px}.ihabdevteam-core-scope .text-field--display.text-field--s48 .text-field__placeholder{font-size:15px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__input{font-size:28px;letter-spacing:-.3px}.ihabdevteam-core-scope .text-field--display.text-field--s64 .text-field__placeholder{font-size:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input--auto{height:30px;min-height:30px;padding-bottom:3px;padding-top:3px}.ihabdevteam-core-scope .text-field--s40 .text-field__input--auto{height:38px;min-height:38px;padding-bottom:7px;padding-top:7px}.ihabdevteam-core-scope .text-field--s48 .text-field__input--auto{height:46px;min-height:46px;padding-bottom:11px;padding-top:11px}.ihabdevteam-core-scope .text-field__icon{align-items:center;color:var(--color-lightGray);display:inline-flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.ihabdevteam-core-scope .text-field__icon--left{margin-left:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon--right{margin-right:var(--spacing-s)}.ihabdevteam-core-scope .text-field__icon-svg{display:block}.ihabdevteam-core-scope .text-field--has-left-icon .text-field__input{padding-left:6px}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__input{padding-right:6px}.ihabdevteam-core-scope .text-field--s32 .text-field__icon{height:16px;width:16px}.ihabdevteam-core-scope .text-field--s32 .text-field__input{font-size:14px;line-height:22px}.ihabdevteam-core-scope .text-field__clear{flex-shrink:0;margin-right:10px}.ihabdevteam-core-scope .text-field__suggestions{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-sm);box-shadow:var(--shadow-dropdown);left:0;margin-top:var(--spacing-xs);max-height:220px;overflow:auto;padding:4px 0;position:absolute;right:0;top:100%;z-index:var(--z-dropdown)}.ihabdevteam-core-scope .text-field__suggestion{color:var(--color-darkGray);cursor:pointer;padding:8px 12px}.ihabdevteam-core-scope .text-field__suggestion.is-active,.ihabdevteam-core-scope .text-field__suggestion:hover{background:var(--color-deepWhite);color:var(--color-main)}.ihabdevteam-core-scope .text-field__footer{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .text-field__helper{color:var(--color-lightGray);flex:1}.ihabdevteam-core-scope .text-field--error .text-field__helper{color:var(--color-error)}.ihabdevteam-core-scope .text-field__count{color:var(--color-gray);flex-shrink:0;margin-right:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.ihabdevteam-core-scope .text-field--has-right-icon .text-field__count,.ihabdevteam-core-scope .text-field:has(.text-field__clear) .text-field__count{margin-right:8px}.ihabdevteam-core-scope .text-field__count--over{color:var(--color-error)}.ihabdevteam-core-scope .text-field:has(.text-field__input--textarea) .text-field__count{bottom:6px;margin:0;pointer-events:none;position:absolute;right:20px}.ihabdevteam-core-scope .text-field:has(.text-field__input--auto) .text-field__count{align-self:flex-end;margin-bottom:var(--spacing-s)}";ee(n8);function Wa(e){const{value:t,defaultValue:a,name:r,inputRef:n,onChange:i,label:s,ariaLabel:c,required:d,placeholder:u,type:m="text",disabled:h=!1,readOnly:p=!1,error:g,helperText:f,maxLength:b,size:v=48,variant:y="input",fullWidth:_=!1,newline:x=!1,multiline:C=!1,rows:k=3,leftIcon:w,rightIcon:S,clearable:j=!1,list:A,showCount:B=!0,className:W="",onFocus:M,onBlur:T,onKeyDown:$,onEnter:E,inputMode:H,autoComplete:te,autoFocus:Q,suggestions:ae,openOnFocus:N=!1}=e,{t:L}=me.useTranslation(),R=l.useId();!s&&!c&&Fn(`TextField:unnamed:${R}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const z=`tf-${R}`,V=`tf-helper-${R}`,X=l.useRef(null),F=Wl({value:t??"",onChange:i,suggestions:ae??[],openOnFocus:N}),Y=!!ae&&F.open&&F.filtered.length>0,O=l.useCallback(Z=>{X.current=Z,typeof n=="function"?n(Z):n&&(n.current=Z)},[n]),ne=t!==void 0,ue=ne&&m==="password",xe=(t??"").length;l.useEffect(()=>{const Z=X.current;if(!ue||!Z)return;const J=t??"";Z.value!==J&&(Z.value=J)},[ue,t]),l.useEffect(()=>{if(!x||!X.current)return;const Z=X.current;Z.style.height="",Z.scrollHeight>Z.clientHeight&&(Z.style.height=`${Z.scrollHeight}px`)},[t,x]);const ve=b!=null&&xe>b,pe=v===32?16:20,P=_e("text-field",`text-field--s${v}`,y==="display"?"text-field--display":"",_?"text-field--full-width":"",h?"text-field--disabled":"",p?"text-field--readonly":"",g?"text-field--error":"",w?"text-field--has-left-icon":"",S||j?"text-field--has-right-icon":"",W),q={id:z,...ue?{}:ne?{value:t}:{defaultValue:a},ref:O,placeholder:u,name:r,disabled:h,readOnly:p,autoFocus:Q,tabIndex:p?-1:void 0,maxLength:b,list:A,inputMode:H,autoComplete:te,"aria-label":!s&&c?c:void 0,"aria-required":d,"aria-invalid":!!g,"aria-describedby":f||g?V:void 0,role:ae?"combobox":void 0,"aria-autocomplete":ae?"list":void 0,"aria-haspopup":ae?"listbox":void 0,"aria-expanded":ae?F.open:void 0,"aria-controls":Y?F.listId:void 0,"aria-activedescendant":Y&&F.activeIdx>=0?`${F.listId}-option-${F.activeIdx}`:void 0,onChange:Z=>i?.(Z.target.value),onFocus:(Z=>{M?.(Z),ae&&F.handleFocus()}),onBlur:(Z=>{T?.(Z),ae&&F.handleBlur()}),onKeyDown:(Z=>{E&&Z.key==="Enter"&&!Z.nativeEvent.isComposing&&(Z.preventDefault(),E()),$?.(Z),ae&&F.handleKeyDown(Z)})},oe=j&&!h&&!p&&xe>0,ge=()=>x?o.jsx("textarea",{...q,className:"text-field__input text-field__input--auto body-2",rows:1}):C?o.jsx("textarea",{...q,className:"text-field__input text-field__input--textarea body-2",rows:k}):o.jsx("input",{...q,type:m,className:"text-field__input body-2"}),de=y==="display"&&!x&&!C&&!!u,I=()=>o.jsxs(o.Fragment,{children:[ge(),de&&o.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:u})]});return o.jsxs("div",{className:P,children:[s&&o.jsxs("label",{htmlFor:z,className:"text-field__label caption-1",children:[s,d&&o.jsx("span",{className:"text-field__required",children:"*"})]}),o.jsxs("div",{className:"text-field__wrap",children:[w&&o.jsx("span",{className:"text-field__icon text-field__icon--left",children:o.jsx(Fe,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:pe})}),I(),b!=null&&B&&o.jsxs("span",{className:`text-field__count caption-2${ve?" text-field__count--over":""}`,children:[xe,"/",b]}),oe&&o.jsx(re,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:L("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:Z=>{Z.preventDefault()},onClick:()=>i?.(""),tabIndex:-1}),S&&!oe&&o.jsx("span",{className:"text-field__icon text-field__icon--right",children:o.jsx(Fe,{icon:S,label:"",className:"",svgClassName:"text-field__icon-svg",size:pe})})]}),ae&&F.open&&F.filtered.length>0&&o.jsx("ul",{id:F.listId,className:"text-field__suggestions",role:"listbox",children:F.filtered.map((Z,J)=>o.jsx("li",{id:`${F.listId}-option-${J}`,role:"option","aria-selected":J===F.activeIdx,className:`text-field__suggestion body-2${J===F.activeIdx?" is-active":""}`,onMouseDown:fe=>fe.preventDefault(),onClick:()=>{F.handleSelect(Z),X.current?.focus()},children:Z},`${Z}-${J}`))}),(f||g)&&o.jsx("div",{className:"text-field__footer",children:o.jsx("span",{id:V,className:"text-field__helper caption-1",role:g?"alert":void 0,children:g||f})})]})}var i8=".ihabdevteam-core-scope .dropdown{display:inline-block;position:relative}.ihabdevteam-core-scope .dropdown--block{display:block;width:100%}.ihabdevteam-core-scope .dropdown--block .dropdown__trigger{min-width:0}.ihabdevteam-core-scope .dropdown--s40 .dropdown__trigger{border-radius:10px;height:40px}.ihabdevteam-core-scope .dropdown--s48 .dropdown__trigger{border-radius:12px;height:48px}.ihabdevteam-core-scope .dropdown__trigger{align-items:center;background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:12px;box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);height:48px;justify-content:space-between;min-width:120px;padding:0 12px;text-align:left;transition:border-color .15s,background .15s,box-shadow .15s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__trigger:hover:not(:disabled){border-color:var(--color-main)}.ihabdevteam-core-scope .dropdown__trigger:focus-visible{border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10);outline:none}.ihabdevteam-core-scope .dropdown__trigger:disabled{background:var(--color-deepWhite);cursor:default;opacity:.5}.ihabdevteam-core-scope .dropdown--open .dropdown__trigger{background:var(--color-white);border-color:var(--color-main);box-shadow:0 0 0 3px var(--color-main-a10)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger{border:1px solid var(--color-error)}.ihabdevteam-core-scope .dropdown--error .dropdown__trigger:hover:not(:disabled),.ihabdevteam-core-scope .dropdown--error.dropdown--open .dropdown__trigger{border-color:var(--color-error);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-error) 15%,transparent)}.ihabdevteam-core-scope .dropdown__trigger-label{flex:1;overflow:hidden;text-overflow:ellipsis}.ihabdevteam-core-scope .dropdown__trigger-label--placeholder{color:var(--color-lightGray)}.ihabdevteam-core-scope .dropdown__chevron{color:var(--color-gray);flex-shrink:0;height:16px;transition:transform .2s;width:16px}.ihabdevteam-core-scope .dropdown--open .dropdown__chevron{transform:rotate(180deg)}.ihabdevteam-core-scope .dropdown__menu{animation:dropdown-appear .12s ease;background:var(--color-white);border:1.5px solid var(--color-whiteLine);border-radius:var(--radius-card);box-shadow:var(--shadow-dropdown);box-sizing:border-box;max-height:260px;overflow-y:auto;overscroll-behavior-y:contain;padding:6px}@keyframes dropdown-appear{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.ihabdevteam-core-scope .dropdown__option{align-items:center;background:transparent;border:none;border-radius:var(--radius-sm);box-sizing:border-box;color:var(--color-darkGray);cursor:pointer;display:flex;font-family:var(--font-family);gap:var(--spacing-xs);padding:9px 12px;text-align:left;transition:background .1s,color .1s;white-space:nowrap;width:100%}.ihabdevteam-core-scope .dropdown__option:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .dropdown__option--active{background:var(--color-main-a10);color:var(--color-main)}.ihabdevteam-core-scope .dropdown__option--disabled{cursor:default;opacity:.4;pointer-events:none}.ihabdevteam-core-scope .dropdown__option-check{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;height:14px;justify-content:center;width:14px}.ihabdevteam-core-scope .dropdown__option-check svg{height:14px;width:14px}";ee(i8);function Ut({options:e,value:t,onChange:a,placeholder:r,disabled:n=!1,block:i=!1,size:s=48,error:c=!1,className:d="",ariaLabel:u}){const{t:m}=me.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),p=l.useId(),g=l.useRef(null),f=l.useCallback(T=>{const $=window.innerHeight-T.bottom<260&&T.top>260;return{position:"fixed",left:T.left,minWidth:T.width,...$?{bottom:window.innerHeight-T.top+6}:{top:T.bottom+6},zIndex:9999}},[]),{open:b,setOpen:v,toggle:y,style:_,triggerRef:x,menuRef:C}=ao({computeStyle:f}),[k,w]=l.useState(-1),S=l.useCallback(()=>w(-1),[]),j=e.find(T=>T.value===t);l.useEffect(()=>{if(b){const T=e.findIndex($=>$.value===t);w(T>=0?T:0),requestAnimationFrame(()=>{const $=C.current;if(!$)return;const E=$.querySelectorAll(".dropdown__option")[T];E&&($.scrollTop=Math.max(0,E.offsetTop-$.clientHeight/2+E.clientHeight/2))})}},[b,e,t,C]);const A=l.useCallback(()=>{n||y()},[n,y]),B=l.useCallback(T=>{T.disabled||(a?.(T.value),v(!1))},[a,v]),W=l.useCallback(T=>{if(!n){if(!b){(T.key==="Enter"||T.key===" "||T.key==="ArrowDown")&&(T.preventDefault(),v(!0));return}if(T.key==="Escape"){T.preventDefault(),v(!1);return}T.key==="ArrowDown"?(T.preventDefault(),w($=>{let E=$+1;for(;E<e.length&&e[E].disabled;)E++;return E<e.length?E:$})):T.key==="ArrowUp"?(T.preventDefault(),w($=>{let E=$-1;for(;E>=0&&e[E].disabled;)E--;return E>=0?E:$})):T.key==="Enter"&&k>=0&&(T.preventDefault(),B(e[k]))}},[n,b,e,k,B,v]),M=b?o.jsx("div",{ref:C,id:p,className:"dropdown__menu",role:"listbox",style:_,onMouseLeave:S,children:e.map((T,$)=>o.jsxs("button",{id:`${p}-option-${$}`,type:"button",role:"option","aria-selected":T.value===t,className:_e("dropdown__option body-2",T.value===t?"dropdown__option--active":"",$===k?"dropdown__option--active":"",T.disabled?"dropdown__option--disabled":""),onMouseDown:E=>E.preventDefault(),onClick:()=>B(T),onMouseEnter:()=>w($),disabled:T.disabled,children:[o.jsx("span",{className:"dropdown__option-check",children:T.value===t&&o.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),T.label]},T.value))}):null;return o.jsxs("div",{ref:g,className:_e("dropdown",`dropdown--s${s}`,b?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",d),onKeyDown:W,children:[o.jsxs("button",{ref:x,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?p:void 0,"aria-activedescendant":b&&k>=0?`${p}-option-${k}`:void 0,"aria-label":u,"aria-invalid":c||void 0,disabled:n,onClick:A,children:[o.jsx("span",{className:`dropdown__trigger-label body-2${j?"":" dropdown__trigger-label--placeholder"}`,children:j?j.label:h}),o.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&qt.createPortal(M,g.current?.closest(".ihabdevteam-core-scope")??document.body)]})}var s8=".ihabdevteam-core-scope .pagination{align-items:center;display:flex;gap:4px}.ihabdevteam-core-scope .pagination__info{color:var(--color-darkGray);font-weight:600;min-width:48px;text-align:center}";ee(s8);function vr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:n,className:i=""}){const{t:s}=me.useTranslation(),c=r??s("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),d=n??s("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),u=()=>a(Math.max(1,e-1)),m=()=>a(Math.min(t,e+1));return o.jsxs("div",{className:_e("pagination",i),children:[o.jsx(re,{size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:u}),o.jsxs("span",{className:"pagination__info body-3",children:[e," / ",t]}),o.jsx(re,{size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:d,disabled:e>=t,onClick:m})]})}var l8=".ihabdevteam-core-scope .segmented-control{background:var(--color-darkWhite);display:inline-flex;flex-shrink:0;flex-wrap:wrap;gap:var(--spacing-xs);overflow:hidden;padding:4px}.ihabdevteam-core-scope .segmented-control--pill{border-radius:999px}.ihabdevteam-core-scope .segmented-control--rounded{border-radius:12px}.ihabdevteam-core-scope .segmented-control .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--32 .button{min-width:64px}.ihabdevteam-core-scope .segmented-control--40 .button{min-width:80px}.ihabdevteam-core-scope .segmented-control--48 .button{min-width:96px}.ihabdevteam-core-scope .segmented-control--no-bg{background:transparent;padding:0}.ihabdevteam-core-scope .segmented-control--full{display:flex;flex-wrap:nowrap;width:100%}.ihabdevteam-core-scope .segmented-control--full .button{flex:1 1 0;min-width:0}@media (max-width:767px){.ihabdevteam-core-scope .segmented-control{flex-shrink:1;min-width:0}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child){border-radius:14px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(4):last-child)>.button{justify-content:center;width:100%}.ihabdevteam-core-scope .segmented-control--pill:has(>.button:nth-child(5)){border-radius:14px}.ihabdevteam-core-scope .segmented-control:has(>.button:nth-child(5)){justify-content:center}}";ee(l8);function Ha(e){const{t}=me.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:n=v=>{},className:i="",size:s=48,shape:c="pill",useBG:d=!0,fullWidth:u=!1,ariaLabel:m}=e||{},h=l.useRef(null),p=a.filter(v=>!v.disabled),g=v=>{if(!p.length)return;const y=Math.max(0,p.findIndex(x=>x.key===r)),_=v==="first"?p[0]:v==="last"?p[p.length-1]:p[(y+v+p.length)%p.length];_&&(n(_.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(x=>x.dataset.segkey===_.key)?.focus())},f=v=>{switch(v.key){case"ArrowRight":case"ArrowDown":g(1);break;case"ArrowLeft":case"ArrowUp":g(-1);break;case"Home":g("first");break;case"End":g("last");break;default:return}v.preventDefault()},b=p.some(v=>v.key===r)?r:p[0]?.key;return o.jsx("div",{ref:h,onKeyDown:f,className:_e("segmented-control",`segmented-control--${c}`,`segmented-control--${s}`,u&&"segmented-control--full",!d&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":m??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(v=>o.jsx(re,{role:"radio","aria-checked":v.key===r,"data-segkey":v.key,tabIndex:v.key===b?0:-1,label:v.label,count:v.count,disabled:v.disabled,className:v.key===r?"is-selected":"",onClick:()=>{v.disabled||n(v.key)},size:s,shape:c,useBorder:!1,useBG:!1},v.key))})}var c8=".ihabdevteam-core-scope .toolbar{align-items:center;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--spacing-s);min-height:64px;padding-bottom:8px;padding-top:8px;width:100%}.ihabdevteam-core-scope .toolbar__row{display:contents}.ihabdevteam-core-scope .toolbar__row-end{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s);justify-content:flex-end;margin-left:auto}.ihabdevteam-core-scope .toolbar__count{color:var(--color-gray);flex-shrink:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .toolbar .toolbar__search{flex-shrink:0;min-width:200px}@media (max-width:767px){.ihabdevteam-core-scope .toolbar{align-items:stretch;flex-direction:column;flex-wrap:wrap;padding-bottom:12px;padding-top:12px}.ihabdevteam-core-scope .toolbar__row{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-s)}.ihabdevteam-core-scope .toolbar .toolbar__search{flex:1;min-width:150px}}.ihabdevteam-core-scope .toolbar__count-highlight{color:var(--color-main)}";ee(c8);function vn({count:e,search:t,segment:a,filters:r,pageSize:n,pagination:i,actions:s,className:c}){const{t:d}=me.useTranslation(),u=e!=null&&o.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??d("common.totalPrefix","\uCD1D "),o.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||n||i||s);return o.jsxs("div",{className:_e("toolbar",c),children:[o.jsxs("div",{className:"toolbar__row",children:[u,a&&(Array.isArray(a)?a:[a]).map((h,p)=>o.jsx(Ha,{size:40,...h},h.ariaLabel??p))]}),m&&o.jsx("div",{className:"toolbar__row",children:o.jsxs("div",{className:"toolbar__row-end",children:[t&&o.jsx(Wa,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??d("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??d("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((h,p)=>o.jsx(Ut,{size:40,options:h.options,value:h.value,onChange:h.onChange,ariaLabel:h.ariaLabel},p)),n&&o.jsx(Ut,{size:40,options:n.options,value:n.value,onChange:n.onChange,ariaLabel:n.ariaLabel??d("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&o.jsx(vr,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),s]})})]})}var d8=".ihabdevteam-core-scope .code-box{background:#eff8ff;background:var(--color-code-bg,#eff8ff);border:1px solid rgba(4,34,51,.06);border-radius:10px;color:#042233;color:var(--color-code-text,#042233);margin:0;overflow:hidden;padding:16px 20px}.ihabdevteam-core-scope .code-box__header{align-items:center;display:flex;gap:12px;justify-content:space-between;min-height:40px}.ihabdevteam-core-scope .code-box__title{align-items:center;color:rgba(4,34,51,.75);display:flex;letter-spacing:.02em}.ihabdevteam-core-scope .code-box__copy{flex-shrink:0}.ihabdevteam-core-scope .code-box__inner{background:transparent;color:#042233;color:var(--color-code-text,#042233);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Roboto Mono,Courier New,monospace;font-size:13px;line-height:1.6;margin:0;overflow-wrap:anywhere;overflow-x:auto;padding:8px 0 0;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box__inner code{display:block;font-family:inherit;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-box--small .code-box__inner{font-size:12px}.ihabdevteam-core-scope .code-token{overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.ihabdevteam-core-scope .code-token.keyword{color:#6b46ff;font-weight:600}.ihabdevteam-core-scope .code-token.string{color:#0a9d58}.ihabdevteam-core-scope .code-token.comment{color:#6b7280;font-style:italic}.ihabdevteam-core-scope .code-token.command{color:#0b78d1}.ihabdevteam-core-scope .code-token.number{color:#d97706}.ihabdevteam-core-scope .code-token.operator{color:#dc2626}.ihabdevteam-core-scope .code-token.identifier,.ihabdevteam-core-scope .code-token.punctuation{color:#042233;color:var(--color-code-text,#042233)}";ee(d8);function rm(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(rm).join(""):""}function u8(e){let t=e.replace(/\r\n/g,`
|
|
839
839
|
`).replace(/\r/g,`
|
|
840
840
|
`);t=t.replace(/^\n+/,"").replace(/\n+$/,"");const a=t.split(`
|
|
@@ -985,7 +985,7 @@ ${x.badge}`:x.badge:void 0;if(k&&d(x.code))return null;if(!x.badge&&!u)return m(
|
|
|
985
985
|
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
|
|
986
986
|
`).map((s,c,d)=>o.jsxs(l.Fragment,{children:[s,c<d.length-1&&o.jsx("br",{})]},c))})}),o.jsxs("div",{className:"site-footer__links",children:[o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:i("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),o.jsxs("div",{className:"site-footer__column",children:[o.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{e&&(s.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),o.jsx("li",{children:o.jsx("a",{className:"footer-link",href:"#",onClick:s=>{t&&(s.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),o.jsx("hr",{className:"site-footer__rule"}),o.jsxs("div",{className:"site-footer__bottom",children:[o.jsx("div",{className:"site-footer__brand",children:o.jsx("img",{src:$l,alt:"IHAB",className:"site-footer__logo"})}),o.jsxs("div",{className:"site-footer__meta",children:[o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),o.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),o.jsxs("div",{children:[o.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),o.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",n]})]})]})]}),o.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}var Rk='.ihabdevteam-core-scope .landing-header{background:var(--landing-header-bg,var(--color-deepWhite));border-bottom:1px solid rgba(15,18,60,.05);border-bottom:1px solid var(--landing-header-border,rgba(15,18,60,.05));position:sticky;top:0;transform:translateZ(0);will-change:transform;z-index:500;z-index:var(--z-sticky,500)}.ihabdevteam-core-scope .landing-header__inner{align-items:center;display:flex;height:72px;height:var(--landing-header-height,72px);justify-content:space-between;position:relative}.ihabdevteam-core-scope .landing-header__brand{align-items:center;display:flex;flex:0 0 auto;margin-right:auto;text-decoration:none}.ihabdevteam-core-scope .landing-header__logo{display:block;height:40px;height:var(--landing-header-logo-height,40px);max-width:none;transform-origin:left center;transition:transform .3s cubic-bezier(.2,.9,.2,1.2),filter .3s;width:auto}.ihabdevteam-core-scope .landing-header__brand:hover .landing-header__logo{filter:brightness(1.08);transform:scale(1.05)}.ihabdevteam-core-scope .landing-header__links{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;gap:36px;left:50%;position:absolute;transform:translateX(-50%)}.ihabdevteam-core-scope .landing-header__links a{color:inherit;padding:6px 0;position:relative;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__links a:hover{color:var(--landing-header-link-hover,var(--color-main))}.ihabdevteam-core-scope .landing-header__links a:after{background:linear-gradient(90deg,var(--color-main),var(--color-sub));border-radius:1px;bottom:0;content:"";height:2px;left:0;position:absolute;right:100%;transition:right .35s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__links a:hover:after{right:0}.ihabdevteam-core-scope .landing-header__actions{align-items:center;display:flex;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .landing-header__toggle{align-items:center;background:none;border:0;color:var(--landing-header-link-color,var(--color-deepGray));cursor:pointer;display:none;height:44px;justify-content:center;margin-right:-10px;width:44px}.ihabdevteam-core-scope .landing-header__burger{display:block;height:14px;position:relative;width:22px}.ihabdevteam-core-scope .landing-header__burger>span{background:currentColor;border-radius:1px;height:2px;inset-inline:0;position:absolute;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}.ihabdevteam-core-scope .landing-header__burger>span:first-child{top:0}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(2){top:6px}.ihabdevteam-core-scope .landing-header__burger>span:nth-child(3){top:12px}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:first-child{transform:translateY(6px) rotate(45deg)}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(2){opacity:0}.ihabdevteam-core-scope .landing-header__toggle--open .landing-header__burger>span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.ihabdevteam-core-scope .landing-header__drawer{background:var(--landing-header-bg,var(--color-deepWhite));border-top:1px solid rgba(15,18,60,.05)}.ihabdevteam-core-scope .landing-header__drawer-item{display:block}.ihabdevteam-core-scope .landing-header__drawer-item a{align-items:center;color:var(--landing-header-link-color,var(--color-deepGray));display:flex;font-size:15px;font-weight:500;min-height:48px;text-decoration:none;transition:color .2s}.ihabdevteam-core-scope .landing-header__drawer-item a:hover,.ihabdevteam-core-scope .landing-header__drawer-item a[aria-current=page]{color:var(--landing-header-link-hover,var(--color-main))}@media (max-width:960px){.ihabdevteam-core-scope .landing-header__links{display:none}.ihabdevteam-core-scope .landing-header__toggle{display:flex}}@media (min-width:961px){.ihabdevteam-core-scope .landing-header__drawer{display:none}}';ee(Rk);function yb({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:n,className:i,containerClassName:s,renderLink:c,menuLabel:d={open:"\uBA54\uB274 \uC5F4\uAE30",close:"\uBA54\uB274 \uB2EB\uAE30"}}){const[u,m]=l.useState(!1),h=s?`${s} landing-header__inner`:"landing-header__inner",p=(g,f)=>c?c(g,{onClick:f}):o.jsx("a",{href:g.href,onClick:f,"aria-current":g.current?"page":void 0,children:g.label});return o.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[o.jsxs("div",{className:h,children:[e!=null&&(()=>{const g=typeof e=="string"?o.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?o.jsx("a",{href:a,className:"landing-header__brand",children:g}):o.jsx("div",{className:"landing-header__brand",children:g})})(),r.length>0&&o.jsx("nav",{className:"landing-header__links",children:r.map(g=>o.jsx("span",{children:p(g)},g.href))}),o.jsxs("div",{className:"landing-header__actions",children:[n,r.length>0&&o.jsx("button",{type:"button",onClick:()=>m(g=>!g),"aria-expanded":u,"aria-controls":"landing-header-drawer","aria-label":u?d.close:d.open,className:u?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:o.jsxs("span",{className:"landing-header__burger",children:[o.jsx("span",{}),o.jsx("span",{}),o.jsx("span",{})]})})]})]}),r.length>0&&o.jsx("nav",{id:"landing-header-drawer",hidden:!u,className:"landing-header__drawer",children:o.jsx("div",{className:s??void 0,children:r.map(g=>o.jsx("span",{className:"landing-header__drawer-item",children:p(g,()=>m(!1))},g.href))})})]})}var $k=".ihabdevteam-core-scope .bottom-sticky{animation:bottom-sticky-in .4s cubic-bezier(.2,.9,.2,1) both;bottom:24px;bottom:var(--bottom-sticky-offset,24px);left:50%;max-width:680px;max-width:var(--bottom-sticky-max-width,680px);position:fixed;transform:translateX(-50%);width:calc(100% - 48px);z-index:500;z-index:var(--z-sticky,500)}@keyframes bottom-sticky-in{0%{opacity:0;transform:translateX(-50%) translateY(16px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:center;background:var(--bottom-sticky-bg,var(--color-pureWhite));border-radius:20px;border-radius:var(--radius-m,20px);box-shadow:0 8px 40px rgba(15,18,60,.18),0 2px 8px rgba(15,18,60,.06);display:flex;gap:16px;gap:var(--spacing-m,16px);justify-content:space-between;padding:12px 12px 12px 24px;transition:box-shadow .2s,transform .2s}.ihabdevteam-core-scope .bottom-sticky__inner--clickable{cursor:pointer}.ihabdevteam-core-scope .bottom-sticky__inner--clickable:hover{border:1px solid var(--color-main);box-shadow:0 16px 56px color-mix(in srgb,var(--color-main) 30%,transparent),0 4px 12px color-mix(in srgb,var(--color-main) 15%,transparent);transform:translateY(-4px)}.ihabdevteam-core-scope .bottom-sticky__content{align-items:center;display:flex;flex:1;gap:12px;gap:var(--spacing-s,12px);justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{align-items:center;color:var(--color-black);display:flex;gap:0;margin:0;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-highlight{background:linear-gradient(90deg,var(--color-main),var(--color-sub),var(--color-infoLink));-webkit-background-clip:text;background-clip:text;color:transparent;display:inline}.ihabdevteam-core-scope .bottom-sticky__tagline-part{align-items:center;display:flex;white-space:nowrap}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{display:block;height:32px;width:auto}@media (max-width:600px){.ihabdevteam-core-scope .bottom-sticky{bottom:16px;bottom:var(--bottom-sticky-offset,16px);width:calc(100% - 32px)}.ihabdevteam-core-scope .bottom-sticky__inner{align-items:stretch;flex-direction:column;gap:12px;gap:var(--spacing-s,12px);padding:16px;padding:var(--spacing-m,16px)}.ihabdevteam-core-scope .bottom-sticky__content{flex:none;gap:6px;justify-content:center}.ihabdevteam-core-scope .bottom-sticky__tagline{flex-wrap:wrap;justify-content:center;text-align:center;white-space:normal}.ihabdevteam-core-scope .bottom-sticky__tagline-logo{height:26px}}";ee($k);function xb({children:e,action:t,onClick:a,className:r}){const n=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return o.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:o.jsxs("div",{className:n,onClick:a,..._m(a),children:[o.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const uc=9,Ik=e=>Math.round(Math.min(uc,Math.max(0,e))/uc*100),zk=e=>e/100*uc,Cb={enabled:!0,type:"defaultNoise",level:4.5,speed:1,mainVolume:1,mainSpeed:1},_b=l.createContext(null);function pc(){return l.useContext(_b)}const hc=e=>`${ai()}/${e}`,wb=e=>Array.from({length:10},(t,a)=>hc(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),En={get defaultNoise(){return hc("noise1.mp3")},get street(){return wb("noise2")},get restaurant(){return wb("noise3")},get buzz(){return hc("noise4.mp3")}};function Ok(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return En.defaultNoise;case"street":return En.street[t];case"restaurant":return En.restaurant[t];case"buzz":return En.buzz;default:return null}}function Fk({noisePlayer:e,audioRef:t,playbackStateRef:a}){const r=l.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const n=l.useRef(null),[i,s]=l.useState(null),c=l.useRef(null),d=l.useRef(null),u=l.useRef(null),m=l.useRef(0),h=l.useRef(null),p=l.useCallback(()=>{u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),g=l.useCallback((v,y=250)=>{const _=n.current;if(!_||!_.src)return;m.current+=1,p();try{Ho(),r.current?.("noise",Vo(_))}catch{}const x=_.paused?0:_.volume;_.paused&&(_.volume=0),_.play().catch(()=>{});const C=performance.now(),k=()=>{const w=Math.min(1,(performance.now()-C)/y);try{_.volume=Math.max(0,Math.min(1,x+(v-x)*w))}catch{}w<1?u.current=requestAnimationFrame(k):u.current=null};u.current=requestAnimationFrame(k)},[p]),f=l.useCallback((v=250,y)=>{const _=n.current;if(!_||_.paused){y?.();return}const x=++m.current;p();const C=performance.now(),k=_.volume,w=()=>{const S=Math.min(1,(performance.now()-C)/v);try{_.volume=Math.max(0,k*(1-S))}catch{}if(S<1)u.current=requestAnimationFrame(w);else{u.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{_.pause()}catch{}y?.()}};u.current=requestAnimationFrame(w),h.current=setTimeout(()=>{if(h.current=null,m.current===x){u.current!==null&&(cancelAnimationFrame(u.current),u.current=null);try{_.paused||(_.volume=0,_.pause(),y?.())}catch{}}},v+150)},[p]);l.useEffect(()=>{const v=document.createElement("audio");return v.loop=!0,v.crossOrigin="anonymous",n.current=v,()=>{p();try{v.pause(),v.src=""}catch{}n.current=null}},[p]);const b=!!e?.settings.enabled&&(e?.settings.level??0)>0;return l.useEffect(()=>{if(!b)return;let v=0;const y=setInterval(()=>{const _=n.current;if(!_||_.paused){v=0;return}const x=t.current;if(x&&!x.paused&&!x.ended||a.current==="playing"){v=0;return}v+=1,v>=2&&(v=0,f())},400);return()=>clearInterval(y)},[f,b,t,a]),l.useEffect(()=>{const v=()=>{if(!document.hidden)return;const y=n.current;if(y&&!y.paused){p();try{y.pause()}catch{}}};return document.addEventListener("visibilitychange",v),()=>document.removeEventListener("visibilitychange",v)},[p]),l.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,level:e.settings.level,type:e.settings.type}:null},[e,e?.settings.enabled,e?.settings.level,e?.settings.type]),l.useEffect(()=>{const v=e?.settings,y=n.current;if(!y)return;if(!v||!v.enabled||v.level===0){f();return}const _=Math.min(1,v.level/9);if(c.current!==v.type){const x=Ok(v.type);x&&(c.current=v.type,s(x),f(150,()=>{y.src=x,y.load();const C=t.current;C&&!C.paused&&y.addEventListener("canplay",function k(){y.removeEventListener("canplay",k);const w=t.current;w&&!w.paused&&!w.ended&&g(_)})}))}else{const x=t.current,C=!!x&&!x.paused&&!x.ended;if(C&&y.paused&&y.src)g(_);else if(!y.paused)if(!C)f();else{p();const k=y.volume,w=performance.now(),S=()=>{const j=Math.min(1,(performance.now()-w)/150);try{y.volume=k+(_-k)*j}catch{}j<1?u.current=requestAnimationFrame(S):u.current=null};u.current=requestAnimationFrame(S)}}},[e?.settings,e?.settings.enabled,e?.settings.level,e?.settings.type,p,g,f,t]),l.useEffect(()=>{const v=n.current;if(v)try{v.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:n,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:p,fadeInNoise:g,fadeOutNoise:f}}function Wk({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:n,setProgress:i,setPlaybackState:s,setStateLocal:c,fadeInNoise:d,fadeOutNoise:u,noiseSettingsRef:m,onDoneRef:h,handleEndRef:p}){const g=l.useRef(null),f=l.useRef(0),b=l.useRef(null);l.useEffect(()=>()=>{try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}}catch{}},[]);const v=(x,C=1)=>{try{const k=(x||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(x||"").length);return Math.max(700,Math.round(k*300/Math.max(.25,C)))}catch{return 1200}},y=l.useCallback(x=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof h.current=="function"&&h.current(!0)}catch{}return}const C=window.speechSynthesis;try{try{C.cancel()}catch{}const k=x??e,w=(Array.isArray(k)?k[0]??"":k)||"",S=new SpeechSynthesisUtterance(w);try{S.rate=Math.max(.3,Math.min(3,t))}catch{}try{S.volume=Math.max(0,Math.min(1,a))}catch{}f.current=v(w,S.rate||1),g.current=performance.now(),i(0),s("playing"),c("playMode");const j=m.current;j?.enabled&&(j?.level??0)>0&&d(j.level/9);const A=()=>{try{const B=g.current||performance.now(),W=performance.now()-B,M=f.current||1200,T=Math.min(1,W/M);i(T);try{r.current&&(r.current.style.left=`${T*100}%`),n.current&&n.current.style.setProperty("--progress",String(T))}catch{}T<1&&(b.current=requestAnimationFrame(A))}catch{}};S.onend=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),i(1),s("stopped");try{p.current?.()}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{}},S.onstart=()=>{try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(A)}catch{}};try{C.speak(S)}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}},[e,t,a,d,r,n,i,s,c,m,h,p]),_=l.useCallback(()=>{try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),u(),g.current=null}catch{}s("stopped"),c("active"),i(0)},[u,s,c,i]);return{startTTS:y,stopTTS:_}}var Hk='.ihabdevteam-core-scope .audio-player{align-items:center;display:flex;flex-direction:column;width:100%}.ihabdevteam-core-scope .audio-player__no-waveform{align-items:center;align-self:flex-start;color:var(--color-lightGray);display:flex;gap:4px;margin:6px 0 0}.ihabdevteam-core-scope .audio-player__no-waveform .iconRenderer-icon{align-items:center;display:inline-flex}.ihabdevteam-core-scope .audio-player__panel{align-items:center;background:linear-gradient(90deg,var(--color-main),var(--color-sub));background:linear-gradient(var(--angle,90deg),var(--color-main),var(--color-sub));border-radius:var(--radius-m);display:flex;height:120px;position:relative;width:100%}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__panel{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__buttons,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__play,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__wave{pointer-events:none}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__buttons .button,.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__play .button{opacity:.7}.ihabdevteam-core-scope .audio-player__play{align-items:center;bottom:0;display:flex;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:relative;right:0;top:0;transition:opacity .16s ease,transform .16s ease;width:100%;z-index:10}.ihabdevteam-core-scope .audio-player__play.is-visible{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .audio-player__panel>.button{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity .16s ease,transform .16s ease;will-change:opacity,transform;z-index:35}.ihabdevteam-core-scope .audio-player__button{align-items:center;background:transparent;border:0;cursor:pointer;display:flex;inset:0;justify-content:center;padding:0;position:absolute;z-index:35}.ihabdevteam-core-scope .audio-player__button-triangle-wrap{align-items:center;display:flex;height:90px;justify-content:center;transition:transform .32s cubic-bezier(.2,.7,.2,1);width:90px}.ihabdevteam-core-scope .audio-player__button:hover .audio-player__button-triangle-wrap{transform:scale(1.18)}.ihabdevteam-core-scope .audio-player__button:active .audio-player__button-triangle-wrap{transform:scale(1.06)}.ihabdevteam-core-scope .audio-player__button-triangle{height:100%;width:100%}.ihabdevteam-core-scope .audio-player__button-triangle path{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.6}.ihabdevteam-core-scope .audio-player.is-disabled .audio-player__button{cursor:default;opacity:.5;pointer-events:none}.ihabdevteam-core-scope .audio-player__slider{align-items:center;bottom:50px;box-sizing:border-box;display:flex;left:20px;pointer-events:none;position:absolute;right:20px;top:20px}.ihabdevteam-core-scope .audio-player__buttons{align-items:center;border-radius:999px;bottom:10px;box-sizing:border-box;display:flex;gap:0;height:28px;justify-content:center;left:0;pointer-events:auto;position:absolute;right:0;z-index:40}.ihabdevteam-core-scope .audio-player__source-buttons{align-items:center;border:1px solid var(--color-white-a30);border-radius:var(--radius-m);display:inline-flex;justify-content:center;overflow:visible}.ihabdevteam-core-scope .audio-player__source-buttons .button{flex:0 0 auto;max-width:60px}.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\B2E4\\C74C],.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\C774\\C804],.ihabdevteam-core-scope .audio-player__buttons .button[aria-label=\\C815\\C9C0]{display:none}.ihabdevteam-core-scope .audio-player__buttons>.button{align-items:center;display:inline-flex;justify-content:center;margin:0;width:auto}.ihabdevteam-core-scope .audio-player__fill{backface-visibility:hidden;background:var(--color-pureWhite);border-radius:var(--radius-sm);height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) scaleY(0);transform-origin:center center;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .16s ease;width:8px;will-change:transform,opacity;z-index:70}.ihabdevteam-core-scope .audio-player__fill.is-visible{opacity:1}.ihabdevteam-core-scope .audio-player__fill.is-expanded{transform:translateX(-50%) translateY(-50%) scaleY(1)}.ihabdevteam-core-scope .audio-player__fill.is-paused{transition:opacity .16s ease}.ihabdevteam-core-scope .audio-player__fill.is-out{animation:audio-player-fill-out .28s cubic-bezier(.2,.8,.2,1) forwards}@keyframes audio-player-fill-out{0%{opacity:1;transform:translateX(-50%) translateY(-50%) scaleY(1)}to{opacity:0;transform:translateX(-50%) translateY(-50%) scaleY(0)}}.ihabdevteam-core-scope .audio-player__loading{align-items:center;background:transparent;border-radius:var(--radius-sm);color:rgba(0,0,0,.85);color:var(--audio-loading-foreground,rgba(0,0,0,.85));display:inline-flex;font-size:13px;gap:var(--spacing-xs);left:50%;padding:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:999}.ihabdevteam-core-scope .audio-player__debug{align-items:center;background:hsla(0,0%,100%,.06);border-radius:18px;color:#fff;display:flex;font-size:12px;gap:8px;padding:6px 10px;pointer-events:none;position:absolute;right:12px;top:12px}.ihabdevteam-core-scope .audio-player__debug-dot{border-radius:10px;box-shadow:0 0 6px rgba(0,0,0,.4);display:inline-block;height:10px;width:10px}.ihabdevteam-core-scope .audio-player__loading .audio-player__loading-text,.ihabdevteam-core-scope .audio-player__panel.is-loading .audio-player__loading-text{display:none}.ihabdevteam-core-scope .audio-player__loading-spinner{animation:audio-player-spinner .9s linear infinite;border:4px solid hsla(0,0%,100%,.2);border-radius:50%;border-top-color:#fff;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25));height:40px;width:40px}@keyframes audio-player-spinner{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .audio-player__wave{height:90%;position:absolute}.ihabdevteam-core-scope .audio-player__wave,.ihabdevteam-core-scope .audio-player__wave-inner{align-items:center;display:flex;justify-content:center;pointer-events:none;width:100%;z-index:60}.ihabdevteam-core-scope .audio-player__wave-inner{cursor:default;gap:3px;gap:var(--bar-gap,3px);height:100%;margin:0 auto;padding:0}.ihabdevteam-core-scope .audio-player__wave-inner:not(.is-ready) .audio-player__bar:after{opacity:0}.ihabdevteam-core-scope .audio-player__wave-inner.is-ready .audio-player__bar:after{animation:wave-bar-in .35s cubic-bezier(.22,.9,.3,1) both;animation-delay:0ms;animation-delay:calc(var(--i, 0)*2ms)}@keyframes wave-bar-in{0%{opacity:0;transform:translateY(-50%) scaleY(.05)}to{opacity:1;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15))}}.ihabdevteam-core-scope .audio-player__wave-inner.is-ready .audio-player__bar--hidden:after,.ihabdevteam-core-scope .audio-player__wave-noise.is-ready .audio-player__bar--hidden:after{animation:none;opacity:0}.ihabdevteam-core-scope .audio-player__wave-played{bottom:0;clip-path:inset(0 100% 0 0);clip-path:inset(0 calc((1 - var(--progress, 0))*100%) 0 0);left:0;pointer-events:none;position:absolute;right:0;top:0}.ihabdevteam-core-scope .audio-player__bar{box-sizing:border-box;flex:0 0 3px;flex:0 0 var(--bar-w,3px);height:100%;position:relative}.ihabdevteam-core-scope .audio-player__wave-unplayed .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15));transform-origin:center center;z-index:61}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-unplayed .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-played .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.15);transform:translateY(-50%) scaleY(var(--val,.15));transform-origin:center center;z-index:62}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-played .audio-player__bar:after{background:color-mix(in srgb,var(--color-lightMain),var(--color-lightSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-noise{align-items:center;bottom:0;display:flex;gap:3px;gap:var(--bar-gap,3px);justify-content:center;left:0;margin:0 auto;pointer-events:none;position:absolute;right:0;top:0;width:100%;z-index:58}.ihabdevteam-core-scope .audio-player__wave-noise .audio-player__bar:after{background:color-mix(in srgb,var(--color-deepMain),var(--color-deepSub) 0);border-radius:999px;content:"";height:100%;left:0;opacity:1;position:absolute;right:0;top:50%;transform:translateY(-50%) scaleY(.1);transform:translateY(-50%) scaleY(var(--val,.1));transform-origin:center center;z-index:58}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .audio-player__wave-noise .audio-player__bar:after{background:color-mix(in srgb,var(--color-deepMain),var(--color-deepSub) calc(var(--mix, 0)*100%))}}.ihabdevteam-core-scope .audio-player__wave-noise:not(.is-ready) .audio-player__bar:after{opacity:0}.ihabdevteam-core-scope .audio-player__wave-noise.is-ready .audio-player__bar:after{animation:wave-bar-in .35s cubic-bezier(.22,.9,.3,1) both;animation-delay:0ms;animation-delay:calc(var(--i, 0)*2ms)}.ihabdevteam-core-scope .audio-player__segments{align-items:center;display:flex;gap:3px;gap:var(--bar-gap,3px);height:100%;position:relative;width:100%}.ihabdevteam-core-scope .audio-player__segment{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;padding:10px 0;pointer-events:auto;position:relative}.ihabdevteam-core-scope .audio-player__segment-inner{align-items:center;display:flex;gap:3px;gap:var(--bar-gap,3px);height:100%;justify-content:center;width:100%}';ee(Hk);async function Vk(e,t,a){try{const r=window.AudioContext||window.webkitAudioContext,n=new r,i=await n.decodeAudioData(e.slice(0)),s=i.numberOfChannels>0?i.getChannelData(0):null;if(!s)return null;const c=a&&a>0?Math.min(s.length,Math.floor(a*i.sampleRate)):s.length,d=Math.max(t,c),u=Math.floor(d/t)||1,m=new Array(t).fill(0).map((h,p)=>{const g=p*u,f=Math.min(g+u,d);let b=0;for(let v=g;v<f;v++){const y=Math.abs(s[v]);y>b&&(b=y)}return b});try{n.close&&n.close()}catch{}return m}catch{return null}}async function kb(e,t,a){try{const r=await(await fetch(e)).arrayBuffer();return await Vk(r,t,a)}catch(r){try{const n=Yr(r)}catch{}return null}}const Sb=4;function Gk(e){const{src:t,segments:a,progress:r=0,waveProgressRef:n,noiseSrc:i,noiseLevel:s=0,noiseSpeed:c=1,totalDuration:d=0,mainVolume:u=1,onReadyChange:m,showSoundWaveForm:h=!0}=e,p=l.useRef(null),g=l.useRef(null),[f,b]=l.useState(null),[v,y]=l.useState(!1),[_,x]=l.useState(null),[C,k]=l.useState(2),[w,S]=l.useState(0),[j,A]=l.useState(null),[B,W]=l.useState(!1),M=3,T=3,$=1,E=300,H=l.useRef(0),te=l.useCallback(async(ne,ue)=>{const xe=++H.current,ve=()=>H.current===xe;try{if(y(!1),!ne){ve()&&b(null);return}let pe=ue;if(!pe)try{for(let De=0;De<4&&!(p.current||g.current);De++)await new Promise($e=>requestAnimationFrame($e));await new Promise(De=>requestAnimationFrame(De));const q=p.current,oe=g&&g.current?g.current:q?q.closest(".audio-player__wave"):null,ge=oe?oe.getBoundingClientRect():q?q.getBoundingClientRect():null,de=ge?Math.max(100,ge.width):320,I=ge?ge.height:0;I>0&&S(I),pe=Math.max($,Math.min(E,Math.floor((de+T)/(M+T))));const Z=pe*M,J=Math.max(0,pe-1),fe=J>0?(de-Z)/J:T;k(Math.max(0,fe))}catch{pe=120}const P=await kb(ne,pe);if(!ve())return;if(!P){b(null),y(!1);return}b(P),x(pe),y(!0)}catch{if(!ve())return;b(null),y(!1)}},[y,b,S,k,x]);l.useEffect(()=>{const ne=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;te(typeof ne=="string"?ne:void 0).catch(()=>{}),W(!1)},[t,a,te]),l.useEffect(()=>{let ne=!1;if(!i||!_){A(null);return}const ue=d>0?d*(c||1):void 0;return kb(i,_,ue).then(xe=>{ne||A(xe)}).catch(()=>{ne||A(null)}),()=>{ne=!0}},[i,_,d,c]);const Q=Math.max(0,Math.min(1,u)),ae=l.useMemo(()=>f&&f.length&&Math.max(...f)||1,[f]),N=_||40,L=l.useMemo(()=>Array.from({length:N}).map((ne,ue)=>{const xe=f&&f[ue]!=null?f[ue]:null,ve=xe==null?null:Math.min(1,xe/ae*Q),pe=ve!=null&&w>0&&ve*w<=Sb,P=ve==null?.15:pe?0:ve,q=N>1?ue/(N-1):0;return o.jsx("div",{className:pe?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":P,"--i":ue,"--mix":q}},ue)}),[N,f,ae,Q,w]),R={"--progress":String(Math.max(0,Math.min(1,r)))},z={"--bar-gap":`${C}px`},V=Math.max(0,Math.min(9,s))/9,X=v&&(i?!!j:!0);l.useEffect(()=>{X&&W(!0)},[X]);const F=B?v:X;l.useEffect(()=>{m?.(F)},[F,m]);const Y=_||40,O=l.useMemo(()=>Array.from({length:Y}).map((ne,ue)=>{const xe=j&&j[ue]!=null?j[ue]:null,ve=xe==null?0:Math.min(1,xe/ae*V),pe=w>0&&ve*w<=Sb,P=pe?0:ve,q=Y>1?ue/(Y-1):0;return o.jsx("div",{className:pe?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":P,"--i":ue,"--mix":q}},ue)}),[Y,j,ae,V,w]);return o.jsxs("div",{className:"audio-player__wave",ref:g,style:z,children:[i&&o.jsx("div",{className:`audio-player__wave-noise ${X?"is-ready":""}`,"aria-hidden":"true",children:O}),h&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${F?"is-ready":""}`,ref:p,children:L}),o.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${F?"is-ready":""}`,ref:n,style:R,children:L})]})]})}const qk={idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"};function mc(e,t){return new Promise((a,r)=>{const n=document.createElement("audio");let i=!1;const s=()=>{try{n.src=""}catch{}},c=()=>{if(i)return;i=!0;const u=isFinite(n.duration)&&n.duration||0;s(),a(u)},d=u=>{i||(i=!0,s(),t.rejectOnError?r(new Error(u)):a(0))};n.addEventListener("loadedmetadata",c),n.addEventListener("error",()=>d("audio load failed")),setTimeout(()=>d("audio load timeout"),t.timeoutMs),n.src=e})}const Yk=2e3;function Ab(e,t=Yk){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.addEventListener("canplay",n,{once:!0}),e.addEventListener("error",n,{once:!0}),setTimeout(n,t)})}function Uk({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=l.useRef(!1),n=l.useRef([]),i=l.useCallback(d=>{if(r.current=d,!d||!n.current.length)return;const u=n.current;n.current=[];for(const m of u)m()},[]),s=l.useCallback(()=>{r.current=!1},[]),c=l.useCallback(()=>!e&&!t||r.current?Promise.resolve():new Promise(d=>{const u=setTimeout(d,a);n.current.push(()=>{clearTimeout(u),d()})}),[e,t,a]);return l.useEffect(()=>()=>{const d=n.current;n.current=[];for(const u of d)u()},[]),{onReadyChange:i,waitForReady:c,markNotReady:s}}function Kk(){const e=l.useRef([]),t=l.useCallback(n=>(e.current.push(n),n),[]),a=l.useCallback(n=>{const i=new Set([...n].filter(Boolean));e.current=e.current.filter(s=>{if(i.has(s))return!0;try{URL.revokeObjectURL(s)}catch{}return!1})},[]),r=l.useCallback(()=>{a([])},[a]);return l.useEffect(()=>()=>{for(const n of e.current)try{URL.revokeObjectURL(n)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function Zk({offsetY:e=8}={}){const t=l.useRef(null),[a,r]=l.useState(null),n=l.useCallback(()=>r(null),[]),i=l.useCallback(()=>{try{const s=t.current?.getBoundingClientRect();if(!s)return;r({left:s.left,right:s.right,width:s.width,height:s.height,x:s.x,top:s.top+e,bottom:s.bottom+e,y:s.y+e,toJSON:s.toJSON.bind(s)})}catch{}},[e]);return l.useEffect(()=>{if(a)return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[a,n]),{ref:t,rect:a,show:i,hide:n}}function Xk({currentTime:e,sources:t,index:a,audioDuration:r}){const n=a||0,i=Array.isArray(t)&&t.length>0?t[n]:void 0,s=i?i.duration||r||0:r||0;if(!(s>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/s))}function Jk(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function Qk({ended:e,completedByEnd:t}){return!!e||!!t}function e7(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function t7(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function a7(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],n=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const s=i;n.push({code:s.code??null,src:s.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){n.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const s=String(i),c=a(s,t);c&&n.push({code:s,resolvedPath:c})}}return n}function o7({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:n}){const i=l.useRef(null),s=l.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=l.useCallback(()=>{if(i.current!==null)return;const u=()=>{try{const m=e.current,h=Xk({currentTime:m&&typeof m.currentTime=="number"?m.currentTime:0,sources:r.current,index:n.current,audioDuration:m&&m.duration?m.duration:0});try{t.current&&(t.current.style.left=`${h*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(h))}catch{}}catch{}i.current=requestAnimationFrame(u)};i.current=requestAnimationFrame(u)},[e,t,a,r,n]),d=l.useCallback(u=>{s();try{t.current&&(t.current.style.left=`${u*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(u))}catch{}},[s,t,a]);return l.useEffect(()=>s,[s]),{start:c,stop:s,settleTo:d}}function wr({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:n=!1,ttsText:i=null,className:s,showSoundWaveForm:c=!0,showNoiseWaveForm:d=!0}){const{t:u}=me.useTranslation(),m=e,h=pc(),p=l.useRef(h?.registerAnalyser);l.useEffect(()=>{p.current=h?.registerAnalyser});const g=l.useRef(null),f=l.useRef(null),b=l.useRef(null),v=Kk(),y=l.useRef(null),_=l.useRef(!1),x=l.useRef(0),C=l.useRef(null),{ref:k,rect:w,show:S,hide:j}=Zk();l.useEffect(()=>()=>{p.current?.("main",null),p.current?.("noise",null)},[]);const[A,B]=l.useState(!1),[W,M]=l.useState("idle"),[T,$]=l.useState("stopped"),E=l.useRef("stopped");l.useEffect(()=>{E.current=T},[T]);const[H,te]=l.useState(0),[Q,ae]=l.useState("active"),[N,L]=l.useState(null),[R,z]=l.useState(null),[V,X]=l.useState(0),[F,Y]=l.useState(!1),[O,ne]=l.useState(0),ue=h?.playbackRate??1,xe=h?.mainVolume??1,[ve,pe]=l.useState("idle"),[P,q]=l.useState(""),[oe]=l.useState("top"),ge=l.useRef(null),de=l.useRef(0),I=l.useRef(null),{start:Z,stop:J,settleTo:fe}=o7({audioRef:g,fillRef:f,waveProgressRef:I,sourcesRef:ge,currentIndexRef:de}),{onReadyChange:De,waitForReady:$e,markNotReady:Le}=Uk({showSoundWaveForm:c,showNoiseWaveForm:d}),Ee=l.useRef(null),je=l.useRef(n),Te=l.useRef(r),Ie=l.useRef(null),He=l.useRef(!1),[be,Ke]=l.useState(!1),Ve=l.useCallback(U=>{He.current=U,Ke(U)},[]),Re=l.useRef(null),{activeNoiseUrl:qe,noiseSettingsRef:vt,fadeInNoise:Ue,fadeOutNoise:Xe}=Fk({noisePlayer:h,audioRef:g,playbackStateRef:E}),{startTTS:ut,stopTTS:ze}=Wk({ttsText:i,playbackRate:ue,mainVolume:xe,fillRef:f,waveProgressRef:I,setProgress:te,setPlaybackState:$,setStateLocal:ae,fadeInNoise:Ue,fadeOutNoise:Xe,noiseSettingsRef:vt,onDoneRef:Te,handleEndRef:Re}),rt=Array.isArray(t)?t.filter(Boolean):t?[t]:[],et=(!rt||rt.length===0)&&!!i,We=Array.isArray(N)&&N.length>0?N:Array.isArray(R)&&R.length>0?R:null,Je=Math.max(Array.isArray(We)?We.length:0,rt.length),tt=l.useCallback(async(U,le=3,we=50)=>{for(let Se=0;Se<le;Se++)try{return await U.play(),!0}catch(Ae){if((Ae instanceof Error||typeof Ae=="object"&&Ae&&"name"in Ae?Ae.name:void 0)==="AbortError"){await new Promise(Oe=>setTimeout(Oe,we));continue}try{q(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}try{q(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[u]),xt=l.useCallback(()=>{const U=g.current;if(!U)return;const le=()=>{$("playing"),ae("playMode"),Y(!0),Z();try{Ho(),p.current?.("main",Vo(U))}catch{}const Ae=vt.current;Ae?.enabled&&(Ae?.level??0)>0&&Ue(Ae.level/9)},we=()=>{Qk({ended:!!U?.ended,completedByEnd:He.current})||($("paused"),J(),Xe())},Se=()=>{try{const Ae=ge.current,Oe=Jk(Ae,de.current);if(Oe!==null){de.current=Oe,X(Oe),Y(!0);const nt=Ae?.[Oe]&&Ae[Oe].src;if(nt&&U){U.src=nt,U.load(),tt(U).catch(()=>{});return}}}catch{}$("stopped"),te(1);try{if(U)try{U.currentTime=0}catch{}}catch{}J(),Y(!1),Xe();try{!je.current&&Re.current&&Re.current()}catch{}};return U.addEventListener("play",le),U.addEventListener("pause",we),U.addEventListener("ended",Se),()=>{try{U.removeEventListener("play",le),U.removeEventListener("pause",we),U.removeEventListener("ended",Se),J()}catch{}}},[Ue,Xe,tt,vt,Z,J]);l.useEffect(()=>xt(),[xt]),l.useEffect(()=>{je.current=n},[n]),l.useEffect(()=>{Te.current=r},[r]),l.useEffect(()=>{if(n||Q!=="active")return;const U=C.current;if(!U)return;let le=null;const we=requestAnimationFrame(()=>{try{const Se=U.getTotalLength();if(!Se)return;const Ae=Se*.2;U.style.strokeDasharray=`${Se-Ae} ${Ae}`;const Oe="triFlow_"+Math.random().toString(36).slice(2);le=document.createElement("style"),le.textContent=`@keyframes ${Oe}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Se}}}`,document.head.appendChild(le),U.style.animation=`${Oe} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(we),le?.remove()}},[Q,n]),l.useEffect(()=>{ge.current=N},[N]),l.useEffect(()=>{de.current=V},[V]),l.useEffect(()=>{const U=b.current,le=y.current;if(!U||!le)return;let we=null;const Se=32,Ae=60,Oe=()=>{try{const ct=Array.from(U.querySelectorAll(":scope > .button"));let ce=0;ct.forEach(Zt=>{if(Zt===le)return;const Eo=Zt.getBoundingClientRect();ce+=Eo.width});const Be=U.getBoundingClientRect().width,at=Math.max(0,Math.floor(Be-ce-8)),Ct=Je;if(!Ct||at<=0){Array.from(le.children).forEach(Zt=>{try{Zt.style.width=""}catch{}});return}let _t=Math.floor(at/Ct);_t>Ae&&(_t=Ae),_t<Se&&(_t=Math.max(Se,Math.floor(at/Ct))),Array.from(le.querySelectorAll(".button")).forEach(Zt=>{try{Zt.style.width=`${_t}px`}catch{}})}catch{}},nt=requestAnimationFrame(Oe);try{we=new ResizeObserver(()=>{requestAnimationFrame(Oe)}),we.observe(U),we.observe(le),window.addEventListener("resize",Oe)}catch{}return()=>{try{cancelAnimationFrame(nt)}catch{}try{we&&(we.disconnect(),we=null)}catch{}try{window.removeEventListener("resize",Oe)}catch{}}},[N,R,Je]),l.useEffect(()=>()=>{try{Ee.current&&(clearTimeout(Ee.current),Ee.current=null),Ie.current&&(clearTimeout(Ie.current),Ie.current=null)}catch{}},[]);const Et=(U,le)=>{L(U),ne(le),Le(),z(e7(U)),ge.current=U},it=async(U,le)=>{Ve(!1),_.current=!1,U.src=le,U.load(),await Ab(U),await $e(),B(!1),await tt(U),ae("playMode"),X(0),Y(!0)},Ht=async(U,le=!1)=>{const we=g.current;B(!0),M("measuring_duration");try{const Se=await mc(U,{timeoutMs:1e4,rejectOnError:!0});Et([{src:U,objectUrl:null,duration:Se}],Se),M("ready"),le&&we&&await it(we,U)}finally{_.current=!1,B(!1)}},mt=async(U,le=!1)=>{const we=g.current;B(!0),M("measuring_duration");try{const Se=await Promise.all(U.map(Oe=>mc(Oe,{timeoutMs:1e4}))),Ae=U.map((Oe,nt)=>({src:Oe,objectUrl:null,duration:Se[nt]||0}));Et(Ae,t7(Ae)),M("ready"),le&&we&&Ae.length>0&&await it(we,Ae[0].src)}finally{_.current=!1,B(!1)}},Vt=async(U=!1,le=!0)=>{const we=g.current,Se=t?Array.isArray(t)?t:[t]:[];if(!(!Se||Se.length===0||!Se.some(Boolean))&&!_.current){_.current=!0,le&&B(!0),M("resolving");try{const Ae=a7(t,a,Dr),Oe=[];let nt=0;for(const ct of Ae){let ce=ct.src??null,Be=null;if(!ce&&ct.resolvedPath){try{M("getting_signed_url"),ce=await Oo(ct.resolvedPath)}catch{ce=null}if(!ce)try{M("downloading");const Ct=await Er(ct.resolvedPath);if(Ct){const _t=Ct instanceof Blob?Ct:new Blob([Ct]);Be=v.track(URL.createObjectURL(_t)),ce=Be}}catch{M("error");try{q(u("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),ae("active")}catch{}}}if(!ce)continue;let at=0;try{M("measuring_duration"),at=await mc(ce,{timeoutMs:3e3})}catch{at=0}nt+=at||0,Oe.push({...ct,src:ce,objectUrl:Be,duration:at})}if(Et(Oe,nt),Oe.length>0&&U&&we){const ct=Oe[0];Ve(!1);try{v.keepOnly(Oe.map(ce=>ce.objectUrl))}catch{}if(M("ready"),_.current=!1,ct.src&&we)try{we.src=ct.src,we.load(),await Ab(we),await $e(),le&&B(!1),we&&await tt(we)}catch{le&&B(!1)}else le&&B(!1);ae("playMode"),X(0),Y(!0)}}finally{_.current=!1,le&&B(!1),M(Ae=>Ae==="ready"?"ready":"idle")}}},ia=async()=>{const U=g.current;if(!(!U&&!et)){if(et){const le=window.speechSynthesis;if(Q==="active"){const we=Fo(),Se=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(we&&Se.length>0){ae("load"),B(!0),M("resolving"),_.current=!0;try{const Ae=await Promise.all(Se.map(Oe=>Promise.resolve(we(Oe))));Ae.length>1?await mt(Ae,!0):await Ht(Ae[0],!0)}catch{_.current=!1,B(!1),ae("active"),ut(Se[0]||void 0)}return}ut(Se[0]||void 0);return}if(Q==="playMode"){if(U){if(U.paused){if(He.current){await Gt();return}await tt(U),$("playing")}else U.pause(),$("paused");return}try{if(le&&le.paused)try{le.resume(),$("playing")}catch{}else try{le.pause(),$("paused")}catch{}}catch{}}return}if(Q==="active"){if(n&&Array.isArray(ge.current)&&ge.current.length>0){const le=ge.current[0];try{if(le.src&&U)try{U.src=le.src,U.load(),U&&await tt(U)}catch{}ae("playMode"),X(0),Y(!0);return}catch{}}ae("load"),await Vt(!0);return}if(Q!=="load"&&(Q==="playMode"||Q==="active"))try{if(U&&U.paused){if(He.current){await Gt();return}U&&await tt(U),$("playing")}else U&&(U.pause(),$("paused"))}catch(le){(le instanceof Error||typeof le=="object"&&le&&"name"in le)&&le.name}}},Gt=async()=>{const U=g.current;if(U)try{const le=ge.current;if(Array.isArray(le)&&le.length>1){await $t(0);return}Ve(!1);try{U.currentTime=0}catch{}U&&await tt(U),$("playing"),ae("playMode")}catch{}},Ea=()=>{if(et){ze();return}const U=g.current;try{if(U){try{U.pause()}catch{}try{U.currentTime=0}catch{}}}catch{}Xe(),$("stopped"),ae("active"),te(0),Y(!1)},sa=async(U,{sameSegment:le=!1}={})=>{const we=++x.current,Se=g.current,Ae=ge.current?.[U]?.src;try{if(Ve(!1),X(U),Y(!0),de.current=U,!Ae||!Se||(le||Le(),Se.src=Ae,Se.load(),le||await $e(),we!==x.current)||(await tt(Se),we!==x.current))return;$("playing"),ae("playMode")}catch{}},Kt=async()=>{const U=ge.current,le=de.current||0;if(!U||le<=0){await Gt();return}await sa(le-1)},ja=async()=>{const U=ge.current,le=de.current||0;if(!U||le>=U.length-1){Ea();return}await sa(le+1)},jt=()=>{if(He.current)return;const U=200,le=340;Ve(!0);try{te(1)}catch{}fe(1);try{pe("hold")}catch{}try{const we=g.current,Se=et&&!!we?.src;if(!et||Se){if(we){we.pause();try{we.currentTime=0}catch{}}}else ze();Xe()}catch{}try{$("stopped")}catch{}if(Y(!1),!je.current)try{Ie.current&&(clearTimeout(Ie.current),Ie.current=null),Ie.current=setTimeout(()=>{try{pe("out")}catch{}Ie.current=setTimeout(()=>{try{typeof Te.current=="function"&&Te.current(!0)}catch{}try{pe("idle")}catch{}Ie.current=null},le)},U)}catch{}};l.useEffect(()=>{Re.current=jt});const Ga=l.useCallback(()=>q(""),[]),$t=async U=>{(ge.current||[])[U]&&await sa(U,{sameSegment:U===de.current})},ya=T==="playing",qa=l.useMemo(()=>{if(!R||R.length<=1)return R;const U=R[V];return U?[U]:R},[R,V]),Qe=n===!0;l.useEffect(()=>{try{const U=g.current;U&&typeof U.playbackRate=="number"&&(U.playbackRate=ue||1)}catch{}},[ue]),l.useEffect(()=>{try{const U=g.current;U&&(U.volume=Math.max(0,Math.min(1,xe)))}catch{}},[xe]);const It=ve==="hold",kt=ve==="out",xa=Q==="playMode"&&!A&&!be||It||kt,la=T!=="stopped"||It||kt,ie=T==="paused",ye=Math.max(0,Math.min(100,(H||0)*100)),Ce=_e("audio-player__fill",xa?"is-visible":"",la?"is-expanded":"",ie?"is-paused":"",kt?"is-out":"");return o.jsxs("div",{className:`audio-player ${Qe?"is-disabled":""}${s?` ${s}`:""}`,role:"group","aria-label":typeof m=="string"?m:void 0,children:[o.jsxs("div",{className:`audio-player__panel ${ya?"is-playing":""} ${A?"is-loading":""} ${Q!=="default"?"is-revealed":""}`,children:[A?o.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[o.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),o.jsx("span",{className:"audio-player__loading-text",children:qk[W]})]}):null,Q==="active"?o.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{j(),ia()},"aria-label":typeof m=="string"?m:u("training.listen","\uB4E3\uAE30"),onMouseEnter:S,onMouseLeave:j,onFocus:S,onBlur:j,children:o.jsx("span",{ref:k,className:"audio-player__button-triangle-wrap",children:o.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:o.jsx("path",{ref:C,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,w&&o.jsx(aa,{anchorRect:w,text:typeof m=="string"&&m?m:u("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),o.jsxs("div",{className:`audio-player__play ${Q==="playMode"||ya?"is-visible":""}`,children:[o.jsxs("div",{ref:b,className:"audio-player__buttons",children:[o.jsx(re,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:Kt,ariaLabel:u("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Q!=="playMode"}),o.jsx(re,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:ya?"pause":"play",onClick:ia,ariaLabel:u("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:Q!=="playMode"}),o.jsx(re,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Ea,ariaLabel:u("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Q!=="playMode"}),Je>1?o.jsx("div",{ref:y,className:"audio-player__source-buttons",children:Array.from({length:Je}).map((U,le)=>o.jsx(re,{size:32,type:"dot",shape:"pill",useBorder:!1,label:String(le+1),onClick:()=>{try{$t(le)}catch{}},ariaLabel:u("training.sourcePlay",{n:le+1}),variant:"transparent-white",selected:F&&V===le,disabled:Q!=="playMode"||!(Array.isArray(N)&&N[le]),showTooltipInfo:!0},le))}):null,!Array.isArray(N)||N.length<=1?o.jsx(re,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Gt,ariaLabel:u("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:Q!=="playMode"}):null,o.jsx(re,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:ja,ariaLabel:u("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:Q!=="playMode"}),o.jsx(re,{size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:jt,ariaLabel:u("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:Q!=="playMode"})]}),o.jsxs("div",{className:"audio-player__slider",children:[o.jsx("div",{className:Ce,ref:f,style:{left:`${ye}%`},"aria-hidden":"true"}),(c||d)&&o.jsx(Gk,{segments:qa,progress:H,totalDuration:O,onSegmentClick:$t,waveProgressRef:I,showSoundWaveForm:c,noiseSrc:d&&h?.settings.enabled&&(h?.settings.level??0)>0?qe:null,noiseLevel:h?.settings.level??0,noiseSpeed:h?.settings.speed??1,mainVolume:xe,onReadyChange:De})]})]}),o.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!c&&o.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[o.jsx(Fe,{icon:"triangle-alert",size:14}),u("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),o.jsx(ro,{message:P,position:oe,onClose:Ga})]})}var r7=".ihabdevteam-core-scope .tooltip-textbox{background:var(--color-deepWhite);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-sizing:border-box;max-width:520px;padding:var(--spacing-content)}.ihabdevteam-core-scope .tooltip-textbox__root{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .tooltip-textbox__box{background:transparent}.ihabdevteam-core-scope .tooltip-textbox__label{color:var(--color-darkGray)}.ihabdevteam-core-scope .tooltip-textbox__text{color:var(--color-darkGray);overflow-wrap:anywhere;white-space:normal;word-break:keep-all}.ihabdevteam-core-scope .tooltip-textbox__line{align-items:center;display:flex;gap:var(--spacing-s);margin-bottom:0;min-height:60px;padding:10px 0}.ihabdevteam-core-scope .tooltip-textbox__line:last-child{margin-bottom:0}.ihabdevteam-core-scope .tooltip-textbox__line:not(:last-child){border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__line:not(:last-child){border-bottom-color:hsla(0,0%,100%,.06)}.ihabdevteam-core-scope .tooltip-textbox__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;min-width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .tooltip-textbox__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}.ihabdevteam-core-scope .tooltip-textbox__line-number{color:#fff;min-width:auto;text-align:center}.ihabdevteam-core-scope .tooltip-textbox__line-text{flex:1 1 auto}.ihabdevteam-core-scope .tooltip-textbox__buttons{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:center;margin-top:10px;position:relative}.ihabdevteam-core-scope .tooltip-textbox.is-dark{background:var(--color-darkGray);border-color:var(--color-gray)}.ihabdevteam-core-scope .tooltip-textbox.is-dark .tooltip-textbox__text{color:var(--color-deepWhite)}";ee(r7);function No(e){const{t}=me.useTranslation(),{text:a,label:r,anchorRect:n=null,onClose:i,closeOnOutsideClick:s=!0,isMobilePopup:c=!1}=e||{},[d,u]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",d)}catch{}},[d]);const{increase:m,decrease:h,canIncrease:p,canDecrease:g,fontSize:f,lineHeight:b}=sn({storageKey:"tooltip-fontScale"}),v=l.useCallback(()=>u(k=>k==="dark"?"light":"dark"),[]),y=l.useCallback(k=>{try{k.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),_=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],x={fontSize:`${f}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},C=o.jsxs("div",{className:`tooltip-textbox__root ${d==="dark"?"is-dark":""}`,children:[o.jsxs("div",{className:"tooltip-textbox__box",children:[r&&o.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),o.jsx("div",{className:"tooltip-textbox__text body-1",style:x,children:_.map((k,w)=>o.jsxs("div",{className:"tooltip-textbox__line",children:[_.length>1?o.jsx("div",{className:"tooltip-textbox__marker",children:o.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,o.jsx("span",{className:"tooltip-textbox__line-text",children:k})]},w))})]}),o.jsxs("div",{className:"tooltip-textbox__buttons",children:[o.jsx(re,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:h,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!g}),o.jsx(re,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:d==="dark"?"transparent-white":"transparent-gray",disabled:!p}),o.jsx(re,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:v,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),o.jsx(re,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:y,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:d==="dark"?"transparent-white":"transparent-gray"})]})]});return n?o.jsx(Sa,{anchorRect:n,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:s,isMobilePopup:c,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:C}):o.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:C})}var n7=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}.ihabdevteam-core-scope .training-steps{box-sizing:border-box;display:flex;flex-direction:column;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step{align-items:stretch;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--spacing-m);overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__content{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--spacing-s);gap:var(--spacing-m);min-width:0;overflow:visible;width:100%}.ihabdevteam-core-scope .training-step__title{color:#0b2b35;color:var(--text,#0b2b35);margin:0;text-align:left}.ihabdevteam-core-scope .training-step__buttons{-ms-overflow-style:none;align-items:stretch;display:flex;flex-direction:row;gap:var(--spacing-content);overflow-x:auto;scrollbar-width:none;width:100%}.ihabdevteam-core-scope .training-step__buttons::-webkit-scrollbar{display:none}.ihabdevteam-core-scope .training-step__buttons>*{align-self:stretch;flex:1 1 0;margin:0;min-width:0}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow-x:visible}.ihabdevteam-core-scope .training-step__buttons.training-step__buttons--wrap-3>*{width:100%}.ihabdevteam-core-scope .training-step__buttons .button{align-items:center;align-self:stretch;display:flex}@media (max-width:640px){.ihabdevteam-core-scope .training-step{flex-direction:row;gap:10px}}.ihabdevteam-core-scope .training-step__cards{box-sizing:border-box;display:flex;gap:var(--spacing-s);width:100%}@media (max-width:767px){.ihabdevteam-core-scope .training-step__cards{grid-gap:var(--spacing-s);display:grid;gap:var(--spacing-s);grid-template-columns:repeat(3,1fr)}}.ihabdevteam-core-scope .training-step__listen-sticky{width:100%}.ihabdevteam-core-scope .training-step.training-step--has-nested .training-step__content{margin-bottom:100px}.ihabdevteam-core-scope .training-steps>.training-step:last-child .training-step__content{margin-bottom:0}.ihabdevteam-core-scope .training-step:not(.training-step--last) .training-step__content{margin-bottom:var( --margin-page)}.ihabdevteam-core-scope .training-step.training-step--last .training-step__content{margin-bottom:0}";ee(n7);var i7='.ihabdevteam-core-scope .ts-bullet{--dot-size:28px;--dot-gap:10px;align-items:center;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start;position:relative;width:28px;width:var(--dot-size)}.ihabdevteam-core-scope .bullet__dot{align-items:center;border:2px solid rgba(43,138,125,.12);border-radius:50%;display:flex;height:var(--dot-size);justify-content:center;width:var(--dot-size);z-index:2}.ihabdevteam-core-scope .bullet__icon{align-items:center;color:var(--color-darkGray);display:inline-flex;height:20px;justify-content:center;position:relative;width:20px;z-index:1}.ihabdevteam-core-scope .bullet__icon-img{display:block;height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-mask{background-color:currentColor;height:100%;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:100%}.ihabdevteam-core-scope .bullet__icon-svg svg{fill:currentColor;height:100%;width:100%}.ihabdevteam-core-scope .ts-bullet__line{background:var(--color-whiteLine);border-radius:var(--radius-xs);bottom:20px;left:50%;position:absolute;top:calc(var(--dot-size) + var(--dot-gap));transform:translateX(-50%);width:2px;z-index:1}.ihabdevteam-core-scope .ts-bullet--done .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--active .bullet__icon{color:#fff}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__icon{color:transparent}.ihabdevteam-core-scope .ts-bullet--done .bullet__dot{border:2px solid var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot{background-color:var(--color-main);position:relative}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after,.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:before{animation:bullet-ripple 3s cubic-bezier(.2,.6,.2,1) infinite;background:var(--color-main);border-radius:50%;content:"";inset:0;opacity:.5;pointer-events:none;position:absolute}.ihabdevteam-core-scope .ts-bullet--active .bullet__dot:after{animation-delay:1.5s;opacity:.3}@keyframes bullet-ripple{0%{opacity:.5;transform:scale(1)}to{opacity:0;transform:scale(2.2)}}.ihabdevteam-core-scope .ts-bullet--disabled .bullet__dot{border:2px solid var(--color-whiteLine)}.ihabdevteam-core-scope .ts-bullet--done .bullet__line{background-color:var(--color-main)}.ihabdevteam-core-scope .ts-bullet--active .bullet__line,.ihabdevteam-core-scope .ts-bullet--disabled .bullet__line{background-color:var(--color-whiteLine)}.ihabdevteam-core-scope .training-step--last .ts-bullet__line,.ihabdevteam-core-scope .training-step.training-step--last .ts-bullet__line{display:none}@media (max-width:1024px){.ihabdevteam-core-scope .ts-bullet{--dot-size:26px}}@media (max-width:768px){.ihabdevteam-core-scope .ts-bullet{--dot-size:24px}}';ee(i7);function bc({state:e="disabled"}){const{t}=me.useTranslation();return o.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[o.jsx("div",{className:"bullet__dot",children:o.jsx(Fe,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),o.jsx("div",{className:"ts-bullet__line"})]})}var s7=".ihabdevteam-core-scope .training-step__title-row{align-items:center;display:flex;gap:var(--spacing-xs);padding-right:72px;position:relative;width:100%}.ihabdevteam-core-scope .training-step__title-row .training-step__title{color:var(--color-black);margin:0;padding:0}.ihabdevteam-core-scope .training-step__title--faded .training-step__title-text{background-color:var(--color-darkWhite);border-radius:var(--radius-xs);color:transparent;opacity:1;transition:color .14s ease,opacity .14s ease}.ihabdevteam-core-scope .training-step__title-row .title-controls{align-items:center;display:flex;gap:6px;margin-left:auto}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons{align-items:center;display:inline-flex;gap:6px;justify-content:center;overflow:visible;position:absolute;right:0;top:50%;transform:translateY(-50%)}.ihabdevteam-core-scope .training-step__title-row .title-controls .title-buttons .button28{align-items:center;display:inline-flex;justify-content:center}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--disabled .title-controls{opacity:.6;pointer-events:none}.ihabdevteam-core-scope .training-step__title-row--active .title-controls,.ihabdevteam-core-scope .training-step__title-row--done .title-controls{opacity:1;pointer-events:auto}.ihabdevteam-core-scope .training-step__title-row--disabled .training-step__title,.ihabdevteam-core-scope .training-step__title-row--done .training-step__title{color:var(--color-disabled)}.ihabdevteam-core-scope .training-step__title-row--active .training-step__title{color:var(--color-black)}";ee(s7);function gc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:n=!1,onPreviewTextBtn:i,previewText:s=null,useFaded:c,usePlayAllBtn:d=!1,onPlayAll:u,playAllActive:m=!1}){const{t:h}=me.useTranslation(),p=oa("(max-width: 767px)"),g=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),f=`training-step__title-row training-step__title-row--${r}`.trim(),b=l.useRef(null),[v,y]=l.useState(!1),[_,x]=l.useState(null),[C,k]=l.useState(null),w=l.useRef(i);l.useEffect(()=>{w.current=i});const S=l.useMemo(()=>s==null?"":typeof s=="string"||typeof s=="number"?String(s):Array.isArray(s)&&s.every(B=>typeof B=="string"||typeof B=="number")?s.join(""):"",[s]),j=l.useCallback(()=>{y(!1),x(null),k(null)},[]);l.useEffect(()=>{if(!v)return;let B;try{typeof w.current=="function"&&(B=w.current())}catch{}if(B===!1){j();return}k(typeof B<"u"&&B!==null?B:null)},[S]);const A=l.useCallback(()=>{let B;try{typeof i=="function"&&(B=i())}catch{}if(B!==!1){if(k(typeof B<"u"&&B!==null?B:s),!b.current){y(W=>!W);return}if(v)y(!1),x(null),k(null);else{const W=b.current.getBoundingClientRect();x(W),y(!0)}}},[i,s,v]);return o.jsxs("div",{className:f,children:[o.jsx("p",{className:g,children:o.jsx("span",{className:"training-step__title-text",children:e??t})}),n||d?o.jsxs("div",{className:"title-controls",children:[o.jsxs("div",{className:"title-buttons",children:[d&&o.jsx(re,{size:32,type:p?"dot":"bar",icon:"play-circle",label:p?void 0:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:u,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m}),n&&o.jsx("div",{ref:b,children:o.jsx(re,{size:32,type:p?"dot":"bar",icon:"eye",label:p?void 0:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:v,onClick:A,variant:r==="disabled"?"disabled":"default",disabled:!s&&typeof i!="function"})})]}),v&&o.jsx(No,{text:C??s,label:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:_,onClose:j,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function fc(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Va({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:n={},children:i,className:s="",onDone:c=void 0,useTitleFaded:d=void 0}){const{t:u}=me.useTranslation(),[m,h]=l.useState(()=>fc(e,t));l.useEffect(()=>{const k=fc(e,t);if(k!==m){const w=setTimeout(()=>h(k),0);return()=>clearTimeout(w)}},[e,t,m]);const p=l.useCallback((...k)=>{fc(e,t)==="done"||m==="done"||typeof c=="function"&&c(...k)},[e,t,m,c]),[g,f]=l.useState(!1),[b,v]=l.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),y=l.useCallback(k=>{if(!k)return null;try{const w=k;if(typeof k=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const A=w.currentTarget??w.target;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect()}if(k instanceof DOMRect)return k;const S=k;if(S&&typeof S.getBoundingClientRect=="function")return S.getBoundingClientRect();const j=k?.current;return j&&typeof j.getBoundingClientRect=="function"?j.getBoundingClientRect():null}catch{return null}},[]),_=l.useCallback((k,{text:w="",label:S="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:j=!1,alignX:A="center",alignY:B="top"}={})=>{const W=y(k);v({text:w,label:S,anchorRect:W,backdrop:j,alignX:A,alignY:B}),f(!0)},[y]),x=l.useCallback(()=>{f(!1),v(k=>({...k,anchorRect:null}))},[]),C=l.Children.map(i,k=>{if(l.isValidElement(k)){const w=k;if(typeof w.type=="string")return w;const S=w.props??{},j=typeof S.onDone=="function"?S.onDone:p,A=typeof S.disabled=="boolean";let B=m==="disabled";return A&&(B=!!S.disabled),l.cloneElement(w,{onDone:j,disabled:B,showTooltip:_,hideTooltip:x})}return k});return o.jsxs("div",{className:`training-step training-step--${m} ${a?"training-step--last":""} ${s}`,"aria-current":m==="active",children:[o.jsx(bc,{state:m}),o.jsxs("div",{className:"training-step__content",children:[o.jsx(gc,{state:m,title:r,...n,useFaded:d}),C]}),g?o.jsx(Sa,{anchorRect:b.anchorRect,backdrop:b.backdrop,onClose:x,ariaLabel:u("tooltip.textbox","\uBCF8\uBB38"),children:o.jsx(No,{text:b.text,onClose:x})}):null]})}var l7='.ihabdevteam-core-scope .training-text-box{background:var(--color-darkWhite);border:1px solid var(--color-deepWhite);border-radius:var(--radius-m);color:var(--color-black);display:flex;flex-direction:column;max-width:100%;min-height:160px;overflow:visible;overflow-wrap:anywhere;padding:var(--spacing-content);position:relative;text-align:center;word-break:keep-all}.ihabdevteam-core-scope .training-text-box--disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-text-box--disabled .training-text-box__inner{visibility:hidden}.ihabdevteam-core-scope .training-text-box--disabled:after{content:"";pointer-events:none;position:absolute;z-index:5}.ihabdevteam-core-scope .training-text-box__preview{align-items:center;display:flex;justify-content:center;left:50%;pointer-events:auto;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:60}.ihabdevteam-core-scope .training-text-box__buttons{border-radius:999px;gap:4px;height:28px;left:0;right:0}.ihabdevteam-core-scope .training-text-box__area,.ihabdevteam-core-scope .training-text-box__buttons{align-items:center;box-sizing:border-box;display:flex;justify-content:center;pointer-events:auto;position:relative;z-index:40}.ihabdevteam-core-scope .training-text-box__area{flex:1 1 auto;margin:0 auto;min-height:0;text-align:center;width:100%}.ihabdevteam-core-scope .training-text-box--active,.ihabdevteam-core-scope .training-text-box--done{background-color:var(--color-white);border-color:var(--color-main);pointer-events:auto;transition:box-shadow .18s ease,transform .18s ease,opacity .16s ease;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.ihabdevteam-core-scope .training-text-box.is-dark{background:var(--color-darkGray);border:1px solid var(--color-black);color:var(--color-deepWhite)}.ihabdevteam-core-scope .training-text-box .training-text-box__inner{display:block;overflow-wrap:anywhere;text-align:center;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .training-text-box.is-dark .tooltip-textbox__text,.ihabdevteam-core-scope .training-text-box.is-dark .training-text-box__inner{color:var(--color-deepWhite)}';ee(l7);function vc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=me.useTranslation(),[n,i]=l.useState("disabled"),[s,c]=l.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});l.useEffect(()=>{try{localStorage.setItem("tooltip-theme",s)}catch{}},[s]);const d=()=>c(A=>A==="dark"?"light":"dark"),{increase:u,decrease:m,canIncrease:h,canDecrease:p,fontSize:g,lineHeight:f}=sn({storageKey:"textbox_fontScale"}),[b,v]=l.useState(""),y=l.useCallback(()=>i("active"),[]),_=l.useCallback(()=>v(""),[]),x=A=>{try{v(A)}catch{}},C=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");l.useEffect(()=>{if(t!=="disabled"){const A=setTimeout(()=>i(t),0);return()=>clearTimeout(A)}},[t]);const k=l.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]);l.useEffect(()=>{const A=setTimeout(()=>i("disabled"),0);return()=>clearTimeout(A)},[k]);const w=t==="disabled"?n:t,S=w==="disabled"?"training-text-box--disabled":w==="active"?"training-text-box--active":w==="done"?"training-text-box--done":"",j=l.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${f}px`}),[g,f]);return o.jsxs("div",{className:`training-text-box ${S} ${w!=="disabled"&&s==="dark"?"is-dark":""}`,children:[w==="disabled"&&o.jsx("div",{className:"training-text-box__preview",children:o.jsx(re,{size:48,type:"bar",onClick:y,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),o.jsx("div",{className:"training-text-box__area","aria-hidden":w==="disabled",children:o.jsx("span",{className:"training-text-box__inner h3",style:j,children:k})}),w!=="disabled"&&o.jsxs("div",{className:"training-text-box__buttons","aria-hidden":w==="disabled",children:[o.jsx(re,{size:32,type:"dot",onClick:m,onDisabledClick:()=>x(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:s==="dark"?"transparent-white":"transparent-gray",disabled:!p,useBorder:!1,showTooltipInfo:!0,...!C&&{width:"60px"}}),o.jsx(re,{size:32,type:"dot",onClick:u,onDisabledClick:()=>x(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:s==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!C&&{width:"60px"}}),o.jsx(re,{size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:s==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:s==="dark"?"transparent-white":"transparent-gray"})]}),o.jsx(ro,{message:b,position:"top",onClose:_})]})}function jn({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:n,onDone:i,onChange:s,answer:c,wrongAnswers:d,choices:u,multiSelect:m=!1,correctCount:h=0,useDisabledCovered:p=!1,choiceIcons:g,shuffleChoices:f=!0}){const{t:b}=me.useTranslation(),v=r??b("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),y=typeof e=="number"?e:-1,_=typeof t!="number"?"disabled":y<t?"done":y===t?"active":"disabled",x=Array.isArray(u)&&u.length?u:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,C=d?d.join("||"):"",k=u?u.join("||"):"",[w,S]=l.useState(()=>Array.isArray(x)?f?Ge(x):x.slice():void 0);l.useEffect(()=>{Array.isArray(x)&&x.length?S(f?Ge(x):x.slice()):S(void 0)},[c,C,k,f]);const[j,A]=l.useState(null),[B,W]=l.useState(()=>new Set);l.useEffect(()=>{A(null),W(new Set)},[k]);const M=l.useRef(void 0);l.useEffect(()=>{const E=M.current;typeof E=="number"&&typeof t=="number"&&typeof e=="number"&&E>=e&&t<e&&(A(null),W(new Set)),M.current=t},[t,e]);const T=l.useCallback(E=>{if(_!=="active")return;const H=w?.[E];if(H==null)return;const te=H,Q=_==="active"||_==="done";if(m){const ae=new Set(B),N=ae.has(te);N?ae.delete(te):ae.add(te),W(ae),typeof s=="function"&&s({selectedValues:[...ae],__ts:Date.now()}),Q&&(typeof h=="number"&&h>0?ae.size>=h:!N)&&typeof i=="function"&&_==="active"&&i({selectedValues:[...ae],__ts:Date.now()})}else A(te),typeof s=="function"&&s({selectedIndex:E,selectedValue:te,__ts:Date.now()}),Q&&typeof i=="function"&&_==="active"&&i({selectedIndex:E,selectedValue:te,__ts:Date.now()})},[w,_,m,s,i,h,B]),$=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:v,useTitleFaded:n,children:o.jsx("div",{className:$,children:Array.isArray(w)&&w.length>0?w.map((E,H)=>o.jsx(re,{size:56,type:"bar",onClick:()=>T(H),ariaLabel:String(E),label:E,useLabel:!0,icon:g?g[String(E)]:void 0,variant:"default",disabled:_==="disabled",selected:m?B.has(E):j===E,useDisabledCovered:p,minWidth:0},String(E))):null})})}function Ln({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s,demoSelected:c}){const{t:d}=me.useTranslation(),u=r??d("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),m=typeof e=="number"?e:-1,h=typeof t!="number"?"disabled":m<t?"done":m===t?"active":"disabled",p=s&&typeof s=="object"?s.sentence||"":typeof s=="string"?s:"",g=s&&typeof s=="object"?s.choices:void 0,[f,b]=l.useState(c??null);l.useEffect(()=>{if(c==null&&f!==null){const x=setTimeout(()=>b(null),0);return()=>clearTimeout(x)}},[p,c,f]);const v=l.useCallback(x=>{const C=typeof x=="object"&&x!==null?Object.assign({},x,{__ts:Date.now()}):{value:x,__ts:Date.now()};typeof i=="function"&&i(C),h==="active"&&typeof n=="function"&&n(C)},[i,h,n]),y=l.useCallback(()=>{h==="active"&&(b(!1),v(!1))},[v,h]),_=l.useCallback(()=>{h==="active"&&(b(!0),v(!0))},[v,h]);return o.jsxs(Va,{index:e,stepIndex:t,isLast:a,title:u,onDone:n,useTitleFaded:!1,children:[o.jsx(vc,{context:s,state:h}),o.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((x,C)=>o.jsx(re,{size:56,type:"bar",onClick:()=>{h==="active"&&(b(C),v&&v(C))},disabled:h==="disabled",ariaLabel:String(x),label:x,variant:h,selected:f===C},C)):o.jsxs(o.Fragment,{children:[o.jsx(re,{size:56,type:"bar",onClick:y,disabled:h==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!1}),o.jsx(re,{size:56,type:"bar",onClick:_,disabled:h==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!0})]})})]})}function Mn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,btnLabel:i,soundSrc:s,bucketPath:c,usePreviewTextBtn:d,previewText:u=null,onPreviewTextBtn:m,disabled:h,_pageIndex:p,showSoundWaveForm:g,showNoiseWaveForm:f}){const{t:b}=me.useTranslation(),v=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),y=h??(typeof t=="number"&&typeof e=="number"?e>t:!1);return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:v,onDone:n,titleProps:{usePreviewTextBtn:d,previewText:u,onPreviewTextBtn:m},children:o.jsx(wr,{soundSrc:s,ttsText:s?null:u??v,bucketPath:c,btnLabel:i||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:y,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:f},`audio-p${p??0}-s${e}`)})}var c7=".ihabdevteam-core-scope .page-popup--closing{opacity:0;pointer-events:none;transition:opacity .16s ease}.ihabdevteam-core-scope .page-popup__panel{overflow:auto}.ihabdevteam-core-scope .page-popup__close{font-size:20px;right:12px;top:10px}.ihabdevteam-core-scope .page-popup{align-items:stretch;display:flex;inset:0;justify-content:center;position:fixed;z-index:var(--z-page-popup)}.ihabdevteam-core-scope .page-popup__panel{background:var(--color-deepWhite);border-radius:0;box-shadow:none;color:var(--color-black);display:flex;flex-direction:column;height:100%;max-height:none;max-width:none;overflow:hidden;position:relative;width:100%}.ihabdevteam-core-scope .page-popup__scroll{-webkit-overflow-scrolling:touch;align-items:flex-start;display:flex;flex:1 1 0;justify-content:center;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:rgba(0,0,0,.15) transparent;scrollbar-width:thin;touch-action:pan-y}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar{width:4px}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-track{background:transparent}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);border-radius:var(--radius-xs)}.ihabdevteam-core-scope .page-popup__scroll::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.28)}.ihabdevteam-core-scope .page-popup__panel--measuring .page-popup__scroll{opacity:0;pointer-events:none}.ihabdevteam-core-scope .page-popup__scroll{transition:opacity .12s ease}.ihabdevteam-core-scope .nt-debug{background:rgba(0,0,0,.03);border-radius:var(--radius-sm);color:var(--text,var(--color-black));font-family:monospace;font-size:12px;line-height:1.2;max-width:300px;padding:8px 10px;position:absolute;right:20px;top:84px;white-space:pre-wrap;z-index:calc(var(--z-page-popup) + 1)}.ihabdevteam-core-scope .page-popup--backdrop{display:none}.ihabdevteam-core-scope .page-popup__close{background:transparent;border:none;color:var(--text,var(--color-black));cursor:pointer;font-size:22px;line-height:1;position:absolute;right:14px;top:12px}.ihabdevteam-core-scope .page-popup__panel>*{box-sizing:border-box}.ihabdevteam-core-scope .page-popup__body{padding:16px 20px}.ihabdevteam-core-scope .page-popup__content{box-sizing:border-box;margin:0 auto;max-width:800px;min-width:0;padding:var(--spacing-page);width:100%}.ihabdevteam-core-scope .page-popup__content--center{margin-bottom:auto;margin-top:auto}.ihabdevteam-core-scope .pp-empty{color:var(--color-gray);padding:24px 0;text-align:center;width:100%}.ihabdevteam-core-scope .page-popup__content .training-steps{box-sizing:border-box;min-width:0;width:100%}.ihabdevteam-core-scope .page-popup__bottom,.ihabdevteam-core-scope .page-popup__top{flex-shrink:0}.ihabdevteam-core-scope .page-popup__panel--center .page-popup__scroll{align-items:center}.ihabdevteam-core-scope .page-popup--result-empty{background:var(--color-deepWhite)}.ihabdevteam-core-scope .page-popup__empty{align-items:center;color:var(--color-gray);display:flex;flex-direction:column;justify-content:center;padding:2rem;text-align:center;width:100%}";ee(c7);var d7=".ihabdevteam-core-scope .order-list{display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .order-list__item{align-items:flex-start;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .order-list__draggable{align-items:center;border-radius:var(--radius-m);display:flex;flex:1;gap:var(--spacing-xs);justify-content:space-between;min-height:60px;padding:0 0 0 4px;will-change:transform}.ihabdevteam-core-scope .order-list__item-text{color:var(--color-black)}.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:inline-flex;gap:2px}@media (max-width:600px){.ihabdevteam-core-scope .order-list__item-buttons{align-items:center;align-self:center;display:flex;flex-direction:column}.ihabdevteam-core-scope .order-list__item-buttons>*{box-sizing:border-box;display:inline-flex}}.ihabdevteam-core-scope .order-list__item.correct{border:1px solid var(--color-main)}.ihabdevteam-core-scope .order-list__slot{align-items:center;background-color:var(--color-darkWhite);border-radius:var(--radius-m);box-sizing:border-box;display:flex;gap:var(--spacing-xs);height:auto;padding:4px 10px;width:100%}.ihabdevteam-core-scope .order-list__marker{--marker-pos:50%;align-items:center;background-color:var(--color-main);background:color-mix(in srgb,var(--color-main) 50%,var(--color-sub) 50%);border:2px solid var(--color-pureWhite);border-radius:var(--radius-sm);box-sizing:border-box;color:#fff;display:inline-flex;height:24px;justify-content:center;width:24px}@supports (color:color-mix(in lch,red,blue)) and (top:var(--f )){.ihabdevteam-core-scope .order-list__marker{background:color-mix(in srgb,var(--color-main) calc(100% - var(--marker-pos)),var(--color-sub) var(--marker-pos))}}@media (max-width:600px){.ihabdevteam-core-scope .order-list__marker{height:24px;min-width:24px;width:24px}}.ihabdevteam-core-scope .order-list__item:hover .order-list__slot{background-color:var(--color-deepWhite);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot{background-color:var(--color-white);box-shadow:inset 0 0 0 1px var(--color-main)}.ihabdevteam-core-scope .order-list__slot.pulse{background-color:var(--color-white);transition:background-color .42s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__slot.pulse.to-dark{background-color:var(--color-darkWhite)}.ihabdevteam-core-scope .order-list__slot-number{align-items:center;align-self:center;border-radius:var(--radius-sm);color:#fff;display:inline-flex;height:32px;justify-content:center;width:32px}.ihabdevteam-core-scope .order-list__draggable.dragging{background-color:var(--color-white);opacity:.2}.ihabdevteam-core-scope .order-list__dragging-object{align-items:center;background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 14px 40px rgba(16,24,40,.18);box-sizing:border-box;color:var(--color-black);display:inline-flex;gap:var(--spacing-s);left:0;max-width:calc(100vw - var(--spacing-page)*3);min-height:60px;opacity:1;overflow-wrap:anywhere;padding:20px;pointer-events:none;position:fixed;top:0;transform:translate3d(-9999px,-9999px,0) scale(1);transition:transform .16s cubic-bezier(.22,.9,.39,1),opacity .18s ease;white-space:normal;width:auto;will-change:transform,opacity;word-break:keep-all;z-index:var(--z-popover)}.ihabdevteam-core-scope .order-list__dragging-object--visible{opacity:1}.ihabdevteam-core-scope .order-list__item.drag-over .order-list__slot:hover{background-color:var(--color-white);border-radius:var(--radius-m);box-shadow:inset 0 0 0 1px var(--color-main);transition:box-shadow .16s cubic-bezier(.22,.9,.39,1)}.ihabdevteam-core-scope .order-list__item-text{display:block;line-height:1.4;margin:0;overflow-wrap:anywhere;white-space:normal;width:100%;word-break:keep-all}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true],.ihabdevteam-core-scope .order-list__draggable[draggable=false]{background-color:var(--color-darkWhite);box-shadow:none!important;cursor:default;opacity:.9;pointer-events:none}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-text,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-text{color:var(--color-gray);display:none!important;opacity:.9}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__item-buttons,.ihabdevteam-core-scope .order-list__draggable[draggable=false]~.order-list__slot .order-list__slot-number,.ihabdevteam-core-scope .order-list__slot-number[hidden]{display:none!important}.ihabdevteam-core-scope .order-list__draggable[data-disabled=true] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[data-disabled=true]+.order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false] .order-list__slot,.ihabdevteam-core-scope .order-list__draggable[draggable=false]+.order-list__slot,.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{background-color:var(--color-darkWhite)!important;box-shadow:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true]{cursor:default!important;pointer-events:none!important}.ihabdevteam-core-scope .order-list__slot[data-disabled=true] .order-list__slot-number{display:none!important}";ee(d7);function Pn({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[]}){const{t:c}=me.useTranslation(),d=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),u=L=>typeof L=="string"?L:L&&(L.context||L.sentence||L.question||"")||"",[m,h]=l.useState(Array.isArray(s)?s:[]),[p,g]=l.useState(()=>(m||[]).map((L,R)=>({id:R,text:u(L)}))),f=l.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]);l.useEffect(()=>{const L=Array.isArray(s)?s:[];h(L);const R=(z=>{const V=(z||[]).map((O,ne)=>({id:ne,text:u(O)}));if(V.length<=1)return V;const X=(O,ne)=>{if(O.length!==ne.length)return!1;for(let ue=0;ue<O.length;ue++)if(O[ue].text!==ne[ue].text)return!1;return!0};let F=Ge(V),Y=0;for(;X(F,V)&&Y<20;)F=Ge(V),Y+=1;return F})(L);g(R);try{if(typeof i=="function"){const z=R.filter((V,X)=>V.text===u(L[X])).length;i({shuffled:R,score:z,total:(L||[]).length,initial:!0,__ts:Date.now()})}if(typeof n=="function"&&f==="active"){const z=R.filter((V,X)=>V.text===u(L[X])).length;n({shuffled:R,score:z,total:(L||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[s]);const b=(L,R)=>{const z=[...p],V=L+R;if(V<0||V>=z.length)return;const X=z[V];z[V]=z[L],z[L]=X,$(z);try{if(typeof n=="function"&&f==="active"){const F=z.filter((Y,O)=>Y.text===u(m[O])).length;n({shuffled:z,score:F,total:(m||[]).length,__ts:Date.now()})}}catch{}},[v,y]=l.useState(null),_=l.useRef(null),x=l.useRef(null),C=l.useRef(null),k=l.useRef(null),w=l.useRef(null),S=l.useRef({x:0,y:0}),j=l.useRef(null),A=l.useRef({dx:0,dy:0}),B=()=>{if(j.current!==null)return;const L=()=>{j.current=requestAnimationFrame(L);const R=S.current,z=A.current||{dx:0,dy:0};_.current&&(_.current.style.transform=`translate3d(${R.x-z.dx}px, ${R.y-z.dy}px, 0)`)};j.current=requestAnimationFrame(L)},W=l.useRef(new Map),M=l.useRef(new Map),T=()=>{const L=new Map;return W.current.forEach((R,z)=>{R&&R.getBoundingClientRect&&L.set(z,R.getBoundingClientRect())}),L},$=L=>{const R=T();g(L);try{if(typeof i=="function"){const z=L.filter((V,X)=>V.text===u(m[X])).length;i({shuffled:L,score:z,total:(m||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const z=T();L.forEach(V=>{const X=R.get(V.id),F=z.get(V.id),Y=W.current.get(V.id);if(!Y||!X||!F)return;const O=X.top-F.top;O&&(Y.style.transition="none",Y.style.transform=`translateY(${O}px)`,requestAnimationFrame(()=>{Y.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",Y.style.transform="";const ne=()=>{Y.style.transition="",Y.removeEventListener("transitionend",ne)};Y.addEventListener("transitionend",ne)}))})})},E=(L,R)=>{try{try{R.dataTransfer?.setData("text/plain",String(L))}catch{}try{R.dataTransfer&&(R.dataTransfer.effectAllowed="move")}catch{}try{const z=document.createElement("div");z.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(z),R.dataTransfer?.setDragImage(z,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(z)}catch{}})}catch{}}catch{}y(L);try{const z=p[L],V=document.createElement("div");V.className="order-list__dragging-object order-list__dragging-object--visible",V.textContent=z&&z.text?z.text:"",document.body.appendChild(V),_.current=V;const X=W.current.get(z.id);let F=R.clientX||0,Y=R.clientY||0;try{if(X&&X.getBoundingClientRect){const pe=X.getBoundingClientRect();F=pe.left+pe.width/2,Y=pe.top+pe.height/2}}catch{}const O=V.getBoundingClientRect(),ne=O.width/2,ue=O.height/2;A.current={dx:ne,dy:ue},V.style.transition="none",S.current={x:F,y:Y},V.style.transform=`translate3d(${F-ne}px, ${Y-ue}px, 0)`,requestAnimationFrame(()=>{try{V.style.transition=""}catch{}B()});const xe=pe=>{const P=pe;S.current={x:P.clientX,y:P.clientY},B()};C.current=xe,document.addEventListener("mousemove",xe);const ve=pe=>{const P=pe;S.current={x:P.clientX,y:P.clientY},B()};x.current=ve,document.addEventListener("dragover",ve);try{R.dataTransfer?.setData("text/plain",String(L));try{R.dataTransfer?.setData("application/json",JSON.stringify({idx:L}))}catch{}}catch{}}catch{}},H=(L,R)=>{R.preventDefault();try{R.dataTransfer&&(R.dataTransfer.dropEffect="move")}catch{}try{w.current!==null&&(clearTimeout(w.current),w.current=null);const z=R.currentTarget&&R.currentTarget.closest?R.currentTarget.closest(".order-list__item"):null;if(z&&k.current!==z){if(k.current)try{k.current.classList.remove("drag-over")}catch{}try{z.classList.add("drag-over")}catch{}k.current=z}}catch{}},te=(L,R)=>{R.preventDefault();const z=R.dataTransfer?.getData("text/plain")||"",V=z?parseInt(z,10):v,X=L;if(typeof V!="number"||isNaN(V)||V===X){y(null),N(),Q();return}const F=zi(p,V,X);$(F),y(null),Q();try{if(typeof n=="function"&&f==="active"){const Y=F.filter((O,ne)=>O.text===u(m[ne])).length;n({shuffled:F,score:Y,total:(m||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const Y=document.querySelectorAll(".order-list .order-list__item")[X];if(!Y)return;const O=Y.querySelector(".order-list__slot")||Y;try{O.classList.add("pulse"),O.offsetHeight,O.classList.add("to-dark");const ne=()=>{O.classList.remove("pulse","to-dark"),O.removeEventListener("transitionend",ne)};O.addEventListener("transitionend",ne)}catch{}})}catch{}N()},Q=()=>{if(_.current){try{document.body.removeChild(_.current)}catch{}_.current=null}x.current&&(document.removeEventListener("dragover",x.current),x.current=null),C.current&&(document.removeEventListener("mousemove",C.current),C.current=null),j.current!==null&&(cancelAnimationFrame(j.current),j.current=null)},ae=()=>{y(null),N(),Q()};l.useEffect(()=>()=>Q(),[]);const N=()=>{try{if(w.current!==null&&(clearTimeout(w.current),w.current=null),k.current){try{k.current.classList.remove("drag-over")}catch{}k.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(L=>L.classList.remove("drag-over"))}catch{}};return l.useEffect(()=>{try{const L=Math.max(1,(p||[]).length);p.forEach((R,z)=>{const V=M.current.get(R.id);if(!V)return;let X=50;L>1&&(X=Math.round(z/(L-1)*100));try{V.style.setProperty("--marker-pos",X+"%")}catch{}})}catch{}},[p]),l.useEffect(()=>()=>{Q(),w.current!==null&&(clearTimeout(w.current),w.current=null)},[]),o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:d,children:o.jsx("div",{className:"order-list",children:p.map((L,R)=>{const z=Math.max(1,(p||[]).length),V=z>1?Math.round(R/(z-1)*100):50;return o.jsx("div",{className:"order-list__item",children:o.jsxs("div",{className:"order-list__slot","data-disabled":f==="disabled","aria-disabled":f==="disabled",children:[f!=="disabled"?o.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":V+"%"},ref:X=>{const F=M.current;X?F.set(L.id,X):F.delete(L.id)},children:o.jsx("span",{className:"order-list__slot-number button-1",children:R+1})}):null,o.jsxs("div",{ref:X=>{const F=W.current;X?F.set(L.id,X):F.delete(L.id)},className:`order-list__draggable ${v===R?"dragging":""}`,"data-disabled":f==="disabled","aria-disabled":f==="disabled",tabIndex:f==="disabled"?-1:0,draggable:f==="active",onDragStart:f==="active"?X=>E(R,X):void 0,onDragEnter:f==="active"?X=>H(R,X):void 0,onDragOver:f==="active"?X=>H(R,X):void 0,onDragLeave:f==="active"?()=>{try{w.current!==null&&clearTimeout(w.current),w.current=setTimeout(()=>{try{const X=document.querySelectorAll(".order-list .order-list__item");X&&X[R]&&(X[R].classList.remove("drag-over"),k.current===X[R]&&(k.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f==="active"?X=>te(R,X):void 0,onDragEnd:f==="active"?ae:void 0,children:[o.jsx("span",{className:"order-list__item-text body-2",children:L.text}),f==="active"?o.jsxs("span",{className:"order-list__item-buttons",children:[o.jsx(re,{size:32,type:"dot",onClick:()=>b(R,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:R===0,useBorder:!1,useDisabledInvisible:!0}),o.jsx(re,{size:32,type:"dot",onClick:()=>b(R,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:R===p.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},L.id)})})})}var u7="";ee(u7);const p7=8e3;function h7(e,t){return new Promise(a=>{let r=!1;const n=()=>{r||(r=!0,a())};e.then(n,n),setTimeout(n,t)})}function yc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:n,onChange:i,context:s=[],selectable:c=!1,hideLabel:d=!1,hideAudio:u=!1,maxCards:m}){const{t:h}=me.useTranslation(),p=r??h("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=l.useMemo(()=>Array.isArray(s)?s:s&&s.items||[],[s]),f=m??3,b=(g||[]).slice(0,f);(g||[]).length>f&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${f} shown`);const v=typeof e=="number"?e:-1,y=typeof t!="number"?"disabled":v<t?"done":v===t?"active":"disabled",[_,x]=l.useState(null),C=l.useRef([]),[k,w]=l.useState(!1),S=l.useMemo(()=>g.map(W=>W?.id??W?.word??"").join("|"),[g]);l.useEffect(()=>{x(null),C.current=[]},[S]);const j=l.useCallback((W,M)=>{if(c)return;const T={item:W,index:M,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(y==="active"&&typeof n=="function")try{n(T)}catch{}},[c,i,y,n]),A=l.useCallback(async()=>{if(!(k||y==="disabled")){w(!0);try{for(const W of C.current)W&&await h7(W.play(),p7)}finally{w(!1)}}},[k,y]),B=l.useCallback((W,M)=>{if(y!=="active")return;x(M);const T={selectedValue:W.word||W.title||"",selectedIndex:M,item:W,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(y==="active"&&typeof n=="function")try{n(T)}catch{}},[i,y,n]);return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:p,onDone:n,titleProps:{usePlayAllBtn:!u&&b.length>0,onPlayAll:A,playAllActive:k},children:o.jsx("div",{className:"training-step__cards",children:b.length===0?o.jsx("div",{className:"training-step__empty",children:h("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((W,M)=>o.jsx(Sn,{ref:T=>{C.current[M]=T},item:W,disabled:y==="disabled",onPlayDone:()=>j(W,M),selectable:c,selected:c&&_===M,onSelect:c?()=>B(W,M):void 0,flipDelay:M*120,hideLabel:d,hideAudio:u},W&&W.id||M))})})}const m7=160;var b7=".ihabdevteam-core-scope .panel{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-card);display:flex;flex-direction:column;overflow:visible;padding:0;text-align:left}.ihabdevteam-core-scope .panel--no-border{border:none}.ihabdevteam-core-scope .panel--no-bg{background:transparent;border-radius:0}.ihabdevteam-core-scope .panel--no-border .panel-row{padding-left:0;padding-right:0}.ihabdevteam-core-scope .panel--no-row-border .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel__header{align-items:center;border-bottom:1px solid var(--color-darkWhite);box-sizing:border-box;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin:0;padding:0 20px}.ihabdevteam-core-scope .panel__header:last-child{border-bottom:none}.ihabdevteam-core-scope .panel--small .panel__header{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel__header{min-height:56px}.ihabdevteam-core-scope .panel--large .panel__header{min-height:64px}.ihabdevteam-core-scope .panel__icon{align-items:center;color:var(--t-item-fg,var(--color-main));display:flex;flex-shrink:0;height:20px;justify-content:center;margin-right:var(--spacing-s);width:20px}.ihabdevteam-core-scope .panel__title-group{display:flex;flex-direction:column;gap:4px;margin-right:auto;min-width:0}.ihabdevteam-core-scope .panel__title{color:var(--color-darkGray);margin:0}.ihabdevteam-core-scope .panel__disc{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .panel__actions{display:flex;flex-shrink:0;gap:6px}.ihabdevteam-core-scope .panel-row{align-items:center;box-sizing:border-box;display:flex;gap:var(--spacing-m);justify-content:space-between;padding:4px 20px}.ihabdevteam-core-scope .panel--small .panel-row{min-height:48px}.ihabdevteam-core-scope .panel--medium .panel-row{min-height:56px}.ihabdevteam-core-scope .panel--large .panel-row{min-height:64px}.ihabdevteam-core-scope .panel-row+.panel-row{border-top:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row{border-bottom:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel--fill .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel--no-row-border .panel-row{border-bottom:none}.ihabdevteam-core-scope .panel>:not(.panel-row)+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-grid{grid-gap:1px;background:var(--color-darkWhite);display:grid;gap:1px;grid-template-columns:repeat(2,1fr);grid-template-columns:repeat(var(--panel-grid-cols,2),1fr);overflow:hidden;padding-bottom:1px}.ihabdevteam-core-scope .panel-grid .panel-row{background:var(--color-white)}.ihabdevteam-core-scope .panel-grid .panel-row+.panel-row{border-top:none}.ihabdevteam-core-scope .panel-row--empty{color:var(--color-lightGray);justify-content:center}.ihabdevteam-core-scope .panel-row--loading{justify-content:center}.ihabdevteam-core-scope .panel__body--scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .panel-row--content{display:block;min-height:0;padding:16px}.ihabdevteam-core-scope .panel-row--content+.panel-row--content{border-top:none}.ihabdevteam-core-scope .panel-row__icon{align-items:center;display:flex;flex-shrink:0;margin-right:-4px}.ihabdevteam-core-scope .panel-row__left{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__label{color:var(--color-deepGray)}.ihabdevteam-core-scope .panel-row__sub{color:var(--color-gray);margin-top:2px}.ihabdevteam-core-scope .panel-row__right{align-items:center;display:flex;flex:0 0 auto;justify-content:flex-end}@media (max-width:767px){.ihabdevteam-core-scope .panel-row{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__right{flex:0 1 auto;min-width:0}}.ihabdevteam-core-scope .panel--form .panel-row{grid-gap:var(--spacing-m);align-items:center;display:grid;gap:var(--spacing-m);grid-template-columns:80px 1fr;grid-template-columns:var(--panel-label-width,80px) 1fr}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width){align-items:flex-start}.ihabdevteam-core-scope .panel--form .panel-row:has(.text-field--full-width) .panel-row__left{padding-top:9px}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__left{flex:0 0 120px;flex:0 0 var(--panel-label-width,120px)}.ihabdevteam-core-scope .panel-row--label-fixed .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--clickable{cursor:pointer;transition:background .1s,box-shadow .1s}.ihabdevteam-core-scope .panel-row--clickable:hover{background:var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__text{color:var(--color-darkGray);overflow-wrap:break-word;text-align:right;word-break:break-word}.ihabdevteam-core-scope .panel-row--text .panel-row__right{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--block{align-items:stretch;display:flex;flex-direction:column;justify-content:center}.ihabdevteam-core-scope .panel-row__description{color:var(--color-gray);line-height:1.6;margin:0;overflow-wrap:break-word;word-break:break-word}.ihabdevteam-core-scope .panel-row__dropdown-group{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .panel-row__dropdown-group--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row__text--full{text-align:left;width:100%}.ihabdevteam-core-scope .panel-row__input-wrap{display:flex;flex-direction:column}.ihabdevteam-core-scope .panel-row__input-wrap--full{flex:1;min-width:0}.ihabdevteam-core-scope .panel-row--vertical{align-items:flex-start;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .panel-row--vertical .panel-row__left{flex:none;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__right{align-items:flex-start;flex:none;justify-content:flex-start;width:100%}.ihabdevteam-core-scope .panel-row--vertical .panel-row__text{margin-left:0;text-align:left}.ihabdevteam-core-scope .panel-row--device{grid-gap:0;align-items:stretch;display:grid;gap:0;grid-template-columns:1fr 1fr;min-height:0;padding:0}.ihabdevteam-core-scope .panel-row__device-column{box-sizing:border-box;display:flex;flex-direction:column;gap:0;min-height:164px;padding:14px 16px}.ihabdevteam-core-scope .panel-row__device-column+.panel-row__device-column{border-left:1px solid var(--color-darkWhite)}.ihabdevteam-core-scope .panel-row__device-head{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:8px;min-height:32px}.ihabdevteam-core-scope .panel-row__device-side{color:var(--color-darkGray);margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info{margin:0;text-align:left}.ihabdevteam-core-scope .panel-row__device-info,.ihabdevteam-core-scope .panel-row__device-kind{align-items:flex-start;display:flex;flex-direction:column;gap:3px}.ihabdevteam-core-scope .panel-row__device-name{color:var(--color-darkGray)}.ihabdevteam-core-scope .panel-row__device-detail{color:var(--color-gray)}.ihabdevteam-core-scope .panel-row__device-date{color:var(--color-lightGray);margin-top:2px}.ihabdevteam-core-scope .panel-row__device-empty{align-items:center;color:var(--color-lightGray);display:flex;flex:1;justify-content:center;text-align:center}.ihabdevteam-core-scope .required-mark{color:var(--color-main);margin-left:2px}.ihabdevteam-core-scope .panel-row__error{color:var(--color-error);margin-top:4px}.ihabdevteam-core-scope .panel-row__helper{color:var(--color-lightGray);margin-top:4px}.ihabdevteam-core-scope .panel-row__button-group{display:flex;gap:6px}@media (max-width:767px){.ihabdevteam-core-scope .panel-row__dropdown-group{flex-wrap:wrap}.ihabdevteam-core-scope .panel-row__dropdown-error-wrap--full,.ihabdevteam-core-scope .panel-row__dropdown-item--full{flex:1 1 104px}}";ee(b7);const Tb=()=>{};function Na(e){const t=l.useId();if(!("variant"in e)){const{label:b,sub:v,onClick:y,children:_,align:x="horizontal",icon:C}=e,k=w=>{y&&w.target===w.currentTarget&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),y())};return o.jsxs("div",{className:_e("panel-row",x==="vertical"?"panel-row--vertical":"",y?"panel-row--clickable":""),onClick:y,onKeyDown:y?k:void 0,role:y?"button":void 0,tabIndex:y?0:void 0,children:[C!=null&&o.jsx("div",{className:"panel-row__icon",children:C}),b!=null&&o.jsxs("div",{className:"panel-row__left",children:[o.jsx("div",{className:"panel-row__label body-3",children:b}),v&&o.jsx("div",{className:"panel-row__sub caption-1",children:v})]}),o.jsx("div",{className:"panel-row__right",children:_})]})}if(e.variant==="description")return o.jsx("div",{className:"panel-row panel-row--block",children:o.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return o.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return o.jsx("div",{className:"panel-row panel-row--loading",children:o.jsx(Ao,{size:28})});if(e.variant==="custom"&&!e.label)return o.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:n,onClick:i,required:s,error:c,align:d="horizontal",useFullWidth:u=!1,icon:m}=e;let h=null;const p=a==="toggle"?`panel-toggle-${t}`:void 0;if(a==="toggle"){const b=e;h=o.jsx(Hl,{checked:b.checked,onChange:b.onChange,id:p})}else if(a==="segmented"){const b=e;h=o.jsx(Ha,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,v=b.dropdowns?.length?o.jsx("div",{className:`panel-row__dropdown-group${u?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((y,_)=>o.jsx("div",{className:u?"panel-row__dropdown-item--full":void 0,children:o.jsx(Ut,{options:y.options,value:y.value,onChange:y.onChange,placeholder:y.placeholder,block:u,error:!!c,ariaLabel:y.ariaLabel??([r,y.placeholder].filter(Boolean).join(" ")||void 0)})},_))}):o.jsx(Ut,{options:b.options??[],value:b.value??"",onChange:b.onChange??Tb,block:u,error:!!c,ariaLabel:r});h=c?o.jsxs("div",{className:`panel-row__dropdown-error-wrap${u?" panel-row__dropdown-error-wrap--full":""}`,children:[v,o.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):v}else if(a==="button"){const b=e;b.buttons?.length?h=o.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((v,y)=>o.jsx(re,{size:v.btnSize??40,variant:v.btnVariant??"default",disabled:v.disabled,onClick:v.onClick,children:v.label},y))}):h=o.jsx(re,{size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;h=o.jsx("span",{className:`panel-row__text body-2${u?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;h=o.jsxs("div",{className:`panel-row__input-wrap${u?" panel-row__input-wrap--full":""}`,children:[o.jsx(Wa,{value:b.value,onChange:b.onChange??Tb,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:u,error:c,ariaLabel:r,required:s}),b.helperText&&o.jsx("div",{className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(h=e.children);const g=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&u,f=b=>{i&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),i())};return o.jsxs("div",{className:_e("panel-row",d==="vertical"?"panel-row--vertical":"",g?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",i?"panel-row--clickable":""),onClick:i,onKeyDown:i?f:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:[m!=null&&o.jsx("div",{className:"panel-row__icon",children:m}),o.jsxs("div",{className:"panel-row__left",children:[p?o.jsxs("label",{htmlFor:p,className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}):o.jsxs("div",{className:"panel-row__label body-3",children:[r,s&&o.jsx("span",{className:"required-mark",children:"*"})]}),n&&o.jsx("div",{className:"panel-row__sub caption-1",children:n})]}),o.jsx("div",{className:"panel-row__right",children:h})]})}function Bb(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function Nb({devices:e,onRelease:t}){const{t:a}=me.useTranslation();return o.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(r=>{const n=e[r],i=r==="\uC88C"?a("device.direction.left","\uC88C"):a("device.direction.right","\uC6B0");return o.jsxs("div",{className:"panel-row__device-column",children:[o.jsxs("div",{className:"panel-row__device-head",children:[o.jsx("span",{className:"panel-row__device-side body-2b",children:i}),n&&t&&o.jsx(re,{size:32,type:"dot",icon:"x",ariaLabel:a("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),showTooltipInfo:a("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(r)})]}),n?o.jsxs("div",{className:"panel-row__device-info",children:[o.jsxs("span",{className:"panel-row__device-kind",children:[n.device&&o.jsx(ht,{size:"small",variant:ym(n.device),fill:"soft",label:n.device}),Bb(n)&&o.jsx("span",{className:"panel-row__device-detail body-3",children:Bb(n)})]}),o.jsx("span",{className:"panel-row__device-name body-2b",children:n.productName||n.brand}),o.jsx("span",{className:"panel-row__device-date caption-1",children:a("customers.device.wornSince",{date:`${n.wornYear}.${n.wornMonth}.${n.wornDay}`})})]}):o.jsx("span",{className:"panel-row__device-empty body-3",children:a("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},r)})})}function kr({title:e,icon:t,disc:a,actions:r,size:n="medium",minHeight:i,maxWidth:s,className:c,scrollable:d,useBorder:u=!0,useBg:m=!0,useRowBorder:h=!0,labelWidth:p,form:g=!1,loading:f,empty:b,children:v}){const y=_e("panel",`panel--${n}`,g?"panel--form":"",i!==void 0?"panel--fill":"",u?"":"panel--no-border",m?"":"panel--no-bg",h?"":"panel--no-row-border",c),_={};return i!==void 0&&(_.minHeight=i),s!==void 0&&(_.maxWidth=typeof s=="number"?`${s}px`:s),p!==void 0&&(_["--panel-label-width"]=typeof p=="number"?`${p}px`:p),o.jsxs("div",{className:y,style:Object.keys(_).length?_:void 0,children:[(e!=null||a!=null)&&o.jsxs("div",{className:_e("panel__header",a!=null?"panel__header--with-disc":""),children:[t&&o.jsx(Fe,{icon:t,label:typeof e=="string"?e:void 0,className:"panel__icon"}),o.jsxs("div",{className:"panel__title-group",children:[e!=null&&o.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&o.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&o.jsx("div",{className:"panel__actions",children:r})]}),f?o.jsx(Na,{variant:"loading"}):b!=null&&(v==null||Array.isArray(v)&&v.length===0)?o.jsx(Na,{variant:"empty",children:b}):d?o.jsx("div",{className:"panel__body--scroll",children:v}):v]})}function Db({cols:e=2,children:t}){return o.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function g7(e){return[{label:e("training.noise.level.none","\uC5C6\uC74C"),value:0},{label:e("training.noise.level.weak","\uC57D\uD568"),value:1},{label:e("training.noise.level.medium","\uBCF4\uD1B5"),value:2},{label:e("training.noise.level.strong","\uAC15\uD568"),value:3},{label:e("training.noise.level.veryStrong","\uB9E4\uC6B0 \uAC15\uD568"),value:4}]}function Eb(e){return[{label:e("training.noise.type.default","\uAE30\uBCF8"),value:"defaultNoise",icon:"party-popper"},{label:e("training.noise.type.street","\uAE38\uAC70\uB9AC"),value:"street",icon:"car"},{label:e("training.noise.type.buzz","\uC640\uAE00\uC640\uAE00"),value:"buzz",icon:"message-square-more"},{label:e("training.noise.type.restaurant","\uC2DD\uB2F9"),value:"restaurant",icon:"coffee"}]}g7(Ca.t.bind(Ca)),Eb(Ca.t.bind(Ca));var f7='.ihabdevteam-core-scope .noise-settings{border-radius:var(--radius-m);box-sizing:border-box;max-width:calc(100vw - 40px);padding:20px}.ihabdevteam-core-scope .tooltip-content:has(.noise-settings__header) .tooltip-content__header{border-bottom:1px solid var(--color-darkWhite);height:60px;padding:0 20px}.ihabdevteam-core-scope .noise-settings__header{align-items:center;display:flex;justify-content:space-between;width:100%}.ihabdevteam-core-scope .noise-settings__header span{color:var(--color-darkGray);font-weight:600}.ihabdevteam-core-scope .noise-settings__slider-input.slider--horizontal{flex:1 1 auto}.ihabdevteam-core-scope .noise-settings__value{font-feature-settings:"tnum";color:var(--color-main);flex:0 0 auto;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;width:44px}';ee(f7);const xc="none",v7=.5,y7=1.5,x7=.25;function Cc({title:e,valueLabel:t,value:a,min:r,max:n,step:i,tickStep:s,size:c,onChange:d}){return o.jsxs(Na,{variant:"custom",label:e,useFullWidth:!0,children:[o.jsx(Ul,{value:a,onChange:d,min:r,max:n,step:i,size:c,showBgTick:!0,tickStep:s,ariaLabel:e,className:"noise-settings__slider-input"}),o.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function _c({anchorRect:e,onClose:t}){const{t:a}=me.useTranslation(),r=oa("(max-width: 767px)")?40:24,n=pc(),i=n?.settings.level??0,s=n?.settings.type??"defaultNoise",c=n?.settings.enabled??!0,d=Ik(i),u=n?.playbackRate??1,m=n?.mainVolume??1,h=Math.round(m*100),p=l.useCallback(v=>{try{n?.setMainVolume(Math.max(0,Math.min(1,v/100)))}catch{}},[n]),g=l.useCallback(v=>{try{n?.setPlaybackRate(v)}catch{}},[n]),f=l.useCallback(v=>{const y=zk(v);try{n?.setSettings({level:y})}catch{}},[n]),b=l.useCallback(v=>{try{v===xc?n?.setSettings({enabled:!1}):n?.setSettings({type:v,enabled:!0})}catch{}},[n]);return o.jsx(Sa,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:o.jsxs("div",{className:"noise-settings__header",children:[o.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),o.jsx(re,{size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:o.jsxs(kr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[o.jsx(Cc,{title:a("training.playVolumeTitle","\uC7AC\uC0DD \uC18C\uB9AC"),valueLabel:`${h}%`,value:h,min:0,max:100,step:10,size:r,onChange:p}),o.jsx(Cc,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:v7,max:y7,step:x7,size:r,onChange:g}),o.jsx(Cc,{title:a("training.noiseLevelTitle","\uC18C\uC74C \uD06C\uAE30"),valueLabel:`${d}%`,value:d,min:0,max:100,step:10,size:r,onChange:f}),o.jsx(Na,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:o.jsx(Ha,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:xc,label:a("training.noise.type.none","\uC5C6\uC74C")},...Eb(a).map(v=>({key:v.value,label:v.label}))],value:c?s:xc,onChange:b})})]})})}var C7=".ihabdevteam-core-scope .training-page-bottom{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-bottom{align-items:center;background:var(--color-deepWhite);border-top:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;flex:0 0 auto;gap:var(--spacing-s);justify-content:space-between;padding:12px 18px calc(12px + env(safe-area-inset-bottom));width:100%;z-index:5}.ihabdevteam-core-scope .pp-bottom__left{align-items:center;display:flex;gap:var(--spacing-m)}.ihabdevteam-core-scope .pp-bottom__right{align-items:center;display:flex;gap:8px}.ihabdevteam-core-scope .pp-bottom__meters{border:1px solid var(--color-whiteLine);border-radius:14px;display:flex;flex-direction:column;gap:2px;justify-content:center;padding:8px 12px}.ihabdevteam-core-scope .pp-bottom__meter{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs)}.ihabdevteam-core-scope .pp-bottom__meter-label{color:var(--color-gray);min-width:28px}.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:none}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:flex}@media (min-width:768px){.ihabdevteam-core-scope .pp-bottom__settings--desktop{display:block}.ihabdevteam-core-scope .pp-bottom__settings--mobile{display:none}}.ihabdevteam-core-scope .pp-bottom__tooltip-trigger{display:inline-block}";ee(C7);function wc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:n=0,stepCount:i=0,pageIndex:s=0,pageCount:c=1}){const{t:d}=me.useTranslation(),[u,m]=l.useState(!1),[h,p]=l.useState(null),[g,f]=l.useState(!1),b=l.useRef(null),v=l.useRef(null),y=pc(),_=s<c-1,x=s===c-1,C=n===Math.max(0,i);l.useEffect(()=>{e||(m(!1),p(null))},[e]);const k=l.useCallback(()=>{m(!1),p(null)},[]),w=l.useCallback(()=>{if(u){m(!1),p(null);return}const A=b?.current?.getBoundingClientRect();A&&p(A),t?.(),m(!0)},[u,t]),S=l.useCallback(()=>{if(u){m(!1),p(null);return}const A=v?.current?.getBoundingClientRect();A&&p(A),t?.(),m(!0)},[u,t]),j=l.useCallback(()=>f(A=>!A),[]);return o.jsxs("div",{className:"pp-bottom",children:[o.jsxs("div",{className:"pp-bottom__left",children:[e?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pp-bottom__settings--desktop",children:o.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(re,{size:56,type:"bar",icon:"settings",onClick:w,selected:u,ariaLabel:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),o.jsx("div",{className:"pp-bottom__settings--mobile",children:o.jsx("div",{ref:v,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:o.jsx(re,{size:56,type:"dot",icon:"settings",onClick:S,selected:u,ariaLabel:d("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&o.jsx(re,{size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:j,selected:g,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&g&&o.jsxs("div",{className:"pp-bottom__meters",children:[o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.sentence","\uC7AC\uC0DD")}),o.jsx(Cn,{analyser:y?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.sentence","\uC7AC\uC0DD")})]}),o.jsxs("div",{className:"pp-bottom__meter",children:[o.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.noise","\uC18C\uC74C")}),o.jsx(Cn,{analyser:y?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.noise","\uC18C\uC74C")})]})]})]}),o.jsxs("div",{className:"pp-bottom__right",children:[x&&o.jsx(re,{size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!C}),_&&o.jsx(re,{size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!C})]}),e&&u&&o.jsx(_c,{anchorRect:h,onClose:k})]})}var _7=".ihabdevteam-core-scope .training-page-top{box-sizing:border-box;width:100%}.ihabdevteam-core-scope .pp-title.training-popup-title{align-items:center;background:var(--color-deepWhite);border-bottom:1px solid var(--color-whiteLine);box-sizing:border-box;display:flex;gap:var(--spacing-s);justify-content:space-between;padding:12px 16px;position:relative;width:100%;z-index:6}.ihabdevteam-core-scope .pp-title__left{align-items:center;display:flex;gap:var(--spacing-s);min-width:0}.ihabdevteam-core-scope .pp-title__text{display:flex;flex-direction:column;min-width:0}.ihabdevteam-core-scope .pp-title__depth{color:var(--color-gray)}.ihabdevteam-core-scope .pp-title__title{font-weight:700;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__title--empty{color:var(--color-whiteLine)}.ihabdevteam-core-scope .pp-title__description{color:var(--color-gray);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:767px){.ihabdevteam-core-scope .pp-title.training-popup-title{gap:var(--spacing-xs);padding:10px 12px}.ihabdevteam-core-scope .pp-title__depth{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .pp-title__left{flex:1;min-width:0;overflow:hidden}}";ee(_7);function kc({title:e,subtitle:t,desc:a,depth:r,icon:n,wrapperStyle:i,iconTooltip:s,pageIndex:c,pageCount:d,progressMax:u,progressIndex:m,onBack:h,onClose:p}){const{t:g}=me.useTranslation(),f=oa("(max-width: 767px)"),b=Number.isInteger(m)?m:c||0,v=Number.isInteger(u)?u:d||0,y=h||p,_=Array.isArray(r)?f?r[r.length-1]:r.join(" / "):r,x=typeof e=="string"?e.trim():e,C=typeof t=="string"?t.trim():t,k=!!(x||C),w=k?x||C:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),S=_||t,j=f&&typeof S=="string"&&(S.includes(" \xB7 ")||S.includes(" / "))?S.split(/\s[·/]\s/).pop():S,A=l.useMemo(()=>{const B=i&&typeof i=="object"?{...i}:{};return!("width"in B)&&!("height"in B)&&(B.width="40px",B.height="40px"),B},[i]);return o.jsxs("header",{className:"pp-title training-popup-title",children:[o.jsxs("div",{className:"pp-title__left",children:[y?o.jsx(re,{size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:y,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,o.jsx("div",{children:n?o.jsx(km,{icon:n,label:e,tooltip:s,wrapperStyle:A}):null}),o.jsxs("div",{className:"pp-title__text",children:[j?o.jsx("span",{className:"pp-title__depth caption-1",children:j}):null,o.jsx("span",{className:`pp-title__title h2${k?"":" pp-title__title--empty"}`,children:w}),a?o.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),o.jsx(Xl,{max:Math.max(0,v??0),index:Math.max(0,b??0)})]})}function jb(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Lb(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(a=>a.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}function Sc(e,t,a){const r=e,n=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=Jr().find(c=>c.key===(r?.category_0||r?.category_main_code)),s=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:n,label:r?.title||n,depth:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?.label,s?.label].filter(Boolean).join(" / ")||void 0}}function Rn(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function Mb(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function Pb({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:n=[],emptyMessage:i,buildResults:s,metaPatch:c}){const d=Sc(t,a,r),u=typeof c=="function"?c(d)||{}:c||{},m=t?.id||t?.title||n.length;return{id:`${e}:${m}`,meta:{...d,...u},pages:n,emptyMessage:i,buildResults:s}}function Rb(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function $b(e){if(e&&typeof e=="object"){const t=e;if(Array.isArray(t.selectedValues))return t.selectedValues;if(t.selectedValue!==void 0)return t.selectedValue;if(t.selectedIndex!==void 0)return t.selectedIndex;if(t.value!==void 0)return t.value}return e}function Ib(e,t=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(t))return String(t[e]??"");if(typeof e=="string")return e}function Ac(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function zb(e,t,a,r){return Ac(e,t*a+r)}function Ob({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return r.every(i=>n.selectedValues.includes(i))&&n.selectedValues.every(i=>r.includes(i));if(typeof n.correct=="boolean")return n.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(n=>String(n)===String(a[t]));if(typeof t<"u")return r.some(n=>String(n)===String(t))}}function Fb(e){return e?Array.isArray(e.items)?e.items.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const Wb=l.createContext(null);function w7(){const e=l.useContext(Wb);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function k7({index:e,stepIndex:t,isLast:a=!1,title:r="\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",choices:n=[],onDone:i,onChange:s}){const c=typeof e=="number"?e:-1,d=typeof t!="number"?"disabled":c<t?"done":c===t?"active":"disabled",[u,m]=l.useState(()=>n.map(()=>null)),h=n.join("|");l.useEffect(()=>{m(h?h.split("|").map(()=>null):[])},[h]);const p=l.useMemo(()=>u.filter(f=>f!==null).length+1,[u]),g=l.useCallback(f=>{d==="active"&&m(b=>{const v=[...b];if(v[f]!==null){const _=v[f];return v.map(x=>x!==null&&x>=_?null:x)}v[f]=p;const y={selectedOrder:v,words:n,__ts:Date.now()};try{typeof s=="function"&&s(y)}catch{}if(v.every(_=>_!==null))try{typeof i=="function"&&i(y)}catch{}return v})},[d,p,s,i,n]);return o.jsx(Va,{index:e,stepIndex:t,isLast:a,title:r,onDone:i,children:o.jsx("div",{className:"training-step__cards",children:n.map((f,b)=>o.jsx(Sn,{item:{word:f},disabled:d==="disabled",selectable:!0,selected:u[b]!==null,orderRank:u[b],onSelect:()=>g(b),flipDelay:b*120,hideLabel:!1,hideAudio:!0},`${f}-${b}`))})})}function Sr(e){return null}Sr.__isTrainingPage=!0;function Do(e,t){const a=w7();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function Tc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s}=Do(e,t);return o.jsx(Mn,{...a,index:r,stepIndex:n,isLast:i,onDone:s})}function Bc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(jn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Nc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(Ln,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Dc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(Pn,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function Ec({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(yc,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}function S7({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:n,isLast:i,onDone:s,onChange:c}=Do(e,t);return o.jsx(k7,{...a,index:r,stepIndex:n,isLast:i,onDone:s,onChange:c})}var A7=`.ihabdevteam-core-scope .trp-result{display:flex;flex:1;flex-direction:column;min-height:0;padding:0;position:relative}.ihabdevteam-core-scope .popup--training-result .popup-header{padding:var(--spacing-l) var(--spacing-l) 0;position:absolute;right:0;top:0;z-index:1}.ihabdevteam-core-scope .trp-result__head{padding:12px 72px 20px;position:relative;text-align:center}.ihabdevteam-core-scope .trp-result__eyebrow{align-items:center;color:var(--color-main);display:inline-flex;gap:var(--spacing-xs);letter-spacing:.22em;margin:0 0 14px;text-transform:uppercase}.ihabdevteam-core-scope .trp-result__eyebrow:after,.ihabdevteam-core-scope .trp-result__eyebrow:before{background:currentColor;content:"";height:1px;opacity:.35;width:24px}.ihabdevteam-core-scope .trp-result__title{color:var(--color-black);font-size:28px;margin:0}.ihabdevteam-core-scope .trp-result__subtitle{color:var(--color-gray);margin:10px 0 0}.ihabdevteam-core-scope .trp-score{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-m);margin:36px auto 8px}.ihabdevteam-core-scope .trp-score__figure{font-feature-settings:"tnum";align-items:baseline;display:flex;font-variant-numeric:tabular-nums;gap:var(--spacing-s)}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{align-self:flex-end;color:var(--color-lightGray);font-size:44px;letter-spacing:-1px;padding-bottom:18px}.ihabdevteam-core-scope .trp-score__big{background:var(--color-main);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:112px;letter-spacing:-5px;line-height:.92}.ihabdevteam-core-scope .trp-result__body{padding:16px 0 0}.ihabdevteam-core-scope .result-table{width:100%}.ihabdevteam-core-scope .result-table__head{grid-gap:var(--spacing-m);border-bottom:1px solid var(--color-whiteLine);color:var(--color-lightGray);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;letter-spacing:.16em;padding:12px 4px 14px;text-transform:uppercase}.ihabdevteam-core-scope .result-table--answer .result-table__head,.ihabdevteam-core-scope .result-table--answer .result-table__row{grid-template-columns:1fr 200px 100px}.ihabdevteam-core-scope .result-table__head .col-right{text-align:center}.ihabdevteam-core-scope .result-table__row{grid-gap:var(--spacing-m);align-items:center;border-bottom:1px solid var(--color-whiteLine);display:grid;gap:var(--spacing-m);grid-template-columns:1fr 100px;padding:22px 4px;transition:background .18s ease}.ihabdevteam-core-scope .result-table__row:hover{background:var(--color-deepWhite)}.ihabdevteam-core-scope .result-table__row:last-child{border-bottom:0}.ihabdevteam-core-scope .trp-row__problem{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__no{font-feature-settings:"tnum";color:var(--color-lightGray);flex-shrink:0;font-variant-numeric:tabular-nums;width:32px}.ihabdevteam-core-scope .trp-row__q{color:var(--color-black);letter-spacing:-.1px}.ihabdevteam-core-scope .trp-row__judge{align-self:center;display:flex;justify-content:center}.ihabdevteam-core-scope .trp-row__answers{align-self:center;display:flex;flex-direction:column;gap:var(--spacing-xs)}.ihabdevteam-core-scope .trp-row__answer-line{align-items:baseline;display:flex;gap:10px}.ihabdevteam-core-scope .trp-row__answer-label{flex-shrink:0;width:32px}.ihabdevteam-core-scope .trp-row__answer-label.answer-correct{color:var(--color-lightGray)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-label.answer-selected.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .trp-row__answer-value{color:var(--color-black)}.ihabdevteam-core-scope .trp-row__answer-value.is-correct{color:var(--color-main)}.ihabdevteam-core-scope .trp-row__answer-value.is-wrong{color:var(--color-error)}.ihabdevteam-core-scope .popup-footer.trp-result__foot{align-items:center;background:var(--color-white);display:flex;flex-shrink:0;gap:var(--spacing-s);justify-content:center;padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-s)}@keyframes result-rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.ihabdevteam-core-scope .trp-result.is-on{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .trp-score__big{animation:result-rise .7s cubic-bezier(.22,.9,.3,1) .1s both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row{animation:result-rise .5s cubic-bezier(.22,.9,.3,1) both}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(2){animation-delay:.18s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(3){animation-delay:.24s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(4){animation-delay:.3s}.ihabdevteam-core-scope .trp-result.is-on .result-table__row:nth-child(5){animation-delay:.36s}@media (max-width:767px){.ihabdevteam-core-scope .trp-result{padding:0}.ihabdevteam-core-scope .trp-result__head{padding:0 20px 20px}.ihabdevteam-core-scope .trp-result__body{padding:0}.ihabdevteam-core-scope .popup-footer.trp-result__foot{border-top:1px solid var(--color-whiteLine);gap:var(--spacing-xs);padding:var(--spacing-l)}.ihabdevteam-core-scope .trp-actions{display:flex;gap:var(--spacing-xs);width:100%}.ihabdevteam-core-scope .trp-actions>*{flex:1;min-width:0}.ihabdevteam-core-scope .trp-score{gap:10px;margin:20px auto 4px}.ihabdevteam-core-scope .trp-score__big{font-size:72px;letter-spacing:-3px}.ihabdevteam-core-scope .trp-score__sep,.ihabdevteam-core-scope .trp-score__total{font-size:28px;padding-bottom:10px}.ihabdevteam-core-scope .result-table__head{display:none}.ihabdevteam-core-scope .result-table__head,.ihabdevteam-core-scope .result-table__row{gap:var(--spacing-xs);grid-template-columns:1fr auto}.ihabdevteam-core-scope .result-table__row{padding:14px 4px}.ihabdevteam-core-scope .trp-row__judge{justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .result-table__row{align-items:start;gap:6px;grid-template-columns:1fr;grid-template-rows:auto auto auto;padding:14px 4px}.ihabdevteam-core-scope .result-table--answer .trp-row__judge{grid-row:1;justify-content:flex-start}.ihabdevteam-core-scope .result-table--answer .trp-row__problem{grid-row:2}.ihabdevteam-core-scope .result-table--answer .trp-row__answers{grid-row:3}
|
|
987
987
|
/* !important \uD544\uC694 \u2014 TrainingResultPopup.tsx\uAC00 Badge\uC5D0 minWidth={80}\uC744 \uC778\uB77C\uC778\uC73C\uB85C
|
|
988
|
-
\uC804\uB2EC\uD558\uBBC0\uB85C(\uCF54\uB4DC \uD655\uC778\uB428) \uBAA8\uBC14\uC77C\uC5D0\uC11C \uC790\uC5F0 \uD3ED\uC73C\uB85C \uB418\uB3CC\uB9AC\uB824\uBA74 \uD2B9\uC774\uB3C4\uB85C\uB294 \uBD80\uC871. */.ihabdevteam-core-scope .trp-row__judge .badge{min-width:0!important;min-width:auto!important}.ihabdevteam-core-scope .result-table--answer .trp-row__judge .badge{height:26px;padding:0 12px}}`;ee(A7);function jc(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,r=[a.text,a.label,a.value];for(const n of r){if(typeof n=="string"&&n.trim().length)return n.trim();if(typeof n=="number"||typeof n=="boolean")return String(n)}}}return null}function T7(e){return jc(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Hb(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const t=jc(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function Lc(e){const{score:t,contextsLength:a,results:r=[],subtitle:n,onReplay:i,onClose:s,inline:c=!1}=e||{},{t:d}=me.useTranslation();l.useEffect(()=>{const b=a??0;t!=null&&b>0&&t/b>.5&&window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},[t,a]);const u=l.useCallback(b=>{const v=Hb(b),y=jc(b?.wording,b?.label);return v===!0?{variant:"main",label:y??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:v===!1?{variant:"danger",label:y??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:y??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),m=a??0,h=t??0,p=l.useMemo(()=>Array.isArray(r)?r:[],[r]),g=l.useMemo(()=>p.map(b=>{const v=b??{},y=T7(v)||"(\uB0B4\uC6A9\uC5C6\uC74C)",{variant:_,label:x}=u(v),C=Array.isArray(v.corrects)?v.corrects:[],k=C.length?C.join(", "):v.answer!=null&&v.answer!==""?String(v.answer):null,w=typeof v.selectedText=="string"?v.selectedText:null,S=Hb(v)===!0;return{problem:y,variant:_,label:x,answer:k,selectedText:w,isCorrect:S}}),[p,u]),f=l.useMemo(()=>g.some(b=>b.answer!==null||b.selectedText!==null),[g]);return o.jsx(Ta,{onClose:s,inline:c,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:b,closeWithAnimation:v})=>o.jsxs("div",{className:"trp-actions",children:[o.jsx(re,{size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>b(i)}),o.jsx(re,{size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:v})]}),children:()=>o.jsxs("div",{className:"trp-result is-on",children:[o.jsxs("header",{className:"trp-result__head",children:[o.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),o.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),n&&o.jsx("p",{className:"trp-result__subtitle body-3",children:n}),o.jsx("div",{className:"trp-score",children:o.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:h,total:m}),children:[o.jsx("span",{className:"trp-score__big",children:h}),o.jsx("span",{className:"trp-score__sep",children:"/"}),o.jsx("span",{className:"trp-score__total",children:m})]})})]}),g.length>0&&o.jsx("section",{className:"trp-result__body",children:o.jsxs("div",{className:`result-table${f?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[o.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[o.jsx("span",{role:"columnheader",children:d("training.result.colProblem","\uBB38\uC81C")}),f&&o.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),o.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),g.map((b,v)=>o.jsxs("div",{className:"result-table__row",role:"row",children:[o.jsxs("div",{className:"trp-row__problem",children:[o.jsx("span",{className:"trp-row__no caption-1",children:String(v+1).padStart(2,"0")}),o.jsx("div",{className:"trp-row__q body-2",children:b.problem})]}),f&&o.jsxs("div",{className:"trp-row__answers",children:[b.answer!==null&&o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),o.jsx("span",{className:"trp-row__answer-value body-2",children:b.answer})]}),o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${b.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),o.jsx("span",{className:`trp-row__answer-value body-2 ${b.isCorrect?"is-correct":"is-wrong"}`,children:b.selectedText??"\u2014"})]})]}),o.jsx("div",{className:"trp-row__judge",children:o.jsx(ht,{variant:b.variant,label:b.label,fill:"soft",minWidth:80})})]},v))]})})]})})}function B7(e){l.useEffect(()=>{if(!e)return;const t=new Date;return()=>{const a=new Date;a.getTime()-t.getTime()<5e3||es({trainingType:e,startedAt:t.toISOString(),endedAt:a.toISOString()})}},[e])}function Mc(e,t){return e&&e.id||`page-${t??0}`}function Pc(e,t){return e&&e.key||`step-${t??0}`}function $n(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function N7(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const Vb=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),D7=e=>o.jsx(Lc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function E7(e){const{scenario:t,title:a,subTitle:r,depth:n,icon:i,wrapperStyle:s,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:m,stepCount:h,onBack:p,onComplete:g,onNext:f,onSettings:b,useNoiseSetting:v=!0,children:y,ariaLabel:_,label:x,buildResults:C,onResult:k,typeKey:w,entryPoint:S,dailyTotal:j,itemRef:A,renderResultPopup:B}=e;B7(w&&!Vb.has(w)?w:"");const W=l.useRef(0);l.useEffect(()=>{W.current=Date.now()},[]);const{t:M}=me.useTranslation(),T=k,$=!!t,E=t?.id||null,H=t?.meta||{},te=Array.isArray(t?.pages)?t.pages:[],Q=Array.isArray(y)||l.isValidElement(y)&&typeof y!="function"?l.Children.toArray(y).filter(l.isValidElement):[],ae=Q.length>0,N=ie=>ie===Sr||ie?.__isTrainingPage===!0,L=ae&&Q.some(ie=>N(ie.type)),R=L?Q.filter(ie=>N(ie.type)).map((ie,ye)=>{const Ce=ie.props||{};return{id:`children-page-${ye}`,steps:l.Children.toArray(Ce.children).filter(l.isValidElement),pageTop:Ce.pageTop||Ce.top||null,pageBottom:Ce.pageBottom||Ce.bottom||null}}):[{id:"children-page-0",steps:Q}],z=ae&&!$&&typeof y!="function",V=z?Math.max(1,R.length):0;l.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),l.useEffect(()=>{if(typeof document>"u"||!document.body)return;const ie=document.body;return ie.dataset.ihabTrainingPopupCount=String(Number(ie.dataset.ihabTrainingPopupCount||"0")+1),ie.classList.add("ihab-training-popup-open"),()=>{const ye=Number(ie.dataset.ihabTrainingPopupCount||"1")-1;ye>0?ie.dataset.ihabTrainingPopupCount=String(ye):(delete ie.dataset.ihabTrainingPopupCount,ie.classList.remove("ihab-training-popup-open"))}},[]),l.useEffect(()=>{if(!(typeof document>"u"||!document.body))return pk()},[]);const[X,F]=l.useState({...Cb,enabled:!1}),Y=l.useRef(X);l.useEffect(()=>{Y.current=X},[X]),l.useEffect(()=>{let ie=!1;return ns().then(ye=>{if(ie)return;const Ce=ye?{...Y.current,...ye}:{...Cb};Y.current=Ce,F(Ce)}),()=>{ie=!0}},[]);const[O,ne]=l.useState(null),[ue,xe]=l.useState(null),ve=l.useCallback((ie,ye)=>{ie==="main"?ne(ye):xe(ye)},[]),pe=l.useCallback(ie=>{const ye={...Y.current,...ie};Y.current=ye,F(ye),is(ye)},[]),P=X.mainSpeed,q=X.mainVolume,oe=l.useCallback(ie=>pe({mainSpeed:ie}),[pe]),ge=l.useCallback(ie=>pe({mainVolume:ie}),[pe]),de=l.useMemo(()=>({settings:X,setSettings:pe,registerAnalyser:ve,mainAnalyser:O,noiseAnalyser:ue,playbackRate:P,setPlaybackRate:oe,mainVolume:q,setMainVolume:ge}),[X,pe,ve,O,ue,P,oe,q,ge]),I=l.useRef(null),[Z,J]=l.useState("center"),[fe,De]=l.useState(!1),$e=l.useRef(!1),Le=l.useRef(null),Ee=l.useCallback(ie=>{$e.current||($e.current=!0,De(!0),Le.current=setTimeout(ie,m7))},[]);l.useEffect(()=>()=>{Le.current&&clearTimeout(Le.current)},[]),l.useEffect(()=>{const ie=I.current;if(!ie)return;const ye=Array.from(ie.querySelectorAll(dr)).filter(U=>!U.closest('[aria-hidden="true"]'))[0];if(ye)try{ye.focus()}catch{}const Ce=U=>{if(U.key==="Escape"){U.preventDefault(),Ee(()=>{typeof p=="function"&&p()});return}};return ie.addEventListener("keydown",Ce),()=>ie.removeEventListener("keydown",Ce)},[p,Ee]),ws(I,!0);const[je,Te]=l.useState(!1),Ie=l.useRef(!1),[He,be]=l.useState(null),[Ke,Ve]=l.useState(""),[Re,qe]=l.useState(()=>$n()),vt=l.useRef(typeof d=="number"?d:null);l.useEffect(()=>{!$&&!z||(qe($n()),be(null))},[$,E,z]),l.useEffect(()=>{z&&qe(ie=>{const ye=Math.max(0,Math.min(ie.pageIndex,Math.max(0,V-1)));return ye!==ie.pageIndex?{...ie,pageIndex:ye,stepIndex:0}:ie})},[z,V]);const Ue=z?Math.max(0,Math.min(Re.pageIndex,V-1)):0,Xe=z?R[Ue]:null,ut=z&&Xe&&Array.isArray(Xe.steps)?Xe.steps:[],ze=$?Re.pageIndex:z?Ue:typeof d=="number"?d:0,rt=$?te[Math.max(0,Math.min(Re.pageIndex,Math.max(0,te.length-1)))]:null,et=$&&rt&&Array.isArray(rt.steps)?rt.steps:[],We=$?et.length:z?ut.length:typeof h=="number"?h:0,Je=$||z?Math.max(0,Math.min(Re.stepIndex,Math.max(0,We))):typeof m=="number"?m:0,tt=$?te.length:z?V:typeof u=="number"?u:0;l.useLayoutEffect(()=>{const ie=vt.current;if(typeof ze=="number"&&ie!==null&&ze!==ie&&ze>ie)try{Ve(M("training.problemNotice",{n:ze+1}))}catch{}vt.current=typeof ze=="number"?ze:vt.current},[ze,d,M]),l.useLayoutEffect(()=>{const ie=I.current;if(!ie)return;const ye=()=>ie.querySelector(".page-popup__scroll");let Ce=null,U=null,le=null;const we=ct=>{const ce=ye();if(!ce)return;const Be=ce.scrollHeight<=ce.clientHeight;if(J(Be?"center":"top"),ct&&!Ie.current){Ie.current=!0;try{Te(!0)}catch{}try{Oe.disconnect()}catch{}}},Se=()=>{Ce!==null&&cancelAnimationFrame(Ce),Ce=requestAnimationFrame(()=>{U!==null&&clearTimeout(U),U=setTimeout(()=>we(!0),60)})},Ae=()=>{le!==null&&cancelAnimationFrame(le),le=requestAnimationFrame(()=>we(!1))};Se(),window.addEventListener("resize",Ae);const Oe=new MutationObserver(Se);Oe.observe(ie,{childList:!0,subtree:!0,attributes:!0});const nt=setTimeout(()=>{Ie.current||we(!0)},400);return()=>{window.removeEventListener("resize",Ae),Ce!==null&&cancelAnimationFrame(Ce),U!==null&&clearTimeout(U),le!==null&&cancelAnimationFrame(le),clearTimeout(nt);try{Oe.disconnect()}catch{}}},[I]);const xt=l.useCallback(ie=>{I.current&&(I.current._childOnNext=ie)},[]),Et=l.useCallback(ie=>{I.current&&(I.current._childOnResult=ie)},[]),it=l.useCallback((ie,ye,Ce)=>{qe(U=>{const le=U.answersByPage[ie]||{},we=le[ye],Se=Rn(Ce),Ae=Rn(we);return we&&Ae>Se?U:{...U,answersByPage:{...U.answersByPage,[ie]:{...le,[ye]:Ce}}}})},[qe]),Ht=l.useCallback((ie,ye,Ce)=>{const U=Mc(rt,ze),le=Pc(ie,ye);it(U,le,Ce)},[rt,ze,it]),mt=l.useCallback((ie,ye,Ce)=>{const U=Mc(rt,ze),le=Pc(ie,ye);it(U,le,Ce),!Ce?.allowChange&&ie?.autoAdvance!==!1&&qe(we=>({...we,stepIndex:Math.max(we.stepIndex,ye+1)}))},[rt,ze,it,qe]),Vt=l.useCallback((ie,ye)=>{const Ce=Xe?.id||`children-page-${ze??0}`,U=typeof ye=="number"?ye:Je??0,le=`step-${U}`;it(Ce,le,ie),ie?.allowChange||qe(we=>({...we,stepIndex:Math.max(we.stepIndex,U+1)}))},[Xe,ze,Je,it,qe]),ia=l.useCallback((ie,ye)=>{const Ce=Xe?.id||`children-page-${ze??0}`,U=`step-${typeof ye=="number"?ye:Je??0}`;it(Ce,U,ie)},[Xe,ze,Je,it]),Gt=z?{currentPageIndex:ze??0,currentStepIndex:Je??0,totalStepsInPage:ut.length,handleStepDone:Vt,handleStepChange:ia}:null,Ea=async()=>{const ie=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:te,flowState:Re,answersByPage:Re.answersByPage})):null;return typeof T=="function"&&await Promise.resolve(T(ie))||ie},sa=async()=>{const ie=Xe?.id||`children-page-${Re.pageIndex}`,ye=Re.answersByPage[ie]||{},Ce=L?(()=>{const we={};let Se=0;return R.forEach(Ae=>{const Oe=Re.answersByPage[Ae.id]||{},nt=Array.isArray(Ae.steps)?Ae.steps.length:0;for(let ct=0;ct<nt;ct+=1){const ce=Oe[`step-${ct}`];typeof ce<"u"&&(we[`step-${Se+ct}`]=ce)}Se+=nt}),we})():ye;if(typeof C=="function"){const we=await Promise.resolve(C(Ce,{pageAnswers:ye,answersByPage:Re.answersByPage,pages:R,currentPageId:ie}));return typeof T=="function"&&await Promise.resolve(T(we))||we}const U=Object.entries(ye).map(([we,Se],Ae)=>({index:Ae,key:we,payload:Se})),le={results:U,answers:U,score:0};return typeof T=="function"&&await Promise.resolve(T(le))||le},Kt=()=>{try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if($){const Ce=Ea();be({});const U=Ce;Promise.resolve(U).then(le=>{be(le||{isEmpty:!0})}).catch(le=>{be({isEmpty:!0})});return}if(z){const Ce=sa();be({});const U=Ce;Promise.resolve(U).then(le=>{be(le||{isEmpty:!0})}).catch(le=>{be({isEmpty:!0})});return}const ie=I.current&&I.current._childOnResult,ye=Ce=>{try{return Ce?Ce():void 0}catch{return}};if(typeof ie=="function"){const Ce=ye(ie);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Ce&&typeof Ce.then!="function"?be(Ce):be(Ce&&typeof Ce.then=="function"?{}:{}),Promise.resolve(Ce).then(U=>{U&&be(U)}).catch(U=>{});return}if(typeof T=="function"){const Ce=ye(T);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Ce&&typeof Ce.then!="function"?be(Ce):be(Ce&&typeof Ce.then=="function"?{}:{}),Promise.resolve(Ce).then(U=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}U&&be(U)}).catch(U=>{console.error("viewResults external handler failed",U)});return}},ja=()=>{if($){if(typeof ze=="number"&&typeof tt=="number"&&ze<tt-1){qe(ye=>({...ye,pageIndex:ye.pageIndex+1,stepIndex:0}));return}return Kt()}if(z){const ye=ut.length;if(typeof Je=="number"&&Je<ye-1){qe(Ce=>({...Ce,stepIndex:Ce.stepIndex+1}));return}if(typeof ze=="number"&&typeof tt=="number"&&ze<tt-1){qe(Ce=>({...Ce,pageIndex:Ce.pageIndex+1,stepIndex:0}));return}return Kt()}if(typeof f=="function"){try{f()}catch{}return}const ie=I.current&&I.current._childOnNext;if(typeof ie=="function"){try{ie()}catch{}return}},jt=$?H.title||H.label||_||M("common.popup","\uD31D\uC5C5"):a||x||(Array.isArray(n)?n[n.length-1]:void 0)||_||M("common.popup","\uD31D\uC5C5"),Ga=$?H.title??H.label??jt:a??x??jt,$t=(ie,ye)=>{const Ce=Mc(rt,ze),U=Pc(ie,ye),le=Re.answersByPage[Ce]?.[U],we=N7(ie,{page:rt,pageIndex:ze,step:ie,stepIndex:ye,storedPayload:le,answersByPage:Re.answersByPage,flowState:Re}),Se={key:U,index:ye,stepIndex:Je,isLast:ye===et.length-1};switch(ie?.type){case"listen":return o.jsx(Mn,{...Se,...we,onDone:Ae=>mt(ie,ye,Ae)});case"confirm":return o.jsx(jn,{...Se,...we,onDone:Ae=>mt(ie,ye,Ae),onChange:Ae=>Ht(ie,ye,Ae)});case"confirmWithText":return o.jsx(Ln,{...Se,...we,onDone:Ae=>mt(ie,ye,Ae),onChange:Ae=>Ht(ie,ye,Ae)});case"orderList":return o.jsx(Pn,{...Se,...we,onDone:Ae=>mt(ie,ye,Ae),onChange:Ae=>Ht(ie,ye,Ae)});default:return null}},ya=$?te.length>0?o.jsx("div",{className:"training-steps",children:et.map((ie,ye)=>$t(ie,ye))}):o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"pp-empty",children:t?.emptyMessage||M("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,qa=z?o.jsxs(Wb.Provider,{value:Gt,children:[Xe?.pageTop?o.jsx("div",{className:"training-page-top",children:Xe.pageTop}):null,o.jsx("div",{className:"training-steps",children:ut.map((ie,ye)=>{const Ce=ie;return l.cloneElement(Ce,{...Ce.props,_stepIndex:ye,_totalSteps:ut.length,_stepKey:`step-${ye}`,_pageIndex:ze})})}),Xe?.pageBottom?o.jsx("div",{className:"training-page-bottom",children:Xe.pageBottom}):null]}):null,Qe=l.useCallback(()=>{let ie;if(w){const ye=He,Ce=ye?.results||ye?.answers||[],U=Array.isArray(Ce)&&Ce.length>0?Ce.length:null,le=Array.isArray(Ce)?Ce.filter(Se=>Se?.correct===!0||Se?.isCorrect===!0||Se?.score===1||Se?.heard===!0||Se?.judgement===!0).length:null,we=U!=null?le:null;ts({items:os(Ce),category:Vb.has(w)?"sentence":"word",trainingType:w,entryPoint:S??"sentence",itemRef:A??null,correct:we,total:U,score:typeof ye?.score=="number"?ye.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-W.current)/1e3)),dailyTotal:j??null}),ie={correct:we,total:U}}be(null),Ee(()=>{typeof g=="function"&&g(ie),typeof p=="function"&&p()})},[g,p,w,S,j,A,He,be,Ee]),It=l.useCallback(()=>Ve(""),[Ve]),kt=l.useCallback(()=>{Ee(()=>{typeof p=="function"&&p()})},[p,Ee]),xa=o.jsxs("div",{className:`page-popup${fe?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":jt,children:[o.jsxs("div",{ref:I,className:`page-popup__panel ${je?"":"page-popup__panel--measuring"} ${Z==="center"?"page-popup__panel--center":Z==="top"?"page-popup__panel--top":""}`,children:[o.jsx(kc,{title:Ga,subtitle:$?H.subtitle||H.label:Array.isArray(n)?n.join(" / "):void 0,desc:$?void 0:r,depth:$?H.depth:n,icon:$?H.icon:i,wrapperStyle:$?H.wrapperStyle:s,iconTooltip:$?H.iconTooltip:c,progressMax:tt,progressIndex:ze,pageIndex:ze,pageCount:tt,onBack:kt,onClose:kt}),o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:`page-popup__content ${Z==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:z?qa:$?ya:typeof y=="function"?y({registerOnNext:xt,registerOnResult:Et,panelRef:I,setResultOverlay:be}):y})}),o.jsx(wc,{onSettings:b,onNext:ja,onResult:Kt,useNoiseSettingBtn:!!($?H.useNoiseSetting??!0:v),stepIndex:Je,stepCount:We,pageIndex:ze,pageCount:tt})]}),He&&!He.isEmpty&&(B??D7)({score:He.score,results:He.results||He.answers||[],contextsLength:He.results?He.results.length:He.answers?He.answers.length:0,onReplay:()=>{if(be(null),$){if(qe($n()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(z){qe($n());return}try{const ie=I.current&&I.current._childOnResult;typeof ie=="function"&&ie({replay:!0})}catch{}},onClose:Qe}),He?.isEmpty&&o.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":M("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:o.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"page-popup__empty",children:M("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),o.jsx("div",{className:"page-popup__bottom",children:o.jsx(re,{variant:"main",size:48,onClick:Qe,label:M("training.result.done","\uC644\uB8CC")})})]})}),o.jsx(ro,{message:Ke,position:"top",onClose:It})]}),la=o.jsx(_b.Provider,{value:de,children:xa});return typeof document<"u"&&document.body?qt.createPortal(la,document.body):la}const Da=E7;Da.Page=Sr,Da.ListenStep=Tc,Da.ConfirmStep=Bc,Da.ConfirmWithTextStep=Nc,Da.OrderListStep=Dc,Da.CardStep=Ec,Da.CardOrderStep=S7;var j7=".ihabdevteam-core-scope .word-search-result-block__actions{display:flex;gap:var(--spacing-xs);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:flex-end}.ihabdevteam-core-scope .word-search-result-block__inner{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);padding:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__inner:has(+.word-search-result-block__actions:not(:empty)){margin-bottom:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__items{grid-gap:var(--spacing-xs);display:grid;gap:var(--spacing-xs);grid-template-columns:repeat(auto-fill,200px);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__items .button__label-text,.ihabdevteam-core-scope .word-search-result-block__items .button__sub-label-text{white-space:nowrap;word-break:keep-all}.ihabdevteam-core-scope .word-search-result-block__items .button__label:has(.button__label-text:nth-child(4)){gap:4px 10px;grid-auto-columns:auto;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}.ihabdevteam-core-scope .word-search-result-block__items .button-word:has(.button__label-text:nth-child(4)){height:auto;min-height:72px;padding-bottom:8px;padding-top:8px}@media (max-width:767px){.ihabdevteam-core-scope .word-search-result-block__items{grid-template-columns:repeat(2,1fr);justify-content:normal}.ihabdevteam-core-scope .word-search-result-block__items .button{min-width:0!important;width:100%}}.ihabdevteam-core-scope .word-search-result-block__empty{color:var(--color-gray);margin:0;padding:24px 0;text-align:center}.ihabdevteam-core-scope .word-search-result-block__group{display:flex;flex-direction:column;gap:10px}.ihabdevteam-core-scope .word-search-result-block__group+.word-search-result-block__group{border-top:1px solid var(--color-darkWhite);margin-top:var(--spacing-l);padding-top:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__pagination-bottom{display:flex;justify-content:center;margin-top:16px}.ihabdevteam-core-scope .word-search-result-block__empty-wrap{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .word-search-result-block__empty-hint{color:var(--color-sub);line-height:1.6;max-width:34em;text-align:center}.ihabdevteam-core-scope .word-search-result-block__disc,.ihabdevteam-core-scope .word-search-result-block__notice{display:block}.ihabdevteam-core-scope .word-search-result-block__notice{color:var(--color-text-primary)}";ee(j7);var L7='.ihabdevteam-core-scope .tooltip-word-image{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-dropdown);padding:var(--spacing-s);position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-word-image__cells{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tooltip-word-image__cell{background:#f5f5f5;background:var(--color-white,#f5f5f5);border-radius:var(--radius-card);flex-shrink:0;height:120px;overflow:hidden;position:relative;width:120px}.ihabdevteam-core-scope .tooltip-word-image__cell img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .tooltip-word-image__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .tooltip-word-image__spinner:after{animation:tooltip-spin .7s linear infinite;border:3px solid #e0e0e0;border-radius:50%;border-top:3px solid var(--color-white,#e0e0e0);border:3px solid var(--color-white,#e0e0e0);border-top-color:var(--color-main,#4f6ef7);content:"";height:24px;width:24px}@keyframes tooltip-spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .tooltip-word-image__cell--text{align-items:center;color:var(--color-black);display:flex;font-weight:700;justify-content:center}';ee(L7);function M7({label:e,homonum:t}){const a=Ma()?.(e,t)??"",{imgRef:r,loading:n,hasImage:i,onLoad:s,onError:c}=Ql(a);return i?o.jsxs("div",{className:"tooltip-word-image__cell",children:[n&&o.jsx("div",{className:"tooltip-word-image__spinner"}),o.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:n?0:1},onLoad:s,onError:c})]}):o.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:o.jsx("span",{children:e})})}function Rc({words:e,anchorRect:t}){const a=l.useRef(null),[r,n]=l.useState(null);return l.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:s}=a.current,c=window.innerWidth;let d=t.left+t.width/2-i/2,u=t.top-s-8;u<8&&(u=t.bottom+8),d=Math.max(8,Math.min(d,c-i-8)),n({left:d,top:u})},[t]),!t||e.length===0?null:qt.createPortal(o.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:o.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>o.jsx(M7,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}function Gb({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:n,groups:i,selected:s=[],onSelect:c,maxSelect:d,onClearSelection:u,onPrint:m,onPrintEmpty:h,className:p,emptyHint:g,sectionType:f="page",disc:b,notice:v}){const{t:y,i18n:_}=me.useTranslation(),x=_.language?.startsWith("ko")??!1,{anchorRect:C,openAt:k,close:w}=ko(),[S,j]=l.useState(null),A=l.useCallback(()=>{w(),j(null)},[w]);wl(A,!!S);const B=(r??"").trim(),W=/^[^,[\]\s]+$/.test(B)?B:"",M=W.length>0,[T,$]=l.useState("ganada"),[E,H]=l.useState("50"),[te,Q]=l.useState(1),[ae,N]=l.useState(M);ae!==M&&(N(M),$(M?"match":"ganada"));const L=T==="match"&&!M?"ganada":T,R=l.useMemo(()=>[...M?[{value:"match",label:y("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:y("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:y("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:y("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:y("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:y("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:y("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[y,M]),z=l.useMemo(()=>["10","25","50","100"].map(I=>({value:I,label:y("wordSearch.pageSize",{count:Number(I),defaultValue:`${I}\uAC1C\uC529 \uBCF4\uAE30`})})),[y]),V=I=>I.words[0],X=l.useCallback((I,Z)=>{const J=$e=>V($e)?.label??"",fe=$e=>V($e)?.syllables??[...J($e)].length,De=$e=>{const Le=parseInt(V($e)?.grade??"",10);return Number.isFinite(Le)?Le:999};switch(L){case"match":{const $e=[...W].length,Le=Ee=>ho(J(Ee).slice(0,$e),W)?0:1;return Le(I)-Le(Z)||J(I).localeCompare(J(Z),"ko")}case"ganada":return J(I).localeCompare(J(Z),"ko");case"ganada_desc":return J(Z).localeCompare(J(I),"ko");case"syllable":return fe(I)-fe(Z)||J(I).localeCompare(J(Z),"ko");case"syllable_desc":return fe(Z)-fe(I)||J(I).localeCompare(J(Z),"ko");case"grade":return De(I)-De(Z)||J(I).localeCompare(J(Z),"ko");case"grade_desc":return De(Z)-De(I)||J(I).localeCompare(J(Z),"ko");default:return 0}},[L,W]),F=l.useMemo(()=>n.slice().sort(X),[n,X]),Y=Number(E)||10,O=l.useMemo(()=>(i??[]).flatMap(I=>I.items.slice().sort(X).map(Z=>({item:Z,label:I.label}))),[i,X]),ne=i?O.length:F.length,ue=Math.max(1,Math.ceil(ne/Y)),xe=Math.min(te,ue),ve=l.useMemo(()=>F.slice((xe-1)*Y,xe*Y),[F,xe,Y]),pe=l.useMemo(()=>{if(!i)return null;const I=O.slice((xe-1)*Y,xe*Y),Z=new Map;for(const{item:J,label:fe}of I)Z.has(fe)||Z.set(fe,[]),Z.get(fe).push(J);return[...Z.entries()].map(([J,fe])=>({label:J,items:fe}))},[i,O,xe,Y]);l.useEffect(()=>{Q(1)},[T,E,ne]);const P=ne>0?o.jsxs("div",{className:"word-search-result-block__toolbar",children:[o.jsx(Ut,{size:40,options:R,value:L,onChange:$,ariaLabel:y("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),o.jsx(Ut,{size:40,options:z,value:E,onChange:H,ariaLabel:y("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),o.jsx(vr,{page:xe,totalPages:ue,onChange:Q})]}):void 0,q=I=>{c&&c(I)},oe=t!==void 0&&a?o.jsxs(o.Fragment,{children:[y("wordSearch.resultTitlePrefix","\uCD1D "),o.jsx("span",{style:{color:"var(--color-main)"},children:t}),y("wordSearch.resultTitleSuffix",{unit:x?Li(a):a})]}):void 0,ge=t!==void 0&&t>0&&d!==void 0&&a?y("wordSearch.resultDisc",{unit:x?Pi(a):a,max:d,selected:s.length}):void 0,de=b??(v?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"word-search-result-block__notice",children:v}),ge?o.jsx("span",{className:"word-search-result-block__disc",children:ge}):null]}):ge);return o.jsxs(no,{type:f,icon:e,title:oe,action:P,disc:de,className:_e("word-search-result-block",p),children:[o.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:n.length===0)&&o.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[o.jsx("p",{className:"word-search-result-block__empty body-3",children:y("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&o.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(pe??[]).map(I=>o.jsx("div",{className:"word-search-result-block__group",children:o.jsx("div",{className:"word-search-result-block__items",children:I.items.map(Z=>{const J=s.includes(Z.id);return o.jsx("div",{onMouseEnter:fe=>{k(fe.currentTarget),j(Z.words)},onMouseLeave:A,children:o.jsx(re,{size:"word",align:"grid",label:Z.words.map(fe=>fe.label),subLabel:Z.words.map(fe=>fe.subLabel).filter(Boolean).length>0?Z.words.map(fe=>fe.subLabel):void 0,selected:J,onClick:()=>q(Z.id),minWidth:200})},Z.id)})})},I.label)):o.jsx("div",{className:"word-search-result-block__items",children:ve.map(I=>{const Z=s.includes(I.id);return o.jsx("div",{onMouseEnter:J=>{k(J.currentTarget),j(I.words)},onMouseLeave:A,children:o.jsx(re,{size:"word",align:"grid",label:I.words.map(J=>J.label),subLabel:I.words.map(J=>J.subLabel).filter(Boolean).length>0?I.words.map(J=>J.subLabel):void 0,selected:Z,onClick:()=>q(I.id),minWidth:200})},I.id)})}),S&&C&&o.jsx(Rc,{words:S,anchorRect:C})]}),ue>1&&o.jsx("div",{className:"word-search-result-block__pagination-bottom",children:o.jsx(vr,{page:xe,totalPages:ue,onChange:Q})}),(u||m)&&o.jsxs("div",{className:"word-search-result-block__actions",children:[u&&o.jsx(re,{size:"56",type:"bar",label:y("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:s.length===0,onClick:s.length===0?void 0:u}),m&&o.jsx("div",{onClick:s.length===0?h:void 0,children:o.jsx(re,{size:"56",type:"bar",variant:"main",label:y("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:s.length===0,onClick:s.length===0?void 0:m})})]})]})}var P7='.ihabdevteam-core-scope .phoneme-select-block{align-items:flex-start;flex:1 1 auto;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell{align-items:center;display:flex;flex-direction:column;gap:12px}.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs);justify-content:center;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;flex-direction:column}}.ihabdevteam-core-scope .phoneme-select-block__count-control{align-self:center}.ihabdevteam-core-scope .phoneme-select-block__cell-group{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;color:var(--color-lightGray);margin-bottom:22px;padding:0 16px}.ihabdevteam-core-scope .phoneme-select-block__pair-panels{display:flex;gap:var(--spacing-s);width:100%}.ihabdevteam-core-scope .phoneme-select-block__panel-group{display:flex;flex:1;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .phoneme-select-block__cells{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-m) 0;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{align-items:center;background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;height:80px;justify-content:center;position:relative;width:240px}.ihabdevteam-core-scope .phoneme-select-block__cell-index{color:var(--color-gray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo{align-items:stretch;display:flex;flex-direction:row;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{align-items:center;color:var(--color-black);display:flex;flex:1;flex-direction:column;gap:4px;justify-content:center;padding-top:3px;position:relative}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--no-label{padding-top:0}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char.h1{line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char--excluded{color:var(--color-whiteLine);transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-char{transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-label{color:var(--color-lightGray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-label{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part+.phoneme-select-block__cell-jamo-part:before{background:var(--color-whiteLine);content:"";height:20px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:1px}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__panels{align-items:stretch;align-self:stretch;display:flex;flex-direction:column;gap:var(--spacing-m);width:100%}.ihabdevteam-core-scope .phoneme-select-block__detail{align-items:flex-start;display:flex;flex-direction:row;gap:var(--spacing-s);justify-content:center}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{flex:1}.ihabdevteam-core-scope .phoneme-select-block>.filter-panel{align-self:stretch;width:100%}.ihabdevteam-core-scope .phoneme-select-block__controls .button38--bar{min-width:96px}.ihabdevteam-core-scope .phoneme-select-block__required{color:var(--color-main);line-height:1;margin-left:2px}.ihabdevteam-core-scope .phoneme-select-block__before-search{display:flex;justify-content:center;text-align:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__search-row{display:flex;gap:var(--spacing-xs);justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__checking{align-items:center;background:transparent;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);color:var(--color-disabled);cursor:default;display:flex;gap:10px;height:60px;min-width:198px;padding:0 28px}.ihabdevteam-core-scope .phoneme-select-block__checking-label{white-space:nowrap}.ihabdevteam-core-scope .phoneme-select-block__spinner{animation:phonemeSpinner .7s linear infinite;border:2px solid var(--color-whiteLine);border-radius:50%;border-top-color:var(--color-disabled);flex-shrink:0;height:18px;width:18px}@keyframes phonemeSpinner{to{transform:rotate(1turn)}}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__detail,.ihabdevteam-core-scope .phoneme-select-block__pair-panels{flex-direction:column}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;margin-bottom:0;padding:4px 0}.ihabdevteam-core-scope .phoneme-select-block__cells{flex-wrap:wrap}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{height:64px;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{font-size:24px}}';ee(P7);function R7(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,n=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:n}})}function qb({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:n=4,minCount:i=1,combinationSections:s,combinationSectionsForSlot:c,onSelect:d,placeholder:u="-",className:m,title:h,titleIcon:p,disc:g,showInfoButton:f=!1,onClearPhoneme:b,onSearch:v,onSearchEmpty:y,searchDisabled:_=!1,searchLabel:x,searchChecking:C=!1,pairMode:k=!1,sectionType:w="page",beforeSearchContent:S,beforeContent:j,afterContent:A,hideCountControl:B=!1,ordinal:W=!1}){const{t:M}=me.useTranslation(),T=l.useMemo(()=>M("wordPairs.infoNotes",{returnObjects:!0}),[M]),$=l.useMemo(()=>Array.from({length:n-i+1},(F,Y)=>{const O=i+Y;return{key:String(O),label:M("wordPairs.count",{n:O})}}),[M,n,i]),E=l.useMemo(()=>M("wordPairs.ordinals",{returnObjects:!0}),[M]),H=l.useCallback(F=>W?M("wordPairs.phonemeOrdinalLabel",{ordinal:E[F-1]??F}):a===1?M("wordPairs.phonemeSingleLabel","\uC74C\uC808"):M("wordPairs.phonemeN",{n:F}),[W,E,a,M]),te=l.useCallback(F=>W?M("wordPairs.phonemeContrastOrdinalLabel",{ordinal:E[F-1]??F}):a===1?M("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):M("wordPairs.phonemeContrast",{n:F}),[W,E,a,M]),Q=l.useCallback((F,Y)=>Y?o.jsxs(o.Fragment,{children:[F,o.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):F,[]),{anchorRect:ae,toggleAt:N,close:L}=ko(),R=l.useCallback(F=>r(Number(F)),[r]),z=oa("(max-width: 767px)"),V=l.useCallback(F=>R7(F,e).map(({label:Y,value:O,displayLabel:ne})=>{const ue=!!O&&O!=="\uC5C6\uC74C";return o.jsxs("span",{className:_e("phoneme-select-block__cell-jamo-part",O?"":"phoneme-select-block__cell-jamo-part--empty",ue?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[o.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${O==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:O==="\uC5C6\uC74C"?"x":O||u}),ue&&o.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:ne??Y})]},Y)}),[e,u]),X=o.jsxs(o.Fragment,{children:[o.jsx("div",{"data-tooltip-ignore":!0,children:o.jsx(re,{size:40,type:z?"dot":void 0,icon:"info",label:z?void 0:M("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!ae,onClick:F=>N(F.currentTarget)})}),ae&&o.jsx(to,{title:M("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:T,anchorRect:ae,onClose:L})]});return o.jsxs(no,{type:w,title:h,icon:p,disc:g,action:X,className:_e("phoneme-select-block",m),children:[j,(!B||f&&!(h||g))&&o.jsxs("div",{className:"phoneme-select-block__controls",children:[!B&&o.jsx(Ha,{options:$,value:String(a),onChange:R,size:40,className:"phoneme-select-block__count-control"}),f&&!(h||g)&&X]}),o.jsx("div",{className:"phoneme-select-block__cells",children:k?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((F,Y)=>{const O=t[Y*2]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:V(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:H(Y+1)})]},Y)})}),o.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:M("wordPairs.phonemeSelect.vs","\uB300")}),o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((F,Y)=>{const O=t[Y*2+1]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:V(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:te(Y+1)})]},Y)})})]}):t.map((F,Y)=>o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:V(F)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:H(Y+1)})]},Y))}),(s||c)&&o.jsx("div",{className:"phoneme-select-block__panels",children:o.jsx("div",{className:"phoneme-select-block__detail",children:k?o.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((F,Y)=>{const O=t[Y*2]??{};return o.jsx(va,{title:Q(H(Y+1),Y===0),sections:c?c(O,Y*2):s,selected:O,onSelect:d?.(Y*2),align:"newline"},Y)})}),o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((F,Y)=>{const O=t[Y*2+1]??{};return o.jsx(va,{title:te(Y+1),sections:c?c(O,Y*2+1):s,selected:O,onSelect:d?.(Y*2+1),align:"newline"},Y)})})]}):t.map((F,Y)=>o.jsx(va,{title:Q(H(Y+1),Y===0),sections:c?c(F,Y):s,selected:F,onSelect:d?.(Y),align:"newline"},Y))})}),S&&o.jsx("div",{className:"phoneme-select-block__before-search",children:S}),(b||v||C)&&(()=>{const F=t.every(Y=>Object.entries(Y).every(([O,ne])=>!ne||O==="\uC885\uC131"&&ne==="\uC5C6\uC74C"));return o.jsxs("div",{className:"phoneme-select-block__search-row",onClick:F?y:void 0,children:[b&&o.jsx(re,{size:"56",type:"bar",label:M("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:F,onClick:F?void 0:b}),C?o.jsxs("div",{className:"phoneme-select-block__checking",children:[o.jsx("div",{className:"phoneme-select-block__spinner"}),o.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:x??M("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):v&&o.jsx(re,{size:"56",type:"bar",variant:"main",label:x??M("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:F||_,onClick:F||_?void 0:v})]})})(),A]})}function Yb({title:e,sections:t,selected:a,onSelect:r,className:n}){const{t:i}=me.useTranslation();return o.jsx(va,{className:n,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function Ub({title:e,headerAction:t,sections:a,selected:r,onSelect:n,className:i}){const{t:s}=me.useTranslation();return a.length===0?null:o.jsx(va,{className:i,title:e??s("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:n,align:"newline"})}function Kb({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:n,positionCount:i,onPositionCountChange:s,inputMode:c,onInputModeChange:d,className:u}){const{t:m}=me.useTranslation(),h={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},p=v=>m("wordPairs.count",{n:v}),g=[{label:h.searchMode,items:[h.include,h.pick,h.explicit],display:"segmented",labelAction:o.jsx(So,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),m("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),m("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:h.phonemeOrder,items:[h.orderAny,h.orderMatch],display:"segmented",labelAction:o.jsx(So,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:h.count,items:[p(1),p(2)],display:"segmented"},{label:h.inputMode,items:[h.charInput,h.pronInput],display:"segmented",labelAction:o.jsx(So,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),m("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],f={[h.searchMode]:t==="explicit"?h.explicit:t==="pick"?h.pick:h.include,[h.phonemeOrder]:r==="ordered"?h.orderMatch:h.orderAny,[h.count]:p(i),[h.inputMode]:c==="phoneme"?h.pronInput:h.charInput},b=(v,y)=>{y===h.searchMode?a(v===h.explicit?"explicit":v===h.pick?"pick":"include"):y===h.phonemeOrder?n(v===h.orderMatch?"ordered":"unordered"):y===h.count?s(v===p(2)?2:1):y===h.inputMode&&d(v===h.pronInput?"phoneme":"word")};return o.jsx(va,{className:u,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:f,onSelect:b,align:"inline"})}var $7=".ihabdevteam-core-scope .popup-list .popup-panel{max-height:calc(100% - 60px);max-width:880px;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-list .popup-content{display:flex;flex-direction:column;gap:var(--spacing-m);min-height:0;overflow:hidden}.ihabdevteam-core-scope .popup-list .table-wrap{flex:1;min-height:0;overflow-x:auto;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .popup-list .table-fields,.ihabdevteam-core-scope .popup-list .table-row{min-width:520px}.ihabdevteam-core-scope .popup-list__row--selected{background:var(--color-deepWhite);color:var(--color-main);font-weight:600}";ee($7);function Zb(e){const{title:t,items:a,columns:r,gridTemplateColumns:n,searchPlaceholder:i,searchFn:s,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:u,selectedIds:m,onSelect:h,onClose:p,pageSizeOptions:g=[10,25,50,100],initialPageSize:f,emptyText:b,countLabel:v,topContent:y,className:_=""}=e,{t:x}=me.useTranslation(),C=i??x("common.search","\uAC80\uC0C9"),k=b??x("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,S]=l.useState(""),[j,A]=l.useState(c??r[0]?.key??""),[B,W]=l.useState(d),[M,T]=l.useState(String(f??g[0]??10)),[$,E]=l.useState(1);l.useEffect(()=>{E(1)},[w,M]);const H=s!==null,te=l.useCallback((F,Y)=>{if(!Y)return!0;const O=Y.toLowerCase();return r.some(ne=>{const ue=F[ne.key];return ue==null?!1:String(ue).toLowerCase().includes(O)})},[r]),Q=s??te,ae=l.useMemo(()=>{const F=H?a.filter(Y=>Q(Y,w)):a;return j?[...F].sort((Y,O)=>{const ne=Y[j]??"",ue=O[j]??"";return ne===ue?0:B?ne>ue?1:-1:ne<ue?1:-1}):F},[a,w,j,B,H,Q]),N=Math.max(1,Math.ceil(ae.length/Number(M))),L=ae.slice(($-1)*Number(M),$*Number(M)),R=l.useCallback(F=>{j===F?W(Y=>!Y):(A(F),W(!0))},[j]),z=l.useMemo(()=>{if(typeof v=="string"&&v.includes("{n}")){const[F,Y]=v.split("{n}");return{prefix:F,suffix:Y}}return{prefix:x("common.totalCountPrefix","\uCD1D "),suffix:x("common.totalCountSuffix","\uAC1C")}},[v,x]),V=l.useMemo(()=>r.map(F=>({label:F.label,onClick:F.sortable!==!1?()=>R(F.key):void 0,className:F.className,sortDir:F.sortable!==!1&&j===F.key?B?"asc":"desc":null})),[r,j,B,R]),X=l.useMemo(()=>g.map(F=>({value:String(F),label:x("common.pageSizeLabel",{n:F})})),[g,x]);return o.jsxs(Ta,{className:`popup-list ${_}`,title:t,onClose:p,children:[y,o.jsx(vn,{count:{value:ae.length,prefix:z.prefix,suffix:z.suffix},search:H?{value:w,onChange:S,placeholder:C}:void 0,pageSize:{options:X,value:M,onChange:T},pagination:{page:$,total:N,onChange:E}}),o.jsx(_n,{size:"medium",gridTemplateColumns:n,resizable:!0,fields:V,items:L,onRowClick:h,renderRow:F=>{const Y=m!=null?F.id!=null&&m.has(F.id):u!=null&&F.id===u;return r.map(O=>({content:O.render?O.render(F):F[O.key]??"",className:Y?"popup-list__row--selected":O.className}))},empty:k})]})}function Xb(e){const{title:t,message:a,topContent:r,details:n,children:i,confirmLabel:s,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:m="main",confirmDisabled:h=!1,onConfirm:p,closeOnConfirm:g=!0,onClose:f,inline:b,size:v="small",className:y}=e,{t:_}=me.useTranslation(),x=l.useRef(!1),[C,k]=l.useState(!1);return o.jsxs(Ta,{title:t,onClose:f,closeDisabled:C,inline:b,size:v,className:_e("confirm-popup",y),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||C,onClick:async({closeWithAnimation:w})=>{if(!x.current){x.current=!0,k(!0);try{await u.onClick(w),(u.closeOnClick??!0)&&w()}finally{x.current=!1,k(!1)}}}}]:[],...d?[]:[{label:c??_("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:C,onClick:({closeWithAnimation:w})=>w()}],{label:s??_("common.confirm","\uD655\uC778"),variant:m,disabled:h||C,onClick:async({closeWithAnimation:w})=>{if(!x.current){x.current=!0,k(!0);try{await p(w),g&&w()}finally{x.current=!1,k(!1)}}}}],children:[r!=null&&o.jsx("div",{className:"confirm-popup__top",children:r}),n&&n.length>0&&o.jsx(kr,{children:n.map((w,S)=>o.jsx(Na,{label:w.label,children:o.jsx("span",{className:"panel-row__text body-2",children:w.value})},S))}),o.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}var I7=".ihabdevteam-core-scope .coupon-input-popup__input{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);font-family:inherit;height:48px;letter-spacing:.06em;padding:0 14px;text-transform:uppercase;transition:border-color .15s;width:100%}.ihabdevteam-core-scope .coupon-input-popup__input:focus{border-color:var(--color-main);outline:none}.ihabdevteam-core-scope .coupon-input-popup__input::-moz-placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__input::placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__error{color:#e84040;color:var(--color-red,#e84040);margin:var(--spacing-xs) 0 0}";ee(I7);function Jb({onApply:e,onCancel:t}){const{t:a}=me.useTranslation(),[r,n]=l.useState(""),[i,s]=l.useState(!1),[c,d]=l.useState(null),u=l.useRef(null);l.useEffect(()=>{u.current?.focus()},[]);const m=l.useCallback(async g=>{const f=r.trim();if(f){s(!0),d(null);try{await e(f),g()}catch(b){d(Yr(b)),s(!1)}}},[r,e]),h=l.useCallback((g,f)=>{g.key==="Enter"&&m(f)},[m]),p=g=>{n(g.target.value),d(null)};return o.jsx(Ta,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:g})=>{m(g)}}],children:({closeWithAnimation:g})=>o.jsxs(o.Fragment,{children:[o.jsx("input",{ref:u,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:p,onKeyDown:f=>h(f,g),disabled:i,autoComplete:"off",spellCheck:!1}),c&&o.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var z7=".ihabdevteam-core-scope .tooltip-content.tooltip-training{pointer-events:none}.ihabdevteam-core-scope .tooltip-training__box{background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 4px 16px rgba(0,0,0,.12);padding:10px 14px}.ihabdevteam-core-scope .tooltip-training__groups{align-items:stretch;display:flex;flex-direction:row;gap:0}.ihabdevteam-core-scope .tooltip-training__section{display:flex;flex-direction:column;flex-shrink:0;gap:6px;width:100px}.ihabdevteam-core-scope .tooltip-training__section-header{align-items:center;display:flex}.ihabdevteam-core-scope .tooltip-training__type-label{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-training__divider{align-self:center;background:var(--color-whiteLine);flex-shrink:0;height:20px;margin:0 10px;width:1px}.ihabdevteam-core-scope .tooltip-training__items{display:flex;flex-direction:column;gap:2px;pointer-events:none}.ihabdevteam-core-scope .tooltip-training__items .training-block-button--compact{cursor:default}";ee(z7);const Qb=200;function O7(e){return e.itemId?(gs()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function eg({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:n}=me.useTranslation(),i=l.useMemo(()=>Qr.map(c=>({type:c,items:(e.items??[]).filter(d=>d.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items]);if(i.length===0)return null;const s=o.jsx("div",{className:"tooltip-training__box",children:o.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:c,items:d},u)=>[u>0?o.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,o.jsxs("div",{className:"tooltip-training__section",children:[o.jsx("div",{className:"tooltip-training__section-header",children:o.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),o.jsx("div",{className:"tooltip-training__items",children:d.map((m,h)=>{const p=O7(m);return p?o.jsx(wn,{index:h,type:c,trainingData:p,size:"compact",hideCheckBadge:!0},m.itemId??h):null})})]},c.key)])})});return t?o.jsx(Sa,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:n("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:s}):s}var F7=".ihabdevteam-core-scope .party-container{inset:0;overflow:visible;pointer-events:none;position:fixed}.ihabdevteam-core-scope .confetti{display:none;left:0;opacity:0;position:fixed;top:0;transform:translateZ(0);will-change:transform,opacity}.ihabdevteam-core-scope .confetti--left{transform-origin:left bottom}.ihabdevteam-core-scope .confetti--right{transform-origin:right bottom}.ihabdevteam-core-scope .confetti.show{display:block;opacity:1;transition:opacity .2s linear}";ee(F7);const tg=["var(--color-main)","var(--color-sub)"];function $c({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:n,trigger:i=0}){const s=l.useMemo(()=>{const b=Math.floor(t/2),v=t-b,y=(_,x)=>Array.from({length:_}).map((C,k)=>{const w=6+Math.random()*12,S=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),j=tg[Math.floor(Math.random()*tg.length)],A=Math.random()*300,B=(360+Math.random()*260)*r*1.2,W=(x==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,M=Math.cos(W)*B,T=Math.sin(W)*B*1.35,$=Math.random()*720-360,E=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),H=Math.random()>.7?"50%":"3px";return{id:`${x}-${k}`,side:x,size:S,color:j,delay:A,vx:M,vy:T,angularVel:$,life:E,borderRadius:H}});return[...y(b,"left"),...y(v,"right")]},[t,r]),c=l.useRef(null),d=l.useRef({}),u=l.useRef(null),m=l.useRef(n);l.useEffect(()=>{m.current=n},[n]);const h=l.useRef(null),p=l.useRef(null),g=()=>{if(typeof document>"u")return null;let b=document.querySelector("[data-ihab-effect-root]");return b||(b=document.createElement("div"),b.className="app-effect",b.dataset.ihabEffectRoot="",b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="99998",document.body.appendChild(b)),b};if(typeof document<"u"&&p.current==null&&(p.current=g()),l.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){m.current?.();return}const b=1200,v=performance.now(),y=p.current&&p.current!==document.body?p.current.getBoundingClientRect():null,_=Math.max(60,(window.innerHeight||800)*.05),x=N=>Math.max(40,(N||window.innerWidth)*.02),C=y?.width||window.innerWidth||375,k=y?.height||window.innerHeight||812,w=N=>{const L=[...N].sort((R,z)=>R-z);return L[Math.floor(L.length/2)]||1},S=w(s.map(N=>Math.abs(N.vy))),j=w(s.map(N=>Math.abs(N.vx))),A=Math.sqrt(2*b*(k*.72+_))/S,B=S*A/b,W=C*.5/(j*B),M=(N,L,R)=>Math.min(R,Math.max(L,N)),T=M(A,.8,2.4),$=M(W,.7,2.2),E=s.map(N=>({...N,vx:N.vx*$,vy:N.vy*T,startTime:v+N.delay,ended:!1})),H=y?{x:y.left-x(y.width),y:y.top+y.height+_}:{x:-x(window.innerWidth),y:window.innerHeight+_},te=y?{x:y.left+y.width+x(y.width),y:y.top+y.height+_}:{x:window.innerWidth+x(window.innerWidth),y:window.innerHeight+_},Q=N=>{let L=!1;for(const R of E){const z=d.current[R.id];if(!z||!z)continue;if(N<R.startTime){z.style.display="none";continue}if(!R._inited){const pe=R.side==="left"?H.x:te.x,P=R.side==="left"?H.y:te.y;z.style.left=`${pe}px`,z.style.top=`${P}px`,z.style.transform="translate3d(0px, 0px, 0)",z.style.display="block",z.style.zIndex="100000";try{if(typeof window<"u"&&typeof R.color=="string"&&R.color.startsWith("var(")){const q=R.color.slice(4,-1).trim(),oe=getComputedStyle(document.documentElement).getPropertyValue(q).trim();oe?z.style.background=oe:z.style.background="#FF0060"}}catch{}R._inited=!0}const V=(N-R.startTime)/1e3;if(V<0)continue;const X=R.life/1e3;if(V>=X){z.style.opacity="0",z.style.display="none",R.ended=!0;continue}L=!0;const F=R.side==="left"?H.x:te.x,Y=R.side==="left"?H.y:te.y,O=F+R.vx*V,ne=Y+R.vy*V+.5*b*V*V,ue=(R.angularVel||0)*V,xe=O-F,ve=ne-Y;z.style.transform=`translate3d(${xe}px, ${ve}px, 0) rotate(${ue}deg)`,z.style.opacity=`${Math.max(0,1-V/X)}`}L?u.current=requestAnimationFrame(Q):m.current?.()};u.current=requestAnimationFrame(Q);const ae=setTimeout(()=>{try{if((p.current?p.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const N=document.createElement("div");N.className="party-container",N.style.position="fixed",N.style.inset="0",N.style.pointerEvents="none",N.style.overflow="visible",N.style.zIndex="2147483647";for(const L of s){const R=document.createElement("span");R.className=`confetti confetti--${L.side}`,R.setAttribute("aria-hidden","true"),R.style.display="none",R.style.position="fixed",R.style.left="0px",R.style.top="0px",R.style.width=`${L.size}px`,R.style.height=`${Math.max(4,L.size*.6)}px`;let z=L.color;try{if(typeof z=="string"&&z.startsWith("var(")){const V=z.slice(4,-1).trim(),X=getComputedStyle(document.documentElement).getPropertyValue(V).trim();X&&(z=X)}}catch{}R.style.background=z,R.style.borderRadius=L.borderRadius,R.style.transform="translate3d(0,0,0)",R.style.opacity="0",N.appendChild(R),d.current[L.id]=R}(document.body||p.current).appendChild(N),h.current=N}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(ae),h.current){try{h.current.remove()}catch{}h.current=null}}},[e,a,i,s]),!e)return null;const f=o.jsx("div",{className:"party-container",ref:c,children:s.map(b=>o.jsx("span",{"aria-hidden":!0,ref:v=>{d.current[b.id]=v},className:`confetti confetti--${b.side}`,style:{width:`${b.size}px`,height:`${Math.max(4,b.size*.6)}px`,background:b.color,borderRadius:b.borderRadius}},`${b.id}-${i}`))});return typeof document<"u"?qt.createPortal(f,p.current||document.body):f}function ag({trigger:e=0,active:t=!1}){const a=l.useRef(0);return l.useEffect(()=>{a.current=e},[e]),o.jsx($c,{active:t,trigger:e})}var W7=".ihabdevteam-core-scope .page-title{align-items:center;display:flex;gap:12px;justify-content:space-between;padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .page-title__main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0;text-align:left}.ihabdevteam-core-scope .page-title__title-row{align-items:center;display:flex;gap:12px}.ihabdevteam-core-scope .page-title__title{margin:0}.ihabdevteam-core-scope .page-title__title-action{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .page-title__badge{align-items:center;display:flex}.ihabdevteam-core-scope .page-title__sub{color:var(--color-gray);margin:6px 0 0}.ihabdevteam-core-scope .page-title__action{flex-shrink:0;margin-left:var(--spacing-s)}@media (max-width:767px){.ihabdevteam-core-scope .page-title{align-items:flex-start;flex-direction:column;gap:10px}.ihabdevteam-core-scope .page-title__action{align-self:flex-start;margin-left:0}}.ihabdevteam-core-scope .page-title__back{flex-shrink:0;margin-left:-8px;margin-right:-4px}";ee(W7);function og({title:e,sub:t,rightAction:a,titleAction:r,badge:n,badgeVariant:i="default",documentTitle:s,onBack:c,backLabel:d}){const{t:u}=me.useTranslation();rl(typeof e=="string"?e:s??null);const m=d??u("common.back","\uB4A4\uB85C");return o.jsxs("div",{className:"page-title",children:[o.jsxs("div",{className:"page-title__main",children:[o.jsxs("div",{className:"page-title__title-row",children:[c&&o.jsx(re,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),o.jsx("h1",{className:"page-title__title h1",children:e}),n&&o.jsx("div",{className:"page-title__badge",children:o.jsx(ht,{label:n,size:"small",variant:i,fill:"outline"})}),r?o.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&o.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?o.jsx("div",{className:"page-title__action",children:a}):null]})}function rg(e){return e??""}const ng=l.createContext({words:[],loading:!1});function ig(){return l.useContext(ng)}function sg({words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d,children:u}){return o.jsx(ng.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d},children:u})}var H7=".ihabdevteam-core-scope .summary-strip{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:var(--spacing-m) var(--spacing-l);width:100%}.ihabdevteam-core-scope .summary-strip__row{align-items:center;display:flex;gap:var(--spacing-l)}.ihabdevteam-core-scope .summary-strip__items{grid-gap:var(--spacing-s) var(--spacing-l);display:grid;flex:1;gap:var(--spacing-s) var(--spacing-l);grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}@media (min-width:640px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1280px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--summary-strip-cols,4),minmax(0,1fr))}}.ihabdevteam-core-scope .summary-strip__item{min-width:0}.ihabdevteam-core-scope .summary-strip__label{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .summary-strip__value{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .summary-strip__actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-xs)}";ee(H7);function lg({items:e,actions:t,columns:a,className:r,style:n}){const i=a??e.length;return o.jsx("section",{className:_e("summary-strip",r),style:{"--summary-strip-cols":String(i),...n},children:o.jsxs("div",{className:"summary-strip__row",children:[o.jsx("div",{className:"summary-strip__items",children:e.map((s,c)=>o.jsxs("div",{className:"summary-strip__item",children:[o.jsx("p",{className:"summary-strip__label caption-1",children:s.label}),o.jsx("p",{className:"summary-strip__value body-3b",children:s.value})]},c))}),t&&o.jsx("div",{className:"summary-strip__actions",children:t})]})})}var V7='.ihabdevteam-core-scope .report-doc{--report-page-w:210mm;--report-page-h:297mm;--report-margin:14mm;display:flex;justify-content:safe center;max-width:100%;min-width:0;overflow-x:auto;padding-block:var(--spacing-s);position:relative;width:100%}.ihabdevteam-core-scope .report-doc__pages{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .report-doc__page{background:#fff;box-shadow:var(--shadow-card);color:#000;display:flex;flex-direction:column;flex-shrink:0;min-height:var(--report-page-h);padding:var(--report-margin);width:var(--report-page-w)}.ihabdevteam-core-scope .report-doc__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__title{margin:0}.ihabdevteam-core-scope .report-doc__footer{align-items:center;color:var(--color-gray);display:flex;justify-content:space-between;margin-top:auto;padding-top:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__footer-left{align-items:center;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__page-no{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .report-doc__logo{height:28px;width:auto}.ihabdevteam-core-scope .report-doc__measure{display:flex;flex-direction:column;opacity:0;pointer-events:none;position:absolute;width:calc(var(--report-page-w) - var(--report-margin)*2);z-index:-10}.ihabdevteam-core-scope .report-doc__measure-blocks{display:flex;flex-direction:column}.ihabdevteam-core-scope .report-doc__ruler{height:calc(var(--report-page-h) - var(--report-margin)*2)}@media print{.ihabdevteam-core-scope .report-doc{display:block;overflow:visible;padding-block:0}.ihabdevteam-core-scope .report-doc__pages{display:block}.ihabdevteam-core-scope .report-doc__page{-moz-column-break-after:page;box-shadow:none;break-after:page;page-break-after:always}.ihabdevteam-core-scope .report-doc__page:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}';ee(V7);const G7=(e,t)=>`${e} / ${t}`;function cg({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:n=G7,pageWidth:i,pageHeight:s,margin:c,className:d,style:u}){const{t:m}=me.useTranslation(),h=l.useRef(null),p=l.useRef(null),g=l.useRef(null),f=l.useRef(null),[b,v]=l.useState(null),[y,_]=l.useState(!1);l.useEffect(()=>{const B=h.current;if(!B)return;const W=()=>_(B.scrollWidth>B.clientWidth+1);if(W(),typeof ResizeObserver>"u")return;const M=new ResizeObserver(W);return M.observe(B),()=>M.disconnect()},[b]);const x=e.map(B=>`${B.id}\0${B.section??""}\0${B.group??""}`).join("");l.useLayoutEffect(()=>{const B=p.current,W=f.current;if(!B||!W)return;const M=g.current?.offsetHeight??0,T=W.offsetHeight-M,$=Array.from(B.children).map(N=>N.offsetHeight),E=[];e.forEach((N,L)=>{const R=E[E.length-1],z=R?e[R[0]]:void 0;z&&N.group!=null&&z.group===N.group?R.push(L):E.push([L])});const H=[];let te=[],Q=0;const ae=()=>{te.length&&H.push(te),te=[],Q=0};E.forEach(N=>{const L=N.reduce((R,z)=>R+$[z],0);te.length&&e[te[0]].section!==e[N[0]].section&&ae(),te.length&&Q+L>T&&ae(),L>T?N.forEach(R=>{te.length&&Q+$[R]>T&&ae(),te.push(R),Q+=$[R]}):(N.forEach(R=>te.push(R)),Q+=L)}),ae(),v(H)},[x]);const C=$l,k=C,w=r??o.jsxs(o.Fragment,{children:[o.jsx("img",{src:k,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),S=(B,W,M)=>({header:o.jsxs("div",{className:"report-doc__header",children:[o.jsx("h2",{className:"report-doc__title h3b",children:M!=null&&t?.[M]||null}),a]}),footer:o.jsxs("div",{className:"report-doc__footer caption-1",children:[o.jsx("span",{className:"report-doc__footer-left",children:w}),o.jsx("span",{className:"report-doc__page-no",children:n(B,W)})]})}),j=S(1,1,e[0]?.section),A={...i?{"--report-page-w":i}:null,...s?{"--report-page-h":s}:null,...c?{"--report-margin":c}:null,...u};return o.jsxs("div",{ref:h,className:_e("report-doc",d),style:A,tabIndex:y?0:void 0,role:y?"group":void 0,"aria-label":y?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[o.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[o.jsx("div",{ref:f,className:"report-doc__ruler"}),o.jsxs("div",{ref:g,children:[j.header,j.footer]}),o.jsx("div",{ref:p,className:"report-doc__measure-blocks",children:e.map(B=>o.jsx("div",{children:B.content},B.id))})]}),b&&o.jsx("div",{className:"report-doc__pages",children:b.map((B,W)=>{const{header:M,footer:T}=S(W+1,b.length,e[B[0]].section);return o.jsxs("section",{className:"report-doc__page",children:[M,B.map($=>o.jsx("div",{children:e[$].content},e[$].id)),T]},W)})})]})}var q7=".ihabdevteam-core-scope .report-info{border:1px solid var(--color-border);border-radius:var(--radius-card);margin-bottom:var(--spacing-l);padding:var(--spacing-s) var(--spacing-m)}.ihabdevteam-core-scope .report-info__title{color:var(--color-darkGray);margin:0 0 var(--spacing-s)}.ihabdevteam-core-scope .report-info__grid{grid-gap:var(--spacing-xs) var(--spacing-l);display:grid;gap:var(--spacing-xs) var(--spacing-l);grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--report-info-cols,4),minmax(0,1fr))}@media (max-width:640px){.ihabdevteam-core-scope .report-info__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.ihabdevteam-core-scope .report-info__field{align-items:baseline;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-info__label{color:var(--color-gray);flex-shrink:0;width:3.5rem}.ihabdevteam-core-scope .report-info__value{color:var(--color-darkGray);white-space:nowrap}";ee(q7);function dg({title:e,fields:t,columns:a=4,className:r,style:n}){return o.jsxs("div",{className:_e("report-info",r),style:{"--report-info-cols":String(a),...n},children:[e&&o.jsx("p",{className:"report-info__title h5b",children:e}),o.jsx("div",{className:"report-info__grid",children:t.map((i,s)=>o.jsxs("div",{className:"report-info__field body-2",children:[o.jsx("span",{className:"report-info__label body-3",children:i.label}),o.jsx("span",{className:"report-info__value",children:i.value})]},s))})]})}var Y7=".ihabdevteam-core-scope .update-alert{animation:update-alert-slide-in .32s cubic-bezier(.34,1.56,.64,1) both;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);background:hsla(0,0%,97%,.92);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:0 4px 24px rgba(0,0,0,.14),0 1px 4px rgba(0,0,0,.08),inset 0 0 0 .5px rgba(0,0,0,.1);padding:var(--spacing-l);width:380px}.ihabdevteam-core-scope .update-alert,.ihabdevteam-core-scope .update-alert-stack{display:flex;flex-direction:column;gap:12px;max-width:calc(100vw - 32px);position:fixed;right:16px;top:16px;z-index:var(--z-alert)}.ihabdevteam-core-scope .update-alert-stack{align-items:flex-end}.ihabdevteam-core-scope .update-alert-stack .update-alert{position:relative;z-index:auto}.ihabdevteam-core-scope .update-alert:has(.update-alert__close) .update-alert__title{padding-right:24px}.ihabdevteam-core-scope .update-alert__close{align-items:center;background:none;border:none;border-radius:6px;border-radius:var(--radius-s,6px);color:#888;cursor:pointer;display:flex;font-size:20px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;width:24px}.ihabdevteam-core-scope .update-alert__close:hover{background:rgba(0,0,0,.06);color:#333}.ihabdevteam-core-scope .update-alert__top{align-items:center;display:flex;gap:10px}@keyframes update-alert-slide-in{0%{opacity:0;transform:translateX(calc(100% + 24px))}to{opacity:1;transform:translateX(0)}}.ihabdevteam-core-scope .update-alert__icon{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;font-size:20px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .update-alert__body{flex:1;min-width:0}.ihabdevteam-core-scope .update-alert__title{color:#1a1a1a;text-align:left}.ihabdevteam-core-scope .update-alert__message{color:#555;margin-top:2px;text-align:left}.ihabdevteam-core-scope .update-alert__action{width:100%}";ee(Y7);function ug({title:e,message:t,actionLabel:a,onAction:r,icon:n,onClose:i,className:s=""}){const{t:c}=me.useTranslation(),d=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return o.jsxs("div",{className:_e("update-alert",s),role:"alert",children:[i&&o.jsx("button",{type:"button",className:"update-alert__close",onClick:i,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),o.jsxs("div",{className:"update-alert__top",children:[o.jsx("div",{className:"update-alert__icon",children:n??o.jsx(rd,{size:20,strokeWidth:2})}),o.jsxs("div",{className:"update-alert__body",children:[o.jsx("div",{className:"update-alert__title h4",children:e}),o.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&o.jsx(re,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}var U7=".ihabdevteam-core-scope .training-card{background:var(--color-white);border:1px solid transparent;border-radius:var(--radius-card);display:flex;flex-direction:column;gap:10px;max-width:100%;padding:18px;position:relative;transition:border-color .15s,box-shadow .15s;width:360px}.ihabdevteam-core-scope .training-card:hover{border-color:var(--color-main);box-shadow:0 4px 16px var(--color-main-a10)}.ihabdevteam-core-scope .training-card--dragging{opacity:.5}.ihabdevteam-core-scope .training-card--clickable{cursor:pointer}.ihabdevteam-core-scope .training-card__header{grid-column-gap:8px;grid-row-gap:4px;align-items:start;-moz-column-gap:8px;column-gap:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;row-gap:4px}.ihabdevteam-core-scope .training-card__title-row{display:contents}.ihabdevteam-core-scope .training-card__title-row>:first-child{grid-area:1/1;min-width:0}.ihabdevteam-core-scope .training-card__header>:last-child{grid-area:2/1}.ihabdevteam-core-scope .training-card__title{color:var(--color-darkGray);margin:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__top-actions{align-items:center;align-self:start;display:flex;flex-shrink:0;gap:2px;grid-column:2;grid-row:1/3;margin-right:-8px}.ihabdevteam-core-scope .training-card__publisher{background:none;border:none;color:var(--color-gray);cursor:pointer;font-size:11px;font-weight:400;max-width:120px;overflow:hidden;padding:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .training-card__publisher:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .training-card__description{color:var(--color-gray);margin:0;min-height:1.55em;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__body{display:flex;flex:1;flex-direction:column;gap:8px;justify-content:flex-end}.ihabdevteam-core-scope .training-card__empty{color:var(--color-lightGray)}.ihabdevteam-core-scope .training-card__types{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.ihabdevteam-core-scope .training-card__types .button{min-width:0;padding-inline:12px}.ihabdevteam-core-scope .training-card__words{align-content:flex-start;display:flex;flex-wrap:wrap;gap:4px}.ihabdevteam-core-scope .training-card__footer{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-top:auto;padding-top:8px}.ihabdevteam-core-scope .training-card__footer-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .training-card__date{color:var(--color-gray);font-size:11px;white-space:nowrap}.ihabdevteam-core-scope .training-card__meta{align-items:center;display:flex;gap:4px}";ee(U7);function pg({title:e,description:t,topActions:a,children:r,footerLeft:n,footerRight:i,onClick:s,draggable:c,onDragStart:d,onDragEnd:u,className:m}){const h=n!=null||i!=null,p=r!=null&&r!==!1,g=l.useCallback(f=>{s&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),s())},[s]);return o.jsxs("div",{className:_e("training-card",s?"training-card--clickable":"",m),onClick:s,onKeyDown:s?g:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,draggable:c,onDragStart:d,onDragEnd:u,children:[o.jsxs("div",{className:"training-card__header",children:[o.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?o.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&o.jsx("div",{className:"training-card__top-actions",onClick:f=>f.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?o.jsx("p",{className:"training-card__description body-3",children:t}):t:o.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),p&&o.jsx("div",{className:"training-card__body",children:r}),h&&o.jsxs("div",{className:"training-card__footer",children:[n!=null&&o.jsx("div",{className:"training-card__footer-left",children:n}),i!=null&&o.jsx("div",{className:"training-card__meta",children:i})]})]})}var K7=".ihabdevteam-core-scope .training-card-group{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite);border-radius:var(--radius-card);overflow:hidden;transition:border-color .15s,box-shadow .15s}.ihabdevteam-core-scope .training-card-group--dragover{border-color:var(--color-main);box-shadow:0 0 0 2px var(--color-main-a10)}.ihabdevteam-core-scope .training-card-group__header{align-items:center;display:flex;gap:8px;height:60px;padding:0 12px}.ihabdevteam-core-scope .training-card-group--collapsible .training-card-group__header{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-card-group__chevron{flex-shrink:0}.ihabdevteam-core-scope .training-card-group__title{color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card-group__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .training-card-group__actions{align-items:center;display:flex;flex-shrink:0;gap:8px;margin-left:auto}.ihabdevteam-core-scope .training-card-group__empty{color:var(--color-lightGray);padding:24px 16px;text-align:center}.ihabdevteam-core-scope .training-card-group__grid{align-items:stretch;display:flex;flex-wrap:wrap;gap:12px;padding:0 12px 12px}.ihabdevteam-core-scope .training-card-group__grid>*{min-width:0}";ee(K7);function hg({title:e,count:t,collapsed:a=!1,onToggle:r,sort:n,actions:i,empty:s=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:m,onDrop:h,children:p,className:g}){const{t:f}=me.useTranslation(),b=r!=null,v=_e("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",b&&"training-card-group--collapsible",g);return o.jsxs("div",{className:v,onDragOver:u,onDragLeave:m,onDrop:h,children:[o.jsxs("header",{className:"training-card-group__header",children:[b&&o.jsx(re,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron",onClick:r}),typeof e=="string"?o.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&o.jsx("span",{className:"training-card-group__count body-3b",children:t}),(n||i!=null)&&o.jsxs("span",{className:"training-card-group__actions",onClick:y=>y.stopPropagation(),children:[n&&o.jsx(Ut,{size:40,options:n.options,value:n.value,placeholder:n.placeholder,onChange:n.onChange}),i]})]}),!a&&(s?o.jsx("div",{className:"training-card-group__empty body-3",children:c}):o.jsx("div",{className:"training-card-group__grid",children:p}))]})}var Z7=".ihabdevteam-core-scope .word-table-block__meta{background:transparent}.ihabdevteam-core-scope .word-table-block__actions{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:flex;gap:var(--spacing-xs)}@media (max-width:767px){.ihabdevteam-core-scope .word-table-block__actions{align-items:stretch;flex-direction:column}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:grid;grid-template-columns:repeat(2,1fr)}.ihabdevteam-core-scope .word-table-block__actions .button{min-width:0;width:100%}}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-panel{max-width:none;width:min(1400px,94vw)}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-body{overflow:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .word-table-block__pages{display:flex;flex-direction:column;gap:24px;gap:var(--spacing-content,24px)}@media print{.ihabdevteam-core-scope .word-table-block>.filter-panel,.ihabdevteam-core-scope .word-table-block>.section__header,.ihabdevteam-core-scope .word-table-block__actions{display:none}.ihabdevteam-core-scope .word-table-block__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-block__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}";ee(Z7);const X7="speechear:saved_word_tables";function J7(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function Q7(){try{const e=localStorage.getItem(X7);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(J7):[]}catch{return[]}}function mg({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:n,onLoad:i,onRemoveItem:s,onReset:c,resetLabel:d,saveButtonLabel:u,secondarySaveButtonLabel:m,onReorder:h,showCellCount:p,onAddItem:g,className:f,renderSavePopup:b,renderWordSearch:v,hideControls:y,saveOnly:_,tableName:x,nameValue:C,onNameChange:k,descriptionValue:w,onDescriptionChange:S,namePlaceholder:j,descriptionPlaceholder:A,existingNames:B,editingName:W,onCancel:M}){const{t:T}=me.useTranslation(),$=d??T("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),E=r===void 0,H=!!k,[te,Q]=l.useState([]),ae=(C??"").trim(),N=ae||(j??"").trim(),L=(w??"").trim()||(A??"").trim(),R=(B??[]).map(ce=>ce.trim().toLowerCase()),z=[W?.trim().toLowerCase(),...te].filter(ce=>!!ce),V=[...R];for(const ce of z){const Be=V.indexOf(ce);Be!==-1&&V.splice(Be,1)}const X=ae!==""&&V.includes(ae.toLowerCase()),[F,Y]=l.useState(Array(4).fill(null)),[O,ne]=l.useState(4),[ue,xe]=l.useState(null),[ve,pe]=l.useState("landscape"),[P,q]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[oe,ge]=l.useState("\uD45C\uC2DC"),[de,I]=l.useState(!0),[Z,J]=l.useState(!0),fe=l.useRef(null),De=l.useRef([]),[$e,Le]=l.useState(8),[Ee,je]=l.useState("right"),[Te,Ie]=l.useState(!1),[He,be]=l.useState(!1),{toastMessage:Ke,toastType:Ve,showWarning:Re,clearToast:qe}=bn("warning"),vt=l.useCallback(()=>xe(null),[xe]),[Ue,Xe]=l.useState(()=>Math.max(r?.length??1,1));l.useEffect(()=>{E||Xe(ce=>Math.max(ce,r?.length??1))},[r?.length,E]);const ut=E?O:p?Math.max(Ue,r?.length??1):Math.max(r?.length??0,1),{width:ze,height:rt}=io[ve],et=!E&&!p,We=r?.length??0,Je=Math.min($e,Math.max(We,1)),tt=et?Je:ut,xt=et?jm(r??[],tt):null,Et=!!xt&&xt.length>1,it=E?F.some(ce=>ce!==null&&ce.length>1):(r??[]).some(ce=>ce.words.length>1),Ht=x?.trim()||`${Zr(Ur())} ${it?T("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):T("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,mt=l.useCallback(()=>Et?De.current.filter(ce=>ce!==null):fe.current?[fe.current]:[],[Et]),{print:Vt,openNewWindow:ia,downloadHtml:Gt}=Nn({getElements:mt,paperW:ze,paperH:rt,fileName:Ht,onPopupBlocked:()=>{Re(T("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),Ea=ce=>{ne(ce),Y(Be=>{const at=Array(ce).fill(null);return Be.slice(0,ce).forEach((Ct,_t)=>{at[_t]=Ct}),at}),xe(null)},sa=ce=>{Y(Be=>{const at=[...Be];return at[ce]=null,at}),ue===ce&&xe(null)},Kt=ce=>{if(ue===null)return;const Be=ue;Y(Ct=>{const _t=[...Ct];return _t[Be]=ce,_t});const at=F.findIndex((Ct,_t)=>_t>Be&&Ct===null);xe(at!==-1?at:null)},ja=E?F.some(ce=>ce?.some(Be=>!!Be.colloquialPronunciation)):(r??[]).some(ce=>ce.words.some(Be=>!!Be.colloquialLabel)),jt=l.useMemo(()=>Ma()?E?F.flatMap(ce=>(ce??[]).map(Be=>[Be.word,Be.homonum])):(r??[]).flatMap(ce=>ce.words.map(Be=>[Be.label,Be.homonum])):[],[E,F,r]),[Ga,$t]=l.useState(!1);l.useEffect(()=>{if(jt.length===0)return;let ce=!1;return Promise.all(jt.map(([Be,at])=>Yo(Be,at))).then(Be=>{ce||$t(Be.some(Boolean))}),()=>{ce=!0}},[jt]);const ya=jt.length>0&&Ga,qa=l.useMemo(()=>[...E||p?[{label:T("wordTable.filter.columns","\uCE78 \uC218"),items:Ak.map(ce=>({value:`${ce}\uCE78`,displayLabel:T("wordTable.filter.column",{count:ce})})),display:"segmented"}]:[],...et&&(r?.length??0)>0?[Om(T,{hasPairs:it,itemCount:We})]:[],...Et?[Fm(T)]:[]],[T,E,p,et,r?.length,it,We,Et]),Qe={...E||p?{[T("wordTable.filter.columns","\uCE78 \uC218")]:`${E?O:Ue}\uCE78`}:{},...et&&(r?.length??0)>0?{[T(it?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Je}\uAC1C`}:{},...Et?{[T("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Wm[Ee]}:{}},It=(ce,Be)=>{Be===T("wordTable.filter.columns","\uCE78 \uC218")?E?Ea(parseInt(ce)):Xe(parseInt(ce)):Be===T(it?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Le(parseInt(ce)):Be===T("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&je(Hm(ce))},kt=E?F.filter(ce=>ce!==null).map(ce=>({id:ce[0].word,words:ce.map(Be=>({label:Be.word,subLabel:Be.pronunciation,homonum:Be.homonum}))})):r??[],xa=(ce=!1)=>{if(be(ce),H&&n){const Be=N.trim().toLowerCase();Be&&Q(at=>at.includes(Be)?at:[...at,Be]),n(N,kt,L||void 0,ce);return}if(_&&n){n("",kt,void 0,ce);return}if(n){Ie(!0);return}Gt()},[la,ie]=l.useState(!1),[ye,Ce]=l.useState(""),U=ye.trim(),le=U!==""&&R.includes(U.toLowerCase()),we=()=>{Ce(N?`${N} (\uBCF5\uC0AC)`:""),ie(!0)},Se=()=>{!U||le||!n||(n(U,kt,L||void 0,!0),ie(!1))},Ae=kt.length===0,Oe=Ae||H&&(N===""||X),nt=()=>{if(Ae){Re(T("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(H&&N===""){Re(T("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}H&&X&&Re(T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},ct=o.jsx(so,{items:kt,orientation:ve,contentTypes:P,cutLine:oe,showOutline:de,showDivLine:Z,count:ut});return o.jsxs(o.Fragment,{children:[o.jsxs(no,{type:"page",icon:t,title:e,disc:a,className:_e("word-table-block",f),children:[la&&o.jsx(Ta,{size:"small",title:m??T("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>ie(!1),footer:({closeWithAnimation:ce})=>o.jsxs(o.Fragment,{children:[o.jsx(re,{size:48,type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:ce}),o.jsx(re,{size:48,type:"bar",variant:"main",label:T("common.save","\uC800\uC7A5"),disabled:!U||le,onClick:Se})]}),children:o.jsx(Wa,{label:T("wordTable.save.nameLabel","\uC774\uB984"),value:ye,onChange:Ce,placeholder:T("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:Se,error:le?T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Te&&n&&b?.({defaultName:typeof e=="string"?e:T("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:ct,previewW:ze,previewH:rt,items:kt,existingNames:Q7().map(ce=>ce.name),saveAsNew:He,onSave:(ce,Be)=>{n(ce,kt,Be,He),Ie(!1)},onCancel:()=>Ie(!1)}),(E||g)&&ue!==null&&v?.({cellIndex:ue,onConfirm:E?Kt:ce=>{if(g){const Be=ce[0];Be&&g({id:Be.word,words:[{label:Be.word,subLabel:Be.pronunciation,homonum:Be.homonum}]})}xe(null)},onClose:vt}),!y&&o.jsx(Bn,{hasImage:ya,hasColloquial:ja,contentTypes:P,orientation:ve,showOutline:de,cutLine:oe,showDivLine:Z,setters:{setContentTypes:q,setOrientation:pe,setShowOutline:I,setCutLine:ge,setShowDivLine:J},showCutLine:(et?tt:ut)>1,showDivLine2:it,middleSections:qa,extraSelected:Qe,onExtraSelect:It}),Et&&xt?o.jsx("div",{className:"word-table-block__pages",children:xt.map((ce,Be)=>o.jsx(so,{orientation:ve,contentTypes:P,cutLine:oe,showOutline:de,showDivLine:Z,count:tt,items:ce,onRemoveItem:s,contentRef:at=>{De.current[Be]=at},pageNumber:{current:Be+1,total:xt.length},pageNumberPosition:Ee},Be))}):o.jsx(so,{orientation:ve,contentTypes:P,cutLine:oe,showOutline:de,showDivLine:Z,count:ut,items:E?void 0:r??[],editCells:E?F:void 0,activeCell:ue,onActivateCell:E||g?xe:void 0,onRemoveCell:E?sa:void 0,onRemoveItem:E?void 0:s,onReorder:E?void 0:h,showFillerAdd:!!g,contentRef:fe}),H&&!y&&o.jsxs(kr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[o.jsx(Na,{variant:"custom",label:T("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{required:!0,value:C??"",onChange:k,placeholder:j?j+T("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):T("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:T("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:X?T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ce=>{(ce.key==="Tab"&&!ce.shiftKey||ce.key===" ")&&!(C??"").trim()&&(j??"").trim()&&(ce.preventDefault(),k?.(j??""))}})}),o.jsx(Na,{variant:"custom",label:T("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{value:w??"",onChange:S,placeholder:A?A+T("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):T("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:T("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ce=>{(ce.key==="Tab"&&!ce.shiftKey||ce.key===" ")&&!(w??"").trim()&&(A??"").trim()&&(ce.preventDefault(),S?.(A??""))}})})]})]}),!y&&o.jsxs("div",{className:"word-table-block__actions",children:[o.jsxs("div",{className:"word-table-block__actions-left",children:[!_&&c&&o.jsx(re,{size:40,type:"bar",label:$,onClick:c}),!_&&i&&o.jsx(re,{size:40,type:"bar",label:T("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!_&&o.jsx(re,{size:40,type:"bar",label:T("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:ia})]}),o.jsxs("div",{className:"word-table-block__actions-right",children:[M&&o.jsx(re,{size:"56",type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:M}),!_&&o.jsx(re,{size:"56",type:"bar",label:T("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:Vt}),m&&o.jsx(re,{size:"56",type:"bar",label:m,onClick:()=>H?we():xa(!0),disabled:Ae,onDisabledClick:()=>{Re(T("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),o.jsx(re,{size:"56",type:"bar",variant:"main",label:u??T("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>xa(!1),disabled:Oe,onDisabledClick:nt})]})]}),o.jsx(ro,{message:Ke,type:Ve,onClose:qe})]})}var e6=".ihabdevteam-core-scope .word-table-thumb{grid-gap:1px;background:var(--color-darkWhite);border-bottom:1px solid var(--color-darkWhite);display:grid;gap:1px;grid-auto-rows:minmax(min-content,1fr);height:140px;overflow:hidden}.ihabdevteam-core-scope .word-table-thumb__cell{align-items:center;background:var(--color-white);display:flex;flex-direction:column;gap:1px;justify-content:center;min-height:0;overflow:hidden;padding:4px}.ihabdevteam-core-scope .word-table-thumb__word{color:var(--color-black)}.ihabdevteam-core-scope .word-table-thumb .word-table-thumb__word{line-height:1.2}.ihabdevteam-core-scope .word-table-thumb__divider{background:var(--color-darkWhite);display:block;height:1px;margin:1px 0;width:30%}";ee(e6);function Ic({items:e,className:t}){const a=e.length,r=a<=3?1:2,n=Math.ceil(a/r)||1,i=r*n;return o.jsx("div",{className:_e("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(s,c)=>{const d=e[c];return d?o.jsx("div",{className:"word-table-thumb__cell",children:(d.words.length?d.words:[{label:d.id}]).map((u,m)=>o.jsxs(l.Fragment,{children:[m>0&&o.jsx("span",{className:"word-table-thumb__divider"}),o.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},m))},c):o.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}var t6=".ihabdevteam-core-scope .word-table-button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-s,8px);box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;overflow:hidden;position:relative;transition:border-color .15s,box-shadow .15s;width:240px}.ihabdevteam-core-scope .word-table-button:hover{border-color:var(--color-main);box-shadow:0 2px 10px rgba(0,0,0,.06)}.ihabdevteam-core-scope .word-table-button:focus-visible{outline:2px solid var(--color-main);outline-offset:1px}.ihabdevteam-core-scope .word-table-button--selected{border-color:var(--color-main);box-shadow:0 0 0 1px var(--color-main) inset}.ihabdevteam-core-scope .word-table-button__thumb{flex:0 0 auto;height:290px}.ihabdevteam-core-scope .word-table-button__info{align-items:flex-start;display:flex;flex-direction:row;gap:8px;min-width:0;padding:12px 14px 0;position:relative}.ihabdevteam-core-scope .word-table-button__more{position:absolute;right:10px;top:8px}.ihabdevteam-core-scope .word-table-button__title{padding-right:34px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info{flex:1 1 auto;min-height:0}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info-text{align-self:stretch}.ihabdevteam-core-scope .word-table-button__info-text{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:4px;min-width:0;text-align:left}.ihabdevteam-core-scope .word-table-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-black);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}.ihabdevteam-core-scope .word-table-button__desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-gray);display:-webkit-box;overflow:hidden}.ihabdevteam-core-scope .word-table-button__meta{color:var(--color-gray)}.ihabdevteam-core-scope .word-table-button__meta-row{align-items:center;display:flex;gap:8px;justify-content:space-between;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__badges{align-items:center;display:flex;flex:0 0 auto;gap:4px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__meta-row{margin-top:auto}.ihabdevteam-core-scope .word-table-button__footer{display:flex;flex-direction:column;gap:8px;margin-top:auto;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__store-by{align-items:center;display:inline-flex;gap:6px;min-width:0;overflow:hidden}.ihabdevteam-core-scope .word-table-button__store-by .training-card__date{white-space:nowrap}.ihabdevteam-core-scope .word-table-button__store-stats{align-items:center;align-self:flex-end;display:inline-flex;gap:4px}.ihabdevteam-core-scope .word-table-button__more{flex:0 0 auto}.ihabdevteam-core-scope .word-table-button__badge{pointer-events:none}.ihabdevteam-core-scope .word-table-button__new-dot{background:var(--color-main);border-radius:50%;box-shadow:0 0 0 2px var(--color-white);height:10px;pointer-events:none;position:absolute;right:8px;top:8px;width:10px;z-index:3}";ee(t6);function bg({items:e,name:t,description:a,createdAt:r,published:n,publishedLabel:i,shared:s,sharedLabel:c,isNew:d,publisherName:u,publishedAt:m,likeCount:h,downloadCount:p,onPublisherClick:g,selected:f,onClick:b,onMore:v,titleNode:y,className:_}){const{t:x}=me.useTranslation(),C=y!=null,k=u!=null||m!=null||h!=null||p!=null,w=S=>{!C&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),b?.())};return o.jsxs("div",{className:_e("word-table-button",f?"word-table-button--selected":"",k?"":"word-table-button--no-footer",_),role:"button",tabIndex:0,"aria-label":t,onClick:C?void 0:b,onKeyDown:w,children:[d&&o.jsx("span",{className:"word-table-button__new-dot","aria-label":x("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),o.jsx(Ic,{items:e,className:"word-table-button__thumb"}),o.jsxs("div",{className:"word-table-button__info",children:[o.jsxs("div",{className:"word-table-button__info-text",children:[y??o.jsx("div",{className:"word-table-button__title h4",children:t}),a&&o.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),v&&!C&&o.jsx(re,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:x("common.moreFor",{name:t}),onClick:S=>{S.stopPropagation(),v(S)}})]}),(r||n||s)&&o.jsxs("div",{className:"word-table-button__meta-row",children:[o.jsx("span",{className:"word-table-button__meta caption-1",children:r?Kr(r,x):""}),o.jsxs("span",{className:"word-table-button__badges",children:[n&&o.jsx(ht,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??"\uBC1C\uD589\uB428"}),s&&o.jsx(ht,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??"\uACF5\uC720 \uC911"})]})]}),k&&o.jsxs("div",{className:"word-table-button__footer",children:[o.jsxs("span",{className:"word-table-button__store-by",children:[u&&o.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:S=>{S.stopPropagation(),g?.()},children:u}),m&&o.jsx("span",{className:"training-card__date body-4",children:Kr(m,x)})]}),o.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h)}),p!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(p)})]})]})]})}/**
|
|
988
|
+
\uC804\uB2EC\uD558\uBBC0\uB85C(\uCF54\uB4DC \uD655\uC778\uB428) \uBAA8\uBC14\uC77C\uC5D0\uC11C \uC790\uC5F0 \uD3ED\uC73C\uB85C \uB418\uB3CC\uB9AC\uB824\uBA74 \uD2B9\uC774\uB3C4\uB85C\uB294 \uBD80\uC871. */.ihabdevteam-core-scope .trp-row__judge .badge{min-width:0!important;min-width:auto!important}.ihabdevteam-core-scope .result-table--answer .trp-row__judge .badge{height:26px;padding:0 12px}}`;ee(A7);function jc(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,r=[a.text,a.label,a.value];for(const n of r){if(typeof n=="string"&&n.trim().length)return n.trim();if(typeof n=="number"||typeof n=="boolean")return String(n)}}}return null}function T7(e){return jc(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Hb(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const t=jc(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function Lc(e){const{score:t,contextsLength:a,results:r=[],subtitle:n,onReplay:i,onClose:s,inline:c=!1}=e||{},{t:d}=me.useTranslation();l.useEffect(()=>{const b=a??0;t!=null&&b>0&&t/b>.5&&window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},[t,a]);const u=l.useCallback(b=>{const v=Hb(b),y=jc(b?.wording,b?.label);return v===!0?{variant:"main",label:y??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:v===!1?{variant:"danger",label:y??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:y??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),m=a??0,h=t??0,p=l.useMemo(()=>Array.isArray(r)?r:[],[r]),g=l.useMemo(()=>p.map(b=>{const v=b??{},y=T7(v)||"(\uB0B4\uC6A9\uC5C6\uC74C)",{variant:_,label:x}=u(v),C=Array.isArray(v.corrects)?v.corrects:[],k=C.length?C.join(", "):v.answer!=null&&v.answer!==""?String(v.answer):null,w=typeof v.selectedText=="string"?v.selectedText:null,S=Hb(v)===!0;return{problem:y,variant:_,label:x,answer:k,selectedText:w,isCorrect:S}}),[p,u]),f=l.useMemo(()=>g.some(b=>b.answer!==null||b.selectedText!==null),[g]);return o.jsx(Ta,{onClose:s,inline:c,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:b,closeWithAnimation:v})=>o.jsxs("div",{className:"trp-actions",children:[o.jsx(re,{size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>b(i)}),o.jsx(re,{size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:v})]}),children:()=>o.jsxs("div",{className:"trp-result is-on",children:[o.jsxs("header",{className:"trp-result__head",children:[o.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),o.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),n&&o.jsx("p",{className:"trp-result__subtitle body-3",children:n}),o.jsx("div",{className:"trp-score",children:o.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:h,total:m}),children:[o.jsx("span",{className:"trp-score__big",children:h}),o.jsx("span",{className:"trp-score__sep",children:"/"}),o.jsx("span",{className:"trp-score__total",children:m})]})})]}),g.length>0&&o.jsx("section",{className:"trp-result__body",children:o.jsxs("div",{className:`result-table${f?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[o.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[o.jsx("span",{role:"columnheader",children:d("training.result.colProblem","\uBB38\uC81C")}),f&&o.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),o.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),g.map((b,v)=>o.jsxs("div",{className:"result-table__row",role:"row",children:[o.jsxs("div",{className:"trp-row__problem",children:[o.jsx("span",{className:"trp-row__no caption-1",children:String(v+1).padStart(2,"0")}),o.jsx("div",{className:"trp-row__q body-2",children:b.problem})]}),f&&o.jsxs("div",{className:"trp-row__answers",children:[b.answer!==null&&o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),o.jsx("span",{className:"trp-row__answer-value body-2",children:b.answer})]}),o.jsxs("div",{className:"trp-row__answer-line",children:[o.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${b.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),o.jsx("span",{className:`trp-row__answer-value body-2 ${b.isCorrect?"is-correct":"is-wrong"}`,children:b.selectedText??"\u2014"})]})]}),o.jsx("div",{className:"trp-row__judge",children:o.jsx(ht,{variant:b.variant,label:b.label,fill:"soft",minWidth:80})})]},v))]})})]})})}function B7(e){l.useEffect(()=>{if(!e)return;const t=new Date;return()=>{const a=new Date;a.getTime()-t.getTime()<5e3||es({trainingType:e,startedAt:t.toISOString(),endedAt:a.toISOString()})}},[e])}function Mc(e,t){return e&&e.id||`page-${t??0}`}function Pc(e,t){return e&&e.key||`step-${t??0}`}function $n(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function N7(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const Vb=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),D7=e=>o.jsx(Lc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function E7(e){const{scenario:t,title:a,subTitle:r,depth:n,icon:i,wrapperStyle:s,iconTooltip:c,pageIndex:d,pageCount:u,stepIndex:m,stepCount:h,onBack:p,onComplete:g,onNext:f,onSettings:b,useNoiseSetting:v=!0,children:y,ariaLabel:_,label:x,buildResults:C,onResult:k,typeKey:w,entryPoint:S,dailyTotal:j,itemRef:A,renderResultPopup:B}=e;B7(w&&!Vb.has(w)?w:"");const W=l.useRef(0);l.useEffect(()=>{W.current=Date.now()},[]);const{t:M}=me.useTranslation(),T=k,$=!!t,E=t?.id||null,H=t?.meta||{},te=Array.isArray(t?.pages)?t.pages:[],Q=Array.isArray(y)||l.isValidElement(y)&&typeof y!="function"?l.Children.toArray(y).filter(l.isValidElement):[],ae=Q.length>0,N=ie=>ie===Sr||ie?.__isTrainingPage===!0,L=ae&&Q.some(ie=>N(ie.type)),R=L?Q.filter(ie=>N(ie.type)).map((ie,ye)=>{const Ce=ie.props||{};return{id:`children-page-${ye}`,steps:l.Children.toArray(Ce.children).filter(l.isValidElement),pageTop:Ce.pageTop||Ce.top||null,pageBottom:Ce.pageBottom||Ce.bottom||null}}):[{id:"children-page-0",steps:Q}],z=ae&&!$&&typeof y!="function",V=z?Math.max(1,R.length):0;l.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),l.useEffect(()=>{if(typeof document>"u"||!document.body)return;const ie=document.body;return ie.dataset.ihabTrainingPopupCount=String(Number(ie.dataset.ihabTrainingPopupCount||"0")+1),ie.classList.add("ihab-training-popup-open"),()=>{const ye=Number(ie.dataset.ihabTrainingPopupCount||"1")-1;ye>0?ie.dataset.ihabTrainingPopupCount=String(ye):(delete ie.dataset.ihabTrainingPopupCount,ie.classList.remove("ihab-training-popup-open"))}},[]),l.useEffect(()=>{if(!(typeof document>"u"||!document.body))return pk()},[]);const[X,F]=l.useState({...Cb,enabled:!1}),Y=l.useRef(X);l.useEffect(()=>{Y.current=X},[X]),l.useEffect(()=>{let ie=!1;return ns().then(ye=>{if(ie)return;const Ce=ye?{...Y.current,...ye}:{...Cb};Y.current=Ce,F(Ce)}),()=>{ie=!0}},[]);const[O,ne]=l.useState(null),[ue,xe]=l.useState(null),ve=l.useCallback((ie,ye)=>{ie==="main"?ne(ye):xe(ye)},[]),pe=l.useCallback(ie=>{const ye={...Y.current,...ie};Y.current=ye,F(ye),is(ye)},[]),P=X.mainSpeed,q=X.mainVolume,oe=l.useCallback(ie=>pe({mainSpeed:ie}),[pe]),ge=l.useCallback(ie=>pe({mainVolume:ie}),[pe]),de=l.useMemo(()=>({settings:X,setSettings:pe,registerAnalyser:ve,mainAnalyser:O,noiseAnalyser:ue,playbackRate:P,setPlaybackRate:oe,mainVolume:q,setMainVolume:ge}),[X,pe,ve,O,ue,P,oe,q,ge]),I=l.useRef(null),[Z,J]=l.useState("center"),[fe,De]=l.useState(!1),$e=l.useRef(!1),Le=l.useRef(null),Ee=l.useCallback(ie=>{$e.current||($e.current=!0,De(!0),Le.current=setTimeout(ie,m7))},[]);l.useEffect(()=>()=>{Le.current&&clearTimeout(Le.current)},[]),l.useEffect(()=>{const ie=I.current;if(!ie)return;const ye=Array.from(ie.querySelectorAll(dr)).filter(U=>!U.closest('[aria-hidden="true"]'))[0];if(ye)try{ye.focus()}catch{}const Ce=U=>{if(U.key==="Escape"){U.preventDefault(),Ee(()=>{typeof p=="function"&&p()});return}};return ie.addEventListener("keydown",Ce),()=>ie.removeEventListener("keydown",Ce)},[p,Ee]),ws(I,!0);const[je,Te]=l.useState(!1),Ie=l.useRef(!1),[He,be]=l.useState(null),[Ke,Ve]=l.useState(""),[Re,qe]=l.useState(()=>$n()),vt=l.useRef(typeof d=="number"?d:null);l.useEffect(()=>{!$&&!z||(qe($n()),be(null))},[$,E,z]),l.useEffect(()=>{z&&qe(ie=>{const ye=Math.max(0,Math.min(ie.pageIndex,Math.max(0,V-1)));return ye!==ie.pageIndex?{...ie,pageIndex:ye,stepIndex:0}:ie})},[z,V]);const Ue=z?Math.max(0,Math.min(Re.pageIndex,V-1)):0,Xe=z?R[Ue]:null,ut=z&&Xe&&Array.isArray(Xe.steps)?Xe.steps:[],ze=$?Re.pageIndex:z?Ue:typeof d=="number"?d:0,rt=$?te[Math.max(0,Math.min(Re.pageIndex,Math.max(0,te.length-1)))]:null,et=$&&rt&&Array.isArray(rt.steps)?rt.steps:[],We=$?et.length:z?ut.length:typeof h=="number"?h:0,Je=$||z?Math.max(0,Math.min(Re.stepIndex,Math.max(0,We))):typeof m=="number"?m:0,tt=$?te.length:z?V:typeof u=="number"?u:0;l.useLayoutEffect(()=>{const ie=vt.current;if(typeof ze=="number"&&ie!==null&&ze!==ie&&ze>ie)try{Ve(M("training.problemNotice",{n:ze+1}))}catch{}vt.current=typeof ze=="number"?ze:vt.current},[ze,d,M]),l.useLayoutEffect(()=>{const ie=I.current;if(!ie)return;const ye=()=>ie.querySelector(".page-popup__scroll");let Ce=null,U=null,le=null;const we=ct=>{const ce=ye();if(!ce)return;const Be=ce.scrollHeight<=ce.clientHeight;if(J(Be?"center":"top"),ct&&!Ie.current){Ie.current=!0;try{Te(!0)}catch{}try{Oe.disconnect()}catch{}}},Se=()=>{Ce!==null&&cancelAnimationFrame(Ce),Ce=requestAnimationFrame(()=>{U!==null&&clearTimeout(U),U=setTimeout(()=>we(!0),60)})},Ae=()=>{le!==null&&cancelAnimationFrame(le),le=requestAnimationFrame(()=>we(!1))};Se(),window.addEventListener("resize",Ae);const Oe=new MutationObserver(Se);Oe.observe(ie,{childList:!0,subtree:!0,attributes:!0});const nt=setTimeout(()=>{Ie.current||we(!0)},400);return()=>{window.removeEventListener("resize",Ae),Ce!==null&&cancelAnimationFrame(Ce),U!==null&&clearTimeout(U),le!==null&&cancelAnimationFrame(le),clearTimeout(nt);try{Oe.disconnect()}catch{}}},[I]);const xt=l.useCallback(ie=>{I.current&&(I.current._childOnNext=ie)},[]),Et=l.useCallback(ie=>{I.current&&(I.current._childOnResult=ie)},[]),it=l.useCallback((ie,ye,Ce)=>{qe(U=>{const le=U.answersByPage[ie]||{},we=le[ye],Se=Rn(Ce),Ae=Rn(we);return we&&Ae>Se?U:{...U,answersByPage:{...U.answersByPage,[ie]:{...le,[ye]:Ce}}}})},[qe]),Ht=l.useCallback((ie,ye,Ce)=>{const U=Mc(rt,ze),le=Pc(ie,ye);it(U,le,Ce)},[rt,ze,it]),mt=l.useCallback((ie,ye,Ce)=>{const U=Mc(rt,ze),le=Pc(ie,ye);it(U,le,Ce),!Ce?.allowChange&&ie?.autoAdvance!==!1&&qe(we=>({...we,stepIndex:Math.max(we.stepIndex,ye+1)}))},[rt,ze,it,qe]),Vt=l.useCallback((ie,ye)=>{const Ce=Xe?.id||`children-page-${ze??0}`,U=typeof ye=="number"?ye:Je??0,le=`step-${U}`;it(Ce,le,ie),ie?.allowChange||qe(we=>({...we,stepIndex:Math.max(we.stepIndex,U+1)}))},[Xe,ze,Je,it,qe]),ia=l.useCallback((ie,ye)=>{const Ce=Xe?.id||`children-page-${ze??0}`,U=`step-${typeof ye=="number"?ye:Je??0}`;it(Ce,U,ie)},[Xe,ze,Je,it]),Gt=z?{currentPageIndex:ze??0,currentStepIndex:Je??0,totalStepsInPage:ut.length,handleStepDone:Vt,handleStepChange:ia}:null,Ea=async()=>{const ie=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:te,flowState:Re,answersByPage:Re.answersByPage})):null;return typeof T=="function"&&await Promise.resolve(T(ie))||ie},sa=async()=>{const ie=Xe?.id||`children-page-${Re.pageIndex}`,ye=Re.answersByPage[ie]||{},Ce=L?(()=>{const we={};let Se=0;return R.forEach(Ae=>{const Oe=Re.answersByPage[Ae.id]||{},nt=Array.isArray(Ae.steps)?Ae.steps.length:0;for(let ct=0;ct<nt;ct+=1){const ce=Oe[`step-${ct}`];typeof ce<"u"&&(we[`step-${Se+ct}`]=ce)}Se+=nt}),we})():ye;if(typeof C=="function"){const we=await Promise.resolve(C(Ce,{pageAnswers:ye,answersByPage:Re.answersByPage,pages:R,currentPageId:ie}));return typeof T=="function"&&await Promise.resolve(T(we))||we}const U=Object.entries(ye).map(([we,Se],Ae)=>({index:Ae,key:we,payload:Se})),le={results:U,answers:U,score:0};return typeof T=="function"&&await Promise.resolve(T(le))||le},Kt=()=>{try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if($){const Ce=Ea();be({});const U=Ce;Promise.resolve(U).then(le=>{be(le||{isEmpty:!0})}).catch(le=>{be({isEmpty:!0})});return}if(z){const Ce=sa();be({});const U=Ce;Promise.resolve(U).then(le=>{be(le||{isEmpty:!0})}).catch(le=>{be({isEmpty:!0})});return}const ie=I.current&&I.current._childOnResult,ye=Ce=>{try{return Ce?Ce():void 0}catch{return}};if(typeof ie=="function"){const Ce=ye(ie);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Ce&&typeof Ce.then!="function"?be(Ce):be(Ce&&typeof Ce.then=="function"?{}:{}),Promise.resolve(Ce).then(U=>{U&&be(U)}).catch(U=>{});return}if(typeof T=="function"){const Ce=ye(T);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}Ce&&typeof Ce.then!="function"?be(Ce):be(Ce&&typeof Ce.then=="function"?{}:{}),Promise.resolve(Ce).then(U=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Yt&&Yt.tagName.toUpperCase()==="SCRIPT"&&Yt.src||new URL("ihabdevteam-core.cjs.js",document.baseURI).href}catch{}U&&be(U)}).catch(U=>{console.error("viewResults external handler failed",U)});return}},ja=()=>{if($){if(typeof ze=="number"&&typeof tt=="number"&&ze<tt-1){qe(ye=>({...ye,pageIndex:ye.pageIndex+1,stepIndex:0}));return}return Kt()}if(z){const ye=ut.length;if(typeof Je=="number"&&Je<ye-1){qe(Ce=>({...Ce,stepIndex:Ce.stepIndex+1}));return}if(typeof ze=="number"&&typeof tt=="number"&&ze<tt-1){qe(Ce=>({...Ce,pageIndex:Ce.pageIndex+1,stepIndex:0}));return}return Kt()}if(typeof f=="function"){try{f()}catch{}return}const ie=I.current&&I.current._childOnNext;if(typeof ie=="function"){try{ie()}catch{}return}},jt=$?H.title||H.label||_||M("common.popup","\uD31D\uC5C5"):a||x||(Array.isArray(n)?n[n.length-1]:void 0)||_||M("common.popup","\uD31D\uC5C5"),Ga=$?H.title??H.label??jt:a??x??jt,$t=(ie,ye)=>{const Ce=Mc(rt,ze),U=Pc(ie,ye),le=Re.answersByPage[Ce]?.[U],we=N7(ie,{page:rt,pageIndex:ze,step:ie,stepIndex:ye,storedPayload:le,answersByPage:Re.answersByPage,flowState:Re}),Se={key:U,index:ye,stepIndex:Je,isLast:ye===et.length-1};switch(ie?.type){case"listen":return o.jsx(Mn,{...Se,...we,onDone:Ae=>mt(ie,ye,Ae)});case"confirm":return o.jsx(jn,{...Se,...we,onDone:Ae=>mt(ie,ye,Ae),onChange:Ae=>Ht(ie,ye,Ae)});case"confirmWithText":return o.jsx(Ln,{...Se,...we,onDone:Ae=>mt(ie,ye,Ae),onChange:Ae=>Ht(ie,ye,Ae)});case"orderList":return o.jsx(Pn,{...Se,...we,onDone:Ae=>mt(ie,ye,Ae),onChange:Ae=>Ht(ie,ye,Ae)});default:return null}},ya=$?te.length>0?o.jsx("div",{className:"training-steps",children:et.map((ie,ye)=>$t(ie,ye))}):o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"pp-empty",children:t?.emptyMessage||M("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,qa=z?o.jsxs(Wb.Provider,{value:Gt,children:[Xe?.pageTop?o.jsx("div",{className:"training-page-top",children:Xe.pageTop}):null,o.jsx("div",{className:"training-steps",children:ut.map((ie,ye)=>{const Ce=ie;return l.cloneElement(Ce,{...Ce.props,_stepIndex:ye,_totalSteps:ut.length,_stepKey:`step-${ye}`,_pageIndex:ze})})}),Xe?.pageBottom?o.jsx("div",{className:"training-page-bottom",children:Xe.pageBottom}):null]}):null,Qe=l.useCallback(()=>{let ie;if(w){const ye=He,Ce=ye?.results||ye?.answers||[],U=Array.isArray(Ce)&&Ce.length>0?Ce.length:null,le=Array.isArray(Ce)?Ce.filter(Se=>Se?.correct===!0||Se?.isCorrect===!0||Se?.score===1||Se?.heard===!0||Se?.judgement===!0).length:null,we=U!=null?le:null;ts({items:os(Ce),category:Vb.has(w)?"sentence":"word",trainingType:w,entryPoint:S??"sentence",itemRef:A??null,correct:we,total:U,score:typeof ye?.score=="number"?ye.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-W.current)/1e3)),dailyTotal:j??null}),ie={correct:we,total:U}}be(null),Ee(()=>{typeof g=="function"&&g(ie),typeof p=="function"&&p()})},[g,p,w,S,j,A,He,be,Ee]),It=l.useCallback(()=>Ve(""),[Ve]),kt=l.useCallback(()=>{Ee(()=>{typeof p=="function"&&p()})},[p,Ee]),xa=o.jsxs("div",{className:`page-popup${fe?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":jt,children:[o.jsxs("div",{ref:I,className:`page-popup__panel ${je?"":"page-popup__panel--measuring"} ${Z==="center"?"page-popup__panel--center":Z==="top"?"page-popup__panel--top":""}`,children:[o.jsx(kc,{title:Ga,subtitle:$?H.subtitle||H.label:Array.isArray(n)?n.join(" / "):void 0,desc:$?void 0:r,depth:$?H.depth:n,icon:$?H.icon:i,wrapperStyle:$?H.wrapperStyle:s,iconTooltip:$?H.iconTooltip:c,progressMax:tt,progressIndex:ze,pageIndex:ze,pageCount:tt,onBack:kt,onClose:kt}),o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:`page-popup__content ${Z==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:z?qa:$?ya:typeof y=="function"?y({registerOnNext:xt,registerOnResult:Et,panelRef:I,setResultOverlay:be}):y})}),o.jsx(wc,{onSettings:b,onNext:ja,onResult:Kt,useNoiseSettingBtn:!!($?H.useNoiseSetting??!0:v),stepIndex:Je,stepCount:We,pageIndex:ze,pageCount:tt})]}),He&&!He.isEmpty&&(B??D7)({score:He.score,results:He.results||He.answers||[],contextsLength:He.results?He.results.length:He.answers?He.answers.length:0,onReplay:()=>{if(be(null),$){if(qe($n()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(z){qe($n());return}try{const ie=I.current&&I.current._childOnResult;typeof ie=="function"&&ie({replay:!0})}catch{}},onClose:Qe}),He?.isEmpty&&o.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":M("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:o.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[o.jsx("div",{className:"page-popup__scroll",children:o.jsx("div",{className:"page-popup__content page-popup__content--center",children:o.jsx("div",{className:"page-popup__empty",children:M("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),o.jsx("div",{className:"page-popup__bottom",children:o.jsx(re,{variant:"main",size:48,onClick:Qe,label:M("training.result.done","\uC644\uB8CC")})})]})}),o.jsx(ro,{message:Ke,position:"top",onClose:It})]}),la=o.jsx(_b.Provider,{value:de,children:xa});return typeof document<"u"&&document.body?qt.createPortal(la,document.body):la}const Da=E7;Da.Page=Sr,Da.ListenStep=Tc,Da.ConfirmStep=Bc,Da.ConfirmWithTextStep=Nc,Da.OrderListStep=Dc,Da.CardStep=Ec,Da.CardOrderStep=S7;var j7=".ihabdevteam-core-scope .word-search-result-block__actions{display:flex;gap:var(--spacing-xs);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:var(--spacing-xs);justify-content:flex-end}.ihabdevteam-core-scope .word-search-result-block__inner{background:var(--color-white);border:1px solid var(--color-darkWhite);border-radius:var(--radius-m);padding:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__inner:has(+.word-search-result-block__actions:not(:empty)){margin-bottom:var(--spacing-content)}.ihabdevteam-core-scope .word-search-result-block__items{grid-gap:var(--spacing-xs);display:grid;gap:var(--spacing-xs);grid-template-columns:repeat(auto-fill,200px);justify-content:center}.ihabdevteam-core-scope .word-search-result-block__items .button__label-text,.ihabdevteam-core-scope .word-search-result-block__items .button__sub-label-text{white-space:nowrap;word-break:keep-all}.ihabdevteam-core-scope .word-search-result-block__items .button__label:has(.button__label-text:nth-child(4)){gap:4px 10px;grid-auto-columns:auto;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}.ihabdevteam-core-scope .word-search-result-block__items .button-word:has(.button__label-text:nth-child(4)){height:auto;min-height:72px;padding-bottom:8px;padding-top:8px}@media (max-width:767px){.ihabdevteam-core-scope .word-search-result-block__items{grid-template-columns:repeat(2,1fr);justify-content:normal}.ihabdevteam-core-scope .word-search-result-block__items .button{min-width:0!important;width:100%}}.ihabdevteam-core-scope .word-search-result-block__empty{color:var(--color-gray);margin:0;padding:24px 0;text-align:center}.ihabdevteam-core-scope .word-search-result-block__group{display:flex;flex-direction:column;gap:10px}.ihabdevteam-core-scope .word-search-result-block__group+.word-search-result-block__group{border-top:1px solid var(--color-darkWhite);margin-top:var(--spacing-l);padding-top:var(--spacing-l)}.ihabdevteam-core-scope .word-search-result-block__pagination-bottom{display:flex;justify-content:center;margin-top:16px}.ihabdevteam-core-scope .word-search-result-block__empty-wrap{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--spacing-xs,8px)}.ihabdevteam-core-scope .word-search-result-block__empty-hint{color:var(--color-sub);line-height:1.6;max-width:34em;text-align:center}.ihabdevteam-core-scope .word-search-result-block__disc,.ihabdevteam-core-scope .word-search-result-block__notice{display:block}.ihabdevteam-core-scope .word-search-result-block__notice{color:var(--color-text-primary)}";ee(j7);var L7='.ihabdevteam-core-scope .tooltip-word-image{background:var(--color-white);border-radius:var(--radius-m);box-shadow:var(--shadow-dropdown);padding:var(--spacing-s);position:fixed;z-index:var(--z-tooltip)}.ihabdevteam-core-scope .tooltip-word-image__cells{display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .tooltip-word-image__cell{background:#f5f5f5;background:var(--color-white,#f5f5f5);border-radius:var(--radius-card);flex-shrink:0;height:120px;overflow:hidden;position:relative;width:120px}.ihabdevteam-core-scope .tooltip-word-image__cell img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;transition:opacity .2s;width:100%}.ihabdevteam-core-scope .tooltip-word-image__spinner{align-items:center;display:flex;inset:0;justify-content:center;position:absolute}.ihabdevteam-core-scope .tooltip-word-image__spinner:after{animation:tooltip-spin .7s linear infinite;border:3px solid #e0e0e0;border-radius:50%;border-top:3px solid var(--color-white,#e0e0e0);border:3px solid var(--color-white,#e0e0e0);border-top-color:var(--color-main,#4f6ef7);content:"";height:24px;width:24px}@keyframes tooltip-spin{to{transform:rotate(1turn)}}.ihabdevteam-core-scope .tooltip-word-image__cell--text{align-items:center;color:var(--color-black);display:flex;font-weight:700;justify-content:center}';ee(L7);function M7({label:e,homonum:t}){const a=Ma()?.(e,t)??"",{imgRef:r,loading:n,hasImage:i,onLoad:s,onError:c}=Ql(a);return i?o.jsxs("div",{className:"tooltip-word-image__cell",children:[n&&o.jsx("div",{className:"tooltip-word-image__spinner"}),o.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:n?0:1},onLoad:s,onError:c})]}):o.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:o.jsx("span",{children:e})})}function Rc({words:e,anchorRect:t}){const a=l.useRef(null),[r,n]=l.useState(null);return l.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:s}=a.current,c=window.innerWidth;let d=t.left+t.width/2-i/2,u=t.top-s-8;u<8&&(u=t.bottom+8),d=Math.max(8,Math.min(d,c-i-8)),n({left:d,top:u})},[t]),!t||e.length===0?null:qt.createPortal(o.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:o.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>o.jsx(M7,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}function Gb({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:n,groups:i,selected:s=[],onSelect:c,maxSelect:d,onClearSelection:u,onPrint:m,onPrintEmpty:h,className:p,emptyHint:g,sectionType:f="page",disc:b,notice:v}){const{t:y,i18n:_}=me.useTranslation(),x=_.language?.startsWith("ko")??!1,{anchorRect:C,openAt:k,close:w}=ko(),[S,j]=l.useState(null),A=l.useCallback(()=>{w(),j(null)},[w]);wl(A,!!S);const B=(r??"").trim(),W=/^[^,[\]\s]+$/.test(B)?B:"",M=W.length>0,[T,$]=l.useState("ganada"),[E,H]=l.useState("50"),[te,Q]=l.useState(1),[ae,N]=l.useState(M);ae!==M&&(N(M),$(M?"match":"ganada"));const L=T==="match"&&!M?"ganada":T,R=l.useMemo(()=>[...M?[{value:"match",label:y("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:y("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:y("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:y("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:y("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:y("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:y("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[y,M]),z=l.useMemo(()=>["10","25","50","100"].map(I=>({value:I,label:y("wordSearch.pageSize",{count:Number(I),defaultValue:`${I}\uAC1C\uC529 \uBCF4\uAE30`})})),[y]),V=I=>I.words[0],X=l.useCallback((I,Z)=>{const J=$e=>V($e)?.label??"",fe=$e=>V($e)?.syllables??[...J($e)].length,De=$e=>{const Le=parseInt(V($e)?.grade??"",10);return Number.isFinite(Le)?Le:999};switch(L){case"match":{const $e=[...W].length,Le=Ee=>ho(J(Ee).slice(0,$e),W)?0:1;return Le(I)-Le(Z)||J(I).localeCompare(J(Z),"ko")}case"ganada":return J(I).localeCompare(J(Z),"ko");case"ganada_desc":return J(Z).localeCompare(J(I),"ko");case"syllable":return fe(I)-fe(Z)||J(I).localeCompare(J(Z),"ko");case"syllable_desc":return fe(Z)-fe(I)||J(I).localeCompare(J(Z),"ko");case"grade":return De(I)-De(Z)||J(I).localeCompare(J(Z),"ko");case"grade_desc":return De(Z)-De(I)||J(I).localeCompare(J(Z),"ko");default:return 0}},[L,W]),F=l.useMemo(()=>n.slice().sort(X),[n,X]),Y=Number(E)||10,O=l.useMemo(()=>(i??[]).flatMap(I=>I.items.slice().sort(X).map(Z=>({item:Z,label:I.label}))),[i,X]),ne=i?O.length:F.length,ue=Math.max(1,Math.ceil(ne/Y)),xe=Math.min(te,ue),ve=l.useMemo(()=>F.slice((xe-1)*Y,xe*Y),[F,xe,Y]),pe=l.useMemo(()=>{if(!i)return null;const I=O.slice((xe-1)*Y,xe*Y),Z=new Map;for(const{item:J,label:fe}of I)Z.has(fe)||Z.set(fe,[]),Z.get(fe).push(J);return[...Z.entries()].map(([J,fe])=>({label:J,items:fe}))},[i,O,xe,Y]);l.useEffect(()=>{Q(1)},[T,E,ne]);const P=ne>0?o.jsxs("div",{className:"word-search-result-block__toolbar",children:[o.jsx(Ut,{size:40,options:R,value:L,onChange:$,ariaLabel:y("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),o.jsx(Ut,{size:40,options:z,value:E,onChange:H,ariaLabel:y("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),o.jsx(vr,{page:xe,totalPages:ue,onChange:Q})]}):void 0,q=I=>{c&&c(I)},oe=t!==void 0&&a?o.jsxs(o.Fragment,{children:[y("wordSearch.resultTitlePrefix","\uCD1D "),o.jsx("span",{style:{color:"var(--color-main)"},children:t}),y("wordSearch.resultTitleSuffix",{unit:x?Li(a):a})]}):void 0,ge=t!==void 0&&t>0&&d!==void 0&&a?y("wordSearch.resultDisc",{unit:x?Pi(a):a,max:d,selected:s.length}):void 0,de=b??(v?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"word-search-result-block__notice",children:v}),ge?o.jsx("span",{className:"word-search-result-block__disc",children:ge}):null]}):ge);return o.jsxs(no,{type:f,icon:e,title:oe,action:P,disc:de,className:_e("word-search-result-block",p),children:[o.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:n.length===0)&&o.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[o.jsx("p",{className:"word-search-result-block__empty body-3",children:y("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&o.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(pe??[]).map(I=>o.jsx("div",{className:"word-search-result-block__group",children:o.jsx("div",{className:"word-search-result-block__items",children:I.items.map(Z=>{const J=s.includes(Z.id);return o.jsx("div",{onMouseEnter:fe=>{k(fe.currentTarget),j(Z.words)},onMouseLeave:A,children:o.jsx(re,{size:"word",align:"grid",label:Z.words.map(fe=>fe.label),subLabel:Z.words.map(fe=>fe.subLabel).filter(Boolean).length>0?Z.words.map(fe=>fe.subLabel):void 0,selected:J,onClick:()=>q(Z.id),minWidth:200})},Z.id)})})},I.label)):o.jsx("div",{className:"word-search-result-block__items",children:ve.map(I=>{const Z=s.includes(I.id);return o.jsx("div",{onMouseEnter:J=>{k(J.currentTarget),j(I.words)},onMouseLeave:A,children:o.jsx(re,{size:"word",align:"grid",label:I.words.map(J=>J.label),subLabel:I.words.map(J=>J.subLabel).filter(Boolean).length>0?I.words.map(J=>J.subLabel):void 0,selected:Z,onClick:()=>q(I.id),minWidth:200})},I.id)})}),S&&C&&o.jsx(Rc,{words:S,anchorRect:C})]}),ue>1&&o.jsx("div",{className:"word-search-result-block__pagination-bottom",children:o.jsx(vr,{page:xe,totalPages:ue,onChange:Q})}),(u||m)&&o.jsxs("div",{className:"word-search-result-block__actions",children:[u&&o.jsx(re,{size:"56",type:"bar",label:y("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:s.length===0,onClick:s.length===0?void 0:u}),m&&o.jsx("div",{onClick:s.length===0?h:void 0,children:o.jsx(re,{size:"56",type:"bar",variant:"main",label:y("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:s.length===0,onClick:s.length===0?void 0:m})})]})]})}var P7='.ihabdevteam-core-scope .phoneme-select-block{align-items:flex-start;flex:1 1 auto;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell{align-items:center;display:flex;flex-direction:column;gap:12px}.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;display:flex;flex-direction:row;gap:var(--spacing-xs);justify-content:center;width:100%}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__controls{align-items:center;flex-direction:column}}.ihabdevteam-core-scope .phoneme-select-block__count-control{align-self:center}.ihabdevteam-core-scope .phoneme-select-block__cell-group{align-items:flex-start;display:flex;gap:var(--spacing-xs)}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;color:var(--color-lightGray);margin-bottom:22px;padding:0 16px}.ihabdevteam-core-scope .phoneme-select-block__pair-panels{display:flex;gap:var(--spacing-s);width:100%}.ihabdevteam-core-scope .phoneme-select-block__panel-group{display:flex;flex:1;flex-direction:column;gap:var(--spacing-m)}.ihabdevteam-core-scope .phoneme-select-block__cells{align-items:flex-start;display:flex;gap:var(--spacing-xs);justify-content:center;padding:var(--spacing-m) 0;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{align-items:center;background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);box-shadow:var(--shadow-tooltip);display:flex;height:80px;justify-content:center;position:relative;width:240px}.ihabdevteam-core-scope .phoneme-select-block__cell-index{color:var(--color-gray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo{align-items:stretch;display:flex;flex-direction:row;height:100%;justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{align-items:center;color:var(--color-black);display:flex;flex:1;flex-direction:column;gap:4px;justify-content:center;padding-top:3px;position:relative}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--no-label{padding-top:0}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char.h1{line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-char--excluded{color:var(--color-whiteLine);transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-char{transform:translateY(-2px)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-label{color:var(--color-lightGray);line-height:1}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty .phoneme-select-block__cell-jamo-label{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part+.phoneme-select-block__cell-jamo-part:before{background:var(--color-whiteLine);content:"";height:20px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:1px}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part--empty{color:var(--color-darkWhite)}.ihabdevteam-core-scope .phoneme-select-block__panels{align-items:stretch;align-self:stretch;display:flex;flex-direction:column;gap:var(--spacing-m);width:100%}.ihabdevteam-core-scope .phoneme-select-block__detail{align-items:flex-start;display:flex;flex-direction:row;gap:var(--spacing-s);justify-content:center}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{flex:1}.ihabdevteam-core-scope .phoneme-select-block>.filter-panel{align-self:stretch;width:100%}.ihabdevteam-core-scope .phoneme-select-block__controls .button38--bar{min-width:96px}.ihabdevteam-core-scope .phoneme-select-block__required{color:var(--color-main);line-height:1;margin-left:2px}.ihabdevteam-core-scope .phoneme-select-block__before-search{display:flex;justify-content:center;text-align:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__search-row{display:flex;gap:var(--spacing-xs);justify-content:center;width:100%}.ihabdevteam-core-scope .phoneme-select-block__checking{align-items:center;background:transparent;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);color:var(--color-disabled);cursor:default;display:flex;gap:10px;height:60px;min-width:198px;padding:0 28px}.ihabdevteam-core-scope .phoneme-select-block__checking-label{white-space:nowrap}.ihabdevteam-core-scope .phoneme-select-block__spinner{animation:phonemeSpinner .7s linear infinite;border:2px solid var(--color-whiteLine);border-radius:50%;border-top-color:var(--color-disabled);flex-shrink:0;height:18px;width:18px}@keyframes phonemeSpinner{to{transform:rotate(1turn)}}@media (max-width:767px){.ihabdevteam-core-scope .phoneme-select-block__detail,.ihabdevteam-core-scope .phoneme-select-block__pair-panels{flex-direction:column}.ihabdevteam-core-scope .phoneme-select-block__detail>.filter-panel{width:100%}.ihabdevteam-core-scope .phoneme-select-block__cell-vs{align-self:center;margin-bottom:0;padding:4px 0}.ihabdevteam-core-scope .phoneme-select-block__cells{flex-wrap:wrap}.ihabdevteam-core-scope .phoneme-select-block__cell-circle{height:64px;width:min(240px,100%)}.ihabdevteam-core-scope .phoneme-select-block__cell-jamo-part{font-size:24px}}';ee(P7);function R7(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,n=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:n}})}function qb({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:n=4,minCount:i=1,combinationSections:s,combinationSectionsForSlot:c,onSelect:d,placeholder:u="-",className:m,title:h,titleIcon:p,disc:g,showInfoButton:f=!1,onClearPhoneme:b,onSearch:v,onSearchEmpty:y,searchDisabled:_=!1,searchLabel:x,searchChecking:C=!1,pairMode:k=!1,sectionType:w="page",beforeSearchContent:S,beforeContent:j,afterContent:A,hideCountControl:B=!1,ordinal:W=!1}){const{t:M}=me.useTranslation(),T=l.useMemo(()=>M("wordPairs.infoNotes",{returnObjects:!0}),[M]),$=l.useMemo(()=>Array.from({length:n-i+1},(F,Y)=>{const O=i+Y;return{key:String(O),label:M("wordPairs.count",{n:O})}}),[M,n,i]),E=l.useMemo(()=>M("wordPairs.ordinals",{returnObjects:!0}),[M]),H=l.useCallback(F=>W?M("wordPairs.phonemeOrdinalLabel",{ordinal:E[F-1]??F}):a===1?M("wordPairs.phonemeSingleLabel","\uC74C\uC808"):M("wordPairs.phonemeN",{n:F}),[W,E,a,M]),te=l.useCallback(F=>W?M("wordPairs.phonemeContrastOrdinalLabel",{ordinal:E[F-1]??F}):a===1?M("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):M("wordPairs.phonemeContrast",{n:F}),[W,E,a,M]),Q=l.useCallback((F,Y)=>Y?o.jsxs(o.Fragment,{children:[F,o.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):F,[]),{anchorRect:ae,toggleAt:N,close:L}=ko(),R=l.useCallback(F=>r(Number(F)),[r]),z=oa("(max-width: 767px)"),V=l.useCallback(F=>R7(F,e).map(({label:Y,value:O,displayLabel:ne})=>{const ue=!!O&&O!=="\uC5C6\uC74C";return o.jsxs("span",{className:_e("phoneme-select-block__cell-jamo-part",O?"":"phoneme-select-block__cell-jamo-part--empty",ue?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[o.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${O==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:O==="\uC5C6\uC74C"?"x":O||u}),ue&&o.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:ne??Y})]},Y)}),[e,u]),X=o.jsxs(o.Fragment,{children:[o.jsx("div",{"data-tooltip-ignore":!0,children:o.jsx(re,{size:40,type:z?"dot":void 0,icon:"info",label:z?void 0:M("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!ae,onClick:F=>N(F.currentTarget)})}),ae&&o.jsx(to,{title:M("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:T,anchorRect:ae,onClose:L})]});return o.jsxs(no,{type:w,title:h,icon:p,disc:g,action:X,className:_e("phoneme-select-block",m),children:[j,(!B||f&&!(h||g))&&o.jsxs("div",{className:"phoneme-select-block__controls",children:[!B&&o.jsx(Ha,{options:$,value:String(a),onChange:R,size:40,className:"phoneme-select-block__count-control"}),f&&!(h||g)&&X]}),o.jsx("div",{className:"phoneme-select-block__cells",children:k?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((F,Y)=>{const O=t[Y*2]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:V(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:H(Y+1)})]},Y)})}),o.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:M("wordPairs.phonemeSelect.vs","\uB300")}),o.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((F,Y)=>{const O=t[Y*2+1]??{};return o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:V(O)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:te(Y+1)})]},Y)})})]}):t.map((F,Y)=>o.jsxs("div",{className:"phoneme-select-block__cell",children:[o.jsx("div",{className:"phoneme-select-block__cell-circle",children:o.jsx("div",{className:"phoneme-select-block__cell-jamo",children:V(F)})}),o.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:H(Y+1)})]},Y))}),(s||c)&&o.jsx("div",{className:"phoneme-select-block__panels",children:o.jsx("div",{className:"phoneme-select-block__detail",children:k?o.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((F,Y)=>{const O=t[Y*2]??{};return o.jsx(va,{title:Q(H(Y+1),Y===0),sections:c?c(O,Y*2):s,selected:O,onSelect:d?.(Y*2),align:"newline"},Y)})}),o.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((F,Y)=>{const O=t[Y*2+1]??{};return o.jsx(va,{title:te(Y+1),sections:c?c(O,Y*2+1):s,selected:O,onSelect:d?.(Y*2+1),align:"newline"},Y)})})]}):t.map((F,Y)=>o.jsx(va,{title:Q(H(Y+1),Y===0),sections:c?c(F,Y):s,selected:F,onSelect:d?.(Y),align:"newline"},Y))})}),S&&o.jsx("div",{className:"phoneme-select-block__before-search",children:S}),(b||v||C)&&(()=>{const F=t.every(Y=>Object.entries(Y).every(([O,ne])=>!ne||O==="\uC885\uC131"&&ne==="\uC5C6\uC74C"));return o.jsxs("div",{className:"phoneme-select-block__search-row",onClick:F?y:void 0,children:[b&&o.jsx(re,{size:"56",type:"bar",label:M("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:F,onClick:F?void 0:b}),C?o.jsxs("div",{className:"phoneme-select-block__checking",children:[o.jsx("div",{className:"phoneme-select-block__spinner"}),o.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:x??M("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):v&&o.jsx(re,{size:"56",type:"bar",variant:"main",label:x??M("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:F||_,onClick:F||_?void 0:v})]})})(),A]})}function Yb({title:e,sections:t,selected:a,onSelect:r,className:n}){const{t:i}=me.useTranslation();return o.jsx(va,{className:n,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function Ub({title:e,headerAction:t,sections:a,selected:r,onSelect:n,className:i}){const{t:s}=me.useTranslation();return a.length===0?null:o.jsx(va,{className:i,title:e??s("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:n,align:"newline"})}function Kb({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:n,positionCount:i,onPositionCountChange:s,inputMode:c,onInputModeChange:d,className:u}){const{t:m}=me.useTranslation(),h={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},p=v=>m("wordPairs.count",{n:v}),g=[{label:h.searchMode,items:[h.include,h.pick,h.explicit],display:"segmented",labelAction:o.jsx(So,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),m("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),m("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:h.phonemeOrder,items:[h.orderAny,h.orderMatch],display:"segmented",labelAction:o.jsx(So,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:h.count,items:[p(1),p(2)],display:"segmented"},{label:h.inputMode,items:[h.charInput,h.pronInput],display:"segmented",labelAction:o.jsx(So,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),m("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],f={[h.searchMode]:t==="explicit"?h.explicit:t==="pick"?h.pick:h.include,[h.phonemeOrder]:r==="ordered"?h.orderMatch:h.orderAny,[h.count]:p(i),[h.inputMode]:c==="phoneme"?h.pronInput:h.charInput},b=(v,y)=>{y===h.searchMode?a(v===h.explicit?"explicit":v===h.pick?"pick":"include"):y===h.phonemeOrder?n(v===h.orderMatch?"ordered":"unordered"):y===h.count?s(v===p(2)?2:1):y===h.inputMode&&d(v===h.pronInput?"phoneme":"word")};return o.jsx(va,{className:u,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:f,onSelect:b,align:"inline"})}var $7=".ihabdevteam-core-scope .popup-list .popup-panel{max-height:calc(100% - 60px);max-width:880px;width:calc(100% - 40px)}.ihabdevteam-core-scope .popup-list .popup-content{display:flex;flex-direction:column;gap:var(--spacing-m);min-height:0;overflow:hidden}.ihabdevteam-core-scope .popup-list .table-wrap{flex:1;min-height:0;overflow-x:auto;overflow-y:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .popup-list .table-fields,.ihabdevteam-core-scope .popup-list .table-row{min-width:520px}.ihabdevteam-core-scope .popup-list__row--selected{background:var(--color-deepWhite);color:var(--color-main);font-weight:600}";ee($7);function Zb(e){const{title:t,items:a,columns:r,gridTemplateColumns:n,searchPlaceholder:i,searchFn:s,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:u,selectedIds:m,onSelect:h,onClose:p,pageSizeOptions:g=[10,25,50,100],initialPageSize:f,emptyText:b,countLabel:v,topContent:y,className:_=""}=e,{t:x}=me.useTranslation(),C=i??x("common.search","\uAC80\uC0C9"),k=b??x("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,S]=l.useState(""),[j,A]=l.useState(c??r[0]?.key??""),[B,W]=l.useState(d),[M,T]=l.useState(String(f??g[0]??10)),[$,E]=l.useState(1);l.useEffect(()=>{E(1)},[w,M]);const H=s!==null,te=l.useCallback((F,Y)=>{if(!Y)return!0;const O=Y.toLowerCase();return r.some(ne=>{const ue=F[ne.key];return ue==null?!1:String(ue).toLowerCase().includes(O)})},[r]),Q=s??te,ae=l.useMemo(()=>{const F=H?a.filter(Y=>Q(Y,w)):a;return j?[...F].sort((Y,O)=>{const ne=Y[j]??"",ue=O[j]??"";return ne===ue?0:B?ne>ue?1:-1:ne<ue?1:-1}):F},[a,w,j,B,H,Q]),N=Math.max(1,Math.ceil(ae.length/Number(M))),L=ae.slice(($-1)*Number(M),$*Number(M)),R=l.useCallback(F=>{j===F?W(Y=>!Y):(A(F),W(!0))},[j]),z=l.useMemo(()=>{if(typeof v=="string"&&v.includes("{n}")){const[F,Y]=v.split("{n}");return{prefix:F,suffix:Y}}return{prefix:x("common.totalCountPrefix","\uCD1D "),suffix:x("common.totalCountSuffix","\uAC1C")}},[v,x]),V=l.useMemo(()=>r.map(F=>({label:F.label,onClick:F.sortable!==!1?()=>R(F.key):void 0,className:F.className,sortDir:F.sortable!==!1&&j===F.key?B?"asc":"desc":null})),[r,j,B,R]),X=l.useMemo(()=>g.map(F=>({value:String(F),label:x("common.pageSizeLabel",{n:F})})),[g,x]);return o.jsxs(Ta,{className:`popup-list ${_}`,title:t,onClose:p,children:[y,o.jsx(vn,{count:{value:ae.length,prefix:z.prefix,suffix:z.suffix},search:H?{value:w,onChange:S,placeholder:C}:void 0,pageSize:{options:X,value:M,onChange:T},pagination:{page:$,total:N,onChange:E}}),o.jsx(_n,{size:"medium",gridTemplateColumns:n,resizable:!0,fields:V,items:L,onRowClick:h,renderRow:F=>{const Y=m!=null?F.id!=null&&m.has(F.id):u!=null&&F.id===u;return r.map(O=>({content:O.render?O.render(F):F[O.key]??"",className:Y?"popup-list__row--selected":O.className}))},empty:k})]})}function Xb(e){const{title:t,message:a,topContent:r,details:n,children:i,confirmLabel:s,cancelLabel:c,hideCancel:d=!1,extraAction:u,confirmVariant:m="main",confirmDisabled:h=!1,onConfirm:p,closeOnConfirm:g=!0,onClose:f,inline:b,size:v="small",className:y}=e,{t:_}=me.useTranslation(),x=l.useRef(!1),[C,k]=l.useState(!1);return o.jsxs(Ta,{title:t,onClose:f,closeDisabled:C,inline:b,size:v,className:_e("confirm-popup",y),buttons:[...u?[{label:u.label,variant:u.variant??"default",disabled:u.disabled||C,onClick:async({closeWithAnimation:w})=>{if(!x.current){x.current=!0,k(!0);try{await u.onClick(w),(u.closeOnClick??!0)&&w()}finally{x.current=!1,k(!1)}}}}]:[],...d?[]:[{label:c??_("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:C,onClick:({closeWithAnimation:w})=>w()}],{label:s??_("common.confirm","\uD655\uC778"),variant:m,disabled:h||C,onClick:async({closeWithAnimation:w})=>{if(!x.current){x.current=!0,k(!0);try{await p(w),g&&w()}finally{x.current=!1,k(!1)}}}}],children:[r!=null&&o.jsx("div",{className:"confirm-popup__top",children:r}),n&&n.length>0&&o.jsx(kr,{children:n.map((w,S)=>o.jsx(Na,{label:w.label,children:o.jsx("span",{className:"panel-row__text body-2",children:w.value})},S))}),o.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}var I7=".ihabdevteam-core-scope .coupon-input-popup__input{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:var(--radius-s);box-sizing:border-box;color:var(--color-darkGray);font-family:inherit;height:48px;letter-spacing:.06em;padding:0 14px;text-transform:uppercase;transition:border-color .15s;width:100%}.ihabdevteam-core-scope .coupon-input-popup__input:focus{border-color:var(--color-main);outline:none}.ihabdevteam-core-scope .coupon-input-popup__input::-moz-placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__input::placeholder{color:var(--color-lightGray);letter-spacing:normal;text-transform:none}.ihabdevteam-core-scope .coupon-input-popup__error{color:#e84040;color:var(--color-red,#e84040);margin:var(--spacing-xs) 0 0}";ee(I7);function Jb({onApply:e,onCancel:t}){const{t:a}=me.useTranslation(),[r,n]=l.useState(""),[i,s]=l.useState(!1),[c,d]=l.useState(null),u=l.useRef(null);l.useEffect(()=>{u.current?.focus()},[]);const m=l.useCallback(async g=>{const f=r.trim();if(f){s(!0),d(null);try{await e(f),g()}catch(b){d(Yr(b)),s(!1)}}},[r,e]),h=l.useCallback((g,f)=>{g.key==="Enter"&&m(f)},[m]),p=g=>{n(g.target.value),d(null)};return o.jsx(Ta,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:g})=>{m(g)}}],children:({closeWithAnimation:g})=>o.jsxs(o.Fragment,{children:[o.jsx("input",{ref:u,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:p,onKeyDown:f=>h(f,g),disabled:i,autoComplete:"off",spellCheck:!1}),c&&o.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}var z7=".ihabdevteam-core-scope .tooltip-content.tooltip-training{pointer-events:none}.ihabdevteam-core-scope .tooltip-training__box{background:var(--color-white);border-radius:var(--radius-m);box-shadow:0 4px 16px rgba(0,0,0,.12);padding:10px 14px}.ihabdevteam-core-scope .tooltip-training__groups{align-items:stretch;display:flex;flex-direction:row;gap:0}.ihabdevteam-core-scope .tooltip-training__section{display:flex;flex-direction:column;flex-shrink:0;gap:6px;width:100px}.ihabdevteam-core-scope .tooltip-training__section-header{align-items:center;display:flex}.ihabdevteam-core-scope .tooltip-training__type-label{color:var(--color-darkGray);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .tooltip-training__divider{align-self:center;background:var(--color-whiteLine);flex-shrink:0;height:20px;margin:0 10px;width:1px}.ihabdevteam-core-scope .tooltip-training__items{display:flex;flex-direction:column;gap:2px;pointer-events:none}.ihabdevteam-core-scope .tooltip-training__items .training-block-button--compact{cursor:default}";ee(z7);const Qb=200;function O7(e){return e.itemId?(gs()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function eg({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:n}=me.useTranslation(),i=l.useMemo(()=>Qr.map(c=>({type:c,items:(e.items??[]).filter(d=>d.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items]);if(i.length===0)return null;const s=o.jsx("div",{className:"tooltip-training__box",children:o.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:c,items:d},u)=>[u>0?o.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,o.jsxs("div",{className:"tooltip-training__section",children:[o.jsx("div",{className:"tooltip-training__section-header",children:o.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),o.jsx("div",{className:"tooltip-training__items",children:d.map((m,h)=>{const p=O7(m);return p?o.jsx(wn,{index:h,type:c,trainingData:p,size:"compact",hideCheckBadge:!0},m.itemId??h):null})})]},c.key)])})});return t?o.jsx(Sa,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:n("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:s}):s}var F7=".ihabdevteam-core-scope .party-container{inset:0;overflow:visible;pointer-events:none;position:fixed}.ihabdevteam-core-scope .confetti{display:none;left:0;opacity:0;position:fixed;top:0;transform:translateZ(0);will-change:transform,opacity}.ihabdevteam-core-scope .confetti--left{transform-origin:left bottom}.ihabdevteam-core-scope .confetti--right{transform-origin:right bottom}.ihabdevteam-core-scope .confetti.show{display:block;opacity:1;transition:opacity .2s linear}";ee(F7);const tg=["var(--color-main)","var(--color-sub)"];function $c({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:n,trigger:i=0}){const s=l.useMemo(()=>{const b=Math.floor(t/2),v=t-b,y=(_,x)=>Array.from({length:_}).map((C,k)=>{const w=6+Math.random()*12,S=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),j=tg[Math.floor(Math.random()*tg.length)],A=Math.random()*300,B=(360+Math.random()*260)*r*1.2,W=(x==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,M=Math.cos(W)*B,T=Math.sin(W)*B*1.35,$=Math.random()*720-360,E=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),H=Math.random()>.7?"50%":"3px";return{id:`${x}-${k}`,side:x,size:S,color:j,delay:A,vx:M,vy:T,angularVel:$,life:E,borderRadius:H}});return[...y(b,"left"),...y(v,"right")]},[t,r]),c=l.useRef(null),d=l.useRef({}),u=l.useRef(null),m=l.useRef(n);l.useEffect(()=>{m.current=n},[n]);const h=l.useRef(null),p=l.useRef(null),g=()=>{if(typeof document>"u")return null;let b=document.querySelector("[data-ihab-effect-root]");return b||(b=document.createElement("div"),b.className="app-effect",b.dataset.ihabEffectRoot="",b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="99998",document.body.appendChild(b)),b};if(typeof document<"u"&&p.current==null&&(p.current=g()),l.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){m.current?.();return}const b=1200,v=performance.now(),y=p.current&&p.current!==document.body?p.current.getBoundingClientRect():null,_=Math.max(60,(window.innerHeight||800)*.05),x=N=>Math.max(40,(N||window.innerWidth)*.02),C=y?.width||window.innerWidth||375,k=y?.height||window.innerHeight||812,w=N=>{const L=[...N].sort((R,z)=>R-z);return L[Math.floor(L.length/2)]||1},S=w(s.map(N=>Math.abs(N.vy))),j=w(s.map(N=>Math.abs(N.vx))),A=Math.sqrt(2*b*(k*.72+_))/S,B=S*A/b,W=C*.5/(j*B),M=(N,L,R)=>Math.min(R,Math.max(L,N)),T=M(A,.8,2.4),$=M(W,.7,2.2),E=s.map(N=>({...N,vx:N.vx*$,vy:N.vy*T,startTime:v+N.delay,ended:!1})),H=y?{x:y.left-x(y.width),y:y.top+y.height+_}:{x:-x(window.innerWidth),y:window.innerHeight+_},te=y?{x:y.left+y.width+x(y.width),y:y.top+y.height+_}:{x:window.innerWidth+x(window.innerWidth),y:window.innerHeight+_},Q=N=>{let L=!1;for(const R of E){const z=d.current[R.id];if(!z||!z)continue;if(N<R.startTime){z.style.display="none";continue}if(!R._inited){const pe=R.side==="left"?H.x:te.x,P=R.side==="left"?H.y:te.y;z.style.left=`${pe}px`,z.style.top=`${P}px`,z.style.transform="translate3d(0px, 0px, 0)",z.style.display="block",z.style.zIndex="100000";try{if(typeof window<"u"&&typeof R.color=="string"&&R.color.startsWith("var(")){const q=R.color.slice(4,-1).trim(),oe=getComputedStyle(document.documentElement).getPropertyValue(q).trim();oe?z.style.background=oe:z.style.background="#FF0060"}}catch{}R._inited=!0}const V=(N-R.startTime)/1e3;if(V<0)continue;const X=R.life/1e3;if(V>=X){z.style.opacity="0",z.style.display="none",R.ended=!0;continue}L=!0;const F=R.side==="left"?H.x:te.x,Y=R.side==="left"?H.y:te.y,O=F+R.vx*V,ne=Y+R.vy*V+.5*b*V*V,ue=(R.angularVel||0)*V,xe=O-F,ve=ne-Y;z.style.transform=`translate3d(${xe}px, ${ve}px, 0) rotate(${ue}deg)`,z.style.opacity=`${Math.max(0,1-V/X)}`}L?u.current=requestAnimationFrame(Q):m.current?.()};u.current=requestAnimationFrame(Q);const ae=setTimeout(()=>{try{if((p.current?p.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const N=document.createElement("div");N.className="party-container",N.style.position="fixed",N.style.inset="0",N.style.pointerEvents="none",N.style.overflow="visible",N.style.zIndex="2147483647";for(const L of s){const R=document.createElement("span");R.className=`confetti confetti--${L.side}`,R.setAttribute("aria-hidden","true"),R.style.display="none",R.style.position="fixed",R.style.left="0px",R.style.top="0px",R.style.width=`${L.size}px`,R.style.height=`${Math.max(4,L.size*.6)}px`;let z=L.color;try{if(typeof z=="string"&&z.startsWith("var(")){const V=z.slice(4,-1).trim(),X=getComputedStyle(document.documentElement).getPropertyValue(V).trim();X&&(z=X)}}catch{}R.style.background=z,R.style.borderRadius=L.borderRadius,R.style.transform="translate3d(0,0,0)",R.style.opacity="0",N.appendChild(R),d.current[L.id]=R}(document.body||p.current).appendChild(N),h.current=N}}catch{}},300);return()=>{if(u.current&&cancelAnimationFrame(u.current),clearTimeout(ae),h.current){try{h.current.remove()}catch{}h.current=null}}},[e,a,i,s]),!e)return null;const f=o.jsx("div",{className:"party-container",ref:c,children:s.map(b=>o.jsx("span",{"aria-hidden":!0,ref:v=>{d.current[b.id]=v},className:`confetti confetti--${b.side}`,style:{width:`${b.size}px`,height:`${Math.max(4,b.size*.6)}px`,background:b.color,borderRadius:b.borderRadius}},`${b.id}-${i}`))});return typeof document<"u"?qt.createPortal(f,p.current||document.body):f}function ag({trigger:e=0,active:t=!1}){const a=l.useRef(0);return l.useEffect(()=>{a.current=e},[e]),o.jsx($c,{active:t,trigger:e})}var W7=".ihabdevteam-core-scope .page-title{align-items:center;display:flex;gap:12px;justify-content:space-between;padding-bottom:var(--spacing-page)}.ihabdevteam-core-scope .page-title__main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0;text-align:left}.ihabdevteam-core-scope .page-title__title-row{align-items:center;display:flex;gap:12px}.ihabdevteam-core-scope .page-title__title{margin:0}.ihabdevteam-core-scope .page-title__title-action{align-items:center;display:flex;flex-shrink:0}.ihabdevteam-core-scope .page-title__badge{align-items:center;display:flex}.ihabdevteam-core-scope .page-title__sub{color:var(--color-gray);margin:6px 0 0}.ihabdevteam-core-scope .page-title__action{flex-shrink:0;margin-left:var(--spacing-s)}@media (max-width:767px){.ihabdevteam-core-scope .page-title{align-items:flex-start;flex-direction:column;gap:10px}.ihabdevteam-core-scope .page-title__action{align-self:flex-start;margin-left:0}}.ihabdevteam-core-scope .page-title__back{flex-shrink:0;margin-left:-8px;margin-right:-4px}";ee(W7);function og({title:e,sub:t,rightAction:a,titleAction:r,badge:n,badgeVariant:i="default",documentTitle:s,onBack:c,backLabel:d}){const{t:u}=me.useTranslation();rl(typeof e=="string"?e:s??null);const m=d??u("common.back","\uB4A4\uB85C");return o.jsxs("div",{className:"page-title",children:[o.jsxs("div",{className:"page-title__main",children:[o.jsxs("div",{className:"page-title__title-row",children:[c&&o.jsx(re,{className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),o.jsx("h1",{className:"page-title__title h1",children:e}),n&&o.jsx("div",{className:"page-title__badge",children:o.jsx(ht,{label:n,size:"small",variant:i,fill:"outline"})}),r?o.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&o.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?o.jsx("div",{className:"page-title__action",children:a}):null]})}function rg(e){return e??""}const ng=l.createContext({words:[],loading:!1});function ig(){return l.useContext(ng)}function sg({words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d,children:u}){return o.jsx(ng.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:n,remoteVersion:i,progress:s,clearAndRefetch:c,checkRemoteVersion:d},children:u})}var H7=".ihabdevteam-core-scope .summary-strip{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:var(--spacing-m) var(--spacing-l);width:100%}.ihabdevteam-core-scope .summary-strip--flat{box-shadow:none}.ihabdevteam-core-scope .summary-strip__row{align-items:center;display:flex;gap:var(--spacing-l)}.ihabdevteam-core-scope .summary-strip__items{grid-gap:var(--spacing-s) var(--spacing-l);display:grid;flex:1;gap:var(--spacing-s) var(--spacing-l);grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}@media (min-width:640px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1024px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:1280px){.ihabdevteam-core-scope .summary-strip__items{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--summary-strip-cols,4),minmax(0,1fr))}}.ihabdevteam-core-scope .summary-strip__item{min-width:0}.ihabdevteam-core-scope .summary-strip__label{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .summary-strip__value{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .summary-strip__actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing-xs)}";ee(H7);function lg({items:e,actions:t,columns:a,flat:r=!1,className:n,style:i}){const s=a??e.length;return o.jsx("section",{className:_e("summary-strip",r&&"summary-strip--flat",n),style:{"--summary-strip-cols":String(s),...i},children:o.jsxs("div",{className:"summary-strip__row",children:[o.jsx("div",{className:"summary-strip__items",children:e.map((c,d)=>o.jsxs("div",{className:"summary-strip__item",children:[o.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),o.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},d))}),t&&o.jsx("div",{className:"summary-strip__actions",children:t})]})})}var V7='.ihabdevteam-core-scope .report-doc{--report-page-w:210mm;--report-page-h:297mm;--report-margin:14mm;display:flex;justify-content:safe center;max-width:100%;min-width:0;overflow-x:auto;padding-block:var(--spacing-s);position:relative;width:100%}.ihabdevteam-core-scope .report-doc__pages{align-items:center;display:flex;flex-direction:column;gap:var(--spacing-l)}.ihabdevteam-core-scope .report-doc__page{background:#fff;box-shadow:var(--shadow-card);color:#000;display:flex;flex-direction:column;flex-shrink:0;min-height:var(--report-page-h);padding:var(--report-margin);width:var(--report-page-w)}.ihabdevteam-core-scope .report-doc__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__title{margin:0}.ihabdevteam-core-scope .report-doc__footer{align-items:center;color:var(--color-gray);display:flex;justify-content:space-between;margin-top:auto;padding-top:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__footer-left{align-items:center;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-doc__page-no{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ihabdevteam-core-scope .report-doc__logo{height:28px;width:auto}.ihabdevteam-core-scope .report-doc__measure{display:flex;flex-direction:column;opacity:0;pointer-events:none;position:absolute;width:calc(var(--report-page-w) - var(--report-margin)*2);z-index:-10}.ihabdevteam-core-scope .report-doc__measure-blocks{display:flex;flex-direction:column}.ihabdevteam-core-scope .report-doc__ruler{height:calc(var(--report-page-h) - var(--report-margin)*2)}@media print{.ihabdevteam-core-scope .report-doc{display:block;overflow:visible;padding-block:0}.ihabdevteam-core-scope .report-doc__pages{display:block}.ihabdevteam-core-scope .report-doc__page{-moz-column-break-after:page;box-shadow:none;break-after:page;page-break-after:always}.ihabdevteam-core-scope .report-doc__page:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}';ee(V7);const G7=(e,t)=>`${e} / ${t}`;function cg({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:n=G7,pageWidth:i,pageHeight:s,margin:c,className:d,style:u}){const{t:m}=me.useTranslation(),h=l.useRef(null),p=l.useRef(null),g=l.useRef(null),f=l.useRef(null),[b,v]=l.useState(null),[y,_]=l.useState(!1);l.useEffect(()=>{const B=h.current;if(!B)return;const W=()=>_(B.scrollWidth>B.clientWidth+1);if(W(),typeof ResizeObserver>"u")return;const M=new ResizeObserver(W);return M.observe(B),()=>M.disconnect()},[b]);const x=e.map(B=>`${B.id}\0${B.section??""}\0${B.group??""}`).join("");l.useLayoutEffect(()=>{const B=p.current,W=f.current;if(!B||!W)return;const M=g.current?.offsetHeight??0,T=W.offsetHeight-M,$=Array.from(B.children).map(N=>N.offsetHeight),E=[];e.forEach((N,L)=>{const R=E[E.length-1],z=R?e[R[0]]:void 0;z&&N.group!=null&&z.group===N.group?R.push(L):E.push([L])});const H=[];let te=[],Q=0;const ae=()=>{te.length&&H.push(te),te=[],Q=0};E.forEach(N=>{const L=N.reduce((R,z)=>R+$[z],0);te.length&&e[te[0]].section!==e[N[0]].section&&ae(),te.length&&Q+L>T&&ae(),L>T?N.forEach(R=>{te.length&&Q+$[R]>T&&ae(),te.push(R),Q+=$[R]}):(N.forEach(R=>te.push(R)),Q+=L)}),ae(),v(H)},[x]);const C=$l,k=C,w=r??o.jsxs(o.Fragment,{children:[o.jsx("img",{src:k,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),S=(B,W,M)=>({header:o.jsxs("div",{className:"report-doc__header",children:[o.jsx("h2",{className:"report-doc__title h3b",children:M!=null&&t?.[M]||null}),a]}),footer:o.jsxs("div",{className:"report-doc__footer caption-1",children:[o.jsx("span",{className:"report-doc__footer-left",children:w}),o.jsx("span",{className:"report-doc__page-no",children:n(B,W)})]})}),j=S(1,1,e[0]?.section),A={...i?{"--report-page-w":i}:null,...s?{"--report-page-h":s}:null,...c?{"--report-margin":c}:null,...u};return o.jsxs("div",{ref:h,className:_e("report-doc",d),style:A,tabIndex:y?0:void 0,role:y?"group":void 0,"aria-label":y?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[o.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[o.jsx("div",{ref:f,className:"report-doc__ruler"}),o.jsxs("div",{ref:g,children:[j.header,j.footer]}),o.jsx("div",{ref:p,className:"report-doc__measure-blocks",children:e.map(B=>o.jsx("div",{children:B.content},B.id))})]}),b&&o.jsx("div",{className:"report-doc__pages",children:b.map((B,W)=>{const{header:M,footer:T}=S(W+1,b.length,e[B[0]].section);return o.jsxs("section",{className:"report-doc__page",children:[M,B.map($=>o.jsx("div",{children:e[$].content},e[$].id)),T]},W)})})]})}var q7=".ihabdevteam-core-scope .report-info{border:1px solid var(--color-border);border-radius:var(--radius-card);margin-bottom:var(--spacing-l);padding:var(--spacing-s) var(--spacing-m)}.ihabdevteam-core-scope .report-info__title{color:var(--color-darkGray);margin:0 0 var(--spacing-s)}.ihabdevteam-core-scope .report-info__grid{grid-gap:var(--spacing-xs) var(--spacing-l);display:grid;gap:var(--spacing-xs) var(--spacing-l);grid-template-columns:repeat(4,minmax(0,1fr));grid-template-columns:repeat(var(--report-info-cols,4),minmax(0,1fr))}@media (max-width:640px){.ihabdevteam-core-scope .report-info__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.ihabdevteam-core-scope .report-info__field{align-items:baseline;display:flex;gap:var(--spacing-s)}.ihabdevteam-core-scope .report-info__label{color:var(--color-gray);flex-shrink:0;width:3.5rem}.ihabdevteam-core-scope .report-info__value{color:var(--color-darkGray);white-space:nowrap}";ee(q7);function dg({title:e,fields:t,columns:a=4,className:r,style:n}){return o.jsxs("div",{className:_e("report-info",r),style:{"--report-info-cols":String(a),...n},children:[e&&o.jsx("p",{className:"report-info__title h5b",children:e}),o.jsx("div",{className:"report-info__grid",children:t.map((i,s)=>o.jsxs("div",{className:"report-info__field body-2",children:[o.jsx("span",{className:"report-info__label body-3",children:i.label}),o.jsx("span",{className:"report-info__value",children:i.value})]},s))})]})}var Y7=".ihabdevteam-core-scope .update-alert{animation:update-alert-slide-in .32s cubic-bezier(.34,1.56,.64,1) both;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);background:hsla(0,0%,97%,.92);border:1px solid var(--color-main);border-radius:var(--radius-m);box-shadow:0 4px 24px rgba(0,0,0,.14),0 1px 4px rgba(0,0,0,.08),inset 0 0 0 .5px rgba(0,0,0,.1);padding:var(--spacing-l);width:380px}.ihabdevteam-core-scope .update-alert,.ihabdevteam-core-scope .update-alert-stack{display:flex;flex-direction:column;gap:12px;max-width:calc(100vw - 32px);position:fixed;right:16px;top:16px;z-index:var(--z-alert)}.ihabdevteam-core-scope .update-alert-stack{align-items:flex-end}.ihabdevteam-core-scope .update-alert-stack .update-alert{position:relative;z-index:auto}.ihabdevteam-core-scope .update-alert:has(.update-alert__close) .update-alert__title{padding-right:24px}.ihabdevteam-core-scope .update-alert__close{align-items:center;background:none;border:none;border-radius:6px;border-radius:var(--radius-s,6px);color:#888;cursor:pointer;display:flex;font-size:20px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;width:24px}.ihabdevteam-core-scope .update-alert__close:hover{background:rgba(0,0,0,.06);color:#333}.ihabdevteam-core-scope .update-alert__top{align-items:center;display:flex;gap:10px}@keyframes update-alert-slide-in{0%{opacity:0;transform:translateX(calc(100% + 24px))}to{opacity:1;transform:translateX(0)}}.ihabdevteam-core-scope .update-alert__icon{align-items:center;color:var(--color-main);display:flex;flex-shrink:0;font-size:20px;height:40px;justify-content:center;width:40px}.ihabdevteam-core-scope .update-alert__body{flex:1;min-width:0}.ihabdevteam-core-scope .update-alert__title{color:#1a1a1a;text-align:left}.ihabdevteam-core-scope .update-alert__message{color:#555;margin-top:2px;text-align:left}.ihabdevteam-core-scope .update-alert__action{width:100%}";ee(Y7);function ug({title:e,message:t,actionLabel:a,onAction:r,icon:n,onClose:i,className:s=""}){const{t:c}=me.useTranslation(),d=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return o.jsxs("div",{className:_e("update-alert",s),role:"alert",children:[i&&o.jsx("button",{type:"button",className:"update-alert__close",onClick:i,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),o.jsxs("div",{className:"update-alert__top",children:[o.jsx("div",{className:"update-alert__icon",children:n??o.jsx(rd,{size:20,strokeWidth:2})}),o.jsxs("div",{className:"update-alert__body",children:[o.jsx("div",{className:"update-alert__title h4",children:e}),o.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&o.jsx(re,{size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}var U7=".ihabdevteam-core-scope .training-card{background:var(--color-white);border:1px solid transparent;border-radius:var(--radius-card);display:flex;flex-direction:column;gap:10px;max-width:100%;padding:18px;position:relative;transition:border-color .15s,box-shadow .15s;width:360px}.ihabdevteam-core-scope .training-card:hover{border-color:var(--color-main);box-shadow:0 4px 16px var(--color-main-a10)}.ihabdevteam-core-scope .training-card--dragging{opacity:.5}.ihabdevteam-core-scope .training-card--clickable{cursor:pointer}.ihabdevteam-core-scope .training-card__header{grid-column-gap:8px;grid-row-gap:4px;align-items:start;-moz-column-gap:8px;column-gap:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;row-gap:4px}.ihabdevteam-core-scope .training-card__title-row{display:contents}.ihabdevteam-core-scope .training-card__title-row>:first-child{grid-area:1/1;min-width:0}.ihabdevteam-core-scope .training-card__header>:last-child{grid-area:2/1}.ihabdevteam-core-scope .training-card__title{color:var(--color-darkGray);margin:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__top-actions{align-items:center;align-self:start;display:flex;flex-shrink:0;gap:2px;grid-column:2;grid-row:1/3;margin-right:-8px}.ihabdevteam-core-scope .training-card__publisher{background:none;border:none;color:var(--color-gray);cursor:pointer;font-size:11px;font-weight:400;max-width:120px;overflow:hidden;padding:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:-moz-fit-content;width:fit-content}.ihabdevteam-core-scope .training-card__publisher:hover{color:var(--color-main);text-decoration:underline}.ihabdevteam-core-scope .training-card__description{color:var(--color-gray);margin:0;min-height:1.55em;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card__body{display:flex;flex:1;flex-direction:column;gap:8px;justify-content:flex-end}.ihabdevteam-core-scope .training-card__empty{color:var(--color-lightGray)}.ihabdevteam-core-scope .training-card__types{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.ihabdevteam-core-scope .training-card__types .button{min-width:0;padding-inline:12px}.ihabdevteam-core-scope .training-card__words{align-content:flex-start;display:flex;flex-wrap:wrap;gap:4px}.ihabdevteam-core-scope .training-card__footer{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between;margin-top:auto;padding-top:8px}.ihabdevteam-core-scope .training-card__footer-left{align-items:center;display:flex;gap:6px;min-width:0}.ihabdevteam-core-scope .training-card__date{color:var(--color-gray);font-size:11px;white-space:nowrap}.ihabdevteam-core-scope .training-card__meta{align-items:center;display:flex;gap:4px}";ee(U7);function pg({title:e,description:t,topActions:a,children:r,footerLeft:n,footerRight:i,onClick:s,draggable:c,onDragStart:d,onDragEnd:u,className:m}){const h=n!=null||i!=null,p=r!=null&&r!==!1,g=l.useCallback(f=>{s&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),s())},[s]);return o.jsxs("div",{className:_e("training-card",s?"training-card--clickable":"",m),onClick:s,onKeyDown:s?g:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,draggable:c,onDragStart:d,onDragEnd:u,children:[o.jsxs("div",{className:"training-card__header",children:[o.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?o.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&o.jsx("div",{className:"training-card__top-actions",onClick:f=>f.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?o.jsx("p",{className:"training-card__description body-3",children:t}):t:o.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),p&&o.jsx("div",{className:"training-card__body",children:r}),h&&o.jsxs("div",{className:"training-card__footer",children:[n!=null&&o.jsx("div",{className:"training-card__footer-left",children:n}),i!=null&&o.jsx("div",{className:"training-card__meta",children:i})]})]})}var K7=".ihabdevteam-core-scope .training-card-group{background:var(--color-darkWhite);border:1px solid var(--color-darkWhite);border-radius:var(--radius-card);overflow:hidden;transition:border-color .15s,box-shadow .15s}.ihabdevteam-core-scope .training-card-group--dragover{border-color:var(--color-main);box-shadow:0 0 0 2px var(--color-main-a10)}.ihabdevteam-core-scope .training-card-group__header{align-items:center;display:flex;gap:8px;height:60px;padding:0 12px}.ihabdevteam-core-scope .training-card-group--collapsible .training-card-group__header{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ihabdevteam-core-scope .training-card-group__chevron{flex-shrink:0}.ihabdevteam-core-scope .training-card-group__title{color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ihabdevteam-core-scope .training-card-group__count{color:var(--color-main);flex-shrink:0}.ihabdevteam-core-scope .training-card-group__actions{align-items:center;display:flex;flex-shrink:0;gap:8px;margin-left:auto}.ihabdevteam-core-scope .training-card-group__empty{color:var(--color-lightGray);padding:24px 16px;text-align:center}.ihabdevteam-core-scope .training-card-group__grid{align-items:stretch;display:flex;flex-wrap:wrap;gap:12px;padding:0 12px 12px}.ihabdevteam-core-scope .training-card-group__grid>*{min-width:0}";ee(K7);function hg({title:e,count:t,collapsed:a=!1,onToggle:r,sort:n,actions:i,empty:s=!1,emptyContent:c,dragOver:d=!1,onDragOver:u,onDragLeave:m,onDrop:h,children:p,className:g}){const{t:f}=me.useTranslation(),b=r!=null,v=_e("training-card-group",d&&"training-card-group--dragover",a&&"training-card-group--collapsed",b&&"training-card-group--collapsible",g);return o.jsxs("div",{className:v,onDragOver:u,onDragLeave:m,onDrop:h,children:[o.jsxs("header",{className:"training-card-group__header",children:[b&&o.jsx(re,{size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron",onClick:r}),typeof e=="string"?o.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&o.jsx("span",{className:"training-card-group__count body-3b",children:t}),(n||i!=null)&&o.jsxs("span",{className:"training-card-group__actions",onClick:y=>y.stopPropagation(),children:[n&&o.jsx(Ut,{size:40,options:n.options,value:n.value,placeholder:n.placeholder,onChange:n.onChange}),i]})]}),!a&&(s?o.jsx("div",{className:"training-card-group__empty body-3",children:c}):o.jsx("div",{className:"training-card-group__grid",children:p}))]})}var Z7=".ihabdevteam-core-scope .word-table-block__meta{background:transparent}.ihabdevteam-core-scope .word-table-block__actions{align-items:center;display:flex;gap:var(--spacing-xs);justify-content:space-between}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:flex;gap:var(--spacing-xs)}@media (max-width:767px){.ihabdevteam-core-scope .word-table-block__actions{align-items:stretch;flex-direction:column}.ihabdevteam-core-scope .word-table-block__actions-left,.ihabdevteam-core-scope .word-table-block__actions-right{display:grid;grid-template-columns:repeat(2,1fr)}.ihabdevteam-core-scope .word-table-block__actions .button{min-width:0;width:100%}}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-panel{max-width:none;width:min(1400px,94vw)}.ihabdevteam-core-scope .my-word-table-preview-popup .popup-body{overflow:auto;overscroll-behavior-y:contain}.ihabdevteam-core-scope .word-table-block__pages{display:flex;flex-direction:column;gap:24px;gap:var(--spacing-content,24px)}@media print{.ihabdevteam-core-scope .word-table-block>.filter-panel,.ihabdevteam-core-scope .word-table-block>.section__header,.ihabdevteam-core-scope .word-table-block__actions{display:none}.ihabdevteam-core-scope .word-table-block__pages .word-table{-moz-column-break-after:page;break-after:page;page-break-after:always;position:static}.ihabdevteam-core-scope .word-table-block__pages .word-table:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}}";ee(Z7);const X7="speechear:saved_word_tables";function J7(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function Q7(){try{const e=localStorage.getItem(X7);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(J7):[]}catch{return[]}}function mg({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:n,onLoad:i,onRemoveItem:s,onReset:c,resetLabel:d,saveButtonLabel:u,secondarySaveButtonLabel:m,onReorder:h,showCellCount:p,onAddItem:g,className:f,renderSavePopup:b,renderWordSearch:v,hideControls:y,saveOnly:_,tableName:x,nameValue:C,onNameChange:k,descriptionValue:w,onDescriptionChange:S,namePlaceholder:j,descriptionPlaceholder:A,existingNames:B,editingName:W,onCancel:M}){const{t:T}=me.useTranslation(),$=d??T("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),E=r===void 0,H=!!k,[te,Q]=l.useState([]),ae=(C??"").trim(),N=ae||(j??"").trim(),L=(w??"").trim()||(A??"").trim(),R=(B??[]).map(ce=>ce.trim().toLowerCase()),z=[W?.trim().toLowerCase(),...te].filter(ce=>!!ce),V=[...R];for(const ce of z){const Be=V.indexOf(ce);Be!==-1&&V.splice(Be,1)}const X=ae!==""&&V.includes(ae.toLowerCase()),[F,Y]=l.useState(Array(4).fill(null)),[O,ne]=l.useState(4),[ue,xe]=l.useState(null),[ve,pe]=l.useState("landscape"),[P,q]=l.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[oe,ge]=l.useState("\uD45C\uC2DC"),[de,I]=l.useState(!0),[Z,J]=l.useState(!0),fe=l.useRef(null),De=l.useRef([]),[$e,Le]=l.useState(8),[Ee,je]=l.useState("right"),[Te,Ie]=l.useState(!1),[He,be]=l.useState(!1),{toastMessage:Ke,toastType:Ve,showWarning:Re,clearToast:qe}=bn("warning"),vt=l.useCallback(()=>xe(null),[xe]),[Ue,Xe]=l.useState(()=>Math.max(r?.length??1,1));l.useEffect(()=>{E||Xe(ce=>Math.max(ce,r?.length??1))},[r?.length,E]);const ut=E?O:p?Math.max(Ue,r?.length??1):Math.max(r?.length??0,1),{width:ze,height:rt}=io[ve],et=!E&&!p,We=r?.length??0,Je=Math.min($e,Math.max(We,1)),tt=et?Je:ut,xt=et?jm(r??[],tt):null,Et=!!xt&&xt.length>1,it=E?F.some(ce=>ce!==null&&ce.length>1):(r??[]).some(ce=>ce.words.length>1),Ht=x?.trim()||`${Zr(Ur())} ${it?T("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):T("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,mt=l.useCallback(()=>Et?De.current.filter(ce=>ce!==null):fe.current?[fe.current]:[],[Et]),{print:Vt,openNewWindow:ia,downloadHtml:Gt}=Nn({getElements:mt,paperW:ze,paperH:rt,fileName:Ht,onPopupBlocked:()=>{Re(T("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),Ea=ce=>{ne(ce),Y(Be=>{const at=Array(ce).fill(null);return Be.slice(0,ce).forEach((Ct,_t)=>{at[_t]=Ct}),at}),xe(null)},sa=ce=>{Y(Be=>{const at=[...Be];return at[ce]=null,at}),ue===ce&&xe(null)},Kt=ce=>{if(ue===null)return;const Be=ue;Y(Ct=>{const _t=[...Ct];return _t[Be]=ce,_t});const at=F.findIndex((Ct,_t)=>_t>Be&&Ct===null);xe(at!==-1?at:null)},ja=E?F.some(ce=>ce?.some(Be=>!!Be.colloquialPronunciation)):(r??[]).some(ce=>ce.words.some(Be=>!!Be.colloquialLabel)),jt=l.useMemo(()=>Ma()?E?F.flatMap(ce=>(ce??[]).map(Be=>[Be.word,Be.homonum])):(r??[]).flatMap(ce=>ce.words.map(Be=>[Be.label,Be.homonum])):[],[E,F,r]),[Ga,$t]=l.useState(!1);l.useEffect(()=>{if(jt.length===0)return;let ce=!1;return Promise.all(jt.map(([Be,at])=>Yo(Be,at))).then(Be=>{ce||$t(Be.some(Boolean))}),()=>{ce=!0}},[jt]);const ya=jt.length>0&&Ga,qa=l.useMemo(()=>[...E||p?[{label:T("wordTable.filter.columns","\uCE78 \uC218"),items:Ak.map(ce=>({value:`${ce}\uCE78`,displayLabel:T("wordTable.filter.column",{count:ce})})),display:"segmented"}]:[],...et&&(r?.length??0)>0?[Om(T,{hasPairs:it,itemCount:We})]:[],...Et?[Fm(T)]:[]],[T,E,p,et,r?.length,it,We,Et]),Qe={...E||p?{[T("wordTable.filter.columns","\uCE78 \uC218")]:`${E?O:Ue}\uCE78`}:{},...et&&(r?.length??0)>0?{[T(it?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Je}\uAC1C`}:{},...Et?{[T("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Wm[Ee]}:{}},It=(ce,Be)=>{Be===T("wordTable.filter.columns","\uCE78 \uC218")?E?Ea(parseInt(ce)):Xe(parseInt(ce)):Be===T(it?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Le(parseInt(ce)):Be===T("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&je(Hm(ce))},kt=E?F.filter(ce=>ce!==null).map(ce=>({id:ce[0].word,words:ce.map(Be=>({label:Be.word,subLabel:Be.pronunciation,homonum:Be.homonum}))})):r??[],xa=(ce=!1)=>{if(be(ce),H&&n){const Be=N.trim().toLowerCase();Be&&Q(at=>at.includes(Be)?at:[...at,Be]),n(N,kt,L||void 0,ce);return}if(_&&n){n("",kt,void 0,ce);return}if(n){Ie(!0);return}Gt()},[la,ie]=l.useState(!1),[ye,Ce]=l.useState(""),U=ye.trim(),le=U!==""&&R.includes(U.toLowerCase()),we=()=>{Ce(N?`${N} (\uBCF5\uC0AC)`:""),ie(!0)},Se=()=>{!U||le||!n||(n(U,kt,L||void 0,!0),ie(!1))},Ae=kt.length===0,Oe=Ae||H&&(N===""||X),nt=()=>{if(Ae){Re(T("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(H&&N===""){Re(T("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}H&&X&&Re(T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},ct=o.jsx(so,{items:kt,orientation:ve,contentTypes:P,cutLine:oe,showOutline:de,showDivLine:Z,count:ut});return o.jsxs(o.Fragment,{children:[o.jsxs(no,{type:"page",icon:t,title:e,disc:a,className:_e("word-table-block",f),children:[la&&o.jsx(Ta,{size:"small",title:m??T("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>ie(!1),footer:({closeWithAnimation:ce})=>o.jsxs(o.Fragment,{children:[o.jsx(re,{size:48,type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:ce}),o.jsx(re,{size:48,type:"bar",variant:"main",label:T("common.save","\uC800\uC7A5"),disabled:!U||le,onClick:Se})]}),children:o.jsx(Wa,{label:T("wordTable.save.nameLabel","\uC774\uB984"),value:ye,onChange:Ce,placeholder:T("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:Se,error:le?T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Te&&n&&b?.({defaultName:typeof e=="string"?e:T("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:ct,previewW:ze,previewH:rt,items:kt,existingNames:Q7().map(ce=>ce.name),saveAsNew:He,onSave:(ce,Be)=>{n(ce,kt,Be,He),Ie(!1)},onCancel:()=>Ie(!1)}),(E||g)&&ue!==null&&v?.({cellIndex:ue,onConfirm:E?Kt:ce=>{if(g){const Be=ce[0];Be&&g({id:Be.word,words:[{label:Be.word,subLabel:Be.pronunciation,homonum:Be.homonum}]})}xe(null)},onClose:vt}),!y&&o.jsx(Bn,{hasImage:ya,hasColloquial:ja,contentTypes:P,orientation:ve,showOutline:de,cutLine:oe,showDivLine:Z,setters:{setContentTypes:q,setOrientation:pe,setShowOutline:I,setCutLine:ge,setShowDivLine:J},showCutLine:(et?tt:ut)>1,showDivLine2:it,middleSections:qa,extraSelected:Qe,onExtraSelect:It}),Et&&xt?o.jsx("div",{className:"word-table-block__pages",children:xt.map((ce,Be)=>o.jsx(so,{orientation:ve,contentTypes:P,cutLine:oe,showOutline:de,showDivLine:Z,count:tt,items:ce,onRemoveItem:s,contentRef:at=>{De.current[Be]=at},pageNumber:{current:Be+1,total:xt.length},pageNumberPosition:Ee},Be))}):o.jsx(so,{orientation:ve,contentTypes:P,cutLine:oe,showOutline:de,showDivLine:Z,count:ut,items:E?void 0:r??[],editCells:E?F:void 0,activeCell:ue,onActivateCell:E||g?xe:void 0,onRemoveCell:E?sa:void 0,onRemoveItem:E?void 0:s,onReorder:E?void 0:h,showFillerAdd:!!g,contentRef:fe}),H&&!y&&o.jsxs(kr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[o.jsx(Na,{variant:"custom",label:T("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{required:!0,value:C??"",onChange:k,placeholder:j?j+T("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):T("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:T("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:X?T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ce=>{(ce.key==="Tab"&&!ce.shiftKey||ce.key===" ")&&!(C??"").trim()&&(j??"").trim()&&(ce.preventDefault(),k?.(j??""))}})}),o.jsx(Na,{variant:"custom",label:T("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:o.jsx(Wa,{value:w??"",onChange:S,placeholder:A?A+T("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):T("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:T("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ce=>{(ce.key==="Tab"&&!ce.shiftKey||ce.key===" ")&&!(w??"").trim()&&(A??"").trim()&&(ce.preventDefault(),S?.(A??""))}})})]})]}),!y&&o.jsxs("div",{className:"word-table-block__actions",children:[o.jsxs("div",{className:"word-table-block__actions-left",children:[!_&&c&&o.jsx(re,{size:40,type:"bar",label:$,onClick:c}),!_&&i&&o.jsx(re,{size:40,type:"bar",label:T("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!_&&o.jsx(re,{size:40,type:"bar",label:T("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:ia})]}),o.jsxs("div",{className:"word-table-block__actions-right",children:[M&&o.jsx(re,{size:"56",type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:M}),!_&&o.jsx(re,{size:"56",type:"bar",label:T("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:Vt}),m&&o.jsx(re,{size:"56",type:"bar",label:m,onClick:()=>H?we():xa(!0),disabled:Ae,onDisabledClick:()=>{Re(T("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),o.jsx(re,{size:"56",type:"bar",variant:"main",label:u??T("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>xa(!1),disabled:Oe,onDisabledClick:nt})]})]}),o.jsx(ro,{message:Ke,type:Ve,onClose:qe})]})}var e6=".ihabdevteam-core-scope .word-table-thumb{grid-gap:1px;background:var(--color-darkWhite);border-bottom:1px solid var(--color-darkWhite);display:grid;gap:1px;grid-auto-rows:minmax(min-content,1fr);height:140px;overflow:hidden}.ihabdevteam-core-scope .word-table-thumb__cell{align-items:center;background:var(--color-white);display:flex;flex-direction:column;gap:1px;justify-content:center;min-height:0;overflow:hidden;padding:4px}.ihabdevteam-core-scope .word-table-thumb__word{color:var(--color-black)}.ihabdevteam-core-scope .word-table-thumb .word-table-thumb__word{line-height:1.2}.ihabdevteam-core-scope .word-table-thumb__divider{background:var(--color-darkWhite);display:block;height:1px;margin:1px 0;width:30%}";ee(e6);function Ic({items:e,className:t}){const a=e.length,r=a<=3?1:2,n=Math.ceil(a/r)||1,i=r*n;return o.jsx("div",{className:_e("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(s,c)=>{const d=e[c];return d?o.jsx("div",{className:"word-table-thumb__cell",children:(d.words.length?d.words:[{label:d.id}]).map((u,m)=>o.jsxs(l.Fragment,{children:[m>0&&o.jsx("span",{className:"word-table-thumb__divider"}),o.jsx("span",{className:"word-table-thumb__word body-3",children:u.label})]},m))},c):o.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}var t6=".ihabdevteam-core-scope .word-table-button{background:var(--color-white);border:1px solid var(--color-whiteLine);border-radius:8px;border-radius:var(--radius-s,8px);box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;overflow:hidden;position:relative;transition:border-color .15s,box-shadow .15s;width:240px}.ihabdevteam-core-scope .word-table-button:hover{border-color:var(--color-main);box-shadow:0 2px 10px rgba(0,0,0,.06)}.ihabdevteam-core-scope .word-table-button:focus-visible{outline:2px solid var(--color-main);outline-offset:1px}.ihabdevteam-core-scope .word-table-button--selected{border-color:var(--color-main);box-shadow:0 0 0 1px var(--color-main) inset}.ihabdevteam-core-scope .word-table-button__thumb{flex:0 0 auto;height:290px}.ihabdevteam-core-scope .word-table-button__info{align-items:flex-start;display:flex;flex-direction:row;gap:8px;min-width:0;padding:12px 14px 0;position:relative}.ihabdevteam-core-scope .word-table-button__more{position:absolute;right:10px;top:8px}.ihabdevteam-core-scope .word-table-button__title{padding-right:34px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info{flex:1 1 auto;min-height:0}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__info-text{align-self:stretch}.ihabdevteam-core-scope .word-table-button__info-text{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:4px;min-width:0;text-align:left}.ihabdevteam-core-scope .word-table-button__title{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-black);display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}.ihabdevteam-core-scope .word-table-button__desc{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--color-gray);display:-webkit-box;overflow:hidden}.ihabdevteam-core-scope .word-table-button__meta{color:var(--color-gray)}.ihabdevteam-core-scope .word-table-button__meta-row{align-items:center;display:flex;gap:8px;justify-content:space-between;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__badges{align-items:center;display:flex;flex:0 0 auto;gap:4px}.ihabdevteam-core-scope .word-table-button--no-footer .word-table-button__meta-row{margin-top:auto}.ihabdevteam-core-scope .word-table-button__footer{display:flex;flex-direction:column;gap:8px;margin-top:auto;min-width:0;padding:12px 14px 14px}.ihabdevteam-core-scope .word-table-button__store-by{align-items:center;display:inline-flex;gap:6px;min-width:0;overflow:hidden}.ihabdevteam-core-scope .word-table-button__store-by .training-card__date{white-space:nowrap}.ihabdevteam-core-scope .word-table-button__store-stats{align-items:center;align-self:flex-end;display:inline-flex;gap:4px}.ihabdevteam-core-scope .word-table-button__more{flex:0 0 auto}.ihabdevteam-core-scope .word-table-button__badge{pointer-events:none}.ihabdevteam-core-scope .word-table-button__new-dot{background:var(--color-main);border-radius:50%;box-shadow:0 0 0 2px var(--color-white);height:10px;pointer-events:none;position:absolute;right:8px;top:8px;width:10px;z-index:3}";ee(t6);function bg({items:e,name:t,description:a,createdAt:r,published:n,publishedLabel:i,shared:s,sharedLabel:c,isNew:d,publisherName:u,publishedAt:m,likeCount:h,downloadCount:p,onPublisherClick:g,selected:f,onClick:b,onMore:v,titleNode:y,className:_}){const{t:x}=me.useTranslation(),C=y!=null,k=u!=null||m!=null||h!=null||p!=null,w=S=>{!C&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),b?.())};return o.jsxs("div",{className:_e("word-table-button",f?"word-table-button--selected":"",k?"":"word-table-button--no-footer",_),role:"button",tabIndex:0,"aria-label":t,onClick:C?void 0:b,onKeyDown:w,children:[d&&o.jsx("span",{className:"word-table-button__new-dot","aria-label":x("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),o.jsx(Ic,{items:e,className:"word-table-button__thumb"}),o.jsxs("div",{className:"word-table-button__info",children:[o.jsxs("div",{className:"word-table-button__info-text",children:[y??o.jsx("div",{className:"word-table-button__title h4",children:t}),a&&o.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),v&&!C&&o.jsx(re,{className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:x("common.moreFor",{name:t}),onClick:S=>{S.stopPropagation(),v(S)}})]}),(r||n||s)&&o.jsxs("div",{className:"word-table-button__meta-row",children:[o.jsx("span",{className:"word-table-button__meta caption-1",children:r?Kr(r,x):""}),o.jsxs("span",{className:"word-table-button__badges",children:[n&&o.jsx(ht,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??"\uBC1C\uD589\uB428"}),s&&o.jsx(ht,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??"\uACF5\uC720 \uC911"})]})]}),k&&o.jsxs("div",{className:"word-table-button__footer",children:[o.jsxs("span",{className:"word-table-button__store-by",children:[u&&o.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:S=>{S.stopPropagation(),g?.()},children:u}),m&&o.jsx("span",{className:"training-card__date body-4",children:Kr(m,x)})]}),o.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h)}),p!=null&&o.jsx(ht,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(p)})]})]})]})}/**
|
|
989
989
|
* @license lucide-react v1.38.0 - ISC
|
|
990
990
|
*
|
|
991
991
|
* This source code is licensed under the ISC license.
|