@ihabdevteam/core 0.155.0 → 0.155.1

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.
@@ -829,7 +829,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
829
829
  \uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
830
830
  npm install @supabase/supabase-js
831
831
  pnpm add @supabase/supabase-js
832
- `),this.name="StorageNotConfiguredError"}};function R0(e){$0(e)}function Rs(e,t){if(!e)return null;const a=pa();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function Ps(e){if(!e)return null;const t=pa();if(!t)throw new $s("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Is(e){const t=pa();if(!t)throw new $s("downloadSound");return t.download(e)}function P0(){return pa()?.noiseBaseUrl??"/sounds/noise"}function Fs(){const e=Number(pa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function I0(e){const t=AbortSignal.timeout;if(typeof t=="function")return t.call(AbortSignal,e);const a=new AbortController;return setTimeout(()=>a.abort(),e),a.signal}const Os="__ihab_core_tts_config__";function Ar(){return globalThis[Os]?.urlResolver??null}function F0(){return globalThis[Os]?.fallbackUrlResolver??null}const O0="__ihab_core_pronunciation_resolver__";function V0(){return globalThis[O0]??null}let wn=null;const ma=new WeakMap,Br=new WeakMap,Nr=new WeakMap;let Vs=!1;const Hs=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function H0(){if(Vs||typeof document>"u")return;Vs=!0;const e=()=>{try{wn&&wn.state!=="running"&&wn.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function zs(){if(wn)return wn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(wn=new e,H0(),wn):null}catch{return null}}function Dr(){try{wn?.resume()}catch{}}function Sr(e,t){const a=ma.get(t);if(a)return a;try{const r=e.createMediaElementSource(t),s=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,s.gain.value=Hs(Br.get(t)??t.volume),r.connect(s),s.connect(i),s.connect(e.destination);try{t.volume=1}catch{}const l={gain:s,analyser:i};return ma.set(t,l),l}catch{return null}}function La(e){if(!e)return Promise.resolve(null);const t=ma.get(e);if(t)return Promise.resolve(t.analyser);const a=zs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Sr(a,e)?.analyser??null);const r=Nr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Sr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Nr.delete(e)});return Nr.set(e,s),s}function z0(e){if(!e)return null;const t=ma.get(e);if(t)return t.analyser;const a=zs();return a?a.state==="running"?Sr(a,e)?.analyser??null:(La(e),null):null}function kn(e,t){const a=Hs(t);Br.set(e,a);const r=ma.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const s=r.gain.gain;try{const i=r.gain.context.currentTime;s.cancelScheduledValues(i),s.setTargetAtTime(a,i,.01)}catch{try{s.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function $a(e){return Br.get(e)??e.volume}function W0(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const s=t[r];a+=s*s}return Math.sqrt(a/t.length)}const q0="__ihab_core_image_config__";function Un(){return globalThis[q0]??null}const Ws="word_image_existence_map_v1";let $n=null;const Ra=new Map;function U0(){if($n)return $n;try{const e=typeof localStorage<"u"?localStorage.getItem(Ws):null,t=e?JSON.parse(e):null;$n=t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{$n={}}return $n}let Er=null;function G0(){Er||(Er=setTimeout(()=>{Er=null;try{typeof localStorage<"u"&&$n&&localStorage.setItem(Ws,JSON.stringify($n))}catch{}},200))}function K0(e,t){return`${e}_${t??1}`}async function qs(e,t){const a=U0(),r=K0(e,t);if(r in a)return a[r];if(Ra.has(r))return Ra.get(r);const s=Un();if(!s)return!1;const i=s(e,t);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:I0(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Ra.delete(r),c===null?!1:(a[r]=c,G0(),c)));return Ra.set(r,l),l}const Us=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],Gs=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],Y0=["","\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 ha(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 Z0(e){const t=ha(e[0]||"");return t?Us[t.cho]:""}function X0(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=l=>Us.includes(l),r=l=>Gs.includes(l),s=t.map(l=>a(l)?"cho":r(l)?"jung":ha(l)?"syl":"other"),i=t.map(l=>ha(l));if(s.includes("other")){const l=e.toLowerCase();return c=>c.normalize("NFC").toLowerCase().includes(l)}return l=>{const c=[...l.normalize("NFC")];for(let u=0;u+t.length<=c.length;u++){let d=!0;for(let p=0;p<t.length;p++){const m=c[u+p],h=s[p];if(h==="cho"){if(Z0(m)!==t[p]){d=!1;break}}else if(h==="jung"){const g=ha(m);if(!g||Gs[g.jung]!==t[p]){d=!1;break}}else{const g=i[p];if(g&&g.jong===0){const C=ha(m);if(!C||C.cho!==g.cho||C.jung!==g.jung){d=!1;break}}else if(m!==t[p]){d=!1;break}}}if(d)return!0}return!1}}const J0={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"]};Object.fromEntries(Object.entries(J0).map(([e,t])=>[t.join(""),Y0[Number(e)]]));const Q0="word_pair_index_v2",e2="word_pair_index_sig_v2";let Pa=null;function t2(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(Q0),t=localStorage.getItem(e2);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function n2(){if(Pa)return Pa;const e=t2();return e?(Pa=e.index,e.sig,Pa):null}const a2={\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"}},Tr=/[ㄱ-ㅎ]/,r2=/[ㅏ-ㅣ]/;function Ks(e){e=e.normalize("NFC");for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||Tr.test(a)||r2.test(a))return a}return null}function o2(e){const t=Ks(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Tr.test(t)?"\uC774":"\uAC00"}function s2(e){return`${e}${o2(e)}`}function i2(e){const t=Ks(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Tr.test(t)?"\uC744":"\uB97C"}function l2(e){return`${e}${i2(e)}`}function c2(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function fa(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(t()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const u2=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof wt?.t=="function"?wt.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function Ys(e,t){if(t===void 0&&(t=u2()),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 d2="__ihab_core_word_pool__";function Zs(){return globalThis[d2]??null}const Xs=globalThis;function Js(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function p2(e){Js("time",()=>Xs.__ihabTrainingTimeLogger?.(e))}function m2(e){Js("completion",()=>Xs.__ihabTrainingCompletionLogger?.(e))}function Ot(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function h2(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 f2(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Ot(r.contextCode)??Ot(r.itemId)??Ot(r.itemCode)??Ot(r.id),question:Ot(r.question)??Ot(r.q)??Ot(r.sentence)??Ot(r.text)??Ot(r.prompt)??Ot(r.word)??Ot(r.targetSyllable),answer:Ot(r.answer),selected:Ot(r.selectedText)??Ot(r.selected),correct:h2(r)}}):[]}const jr=globalThis;async function C2(){try{return await jr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function Qs(e){const t=a=>{};try{const a=jr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function Ia(e){try{jr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function g2(e){if(typeof document<"u"){const t=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),t&&t!==document.activeElement&&typeof t.focus=="function"&&t.isConnected)try{t.focus({preventScroll:!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 b2=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function ei(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=b2.exec(a);t=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else t=new Date(e);return Number.isNaN(t.getTime())?null:t}function Ca(){return Lr(new Date)}function Mr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:Ca()}function Gn(){return v2(Ca())}const y2=540*60*1e3;function ti(e,t,a){return new Date(Date.UTC(e,t,a)-y2)}function v2(e){const[t,a,r]=e.split("-").map(Number);return new Date(t,(a||1)-1,r||1)}function Lr(e){if(e==null||e==="")return"";const t=ei(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function ni(e,t){if(!e)return"";const a=ei(e);if(!a)return"";const r=a.getTime(),s=Math.max(0,Math.floor((Date.now()-r)/1e3)),i=Math.floor(s/60),l=Math.floor(i/60),c=Math.floor(l/24),u=Math.floor(c/7),d=Math.floor(c/30),p=Math.floor(c/365);return i<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):i<60?t("store.time.minutesAgo",{n:i}):l<24?t("store.time.hoursAgo",{n:l}):c<7?t("store.time.daysAgo",{n:c}):u<5?t("store.time.weeksAgo",{n:u}):c<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:p})}function ai(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=t;if(!e)return i;const l=Lr(e instanceof Date?e:String(e));if(!l)return i;const[c,u,d]=l.split("-"),p=r?u:String(Number(u)),m=r?d:String(Number(d));return`${c}${a}${p}${a}${m}${s?".":""}`}function Kn(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function ri(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),s=Number(a[2]),i=a[1].padStart(2,"0");return s===0?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:s,mm:a[2]})}function $r(e){return(e??0).toLocaleString("ko-KR")}const x2=[{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"}]}],_2=[{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"}];function oi(){return x2}function w2(){return _2}const k2=[],A2=[],B2=[],N2=[];function D2(){return{LISTEN_IN_NOISE:k2,SHORT_STORY:A2,LONG_STORY:B2,ORDERING_SENTENCE:N2}}const S2=[{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."}],si={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function E2(e){return S2.map(t=>{const a=si[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let Fa=null,ii=null,li=null;function T2(){const e=Zs();if(e&&e.entries.length>0){const t=n2();if(Fa&&ii===e&&li===t)return Fa;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:t?.[s.word]?[...t[s.word].cho??[],...t[s.word].jung??[],...t[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return Fa=r,ii=e,li=t,Fa}return[]}new Proxy([],{get(e,t){const a=T2(),r=a[t];return typeof r=="function"?r.bind(a):r}});const j2="0.155.0";function M2(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const t=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(t)}function L2(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&M2(r.attrValue)&&(r.keepAttr=!1)};wr.addHook("uponSanitizeAttribute",t);try{return wr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{wr.removeHook("uponSanitizeAttribute",t)}}function $2(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[c,u]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=kr(e):/^(Logo|Symbol)/i.test(d)?p=kr(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),s(null),l(null),a(p)},[e]),o.useEffect(()=>{if(!t)return;let d=!1;async function p(){try{let m=await fetch(t);m.ok||(m=await fetch(t));const h=m.headers.get("content-type")||"";if(d)return;if(h.includes("svg")){s("mask");return}if(h.startsWith("image/")){s("img");return}const g=await fetch(t);if(!g.ok)throw new Error("not ok");const C=await g.text();if(d)return;if(/^\s*<svg[\s>]/i.test(C)){const b=L2(C);if(!b){s("none");return}l(b),s("inline");return}s("none")}catch{d||s("none")}}return p(),()=>{d=!0}},[t]),o.useEffect(()=>{let d=!1,p=null;return r==="mask"&&t&&fetch(t).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{d||(p=URL.createObjectURL(m),u(p))}).catch(()=>{d||s("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function Ge(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=s??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=l??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,C=Xh(g),{iconToUse:b,mode:_,svgText:f,blobUrl:y}=$2(g),x=(k,B={})=>n.jsx("span",{className:d,style:c,...B,children:k}),v=typeof u=="number"?{width:u,height:u,objectFit:"contain"}:null,A=(k,B={})=>n.jsx("img",{src:k,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...B,style:v?{...B.style,...v}:B.style});if(!t)return null;if(typeof t!="string")return x(t);if(t==="none")return x(n.jsx("span",{className:h,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(C)try{return x(o.createElement(C,{className:h,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(_==="mask"){const k={"--icon-url":y?`url(${y})`:`url(${b})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return x(n.jsx("span",{className:m,style:k}),{"aria-hidden":"true"})}return _==="img"?x(A(b,{onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):_==="inline"?x(n.jsx("span",{className:h,dangerouslySetInnerHTML:f?{__html:f}: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 A(kr(t),{style:c,onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}});const w=typeof u=="number"?u:20,D=`<svg width="${w}" height="${w}" 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(n.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:D}}),{"aria-hidden":"true"})}function ci(e){const[t,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const i=o.useCallback(()=>{if(!e||r.current)return;const l=e();if(l&&typeof l.then=="function"){r.current=!0,a(!0);const c=()=>{r.current=!1,s.current&&a(!1)};l.then(c,c)}},[e]);return{pending:t,press:i}}function R2({icon:e,emoji:t,title:a,message:r,hint:s,action:i,compact:l,className:c}){const{pending:u,press:d}=ci(i?.onClick);return n.jsxs("div",{className:Be("empty-state",l&&"empty-state--compact",c),children:[t&&n.jsx("span",{className:"empty-state__emoji",children:t}),e&&n.jsx(Ge,{icon:e,className:"empty-state__icon"}),a&&n.jsx("p",{className:"empty-state__title body-2",children:a}),r&&n.jsx("p",{className:"empty-state__message body-3",children:r}),s&&n.jsx("p",{className:"empty-state__hint caption-1",children:s}),i&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:d,disabled:u,"aria-busy":u||void 0,children:[i.icon&&n.jsx(Ge,{icon:i.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:i.label})]})]})}function P2({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=fe.useTranslation(),{pending:c,press:u}=ci(r);return n.jsxs("div",{className:Be("empty-state","error-state",i),role:"alert",children:[n.jsx(Ge,{icon:a,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"empty-state__hint caption-1",children:t}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:u,disabled:c,"aria-busy":c||void 0,children:[n.jsx(Ge,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:s??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function I2({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:c=""}){const u=o.useId(),d=`${u}-title`,p=`${u}-desc`,m=`${u}-cta`,h=()=>{i||l?.()};return n.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":d,"aria-describedby":`${p} ${m}`,onClick:h,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),h())},className:Be("action-card",`action-card--${s}`,i&&"action-card--disabled",c),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(Ge,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:p,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:m,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(Ge,{icon:"arrow-right",size:18})})]})]})})}function F2({as:e="div",className:t="",children:a,storage:r,...s}){r&&R0({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,noiseFileGain:r.noiseFileGain});const i=Be("ihabdevteam-core-scope",t);return n.jsx(e,{className:i,...s,children:a})}function Rr(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const i=Array.from(a.querySelectorAll(hn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],c=i[i.length-1],u=document.activeElement,d=u===a;s.shiftKey&&(u===l||d)?(s.preventDefault(),c.focus()):!s.shiftKey&&u===c&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const hn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Pr=new WeakMap;function Ir(e,t){e&&Pr.set(e,t)}function Fr(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!Pr.has(r);)r=r.parentElement;if(!r)return t;t=Pr.get(r)??null}return t}function ui(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function Oa(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(ui(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(hn)).filter(u=>!(e&&e.contains(u))&&ui(u));let i=null,l=null;for(const u of s)r.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_PRECEDING?i=u:l||(l=u);const c=i??l;return c?.focus(),c}function O2({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:c}=fe.useTranslation(),[u,d]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const b=p.current;b&&b.contains(document.activeElement)&&Oa(b),d(!0)},[]);if(u)return null;const h=`notice-box notice-box--${s} body-2 ${l}`.trim(),g=i&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:h,role:"note",children:[a.map((b,_)=>n.jsxs("div",{className:"notice-box__inner",children:[b.title?n.jsx("span",{className:"notice-box__title body-3",children:b.title}):null,n.jsx("div",{className:"notice-box__body",children:b.lines&&b.lines.length?n.jsx("div",{children:b.lines.map((f,y)=>n.jsx("span",{className:"notice-box__line body-3",children:f},y))}):b.children??null})]},_)),g]});const C=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((b,_)=>n.jsx("li",{className:"notice-box__line",children:b},_))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:p,className:h,role:"note",children:[C,g]})}const Yn=[];let Va=!1;function di(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=Yn[Yn.length-1];t&&(e.stopPropagation(),t())}function Rn(e){return Yn.push(e),!Va&&typeof document<"u"&&(document.addEventListener("keydown",di),Va=!0),()=>{const t=Yn.lastIndexOf(e);t>=0&&Yn.splice(t,1),Yn.length===0&&Va&&typeof document<"u"&&(document.removeEventListener("keydown",di),Va=!1)}}const pi=o.createContext(null);function V2(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const mi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function H2(e){const t=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Uo.useSyncExternalStore(t,()=>mi(e),()=>!1)}function z2(e){const[t,a]=o.useState(mi(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",s):i.addListener&&i.addListener(s),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",s):i.removeListener&&i.removeListener(s)}},[e]),t}const W2=typeof Uo.useSyncExternalStore=="function"?H2:z2;function en(e){const t=o.useContext(pi),a=W2(e);return t&&typeof t.mobile=="boolean"&&V2(e)?t.mobile:a}const q2="(prefers-reduced-motion: reduce)";function Or(){return en(q2)}function An(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:g=!0,header:C}=e||{},b=o.useRef(null),[_,f]=o.useState({position:"fixed",left:0,top:-9999}),[y,x]=o.useState(!1),[v,A]=o.useState("bottom"),[w,D]=o.useState(!1),[k,B]=o.useState(!1),N=!t&&!a,M=o.useCallback((q=!1)=>{if(k&&h)return;const H=a?a.getBoundingClientRect():t;if(!H||!b.current)return;const z=b.current,{offsetWidth:Z,offsetHeight:I}=z,T=window.innerWidth,O=window.innerHeight,R=T-H.right,j=H.left,L=H.top,Q=O-H.bottom;let J=0,oe=0,ge="top";if(L>=I+r)ge="top",oe=H.top-r-I,J=H.left+H.width/2-Z/2;else if(Q>=I+r)ge="bottom",oe=H.bottom+r,J=H.left+H.width/2-Z/2;else if(R>=Z+r)ge="right",J=H.right+r,oe=H.top+H.height/2-I/2;else if(j>=Z+r)ge="left",J=H.left-r-Z,oe=H.top+H.height/2-I/2;else{const U=Math.max(L,Q,R,j);U===L?(ge="top",oe=H.top-r-I,J=H.left+H.width/2-Z/2):U===Q?(ge="bottom",oe=H.bottom+r,J=H.left+H.width/2-Z/2):U===R?(ge="right",J=H.right+r,oe=H.top+H.height/2-I/2):(ge="left",J=H.left-r-Z,oe=H.top+H.height/2-I/2)}const Me=Number.isFinite(Number(s))?Number(s):8;J=Math.min(Math.max(J,Me),T-Z-Me),oe=Math.min(Math.max(oe,Me),O-I-Me);const Ne=Math.round(J),ie=Math.round(oe);q&&b.current?(b.current.style.left=`${Ne}px`,b.current.style.top=`${ie}px`,b.current.dataset.placement=ge):(A(ge||v),f({position:"fixed",left:Ne,top:ie}),D(!0))},[k,h,a,t,r,s,v]);o.useLayoutEffect(()=>{if(N)return;if(k&&h){f({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),D(!0);return}M();const q=requestAnimationFrame(()=>M());return()=>cancelAnimationFrame(q)},[t,a,r,p,s,N,k,h,M]),o.useEffect(()=>{if(N||k&&h||!b.current||typeof ResizeObserver>"u")return;const q=new ResizeObserver(()=>{t&&M()});return q.observe(b.current),()=>q.disconnect()},[t,p,s,N,k,h,M]),o.useEffect(()=>{if(N||k&&h)return;const q=()=>M(!0),H=z=>{if(!a&&i){const Z=z.target;if(Z&&b.current&&b.current.contains(Z))return;try{if(Z&&Z.closest&&Z.closest("[data-tooltip-ignore]"))return}catch{}F.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",H,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",q),document.removeEventListener("scroll",H,{capture:!0})}},[t,a,i,r,p,s,N,k,h,M]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const q=window.matchMedia("(max-width: 768px)"),H=()=>B(!!q.matches);H();try{q.addEventListener?q.addEventListener("change",H):q.addListener(H)}catch{try{q.addListener(H)}catch{}}return()=>{try{q.removeEventListener?q.removeEventListener("change",H):q.removeListener(H)}catch{}}},[]);const P=o.useRef(!1),$=o.useRef(null),W=Or(),S=o.useCallback((q=!1)=>{if(i&&!(y||P.current)){if(P.current=!0,q){x(!0);try{i&&i()}catch{P.current=!1,x(!1)}return}x(!0),$.current=setTimeout(()=>{$.current=null;try{i&&i()}catch{P.current=!1,x(!1)}},W?0:200)}},[y,i,x,W]);o.useEffect(()=>()=>{$.current&&clearTimeout($.current)},[]),o.useEffect(()=>{if(N)return;const q=Z=>{const I=b.current;if(!I)return;const T=Z.target;if(T&&!I.contains(T)){try{if(T.closest&&T.closest("[data-tooltip-ignore]"))return}catch{}l&&S(!0)}},H=Z=>{const I=b.current;if(!I)return;const T=Z.target;if(T&&!I.contains(T)){try{if(T.closest&&T.closest("[data-tooltip-ignore]"))return}catch{}l&&S(!0)}},z=Z=>{if(Z.key==="Tab"){const I=b.current;if(!I)return;const T=I.querySelectorAll(hn);if(!T||T.length===0)return;const O=T[0],R=T[T.length-1],j=document.activeElement;Z.shiftKey?j===O&&(Z.preventDefault(),R.focus()):j===R&&(Z.preventDefault(),O.focus())}};return document.addEventListener("pointerdown",q,!0),document.addEventListener("click",H,!0),document.addEventListener("keydown",z),()=>{document.removeEventListener("pointerdown",q,!0),document.removeEventListener("click",H,!0),document.removeEventListener("keydown",z)}},[i,l,S,N]);const F=o.useRef(S);o.useEffect(()=>{F.current=S});const Y=!!i;o.useEffect(()=>{if(!(N||!Y))return Rn(()=>F.current())},[N,Y]),o.useEffect(()=>{const q=()=>{S(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",q),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",q)}},[S]);const G=n.jsxs("div",{ref:b,className:`tooltip-content ${N?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${y?"is-closing":""} ${c} ${k&&h?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:N?{}:{..._,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":v,"data-left":N?"":_.left,"data-top":N?"":_.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:[C!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:C}),p]});if(N||typeof document>"u")return G;if(m||k&&h){const q=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&S(!0)}}),G]});return Wt.createPortal(q,document.body)}return Wt.createPortal(G,document.body)}function Bn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?n.jsx(An,{anchorRect:t,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:n.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Pn(e){const{t}=fe.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:c,offset:u=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:n.jsx(An,{anchorRect:a,offset:u,onClose:c,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:"tooltip-description__box",children:[r&&n.jsx("span",{className:"tooltip-description__title body-2",children:r}),n.jsx("ol",{className:"tooltip-description__items",children:p.map((m,h)=>n.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),m.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),n.jsx("span",{children:m.text})]},h))})]})})}function ga(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let Vr=0,hi=!1;function fi(){hi||typeof document>"u"||(hi=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(Vr=Date.now())},!0),document.addEventListener("touchstart",()=>{Vr=Date.now()},{capture:!0,passive:!0}))}fi();function Zn(e){return!!e&&e.pointerType==="touch"}function Xn(e=1e3){return fi(),Date.now()-Vr<e}function Hr(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=ga(e),l=ga(t),c=o.useRef(null),u=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const p=m=>{const h=m,g=m.target,C=a.current,b=!!(g&&C&&C.contains(g));if(h.pointerType!=="touch"){b&&(c.current=null);return}if(b){c.current=i.current;return}c.current=null,i.current&&!(g&&g.closest?.(".tooltip-content"))&&l.current(!1,C)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[r,a,i,l]);const d=o.useCallback(p=>{const m=c.current;return m===null?!1:(c.current=null,u.current=Date.now(),l.current(!m,p??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const p=a.current,m=p?.parentElement;if(!p||!m)return;let h=null;const g=_=>{const f=_.changedTouches?.[0];if(!f)return!1;const y=p.getBoundingClientRect();return f.clientX>=y.left&&f.clientX<=y.right&&f.clientY>=y.top&&f.clientY<=y.bottom},C=_=>{h=g(_)?i.current:null},b=_=>{const f=h;h=null,!(f===null||Date.now()-u.current<700||!g(_))&&(c.current=null,u.current=Date.now(),l.current(!f,p))};return m.addEventListener("touchstart",C,{passive:!0}),m.addEventListener("touchend",b),()=>{m.removeEventListener("touchstart",C),m.removeEventListener("touchend",b)}},[r,s,a,i,l]),{touchPress:d}}function U2(e,t){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:c,icon:u,rightIcon:d,label:p,count:m,subLabel:h,children:g,ariaLabel:C,variant:b="default",align:_="center",selected:f,toggleable:y=!1,ariaExpanded:x,ariaControls:v,disabled:A=!1,useLabel:w=!0,useBorder:D=!0,useBG:k=!0,useDisabledCovered:B=!1,useDisabledInvisible:N=!1,width:M,minWidth:P,onClick:$,onDisabledClick:W,showTooltipInfo:S=!1,tooltipInfoText:F=null,tooltipDescription:Y=null,tooltipOnly:G=!1,iconSize:q="medium",iconColor:H,shape:z="rounded",color:Z,className:I,...T}=e,O=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),R=O.match(/^\d+$/)?`button${O}`:`button-${O}`,j=Number(a),L=!isNaN(j)&&j<40?"button-2":"button-1",Q=p??g,J=A||!!T.disabled,oe=J?B?"disabled-covered":N?"disabled-invisibled":"disabled":b,ge=oe?`button--variant-${oe}`:"",Me=_?`button--align-${_}`:"",Ne=z?`button--shape-${z}`:"",ie=typeof H=="string"&&H.startsWith("--")?`var(${H})`:H,U={...M?{width:typeof M=="number"?`${M}px`:M}:{},...P?{minWidth:typeof P=="number"?`${P}px`:P}:{},...D?{}:{"--button-border":J?"0":"1px solid transparent"},...ie?{"--button-icon-color":ie}:{},...Z?{"--color-main":Z}:{}},se=w===!1?"":Q,me=Array.isArray(se)?se.length>0:!!se,_e=!!d,we=r??(me||u||_e?"bar":"dot"),De=`${R}--${we}`,xe=o.useRef(null),Ae=o.useRef(t);Ae.current=t;const Te=o.useCallback(Le=>{xe.current=Le;const Ke=Ae.current;typeof Ke=="function"?Ke(Le):Ke&&(Ke.current=Le)},[]),ae=o.useRef(J),[ee,de]=o.useState(!!f),[te,he]=o.useState(!1),[be,Ye]=o.useState(null),Ve=o.useCallback(()=>he(!1),[]),[qe,Se]=o.useState(!1),Ue=o.useId();o.useEffect(()=>{typeof f=="boolean"&&de(f)},[f]),o.useEffect(()=>{if(ae.current&&!J&&xe.current){const Le=xe.current;let Ke=!1;try{Ke=Le.matches(":focus:not(:focus-visible)")}catch{Ke=!1}Ke&&Le.blur(),Le.style.pointerEvents="none";const Dt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{xe.current&&(xe.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Dt)}ae.current=J},[J]);const $e=typeof f=="boolean"?!!f:ee,Ie=typeof x=="boolean"?void 0:y||typeof f=="boolean"?$e?"true":"false":T["aria-pressed"],He=Be("button",R,De,ge,Me,Ne,$e?"is-selected":null,k?null:"button--no-bg",G?"button--tooltip-only":null,I),at=`button__icon button__icon--${q}`,ot=Array.isArray(h)?h:h!==void 0?[h]:[],We=()=>{if(Array.isArray(se))return se.map((Ke,Dt)=>{const vt=ot[Dt];return n.jsxs("span",{className:`button__label-text${vt!==void 0?" button__label-text--has-sub":""}`,children:[Ke,vt!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:vt})]},Dt)});const Le=h!==void 0;return n.jsxs("span",{className:`button__label-text${Le?" button__label-text--has-sub":""}`,children:[se,m!=null&&n.jsx("span",{className:"button__count",children:m}),Le&&n.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},Xe=Le=>{typeof f!="boolean"&&!y&&de(!1),Le.currentTarget.blur()},Ct=Le=>{J||(typeof T.onMouseLeave=="function"&&T.onMouseLeave(Le),Xe(Le))},At=Le=>{if(G&&Qe&&Ze.touchPress(Le.currentTarget),J){Qe&&Ze.touchPress(Le.currentTarget),Le.preventDefault(),W?.(Le);return}typeof f!="boolean"&&y&&de(Ke=>!Ke),$?.(Le)},Et=o.useCallback(()=>{(S||Y)&&(he(!0),Ye(xe.current?.getBoundingClientRect()??null))},[S,Y]),ut=o.useCallback(()=>{(S||Y)&&(he(!1),Ye(null))},[S,Y]),Qe=!!(S||Y),Ze=Hr(te,Le=>{Le?Et():ut()},xe,{enabled:Qe&&(J||G),fallbackOnParent:Qe&&J}),Oe={...T};delete Oe.disabled,delete Oe.className,delete Oe.faded,delete Oe.useFaded,delete Oe.loading,delete Oe.onMouseLeave,delete Oe.onPointerEnter,delete Oe.onPointerLeave,delete Oe.onPointerUp,delete Oe.onFocus,delete Oe.onBlur,J&&(Object.keys(Oe).forEach(Le=>{/^on[A-Z]/.test(Le)&&typeof Oe[Le]=="function"&&delete Oe[Le]}),Oe["aria-disabled"]="true");const rt=(typeof S=="string"?S:null)??(typeof F=="string"?F:null)??(typeof C=="string"?C:null)??(typeof Q=="string"?Q:null)??void 0,et=typeof C=="string"?C:typeof Q=="string"?Q:rt,bt=Y?[Y.title,...Y.items??[]].filter(Boolean).join(". "):S&&rt&&rt!==et?rt:"",ze=[typeof T["aria-describedby"]=="string"?T["aria-describedby"]:void 0,bt?Ue:null].filter(Boolean).join(" ")||void 0,it=(Le,Ke)=>n.jsx(Ge,{icon:Le,label:Ke??et,className:at,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Bt=()=>we==="dot"?n.jsxs(n.Fragment,{children:[it(u),me&&n.jsx("span",{className:`button__label ${L}`,children:We()})]}):_==="center"&&u?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:it(u)}),me&&n.jsx("span",{className:`button__label ${L}`,children:We()})]}),_e&&n.jsx("span",{className:"button__right",children:it(d)})]}):n.jsxs(n.Fragment,{children:[u&&n.jsx("span",{className:"button__left",children:it(u,C??Q)}),me&&n.jsx("span",{className:`button__label ${L}`,children:We()}),_e&&n.jsx("span",{className:"button__right",children:it(d)})]}),Nt=!!i&&!J;return n.jsxs(n.Fragment,{children:[n.jsxs(Nt?"a":"button",{...Oe,ref:Te,...Nt?{href:i,target:l,rel:c??(l==="_blank"?"noreferrer":void 0)}:{type:s,disabled:J&&!W&&!qe},className:He,"aria-pressed":Ie,"aria-expanded":typeof x=="boolean"?x:T["aria-expanded"],"aria-controls":v??T["aria-controls"],"aria-label":et,"aria-disabled":J&&(Nt||W||qe)?!0:void 0,"aria-describedby":ze,style:U,onClick:At,onMouseLeave:Ct,onPointerEnter:Le=>{Zn(Le)||Et(),!J&&typeof T.onPointerEnter=="function"&&T.onPointerEnter(Le)},onPointerLeave:Le=>{Zn(Le)||ut(),!J&&typeof T.onPointerLeave=="function"&&T.onPointerLeave(Le)},onPointerUp:Le=>{J&&Qe&&Ze.touchPress(Le.currentTarget),!J&&typeof T.onPointerUp=="function"&&T.onPointerUp(Le)},onFocus:Le=>{Se(!0),Xn()||Et(),!J&&typeof T.onFocus=="function"&&T.onFocus(Le)},onBlur:Le=>{Se(!1),J||Xe(Le),ut(),!J&&typeof T.onBlur=="function"&&T.onBlur(Le)},children:[Bt(),bt?n.jsx("span",{id:Ue,hidden:!0,"aria-label":bt}):null]}),te&&Y?n.jsx(Pn,{anchorRect:be,title:Y.title,items:Y.items,onClose:Ve}):te&&rt?n.jsx(Bn,{anchorRect:be,text:rt,onClose:Ve}):null]})}const ce=o.forwardRef(U2);ce.displayName="Button";var G2={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\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."},K2={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],yearMonth:"{{year}}\uB144 {{month}}\uC6D4",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704"},Y2={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},Z2={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},X2={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},J2={selected:"\uC120\uD0DD\uB428"},Q2={placeholder:"\uC120\uD0DD"},ef={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},tf={biArea:"BI \uC601\uC5ED",biSymbol:"BI \uC2EC\uBCFC",logoMalgwi:"\uB9D0\uADC0 \uB85C\uACE0",logoManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0",menuOpen:"\uBA54\uB274 \uC5F4\uAE30",utilMenu:"\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274",menuClose:"\uBA54\uB274 \uB2EB\uAE30"},nf={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C"},af={language:{training:{label:"\uD6C8\uB828 \uC5B8\uC5B4",sub:"\uD6C8\uB828\uC5D0 \uC0AC\uC6A9\uB418\uB294 \uB2E8\uC5B4\uC640 \uC74C\uC131 \uC5B8\uC5B4"}},notifications:{title:"\uC54C\uB9BC"},display:{fontSize:{small:"\uC791\uAC8C",large:"\uD06C\uAC8C"}},cache:{title:"\uCE90\uC2DC \uAD00\uB9AC",confirmMessage:"\uCE90\uC2DC({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",delete:"\uC0AD\uC81C",deleting:"\uC0AD\uC81C \uC911",cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"},trainingRecord:{label:"\uD6C8\uB828 \uAE30\uB85D",sub:"\uC624\uB298\uC758 \uD6C8\uB828 \uC9C4\uD589\uB960 \uBC0F \uD559\uC2B5 \uC77C\uC218"}}},button:{save:"\uC124\uC815 \uC800\uC7A5"},popup:{clear:{confirm:"\uCD08\uAE30\uD654"},update:{confirm:"\uC5C5\uB370\uC774\uD2B8"},cache:{title:"{{label}} \uC0AD\uC81C",message:"{{label}}({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"}},saved:"\u2713 \uC800\uC7A5\uB428",account:{title:"\uACC4\uC815",delete:{sub:"\uD0C8\uD1F4 \uD6C4 30\uC77C \uC774\uB0B4 \uC7AC\uAC00\uC785 \uC2DC \uBCF5\uAD6C \uAC00\uB2A5\uD569\uB2C8\uB2E4."}}},rf={addButton:"\uC774\uC6A9\uAD8C \uCD94\uAC00\uD558\uAE30",couponButton:"\uCFE0\uD3F0 \uC785\uB825",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",segment:{personal:"\uB9D0\uADC0",org:"\uB9D0\uADC0\uB9E4\uB2C8\uC800"},org:{title:"\uD604\uC7AC \uC774\uC6A9\uAD8C",disc:"\uAE30\uAD00\uC5D0\uC11C \uC0AC\uC6A9 \uC911\uC778 \uC774\uC6A9\uAD8C \uC815\uBCF4\uC785\uB2C8\uB2E4.",empty:"\uB4F1\uB85D\uB41C \uAE30\uAD00 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",fallbackTitle:"\uAE30\uAD00 \uC774\uC6A9\uAD8C",startDate:"\uC2DC\uC791\uC77C",endDate:"\uB9CC\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04",duration:"\uC774\uC6A9 \uAE30\uAC04"},active:{infoTitle:"\uC774\uC6A9 \uC815\uBCF4",refund:"\uD658\uBD88 \uC694\uCCAD",startDate:"\uC0AC\uC6A9 \uC2DC\uC791\uC77C",endDate:"\uC885\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04"},pending:{title:"\uBCF4\uC720",empty:"\uB300\uAE30 \uC911\uC778 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}},of={profile:{planSuffix:"\uD50C\uB79C",plan:"\uD50C\uB79C"},basicInfo:{name:{placeholder:"\uD64D\uAE38\uB3D9"}},security:{title:"\uBCF4\uC548",password:{label:"\uBE44\uBC00\uBC88\uD638",currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},twoFactor:{label:"2\uB2E8\uACC4 \uC778\uC99D",sub:"\uACC4\uC815 \uBCF4\uC548\uC744 \uAC15\uD654\uD558\uC138\uC694"}}},sf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},lf={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\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.",sameStructureInfo:"\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.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",selectInOrder:"\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{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"}},cf={totalCount:"\uAC1C\uC758 \uD6C8\uB828 \uBB36\uC74C",renameGroup:"\uADF8\uB8F9 \uC774\uB984 \uBC14\uAFB8\uAE30",itemCount:"\uD6C8\uB828 \uAC1C\uC218",menu:{edit:"\uD6C8\uB828 \uBB36\uC74C \uC218\uC815",rename:"\uC774\uB984 \uBC14\uAFB8\uAE30",move:"\uADF8\uB8F9 \uC774\uB3D9",duplicate:"\uD6C8\uB828 \uBB36\uC74C \uBCF5\uC0AC",publish:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30"},sort:{customers:"\uD6C8\uB828 \uACE0\uAC1D"},copyLink:"\uB9C1\uD06C \uBCF5\uC0AC",removeLink:"\uB9C1\uD06C \uC81C\uAC70",linkRemoved:"\uB9C1\uD06C\uAC00 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",linkSaveFirst:"\uBA3C\uC800 \uD6C8\uB828 \uBB36\uC74C\uC744 \uC800\uC7A5\uD574\uC8FC\uC138\uC694.",linkSaveFirstHint:"\uC800\uC7A5\uB41C \uD6C8\uB828 \uBB36\uC74C\uC5D0\uC11C\uB9CC \uACF5\uC720 \uB9C1\uD06C\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",linkCopySelect:"\uBCF5\uC0AC\uAC00 \uB9C9\uD600 \uB9C1\uD06C\uB97C \uC120\uD0DD\uD588\uC2B5\uB2C8\uB2E4. Ctrl/\u2318+C\uB85C \uBCF5\uC0AC\uD558\uC138\uC694.",nameRequired:"\uD6C8\uB828 \uBB36\uC74C \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694.",itemRequired:"\uD6C8\uB828\uC744 1\uAC1C \uC774\uC0C1 \uB2F4\uC544\uC8FC\uC138\uC694.",randomAdd:"\uBB34\uC791\uC704 \uCD94\uAC00"},uf={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",basicInfo:{editTooltip:"\uC218\uC815\uD558\uAE30"},member:{placeholder:"\uC774\uBA54\uC77C \uB610\uB294 \uC804\uD654",link:"\uC5F0\uACB0",linking:"\uC5F0\uACB0 \uC911\u2026"},device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addTooltip:"\uC0C8\uB85C \uC0DD\uC131",addButton:"\uAE30\uAE30 \uCD94\uAC00",listTooltip:"\uBAA9\uB85D \uBCF4\uAE30",listTitle:"\uCE21 \uAE30\uAE30 \uBAA9\uB85D",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",release:"\uD574\uC81C",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{title:"\uBC29\uBB38 \uC608\uC815",addTooltip:"\uC608\uC815 \uB4F1\uB85D",listTooltip:"\uC804\uCCB4 \uBCF4\uAE30",empty:"\uC608\uC815\uB41C \uBC29\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D",memoPlaceholder:"\uBC29\uBB38 \uC608\uC815 \uAD00\uB828 \uBA54\uBAA8\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694."},visitHistory:{title:"\uBC29\uBB38 \uC774\uB825",addTooltip:"\uC2E0\uADDC \uB4F1\uB85D",empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uC0C1\uD669",active:"\uD65C\uC131",inactive:"\uBE44\uD65C\uC131",copy:"\uB9C1\uD06C \uBCF5\uC0AC",copied:"\uB9C1\uD06C\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",visits:{title:"\uBC29\uBB38"},trainingRecord:{title:"\uACE0\uAC1D \uD6C8\uB828 \uAE30\uB85D"},status:{trainingSubtitle:"\uD6C8\uB828 \uD604\uD669"},detail:{session:{completedFmt:"\uC644\uB8CC {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:"\uC758 \uBC29\uBB38"},duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},df={plan:{recommendedFor:"\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.",features:"\uD575\uC2EC \uAE30\uB2A5",freePrice:"\uBB34\uB8CC",contact:"\uBB38\uC758\uD558\uAE30",tierFallback:"\uC774\uC6A9\uAD8C",openPromo:"\uC624\uD508 \uD2B9\uAC00"},products:{mgrEnterprise:{tier:{price:"\uBB38\uC758"}}}},pf={title:"\uCFE0\uD3F0",subtitle:"\uCFE0\uD3F0 \uCF54\uB4DC\uB97C \uC785\uB825\uD558\uAC70\uB098 \uBCF4\uC720 \uCFE0\uD3F0\uC744 \uD655\uC778\uD558\uC138\uC694.",input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9",error:{invalid:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uCFE0\uD3F0 \uCF54\uB4DC\uC785\uB2C8\uB2E4.",alreadyUsed:"\uC774\uBBF8 \uC0AC\uC6A9\uB41C \uCFE0\uD3F0\uC785\uB2C8\uB2E4."},success:{applied:'"{{name}}" \uCFE0\uD3F0\uC774 \uC801\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.'},section:{owned:"\uBCF4\uC720 \uCFE0\uD3F0"},status:{used:"\uC0AC\uC6A9 \uC644\uB8CC",available:"\uC0AC\uC6A9 \uAC00\uB2A5"}},mf={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},hf={subtitle:"\uC5C5\uCCB4 \uBC0F \uBC95\uC778 \uC815\uBCF4\uB97C \uAD00\uB9AC\uD558\uC138\uC694.",editButton:"\uC815\uBCF4 \uC218\uC815",basicInfo:{title:"\uAE30\uBCF8 \uC815\uBCF4"},contactInfo:{title:"\uC5F0\uB77D\uCC98 \uC815\uBCF4"}},ff={title:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",subtitle:"\uC6D0\uD558\uB294 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD558\uC138\uC694.",listenInNoise:{title:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},shortStory:{title:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uC774\uD574\uD569\uB2C8\uB2E4."},longStory:{title:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uC9D1\uC911\uD574\uC11C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uD30C\uC545\uD569\uB2C8\uB2E4."},orderingSentence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uB4E4\uC740 \uBB38\uC7A5\uB4E4\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD569\uB2C8\uB2E4."},SAME_SOUND_PICK:{label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},SAME_OR_DIFF:{label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",sub:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},HEAR_AND_PICK_SAME:{label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},HEAR_AND_PICK_INCLUDED:{label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},STARTS_WITH_SAME_SOUND:{label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."},LISTEN_AND_REMEMBER_ORDER:{label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",sub:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."},MERGE_2_SYLLABLES:{label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_SYLLABLES:{label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_2_PHONEMES:{label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_PHONEMES:{label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_PART_FROM_COMPOUND:{label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84 \uD0C8\uB77D",sub:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",sub:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",sub:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"},CHANGE_1_SYLL_IN_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_SYLL_IN_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_1SYLL:{label:"1\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_2SYLL:{label:"2\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}},Cf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},gf={colName:"\uB2E8\uC5B4\uD45C \uC774\uB984",open:"\uC5F4\uAE30",countSuffix:"\uAC1C\uC758 \uB2E8\uC5B4\uD45C",tab:{cards:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",tables:"\uB2E8\uC5B4\uD45C"},cardsEmpty:"\uC544\uC9C1 \uB9CC\uB4E0 \uB2E8\uC5B4\uD45C \uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",addCard:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC \uCD94\uAC00",menu:{publishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30",unpublishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0\uC11C \uB0B4\uB9AC\uAE30"},newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},bf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},yf={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",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.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"{{name}} \uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"}},vf={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193",original:"\uBC1B\uC740 \uC21C\uC11C"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},xf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},_f={title:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uACE0 \uB4E3\uAE30 \uD6C8\uB828\uC744 \uC2DC\uC791\uD558\uC138\uC694.",noiseTitle:"\uC18C\uC74C \uD558 \uBB38\uC7A5\uB4E3\uAE30",shortStoryTitle:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",FOOD:"\uC74C\uC2DD",HLTH:"\uAC74\uAC15",WETH:"\uB0A0\uC528",PRSN:"\uC778\uBB3C",KRCT:"\uD55C\uAD6D\uBB38\uD654",STRY:"\uC774\uC57C\uAE30",LOCA:"\uC9C0\uC5ED",SOAR:"\uC0AC\uD68C\uC640 \uC608\uC220",NTSC:"\uC790\uC5F0\uACFC \uACFC\uD559",SPRT:"\uC2A4\uD3EC\uCE20",sub:{TRKRFD:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD",MDKRFD:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD",WRLDFD:"\uC138\uACC4\uC758 \uC74C\uC2DD",MTRFRT:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C",GEFDKL:"\uC74C\uC2DD \uC0C1\uC2DD",HTETHB:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00",DISILL:"\uBCD1\uACFC \uC9C8\uD658",EXCISE:"\uC6B4\uB3D9",GEHTKL:"\uAC74\uAC15\uC0C1\uC2DD",GESSKL:"\uACC4\uC808\uC0C1\uC2DD",SNWRAN:"\uB208\uACFC \uBE44",WTHFCT:"\uC77C\uAE30\uC608\uBCF4",GEWTKL:"\uB0A0\uC528\uC0C1\uC2DD",JODYPS:"\uC870\uC120\uC2DC\uB300",MDKRPS:"\uD55C\uAD6D \uADFC\uD604\uB300",THKDPS:"\uC0BC\uAD6D\uC2DC\uB300",WRLART:"\uC138\uACC4\uC758 \uC608\uC220\uAC00",WRLPSN:"\uC138\uACC4\uC758 \uC778\uBB3C",KRLANG:"\uC6B0\uB9AC\uB9D0",TRPLCT:"\uC804\uD1B5\uB180\uC774",HERITG:"\uBB38\uD654\uC7AC",EVTFES:"\uD589\uC0AC\uC640 \uCD95\uC81C",GECTKL:"\uC0C1\uC2DD",FRYTAL:"\uB3D9\uD654",AMZING:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30",DAYSTR:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30",KRLDMK:"\uD55C\uAD6D\uC758 \uBA85\uC18C",SELNMK:"\uC11C\uC6B8\uC758 \uBA85\uC18C",WRDTRB:"\uC138\uACC4\uC5EC\uD589",NAVIGT:"\uAE38 \uCC3E\uAE30",KRSOCI:"\uD55C\uAD6D",ECONEW:"\uACBD\uC81C\uC640 \uB274\uC2A4",GENART:"\uC608\uC220",GELFKL:"\uC0DD\uD65C \uC0C1\uC2DD",ANIMAL:"\uB3D9\uBB3C",PLANTS:"\uC2DD\uBB3C",ETHPLT:"\uC9C0\uAD6C",TOLELC:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488",GESCKL:"\uACFC\uD559\uC0C1\uC2DD",INVDSP:"\uAC1C\uC778\uACBD\uAE30",MARART:"\uACA9\uD22C\uAE30",TEAMSP:"\uB2E8\uCCB4\uACBD\uAE30",FOOTBL:"\uCD95\uAD6C",GESPKL:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}},wf={maxUses:"\uCD5C\uB300 \uC0AC\uC6A9 \uD69F\uC218 (\uBE44\uC6CC\uB450\uBA74 \uBB34\uC81C\uD55C)",redirect:"\uC774\uB3D9\uD560 \uD398\uC774\uC9C0 URL (\uBE44\uC6CC\uB450\uBA74 \uC571 \uBA54\uC778)",creating:"\uC0DD\uC131 \uC911\u2026",create:"\uB9C1\uD06C \uC0DD\uC131",created:"\u2713 \uB9C1\uD06C\uAC00 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4",copied:"\uBCF5\uC0AC\uB428!",copy:"\uBCF5\uC0AC",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",empty:"\uC0DD\uC131\uB41C \uB9C1\uD06C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",uses:"{{count}}\uD68C \uC0AC\uC6A9",expiresAt:"\uB9CC\uB8CC: {{date}}",createdAt:"\uC0DD\uC131: {{date}}",confirmDelete:"\uC0AD\uC81C\uD560\uAE4C\uC694?",deactivate:"\uBE44\uD65C\uC131\uD654",delete:"\uC0AD\uC81C",status:{active:"\uC720\uD6A8",expired:"\uB9CC\uB8CC",inactive:"\uBE44\uD65C\uC131"}},kf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},Af={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},Bf={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",validationError:{brandAndProduct:"\uBE0C\uB79C\uB4DC\uC640 \uC81C\uD488\uBA85\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."},addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C",type:{hearingAid:"\uBCF4\uCCAD\uAE30",cochlearImplant:"\uC778\uACF5\uC640\uC6B0"}},Nf={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",daily:"\uC77C\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"},subscriptionStatus:{active:"{{pct}}% \uD65C\uC131",expired:"{{pct}}% \uB9CC\uB8CC",unused:"{{pct}}% \uBBF8\uC0AC\uC6A9"}},Df={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",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.",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.",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."},count:"{{n}}\uAC1C",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",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.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4.",selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},searchLabel:{error:"\uB370\uC774\uD130 \uBD88\uB7EC\uC624\uAE30 \uC2E4\uD328",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},Sf={sentenceTyping:{roundCount:"{{rounds}}\uBB38\uC81C \xB7 \uBB38\uC81C\uB2F9 {{timeLimit}}\uCD08"},wordDefense:{me:"\uB098"},dictation:{title:"\uBC1B\uC544\uC4F0\uAE30",desc:"\uBB38\uC7A5\uC744 \uB4E3\uACE0 \uC815\uD655\uD788 \uBC1B\uC544\uC801\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC131 \uC7AC\uC0DD, \uC785\uB825 \uD544\uB4DC, \uC815\uB2F5 \uBE44\uAD50"},result:{heading:"{{number}}\uB2E8\uACC4 \uD574\uB2F5",retry:"\uB2E4\uC2DC \uD480\uAE30"},common:{accuracy:"{{pct}}% \uC815\uD655\uB3C4"},soundMatch:{title:"\uC18C\uB9AC \uB9E4\uCE6D",desc:"\uAC19\uC740 \uC18C\uB9AC\uB97C \uAC00\uC9C4 \uB2E8\uC5B4 \uB610\uB294 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB9E4\uCE6D\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uD50C\uB808\uC774 \uBC84\uD2BC, \uD0C0\uC774\uBA38, \uC810\uC218 \uC9D1\uACC4"},orderSequence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uD769\uC5B4\uC9C4 \uBB38\uC7A5 \uC870\uAC01\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uBB38\uC7A5 \uC138\uD2B8, \uC21C\uC11C \uD655\uC778 \uC778\uD130\uD398\uC774\uC2A4"},speedListen:{title:"\uC18D\uB3C4 \uB4E3\uAE30",desc:"\uC2DC\uAC04 \uC81C\uD55C \uB0B4\uC5D0 \uBB38\uC7A5\uC758 \uB2E8\uC5B4 \uC218\uB97C \uB9DE\uCD94\uB294 \uB3C4\uC804\uD615 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC81C\uD55C\uC2DC\uAC04, \uC810\uC218\uD310"},noiseChallenge:{title:"\uC18C\uC74C \uCC4C\uB9B0\uC9C0",desc:"\uBC30\uACBD \uC18C\uC74C \uC18D\uC5D0\uC11C \uBB38\uC7A5\uC744 \uBD84\uBCC4\uD558\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB2E4\uC591\uD55C \uC18C\uC74C \uB808\uBCA8, \uC810\uC218 \uC9D1\uACC4"},fastListen:{title:"\uBE60\uB978 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB4E4\uB824\uC8FC\uACE0 \uD575\uC2EC \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB09C\uC774\uB3C4\uBCC4 \uC18D\uB3C4, \uD0C0\uC774\uBA38"},shadowing:{title:"\uC250\uB3C4\uC789",desc:"\uBB38\uC7A5\uC744 \uB530\uB77C \uB9D0\uD558\uBA70 \uBC1C\uC74C\uACFC \uC5B5\uC591\uC744 \uC5F0\uC2B5\uD558\uB294 \uBAA8\uB4DC\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC7AC\uC0DD, \uB179\uC74C, \uBE44\uAD50 \uD53C\uB4DC\uBC31"},phonemeHunt:{title:"\uC74C\uC6B4 \uCC3E\uAE30",desc:"\uD2B9\uC815 \uC74C\uC6B4(\uBC1C\uC74C)\uC744 \uD3EC\uD568\uD55C \uB2E8\uC5B4\uB97C \uCC3E\uC544\uB0B4\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC6B4 \uD544\uD130, \uD78C\uD2B8 \uAE30\uB2A5"}},Ef={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
832
+ `),this.name="StorageNotConfiguredError"}};function R0(e){$0(e)}function Rs(e,t){if(!e)return null;const a=pa();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function Ps(e){if(!e)return null;const t=pa();if(!t)throw new $s("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Is(e){const t=pa();if(!t)throw new $s("downloadSound");return t.download(e)}function P0(){return pa()?.noiseBaseUrl??"/sounds/noise"}function Fs(){const e=Number(pa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function I0(e){const t=AbortSignal.timeout;if(typeof t=="function")return t.call(AbortSignal,e);const a=new AbortController;return setTimeout(()=>a.abort(),e),a.signal}const Os="__ihab_core_tts_config__";function Ar(){return globalThis[Os]?.urlResolver??null}function F0(){return globalThis[Os]?.fallbackUrlResolver??null}const O0="__ihab_core_pronunciation_resolver__";function V0(){return globalThis[O0]??null}let wn=null;const ma=new WeakMap,Br=new WeakMap,Nr=new WeakMap;let Vs=!1;const Hs=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function H0(){if(Vs||typeof document>"u")return;Vs=!0;const e=()=>{try{wn&&wn.state!=="running"&&wn.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function zs(){if(wn)return wn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(wn=new e,H0(),wn):null}catch{return null}}function Dr(){try{wn?.resume()}catch{}}function Sr(e,t){const a=ma.get(t);if(a)return a;try{const r=e.createMediaElementSource(t),s=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,s.gain.value=Hs(Br.get(t)??t.volume),r.connect(s),s.connect(i),s.connect(e.destination);try{t.volume=1}catch{}const l={gain:s,analyser:i};return ma.set(t,l),l}catch{return null}}function La(e){if(!e)return Promise.resolve(null);const t=ma.get(e);if(t)return Promise.resolve(t.analyser);const a=zs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Sr(a,e)?.analyser??null);const r=Nr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Sr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Nr.delete(e)});return Nr.set(e,s),s}function z0(e){if(!e)return null;const t=ma.get(e);if(t)return t.analyser;const a=zs();return a?a.state==="running"?Sr(a,e)?.analyser??null:(La(e),null):null}function kn(e,t){const a=Hs(t);Br.set(e,a);const r=ma.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const s=r.gain.gain;try{const i=r.gain.context.currentTime;s.cancelScheduledValues(i),s.setTargetAtTime(a,i,.01)}catch{try{s.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function $a(e){return Br.get(e)??e.volume}function W0(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const s=t[r];a+=s*s}return Math.sqrt(a/t.length)}const q0="__ihab_core_image_config__";function Un(){return globalThis[q0]??null}const Ws="word_image_existence_map_v1";let $n=null;const Ra=new Map;function U0(){if($n)return $n;try{const e=typeof localStorage<"u"?localStorage.getItem(Ws):null,t=e?JSON.parse(e):null;$n=t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{$n={}}return $n}let Er=null;function G0(){Er||(Er=setTimeout(()=>{Er=null;try{typeof localStorage<"u"&&$n&&localStorage.setItem(Ws,JSON.stringify($n))}catch{}},200))}function K0(e,t){return`${e}_${t??1}`}async function qs(e,t){const a=U0(),r=K0(e,t);if(r in a)return a[r];if(Ra.has(r))return Ra.get(r);const s=Un();if(!s)return!1;const i=s(e,t);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:I0(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Ra.delete(r),c===null?!1:(a[r]=c,G0(),c)));return Ra.set(r,l),l}const Us=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],Gs=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],Y0=["","\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 ha(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 Z0(e){const t=ha(e[0]||"");return t?Us[t.cho]:""}function X0(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=l=>Us.includes(l),r=l=>Gs.includes(l),s=t.map(l=>a(l)?"cho":r(l)?"jung":ha(l)?"syl":"other"),i=t.map(l=>ha(l));if(s.includes("other")){const l=e.toLowerCase();return c=>c.normalize("NFC").toLowerCase().includes(l)}return l=>{const c=[...l.normalize("NFC")];for(let u=0;u+t.length<=c.length;u++){let d=!0;for(let p=0;p<t.length;p++){const m=c[u+p],h=s[p];if(h==="cho"){if(Z0(m)!==t[p]){d=!1;break}}else if(h==="jung"){const g=ha(m);if(!g||Gs[g.jung]!==t[p]){d=!1;break}}else{const g=i[p];if(g&&g.jong===0){const C=ha(m);if(!C||C.cho!==g.cho||C.jung!==g.jung){d=!1;break}}else if(m!==t[p]){d=!1;break}}}if(d)return!0}return!1}}const J0={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"]};Object.fromEntries(Object.entries(J0).map(([e,t])=>[t.join(""),Y0[Number(e)]]));const Q0="word_pair_index_v2",e2="word_pair_index_sig_v2";let Pa=null;function t2(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(Q0),t=localStorage.getItem(e2);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function n2(){if(Pa)return Pa;const e=t2();return e?(Pa=e.index,e.sig,Pa):null}const a2={\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"}},Tr=/[ㄱ-ㅎ]/,r2=/[ㅏ-ㅣ]/;function Ks(e){e=e.normalize("NFC");for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||Tr.test(a)||r2.test(a))return a}return null}function o2(e){const t=Ks(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Tr.test(t)?"\uC774":"\uAC00"}function s2(e){return`${e}${o2(e)}`}function i2(e){const t=Ks(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Tr.test(t)?"\uC744":"\uB97C"}function l2(e){return`${e}${i2(e)}`}function c2(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function fa(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(t()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const u2=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof wt?.t=="function"?wt.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function Ys(e,t){if(t===void 0&&(t=u2()),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 d2="__ihab_core_word_pool__";function Zs(){return globalThis[d2]??null}const Xs=globalThis;function Js(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function p2(e){Js("time",()=>Xs.__ihabTrainingTimeLogger?.(e))}function m2(e){Js("completion",()=>Xs.__ihabTrainingCompletionLogger?.(e))}function Ot(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function h2(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 f2(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Ot(r.contextCode)??Ot(r.itemId)??Ot(r.itemCode)??Ot(r.id),question:Ot(r.question)??Ot(r.q)??Ot(r.sentence)??Ot(r.text)??Ot(r.prompt)??Ot(r.word)??Ot(r.targetSyllable),answer:Ot(r.answer),selected:Ot(r.selectedText)??Ot(r.selected),correct:h2(r)}}):[]}const jr=globalThis;async function C2(){try{return await jr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function Qs(e){const t=a=>{};try{const a=jr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function Ia(e){try{jr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function g2(e){if(typeof document<"u"){const t=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),t&&t!==document.activeElement&&typeof t.focus=="function"&&t.isConnected)try{t.focus({preventScroll:!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 b2=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function ei(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=b2.exec(a);t=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else t=new Date(e);return Number.isNaN(t.getTime())?null:t}function Ca(){return Lr(new Date)}function Mr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:Ca()}function Gn(){return v2(Ca())}const y2=540*60*1e3;function ti(e,t,a){return new Date(Date.UTC(e,t,a)-y2)}function v2(e){const[t,a,r]=e.split("-").map(Number);return new Date(t,(a||1)-1,r||1)}function Lr(e){if(e==null||e==="")return"";const t=ei(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function ni(e,t){if(!e)return"";const a=ei(e);if(!a)return"";const r=a.getTime(),s=Math.max(0,Math.floor((Date.now()-r)/1e3)),i=Math.floor(s/60),l=Math.floor(i/60),c=Math.floor(l/24),u=Math.floor(c/7),d=Math.floor(c/30),p=Math.floor(c/365);return i<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):i<60?t("store.time.minutesAgo",{n:i}):l<24?t("store.time.hoursAgo",{n:l}):c<7?t("store.time.daysAgo",{n:c}):u<5?t("store.time.weeksAgo",{n:u}):c<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:p})}function ai(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=t;if(!e)return i;const l=Lr(e instanceof Date?e:String(e));if(!l)return i;const[c,u,d]=l.split("-"),p=r?u:String(Number(u)),m=r?d:String(Number(d));return`${c}${a}${p}${a}${m}${s?".":""}`}function Kn(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function ri(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),s=Number(a[2]),i=a[1].padStart(2,"0");return s===0?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:s,mm:a[2]})}function $r(e){return(e??0).toLocaleString("ko-KR")}const x2=[{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"}]}],_2=[{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"}];function oi(){return x2}function w2(){return _2}const k2=[],A2=[],B2=[],N2=[];function D2(){return{LISTEN_IN_NOISE:k2,SHORT_STORY:A2,LONG_STORY:B2,ORDERING_SENTENCE:N2}}const S2=[{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."}],si={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function E2(e){return S2.map(t=>{const a=si[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let Fa=null,ii=null,li=null;function T2(){const e=Zs();if(e&&e.entries.length>0){const t=n2();if(Fa&&ii===e&&li===t)return Fa;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:t?.[s.word]?[...t[s.word].cho??[],...t[s.word].jung??[],...t[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return Fa=r,ii=e,li=t,Fa}return[]}new Proxy([],{get(e,t){const a=T2(),r=a[t];return typeof r=="function"?r.bind(a):r}});const j2="0.155.1";function M2(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const t=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(t)}function L2(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&M2(r.attrValue)&&(r.keepAttr=!1)};wr.addHook("uponSanitizeAttribute",t);try{return wr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{wr.removeHook("uponSanitizeAttribute",t)}}function $2(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[c,u]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=kr(e):/^(Logo|Symbol)/i.test(d)?p=kr(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),s(null),l(null),a(p)},[e]),o.useEffect(()=>{if(!t)return;let d=!1;async function p(){try{let m=await fetch(t);m.ok||(m=await fetch(t));const h=m.headers.get("content-type")||"";if(d)return;if(h.includes("svg")){s("mask");return}if(h.startsWith("image/")){s("img");return}const g=await fetch(t);if(!g.ok)throw new Error("not ok");const C=await g.text();if(d)return;if(/^\s*<svg[\s>]/i.test(C)){const b=L2(C);if(!b){s("none");return}l(b),s("inline");return}s("none")}catch{d||s("none")}}return p(),()=>{d=!0}},[t]),o.useEffect(()=>{let d=!1,p=null;return r==="mask"&&t&&fetch(t).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{d||(p=URL.createObjectURL(m),u(p))}).catch(()=>{d||s("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:c}}function Ge(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=s??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=l??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,C=Xh(g),{iconToUse:b,mode:_,svgText:f,blobUrl:y}=$2(g),x=(k,B={})=>n.jsx("span",{className:d,style:c,...B,children:k}),v=typeof u=="number"?{width:u,height:u,objectFit:"contain"}:null,A=(k,B={})=>n.jsx("img",{src:k,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...B,style:v?{...B.style,...v}:B.style});if(!t)return null;if(typeof t!="string")return x(t);if(t==="none")return x(n.jsx("span",{className:h,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(C)try{return x(o.createElement(C,{className:h,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(_==="mask"){const k={"--icon-url":y?`url(${y})`:`url(${b})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return x(n.jsx("span",{className:m,style:k}),{"aria-hidden":"true"})}return _==="img"?x(A(b,{onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):_==="inline"?x(n.jsx("span",{className:h,dangerouslySetInnerHTML:f?{__html:f}: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 A(kr(t),{style:c,onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}});const w=typeof u=="number"?u:20,D=`<svg width="${w}" height="${w}" 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(n.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:D}}),{"aria-hidden":"true"})}function ci(e){const[t,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const i=o.useCallback(()=>{if(!e||r.current)return;const l=e();if(l&&typeof l.then=="function"){r.current=!0,a(!0);const c=()=>{r.current=!1,s.current&&a(!1)};l.then(c,c)}},[e]);return{pending:t,press:i}}function R2({icon:e,emoji:t,title:a,message:r,hint:s,action:i,compact:l,className:c}){const{pending:u,press:d}=ci(i?.onClick);return n.jsxs("div",{className:Be("empty-state",l&&"empty-state--compact",c),children:[t&&n.jsx("span",{className:"empty-state__emoji",children:t}),e&&n.jsx(Ge,{icon:e,className:"empty-state__icon"}),a&&n.jsx("p",{className:"empty-state__title body-2",children:a}),r&&n.jsx("p",{className:"empty-state__message body-3",children:r}),s&&n.jsx("p",{className:"empty-state__hint caption-1",children:s}),i&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:d,disabled:u,"aria-busy":u||void 0,children:[i.icon&&n.jsx(Ge,{icon:i.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:i.label})]})]})}function P2({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=fe.useTranslation(),{pending:c,press:u}=ci(r);return n.jsxs("div",{className:Be("empty-state","error-state",i),role:"alert",children:[n.jsx(Ge,{icon:a,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"empty-state__hint caption-1",children:t}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:u,disabled:c,"aria-busy":c||void 0,children:[n.jsx(Ge,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:s??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function I2({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:c=""}){const u=o.useId(),d=`${u}-title`,p=`${u}-desc`,m=`${u}-cta`,h=()=>{i||l?.()};return n.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":d,"aria-describedby":`${p} ${m}`,onClick:h,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),h())},className:Be("action-card",`action-card--${s}`,i&&"action-card--disabled",c),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(Ge,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:p,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:m,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(Ge,{icon:"arrow-right",size:18})})]})]})})}function F2({as:e="div",className:t="",children:a,storage:r,...s}){r&&R0({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,noiseFileGain:r.noiseFileGain});const i=Be("ihabdevteam-core-scope",t);return n.jsx(e,{className:i,...s,children:a})}function Rr(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const i=Array.from(a.querySelectorAll(hn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],c=i[i.length-1],u=document.activeElement,d=u===a;s.shiftKey&&(u===l||d)?(s.preventDefault(),c.focus()):!s.shiftKey&&u===c&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const hn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Pr=new WeakMap;function Ir(e,t){e&&Pr.set(e,t)}function Fr(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!Pr.has(r);)r=r.parentElement;if(!r)return t;t=Pr.get(r)??null}return t}function ui(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function Oa(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(ui(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(hn)).filter(u=>!(e&&e.contains(u))&&ui(u));let i=null,l=null;for(const u of s)r.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_PRECEDING?i=u:l||(l=u);const c=i??l;return c?.focus(),c}function O2({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:c}=fe.useTranslation(),[u,d]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const b=p.current;b&&b.contains(document.activeElement)&&Oa(b),d(!0)},[]);if(u)return null;const h=`notice-box notice-box--${s} body-2 ${l}`.trim(),g=i&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:h,role:"note",children:[a.map((b,_)=>n.jsxs("div",{className:"notice-box__inner",children:[b.title?n.jsx("span",{className:"notice-box__title body-3",children:b.title}):null,n.jsx("div",{className:"notice-box__body",children:b.lines&&b.lines.length?n.jsx("div",{children:b.lines.map((f,y)=>n.jsx("span",{className:"notice-box__line body-3",children:f},y))}):b.children??null})]},_)),g]});const C=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((b,_)=>n.jsx("li",{className:"notice-box__line",children:b},_))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:p,className:h,role:"note",children:[C,g]})}const Yn=[];let Va=!1;function di(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=Yn[Yn.length-1];t&&(e.stopPropagation(),t())}function Rn(e){return Yn.push(e),!Va&&typeof document<"u"&&(document.addEventListener("keydown",di),Va=!0),()=>{const t=Yn.lastIndexOf(e);t>=0&&Yn.splice(t,1),Yn.length===0&&Va&&typeof document<"u"&&(document.removeEventListener("keydown",di),Va=!1)}}const pi=o.createContext(null);function V2(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const mi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function H2(e){const t=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Uo.useSyncExternalStore(t,()=>mi(e),()=>!1)}function z2(e){const[t,a]=o.useState(mi(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",s):i.addListener&&i.addListener(s),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",s):i.removeListener&&i.removeListener(s)}},[e]),t}const W2=typeof Uo.useSyncExternalStore=="function"?H2:z2;function en(e){const t=o.useContext(pi),a=W2(e);return t&&typeof t.mobile=="boolean"&&V2(e)?t.mobile:a}const q2="(prefers-reduced-motion: reduce)";function Or(){return en(q2)}function An(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:g=!0,header:C}=e||{},b=o.useRef(null),[_,f]=o.useState({position:"fixed",left:0,top:-9999}),[y,x]=o.useState(!1),[v,A]=o.useState("bottom"),[w,D]=o.useState(!1),[k,B]=o.useState(!1),N=!t&&!a,M=o.useCallback((q=!1)=>{if(k&&h)return;const H=a?a.getBoundingClientRect():t;if(!H||!b.current)return;const z=b.current,{offsetWidth:Z,offsetHeight:I}=z,T=window.innerWidth,O=window.innerHeight,R=T-H.right,j=H.left,L=H.top,Q=O-H.bottom;let J=0,oe=0,ge="top";if(L>=I+r)ge="top",oe=H.top-r-I,J=H.left+H.width/2-Z/2;else if(Q>=I+r)ge="bottom",oe=H.bottom+r,J=H.left+H.width/2-Z/2;else if(R>=Z+r)ge="right",J=H.right+r,oe=H.top+H.height/2-I/2;else if(j>=Z+r)ge="left",J=H.left-r-Z,oe=H.top+H.height/2-I/2;else{const U=Math.max(L,Q,R,j);U===L?(ge="top",oe=H.top-r-I,J=H.left+H.width/2-Z/2):U===Q?(ge="bottom",oe=H.bottom+r,J=H.left+H.width/2-Z/2):U===R?(ge="right",J=H.right+r,oe=H.top+H.height/2-I/2):(ge="left",J=H.left-r-Z,oe=H.top+H.height/2-I/2)}const Me=Number.isFinite(Number(s))?Number(s):8;J=Math.min(Math.max(J,Me),T-Z-Me),oe=Math.min(Math.max(oe,Me),O-I-Me);const Ne=Math.round(J),ie=Math.round(oe);q&&b.current?(b.current.style.left=`${Ne}px`,b.current.style.top=`${ie}px`,b.current.dataset.placement=ge):(A(ge||v),f({position:"fixed",left:Ne,top:ie}),D(!0))},[k,h,a,t,r,s,v]);o.useLayoutEffect(()=>{if(N)return;if(k&&h){f({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),D(!0);return}M();const q=requestAnimationFrame(()=>M());return()=>cancelAnimationFrame(q)},[t,a,r,p,s,N,k,h,M]),o.useEffect(()=>{if(N||k&&h||!b.current||typeof ResizeObserver>"u")return;const q=new ResizeObserver(()=>{t&&M()});return q.observe(b.current),()=>q.disconnect()},[t,p,s,N,k,h,M]),o.useEffect(()=>{if(N||k&&h)return;const q=()=>M(!0),H=z=>{if(!a&&i){const Z=z.target;if(Z&&b.current&&b.current.contains(Z))return;try{if(Z&&Z.closest&&Z.closest("[data-tooltip-ignore]"))return}catch{}F.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",H,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",q),document.removeEventListener("scroll",H,{capture:!0})}},[t,a,i,r,p,s,N,k,h,M]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const q=window.matchMedia("(max-width: 768px)"),H=()=>B(!!q.matches);H();try{q.addEventListener?q.addEventListener("change",H):q.addListener(H)}catch{try{q.addListener(H)}catch{}}return()=>{try{q.removeEventListener?q.removeEventListener("change",H):q.removeListener(H)}catch{}}},[]);const P=o.useRef(!1),$=o.useRef(null),W=Or(),S=o.useCallback((q=!1)=>{if(i&&!(y||P.current)){if(P.current=!0,q){x(!0);try{i&&i()}catch{P.current=!1,x(!1)}return}x(!0),$.current=setTimeout(()=>{$.current=null;try{i&&i()}catch{P.current=!1,x(!1)}},W?0:200)}},[y,i,x,W]);o.useEffect(()=>()=>{$.current&&clearTimeout($.current)},[]),o.useEffect(()=>{if(N)return;const q=Z=>{const I=b.current;if(!I)return;const T=Z.target;if(T&&!I.contains(T)){try{if(T.closest&&T.closest("[data-tooltip-ignore]"))return}catch{}l&&S(!0)}},H=Z=>{const I=b.current;if(!I)return;const T=Z.target;if(T&&!I.contains(T)){try{if(T.closest&&T.closest("[data-tooltip-ignore]"))return}catch{}l&&S(!0)}},z=Z=>{if(Z.key==="Tab"){const I=b.current;if(!I)return;const T=I.querySelectorAll(hn);if(!T||T.length===0)return;const O=T[0],R=T[T.length-1],j=document.activeElement;Z.shiftKey?j===O&&(Z.preventDefault(),R.focus()):j===R&&(Z.preventDefault(),O.focus())}};return document.addEventListener("pointerdown",q,!0),document.addEventListener("click",H,!0),document.addEventListener("keydown",z),()=>{document.removeEventListener("pointerdown",q,!0),document.removeEventListener("click",H,!0),document.removeEventListener("keydown",z)}},[i,l,S,N]);const F=o.useRef(S);o.useEffect(()=>{F.current=S});const Y=!!i;o.useEffect(()=>{if(!(N||!Y))return Rn(()=>F.current())},[N,Y]),o.useEffect(()=>{const q=()=>{S(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",q),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",q)}},[S]);const G=n.jsxs("div",{ref:b,className:`tooltip-content ${N?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${y?"is-closing":""} ${c} ${k&&h?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:N?{}:{..._,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":v,"data-left":N?"":_.left,"data-top":N?"":_.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:[C!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:C}),p]});if(N||typeof document>"u")return G;if(m||k&&h){const q=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&S(!0)}}),G]});return Wt.createPortal(q,document.body)}return Wt.createPortal(G,document.body)}function Bn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?n.jsx(An,{anchorRect:t,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:n.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Pn(e){const{t}=fe.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:c,offset:u=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:n.jsx(An,{anchorRect:a,offset:u,onClose:c,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:"tooltip-description__box",children:[r&&n.jsx("span",{className:"tooltip-description__title body-2",children:r}),n.jsx("ol",{className:"tooltip-description__items",children:p.map((m,h)=>n.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),m.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),n.jsx("span",{children:m.text})]},h))})]})})}function ga(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let Vr=0,hi=!1;function fi(){hi||typeof document>"u"||(hi=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(Vr=Date.now())},!0),document.addEventListener("touchstart",()=>{Vr=Date.now()},{capture:!0,passive:!0}))}fi();function Zn(e){return!!e&&e.pointerType==="touch"}function Xn(e=1e3){return fi(),Date.now()-Vr<e}function Hr(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=ga(e),l=ga(t),c=o.useRef(null),u=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const p=m=>{const h=m,g=m.target,C=a.current,b=!!(g&&C&&C.contains(g));if(h.pointerType!=="touch"){b&&(c.current=null);return}if(b){c.current=i.current;return}c.current=null,i.current&&!(g&&g.closest?.(".tooltip-content"))&&l.current(!1,C)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[r,a,i,l]);const d=o.useCallback(p=>{const m=c.current;return m===null?!1:(c.current=null,u.current=Date.now(),l.current(!m,p??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const p=a.current,m=p?.parentElement;if(!p||!m)return;let h=null;const g=_=>{const f=_.changedTouches?.[0];if(!f)return!1;const y=p.getBoundingClientRect();return f.clientX>=y.left&&f.clientX<=y.right&&f.clientY>=y.top&&f.clientY<=y.bottom},C=_=>{h=g(_)?i.current:null},b=_=>{const f=h;h=null,!(f===null||Date.now()-u.current<700||!g(_))&&(c.current=null,u.current=Date.now(),l.current(!f,p))};return m.addEventListener("touchstart",C,{passive:!0}),m.addEventListener("touchend",b),()=>{m.removeEventListener("touchstart",C),m.removeEventListener("touchend",b)}},[r,s,a,i,l]),{touchPress:d}}function U2(e,t){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:c,icon:u,rightIcon:d,label:p,count:m,subLabel:h,children:g,ariaLabel:C,variant:b="default",align:_="center",selected:f,toggleable:y=!1,ariaExpanded:x,ariaControls:v,disabled:A=!1,useLabel:w=!0,useBorder:D=!0,useBG:k=!0,useDisabledCovered:B=!1,useDisabledInvisible:N=!1,width:M,minWidth:P,onClick:$,onDisabledClick:W,showTooltipInfo:S=!1,tooltipInfoText:F=null,tooltipDescription:Y=null,tooltipOnly:G=!1,iconSize:q="medium",iconColor:H,shape:z="rounded",color:Z,className:I,...T}=e,O=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),R=O.match(/^\d+$/)?`button${O}`:`button-${O}`,j=Number(a),L=!isNaN(j)&&j<40?"button-2":"button-1",Q=p??g,J=A||!!T.disabled,oe=J?B?"disabled-covered":N?"disabled-invisibled":"disabled":b,ge=oe?`button--variant-${oe}`:"",Me=_?`button--align-${_}`:"",Ne=z?`button--shape-${z}`:"",ie=typeof H=="string"&&H.startsWith("--")?`var(${H})`:H,U={...M?{width:typeof M=="number"?`${M}px`:M}:{},...P?{minWidth:typeof P=="number"?`${P}px`:P}:{},...D?{}:{"--button-border":J?"0":"1px solid transparent"},...ie?{"--button-icon-color":ie}:{},...Z?{"--color-main":Z}:{}},se=w===!1?"":Q,me=Array.isArray(se)?se.length>0:!!se,_e=!!d,we=r??(me||u||_e?"bar":"dot"),De=`${R}--${we}`,xe=o.useRef(null),Ae=o.useRef(t);Ae.current=t;const Te=o.useCallback(Le=>{xe.current=Le;const Ke=Ae.current;typeof Ke=="function"?Ke(Le):Ke&&(Ke.current=Le)},[]),ae=o.useRef(J),[ee,de]=o.useState(!!f),[te,he]=o.useState(!1),[be,Ye]=o.useState(null),Ve=o.useCallback(()=>he(!1),[]),[qe,Se]=o.useState(!1),Ue=o.useId();o.useEffect(()=>{typeof f=="boolean"&&de(f)},[f]),o.useEffect(()=>{if(ae.current&&!J&&xe.current){const Le=xe.current;let Ke=!1;try{Ke=Le.matches(":focus:not(:focus-visible)")}catch{Ke=!1}Ke&&Le.blur(),Le.style.pointerEvents="none";const Dt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{xe.current&&(xe.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Dt)}ae.current=J},[J]);const $e=typeof f=="boolean"?!!f:ee,Ie=typeof x=="boolean"?void 0:y||typeof f=="boolean"?$e?"true":"false":T["aria-pressed"],He=Be("button",R,De,ge,Me,Ne,$e?"is-selected":null,k?null:"button--no-bg",G?"button--tooltip-only":null,I),at=`button__icon button__icon--${q}`,ot=Array.isArray(h)?h:h!==void 0?[h]:[],We=()=>{if(Array.isArray(se))return se.map((Ke,Dt)=>{const vt=ot[Dt];return n.jsxs("span",{className:`button__label-text${vt!==void 0?" button__label-text--has-sub":""}`,children:[Ke,vt!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:vt})]},Dt)});const Le=h!==void 0;return n.jsxs("span",{className:`button__label-text${Le?" button__label-text--has-sub":""}`,children:[se,m!=null&&n.jsx("span",{className:"button__count",children:m}),Le&&n.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},Xe=Le=>{typeof f!="boolean"&&!y&&de(!1),Le.currentTarget.blur()},Ct=Le=>{J||(typeof T.onMouseLeave=="function"&&T.onMouseLeave(Le),Xe(Le))},At=Le=>{if(G&&Qe&&Ze.touchPress(Le.currentTarget),J){Qe&&Ze.touchPress(Le.currentTarget),Le.preventDefault(),W?.(Le);return}typeof f!="boolean"&&y&&de(Ke=>!Ke),$?.(Le)},Et=o.useCallback(()=>{(S||Y)&&(he(!0),Ye(xe.current?.getBoundingClientRect()??null))},[S,Y]),ut=o.useCallback(()=>{(S||Y)&&(he(!1),Ye(null))},[S,Y]),Qe=!!(S||Y),Ze=Hr(te,Le=>{Le?Et():ut()},xe,{enabled:Qe&&(J||G),fallbackOnParent:Qe&&J}),Oe={...T};delete Oe.disabled,delete Oe.className,delete Oe.faded,delete Oe.useFaded,delete Oe.loading,delete Oe.onMouseLeave,delete Oe.onPointerEnter,delete Oe.onPointerLeave,delete Oe.onPointerUp,delete Oe.onFocus,delete Oe.onBlur,J&&(Object.keys(Oe).forEach(Le=>{/^on[A-Z]/.test(Le)&&typeof Oe[Le]=="function"&&delete Oe[Le]}),Oe["aria-disabled"]="true");const rt=(typeof S=="string"?S:null)??(typeof F=="string"?F:null)??(typeof C=="string"?C:null)??(typeof Q=="string"?Q:null)??void 0,et=typeof C=="string"?C:typeof Q=="string"?Q:rt,bt=Y?[Y.title,...Y.items??[]].filter(Boolean).join(". "):S&&rt&&rt!==et?rt:"",ze=[typeof T["aria-describedby"]=="string"?T["aria-describedby"]:void 0,bt?Ue:null].filter(Boolean).join(" ")||void 0,it=(Le,Ke)=>n.jsx(Ge,{icon:Le,label:Ke??et,className:at,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Bt=()=>we==="dot"?n.jsxs(n.Fragment,{children:[it(u),me&&n.jsx("span",{className:`button__label ${L}`,children:We()})]}):_==="center"&&u?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:it(u)}),me&&n.jsx("span",{className:`button__label ${L}`,children:We()})]}),_e&&n.jsx("span",{className:"button__right",children:it(d)})]}):n.jsxs(n.Fragment,{children:[u&&n.jsx("span",{className:"button__left",children:it(u,C??Q)}),me&&n.jsx("span",{className:`button__label ${L}`,children:We()}),_e&&n.jsx("span",{className:"button__right",children:it(d)})]}),Nt=!!i&&!J;return n.jsxs(n.Fragment,{children:[n.jsxs(Nt?"a":"button",{...Oe,ref:Te,...Nt?{href:i,target:l,rel:c??(l==="_blank"?"noreferrer":void 0)}:{type:s,disabled:J&&!W&&!qe},className:He,"aria-pressed":Ie,"aria-expanded":typeof x=="boolean"?x:T["aria-expanded"],"aria-controls":v??T["aria-controls"],"aria-label":et,"aria-disabled":J&&(Nt||W||qe)?!0:void 0,"aria-describedby":ze,style:U,onClick:At,onMouseLeave:Ct,onPointerEnter:Le=>{Zn(Le)||Et(),!J&&typeof T.onPointerEnter=="function"&&T.onPointerEnter(Le)},onPointerLeave:Le=>{Zn(Le)||ut(),!J&&typeof T.onPointerLeave=="function"&&T.onPointerLeave(Le)},onPointerUp:Le=>{J&&Qe&&Ze.touchPress(Le.currentTarget),!J&&typeof T.onPointerUp=="function"&&T.onPointerUp(Le)},onFocus:Le=>{Se(!0),Xn()||Et(),!J&&typeof T.onFocus=="function"&&T.onFocus(Le)},onBlur:Le=>{Se(!1),J||Xe(Le),ut(),!J&&typeof T.onBlur=="function"&&T.onBlur(Le)},children:[Bt(),bt?n.jsx("span",{id:Ue,hidden:!0,"aria-label":bt}):null]}),te&&Y?n.jsx(Pn,{anchorRect:be,title:Y.title,items:Y.items,onClose:Ve}):te&&rt?n.jsx(Bn,{anchorRect:be,text:rt,onClose:Ve}):null]})}const ce=o.forwardRef(U2);ce.displayName="Button";var G2={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\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."},K2={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],yearMonth:"{{year}}\uB144 {{month}}\uC6D4",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704"},Y2={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},Z2={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},X2={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},J2={selected:"\uC120\uD0DD\uB428"},Q2={placeholder:"\uC120\uD0DD"},ef={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},tf={biArea:"BI \uC601\uC5ED",biSymbol:"BI \uC2EC\uBCFC",logoMalgwi:"\uB9D0\uADC0 \uB85C\uACE0",logoManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0",menuOpen:"\uBA54\uB274 \uC5F4\uAE30",utilMenu:"\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274",menuClose:"\uBA54\uB274 \uB2EB\uAE30"},nf={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C"},af={language:{training:{label:"\uD6C8\uB828 \uC5B8\uC5B4",sub:"\uD6C8\uB828\uC5D0 \uC0AC\uC6A9\uB418\uB294 \uB2E8\uC5B4\uC640 \uC74C\uC131 \uC5B8\uC5B4"}},notifications:{title:"\uC54C\uB9BC"},display:{fontSize:{small:"\uC791\uAC8C",large:"\uD06C\uAC8C"}},cache:{title:"\uCE90\uC2DC \uAD00\uB9AC",confirmMessage:"\uCE90\uC2DC({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",delete:"\uC0AD\uC81C",deleting:"\uC0AD\uC81C \uC911",cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"},trainingRecord:{label:"\uD6C8\uB828 \uAE30\uB85D",sub:"\uC624\uB298\uC758 \uD6C8\uB828 \uC9C4\uD589\uB960 \uBC0F \uD559\uC2B5 \uC77C\uC218"}}},button:{save:"\uC124\uC815 \uC800\uC7A5"},popup:{clear:{confirm:"\uCD08\uAE30\uD654"},update:{confirm:"\uC5C5\uB370\uC774\uD2B8"},cache:{title:"{{label}} \uC0AD\uC81C",message:"{{label}}({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"}},saved:"\u2713 \uC800\uC7A5\uB428",account:{title:"\uACC4\uC815",delete:{sub:"\uD0C8\uD1F4 \uD6C4 30\uC77C \uC774\uB0B4 \uC7AC\uAC00\uC785 \uC2DC \uBCF5\uAD6C \uAC00\uB2A5\uD569\uB2C8\uB2E4."}}},rf={addButton:"\uC774\uC6A9\uAD8C \uCD94\uAC00\uD558\uAE30",couponButton:"\uCFE0\uD3F0 \uC785\uB825",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",segment:{personal:"\uB9D0\uADC0",org:"\uB9D0\uADC0\uB9E4\uB2C8\uC800"},org:{title:"\uD604\uC7AC \uC774\uC6A9\uAD8C",disc:"\uAE30\uAD00\uC5D0\uC11C \uC0AC\uC6A9 \uC911\uC778 \uC774\uC6A9\uAD8C \uC815\uBCF4\uC785\uB2C8\uB2E4.",empty:"\uB4F1\uB85D\uB41C \uAE30\uAD00 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",fallbackTitle:"\uAE30\uAD00 \uC774\uC6A9\uAD8C",startDate:"\uC2DC\uC791\uC77C",endDate:"\uB9CC\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04",duration:"\uC774\uC6A9 \uAE30\uAC04"},active:{infoTitle:"\uC774\uC6A9 \uC815\uBCF4",refund:"\uD658\uBD88 \uC694\uCCAD",startDate:"\uC0AC\uC6A9 \uC2DC\uC791\uC77C",endDate:"\uC885\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04"},pending:{title:"\uBCF4\uC720",empty:"\uB300\uAE30 \uC911\uC778 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}},of={profile:{planSuffix:"\uD50C\uB79C",plan:"\uD50C\uB79C"},basicInfo:{name:{placeholder:"\uD64D\uAE38\uB3D9"}},security:{title:"\uBCF4\uC548",password:{label:"\uBE44\uBC00\uBC88\uD638",currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},twoFactor:{label:"2\uB2E8\uACC4 \uC778\uC99D",sub:"\uACC4\uC815 \uBCF4\uC548\uC744 \uAC15\uD654\uD558\uC138\uC694"}}},sf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},lf={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\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.",sameStructureInfo:"\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.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",selectInOrder:"\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{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"}},cf={totalCount:"\uAC1C\uC758 \uD6C8\uB828 \uBB36\uC74C",renameGroup:"\uADF8\uB8F9 \uC774\uB984 \uBC14\uAFB8\uAE30",itemCount:"\uD6C8\uB828 \uAC1C\uC218",menu:{edit:"\uD6C8\uB828 \uBB36\uC74C \uC218\uC815",rename:"\uC774\uB984 \uBC14\uAFB8\uAE30",move:"\uADF8\uB8F9 \uC774\uB3D9",duplicate:"\uD6C8\uB828 \uBB36\uC74C \uBCF5\uC0AC",publish:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30"},sort:{customers:"\uD6C8\uB828 \uACE0\uAC1D"},copyLink:"\uB9C1\uD06C \uBCF5\uC0AC",removeLink:"\uB9C1\uD06C \uC81C\uAC70",linkRemoved:"\uB9C1\uD06C\uAC00 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",linkSaveFirst:"\uBA3C\uC800 \uD6C8\uB828 \uBB36\uC74C\uC744 \uC800\uC7A5\uD574\uC8FC\uC138\uC694.",linkSaveFirstHint:"\uC800\uC7A5\uB41C \uD6C8\uB828 \uBB36\uC74C\uC5D0\uC11C\uB9CC \uACF5\uC720 \uB9C1\uD06C\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",linkCopySelect:"\uBCF5\uC0AC\uAC00 \uB9C9\uD600 \uB9C1\uD06C\uB97C \uC120\uD0DD\uD588\uC2B5\uB2C8\uB2E4. Ctrl/\u2318+C\uB85C \uBCF5\uC0AC\uD558\uC138\uC694.",nameRequired:"\uD6C8\uB828 \uBB36\uC74C \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694.",itemRequired:"\uD6C8\uB828\uC744 1\uAC1C \uC774\uC0C1 \uB2F4\uC544\uC8FC\uC138\uC694.",randomAdd:"\uBB34\uC791\uC704 \uCD94\uAC00"},uf={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",basicInfo:{editTooltip:"\uC218\uC815\uD558\uAE30"},member:{placeholder:"\uC774\uBA54\uC77C \uB610\uB294 \uC804\uD654",link:"\uC5F0\uACB0",linking:"\uC5F0\uACB0 \uC911\u2026"},device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addTooltip:"\uC0C8\uB85C \uC0DD\uC131",addButton:"\uAE30\uAE30 \uCD94\uAC00",listTooltip:"\uBAA9\uB85D \uBCF4\uAE30",listTitle:"\uCE21 \uAE30\uAE30 \uBAA9\uB85D",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",release:"\uD574\uC81C",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{title:"\uBC29\uBB38 \uC608\uC815",addTooltip:"\uC608\uC815 \uB4F1\uB85D",listTooltip:"\uC804\uCCB4 \uBCF4\uAE30",empty:"\uC608\uC815\uB41C \uBC29\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D",memoPlaceholder:"\uBC29\uBB38 \uC608\uC815 \uAD00\uB828 \uBA54\uBAA8\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694."},visitHistory:{title:"\uBC29\uBB38 \uC774\uB825",addTooltip:"\uC2E0\uADDC \uB4F1\uB85D",empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uC0C1\uD669",active:"\uD65C\uC131",inactive:"\uBE44\uD65C\uC131",copy:"\uB9C1\uD06C \uBCF5\uC0AC",copied:"\uB9C1\uD06C\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",visits:{title:"\uBC29\uBB38"},trainingRecord:{title:"\uACE0\uAC1D \uD6C8\uB828 \uAE30\uB85D"},status:{trainingSubtitle:"\uD6C8\uB828 \uD604\uD669"},detail:{session:{completedFmt:"\uC644\uB8CC {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:"\uC758 \uBC29\uBB38"},duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},df={plan:{recommendedFor:"\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.",features:"\uD575\uC2EC \uAE30\uB2A5",freePrice:"\uBB34\uB8CC",contact:"\uBB38\uC758\uD558\uAE30",tierFallback:"\uC774\uC6A9\uAD8C",openPromo:"\uC624\uD508 \uD2B9\uAC00"},products:{mgrEnterprise:{tier:{price:"\uBB38\uC758"}}}},pf={title:"\uCFE0\uD3F0",subtitle:"\uCFE0\uD3F0 \uCF54\uB4DC\uB97C \uC785\uB825\uD558\uAC70\uB098 \uBCF4\uC720 \uCFE0\uD3F0\uC744 \uD655\uC778\uD558\uC138\uC694.",input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9",error:{invalid:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uCFE0\uD3F0 \uCF54\uB4DC\uC785\uB2C8\uB2E4.",alreadyUsed:"\uC774\uBBF8 \uC0AC\uC6A9\uB41C \uCFE0\uD3F0\uC785\uB2C8\uB2E4."},success:{applied:'"{{name}}" \uCFE0\uD3F0\uC774 \uC801\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.'},section:{owned:"\uBCF4\uC720 \uCFE0\uD3F0"},status:{used:"\uC0AC\uC6A9 \uC644\uB8CC",available:"\uC0AC\uC6A9 \uAC00\uB2A5"}},mf={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},hf={subtitle:"\uC5C5\uCCB4 \uBC0F \uBC95\uC778 \uC815\uBCF4\uB97C \uAD00\uB9AC\uD558\uC138\uC694.",editButton:"\uC815\uBCF4 \uC218\uC815",basicInfo:{title:"\uAE30\uBCF8 \uC815\uBCF4"},contactInfo:{title:"\uC5F0\uB77D\uCC98 \uC815\uBCF4"}},ff={title:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",subtitle:"\uC6D0\uD558\uB294 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD558\uC138\uC694.",listenInNoise:{title:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},shortStory:{title:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uC774\uD574\uD569\uB2C8\uB2E4."},longStory:{title:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uC9D1\uC911\uD574\uC11C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uD30C\uC545\uD569\uB2C8\uB2E4."},orderingSentence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uB4E4\uC740 \uBB38\uC7A5\uB4E4\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD569\uB2C8\uB2E4."},SAME_SOUND_PICK:{label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},SAME_OR_DIFF:{label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",sub:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},HEAR_AND_PICK_SAME:{label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},HEAR_AND_PICK_INCLUDED:{label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},STARTS_WITH_SAME_SOUND:{label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."},LISTEN_AND_REMEMBER_ORDER:{label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",sub:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."},MERGE_2_SYLLABLES:{label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_SYLLABLES:{label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_2_PHONEMES:{label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_PHONEMES:{label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_PART_FROM_COMPOUND:{label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84 \uD0C8\uB77D",sub:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",sub:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",sub:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"},CHANGE_1_SYLL_IN_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_SYLL_IN_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_1SYLL:{label:"1\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_2SYLL:{label:"2\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}},Cf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},gf={colName:"\uB2E8\uC5B4\uD45C \uC774\uB984",open:"\uC5F4\uAE30",countSuffix:"\uAC1C\uC758 \uB2E8\uC5B4\uD45C",tab:{cards:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",tables:"\uB2E8\uC5B4\uD45C"},cardsEmpty:"\uC544\uC9C1 \uB9CC\uB4E0 \uB2E8\uC5B4\uD45C \uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",addCard:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC \uCD94\uAC00",menu:{publishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30",unpublishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0\uC11C \uB0B4\uB9AC\uAE30"},newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},bf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},yf={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",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.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"{{name}} \uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"}},vf={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193",original:"\uBC1B\uC740 \uC21C\uC11C"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},xf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},_f={title:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uACE0 \uB4E3\uAE30 \uD6C8\uB828\uC744 \uC2DC\uC791\uD558\uC138\uC694.",noiseTitle:"\uC18C\uC74C \uD558 \uBB38\uC7A5\uB4E3\uAE30",shortStoryTitle:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",FOOD:"\uC74C\uC2DD",HLTH:"\uAC74\uAC15",WETH:"\uB0A0\uC528",PRSN:"\uC778\uBB3C",KRCT:"\uD55C\uAD6D\uBB38\uD654",STRY:"\uC774\uC57C\uAE30",LOCA:"\uC9C0\uC5ED",SOAR:"\uC0AC\uD68C\uC640 \uC608\uC220",NTSC:"\uC790\uC5F0\uACFC \uACFC\uD559",SPRT:"\uC2A4\uD3EC\uCE20",sub:{TRKRFD:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD",MDKRFD:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD",WRLDFD:"\uC138\uACC4\uC758 \uC74C\uC2DD",MTRFRT:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C",GEFDKL:"\uC74C\uC2DD \uC0C1\uC2DD",HTETHB:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00",DISILL:"\uBCD1\uACFC \uC9C8\uD658",EXCISE:"\uC6B4\uB3D9",GEHTKL:"\uAC74\uAC15\uC0C1\uC2DD",GESSKL:"\uACC4\uC808\uC0C1\uC2DD",SNWRAN:"\uB208\uACFC \uBE44",WTHFCT:"\uC77C\uAE30\uC608\uBCF4",GEWTKL:"\uB0A0\uC528\uC0C1\uC2DD",JODYPS:"\uC870\uC120\uC2DC\uB300",MDKRPS:"\uD55C\uAD6D \uADFC\uD604\uB300",THKDPS:"\uC0BC\uAD6D\uC2DC\uB300",WRLART:"\uC138\uACC4\uC758 \uC608\uC220\uAC00",WRLPSN:"\uC138\uACC4\uC758 \uC778\uBB3C",KRLANG:"\uC6B0\uB9AC\uB9D0",TRPLCT:"\uC804\uD1B5\uB180\uC774",HERITG:"\uBB38\uD654\uC7AC",EVTFES:"\uD589\uC0AC\uC640 \uCD95\uC81C",GECTKL:"\uC0C1\uC2DD",FRYTAL:"\uB3D9\uD654",AMZING:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30",DAYSTR:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30",KRLDMK:"\uD55C\uAD6D\uC758 \uBA85\uC18C",SELNMK:"\uC11C\uC6B8\uC758 \uBA85\uC18C",WRDTRB:"\uC138\uACC4\uC5EC\uD589",NAVIGT:"\uAE38 \uCC3E\uAE30",KRSOCI:"\uD55C\uAD6D",ECONEW:"\uACBD\uC81C\uC640 \uB274\uC2A4",GENART:"\uC608\uC220",GELFKL:"\uC0DD\uD65C \uC0C1\uC2DD",ANIMAL:"\uB3D9\uBB3C",PLANTS:"\uC2DD\uBB3C",ETHPLT:"\uC9C0\uAD6C",TOLELC:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488",GESCKL:"\uACFC\uD559\uC0C1\uC2DD",INVDSP:"\uAC1C\uC778\uACBD\uAE30",MARART:"\uACA9\uD22C\uAE30",TEAMSP:"\uB2E8\uCCB4\uACBD\uAE30",FOOTBL:"\uCD95\uAD6C",GESPKL:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}},wf={maxUses:"\uCD5C\uB300 \uC0AC\uC6A9 \uD69F\uC218 (\uBE44\uC6CC\uB450\uBA74 \uBB34\uC81C\uD55C)",redirect:"\uC774\uB3D9\uD560 \uD398\uC774\uC9C0 URL (\uBE44\uC6CC\uB450\uBA74 \uC571 \uBA54\uC778)",creating:"\uC0DD\uC131 \uC911\u2026",create:"\uB9C1\uD06C \uC0DD\uC131",created:"\u2713 \uB9C1\uD06C\uAC00 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4",copied:"\uBCF5\uC0AC\uB428!",copy:"\uBCF5\uC0AC",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",empty:"\uC0DD\uC131\uB41C \uB9C1\uD06C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",uses:"{{count}}\uD68C \uC0AC\uC6A9",expiresAt:"\uB9CC\uB8CC: {{date}}",createdAt:"\uC0DD\uC131: {{date}}",confirmDelete:"\uC0AD\uC81C\uD560\uAE4C\uC694?",deactivate:"\uBE44\uD65C\uC131\uD654",delete:"\uC0AD\uC81C",status:{active:"\uC720\uD6A8",expired:"\uB9CC\uB8CC",inactive:"\uBE44\uD65C\uC131"}},kf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},Af={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},Bf={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",validationError:{brandAndProduct:"\uBE0C\uB79C\uB4DC\uC640 \uC81C\uD488\uBA85\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."},addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C",type:{hearingAid:"\uBCF4\uCCAD\uAE30",cochlearImplant:"\uC778\uACF5\uC640\uC6B0"}},Nf={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",daily:"\uC77C\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"},subscriptionStatus:{active:"{{pct}}% \uD65C\uC131",expired:"{{pct}}% \uB9CC\uB8CC",unused:"{{pct}}% \uBBF8\uC0AC\uC6A9"}},Df={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",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.",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.",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."},count:"{{n}}\uAC1C",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",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.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4.",selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},searchLabel:{error:"\uB370\uC774\uD130 \uBD88\uB7EC\uC624\uAE30 \uC2E4\uD328",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},Sf={sentenceTyping:{roundCount:"{{rounds}}\uBB38\uC81C \xB7 \uBB38\uC81C\uB2F9 {{timeLimit}}\uCD08"},wordDefense:{me:"\uB098"},dictation:{title:"\uBC1B\uC544\uC4F0\uAE30",desc:"\uBB38\uC7A5\uC744 \uB4E3\uACE0 \uC815\uD655\uD788 \uBC1B\uC544\uC801\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC131 \uC7AC\uC0DD, \uC785\uB825 \uD544\uB4DC, \uC815\uB2F5 \uBE44\uAD50"},result:{heading:"{{number}}\uB2E8\uACC4 \uD574\uB2F5",retry:"\uB2E4\uC2DC \uD480\uAE30"},common:{accuracy:"{{pct}}% \uC815\uD655\uB3C4"},soundMatch:{title:"\uC18C\uB9AC \uB9E4\uCE6D",desc:"\uAC19\uC740 \uC18C\uB9AC\uB97C \uAC00\uC9C4 \uB2E8\uC5B4 \uB610\uB294 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB9E4\uCE6D\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uD50C\uB808\uC774 \uBC84\uD2BC, \uD0C0\uC774\uBA38, \uC810\uC218 \uC9D1\uACC4"},orderSequence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uD769\uC5B4\uC9C4 \uBB38\uC7A5 \uC870\uAC01\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uBB38\uC7A5 \uC138\uD2B8, \uC21C\uC11C \uD655\uC778 \uC778\uD130\uD398\uC774\uC2A4"},speedListen:{title:"\uC18D\uB3C4 \uB4E3\uAE30",desc:"\uC2DC\uAC04 \uC81C\uD55C \uB0B4\uC5D0 \uBB38\uC7A5\uC758 \uB2E8\uC5B4 \uC218\uB97C \uB9DE\uCD94\uB294 \uB3C4\uC804\uD615 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC81C\uD55C\uC2DC\uAC04, \uC810\uC218\uD310"},noiseChallenge:{title:"\uC18C\uC74C \uCC4C\uB9B0\uC9C0",desc:"\uBC30\uACBD \uC18C\uC74C \uC18D\uC5D0\uC11C \uBB38\uC7A5\uC744 \uBD84\uBCC4\uD558\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB2E4\uC591\uD55C \uC18C\uC74C \uB808\uBCA8, \uC810\uC218 \uC9D1\uACC4"},fastListen:{title:"\uBE60\uB978 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB4E4\uB824\uC8FC\uACE0 \uD575\uC2EC \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB09C\uC774\uB3C4\uBCC4 \uC18D\uB3C4, \uD0C0\uC774\uBA38"},shadowing:{title:"\uC250\uB3C4\uC789",desc:"\uBB38\uC7A5\uC744 \uB530\uB77C \uB9D0\uD558\uBA70 \uBC1C\uC74C\uACFC \uC5B5\uC591\uC744 \uC5F0\uC2B5\uD558\uB294 \uBAA8\uB4DC\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC7AC\uC0DD, \uB179\uC74C, \uBE44\uAD50 \uD53C\uB4DC\uBC31"},phonemeHunt:{title:"\uC74C\uC6B4 \uCC3E\uAE30",desc:"\uD2B9\uC815 \uC74C\uC6B4(\uBC1C\uC74C)\uC744 \uD3EC\uD568\uD55C \uB2E8\uC5B4\uB97C \uCC3E\uC544\uB0B4\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC6B4 \uD544\uD130, \uD78C\uD2B8 \uAE30\uB2A5"}},Ef={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
833
833
  \uC2E0\uB8B0\uB97C \uC313\uACE0
834
834
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638"},Tf={trainingPhone:{topic:"\uD143\uBC2D\uAC00\uAFB8\uAE30",prev:"\uC774\uC804",next:"\uB2E4\uC74C",speed:"\uBE60\uB974\uAE30 3",noiseType:"\uC640\uAE00\uC640\uAE00",settings:"\uC124\uC815",start:{caption:"\uC544\uB798 \uD50C\uB808\uC774(\u25B6) \uBC84\uD2BC\uC744 \uB20C\uB7EC \uBB38\uC7A5\uC744 \uC798 \uB4E4\uC5B4\uBCF4\uC138\uC694. \uC798 \uB4E4\uC73C\uC2E0 \uB4A4 \uBB38\uC7A5\uC744 \uD655\uC778\uD558\uC138\uC694."},feedback:{caption:"\uC798 \uD0A4\uC6B4 \uBAA8\uC885\uC744 \uD143\uBC2D\uC5D0 \uC2EC\uACE0 \uBE44\uB2D0\uC744 \uC798 \uB36E\uC5B4 \uC90D\uB2C8\uB2E4."},done:{heardWell:"\uC798 \uB4E4\uB9B0 \uBB38\uC7A5",listenAgain:"\uD55C \uBC88 \uB354 \uB4E3\uAE30"}}},jf={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},Mf={options:"\uD6C8\uB828 \uC635\uC158",difficulty:"\uB09C\uC774\uB3C4",exclude:"\uC81C\uC678",chosung:"\uCD08\uC131",excludeOptions:{none:"\uC5C6\uC74C",noImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"}},Lf={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},$f={phaseWordDownload:"\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC",phaseImageCheck:"\uC774\uBBF8\uC9C0 \uD655\uC778",phasePairAnalysis:"\uB2E8\uC5B4\uC30D \uBD84\uC11D",downloadingCount:"{{n}}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911",checkingPage:"{{page}}\uD398\uC774\uC9C0 \uBAA9\uB85D \uD655\uC778 \uC911",imageCount:"{{done}} / {{total}}\uAC1C"},Rf={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},Pf={ariaLabel:"\uC120\uD0DD \uD0ED"},If={ariaLabel:"\uD0ED"},Ff={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Of={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Vf={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"},reason:{notLoggedIn:"\uB85C\uADF8\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},list:{title:"\uBC1B\uC740 \uC219\uC81C"},status:{expired:"\uB9CC\uB8CC\uB428",done:"\uC644\uB8CC {{count}}\uD68C \xB7 {{date}}",notDone:"\uBBF8\uC644\uB8CC"}},Hf={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30",crossword:"\uAC00\uB85C\uC138\uB85C"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",count:"\uC804\uCCB4",done:"\uC644\uB8CC",remaining:"\uBBF8\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},filter:{countSuffix:" \uD6C8\uB828"},time:{countLabel:"{{n}}\uD68C \uD6C8\uB828",empty:"\uD6C8\uB828 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},daily:{title:"\uC624\uB298\uC758 \uB4E3\uAE30 \uAE30\uB85D",empty:"\uC644\uB8CC\uD55C \uD68C\uCC28\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},crossword:{title:"\uAC00\uB85C\uC138\uB85C\uD034\uC988",empty:"\uC644\uB8CC\uD55C \uB808\uBCA8\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",trainingType:{LISTEN_IN_NOISE:"\uC18C\uC74C \uD558 \uBB38\uC7A5",SHORT_STORY:"\uC9E7\uC740 \uC774\uC57C\uAE30",LONG_STORY:"\uAE34 \uC774\uC57C\uAE30",ORDERING_SENTENCE:"\uBB38\uC7A5 \uC21C\uC11C\uD654"}},zf={publish:{descPlaceholder:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uD45C\uC2DC\uD560 \uD55C \uC904 \uC124\uBA85 (\uC120\uD0DD)"},import:"\uB0B4 \uD6C8\uB828\uC5D0 \uAC00\uC838\uC624\uAE30",publisher:"\uAC8C\uC2DC\uC790",time:{justNow:"\uBC29\uAE08 \uC804",minutesAgo:"{{n}}\uBD84 \uC804",hoursAgo:"{{n}}\uC2DC\uAC04 \uC804",daysAgo:"{{n}}\uC77C \uC804",weeksAgo:"{{n}}\uC8FC \uC804",monthsAgo:"{{n}}\uAC1C\uC6D4 \uC804",yearsAgo:"{{n}}\uB144 \uC804"},badge:{shared:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"}},Wf={manage:{unit:"\uAC74"}},qf={cancelLabel:"\uCDE8\uC18C"},Uf={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},Gf={panelTitle:"\uD6C8\uB828 \uC624\uB2F5",viewItems:"\uBB38\uD56D",viewTypes:"\uC720\uD615",colPending:"\uB0A8\uC740 \uAC83",colTrend:"\uBCC0\uD654",colRuns:"\uD310",unitItem:"\uAC1C",skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",summaryLabel:"\uC313\uC778 \uAE30\uB85D",summaryValue:"{{items}}\uBB38\uD56D \xB7 \uC544\uC9C1 \uBABB \uC7A1\uC740 \uAC83 {{pending}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C",picked:"\u2192 {{what}}",typeClear:"\uB2E4 \uC7A1\uC558\uC5B4\uC694",typePending:"{{total}}\uAC1C \uC911 {{pending}}\uAC1C \uB0A8\uC74C",flat:"\uBCC0\uD654 \uC5C6\uC74C",runs:"{{count}}\uD310",avgDuration:"\uD3C9\uADE0 {{sec}}\uCD08"},Kf={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},Yf={panelTitle:"\uB2E8\uC5B4\uD45C \uCC44\uC810",viewWords:"\uB0B1\uB9D0",viewTables:"\uD45C",colLatest:"\uB9C8\uC9C0\uB9C9",colTrend:"\uBCC0\uD654",unitTime:"\uD68C",summaryLabel:"\uC313\uC778 \uCC44\uC810",summaryValue:"{{times}}\uD68C \xB7 \uB0B1\uB9D0 {{words}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",allClear:"\uC9C0\uB09C\uBC88\uC5D0 \uBAA8\uB450 \uB9DE\uD614\uC2B5\uB2C8\uB2E4.",times:"{{count}}\uD68C",flat:"\uBCC0\uD654 \uC5C6\uC74C",recentLabel:"\uCD5C\uADFC \uCC44\uC810",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C"},Zf={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Xf={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},Jf={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Qf={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},eC={devNone:"\uBC1C\uB2EC \uC790\uB8CC \uC5C6\uC74C",place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},tC={clearSelection:"\uC120\uD0DD \uD574\uC81C"},nC={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},aC={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},rC={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},oC={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},sC={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},iC={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},lC={main:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",soft:"\uC18C\uD504\uD2B8",sub:"\uC11C\uBE0C \uCEEC\uB7EC",deep:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",softSub:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",warm:"\uC6DC(\uAC15\uC870)",dark:"\uB2E4\uD06C",radial:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",diagonal:"\uB300\uAC01\uC120 \uD328\uD134",dots:"\uB3C4\uD2B8 \uD328\uD134",outline:"\uC544\uC6C3\uB77C\uC778",success:"\uC131\uACF5/\uC644\uB8CC",naver:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",instagram:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4"},cC={common:G2,calendar:K2,passCard:Y2,searchField:Z2,rating:X2,colorPicker:J2,dropdown:Q2,accordion:ef,header:tf,nav:nf,settings:af,usage:rf,account:of,help:sf,training:lf,trainingSettings:cf,customers:uf,payment:df,coupons:pf,visits:mf,company:hf,trainingType:ff,myWordTraining:Cf,myWordTable:gf,keyWords:bf,wordTable:yf,wordSearch:vf,wordPrint:xf,topic:_f,accessLinkManager:wf,login:kf,trainingPlanRun:Af,device:Bf,manager:Nf,wordPairs:Df,game:Sf,footer:Ef,landing:Tf,date:jf,trainingSetPage:Mf,wordTrainingPreview:Lf,wordData:$f,textField:Rf,segmentedControl:Pf,tabs:If,fileUpload:Ff,avatar:Of,myHomework:Vf,trainingStatus:Hf,store:zf,homework:Wf,inquiry:qf,progress:Uf,trainingMiss:Gf,table:Kf,wordScore:Yf,topBanner:Zf,datePicker:Xf,report:Jf,tooltip:Qf,phonemeProfile:eC,bulkBar:tC,debug:nC,badge:aC,loader:rC,soundCompass:oC,breadcrumb:sC,board:iC,promoBannerBg:lC},uC={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},dC={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonth:"{{month}}/{{year}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit"},pC={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},mC={clearAriaLabel:"Clear search"},hC={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},fC={selected:"selected"},CC={placeholder:"Select"},gC={collapse:"Collapse",expand:"Expand"},bC={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},yC={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}"},vC={language:{training:{label:"Training Language",sub:"Language used for training words and speech"}},notifications:{title:"Notifications"},display:{fontSize:{small:"Small",large:"Large"}},cache:{title:"Cache Management",confirmMessage:"Delete cache ({{size}}). Do you want to continue?",delete:"Delete",deleting:"Deleting",cleared:"Cache cleared successfully.",group:{wordData:{label:"Word Data",sub:"Word list and version info"},pairIndex:{label:"Pair Index",sub:"Onset\xB7vowel\xB7coda minimal pair analysis cache"},imageCache:{label:"Image Cache",sub:"Word image existence check results"},trainingRecord:{label:"Training Record",sub:"Daily training progress and streak"}}},button:{save:"Save Settings"},popup:{clear:{confirm:"Reset"},update:{confirm:"Update"},cache:{title:"Delete {{label}}",message:"Delete {{label}} ({{size}}). Do you want to continue?"}},saved:"\u2713 Saved",account:{title:"Account",delete:{sub:"You can restore your account within 30 days of withdrawal."}}},xC={addButton:"Add Subscription",couponButton:"Enter Coupon",active:{infoTitle:"Subscription Info",refund:"Request Refund",startDate:"Start Date",endDate:"End Date",remaining:"Remaining"},pending:{title:"Pending",empty:"No pending subscriptions."},loading:"Loading\u2026",segment:{personal:"Malgwi",org:"Malgwi Manager"},org:{title:"Current Plan",disc:"Subscription plan in use by your organization.",empty:"No organization plan registered.",fallbackTitle:"Organization Plan",startDate:"Start Date",endDate:"End Date",remaining:"Remaining",duration:"Duration"}},_C={profile:{planSuffix:"",plan:"Plan"},basicInfo:{name:{placeholder:"John Doe"}},security:{title:"Security",password:{label:"Password",currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."},twoFactor:{label:"Two-Factor Authentication",sub:"Strengthen your account security"}}},wC={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},kC={settings:"Settings",start:{title:"Start Word Training",description:"Select a training type below to begin"},difficulty:{tooltip:"The easiest difficulty is 'Random', the hardest is 'Initial Consonant Difference'."},contrast:{label:"Contrast",type:"Contrast Type",count:"Contrast Count",n:"{{n}}"},filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions:"{{n}} questions",countSentences:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{idle:"Idle",resolving:"Resolving\u2026",checking_exists:"Checking file\u2026",getting_signed_url:"Getting URL\u2026",downloading:"Downloading\u2026",measuring_duration:"Measuring length\u2026",ready:"Ready",error:"Error"}},AC={totalCount:" training bundles",sort:{customers:"Customers"},copyLink:"Copy Link",removeLink:"Remove Link",linkRemoved:"Link removed.",linkSaveFirst:"Please save the training bundle first.",linkSaveFirstHint:"You can only create a shared link from a saved training bundle.",linkCopySelect:"Copy blocked \u2014 link selected. Press Ctrl/\u2318+C to copy.",nameRequired:"Please enter a training bundle name.",itemRequired:"Please add at least one training item.",randomAdd:"Random Add",menu:{publish:"Post to Store",duplicate:"Duplicate Training Bundle",edit:"Edit Training Bundle",move:"Move Group",rename:"Rename"},itemCount:"Number of Items",renameGroup:"Rename Group"},BC={totalCount:" customers",loadError:"Failed to load list",basicInfo:{editTooltip:"Edit"},member:{placeholder:"Email or phone",link:"Link",linking:"Linking\u2026"},device:{title:"Hearing Devices",addTooltip:"Add New",addButton:"Add device",listTooltip:"View List",listTitle:" Device List",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",release:"Release",historyTitle:"Hearing device history"},schedule:{title:"Upcoming Visits",addTooltip:"Add Schedule",listTooltip:"View All",empty:"No upcoming visits",registerTitle:" Register Schedule",memoPlaceholder:"Enter a memo for this visit."},visitHistory:{title:"Visit History",addTooltip:"Add Visit",empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",visits:{title:"Visits"},trainingRecord:{title:"Customer Training Records"},status:{trainingSubtitle:"Training Status"},detail:{session:{completedFmt:"Done {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:" visits"},homework:{active:"Active",copied:"Link copied.",copy:"Copy Link",inactive:"Inactive",title:"Homework Progress"},duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"}},NC={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},DC={title:"Coupons",subtitle:"Enter a coupon code or view your coupons",input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply",error:{invalid:"Invalid coupon code.",alreadyUsed:"This coupon has already been used."},success:{applied:'"{{name}}" coupon applied.'},section:{owned:"My Coupons"},status:{used:"Used",available:"Available"}},SC={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},EC={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},TC={title:"Training by Type",subtitle:"Select the training type you want",listenInNoise:{title:"Sentence Listening in Noise",desc:"Train sentence comprehension in various noise environments."},shortStory:{title:"Short Story Listening",desc:"Listen to short stories and understand the content."},longStory:{title:"Long Story Listening",desc:"Focus on listening to long stories and grasp the content."},orderingSentence:{title:"Sentence Ordering",desc:"Arrange heard sentences in the correct order."},SAME_SOUND_PICK:{label:"Listen & Pick Same Sound",sub:"Pick the word card that matches what you heard."},SAME_OR_DIFF:{label:"Same or Different?",sub:"Decide whether the two sounds are the same or different."},HEAR_AND_PICK_SAME:{label:"Hear & Match Word",sub:"Pick the word card that matches the sound you heard."},HEAR_AND_PICK_INCLUDED:{label:"Find Word Containing Sound",sub:"Pick the word card that contains the syllable you heard."},STARTS_WITH_SAME_SOUND:{label:"Find Word Starting with Same Sound",sub:"Pick a word that starts with the same sound as what you heard."},LISTEN_AND_REMEMBER_ORDER:{label:"Listen & Recall Order",sub:"Select the cards in the order you heard the three words."},MERGE_2_SYLLABLES:{label:"Combine 2 Syllables",sub:"What word do two syllables make?"},MERGE_3_SYLLABLES:{label:"Combine 3 Syllables",sub:"What word do three syllables make?"},MERGE_2_PHONEMES:{label:"Combine 2 Phonemes",sub:"What sound do two phonemes make?"},MERGE_3_PHONEMES:{label:"Combine 3 Phonemes",sub:"What sound do three phonemes make?"},DROP_1_FROM_2SYLL:{label:"Drop 1 Syllable from 2-Syllable",sub:"What sound remains when you remove a syllable from a 2-syllable word?"},DROP_1_FROM_3SYLL:{label:"Drop 1 Syllable from 3-Syllable",sub:"What sound remains when you remove a syllable from a 3-syllable word?"},DROP_PART_FROM_COMPOUND:{label:"Drop Part of Compound Word",sub:"What word remains when you remove part of a compound word?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"Drop Final Consonant",sub:"What sound remains when you remove the final consonant?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"Drop Consonant",sub:"What sound remains when you remove the consonant?"},CHANGE_1_SYLL_IN_2SYLL:{label:"Change 1 Syllable (2-Syllable)",sub:"Change one syllable in a 2-syllable word to make a new word."},CHANGE_1_SYLL_IN_3SYLL:{label:"Change 1 Syllable (3-Syllable)",sub:"Change one syllable in a 3-syllable word to make a new word."},CHANGE_1_PHONEME_IN_1SYLL:{label:"Change 1 Phoneme (1-Syllable)",sub:"Change one phoneme in a 1-syllable word to make a new sound."},CHANGE_1_PHONEME_IN_2SYLL:{label:"Change 1 Phoneme (2-Syllable)",sub:"Change one phoneme in a 2-syllable word to make a new word."}},jC={comingSoon:"Word training is coming soon."},MC={colName:"Table Name",open:"Open",countSuffix:" tables",addCard:"Add Word Table Card",cardsEmpty:"No word table cards created yet.",menu:{publishStore:"Post to Training Store",unpublishStore:"Remove from Training Store"},newBadge:"Newly created",tab:{cards:"Word Table Cards",tables:"Word Tables"},publishedBadge:"Published",sharedBadge:"Shared"},LC={title:"Key Words",empty:"No key words available."},$C={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete {{name}}",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap a cell to mark \u25CB \xB7 \u25B3 \xB7 \u2715.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"}},RC={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},PC={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},IC={title:"By Topic",subtitle:"Select a topic to start listening training",noiseTitle:"Sentence Listening in Noise",shortStoryTitle:"Short Story Listening",FOOD:"Food",HLTH:"Health",WETH:"Weather",PRSN:"People",KRCT:"Korean Culture",STRY:"Stories",LOCA:"Locations",SOAR:"Society & Arts",NTSC:"Nature & Science",SPRT:"Sports",sub:{TRKRFD:"Traditional Korean Food",MDKRFD:"Modern Korean Food",WRLDFD:"World Cuisine",MTRFRT:"Ingredients & Fruits",GEFDKL:"Food Facts",HTETHB:"Healthy Eating",DISILL:"Diseases",EXCISE:"Exercise",GEHTKL:"Health Facts",GESSKL:"Seasons",SNWRAN:"Snow & Rain",WTHFCT:"Weather Forecast",GEWTKL:"Weather Facts",JODYPS:"Joseon Dynasty",MDKRPS:"Modern Korea",THKDPS:"Three Kingdoms",WRLART:"World Artists",WRLPSN:"World Figures",KRLANG:"Korean Language",TRPLCT:"Traditional Games",HERITG:"Heritage",EVTFES:"Events & Festivals",GECTKL:"General Knowledge",FRYTAL:"Fairy Tales",AMZING:"Amazing Stories",DAYSTR:"Everyday Stories",KRLDMK:"Korean Landmarks",SELNMK:"Seoul Landmarks",WRDTRB:"World Travel",NAVIGT:"Navigation",KRSOCI:"Korea",ECONEW:"Economy & News",GENART:"Arts",GELFKL:"Life Tips",ANIMAL:"Animals",PLANTS:"Plants",ETHPLT:"Earth",TOLELC:"Tools & Electronics",GESCKL:"Science Facts",INVDSP:"Individual Sports",MARART:"Martial Arts",TEAMSP:"Team Sports",FOOTBL:"Soccer",GESPKL:"Sports Facts"}},FC={maxUses:"Max uses (leave blank for unlimited)",redirect:"Redirect URL (leave blank for app home)",creating:"Creating\u2026",create:"Create link",created:"\u2713 Link created",copied:"Copied!",copy:"Copy",loading:"Loading\u2026",empty:"No links created yet.",uses:"Used {{count}} times",expiresAt:"Expires: {{date}}",createdAt:"Created: {{date}}",confirmDelete:"Delete this link?",deactivate:"Deactivate",delete:"Delete",status:{active:"Active",expired:"Expired",inactive:"Inactive"}},OC={passwordPlaceholder:"Enter password"},VC={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant"}},HC={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",daily:"Daily",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"},subscriptionStatus:{active:"{{pct}}% Active",expired:"{{pct}}% Expired",unused:"{{pct}}% Unused"}},zC={editBanner:{message:"Saving will update the contrast pair table you're editing."},phonemeSelect:{title:"Phoneme Selection",vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:"Reflects the National Institute of Korean Language's basic vocabulary grade.",selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},searchLabel:{error:"Failed to load data",loading:"Loading\u2026"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},WC={sentenceTyping:{roundCount:"{{rounds}} rounds \xB7 {{timeLimit}}s each"},wordDefense:{me:"Me"},dictation:{title:"Dictation",desc:"Practice writing down exactly what you hear.",comingSoon:"Coming soon: audio playback, input field, answer comparison"},result:{heading:"Level {{number}} Answer",retry:"Try Again"},common:{accuracy:"{{pct}}% accuracy"},soundMatch:{title:"Sound Match",desc:"Quickly match words or sentences that share the same sound.",comingSoon:"Coming soon: play button, timer, score tracking"},orderSequence:{title:"Sentence Ordering",desc:"Arrange scattered sentence fragments in the correct order.",comingSoon:"Coming soon: sentence sets, ordering interface"},speedListen:{title:"Speed Listen",desc:"A challenge game to count the number of words in a sentence within a time limit.",comingSoon:"Coming soon: time limit, scoreboard"},noiseChallenge:{title:"Noise Challenge",desc:"Practice distinguishing sentences amid background noise.",comingSoon:"Coming soon: various noise levels, score tracking"},fastListen:{title:"Fast Listen",desc:"Listen to short sentences at speed and select the key word.",comingSoon:"Coming soon: speed by difficulty, timer"},shadowing:{title:"Shadowing",desc:"Practice pronunciation and intonation by repeating sentences aloud.",comingSoon:"Coming soon: playback, recording, comparison feedback"},phonemeHunt:{title:"Phoneme Hunt",desc:"Find words that contain a specific phoneme (sound).",comingSoon:"Coming soon: phoneme filter, hint feature"}},qC={lead:`IHAB builds trust
835
835
  through sound
@@ -988,7 +988,7 @@ ${v.badge}`:v.badge:void 0;if(w&&u(v.code))return null;if(!v.badge&&!p)return m(
988
988
  </html>`}const ky=1e3;function vo({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=fe.useTranslation(),c=o.useCallback(()=>{wy(e(),t,a,r,i)},[e,t,a,r,i]),u=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=window.open("","_blank");if(!m){s?.();return}m.document.write(yo(p,t,a,!1,r,i)),m.document.close()},[e,t,a,r,s,i]),d=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=yo(p,t,a,!1,r,i),h=new Blob([m],{type:"text/html;charset=utf-8"}),g=URL.createObjectURL(h),C=(r?bo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),b=Object.assign(document.createElement("a"),{href:g,download:`${C}.html`});document.body.appendChild(b),b.click(),document.body.removeChild(b),setTimeout(()=>URL.revokeObjectURL(g),ky)},[e,t,a,r,i,l]);return{print:c,openNewWindow:u,downloadHtml:d}}function Dc(e){const{t}=fe.useTranslation(),[a,r]=o.useState("landscape"),[s,i]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[l,c]=o.useState("\uD45C\uC2DC"),[u,d]=o.useState(!0),[p,m]=o.useState(!0),[h,g]=o.useState(8),[C,b]=o.useState("right"),_=e.length,f=e.some(P=>(P.words??[]).length>1),y=e.some(P=>(P.words??[]).some($=>!!$.colloquialLabel)),x=Math.min(h,Math.max(_,1)),v=o.useMemo(()=>oc(e,x),[e,x]),A=v.length>1,w=x,[D,k]=o.useState(!1);o.useEffect(()=>{let P=!1;if(!Un()){k(!1);return}return Promise.all(e.flatMap($=>($.words??[]).map(W=>qs(W.label,W.homonum)))).then($=>{P||k($.some(Boolean))},()=>{}),()=>{P=!0}},[e]);const B=o.useMemo(()=>[fc(t,{hasImage:D,hasColloquial:y}),Cc(t),..._>0?[vc(t,{hasPairs:f,itemCount:_})]:[],...A?[_c(t)]:[],gc(t),...w>1?[bc(t)]:[],...f?[yc(t)]:[]],[t,D,y,_,f,A,w]),N={...Ac(t,{contentTypes:s,orientation:a,showOutline:u,cutLine:l,showDivLine:p}),..._>0?{[t(f?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${x}\uAC1C`}:{},...A?{[t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:wc[C]}:{}},M=o.useCallback((P,$)=>{Bc(t,P,$,{setContentTypes:i,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:m})||($===t("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||$===t("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?g(xc(parseInt(P),_)):$===t("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&b(kc(P)))},[t,_]);return{settings:{orientation:a,contentTypes:s,cutLine:l,showOutline:u,showDivLine:p,count:w},filterSections:B,filterSelected:N,handleSelect:M,pages:v,isPaginated:A,pageNumberPosition:C}}function Ay({items:e,words:t,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:c,footerClassName:u,printFileName:d,showSettings:p,autoPrint:m,className:h,onClose:g,scoring:C=!1,onScoreChange:b,printHeader:_,beforeClose:f}){const{t:y}=fe.useTranslation(),x=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(oe=>typeof oe=="string"&&oe.length>0).map((oe,ge)=>({id:`${oe}-${ge}`,words:[{label:oe}]})),[e,t]),{settings:v,filterSections:A,filterSelected:w,handleSelect:D,pages:k,isPaginated:B,pageNumberPosition:N}=Dc(x),M=o.useMemo(()=>rc(k.map(oe=>oe.length)),[k]),[P,$]=o.useState({}),W=o.useCallback((oe,ge)=>{$(Me=>({...Me,[er(oe)]:tc(Me[er(oe)]??null,ge)}))},[]),S=o.useRef(b);o.useEffect(()=>{S.current=b});const F=o.useRef(P);o.useEffect(()=>{F.current!==P&&(F.current=P,S.current?.(fo(P)))},[P]);const Y=o.useMemo(()=>fo(P),[P]),G=o.useRef(null),{toastMessage:q,toastKey:H,showWarning:z,clearToast:Z}=tl("warning"),I=o.useRef([]),T=o.useCallback(()=>B?I.current.filter(oe=>oe!==null):G.current?[G.current]:[],[B]),{print:O,openNewWindow:R}=vo({getElements:T,paperW:aa[v.orientation].width,paperH:aa[v.orientation].height,fileName:d??"",header:_??"",onPopupBlocked:()=>z(y("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."))}),j=o.useMemo(()=>c?void 0:l?l({print:O,openNewWindow:R}):d?[{label:y("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>R()},{label:y("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>O()},...i??[]]:i,[c,l,d,i,y,O,R]),L=o.useMemo(()=>c?c({print:O,openNewWindow:R}):void 0,[c,O,R]),Q=o.useRef(!1),J=o.useRef(O);return o.useEffect(()=>{J.current=O},[O]),o.useEffect(()=>{if(!m||Q.current)return;const oe=window.setTimeout(()=>{Q.current=!0,J.current()},100);return()=>window.clearTimeout(oe)},[m]),n.jsxs(Dn,{title:a??y("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:Be("word-table-popup",h),buttons:j,footer:L,footerClassName:u,beforeClose:f,onClose:g,children:[x.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[p&&n.jsx(go,{sections:A,selected:w,onSelect:D}),B?n.jsx("div",{className:"word-table-popup__pages",children:k.map((oe,ge)=>n.jsx(ra,{items:oe,orientation:v.orientation,contentTypes:v.contentTypes,cutLine:v.cutLine,showOutline:v.showOutline,showDivLine:v.showDivLine,count:v.count,contentRef:Me=>{I.current[ge]=Me},pageNumber:{current:ge+1,total:k.length},pageNumberPosition:N,scoring:C,scoreIndexOffset:M[ge],marks:Y,onMarkClick:W},ge))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(ra,{items:x,orientation:v.orientation,contentTypes:v.contentTypes,cutLine:v.cutLine,showOutline:v.showOutline,showDivLine:v.showDivLine,count:v.count,contentRef:G,fitHeight:!0,scoring:C,marks:Y,onMarkClick:W})})]}):n.jsx("p",{className:"word-table-popup__empty body-3",children:s??y("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsx(ea,{message:q,position:"top",onClose:Z},H)]})}const By=new Set(["x","triangle"]);function Ny(e,t){const a=[];for(let r=0;r<e.length;r++){const s=t[String(r)];s&&By.has(s)&&a.push(e[r])}return a}const Dy=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Sc(e){const t=e.name.trim(),a=e.reviewRound;if(typeof a=="number"&&Number.isFinite(a)&&a>=0){const i=Math.floor(a);if(i===0)return{\uBC14\uD0D5:t,\uD68C\uCC28:1};const l=(i===1?/\s*복습\s*\d{2}\.\d{2}$/:new RegExp(`(?:^|\\s)${i}\uCC28\\s*\uBCF5\uC2B5\\s*\\d{2}\\.\\d{2}$`)).exec(t);return{\uBC14\uD0D5:l?t.slice(0,l.index).trim():t,\uD68C\uCC28:i+1}}let r=t,s=1;for(;;){const i=Dy.exec(r);if(!i)break;s=Math.max(s,(i[1]?Number(i[1]):1)+1),r=r.slice(0,i.index).trim()}return{\uBC14\uD0D5:r,\uD68C\uCC28:s}}function Sy(e,t){const[,a,r]=Lr(t).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Sc(typeof e=="string"?{name:e}:e),c=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${c}\uBCF5\uC2B5 ${s}`}function Ey(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Sc(e).\uD68C\uCC28}}function Ty(e,t){const a={};for(const[r,s]of Object.entries(t)){if(s!=="o"&&s!=="triangle"&&s!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function jy(e){return e.map(t=>t.label).join(" / ")}function My(e){return e.map(t=>t.homonum!=null?`${t.label}#${t.homonum}`:t.label).join(" / ")}function Ec(e){return e.split(" / ").map(t=>t.replace(/#\d+$/,"")).join(" / ")}function Ly(e,t,a){const r=ai(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function Tc(e,t,a){return a===0?0:(e+t*.5)/a}function $y(e){const t=new Map,a=[...e].sort((s,i)=>s.scoredAt.localeCompare(i.scoredAt));for(const s of a)for(const[i,l]of Object.entries(s.marks)){const c=s.labels?.[i];if(!c)continue;const u=t.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:s.scoredAt};if(l==="o")u.o++;else if(l==="triangle")u.triangle++;else if(l==="x")u.x++;else continue;u.latest=l,u.latestAt=s.scoredAt,t.set(c,u)}const r=[];for(const[s,i]of t){const l=i.o+i.triangle+i.x;r.push({label:Ec(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Tc(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((s,i)=>s.rate-i.rate||i.tried-s.tried||Jn(s.label,i.label)||Jn(s.key??s.label,i.key??i.label)),r}function Ry(e){const t=new Map;for(const r of e){const s=r.tableId??`name:${r.tableName}`,i=t.get(s)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),t.set(s,i)}const a=[];for(const r of t.values()){const s=c=>Object.values(c.marks).filter(u=>u==="o"||u==="triangle"||u==="x").length,i=r.rows.filter(c=>s(c)>0).sort((c,u)=>c.scoredAt.localeCompare(u.scoredAt));if(i.length===0)continue;const l=i.map(c=>{const u=Object.values(c.marks),d=u.filter(m=>m==="o").length,p=u.filter(m=>m==="triangle").length;return Tc(d,p,s(c))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:i.map(c=>c.scoredAt),delta:l.length>=2?l[l.length-1]-l[0]:null})}return a.sort((r,s)=>(s.times[s.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function Py(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function Iy(e,t){if(e==null||t==null||e===""||t==="")return 0;if(typeof e=="number"&&typeof t=="number")return e-t;const a=String(e),r=String(t);return+(a>r)-+(a<r)}function Fy(e){const t=new Map;let a=0,r=0;const s=e.map((l,c)=>({r:l,\uC790\uB9AC:c})).sort((l,c)=>l.r.answeredAt.localeCompare(c.r.answeredAt)||Iy(l.r.id,c.r.id)||l.\uC790\uB9AC-c.\uC790\uB9AC).map(l=>l.r);for(const l of s){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const u=l.itemId?.trim()||c,d=`${l.trainingType}|${u}`,p=t.get(d)??{trainingType:l.trainingType,itemId:u,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(p.tried++,l.isCorrect||p.wrong++,p.title=c,p.latestCorrect=l.isCorrect,p.latestAt=l.answeredAt,p.lastSelected=l.selected,l.setId){const m=p.setIds.indexOf(l.setId);m>0&&p.setIds.splice(m,1),m!==0&&p.setIds.unshift(l.setId)}t.set(d,p)}const i=[...t.entries()].map(([l,c])=>({key:l,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return i.sort((l,c)=>l.rate-c.rate||c.tried-l.tried||Jn(l.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function Oy(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function Vy(e){const t=new Map;for(const r of e){const s=t.get(r.trainingType)??[];s.push(r),t.set(r.trainingType,s)}const a=[...t.entries()].map(([r,s])=>({trainingType:r,items:s,pending:s.filter(i=>!i.latestCorrect).length}));return a.sort((r,s)=>s.pending-r.pending||r.trainingType.localeCompare(s.trainingType)),a}const xo=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function Hy(e){const t=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const l=i.setIds[0];if(!l){a++;continue}const c=`${i.trainingType}|${l}`,u=t.get(c)??{setId:l,trainingType:i.trainingType,pending:0};u.pending++,t.set(c,u)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),s=[...t.values()];return{sentence:s.filter(i=>xo.includes(i.trainingType)).sort(r),word:s.filter(i=>!xo.includes(i.trainingType)).sort(r),noSet:a}}function zy(e,t,a=5){const r=new Set(t);if(r.size===0)return[];const s=[];for(const i of e){const l=new Set,c=[];for(const u of i.cellLabels)r.has(u)&&!l.has(u)&&(l.add(u),c.push(u));c.length!==0&&s.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return s.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||Jn(i.name,l.name)),s.slice(0,Math.max(0,a))}function Wy(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function qy(e,t){const a=new Map;for(const s of e)for(const i of s.cells){const l=s.labelOf(i);a.has(l)||a.set(l,i)}const r=[];for(const s of t){const i=a.get(s);i!==void 0&&r.push(i)}return r}function _o(e,t,a){return typeof e=="string"&&e?e:t.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function Uy(e,t){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),s=a%60;return t?t(r,s):r>0&&s>0?_o(wt.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?_o(wt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):_o(wt.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function Gy(e,t){const a=[],r=new Set;for(const s of e){const i=t(s);r.has(i)||(r.add(i),a.push({key:i,value:s,pinned:!1}))}return a}function Ky(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function Yy(e,t){return e.filter(a=>a.key!==t)}function Zy(e,t,a){const r=e.filter(d=>d.pinned),s=new Set(r.map(d=>d.key)),i=e.length-r.length,l=[],c=new Set(s);for(const d of t){if(l.length>=i)break;const p=a(d);c.has(p)||(c.add(p),l.push({key:p,value:d,pinned:!1}))}const u=[...l];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function Xy(e){return e.map(t=>t.value)}function Jy(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},s=t?.key?` icon-grid-menu__button--${t.key}`:"",i=o.useId();return n.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,children:[n.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,children:n.jsx(Ge,{icon:t.icon,label:t.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),n.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function Qy(e){const{categories:t=[],selected:a,onSelect:r,size:s="medium"}=e||{},i=a!==void 0,[l,c]=o.useState(()=>i?null:(t&&t[0]?.key)??null),u=i?a:l,d=o.useRef(r);o.useEffect(()=>{d.current=r});const p=o.useRef(!1),m=(t&&t[0]?.key)??null;o.useEffect(()=>{if(i||p.current||!m)return;p.current=!0;const g=l??m;l==null&&c(g),d.current?.(g)},[i,m]);const h=o.useCallback(g=>{const C=u===g?null:g;p.current=!0,i||c(C),r?.(C)},[u,i,r]);return n.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(t||[]).map(g=>n.jsx(Jy,{category:g,isSelected:u===g.key,onClick:()=>h(g.key)},g.key))})}function e5({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const s=r==="small"?32:40;return n.jsx("div",{className:`choice-chips choice-chips--${r}`,children:n.jsx("div",{className:"choice-chips__list",children:e.map(i=>n.jsx(ce,{htmlType:"button",size:s,type:"bar",label:i.label,selected:t===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function t5({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:i}=fe.useTranslation();return n.jsx("footer",{className:"site-footer",children:n.jsxs("div",{className:"safearea",children:[n.jsxs("div",{className:"site-footer__top",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
989
989
  \uC2E0\uB8B0\uB97C \uC313\uACE0
990
990
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
991
- `).map((l,c,u)=>n.jsxs(o.Fragment,{children:[l,c<u.length-1&&n.jsx("br",{})]},c))})}),n.jsxs("div",{className:"site-footer__links",children:[n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),n.jsx("li",{children:n.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")})}),n.jsx("li",{children:n.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")})}),n.jsx("li",{children:n.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")})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.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")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),n.jsx("li",{children:n.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"})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:l=>{t&&(l.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),n.jsx("hr",{className:"site-footer__rule"}),n.jsxs("div",{className:"site-footer__bottom",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("img",{src:Qr,alt:"IHAB",className:"site-footer__logo"})}),n.jsxs("div",{className:"site-footer__meta",children:[n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),n.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),n.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")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),n.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",s]})]})]})]}),n.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function n5({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:c,menuLabel:u}){const{t:d}=fe.useTranslation(),p=u??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,h]=o.useState(!1),g=o.useId(),C=o.useRef(null);o.useEffect(()=>{if(!m)return;const f=Rn(()=>{const v=document.getElementById(g);v&&v.contains(document.activeElement)&&C.current?.focus(),h(!1)}),y=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,x=v=>{v.matches&&h(!1)};return y&&(y.matches&&h(!1),y.addEventListener?.("change",x)),()=>{f(),y?.removeEventListener?.("change",x)}},[m,g]);const b=l?`${l} landing-header__inner`:"landing-header__inner",_=(f,y)=>c?c(f,{onClick:y}):n.jsx("a",{href:f.href,onClick:y,"aria-current":f.current?"page":void 0,children:f.label});return n.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[n.jsxs("div",{className:b,children:[e!=null&&(()=>{const f=typeof e=="string"?n.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?n.jsx("a",{href:a,className:"landing-header__brand",children:f}):n.jsx("div",{className:"landing-header__brand",children:f})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((f,y)=>n.jsx("span",{children:_(f)},`${y}:${f.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&n.jsx("button",{ref:C,type:"button",onClick:()=>h(f=>!f),"aria-expanded":m,"aria-controls":g,"aria-label":m?p.close:p.open,className:m?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:n.jsxs("span",{className:"landing-header__burger",children:[n.jsx("span",{}),n.jsx("span",{}),n.jsx("span",{})]})})]})]}),r.length>0&&n.jsx("nav",{id:g,hidden:!m,className:"landing-header__drawer",children:n.jsx("div",{className:l??void 0,children:r.map((f,y)=>n.jsx("span",{className:"landing-header__drawer-item",children:_(f,()=>h(!1))},`${y}:${f.href}`))})})]})}function a5({children:e,action:t,onClick:a,className:r}){const s=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return n.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:n.jsxs("div",{className:s,onClick:a,...Zl(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const sa=9,r5=e=>Math.round(Math.min(sa,Math.max(0,e))/sa*100),o5=e=>e/100*sa,Na=2,jc=.1,s5=e=>Math.min(Na,Math.max(0,e)),i5=.1,l5=e=>Math.round(e*1e6)/1e6;function Da(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return s5(t);const a=Math.min(sa,Math.max(0,Number(e.level)||0))/sa,r=Number(e.mainVolume);return r>0?a>0?l5(Math.min(Na,Math.max(i5,a/r))):0:1}const Mc=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Lc(e){return Mc(e)}function wo(e){return Mc(e)*Da(e)}function ko(e,t=Fs()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,wo(e)/a)}function Sa(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=Da({level:a.level,mainVolume:a.mainVolume})),a}const Ea={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Ao=o.createContext(null);function nr(){return o.useContext(Ao)}const Bo=e=>`${P0()}/${e}`,$c=e=>Array.from({length:10},(t,a)=>Bo(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),ar={get defaultNoise(){return Bo("noise1.mp3")},get street(){return $c("noise2")},get restaurant(){return $c("noise3")},get buzz(){return Bo("noise4.mp3")}};function c5(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return ar.defaultNoise;case"street":return ar.street[t];case"restaurant":return ar.restaurant[t];case"buzz":return ar.buzz;default:return null}}function u5({noisePlayer:e,audioRef:t,playbackStateRef:a}){const r=o.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const s=o.useRef(null),[i,l]=o.useState(null),c=o.useRef(null),u=o.useRef(null),d=o.useRef(null),p=o.useRef(null),m=o.useRef(0),h=o.useRef(null),g=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),C=o.useCallback((x,v=250)=>{const A=s.current;if(!A)return;const w=u.current;if(w){u.current=null;try{A.pause()}catch{}A.src=w,A.load()}if(!A.src)return;m.current+=1,g();try{Dr(),La(A).then(N=>{if(s.current===A)try{r.current?.("noise",N)}catch{}})}catch{}const D=A.paused?0:$a(A);A.paused&&kn(A,0),A.play().catch(()=>{});const k=performance.now(),B=()=>{const N=Math.min(1,(performance.now()-k)/v);try{kn(A,D+(x-D)*N)}catch{}N<1?p.current=requestAnimationFrame(B):p.current=null};p.current=requestAnimationFrame(B)},[g]),b=o.useCallback((x=250,v)=>{const A=s.current;if(!A||A.paused){v?.();return}const w=++m.current;g();const D=performance.now(),k=$a(A),B=()=>{const N=Math.min(1,(performance.now()-D)/x);try{kn(A,k*(1-N))}catch{}if(N<1)p.current=requestAnimationFrame(B);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{A.pause()}catch{}v?.()}};p.current=requestAnimationFrame(B),h.current=setTimeout(()=>{if(h.current=null,m.current===w){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{A.paused||(kn(A,0),A.pause(),v?.())}catch{}}},x+150)},[g]);o.useEffect(()=>{const x=document.createElement("audio");return x.loop=!0,x.crossOrigin="anonymous",s.current=x,()=>{g();try{x.pause(),x.src=""}catch{}s.current=null,c.current=null,u.current=null}},[g]);const _=e?ko(e.settings):0,f=!!e?.settings.enabled&&_>0;o.useEffect(()=>{if(!f)return;let x=0;const v=setInterval(()=>{const A=s.current;if(!A||A.paused){x=0;return}const w=t.current;if(w&&!w.paused&&!w.ended||a.current==="playing"){x=0;return}x+=1,x>=2&&(x=0,b())},400);return()=>clearInterval(v)},[b,f,t,a]),o.useEffect(()=>{const x=()=>{const v=s.current;if(document.hidden){if(v&&!v.paused){g();try{v.pause()}catch{}}return}if(!v||!v.paused)return;const A=t.current,w=!!A&&!A.paused&&!A.ended||a.current==="playing",D=d.current;w&&D?.enabled&&D.volume>0&&C(D.volume)};return document.addEventListener("visibilitychange",x),()=>document.removeEventListener("visibilitychange",x)},[g,C,t,a]),o.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:_,type:e.settings.type}:null},[e,e?.settings.enabled,_,e?.settings.type]);const y=o.useRef(null);return o.useEffect(()=>()=>{y.current?.(),y.current=null},[]),o.useEffect(()=>{const x=e?.settings,v=s.current;if(!v)return;const A=x?ko(x):0;if(!x||!x.enabled||A===0){b();return}if(c.current!==x.type){const w=c5(x.type);w&&(c.current=x.type,l(w),u.current=w,b(150,()=>{if(u.current!==w)return;u.current=null,v.src=w,v.load();const D=t.current;if(D&&!D.paused){y.current?.();const k=()=>{v.removeEventListener("canplay",k),y.current===B&&(y.current=null);const N=t.current,M=d.current;N&&!N.paused&&!N.ended&&M?.enabled&&M.volume>0&&C(M.volume)},B=()=>v.removeEventListener("canplay",k);y.current=B,v.addEventListener("canplay",k)}}))}else{const w=t.current,D=!!w&&!w.paused&&!w.ended||a.current==="playing";if(D&&u.current)C(A);else if(D&&v.paused&&v.src)C(A);else if(!v.paused)if(!D)b();else{g();const k=$a(v),B=performance.now(),N=()=>{const M=Math.min(1,(performance.now()-B)/150);try{kn(v,k+(A-k)*M)}catch{}M<1?p.current=requestAnimationFrame(N):p.current=null};p.current=requestAnimationFrame(N)}}},[e?.settings,e?.settings.enabled,_,e?.settings.type,g,C,b,t,a,d]),o.useEffect(()=>{const x=s.current;if(x)try{x.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:s,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:g,fadeInNoise:C,fadeOutNoise:b}}function d5({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const g=o.useRef(null),C=o.useRef(0),b=o.useRef(null),_=o.useRef(0),f=o.useRef(!1);o.useEffect(()=>()=>{_.current++;try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),f.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}f.current=!1}}catch{}},[]);const y=(A,w=1)=>{try{const D=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(D*300/Math.max(.25,w)))}catch{return 1200}},x=o.useCallback(A=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!1)}catch{}return}const w=window.speechSynthesis,D=++_.current;try{try{w.cancel()}catch{}const k=A??e,B=Array.isArray(k)?k.filter(S=>!!S):[k||""];B.length===0&&B.push("");const N=Math.max(.3,Math.min(3,t));C.current=B.reduce((S,F)=>S+y(F,N||1),0),g.current=performance.now(),i(0),l("playing"),c("playMode");const M=p.current;M?.enabled&&(M?.volume??0)>0&&u(M.volume);const P=()=>{try{const S=g.current||performance.now(),F=performance.now()-S,Y=C.current||1200,G=Math.min(1,F/Y);try{r.current&&(r.current.style.left=`${G*100}%`),s.current&&s.current.style.setProperty("--progress",String(G))}catch{}G<1&&(b.current=requestAnimationFrame(P))}catch{}},$=()=>{if(D===_.current)try{b.current&&(cancelAnimationFrame(b.current),b.current=null),i(1),l("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},W=S=>{const F=new SpeechSynthesisUtterance(B[S]);try{F.rate=N}catch{}try{F.volume=Math.max(0,Math.min(1,a))}catch{}F.onend=()=>{if(D===_.current){if(S<B.length-1){try{W(S+1)}catch{$()}return}$()}},F.onerror=()=>{$()},F.onstart=()=>{if(!(S>0))try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(P)}catch{}},f.current=!0,w.speak(F)};try{W(0)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,t,a,u,r,s,i,l,c,p,m,h]),v=o.useCallback(()=>{_.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),d(),g.current=null}catch{}l("stopped"),c("active"),i(0)},[d,l,c,i]);return{startTTS:x,stopTTS:v}}async function p5(e,t,a){let r=null;try{const s=window.AudioContext||window.webkitAudioContext;r=new s;const i=await r.decodeAudioData(e.slice(0)),l=i.numberOfChannels>0?i.getChannelData(0):null;if(!l)return null;const c=a&&a>0?Math.min(l.length,Math.floor(a*i.sampleRate)):l.length,u=Math.max(t,c),d=Math.floor(u/t)||1;return new Array(t).fill(0).map((p,m)=>{const h=m*d,g=Math.min(h+d,u);let C=0;for(let b=h;b<g;b++){const _=Math.abs(l[b]);_>C&&(C=_)}return C})}catch{return null}finally{try{r?.close?.()}catch{}}}async function Rc(e,t,a){try{const r=await fetch(e);if(r.ok===!1)return null;const s=await r.arrayBuffer();return await p5(s,t,a)}catch(r){try{const s=Ys(r)}catch{}return null}}const Pc=45,m5=74,h5=2;function Ta(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function No(e){return Ta(e)/45}const Ic=4;function f5(e){const{src:t,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=o.useRef(null),g=o.useRef(null),[C,b]=o.useState(null),[_,f]=o.useState(!1),[y,x]=o.useState(null),[v,A]=o.useState(2),[w,D]=o.useState(0),[k,B]=o.useState(null),[N,M]=o.useState(!1),[P,$]=o.useState(!1),W=3,S=3,F=1,Y=300,G=o.useRef(0),q=o.useCallback(()=>{const ie=h.current,U=g&&g.current?g.current:ie?ie.closest(".audio-player__wave"):null,se=U?U.getBoundingClientRect():ie?ie.getBoundingClientRect():null,me=se?se.width:0,_e=se?Math.max(100,se.width):320,we=se?se.height:0,De=Math.max(F,Math.min(Y,Math.floor((_e+S)/(W+S)))),xe=De*W,Ae=Math.max(0,De-1),Te=Math.max(0,Ae>0?(_e-xe)/Ae:S);return{bars:De,gap:Te,height:we,width:me}},[]),H=o.useRef(void 0),z=o.useRef(null),Z=o.useCallback(async(ie,U,{quiet:se=!1}={})=>{const me=++G.current,_e=()=>G.current===me;try{if(se||f(!1),H.current=ie,!ie){_e()&&b(null);return}let we=U;if(!we)try{for(let Ae=0;Ae<4&&!(h.current||g.current);Ae++)await new Promise(Te=>requestAnimationFrame(Te));await new Promise(Ae=>requestAnimationFrame(Ae));const xe=q();xe.height>0&&D(xe.height),we=xe.bars,A(xe.gap)}catch{we=120}z.current=we;const De=await Rc(ie,we);if(!_e())return;if(!De){b(null),f(!1);return}b(De),x(we),f(!0)}catch{if(!_e())return;b(null),f(!1)}},[f,b,D,A,x,q]);o.useEffect(()=>{const ie=g.current;if(!ie||typeof ResizeObserver>"u")return;let U=null;const se=new ResizeObserver(()=>{U!==null&&cancelAnimationFrame(U),U=requestAnimationFrame(()=>{U=null;try{const me=q();if(me.width<=0||(me.height>0&&D(me.height),z.current===null||me.bars===z.current))return;const _e=H.current;A(me.gap),_e?Z(_e,me.bars,{quiet:!0}).catch(()=>{}):z.current=me.bars}catch{}})});return se.observe(ie),()=>{se.disconnect(),U!==null&&cancelAnimationFrame(U)}},[q,Z]),o.useEffect(()=>{const ie=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;Z(typeof ie=="string"?ie:void 0).catch(()=>{}),$(!1)},[t,a,Z]),o.useEffect(()=>{let ie=!1;if(M(!1),!i||!y){B(null);return}const U=u>0?u*(c||1):void 0;return Rc(i,y,U).then(se=>{ie||(B(se),se||M(!0))}).catch(()=>{ie||(B(null),M(!0))}),()=>{ie=!0}},[i,y,u,c]);const I=Math.max(0,Math.min(1,d)),T=o.useMemo(()=>C&&C.length&&Math.max(...C)||1,[C]),O=y||40,R=o.useMemo(()=>Array.from({length:O}).map((ie,U)=>{const se=C&&C[U]!=null?C[U]:null,me=se==null?null:Math.min(1,se/T*I),_e=me!=null&&w>0&&Ta(me)<=Ic,we=me==null?.15:_e?0:No(me),De=O>1?U/(O-1):0;return n.jsx("div",{className:_e?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":we,"--i":U,"--mix":De}},U)}),[O,C,T,I,w]),j={"--progress":String(Math.max(0,Math.min(1,r)))},L=i?Math.max(1,l):1,Q={"--bar-gap":`${v}px`,"--wave-h":`${Ta(L)}px`,"--wave-h1":`${Pc}px`},J=I*Math.max(0,l)/Fs(),oe=_&&(i?!!k||N:!0);o.useEffect(()=>{oe&&$(!0)},[oe]);const ge=P?_:oe;o.useEffect(()=>{p?.(ge)},[ge,p]);const Me=y||40,Ne=o.useMemo(()=>Array.from({length:Me}).map((ie,U)=>{const se=k&&k[U]!=null?k[U]:null,me=se==null?0:se/T*J,_e=w>0&&Ta(me)<=Ic,we=_e?0:No(me),De=Me>1?U/(Me-1):0;return n.jsx("div",{className:_e?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":we,"--i":U,"--mix":De}},U)}),[Me,k,T,J,w]);return n.jsxs("div",{className:"audio-player__wave",ref:g,style:Q,children:[i&&n.jsx("div",{className:`audio-player__wave-noise ${oe?"is-ready":""}`,"aria-hidden":"true",children:Ne}),m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ge?"is-ready":""}`,ref:h,children:R}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ge?"is-ready":""}`,ref:s,style:j,children:R})]})]})}const C5={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 Do(e,t){return new Promise((a,r)=>{const s=document.createElement("audio");let i=!1;const l=()=>{try{s.src=""}catch{}},c=()=>{if(i)return;i=!0;const d=isFinite(s.duration)&&s.duration||0;l(),a(d)},u=d=>{i||(i=!0,l(),t.rejectOnError?r(new Error(d)):a(0))};s.addEventListener("loadedmetadata",c),s.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),t.timeoutMs),s.src=e})}const g5=2e3;function Fc(e,t=g5){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.addEventListener("canplay",s,{once:!0}),e.addEventListener("error",s,{once:!0}),setTimeout(s,t)})}function b5({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(u=>{if(r.current=u,!u||!s.current.length)return;const d=s.current;s.current=[];for(const p of d)p(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),c=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(u=>{const d=m=>{clearTimeout(p),s.current=s.current.filter(h=>h!==d),u(m)},p=setTimeout(()=>d(!0),a);s.current.push(d)}),[e,t,a]);return o.useEffect(()=>()=>{const u=s.current;s.current=[];for(const d of u)d(!1)},[]),{onReadyChange:i,waitForReady:c,markNotReady:l}}function y5(){const e=o.useRef([]),t=o.useCallback(s=>(e.current.push(s),s),[]),a=o.useCallback(s=>{const i=new Set([...s].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const s of e.current)try{URL.revokeObjectURL(s)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function v5({offsetY:e=8}={}){const t=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),i=o.useCallback(()=>{try{const l=t.current?.getBoundingClientRect();if(!l)return;r({left:l.left,right:l.right,width:l.width,height:l.height,x:l.x,top:l.top+e,bottom:l.bottom+e,y:l.y+e,toJSON:l.toJSON.bind(l)})}catch{}},[e]);return o.useEffect(()=>{if(a)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[a,s]),{ref:t,rect:a,show:i,hide:s}}function x5({currentTime:e,sources:t,index:a,audioDuration:r}){const s=a||0,i=Array.isArray(t)&&t.length>0?t[s]:void 0,l=i?i.duration||r||0:r||0;if(!(l>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/l))}function _5(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function w5({ended:e,completedByEnd:t}){return!!e||!!t}function k5(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function A5(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function B5(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],s=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;s.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){s.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),c=a(l,t);c&&s.push({code:l,resolvedPath:c})}}return s}function N5(e){if(!e)return 0;const t=e.duration;if(Number.isFinite(t)&&t>0)return t;if(t===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}function D5({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:s}){const i=o.useRef(null),l=o.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=o.useCallback(()=>{if(i.current!==null)return;const d=()=>{try{const p=e.current,m=Array.isArray(r.current)?r.current[s.current||0]:void 0,h=m&&Number.isFinite(m.duration)&&(m.duration??0)>0?0:N5(p),g=t.current;if(h===null)try{g&&g.style.visibility!=="hidden"&&(g.style.visibility="hidden")}catch{}else{const C=x5({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:s.current,audioDuration:h});try{g&&(g.style.visibility&&(g.style.visibility=""),g.style.left=`${C*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(C))}catch{}}}catch{}i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)},[e,t,a,r,s]),u=o.useCallback(d=>{l();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,t,a]);return o.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:u}}function So({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=fe.useTranslation(),p=e,m=nr(),h=o.useRef(m?.registerAnalyser);o.useEffect(()=>{h.current=m?.registerAnalyser});const g=o.useRef(null),C=o.useRef(null),b=o.useRef(null),_=y5(),f=o.useRef(null),y=o.useRef(!1),x=o.useRef(0),v=o.useRef(null),{ref:A,rect:w,show:D,hide:k}=v5();o.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[B,N]=o.useState(!1),[M,P]=o.useState("idle"),[$,W]=o.useState("stopped"),S=o.useRef("stopped");o.useEffect(()=>{S.current=$},[$]);const[F,Y]=o.useState(0),[G,q]=o.useState("active"),H=o.useRef(!1);o.useEffect(()=>{if(G!=="playMode"||!H.current)return;H.current=!1;const V=typeof document<"u"?document.activeElement:null;if(V&&V!==document.body)return;const re=b.current?.querySelectorAll("button")[1];try{re?.focus()}catch{}},[G]);const[z,Z]=o.useState(null),[I,T]=o.useState(null),[O,R]=o.useState(0),[j,L]=o.useState(!1),[Q,J]=o.useState(0),oe=m?.playbackRate??1,ge=m?.mainVolume??1,Me=m?wo(m.settings):0,Ne=m?Lc(m.settings):ge,[ie,U]=o.useState("idle"),[se,me]=o.useState(""),[_e]=o.useState("top"),we=o.useRef(null),De=o.useRef(0),xe=o.useRef(null),{start:Ae,stop:Te,settleTo:ae}=D5({audioRef:g,fillRef:C,waveProgressRef:xe,sourcesRef:we,currentIndexRef:De}),{onReadyChange:ee,waitForReady:de,markNotReady:te}=b5({showSoundWaveForm:c,showNoiseWaveForm:u}),he=o.useRef(null),be=o.useRef(s),Ye=o.useRef(r),Ve=o.useRef(null),qe=o.useRef(!1),[Se,Ue]=o.useState(!1),$e=o.useCallback(V=>{qe.current=V,Ue(V)},[]),Ie=o.useRef(null),{activeNoiseUrl:He,noiseSettingsRef:at,fadeInNoise:ot,fadeOutNoise:We}=u5({noisePlayer:m,audioRef:g,playbackStateRef:S}),{startTTS:Xe,stopTTS:Ct}=d5({ttsText:i,playbackRate:oe,mainVolume:Ne,fillRef:C,waveProgressRef:xe,setProgress:Y,setPlaybackState:W,setStateLocal:q,fadeInNoise:ot,fadeOutNoise:We,noiseSettingsRef:at,onDoneRef:Ye,handleEndRef:Ie});o.useEffect(()=>{bt.current=Ct});const At=V=>{if(typeof window>"u"||!window.speechSynthesis){try{me(d("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Xe(V);return}Nt("tts"),Xe(V)},Et=Array.isArray(t)?t.filter(Boolean):t?[t]:[],ut=(!Et||Et.length===0)&&!!i,Qe=Array.isArray(z)&&z.length>0?z:Array.isArray(I)&&I.length>0?I:null,Ze=Math.max(Array.isArray(Qe)?Qe.length:0,Et.length),Oe=o.useRef(!0);o.useEffect(()=>(Oe.current=!0,()=>{Oe.current=!1}),[]);const rt=o.useRef(0),et=()=>{rt.current+=1,x.current+=1},bt=o.useRef(null),ze=o.useRef(null),it=o.useRef(null),Bt=o.useRef(null);Bt.current||(Bt.current=()=>{it.current=null;const V=g.current;if(ze.current==="audio"&&V&&!V.paused){rt.current+=1,x.current+=1;try{V.pause()}catch{}Oe.current&&W("paused")}else if(ze.current==="tts")try{bt.current?.()}catch{}});const Nt=V=>{ze.current=V,it.current=Za(Bt.current)},Le=()=>{it.current?.(),it.current=null};o.useEffect(()=>()=>{Bt.current&&Xa(Bt.current)},[]);const Ke=o.useCallback(async(V,re=3,le=50)=>{const ye=rt.current;for(let ve=0;ve<re;ve++){if(!Oe.current||ye!==rt.current)return!1;try{return Nt("audio"),await V.play(),!0}catch(je){if((je instanceof Error||typeof je=="object"&&je&&"name"in je?je.name:void 0)==="AbortError"){if(ye!==rt.current)return!1;await new Promise(nt=>setTimeout(nt,le));continue}try{me(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{me(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),Dt=o.useCallback(()=>{const V=g.current;if(!V)return;const re=()=>{W("playing"),q("playMode"),L(!0),Ae();try{Dr(),La(V).then(je=>{if(Oe.current)try{h.current?.("main",je)}catch{}})}catch{}const ve=at.current;ve?.enabled&&(ve?.volume??0)>0&&ot(ve.volume)},le=()=>{w5({ended:!!V?.ended,completedByEnd:qe.current})||(W("paused"),Te(),We())},ye=()=>{try{const ve=we.current,je=_5(ve,De.current);if(je!==null){De.current=je,R(je),L(!0);const nt=ve?.[je]&&ve[je].src;if(nt&&V){V.src=nt,V.load(),Ke(V).catch(()=>{});return}}}catch{}W("stopped"),Y(1);try{if(V)try{V.currentTime=0}catch{}}catch{}Te(),L(!1),We();try{!be.current&&Ie.current&&Ie.current()}catch{}};return V.addEventListener("play",re),V.addEventListener("pause",le),V.addEventListener("ended",ye),()=>{try{V.removeEventListener("play",re),V.removeEventListener("pause",le),V.removeEventListener("ended",ye),Te()}catch{}}},[ot,We,Ke,at,Ae,Te]);o.useEffect(()=>Dt(),[Dt]),o.useEffect(()=>{be.current=s},[s]),o.useEffect(()=>{Ye.current=r},[r]),o.useEffect(()=>{if(s||G!=="active")return;const V=v.current;if(!V)return;let re=null;const le=requestAnimationFrame(()=>{try{const ye=V.getTotalLength();if(!ye)return;const ve=ye*.2;V.style.strokeDasharray=`${ye-ve} ${ve}`;const je="triFlow_"+Math.random().toString(36).slice(2);re=document.createElement("style"),re.textContent=`@keyframes ${je}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${ye}}}`,document.head.appendChild(re),V.style.animation=`${je} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(le),re?.remove()}},[G,s]),o.useEffect(()=>{we.current=z},[z]),o.useEffect(()=>{De.current=O},[O]),o.useEffect(()=>{const V=b.current,re=f.current;if(!V||!re)return;let le=null;const ye=32,ve=60,je=()=>{try{const ht=Array.from(V.querySelectorAll(":scope > .button"));let lt=0;ht.forEach(pn=>{if(pn===re)return;const ur=pn.getBoundingClientRect();lt+=ur.width});const _t=V.getBoundingClientRect().width,zt=Math.max(0,Math.floor(_t-lt-8)),Rt=Ze;if(!Rt||zt<=0){Array.from(re.children).forEach(pn=>{try{pn.style.width=""}catch{}});return}let dn=Math.floor(zt/Rt);dn>ve&&(dn=ve),dn<ye&&(dn=Math.max(ye,Math.floor(zt/Rt))),Array.from(re.querySelectorAll(".button")).forEach(pn=>{try{pn.style.width=`${dn}px`}catch{}})}catch{}},nt=requestAnimationFrame(je);try{le=new ResizeObserver(()=>{requestAnimationFrame(je)}),le.observe(V),le.observe(re),window.addEventListener("resize",je)}catch{}return()=>{try{cancelAnimationFrame(nt)}catch{}try{le&&(le.disconnect(),le=null)}catch{}try{window.removeEventListener("resize",je)}catch{}}},[z,I,Ze]),o.useEffect(()=>()=>{try{he.current&&(clearTimeout(he.current),he.current=null),Ve.current&&(clearTimeout(Ve.current),Ve.current=null)}catch{}},[]);const vt=(V,re)=>{Z(V),J(re),te(),T(k5(V)),we.current=V},Tt=async(V,re)=>{$e(!1),y.current=!1,V.src=re,V.load(),await Fc(V),await de()!==!1&&(N(!1),await Ke(V),q("playMode"),R(0),L(!0))},on=async(V,re=!1)=>{const le=g.current;N(!0),P("measuring_duration");try{const ye=await Do(V,{timeoutMs:1e4,rejectOnError:!0});vt([{src:V,objectUrl:null,duration:ye}],ye),P("ready"),re&&le&&await Tt(le,V)}finally{y.current=!1,N(!1)}},tt=async(V,re=!1)=>{const le=g.current;N(!0),P("measuring_duration");try{const ye=await Promise.all(V.map(je=>Do(je,{timeoutMs:1e4})));if(!Oe.current)return;const ve=V.map((je,nt)=>({src:je,objectUrl:null,duration:ye[nt]||0}));vt(ve,A5(ve)),P("ready"),re&&le&&ve.length>0&&await Tt(le,ve[0].src)}finally{y.current=!1,N(!1)}},Gt=async(V=!1,re=!0)=>{const le=g.current,ye=t?Array.isArray(t)?t:[t]:[];if(!ye||ye.length===0||!ye.some(Boolean))return!1;if(y.current)return null;y.current=!0,re&&N(!0),P("resolving");try{const ve=B5(t,a,Rs),je=[];let nt=0;for(const ht of ve){let lt=ht.src??null,_t=null;if(!lt&&ht.resolvedPath){try{P("getting_signed_url"),lt=await Ps(ht.resolvedPath)}catch{lt=null}if(!Oe.current)return!1;if(!lt)try{P("downloading");const Rt=await Is(ht.resolvedPath);if(!Oe.current)return!1;if(Rt){const dn=Rt instanceof Blob?Rt:new Blob([Rt]);_t=_.track(URL.createObjectURL(dn)),lt=_t}}catch{P("error");try{me(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),q("active")}catch{}}}if(!lt)continue;let zt=0;try{P("measuring_duration"),zt=await Do(lt,{timeoutMs:3e3})}catch{zt=0}if(!Oe.current){if(_t)try{URL.revokeObjectURL(_t)}catch{}for(const Rt of je)if(Rt.objectUrl)try{URL.revokeObjectURL(Rt.objectUrl)}catch{}return!1}nt+=zt||0,je.push({...ht,src:lt,objectUrl:_t,duration:zt})}if(vt(je,nt),je.length>0&&V&&le){const ht=je[0];$e(!1);try{_.keepOnly(je.map(lt=>lt.objectUrl))}catch{}if(P("ready"),y.current=!1,ht.src&&le)try{if(le.src=ht.src,le.load(),await Fc(le),await de()===!1)return!1;re&&N(!1),le&&await Ke(le)}catch{re&&N(!1)}else re&&N(!1);q("playMode"),R(0),L(!0)}return je.length>0}finally{y.current=!1,re&&N(!1),P(ve=>ve==="ready"?"ready":"idle")}},vn=async()=>{const V=g.current;if(!(!V&&!ut)){if(ut){const re=window.speechSynthesis;if(G==="active"){const le=Ar(),ye=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(le&&ye.length>0){q("load"),N(!0),P("resolving"),y.current=!0;try{const ve=await Promise.all(ye.map(je=>Promise.resolve(le(je))));ve.length>1?await tt(ve,!0):await on(ve[0],!0)}catch{y.current=!1,N(!1),q("active"),At(ye.length>0?ye:void 0)}return}At(ye.length>0?ye:void 0);return}if(G==="playMode"){const le=!!re&&(re.speaking||re.paused)&&!(V&&(V.currentSrc||V.getAttribute("src")));if(V&&!le){if(V.paused){if(qe.current){await xt();return}await Ke(V),W("playing")}else et(),V.pause(),W("paused");return}try{if(re&&re.paused)try{Nt("tts"),re.resume(),W("playing")}catch{}else try{re.pause(),W("paused")}catch{}}catch{}}return}if(G==="active"){if(s&&Array.isArray(we.current)&&we.current.length>0){const le=we.current[0];try{if(le.src&&V)try{V.src=le.src,V.load(),V&&await Ke(V)}catch{}q("playMode"),R(0),L(!0);return}catch{}}q("load");let re;try{re=await Gt(!0)}catch{re=!1}if(re===!1&&Oe.current){try{me(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}q("active")}return}if(G!=="load"&&(G==="playMode"||G==="active"))try{if(V&&V.paused){if(qe.current){await xt();return}V&&await Ke(V),W("playing")}else V&&(et(),V.pause(),W("paused"))}catch(re){(re instanceof Error||typeof re=="object"&&re&&"name"in re)&&re.name}}},xt=async()=>{const V=g.current;if(V)try{const re=we.current;if(Array.isArray(re)&&re.length>1){await Kt(0);return}$e(!1);try{V.currentTime=0}catch{}V&&await Ke(V),W("playing"),q("playMode")}catch{}},Ht=()=>{if(et(),Le(),ut){Ct();return}const V=g.current;try{if(V){try{V.pause()}catch{}try{V.currentTime=0}catch{}}}catch{}We(),W("stopped"),q("active"),Y(0),L(!1)},Xt=async(V,{sameSegment:re=!1}={})=>{const le=++x.current,ye=g.current,ve=we.current?.[V]?.src;try{if($e(!1),R(V),L(!0),De.current=V,!ve||!ye||(re||te(),ye.src=ve,ye.load(),!re&&await de()===!1)||le!==x.current||(await Ke(ye),le!==x.current))return;W("playing"),q("playMode")}catch{}},an=async()=>{const V=we.current,re=De.current||0;if(!V||re<=0){await xt();return}await Xt(re-1)},sn=async()=>{const V=we.current,re=De.current||0;if(!V||re>=V.length-1){Ht();return}await Xt(re+1)},Jt=()=>{if(qe.current)return;const V=200,re=340;$e(!0),et(),Le();try{Y(1)}catch{}ae(1);try{U("hold")}catch{}try{const le=g.current,ye=ut&&!!le?.src;if(!ut||ye){if(le){le.pause();try{le.currentTime=0}catch{}}}else Ct();We()}catch{}try{W("stopped")}catch{}if(L(!1),!be.current)try{Ve.current&&(clearTimeout(Ve.current),Ve.current=null),Ve.current=setTimeout(()=>{try{U("out")}catch{}Ve.current=setTimeout(()=>{try{typeof Ye.current=="function"&&Ye.current(!0)}catch{}try{U("idle")}catch{}Ve.current=null},re)},V)}catch{}};o.useEffect(()=>{Ie.current=Jt});const xn=o.useCallback(()=>me(""),[]),Kt=async V=>{(we.current||[])[V]&&await Xt(V,{sameSegment:V===De.current})},mt=$==="playing",ln=o.useMemo(()=>{if(!I||I.length<=1)return I;const V=I[O];return V?[V]:I},[I,O]),Yt=s===!0;o.useEffect(()=>{try{const V=g.current;V&&typeof V.playbackRate=="number"&&(V.playbackRate=oe||1)}catch{}},[oe]);const jt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const V=g.current;if(!V)return;const re=Math.max(0,Math.min(1,Ne)),le=jt.current,ye=()=>{le.raf!==null&&(cancelAnimationFrame(le.raf),le.raf=null),le.timer!==null&&(clearTimeout(le.timer),le.timer=null)};ye();const ve=$a(V);if(V.paused||Math.abs(ve-re)<.001||typeof requestAnimationFrame!="function"){try{kn(V,re)}catch{}return}const je=performance.now(),nt=()=>{const ht=Math.min(1,(performance.now()-je)/150);try{kn(V,ve+(re-ve)*ht)}catch{}le.raf=ht<1?requestAnimationFrame(nt):null};return le.raf=requestAnimationFrame(nt),le.timer=setTimeout(()=>{ye();try{kn(V,re)}catch{}},200),ye},[Ne]);const cn=ie==="hold",Zt=ie==="out",un=G==="playMode"&&!B&&!Se||cn||Zt,ke=$!=="stopped"||cn||Zt,Pe=$==="paused",ne=Math.max(0,Math.min(100,(F||0)*100)),pe=Be("audio-player__fill",un?"is-visible":"",ke?"is-expanded":"",Pe?"is-paused":"",Zt?"is-out":"");return n.jsxs("div",{className:`audio-player ${Yt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${mt?"is-playing":""} ${B?"is-loading":""} ${G!=="default"?"is-revealed":""}`,children:[B?n.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[n.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),n.jsx("span",{className:"audio-player__loading-text",children:d(`training.audioStatus.${M}`,{defaultValue:C5[M]})})]}):null,G==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Yt,onClick:()=>{H.current=Ja(),k(),vn()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:D,onMouseLeave:k,onFocus:D,onBlur:k,children:n.jsx("span",{ref:A,className:"audio-player__button-triangle-wrap",children:n.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:n.jsx("path",{ref:v,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&&n.jsx(Bn,{anchorRect:w,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${G==="playMode"||mt?"is-visible":""}`,inert:!(G==="playMode"||mt)||void 0,children:[n.jsxs("div",{ref:b,className:"audio-player__buttons",children:[n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:an,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:G!=="playMode"}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:mt?"pause":"play",onClick:vn,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":mt,width:"60px",variant:"transparent-white",disabled:G!=="playMode"}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Ht,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:G!=="playMode"}),Ze>1?n.jsx("div",{ref:f,className:"audio-player__source-buttons",children:Array.from({length:Ze}).map((V,re)=>n.jsx(ce,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(re+1),onClick:()=>{try{Kt(re)}catch{}},ariaLabel:d("training.sourcePlay",{n:re+1}),variant:"transparent-white",selected:j&&O===re,disabled:G!=="playMode"||!(Array.isArray(z)&&z[re]),showTooltipInfo:!0},re))}):null,!Array.isArray(z)||z.length<=1?n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:xt,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:G!=="playMode"}):null,n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:sn,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:G!=="playMode"}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:Jt,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:G!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:pe,ref:C,style:{left:`${ne}%`},"aria-hidden":"true"}),(c||u)&&n.jsx(f5,{segments:ln,progress:F,totalDuration:Q,waveProgressRef:xe,showSoundWaveForm:c,noiseSrc:u&&m?.settings.enabled&&Me>0?He:null,noiseRatio:m?Da(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:ge,onReadyChange:ee})]})]}),n.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!c&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(Ge,{icon:"triangle-alert",size:14}),d("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(ea,{message:se,position:_e,onClose:xn})]})}function rr(e){const{t}=fe.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:m,canIncrease:h,canDecrease:g,fontSize:C,lineHeight:b}=Gi({storageKey:"tooltip-fontScale"}),_=o.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),f=o.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),y=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],x={fontSize:`${C}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},v=n.jsxs("div",{className:`tooltip-textbox__root ${u==="dark"?"is-dark":""}`,children:[n.jsxs("div",{className:"tooltip-textbox__box",children:[r&&n.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),n.jsx("div",{className:"tooltip-textbox__text body-1",style:x,children:y.map((A,w)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[y.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},w))})]}),n.jsxs("div",{className:"tooltip-textbox__buttons",children:[n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:m,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!g}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:p,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!h}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:_,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:f,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return s?n.jsx(An,{anchorRect:s,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:v}):n.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:v})}function Oc({state:e="disabled"}){const{t}=fe.useTranslation();return n.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[n.jsx("div",{className:"bullet__dot",children:n.jsx(Ge,{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})}),n.jsx("div",{className:"ts-bullet__line"})]})}function Vc(e,t,a){const r=o.useRef(t),s=o.useRef(a);o.useEffect(()=>{r.current=t,s.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let i=null,l=10;const c=()=>{i=null;const u=r.current(),d=u?Array.from(u.querySelectorAll(hn)).find(p=>!p.closest('[aria-hidden="true"]')):void 0;if(d){try{d.focus()}catch{}if(document.activeElement===d)return}--l>0&&(i=requestAnimationFrame(c))};return i=requestAnimationFrame(c),()=>{i!==null&&cancelAnimationFrame(i);const u=document.activeElement;if(!u||u===document.body||!document.contains(u)||u.closest(".tooltip-content")){const d=s.current();if(d)try{d.focus()}catch{}}}},[e])}function Hc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:m}=fe.useTranslation(),h=en("(max-width: 767px)"),g=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),C=`training-step__title-row training-step__title-row--${r}`.trim(),b=o.useRef(null),[_,f]=o.useState(!1),[y,x]=o.useState(null),[v,A]=o.useState(null);Vc(_&&!!y,()=>{if(typeof document>"u")return null;const N=Array.from(document.querySelectorAll(".tooltip-content"));for(let M=N.length-1;M>=0;M--)if(N[M].querySelector(".tooltip-textbox__root"))return N[M];return null},()=>b.current?.querySelector("button")??null);const w=o.useRef(i);o.useEffect(()=>{w.current=i});const D=o.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(N=>typeof N=="string"||typeof N=="number")?l.join(""):"",[l]),k=o.useCallback(()=>{f(!1),x(null),A(null)},[]);o.useEffect(()=>{if(!_)return;let N;try{typeof w.current=="function"&&(N=w.current())}catch{}if(N===!1){k();return}A(typeof N<"u"&&N!==null?N:null)},[D]);const B=o.useCallback(()=>{let N;try{typeof i=="function"&&(N=i())}catch{}if(N!==!1){if(A(typeof N<"u"&&N!==null?N:l),!b.current){f(M=>!M);return}if(_)f(!1),x(null),A(null);else{const M=b.current.getBoundingClientRect();x(M),f(!0)}}},[i,l,_]);return n.jsxs("div",{className:C,children:[n.jsx("p",{className:g,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),s||u?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[u&&n.jsx(ce,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),s&&n.jsx("div",{ref:b,children:n.jsx(ce,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:B,className:_?"is-selected":void 0,"aria-expanded":_,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),_&&n.jsx(rr,{text:v??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:y,onClose:k,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Eo(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Hn({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:c=void 0,useTitleFaded:u=void 0}){const{t:d}=fe.useTranslation(),[p,m]=o.useState(()=>Eo(e,t));o.useEffect(()=>{const A=Eo(e,t);if(A!==p){const w=setTimeout(()=>m(A),0);return()=>clearTimeout(w)}},[e,t,p]);const h=o.useCallback((...A)=>{Eo(e,t)==="done"||p==="done"||typeof c=="function"&&c(...A)},[e,t,p,c]),[g,C]=o.useState(!1),[b,_]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),f=o.useCallback(A=>{if(!A)return null;try{const w=A;if(typeof A=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const B=w.currentTarget??w.target;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect()}if(A instanceof DOMRect)return A;const D=A;if(D&&typeof D.getBoundingClientRect=="function")return D.getBoundingClientRect();const k=A?.current;return k&&typeof k.getBoundingClientRect=="function"?k.getBoundingClientRect():null}catch{return null}},[]),y=o.useCallback((A,{text:w="",label:D="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:k=!1,alignX:B="center",alignY:N="top"}={})=>{const M=f(A);_({text:w,label:D,anchorRect:M,backdrop:k,alignX:B,alignY:N}),C(!0)},[f]),x=o.useCallback(()=>{C(!1),_(A=>({...A,anchorRect:null}))},[]),v=o.Children.map(i,A=>{if(o.isValidElement(A)){const w=A;if(typeof w.type=="string")return w;const D=w.props??{},k=typeof D.onDone=="function"?D.onDone:h,B=typeof D.disabled=="boolean";let N=p==="disabled";return B&&(N=!!D.disabled),o.cloneElement(w,{onDone:k,disabled:N,showTooltip:y,hideTooltip:x})}return A});return n.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[n.jsx(Oc,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(Hc,{state:p,title:r,...s,useFaded:u}),v]}),g?n.jsx(An,{anchorRect:b.anchorRect,backdrop:b.backdrop,onClose:x,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(rr,{text:b.text,onClose:x})}):null]})}function zc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=fe.useTranslation(),[s,i]=o.useState("disabled"),[l,c]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const u=()=>c($=>$==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:m,canDecrease:h,fontSize:g,lineHeight:C}=Gi({storageKey:"textbox_fontScale"}),[b,_]=o.useState(""),f=o.useRef(null),y=o.useRef(!1),x=o.useCallback(()=>{y.current=Ja()&&!!f.current&&f.current.contains(document.activeElement),i("active")},[]),v=o.useCallback(()=>_(""),[]),A=$=>{try{_($)}catch{}},w=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const $=setTimeout(()=>i(t),0);return()=>clearTimeout($)}},[t]);const D=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[k,B]=o.useState(D);k!==D&&(B(D),i("disabled"));const N=t==="disabled"?s:t,M=N==="disabled"?"training-text-box--disabled":N==="active"?"training-text-box--active":N==="done"?"training-text-box--done":"",P=o.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${C}px`}),[g,C]);return o.useEffect(()=>{if(N==="disabled"||!y.current)return;y.current=!1;const $=document.activeElement;$&&$!==document.body||f.current?.querySelector(".training-text-box__buttons button")?.focus()},[N]),n.jsxs("div",{ref:f,className:`training-text-box ${M} ${N!=="disabled"&&l==="dark"?"is-dark":""}`,children:[N==="disabled"&&n.jsx("div",{className:"training-text-box__preview",children:n.jsx(ce,{htmlType:"button",size:48,type:"bar",onClick:x,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),n.jsx("div",{className:"training-text-box__area","aria-hidden":N==="disabled",children:n.jsx("span",{className:"training-text-box__inner h3",style:P,children:D})}),N!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":N==="disabled",children:[n.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>A(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:l==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),n.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>A(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:l==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),n.jsx(ea,{message:b,position:"top",onClose:v})]})}function To({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:g,shuffleChoices:C=!0}){const{t:b}=fe.useTranslation(),_=r??b("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),f=typeof e=="number"?e:-1,y=typeof t!="number"?"disabled":f<t?"done":f===t?"active":"disabled",x=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,v=u?u.join("||"):"",A=d?d.join("||"):"",[w,D]=o.useState(()=>Array.isArray(x)?C?fa(x):x.slice():void 0);o.useEffect(()=>{Array.isArray(x)&&x.length?D(C?fa(x):x.slice()):D(void 0)},[c,v,A,C]);const[k,B]=o.useState(null),[N,M]=o.useState(()=>new Set);o.useEffect(()=>{B(null),M(new Set)},[A,c,v]);const P=o.useRef(void 0);o.useEffect(()=>{const S=P.current;typeof S=="number"&&typeof t=="number"&&typeof e=="number"&&S>=e&&t<e&&(B(null),M(new Set)),P.current=t},[t,e]);const $=o.useCallback(S=>{if(y!=="active")return;const F=w?.[S];if(F==null)return;const Y=F,G=y==="active"||y==="done";if(p){const q=new Set(N),H=q.has(Y);H?q.delete(Y):q.add(Y),M(q),typeof l=="function"&&l({selectedValues:[...q],__ts:Date.now()}),G&&(typeof m=="number"&&m>0?q.size>=m:!H)&&typeof i=="function"&&y==="active"&&i({selectedValues:[...q],__ts:Date.now()})}else B(Y),typeof l=="function"&&l({selectedIndex:S,selectedValue:Y,__ts:Date.now()}),G&&typeof i=="function"&&y==="active"&&i({selectedIndex:S,selectedValue:Y,__ts:Date.now()})},[w,y,p,l,i,m,N]),W=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return n.jsx(Hn,{index:e,stepIndex:t,isLast:a,title:_,useTitleFaded:s,children:n.jsx("div",{className:W,children:Array.isArray(w)&&w.length>0?w.map((S,F)=>n.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:()=>$(F),ariaLabel:String(S),label:S,useLabel:!0,icon:g?g[String(S)]:void 0,variant:"default",disabled:y==="disabled",selected:p?N.has(S):k===S,useDisabledCovered:h,minWidth:0},String(S))):null})})}function jo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:c}){const{t:u}=fe.useTranslation(),d=r??u("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,m=typeof t!="number"?"disabled":p<t?"done":p===t?"active":"disabled",h=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",g=l&&typeof l=="object"?l.choices:void 0,[C,b]=o.useState(c??null),_=`${String(h)}\0${JSON.stringify(g??null)}`,[f,y]=o.useState(_);f!==_&&(y(_),c==null&&b(null));const[x,v]=o.useState(c);Object.is(x,c)||(v(c),b(c??null));const A=o.useRef(void 0);o.useEffect(()=>{const B=A.current;typeof B=="number"&&typeof t=="number"&&typeof e=="number"&&B>=e&&t<e&&c==null&&b(null),A.current=t},[t,e,c]);const w=o.useCallback(B=>{const N=typeof B=="object"&&B!==null?Object.assign({},B,{__ts:Date.now()}):{value:B,__ts:Date.now()};typeof i=="function"&&i(N),m==="active"&&typeof s=="function"&&s(N)},[i,m,s]),D=o.useCallback(()=>{m==="active"&&(b(!1),w(!1))},[w,m]),k=o.useCallback(()=>{m==="active"&&(b(!0),w(!0))},[w,m]);return n.jsxs(Hn,{index:e,stepIndex:t,isLast:a,title:d,onDone:s,useTitleFaded:!1,children:[n.jsx(zc,{context:l,state:m}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((B,N)=>n.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(b(N),w&&w(N))},disabled:m==="disabled",ariaLabel:String(B),label:B,variant:m,selected:C===N},N)):n.jsxs(n.Fragment,{children:[n.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:D,disabled:m==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!1}),n.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:k,disabled:m==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!0})]})})]})}function Mo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:g,showNoiseWaveForm:C}){const{t:b}=fe.useTranslation(),_=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),f=m??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(Hn,{index:e,stepIndex:t,isLast:a,title:_,onDone:s,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:n.jsx(So,{soundSrc:l,ttsText:l?null:d??_,bucketPath:c,btnLabel:i||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:f,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:C},`audio-p${h??0}-s${e}`)})}const S5=[];function Lo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=S5}){const{t:c}=fe.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=I=>typeof I=="string"?I:I&&(I.context||I.sentence||I.question||"")||"",[p,m]=o.useState(Array.isArray(l)?l:[]),[h,g]=o.useState(()=>(p||[]).map((I,T)=>({id:T,text:d(I)}))),C=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),b=C!=="disabled",_=o.useRef(void 0);o.useEffect(()=>{if(_.current===l)return;_.current=l;const I=Array.isArray(l)?l:[];m(I);const T=(O=>{const R=(O||[]).map((J,oe)=>({id:oe,text:d(J)}));if(R.length<=1)return R;const j=(J,oe)=>{if(J.length!==oe.length)return!1;for(let ge=0;ge<J.length;ge++)if(J[ge].text!==oe[ge].text)return!1;return!0};let L=fa(R),Q=0;for(;j(L,R)&&Q<20;)L=fa(R),Q+=1;return L})(I);g(T);try{if(typeof i=="function"){const O=T.filter((R,j)=>R.text===d(I[j])).length;i({shuffled:T,score:O,total:(I||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&C==="active"){const O=T.filter((R,j)=>R.text===d(I[j])).length;s({shuffled:T,score:O,total:(I||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const f=(I,T)=>{const O=[...h],R=I+T;if(R<0||R>=O.length)return;const j=O[R];O[R]=O[I],O[I]=j,F(O);try{if(typeof s=="function"&&C==="active"){const L=O.filter((Q,J)=>Q.text===d(p[J])).length;s({shuffled:O,score:L,total:(p||[]).length,__ts:Date.now()})}}catch{}},[y,x]=o.useState(null),v=o.useRef(null),A=o.useRef(null),w=o.useRef(null),D=o.useRef(null),k=o.useRef(null),B=o.useRef({x:0,y:0}),N=o.useRef(null),M=o.useRef({dx:0,dy:0}),P=()=>{if(N.current!==null)return;const I=()=>{if(!v.current){N.current=null;return}N.current=requestAnimationFrame(I);const T=B.current,O=M.current||{dx:0,dy:0};v.current&&(v.current.style.transform=`translate3d(${T.x-O.dx}px, ${T.y-O.dy}px, 0)`)};N.current=requestAnimationFrame(I)},$=o.useRef(new Map),W=o.useRef(new Map),S=()=>{const I=new Map;return $.current.forEach((T,O)=>{T&&T.getBoundingClientRect&&I.set(O,T.getBoundingClientRect())}),I},F=I=>{const T=S();g(I);try{if(typeof i=="function"){const O=I.filter((R,j)=>R.text===d(p[j])).length;i({shuffled:I,score:O,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const O=S();I.forEach(R=>{const j=T.get(R.id),L=O.get(R.id),Q=$.current.get(R.id);if(!Q||!j||!L)return;const J=j.top-L.top;J&&(Q.style.transition="none",Q.style.transform=`translateY(${J}px)`,requestAnimationFrame(()=>{Q.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",Q.style.transform="";const oe=()=>{Q.style.transition="",Q.removeEventListener("transitionend",oe)};Q.addEventListener("transitionend",oe)}))})})},Y=(I,T)=>{try{try{T.dataTransfer?.setData("text/plain",String(I))}catch{}try{T.dataTransfer&&(T.dataTransfer.effectAllowed="move")}catch{}try{const O=document.createElement("div");O.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(O),T.dataTransfer?.setDragImage(O,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(O)}catch{}})}catch{}}catch{}x(I);try{const O=h[I],R=document.createElement("div");R.className="order-list__dragging-object order-list__dragging-object--visible",R.textContent=O&&O.text?O.text:"",document.body.appendChild(R),v.current=R;const j=$.current.get(O.id);let L=T.clientX||0,Q=T.clientY||0;try{if(j&&j.getBoundingClientRect){const ie=j.getBoundingClientRect();L=ie.left+ie.width/2,Q=ie.top+ie.height/2}}catch{}const J=R.getBoundingClientRect(),oe=J.width/2,ge=J.height/2;M.current={dx:oe,dy:ge},R.style.transition="none",B.current={x:L,y:Q},R.style.transform=`translate3d(${L-oe}px, ${Q-ge}px, 0)`,requestAnimationFrame(()=>{try{R.style.transition=""}catch{}P()});const Me=ie=>{const U=ie;B.current={x:U.clientX,y:U.clientY},P()};w.current=Me,document.addEventListener("mousemove",Me);const Ne=ie=>{const U=ie;B.current={x:U.clientX,y:U.clientY},P()};A.current=Ne,document.addEventListener("dragover",Ne);try{T.dataTransfer?.setData("text/plain",String(I));try{T.dataTransfer?.setData("application/json",JSON.stringify({idx:I}))}catch{}}catch{}}catch{}},G=(I,T)=>{T.preventDefault();try{T.dataTransfer&&(T.dataTransfer.dropEffect="move")}catch{}try{k.current!==null&&(clearTimeout(k.current),k.current=null);const O=T.currentTarget&&T.currentTarget.closest?T.currentTarget.closest(".order-list__item"):null;if(O&&D.current!==O){if(D.current)try{D.current.classList.remove("drag-over")}catch{}try{O.classList.add("drag-over")}catch{}D.current=O}}catch{}},q=(I,T)=>{T.preventDefault();const O=T.dataTransfer?.getData("text/plain")||"",R=O?parseInt(O,10):y,j=I;if(typeof R!="number"||isNaN(R)||R===j){x(null),Z(),H();return}const L=c2(h,R,j);F(L),x(null),H();try{if(typeof s=="function"&&C==="active"){const Q=L.filter((J,oe)=>J.text===d(p[oe])).length;s({shuffled:L,score:Q,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const Q=document.querySelectorAll(".order-list .order-list__item")[j];if(!Q)return;const J=Q.querySelector(".order-list__slot")||Q;try{J.classList.add("pulse"),J.offsetHeight,J.classList.add("to-dark");const oe=()=>{J.classList.remove("pulse","to-dark"),J.removeEventListener("transitionend",oe)};J.addEventListener("transitionend",oe)}catch{}})}catch{}Z()},H=()=>{if(v.current){try{document.body.removeChild(v.current)}catch{}v.current=null}A.current&&(document.removeEventListener("dragover",A.current),A.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),N.current!==null&&(cancelAnimationFrame(N.current),N.current=null)},z=()=>{x(null),Z(),H()};o.useEffect(()=>()=>H(),[]);const Z=()=>{try{if(k.current!==null&&(clearTimeout(k.current),k.current=null),D.current){try{D.current.classList.remove("drag-over")}catch{}D.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(I=>I.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const I=Math.max(1,(h||[]).length);h.forEach((T,O)=>{const R=W.current.get(T.id);if(!R)return;let j=50;I>1&&(j=Math.round(O/(I-1)*100));try{R.style.setProperty("--marker-pos",j+"%")}catch{}})}catch{}},[h]),o.useEffect(()=>()=>{H(),k.current!==null&&(clearTimeout(k.current),k.current=null)},[]),n.jsx(Hn,{index:e,stepIndex:t,isLast:a,title:u,children:n.jsx("div",{className:"order-list",children:h.map((I,T)=>{const O=Math.max(1,(h||[]).length),R=O>1?Math.round(T/(O-1)*100):50;return n.jsx("div",{className:"order-list__item",children:n.jsxs("div",{className:"order-list__slot","data-disabled":C==="disabled","aria-disabled":C==="disabled",children:[C!=="disabled"?n.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":R+"%"},ref:j=>{const L=W.current;j?L.set(I.id,j):L.delete(I.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:T+1})}):null,n.jsxs("div",{ref:j=>{const L=$.current;j?L.set(I.id,j):L.delete(I.id)},className:`order-list__draggable ${y===T?"dragging":""}`,"data-disabled":C==="disabled","aria-disabled":C==="disabled",tabIndex:C==="disabled"?-1:0,draggable:b,onDragStart:b?j=>Y(T,j):void 0,onDragEnter:b?j=>G(T,j):void 0,onDragOver:b?j=>G(T,j):void 0,onDragLeave:b?()=>{try{k.current!==null&&clearTimeout(k.current),k.current=setTimeout(()=>{try{const j=document.querySelectorAll(".order-list .order-list__item");j&&j[T]&&(j[T].classList.remove("drag-over"),D.current===j[T]&&(D.current=null))}catch{}},80)}catch{}}:void 0,onDrop:b?j=>q(T,j):void 0,onDragEnd:b?z:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:I.text}),b?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>f(T,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:T===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>f(T,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:T===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},I.id)})})})}const E5=8e3;function T5(e,t){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,t)})}function Wc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:m}=fe.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),C=p??3,b=(g||[]).slice(0,C);(g||[]).length>C&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${C} shown`);const _=typeof e=="number"?e:-1,f=typeof t!="number"?"disabled":_<t?"done":_===t?"active":"disabled",[y,x]=o.useState(null),v=o.useRef([]),[A,w]=o.useState(!1),D=o.useRef(null),k=o.useRef(!0);o.useEffect(()=>(k.current=!0,()=>{k.current=!1}),[]);const B=o.useMemo(()=>g.map(W=>W?.id??W?.word??"").join("|"),[g]);o.useEffect(()=>{x(null)},[B]);const N=o.useRef(void 0);o.useEffect(()=>{const W=N.current;typeof W=="number"&&typeof t=="number"&&typeof e=="number"&&W>=e&&t<e&&x(null),N.current=t},[t,e]);const M=o.useCallback((W,S)=>{if(c)return;const F={item:W,index:S,__ts:Date.now()};try{typeof i=="function"&&i(F)}catch{}if(f==="active"&&typeof s=="function")try{s(F)}catch{}},[c,i,f,s]),P=o.useCallback(async()=>{if(A||f==="disabled")return;w(!0);let W=!1;const S=new Promise(F=>{D.current=()=>{W=!0,F()}});try{for(let F=0;F<b.length&&!(!k.current||W);F++){const Y=v.current[F];Y&&await Promise.race([T5(Y.play(),E5),S])}}finally{D.current=null,w(!1)}},[A,f,b.length]),$=o.useCallback((W,S)=>{if(f!=="active")return;x(S);const F={selectedValue:W.word||W.title||"",selectedIndex:S,item:W,__ts:Date.now()};try{typeof i=="function"&&i(F)}catch{}if(f==="active"&&typeof s=="function")try{s(F)}catch{}},[i,f,s]);return n.jsx(Hn,{index:e,stepIndex:t,isLast:a,title:h,onDone:s,titleProps:{usePlayAllBtn:!d&&b.length>0,onPlayAll:P,playAllActive:A},children:n.jsx("div",{className:"training-step__cards",onClickCapture:W=>{const S=D.current;if(!S)return;const F=W.target;F&&typeof F.closest=="function"&&F.closest(".training-word-card__bottom")&&S()},children:b.length===0?n.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((W,S)=>n.jsx(ho,{ref:F=>{v.current[S]=F},item:W,disabled:f==="disabled",onPlayDone:()=>M(W,S),selectable:c,selected:c&&y===S,onSelect:c?()=>$(W,S):void 0,flipDelay:S*120,hideLabel:u,hideAudio:d},W&&W.id||S))})})}const j5=160,M5={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function L5(e,t){const a=M5[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}const qc=()=>{};function Sn(e){const t=o.useId();if(!("variant"in e)){const{label:f,sub:y,onClick:x,children:v,align:A="horizontal",icon:w}=e,D=k=>{x&&k.target===k.currentTarget&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),x())};return n.jsxs("div",{className:Be("panel-row",A==="vertical"?"panel-row--vertical":"",x?"panel-row--clickable":""),onClick:x,onKeyDown:x?D:void 0,role:x?"button":void 0,tabIndex:x?0:void 0,children:[w!=null&&n.jsx("div",{className:"panel-row__icon",children:w}),f!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:f}),y&&n.jsx("div",{className:"panel-row__sub caption-1",children:y})]}),n.jsx("div",{className:"panel-row__right",children:v})]})}if(e.variant==="description")return n.jsx("div",{className:"panel-row panel-row--block",children:n.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return n.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return n.jsx("div",{className:"panel-row panel-row--loading",children:n.jsx(Ba,{size:28})});if(e.variant==="custom"&&!e.label)return n.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:s,onClick:i,required:l,error:c,align:u="horizontal",useFullWidth:d=!1,icon:p}=e,m=a==="button"?void 0:i;let h=null;const g=a==="toggle"?`panel-toggle-${t}`:void 0,C=c?`panel-error-${t}`:void 0;if(a==="toggle"){const f=e;h=n.jsx(El,{checked:f.checked,onChange:f.onChange,id:g})}else if(a==="segmented"){const f=e;h=n.jsx(Vn,{options:f.options,value:f.value,onChange:f.onChange,size:f.size??40,ariaLabel:r})}else if(a==="dropdown"){const f=e,y=f.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:f.dropdowns.map((x,v)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(tn,{options:x.options,value:x.value,onChange:x.onChange,placeholder:x.placeholder,block:d,error:!!c,ariaDescribedBy:C,ariaLabel:x.ariaLabel??([r,x.placeholder].filter(Boolean).join(" ")||void 0)})},v))}):n.jsx(tn,{options:f.options??[],value:f.value??"",onChange:f.onChange??qc,block:d,error:!!c,ariaLabel:r,ariaDescribedBy:C});h=c?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[y,n.jsx("span",{id:C,className:"caption-1 panel-row__error",role:"alert",children:c})]}):y}else if(a==="button"){const f=e;f.buttons?.length?h=n.jsx("div",{className:"panel-row__button-group",children:f.buttons.map((y,x)=>n.jsx(ce,{htmlType:"button",size:y.btnSize??40,variant:y.btnVariant??"default",disabled:y.disabled,onClick:y.onClick,children:y.label},x))}):h=n.jsx(ce,{htmlType:"button",size:f.btnSize??40,variant:f.btnVariant??"default",disabled:f.disabled,onClick:f.onClick,children:f.buttonLabel})}else if(a==="text"){const f=e;h=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:f.valueColor?{color:f.valueColor}:void 0,children:f.value})}else if(a==="input"){const f=e;h=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(On,{value:f.value,onChange:f.onChange??qc,onKeyDown:f.onKeyDown,onEnter:f.onEnter,placeholder:f.placeholder,inputMode:f.inputMode,readOnly:f.readOnly,disabled:f.disabled,type:f.type,autoComplete:f.autoComplete,maxLength:f.maxLength,showCount:f.showCount,multiline:f.multiline,rows:f.rows,fullWidth:d,error:c,ariaLabel:r,required:l}),f.helperText&&n.jsx("div",{className:"panel-row__helper caption-1",children:f.helperText})]})}else a==="custom"&&(h=e.children);c&&a!=="input"&&a!=="dropdown"&&(h=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[h,n.jsx("span",{id:C,className:"caption-1 panel-row__error",role:"alert",children:c})]}));const b=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=f=>{m&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),m())};return n.jsxs("div",{className:Be("panel-row",u==="vertical"?"panel-row--vertical":"",b?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?_:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,children:[p!=null&&n.jsx("div",{className:"panel-row__icon",children:p}),n.jsxs("div",{className:"panel-row__left",children:[g?n.jsxs("label",{htmlFor:g,className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}),s&&n.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),n.jsx("div",{className:"panel-row__right",children:h})]})}function Uc(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function $5({devices:e,onRelease:t,emptyLabel:a}){const{t:r}=fe.useTranslation();return n.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(s=>{const i=e[s],l=s==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return n.jsxs("div",{className:"panel-row__device-column",children:[n.jsxs("div",{className:"panel-row__device-head",children:[n.jsx("span",{className:"panel-row__device-side body-2b",children:l}),i&&t&&n.jsx(ce,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${l} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(s)})]}),i?n.jsxs("div",{className:"panel-row__device-info",children:[n.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&n.jsx(pt,{size:"small",variant:Kl(i.device),fill:"soft",label:L5(i.device,r)}),Uc(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:Uc(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),co(i.wornYear,i.wornMonth,i.wornDay)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:co(i.wornYear,i.wornMonth,i.wornDay)})})]}):n.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},s)})})}function or({title:e,icon:t,disc:a,actions:r,size:s="medium",minHeight:i,maxWidth:l,className:c,scrollable:u,scrollbarGutter:d="auto",compactRows:p=!1,useBorder:m=!0,useBg:h=!0,useRowBorder:g=!0,labelWidth:C,form:b=!1,loading:_,empty:f,children:y}){const x=Be("panel",`panel--${s}`,b?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",h?"":"panel--no-bg",g?"":"panel--no-row-border",p?"panel--compact-rows":"",c),v={};return i!==void 0&&(v.minHeight=i),l!==void 0&&(v.maxWidth=typeof l=="number"?`${l}px`:l),C!==void 0&&(v["--panel-label-width"]=typeof C=="number"?`${C}px`:C),n.jsxs("div",{className:x,style:Object.keys(v).length?v:void 0,children:[(e!=null||a!=null)&&n.jsxs("div",{className:Be("panel__header",a!=null?"panel__header--with-disc":""),children:[t&&n.jsx(Ge,{icon:t,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[e!=null&&n.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&n.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&n.jsx("div",{className:"panel__actions",children:r})]}),_?n.jsx(Sn,{variant:"loading"}):f!=null&&o.Children.toArray(y).length===0?n.jsx(Sn,{variant:"empty",children:f}):u?n.jsx("div",{className:Be("panel__body--scroll",d==="stable"&&"panel__body--gutter-stable"),children:y}):y]})}function R5({cols:e=2,children:t}){return n.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function P5(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 Gc(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"}]}P5(wt.t.bind(wt)),Gc(wt.t.bind(wt));const $o="none",I5=.5,F5=1.5,O5=.25;function Ro({title:e,valueLabel:t,value:a,min:r,max:s,step:i,tickStep:l,size:c,onChange:u}){return n.jsxs(Sn,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(zl,{value:a,onChange:u,min:r,max:s,step:i,size:c,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),n.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function Kc({anchorRect:e,onClose:t}){const{t:a}=fe.useTranslation(),r=en("(max-width: 767px)")?40:24,s=nr(),i=Da(s?.settings??Ea),l=s?.settings.type??"defaultNoise",c=s?.settings.enabled??!0,u=s?.playbackRate??1,d=s?.mainVolume??1,p=Math.round(d*100),m=o.useCallback(b=>{try{s?.setMainVolume(Math.max(0,Math.min(1,b/100)))}catch{}},[s]),h=o.useCallback(b=>{try{s?.setPlaybackRate(b)}catch{}},[s]),g=o.useCallback(b=>{const _=Math.min(Na,Math.max(0,Math.round(b*10)/10));try{s?.setSettings({noiseRatio:_})}catch{}},[s]),C=o.useCallback(b=>{try{b===$o?s?.setSettings({enabled:!1}):s?.setSettings({type:b,enabled:!0})}catch{}},[s]);return n.jsx(An,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:n.jsxs("div",{className:"noise-settings__header",children:[n.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),n.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:n.jsxs(or,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[n.jsx(Ro,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),n.jsx(Ro,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:I5,max:F5,step:O5,size:r,onChange:h}),n.jsx(Sn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(Vn,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:$o,label:a("training.noise.type.none","\uC5C6\uC74C")},...Gc(a).map(b=>({key:b.value,label:b.label}))],value:c?l:$o,onChange:C})}),n.jsx(Ro,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Na,step:jc,size:r,onChange:g})]})})}function Yc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=fe.useTranslation(),[d,p]=o.useState(!1),[m,h]=o.useState(null),[g,C]=o.useState(!1),b=o.useRef(null),_=o.useRef(null),f=nr(),y=c>0,x=y&&l<c-1,v=!y||l>=c-1,A=s===Math.max(0,i);o.useEffect(()=>{e||(p(!1),h(null))},[e]);const w=o.useCallback(()=>{p(!1),h(null)},[]),D=o.useCallback(()=>{if(d){p(!1),h(null);return}const N=b?.current?.getBoundingClientRect();N&&h(N),t?.(),p(!0)},[d,t]),k=o.useCallback(()=>{if(d){p(!1),h(null);return}const N=_?.current?.getBoundingClientRect();N&&h(N),t?.(),p(!0)},[d,t]),B=o.useCallback(()=>C(N=>!N),[]);return Vc(e&&d,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[b.current,_.current].map(N=>N?.querySelector("button")??null).find(N=>!!N&&N.getClientRects().length>0)??b.current?.querySelector("button")??null),n.jsxs("div",{className:"pp-bottom",children:[n.jsxs("div",{className:"pp-bottom__left",children:[e?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pp-bottom__settings--desktop",children:n.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(ce,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:D,className:d?"is-selected":void 0,"aria-expanded":d,"aria-haspopup":"dialog",ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),n.jsx("div",{className:"pp-bottom__settings--mobile",children:n.jsx("div",{ref:_,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(ce,{htmlType:"button",size:56,type:"dot",icon:"settings",onClick:k,className:d?"is-selected":void 0,"aria-expanded":d,"aria-haspopup":"dialog",ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&n.jsx(ce,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:B,selected:g,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&g&&n.jsxs("div",{className:"pp-bottom__meters",children:[n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),n.jsx(so,{analyser:f?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),n.jsx(so,{analyser:f?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),n.jsxs("div",{className:"pp-bottom__right",children:[v&&n.jsx(ce,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!A}),x&&n.jsx(ce,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!A})]}),e&&d&&n.jsx(Kc,{anchorRect:m,onClose:w})]})}function Zc({title:e,subtitle:t,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:m,onClose:h}){const{t:g}=fe.useTranslation(),C=en("(max-width: 767px)"),b=Number.isInteger(p)?p:c||0,_=Number.isInteger(d)?d:u||0,f=m||h,y=Array.isArray(r)?C?r[r.length-1]:r.join(" / "):r,x=typeof e=="string"?e.trim():e,v=typeof t=="string"?t.trim():t,A=!!(x||v),w=A?x||v:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),D=y||(x?t:void 0),k=C&&typeof D=="string"&&(D.includes(" \xB7 ")||D.includes(" / "))?D.split(/\s[·/]\s/).pop():D,B=o.useMemo(()=>{const N=i&&typeof i=="object"?{...i}:{};return!("width"in N)&&!("height"in N)&&(N.width="40px",N.height="40px"),N},[i]);return n.jsxs("header",{className:"pp-title training-popup-title",children:[n.jsxs("div",{className:"pp-title__left",children:[f?n.jsx(ce,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:f,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,n.jsx("div",{children:s?n.jsx(Xl,{icon:s,label:e,tooltip:l,wrapperStyle:B}):null}),n.jsxs("div",{className:"pp-title__text",children:[k?n.jsx("span",{className:"pp-title__depth caption-1",children:k}):null,n.jsx("span",{className:`pp-title__title h2${A?"":" pp-title__title--empty"}`,children:w}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(Gl,{max:Math.max(0,_??0),index:Math.max(0,b??0)})]})}function V5(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function H5(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)]}const Xc=(e,t)=>{if(!t)return t;const a=typeof wt?.t=="function"?wt.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function Jc(e,t,a){const r=e,s=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=oi().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:s,label:r?.title||s,depth:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?Xc(`topic.${i.key}`,i.label):void 0,l?Xc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Po(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function z5(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function W5({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:c}){const u=Jc(t,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=t?.id||t?.title||s.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:s,emptyMessage:i,buildResults:l}}function q5(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function U5(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 G5(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 Qc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function K5(e,t,a,r){return Qc(e,t*a+r)}function Y5({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const s=e;if(Array.isArray(s.selectedValues))return r.every(i=>s.selectedValues.includes(i))&&s.selectedValues.every(i=>r.includes(i));if(typeof s.correct=="boolean")return s.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[t]));if(typeof t<"u")return r.some(s=>String(s)===String(t))}}function Z5(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 eu=o.createContext(null);function X5(){const e=o.useContext(eu);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function J5({index:e,stepIndex:t,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:c}=fe.useTranslation(),u=typeof e=="number"?e:-1,d=typeof t!="number"?"disabled":u<t?"done":u===t?"active":"disabled",[p,m]=o.useState(()=>s.map(()=>null)),h=JSON.stringify(s),g=s.length;o.useEffect(()=>{m(Array.from({length:g},()=>null))},[h]);const C=o.useRef(void 0);o.useEffect(()=>{const y=C.current;typeof y=="number"&&typeof t=="number"&&typeof e=="number"&&y>=e&&t<e&&m(Array.from({length:g},()=>null)),C.current=t},[t,e,g]);const b=o.useMemo(()=>p.filter(y=>y!==null).length+1,[p]),_=o.useCallback(y=>{if(d!=="active")return;const x=p;let v;if(x[y]!=null){const w=x[y];v=x.map(D=>D!==null&&D>=w?null:D)}else v=[...x],v[y]=b;m(v);const A={selectedOrder:v,words:s,__ts:Date.now()};try{typeof l=="function"&&l(A)}catch{}if(x[y]==null&&v.length>0&&v.every(w=>w!==null))try{typeof i=="function"&&i(A)}catch{}},[d,p,b,l,i,s]),f=r??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(Hn,{index:e,stepIndex:t,isLast:a,title:f,onDone:i,children:n.jsx("div",{className:"training-step__cards",children:s.map((y,x)=>n.jsx(ho,{item:{word:y},disabled:d==="disabled",selectable:!0,selected:p[x]!==null,orderRank:p[x],onSelect:()=>_(x),flipDelay:x*120,hideLabel:!1,hideAudio:!0},`${y}-${x}`))})})}function sr(e){return null}sr.__isTrainingPage=!0;function ia(e,t){const a=X5();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 tu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=ia(e,t);return n.jsx(Mo,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function nu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(To,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function au({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(jo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function ru({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(Lo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function ou({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(Wc,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function Q5({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(J5,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function Io(...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 s of r){if(typeof s=="string"&&s.trim().length)return s.trim();if(typeof s=="number"||typeof s=="boolean")return String(s)}}}return null}function e3(e){return Io(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function su(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=Io(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 iu(e){const{score:t,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:c=!1,pending:u=!1}=e||{},{t:d}=fe.useTranslation(),p=o.useId(),m=o.useCallback(()=>!u,[u]);o.useEffect(()=>{const y=a??0;if(t!=null&&y>0&&t/y>.5){const x=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(x)}},[t,a]);const h=o.useCallback(y=>{const x=su(y),v=Io(y?.wording,y?.label);return x===!0?{variant:"main",label:v??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:x===!1?{variant:"danger",label:v??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:v??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),g=a??0,C=t??0,b=o.useMemo(()=>Array.isArray(r)?r:[],[r]),_=o.useMemo(()=>b.map(y=>{const x=y??{},v=e3(x)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:A,label:w}=h(x),D=Array.isArray(x.corrects)?x.corrects:[],k=D.length?D.join(", "):x.answer!=null&&x.answer!==""?String(x.answer):null,B=typeof x.selectedText=="string"?x.selectedText:null,N=su(x)===!0;return{problem:v,variant:A,label:w,answer:k,selectedText:B,isCorrect:N}}),[b,h,d]),f=o.useMemo(()=>_.some(y=>y.answer!==null||y.selectedText!==null),[_]);return n.jsx(Dn,{onClose:l,closeOnBackdrop:!1,inline:c,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:m,footerClassName:"trp-result__foot",footer:({animateThen:y,closeWithAnimation:x})=>n.jsxs(n.Fragment,{children:[u&&n.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsxs("div",{className:"trp-actions",children:[n.jsx(ce,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>y(i)}),n.jsx(ce,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:x,disabled:u,onDisabledClick:u?()=>{}:void 0,"aria-describedby":u?p:void 0})]})]}),children:()=>n.jsxs("div",{className:"trp-result is-on",children:[n.jsxs("header",{className:"trp-result__head",children:[n.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&n.jsx("p",{className:"trp-result__subtitle body-3",children:s}),n.jsx("div",{className:"trp-score",children:n.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:C,total:g}),children:[n.jsx("span",{className:"trp-score__big",children:C}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:g})]})})]}),_.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${f?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[n.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[n.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),f&&n.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),n.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),_.map((y,x)=>n.jsxs("div",{className:"result-table__row",role:"row",children:[n.jsxs("div",{className:"trp-row__problem",children:[n.jsx("span",{className:"trp-row__no caption-1",children:String(x+1).padStart(2,"0")}),n.jsx("div",{className:"trp-row__q body-2",children:y.problem})]}),f&&n.jsxs("div",{className:"trp-row__answers",children:[y.answer!==null&&n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),n.jsx("span",{className:"trp-row__answer-value body-2",children:y.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${y.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${y.isCorrect?"is-correct":"is-wrong"}`,children:y.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx(pt,{variant:y.variant,label:y.label,fill:"soft",minWidth:80})})]},x))]})})]})})}function t3(e){o.useEffect(()=>{if(!e)return;const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const p=Date.now();a==null&&(a=p),r==null&&(r=p)},c=()=>{r!=null&&(s+=Date.now()-r,r=null)};t()&&l();const u=()=>{if(c(),a==null||s-i<=0||i===0&&s<5e3)return;const p=a+i;i=s,p2({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+s).toISOString()})},d=()=>{t()?l():u()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",u),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",u),u()}},[e])}function Fo(e,t){return e&&e.id||`page-${t??0}`}function Oo(e,t){return e&&e.key||`step-${t??0}`}function ir(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function n3(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const a3=300,r3=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},En=Object.freeze({}),lu=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function cu(e){const t=e,a=t?.results||t?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,s=Array.isArray(a)?a.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:a,correct:r!=null?s:null,total:r}}const o3=e=>n.jsx(iu,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function s3(e){const{scenario:t,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:m,onBack:h,onComplete:g,onNext:C,onSettings:b,useNoiseSetting:_=!0,children:f,ariaLabel:y,label:x,buildResults:v,onResult:A,typeKey:w,entryPoint:D,dailyTotal:k,itemRef:B,renderResultPopup:N,noiseOverride:M}=e;t3(w&&!lu.has(w)?w:"");const P=o.useRef(0);o.useEffect(()=>{P.current=Date.now()},[]);const{t:$}=fe.useTranslation(),W=A,S=!!t,F=t?.id||null,Y=t?.meta||{},G=Array.isArray(t?.pages)?t.pages:[],q=Array.isArray(f)||o.isValidElement(f)&&typeof f!="function"?o.Children.toArray(f).filter(o.isValidElement):[],H=q.length>0,z=ne=>ne===sr||ne?.__isTrainingPage===!0,Z=H&&q.some(ne=>z(ne.type)),I=Z?q.filter(ne=>z(ne.type)).map((ne,pe)=>{const V=ne.props||{};return{id:`children-page-${pe}`,steps:o.Children.toArray(V.children).filter(o.isValidElement),pageTop:V.pageTop||V.top||null,pageBottom:V.pageBottom||V.bottom||null}}):[{id:"children-page-0",steps:q}],T=H&&!S&&typeof f!="function",O=T?Math.max(1,I.length):0;o.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")}},[]),o.useEffect(()=>{if(typeof document>"u"||!document.body)return;const ne=document.body;return ne.dataset.ihabTrainingPopupCount=String(Number(ne.dataset.ihabTrainingPopupCount||"0")+1),ne.classList.add("ihab-training-popup-open"),()=>{const pe=Number(ne.dataset.ihabTrainingPopupCount||"1")-1;pe>0?ne.dataset.ihabTrainingPopupCount=String(pe):(delete ne.dataset.ihabTrainingPopupCount,ne.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return r4()},[]);const[R,j]=o.useState({...Ea,enabled:!1}),L=o.useRef(R);o.useEffect(()=>{L.current=R},[R]);const Q=o.useRef(M),J=o.useRef(!1),oe=o.useRef(null);o.useEffect(()=>{let ne=!1;const pe=V=>{if(ne)return;J.current=!0;const re=V?Sa({...Ea,enabled:!1},V):{...Ea},le=oe.current;oe.current=null;const ye=le?Sa(re,le):re;L.current=ye,j(ye),le&&!Q.current&&Qs(ye),Ia(ye);const ve=Q.current;if(ve){const je=typeof ve=="function"?ve(ye):ve,nt=Sa(ye,je);L.current=nt,j(nt),Ia(nt)}};return C2().then(pe),()=>{ne=!0}},[]);const[ge,Me]=o.useState(null),[Ne,ie]=o.useState(null),U=o.useCallback((ne,pe)=>{ne==="main"?Me(pe):ie(pe)},[]),se=o.useRef(null),me=o.useRef(null),_e=o.useCallback(()=>{me.current!==null&&(clearTimeout(me.current),me.current=null);const ne=se.current;se.current=null,ne&&Qs(ne)},[]);o.useEffect(()=>{if(typeof window>"u")return;const ne=()=>{document.visibilityState==="hidden"&&_e()};return window.addEventListener("pagehide",_e),document.addEventListener("visibilitychange",ne),()=>{window.removeEventListener("pagehide",_e),document.removeEventListener("visibilitychange",ne),_e()}},[_e]);const we=o.useCallback(ne=>{const pe=Sa(L.current,ne);if(L.current=pe,j(pe),!J.current){oe.current={...oe.current??{},...ne},Ia(pe);return}Q.current||(se.current=pe,me.current!==null&&clearTimeout(me.current),me.current=setTimeout(_e,a3)),Ia(pe)},[_e]),De=R.mainSpeed,xe=R.mainVolume,Ae=o.useCallback(ne=>we({mainSpeed:ne}),[we]),Te=o.useCallback(ne=>we({mainVolume:ne}),[we]),ae=o.useMemo(()=>({settings:R,setSettings:we,registerAnalyser:U,mainAnalyser:ge,noiseAnalyser:Ne,playbackRate:De,setPlaybackRate:Ae,mainVolume:xe,setMainVolume:Te}),[R,we,U,ge,Ne,De,Ae,xe,Te]),ee=o.useRef(null),[de,te]=o.useState(0),he=o.useRef([]),[be,Ye]=o.useState("center"),[Ve,qe]=o.useState(!1),Se=o.useRef(!1),Ue=o.useRef(null),$e=o.useCallback(ne=>{Se.current||(Se.current=!0,qe(!0),Ue.current=setTimeout(()=>{try{ne()}catch{Se.current=!1,qe(!1)}},r3()?0:j5))},[]);o.useEffect(()=>()=>{Ue.current&&clearTimeout(Ue.current)},[]);const Ie=o.useRef(h);o.useEffect(()=>{Ie.current=h}),o.useEffect(()=>{const ne=ee.current,pe=document.activeElement;if(Ir(ne,pe),ne){const V=Array.from(ne.querySelectorAll(hn)).filter(re=>!re.closest('[aria-hidden="true"]'))[0];if(V)try{V.focus()}catch{}}return()=>{const V=document.activeElement;if(!V||V===document.body||ne&&ne.contains(V))try{Fr(pe)?.focus?.()}catch{}}},[]),o.useEffect(()=>Rn(()=>$e(()=>{const ne=Ie.current;typeof ne=="function"&&ne()})),[$e]),Rr(ee,!0);const[He,at]=o.useState(!1),ot=o.useRef(!1),[We,Xe]=o.useState(null),Ct=o.useRef(0),At=()=>{Ct.current+=1,Xe(null)},[Et,ut]=o.useState(""),[Qe,Ze]=o.useState(()=>ir()),Oe=o.useRef(typeof u=="number"?u:null);o.useEffect(()=>{!S&&!T||(Ze(ir()),At())},[S,F,T]),o.useEffect(()=>{T&&Ze(ne=>{const pe=Math.max(0,Math.min(ne.pageIndex,Math.max(0,O-1)));return pe!==ne.pageIndex?{...ne,pageIndex:pe,stepIndex:0}:ne})},[T,O]);const rt=T?Math.max(0,Math.min(Qe.pageIndex,O-1)):0,et=T?I[rt]:null,bt=T&&et&&Array.isArray(et.steps)?et.steps:[],ze=S?Qe.pageIndex:T?rt:typeof u=="number"?u:0,it=S?G[Math.max(0,Math.min(Qe.pageIndex,Math.max(0,G.length-1)))]:null,Bt=S&&it&&Array.isArray(it.steps)?it.steps:[],Nt=S?Bt.length:T?bt.length:typeof m=="number"?m:0,Le=S||T?Math.max(0,Math.min(Qe.stepIndex,Math.max(0,Nt))):typeof p=="number"?p:0,Ke=S?G.length:T?O:typeof d=="number"?d:0;o.useLayoutEffect(()=>{const ne=Oe.current;if(typeof ze=="number"&&ne!==null&&ze!==ne&&ze>ne)try{ut($("training.problemNotice",{n:ze+1}))}catch{}Oe.current=typeof ze=="number"?ze:Oe.current},[ze,u,$]),o.useLayoutEffect(()=>{const ne=ee.current;if(!ne)return;const pe=()=>ne.querySelector(".page-popup__scroll");let V=null,re=null,le=null;const ye=lt=>{const _t=pe();if(!_t)return;const zt=_t.scrollHeight<=_t.clientHeight;if(Ye(zt?"center":"top"),lt&&!ot.current){ot.current=!0;try{at(!0)}catch{}try{nt.disconnect()}catch{}}},ve=()=>{V!==null&&cancelAnimationFrame(V),V=requestAnimationFrame(()=>{re!==null&&clearTimeout(re),re=setTimeout(()=>ye(!0),60)})},je=()=>{le!==null&&cancelAnimationFrame(le),le=requestAnimationFrame(()=>ye(!1))};ve(),window.addEventListener("resize",je);const nt=new MutationObserver(ve);nt.observe(ne,{childList:!0,subtree:!0,attributes:!0});const ht=setTimeout(()=>{ot.current||ye(!0)},400);return()=>{window.removeEventListener("resize",je),V!==null&&cancelAnimationFrame(V),re!==null&&clearTimeout(re),le!==null&&cancelAnimationFrame(le),clearTimeout(ht);try{nt.disconnect()}catch{}}},[ee]);const Dt=o.useCallback(ne=>{ee.current&&(ee.current._childOnNext=ne)},[]),vt=o.useCallback(ne=>{ee.current&&(ee.current._childOnResult=ne)},[]),Tt=o.useCallback((ne,pe,V)=>{Ze(re=>{const le=re.answersByPage[ne]||{},ye=le[pe],ve=Po(V),je=Po(ye);return ye&&je>ve?re:{...re,answersByPage:{...re.answersByPage,[ne]:{...le,[pe]:V}}}})},[Ze]),on=o.useCallback((ne,pe,V)=>{const re=Fo(it,ze),le=Oo(ne,pe);Tt(re,le,V)},[it,ze,Tt]),tt=o.useCallback((ne,pe,V)=>{const re=Fo(it,ze),le=Oo(ne,pe);Tt(re,le,V),!V?.allowChange&&ne?.autoAdvance!==!1&&Ze(ye=>({...ye,stepIndex:Math.max(ye.stepIndex,pe+1)}))},[it,ze,Tt,Ze]),Gt=o.useCallback((ne,pe)=>{const V=et?.id||`children-page-${ze??0}`,re=typeof pe=="number"?pe:Le??0,le=`step-${re}`;Tt(V,le,ne),ne?.allowChange||Ze(ye=>({...ye,stepIndex:Math.max(ye.stepIndex,re+1)}))},[et,ze,Le,Tt,Ze]),vn=o.useCallback((ne,pe)=>{const V=et?.id||`children-page-${ze??0}`,re=`step-${typeof pe=="number"?pe:Le??0}`;Tt(V,re,ne)},[et,ze,Le,Tt]),xt=T?{currentPageIndex:ze??0,currentStepIndex:Le??0,totalStepsInPage:bt.length,handleStepDone:Gt,handleStepChange:vn}:null,Ht=async()=>{const ne=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:G,flowState:Qe,answersByPage:Qe.answersByPage})):null;return typeof W=="function"&&await Promise.resolve(W(ne))||ne},Xt=async()=>{const ne=et?.id||`children-page-${Qe.pageIndex}`,pe=Qe.answersByPage[ne]||{},V=Z?(()=>{const ye={};let ve=0;return I.forEach(je=>{const nt=Qe.answersByPage[je.id]||{},ht=Array.isArray(je.steps)?je.steps.length:0;for(let lt=0;lt<ht;lt+=1){const _t=nt[`step-${lt}`];typeof _t<"u"&&(ye[`step-${ve+lt}`]=_t)}ve+=ht}),ye})():pe;if(typeof v=="function"){const ye=await Promise.resolve(v(V,{pageAnswers:pe,answersByPage:Qe.answersByPage,pages:I,currentPageId:ne}));return typeof W=="function"&&await Promise.resolve(W(ye))||ye}const re=Object.entries(pe).map(([ye,ve],je)=>({index:je,key:ye,payload:ve})),le={results:re,answers:re,score:0};return typeof W=="function"&&await Promise.resolve(W(le))||le},an=()=>{const ne=++Ct.current,pe=()=>ne!==Ct.current;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(S){const le=Ht();Xe(En);const ye=le;Promise.resolve(ye).then(ve=>{pe()||Xe(ve||{isEmpty:!0})}).catch(ve=>{!pe()&&Xe({isEmpty:!0})});return}if(T){const le=Xt();Xe(En);const ye=le;Promise.resolve(ye).then(ve=>{pe()||Xe(ve||{isEmpty:!0})}).catch(ve=>{!pe()&&Xe({isEmpty:!0})});return}const V=ee.current&&ee.current._childOnResult,re=le=>{try{return le?le():void 0}catch{return}};if(typeof V=="function"){const le=re(V);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:mn&&mn.tagName.toUpperCase()==="SCRIPT"&&mn.src||new URL("components.cjs.js",document.baseURI).href}catch{}le&&typeof le.then!="function"?Xe(le):Xe(le&&typeof le.then=="function"?En:{});const ye=()=>{pe()||Xe(ve=>ve===En?{}:ve)};Promise.resolve(le).then(ve=>{ve&&!pe()?Xe(ve):ye()}).catch(ve=>{ye()});return}if(typeof W=="function"){const le=re(W);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:mn&&mn.tagName.toUpperCase()==="SCRIPT"&&mn.src||new URL("components.cjs.js",document.baseURI).href}catch{}le&&typeof le.then!="function"?Xe(le):Xe(le&&typeof le.then=="function"?En:{});const ye=()=>{pe()||Xe(ve=>ve===En?{}:ve)};Promise.resolve(le).then(ve=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:mn&&mn.tagName.toUpperCase()==="SCRIPT"&&mn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ve&&!pe()?Xe(ve):ye()}).catch(ve=>{console.error("viewResults external handler failed",ve),ye()});return}},sn=()=>{if(S){if(typeof ze=="number"&&typeof Ke=="number"&&ze<Ke-1){Ze(pe=>({...pe,pageIndex:pe.pageIndex+1,stepIndex:0}));return}return an()}if(T){const pe=bt.length;if(typeof Le=="number"&&Le<pe-1){Ze(V=>({...V,stepIndex:V.stepIndex+1}));return}if(typeof ze=="number"&&typeof Ke=="number"&&ze<Ke-1){Ze(V=>({...V,pageIndex:V.pageIndex+1,stepIndex:0}));return}return an()}if(typeof C=="function"){try{C()}catch{}return}const ne=ee.current&&ee.current._childOnNext;if(typeof ne=="function"){try{ne()}catch{}return}},Jt=S?Y.title||Y.label||y||$("common.popup","\uD31D\uC5C5"):a||x||(Array.isArray(s)?s[s.length-1]:void 0)||y||$("common.popup","\uD31D\uC5C5"),xn=y||Jt,Kt=S?Y.title??Y.label??Jt:a??x??Jt,mt=(ne,pe)=>{const V=Fo(it,ze),re=Oo(ne,pe),le=Qe.answersByPage[V]?.[re],ye=n3(ne,{page:it,pageIndex:ze,step:ne,stepIndex:pe,storedPayload:le,answersByPage:Qe.answersByPage,flowState:Qe}),ve={key:re,index:pe,stepIndex:Le,isLast:pe===Bt.length-1};switch(ne?.type){case"listen":return n.jsx(Mo,{...ve,...ye,onDone:je=>tt(ne,pe,je)});case"confirm":return n.jsx(To,{...ve,...ye,onDone:je=>tt(ne,pe,je),onChange:je=>on(ne,pe,je)});case"confirmWithText":return n.jsx(jo,{...ve,...ye,onDone:je=>tt(ne,pe,je),onChange:je=>on(ne,pe,je)});case"orderList":return n.jsx(Lo,{...ve,...ye,onDone:je=>tt(ne,pe,je),onChange:je=>on(ne,pe,je)});default:return null}},ln=o.useRef(void 0);o.useEffect(()=>{const ne=ln.current;if(ln.current=ze,ne===void 0||ne===ze||!Ja())return;const pe=ee.current;if(!pe)return;const V=document.activeElement;if(!(!V||V===document.body||!pe.contains(V)||V.disabled===!0))return;const re=pe.querySelector(`.training-steps ${hn.split(", ").join(", .training-steps ")}`)??Array.from(pe.querySelectorAll(hn)).find(le=>!le.closest('[aria-hidden="true"]'));try{re?.focus()}catch{}},[ze]);const Yt=S?G.length>0?n.jsx("div",{className:"training-steps",children:Bt.map((ne,pe)=>mt(ne,pe))},`replay-${de}`):n.jsx("div",{className:"page-popup__content page-popup__content--center",children:n.jsx("div",{className:"pp-empty",children:t?.emptyMessage||$("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,jt=T?n.jsxs(eu.Provider,{value:xt,children:[et?.pageTop?n.jsx("div",{className:"training-page-top",children:et.pageTop}):null,n.jsx("div",{className:"training-steps",children:bt.map((ne,pe)=>{const V=ne;return o.cloneElement(V,{...V.props,_stepIndex:pe,_totalSteps:bt.length,_stepKey:`step-${pe}`,_pageIndex:ze})})},`replay-${de}`),et?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:et.pageBottom}):null]}):null,cn=o.useCallback(()=>{let ne;if(w){const pe=We,{results:V,correct:re,total:le}=cu(We);m2({items:f2(V),category:lu.has(w)?"sentence":"word",trainingType:w,entryPoint:D??"sentence",itemRef:B??null,correct:re,total:le,score:typeof pe?.score=="number"?pe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-P.current)/1e3)),dailyTotal:k??null}),ne={correct:re,total:le,attempt:he.current.length+1,previousAttempts:[...he.current]}}At(),$e(()=>{typeof g=="function"&&g(ne),typeof h=="function"&&h()})},[g,h,w,D,k,B,We,Xe,$e]),Zt=o.useCallback(()=>ut(""),[ut]),un=o.useCallback(()=>{$e(()=>{typeof h=="function"&&h()})},[h,$e]),ke=n.jsxs("div",{className:`page-popup${Ve?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":xn,children:[n.jsxs("div",{ref:ee,className:`page-popup__panel ${He?"":"page-popup__panel--measuring"} ${be==="center"?"page-popup__panel--center":be==="top"?"page-popup__panel--top":""}`,children:[n.jsx(Zc,{title:Kt,subtitle:S?Y.subtitle||Y.label:Array.isArray(s)?s.join(" / "):void 0,desc:S?void 0:r,depth:S?Y.depth:s,icon:S?Y.icon:i,wrapperStyle:S?Y.wrapperStyle:l,iconTooltip:S?Y.iconTooltip:c,progressMax:Ke,progressIndex:ze,pageIndex:ze,pageCount:Ke,onBack:un,onClose:un}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${be==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:T?jt:S?Yt:typeof f=="function"?f({registerOnNext:Dt,registerOnResult:vt,panelRef:ee,setResultOverlay:Xe}):f})}),n.jsx(Yc,{onSettings:b,onNext:sn,onResult:an,useNoiseSettingBtn:!!(S?Y.useNoiseSetting??!0:_),stepIndex:Le,stepCount:Nt,pageIndex:ze,pageCount:Ke})]}),We&&!We.isEmpty&&(N??o3)({score:We.score,results:We.results||We.answers||[],contextsLength:We.results?We.results.length:We.answers?We.answers.length:0,onReplay:()=>{if(P.current=Date.now(),We!==En){const{correct:ne,total:pe}=cu(We);he.current.push({correct:ne,total:pe})}if(At(),te(ne=>ne+1),S){if(Ze(ir()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(T){Ze(ir());return}try{const ne=ee.current&&ee.current._childOnResult;typeof ne=="function"&&ne({replay:!0})}catch{}},onClose:cn,pending:We===En}),We?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":$("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:n.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:"page-popup__content page-popup__content--center",children:n.jsx("div",{className:"page-popup__empty",children:$("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),n.jsx("div",{className:"page-popup__bottom",children:n.jsx(ce,{htmlType:"button",variant:"main",size:48,onClick:cn,label:$("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(ea,{message:Et,position:"top",onClose:Zt})]}),Pe=n.jsx(Ao.Provider,{value:ae,children:ke});return typeof document<"u"&&document.body?Wt.createPortal(Pe,document.body):Pe}const Tn=s3;Tn.Page=sr,Tn.ListenStep=tu,Tn.ConfirmStep=nu,Tn.ConfirmWithTextStep=au,Tn.OrderListStep=ru,Tn.CardStep=ou,Tn.CardOrderStep=Q5;function i3({label:e,homonum:t}){const a=Un()?.(e,t)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:c}=mo(a);return i?n.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&n.jsx("div",{className:"tooltip-word-image__spinner"}),n.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?0:1},onLoad:l,onError:c})]}):n.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:n.jsx("span",{children:e})})}function uu({words:e,anchorRect:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,c=window.innerWidth;let u=t.left+t.width/2-i/2,d=t.top-l-8;d<8&&(d=t.bottom+8),u=Math.max(8,Math.min(u,c-i-8)),s({left:u,top:d})},[t]),!t||e.length===0?null:Wt.createPortal(n.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:n.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>n.jsx(i3,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const l3=new Intl.Collator("ko");function c3({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:m,className:h,emptyHint:g,sectionType:C="page",disc:b,notice:_}){const{t:f,i18n:y}=fe.useTranslation(),x=y.language?.startsWith("ko")??!1,{anchorRect:v,openAt:A,close:w}=za(),[D,k]=o.useState(null),B=o.useCallback(()=>{w(),k(null)},[w]);qg(B,!!D);const N=(r??"").trim(),M=/^[^,[\]\s]+$/.test(N)?N:"",P=M.length>0,$=r===void 0&&t===void 0,W=P?"match":$?"original":"ganada",[S,F]=o.useState(()=>W),[Y,G]=o.useState("50"),[q,H]=o.useState(1),[z,Z]=o.useState(P);z!==P&&(Z(P),F(W));const I=S==="match"&&!P||S==="original"&&!$?W:S,T=o.useMemo(()=>[...P?[{value:"match",label:f("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...$?[{value:"original",label:f("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:f("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:f("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:f("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:f("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:f("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:f("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[f,P,$]),O=o.useMemo(()=>["10","25","50","100"].map(xe=>({value:xe,label:f("wordSearch.pageSize",{count:Number(xe),defaultValue:`${xe}\uAC1C\uC529 \uBCF4\uAE30`})})),[f]),R=xe=>xe.words?.[0],j=o.useMemo(()=>{const xe=[...M].length,Ae=X0(M),Te=new Map;return ae=>{let ee=Te.get(ae);return ee===void 0&&(ee=Ae((ae.words?.[0]?.label??"").slice(0,xe))?0:1,Te.set(ae,ee)),ee}},[M]),L=o.useCallback((xe,Ae)=>{const Te=de=>R(de)?.label??"",ae=de=>R(de)?.syllables??[...Te(de)].length,ee=de=>(de.words??[]).reduce((te,he)=>{const be=parseInt(he.grade??"",10);return Number.isFinite(be)&&be<te?be:te},999);switch(I){case"match":return j(xe)-j(Ae)||l3.compare(Te(xe),Te(Ae));case"ganada":return Te(xe).localeCompare(Te(Ae),"ko");case"ganada_desc":return Te(Ae).localeCompare(Te(xe),"ko");case"syllable":return ae(xe)-ae(Ae)||Te(xe).localeCompare(Te(Ae),"ko");case"syllable_desc":return ae(Ae)-ae(xe)||Te(xe).localeCompare(Te(Ae),"ko");case"grade":return ee(xe)-ee(Ae)||Te(xe).localeCompare(Te(Ae),"ko");case"grade_desc":return ee(Ae)-ee(xe)||Te(xe).localeCompare(Te(Ae),"ko");default:return 0}},[I,j]),Q=o.useMemo(()=>s.slice().sort(L),[s,L]),J=Number(Y)||10,oe=o.useMemo(()=>(i??[]).flatMap(xe=>xe.items.slice().sort(L).map(Ae=>({item:Ae,label:xe.label}))),[i,L]),ge=i?oe.length:Q.length,Me=Math.max(1,Math.ceil(ge/J)),Ne=Math.min(q,Me),ie=o.useMemo(()=>Q.slice((Ne-1)*J,Ne*J),[Q,Ne,J]),U=o.useMemo(()=>{if(!i)return null;const xe=oe.slice((Ne-1)*J,Ne*J),Ae=new Map;for(const{item:Te,label:ae}of xe)Ae.has(ae)||Ae.set(ae,[]),Ae.get(ae).push(Te);return[...Ae.entries()].map(([Te,ae])=>({label:Te,items:ae}))},[i,oe,Ne,J]);o.useEffect(()=>{H(1)},[S,Y,ge,r]);const se=ge>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(tn,{size:40,options:T,value:I,onChange:F,ariaLabel:f("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(tn,{size:40,options:O,value:Y,onChange:G,ariaLabel:f("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(Ua,{page:Ne,totalPages:Me,onChange:H})]}):void 0,me=xe=>{c&&c(xe)},_e=t!==void 0&&a?n.jsxs(n.Fragment,{children:[f("wordSearch.resultTitlePrefix","\uCD1D "),n.jsx("span",{style:{color:"var(--color-main)"},children:t}),f("wordSearch.resultTitleSuffix",{unit:x?s2(a):a})]}):void 0,we=t!==void 0&&t>0&&u!==void 0&&a?f("wordSearch.resultDisc",{unit:x?l2(a):a,max:u,selected:l.length}):void 0,De=b??(_?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"word-search-result-block__notice",children:_}),we?n.jsx("span",{className:"word-search-result-block__disc",children:we}):null]}):we);return n.jsxs(na,{type:C,icon:e,title:_e,action:se,disc:De,className:Be("word-search-result-block",h),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:s.length===0)&&n.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[n.jsx("p",{className:"word-search-result-block__empty body-3",children:f("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(U??[]).map(xe=>n.jsx("div",{className:"word-search-result-block__group",children:n.jsx("div",{className:"word-search-result-block__items",children:xe.items.map(Ae=>{const Te=l.includes(Ae.id);return n.jsx("div",{onMouseEnter:ae=>{A(ae.currentTarget),k(Ae.words??[])},onMouseLeave:B,children:n.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:(Ae.words??[]).map(ae=>ae.label),subLabel:(Ae.words??[]).some(ae=>ae.subLabel)?(Ae.words??[]).map(ae=>ae.subLabel):void 0,selected:Te,onClick:()=>me(Ae.id),minWidth:200})},Ae.id)})})},xe.label)):n.jsx("div",{className:"word-search-result-block__items",children:ie.map(xe=>{const Ae=l.includes(xe.id);return n.jsx("div",{onMouseEnter:Te=>{A(Te.currentTarget),k(xe.words??[])},onMouseLeave:B,children:n.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:(xe.words??[]).map(Te=>Te.label),subLabel:(xe.words??[]).some(Te=>Te.subLabel)?(xe.words??[]).map(Te=>Te.subLabel):void 0,selected:Ae,onClick:()=>me(xe.id),minWidth:200})},xe.id)})}),D&&v&&n.jsx(uu,{words:D,anchorRect:v})]}),Me>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(Ua,{page:Ne,totalPages:Me,onChange:H})}),(d||p)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[d&&n.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:f("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),p&&n.jsx("div",{onClick:l.length===0?m:void 0,children:n.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:f("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function u3(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,s=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:s}})}function d3({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:m,titleIcon:h,disc:g,showInfoButton:C=!0,onClearPhoneme:b,onSearch:_,onSearchEmpty:f,searchDisabled:y=!1,searchLabel:x,searchChecking:v=!1,pairMode:A=!1,sectionType:w="page",beforeSearchContent:D,beforeContent:k,afterContent:B,hideCountControl:N=!1,ordinal:M=!1}){const{t:P}=fe.useTranslation(),$=o.useMemo(()=>P("wordPairs.infoNotes",{returnObjects:!0}),[P]),W=o.useMemo(()=>Array.from({length:s-i+1},(R,j)=>{const L=i+j;return{key:String(L),label:P("wordPairs.count",{n:L})}}),[P,s,i]),S=o.useMemo(()=>P("wordPairs.ordinals",{returnObjects:!0}),[P]),F=o.useCallback(R=>M?P("wordPairs.phonemeOrdinalLabel",{ordinal:S[R-1]??R}):a===1?P("wordPairs.phonemeSingleLabel","\uC74C\uC808"):P("wordPairs.phonemeN",{n:R}),[M,S,a,P]),Y=o.useCallback(R=>M?P("wordPairs.phonemeContrastOrdinalLabel",{ordinal:S[R-1]??R}):a===1?P("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):P("wordPairs.phonemeContrast",{n:R}),[M,S,a,P]),G=o.useCallback((R,j)=>j?n.jsxs(n.Fragment,{children:[R,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):R,[]),{anchorRect:q,toggleAt:H,close:z}=za(),Z=o.useCallback(R=>r(Number(R)),[r]),I=en("(max-width: 767px)"),T=o.useCallback(R=>u3(R,e).map(({label:j,value:L,displayLabel:Q})=>{const J=!!L&&L!=="\uC5C6\uC74C";return n.jsxs("span",{className:Be("phoneme-select-block__cell-jamo-part",L?"":"phoneme-select-block__cell-jamo-part--empty",J?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${L==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:L==="\uC5C6\uC74C"?"x":L||d}),J&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Q??j})]},j)}),[e,d]),O=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(ce,{htmlType:"button",size:40,type:I?"dot":void 0,icon:"info",label:I?void 0:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:q?"is-selected":void 0,"aria-expanded":!!q,"aria-haspopup":"dialog",onClick:R=>H(R.currentTarget)})}),q&&n.jsx(Pn,{title:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:$,anchorRect:q,onClose:z})]});return n.jsxs(na,{type:w,title:m,icon:h,disc:g,action:C?O:void 0,className:Be("phoneme-select-block",p),children:[k,!N&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(Vn,{options:W,value:String(a),onChange:Z,size:40,className:"phoneme-select-block__count-control"})}),n.jsx("div",{className:"phoneme-select-block__cells",children:A?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,j)=>{const L=t[j*2]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:T(L)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(j+1)})]},j)})}),n.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:P("wordPairs.phonemeSelect.vs","\uB300")}),n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,j)=>{const L=t[j*2+1]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:T(L)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Y(j+1)})]},j)})})]}):t.map((R,j)=>n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:T(R)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(j+1)})]},j))}),(l||c)&&n.jsx("div",{className:"phoneme-select-block__panels",children:n.jsx("div",{className:"phoneme-select-block__detail",children:A?n.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((R,j)=>{const L=t[j*2]??{};return n.jsx(yn,{title:G(F(j+1),j===0),sections:c?c(L,j*2):l,selected:L,onSelect:u?.(j*2),align:"newline"},j)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((R,j)=>{const L=t[j*2+1]??{};return n.jsx(yn,{title:Y(j+1),sections:c?c(L,j*2+1):l,selected:L,onSelect:u?.(j*2+1),align:"newline"},j)})})]}):t.map((R,j)=>n.jsx(yn,{title:G(F(j+1),j===0),sections:c?c(R,j):l,selected:R,onSelect:u?.(j),align:"newline"},j))})}),D&&n.jsx("div",{className:"phoneme-select-block__before-search",children:D}),(b||_||v)&&(()=>{const R=t.every(j=>Object.entries(j).every(([L,Q])=>!Q||L==="\uC885\uC131"&&Q==="\uC5C6\uC74C"));return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:R?f:void 0,children:[b&&n.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:P("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:R,onClick:R?void 0:b}),_?n.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:v?n.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:x??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:R||y||v,onDisabledClick:v?()=>{}:void 0,"aria-busy":v||void 0,onClick:_}):v?n.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[n.jsx("div",{className:"phoneme-select-block__spinner"}),n.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:x??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),B]})}function p3({title:e,sections:t,selected:a,onSelect:r,className:s}){const{t:i}=fe.useTranslation();return n.jsx(yn,{className:s,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function m3({title:e,headerAction:t,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=fe.useTranslation();return a.length===0?null:n.jsx(yn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:s,align:"newline"})}function h3({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=fe.useTranslation(),m={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=_=>p("wordPairs.count",{n:_}),g=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:n.jsx(wa,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("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."),p("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."),p("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:m.phonemeOrder,items:[m.orderAny,m.orderMatch],display:"segmented",labelAction:n.jsx(wa,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[h(1),h(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:n.jsx(wa,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("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."),p("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.")]})}],C={[m.searchMode]:t==="explicit"?m.explicit:t==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:h(i),[m.inputMode]:c==="phoneme"?m.pronInput:m.charInput},b=(_,f)=>{f===m.searchMode?a(_===m.explicit?"explicit":_===m.pick?"pick":"include"):f===m.phonemeOrder?s(_===m.orderMatch?"ordered":"unordered"):f===m.count?l(_===h(2)?2:1):f===m.inputMode&&u(_===m.pronInput?"phoneme":"word")};return n.jsx(yn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:C,onSelect:b,align:"inline"})}function f3(e){const{title:t,items:a,columns:r,gridTemplateColumns:s,searchPlaceholder:i,searchFn:l,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:p,onSelect:m,onClose:h,pageSizeOptions:g=[10,25,50,100],initialPageSize:C,emptyText:b,countLabel:_,topContent:f,className:y=""}=e,{t:x}=fe.useTranslation(),v=i??x("common.search","\uAC80\uC0C9"),A=b??x("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,D]=o.useState(""),[k,B]=o.useState(c??r[0]?.key??""),[N,M]=o.useState(u),[P,$]=o.useState(String(C??g[0]??10)),[W,S]=o.useState(1);o.useEffect(()=>{S(1)},[w,P]);const F=l!==null,Y=o.useCallback((j,L)=>{if(!L)return!0;const Q=L.toLowerCase();return r.some(J=>{const oe=j[J.key];return oe==null?!1:String(oe).toLowerCase().includes(Q)})},[r]),G=l??Y,q=o.useMemo(()=>{const j=F?a.filter(L=>G(L,w)):a;return k?[...j].sort((L,Q)=>{const J=L[k],oe=Q[k];return J===oe?0:Gr(J,oe,N)}):j},[a,w,k,N,F,G]),H=Math.max(1,Math.ceil(q.length/Number(P)));W>H&&S(H);const z=Math.min(W,H),Z=q.slice((z-1)*Number(P),z*Number(P)),I=o.useCallback(j=>{k===j?M(L=>!L):(B(j),M(!0)),S(1)},[k]),T=o.useMemo(()=>{if(typeof _=="function"){const j=q.length,L=_(j);if(typeof L=="string"){const Q=L.lastIndexOf(String(j));if(Q>=0)return{prefix:L.slice(0,Q),suffix:L.slice(Q+String(j).length)}}return{label:L}}if(typeof _=="string"&&_.includes("{n}")){const[j,L]=_.split("{n}");return{prefix:j,suffix:L}}return{prefix:x("common.totalCountPrefix","\uCD1D "),suffix:x("common.totalCountSuffix","\uAC1C")}},[_,q.length,x]),O=o.useMemo(()=>r.map(j=>({label:j.label,onClick:j.sortable!==!1?()=>I(j.key):void 0,className:j.className,sortDir:j.sortable!==!1&&k===j.key?N?"asc":"desc":null})),[r,k,N,I]),R=o.useMemo(()=>g.map(j=>({value:String(j),label:x("common.pageSizeLabel",{n:j})})),[g,x]);return n.jsxs(Dn,{className:`popup-list ${y}`,title:t,onClose:h,children:[f,"label"in T&&n.jsx("p",{className:"toolbar__count body-1",children:T.label}),n.jsx(to,{count:"label"in T?void 0:{value:q.length,prefix:T.prefix,suffix:T.suffix},search:F?{value:w,onChange:D,placeholder:v}:void 0,pageSize:{options:R,value:P,onChange:$},pagination:{page:z,total:H,onChange:S}}),n.jsx(lo,{size:"medium",gridTemplateColumns:s,resizable:!0,fields:O,items:Z,onRowClick:m,renderRow:j=>{const L=p!=null?j.id!=null&&p.has(j.id):d!=null&&j.id===d;return r.map(Q=>({content:Q.render?Q.render(j):j[Q.key]??"",className:Be(Q.className,L&&"popup-list__row--selected")}))},empty:A})]})}function C3(e){const{title:t,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:g=!0,onClose:C,inline:b,size:_="small",className:f,initialFocus:y="close"}=e,{t:x}=fe.useTranslation(),v=o.useRef(null);o.useEffect(()=>{if(b||y==="close")return;const N=v.current?.closest(".popup-panel"),M=Array.from(N?.querySelectorAll(".popup-footer--buttons button")??[]),P=y==="confirm"?M[M.length-1]:u?void 0:M[d?1:0];P&&!P.disabled&&P.focus()},[]);const A=o.useRef(!1),[w,D]=o.useState(!1),k=N=>{let M=!1;return{close:()=>{M=!0,N()},\uB2EB\uC558\uB098:()=>M}},B=async N=>{if(A.current)return;A.current=!0;const M=typeof document<"u"?document.activeElement:null;D(!0);let P=!1;try{P=await N()}catch($){typeof console<"u"&&console.error($)}finally{P||(A.current=!1,D(!1),requestAnimationFrame(()=>{const $=document.activeElement;(!$||$===document.body)&&M?.isConnected&&M.focus()}))}};return n.jsxs(Dn,{title:t,onClose:C,closeDisabled:w,inline:b,size:_,className:Be("confirm-popup",f),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||w,onClick:async({closeWithAnimation:N})=>{await B(async()=>{const M=k(N);await d.onClick(M.close);const P=d.closeOnClick??!0;return P&&N(),P||M.\uB2EB\uC558\uB098()})}}]:[],...u?[]:[{label:c??x("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:w,onClick:({closeWithAnimation:N})=>N()}],{label:l??x("common.confirm","\uD655\uC778"),variant:p,disabled:m||w,onClick:async({closeWithAnimation:N})=>{await B(async()=>{const M=k(N);return await h(M.close),g&&N(),g||M.\uB2EB\uC558\uB098()})}}],children:[r!=null&&n.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&n.jsx(or,{children:s.map((N,M)=>n.jsx(Sn,{label:N.label,children:n.jsx("span",{className:"panel-row__text body-2",children:N.value})},M))}),n.jsx("p",{ref:v,className:"body-2 confirm-popup__message",children:a}),i]})}function g3({onApply:e,onCancel:t}){const{t:a}=fe.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[c,u]=o.useState(null),d=o.useRef(null);o.useEffect(()=>{d.current?.focus()},[]);const p=o.useCallback(async g=>{const C=r.trim();if(C){l(!0),u(null);try{await e(C),g()}catch(b){u(Ys(b)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),m=o.useCallback((g,C)=>{g.key==="Enter"&&!g.nativeEvent.isComposing&&p(C)},[p]),h=g=>{s(g.target.value),u(null)};return n.jsx(Dn,{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})=>{p(g)}}],children:({closeWithAnimation:g})=>n.jsxs(n.Fragment,{children:[n.jsx("input",{ref:d,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:h,onKeyDown:C=>m(C,g),disabled:i,autoComplete:"off",spellCheck:!1}),c&&n.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const b3=200;function y3(e){return e.itemId?(D2()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function v3({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:s}=fe.useTranslation(),i=o.useMemo(()=>E2(s).map(c=>({type:c,items:(e.items??[]).filter(u=>u.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items,s]);if(i.length===0)return null;const l=n.jsx("div",{className:"tooltip-training__box",children:n.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:c,items:u},d)=>[d>0?n.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,n.jsxs("div",{className:"tooltip-training__section",children:[n.jsx("div",{className:"tooltip-training__section-header",children:n.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),n.jsx("div",{className:"tooltip-training__items",children:u.map((p,m)=>{const h=y3(p);return h?n.jsx(uo,{index:m,type:c,trainingData:h,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},c.key)])})});return t?n.jsx(An,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const du=["var(--color-main)","var(--color-sub)"],x3=2e3;function _3(e,t){if(!t.startsWith("var("))return t;try{const a=t.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function Vo({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const b=Math.floor(t/2),_=t-b,f=(y,x)=>Array.from({length:y}).map((v,A)=>{const w=6+Math.random()*12,D=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),k=du[Math.floor(Math.random()*du.length)],B=Math.random()*300,N=(360+Math.random()*260)*r*1.2,M=(x==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,P=Math.cos(M)*N,$=Math.sin(M)*N*1.35,W=Math.random()*720-360,S=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),F=Math.random()>.7?"50%":"3px";return{id:`${x}-${A}`,side:x,size:D,color:k,delay:B,vx:P,vy:$,angularVel:W,life:S,borderRadius:F}});return[...f(b,"left"),...f(_,"right")]},[t,r]),c=o.useRef(null),u=o.useRef({}),d=o.useRef(null),p=o.useRef(s);o.useEffect(()=>{p.current=s},[s]);const m=o.useRef(null),h=o.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"&&h.current==null&&(h.current=g()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const z=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(z)}const b=1200,_=performance.now(),f=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,y=Math.max(60,(window.innerHeight||800)*.05),x=z=>Math.max(40,(z||window.innerWidth)*.02),v=f?.width||window.innerWidth||375,A=f?.height||window.innerHeight||812,w=z=>{const Z=[...z].sort((I,T)=>I-T);return Z[Math.floor(Z.length/2)]||1},D=w(l.map(z=>Math.abs(z.vy))),k=w(l.map(z=>Math.abs(z.vx))),B=Math.sqrt(2*b*(A*.72+y))/D,N=D*B/b,M=v*.5/(k*N),P=(z,Z,I)=>Math.min(I,Math.max(Z,z)),$=P(B,.8,2.4),W=P(M,.7,2.2),S=a>0?a/x3:1,F=l.map(z=>({...z,life:z.life*S,vx:z.vx*W,vy:z.vy*$,startTime:_+z.delay,ended:!1})),Y=f?{x:f.left-x(f.width),y:f.top+f.height+y}:{x:-x(window.innerWidth),y:window.innerHeight+y},G=f?{x:f.left+f.width+x(f.width),y:f.top+f.height+y}:{x:window.innerWidth+x(window.innerWidth),y:window.innerHeight+y},q=z=>{let Z=!1;for(const I of F){const T=u.current[I.id];if(!T||!T)continue;if(z<I.startTime){T.style.display="none",Z=!0;continue}if(!I._inited){const Ne=I.side==="left"?Y.x:G.x,ie=I.side==="left"?Y.y:G.y;T.style.left=`${Ne}px`,T.style.top=`${ie}px`,T.style.transform="translate3d(0px, 0px, 0)",T.style.display="block",T.style.zIndex="100000",typeof I.color=="string"&&I.color.startsWith("var(")&&(T.style.background=_3(T,I.color)??"#FF0060"),I._inited=!0}const O=(z-I.startTime)/1e3;if(O<0)continue;const R=I.life/1e3;if(O>=R){T.style.opacity="0",T.style.display="none",I.ended=!0;continue}Z=!0;const j=I.side==="left"?Y.x:G.x,L=I.side==="left"?Y.y:G.y,Q=j+I.vx*O,J=L+I.vy*O+.5*b*O*O,oe=(I.angularVel||0)*O,ge=Q-j,Me=J-L;T.style.transform=`translate3d(${ge}px, ${Me}px, 0) rotate(${oe}deg)`,T.style.opacity=`${Math.max(0,1-O/R)}`}Z?d.current=requestAnimationFrame(q):p.current?.()};d.current=requestAnimationFrame(q);const H=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const z=document.createElement("div");z.className="party-container",z.style.position="fixed",z.style.inset="0",z.style.pointerEvents="none",z.style.overflow="visible",z.style.zIndex="2147483647";for(const Z of l){const I=document.createElement("span");I.className=`confetti confetti--${Z.side}`,I.setAttribute("aria-hidden","true"),I.style.display="none",I.style.position="fixed",I.style.left="0px",I.style.top="0px",I.style.width=`${Z.size}px`,I.style.height=`${Math.max(4,Z.size*.6)}px`,I.style.background=Z.color,I.style.borderRadius=Z.borderRadius,I.style.transform="translate3d(0,0,0)",I.style.opacity="0",z.appendChild(I),u.current[Z.id]=I}(document.body||h.current).appendChild(z),m.current=z}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(H),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const C=n.jsx("div",{className:"party-container",ref:c,children:l.map(b=>n.jsx("span",{"aria-hidden":!0,ref:_=>{u.current[b.id]=_},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"?Wt.createPortal(C,h.current||document.body):C}const Ho=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function w3({trigger:e=0,active:t=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const c=l.detail??{};r(u=>({n:(u?.n??0)+1,count:Ho(c.count),strength:Ho(c.strength),duration:Ho(c.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const s=o.useCallback(()=>r(null),[]);return n.jsxs(n.Fragment,{children:[n.jsx(Vo,{active:t,trigger:e}),a&&n.jsx(Vo,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function k3({title:e,sub:t,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:u,wrap:d=!1}){const{t:p}=fe.useTranslation();Eg(typeof e=="string"?e:l??null);const m=u??p("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[n.jsxs("div",{className:"page-title__main",children:[n.jsxs("div",{className:"page-title__title-row",children:[c&&n.jsx(ce,{htmlType:"button",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}),n.jsx("h1",{className:"page-title__title h1",children:e}),s&&n.jsx("div",{className:"page-title__badge",children:n.jsx(pt,{label:s,size:"small",variant:i,fill:"outline"})}),r?n.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&n.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?n.jsx("div",{className:"page-title__action",children:a}):null]})}function A3(e){return e??""}const pu=o.createContext({words:[],loading:!1});function B3(){return o.useContext(pu)}function N3({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return n.jsx(pu.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function D3({items:e,actions:t,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return n.jsx("section",{className:Be("summary-strip",r&&"summary-strip--flat",s),style:{"--summary-strip-cols":String(l),...i},children:n.jsxs("div",{className:"summary-strip__row",children:[n.jsx("div",{className:"summary-strip__items",children:e.map((c,u)=>n.jsxs("div",{className:"summary-strip__item",children:[n.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),n.jsx("p",{className:"summary-strip__value body-3b",title:typeof c.value=="string"||typeof c.value=="number"?String(c.value):void 0,children:c.value})]},u))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const S3=(e,t)=>`${e} / ${t}`;function E3({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:s=S3,pageWidth:i,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=fe.useTranslation(),m=o.useRef(null),h=o.useRef(null),g=o.useRef(null),C=o.useRef(null),[b,_]=o.useState(null),[f,y]=o.useState(!1);o.useEffect(()=>{const S=m.current;if(!S)return;const F=()=>y(S.scrollWidth>S.clientWidth+1);if(F(),typeof ResizeObserver>"u")return;const Y=new ResizeObserver(F);return Y.observe(S),()=>Y.disconnect()},[b]);const x=e.map(S=>`${S.id}\0${S.section??""}\0${S.group??""}`).join(""),v=b&&b.shape===x?b.pages:null,[A,w]=o.useState(0);o.useEffect(()=>{const S=C.current;if(!S||typeof ResizeObserver>"u")return;const F=new ResizeObserver(()=>w(S.offsetHeight));return F.observe(S),()=>F.disconnect()},[]);const[D,k]=o.useState(0);o.useEffect(()=>{const S=h.current;if(!S||typeof ResizeObserver>"u")return;let F=null;const Y=typeof requestAnimationFrame=="function"?H=>requestAnimationFrame(H):H=>setTimeout(H,16),G=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:H=>clearTimeout(H),q=new ResizeObserver(()=>{F==null&&(F=Y(()=>{F=null,k(H=>H+1)}))});return Array.from(S.children).forEach(H=>q.observe(H)),()=>{q.disconnect(),F!=null&&G(F)}},[x]),o.useLayoutEffect(()=>{const S=h.current,F=C.current;if(!S||!F)return;const Y=R=>R.getBoundingClientRect().height||R.offsetHeight,G=new Map;g.current?.querySelectorAll("[data-chrome-section]").forEach(R=>{G.set(R.dataset.chromeSection??"",Y(R))});const q=R=>Y(F)-(G.get(R??"")??0),H=Array.from(S.children).map(R=>Y(R)),z=[];e.forEach((R,j)=>{const L=z[z.length-1],Q=L?e[L[0]]:void 0;Q&&R.group!=null&&Q.group===R.group&&Q.section===R.section?L.push(j):z.push([j])});const Z=[];let I=[],T=0;const O=()=>{I.length&&Z.push(I),I=[],T=0};z.forEach(R=>{const j=R.reduce((Q,J)=>Q+H[J],0),L=q(e[R[0]].section);I.length&&e[I[0]].section!==e[R[0]].section&&O(),j>L?R.forEach(Q=>{I.length&&T+H[Q]>L+.01&&O(),I.push(Q),T+=H[Q]}):(I.length&&T+j>L+.01&&O(),R.forEach(Q=>I.push(Q)),T+=j)}),O(),_(R=>R&&R.shape===x&&JSON.stringify(R.pages)===JSON.stringify(Z)?R:{shape:x,pages:Z})},[x,A,i,l,c,D]);const B=Qr,N=B,M=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:N,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),P=(S,F,Y)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:Y!=null&&t?.[Y]||null}),a]}),footer:n.jsxs("div",{className:"report-doc__footer caption-1",children:[n.jsx("span",{className:"report-doc__footer-left",children:M}),n.jsx("span",{className:"report-doc__page-no",children:s(S,F)})]})}),$=Array.from(new Set(e.map(S=>S.section??""))),W={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...d};return n.jsxs("div",{ref:m,className:Be("report-doc",u),style:W,tabIndex:f?0:void 0,role:f?"group":void 0,"aria-label":f?p("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[n.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[n.jsx("div",{ref:C,className:"report-doc__ruler"}),n.jsx("div",{ref:g,children:$.map(S=>{const F=P(1,1,S||void 0);return n.jsxs("div",{"data-chrome-section":S,children:[F.header,F.footer]},S)})}),n.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(S=>n.jsx("div",{children:S.content},S.id))})]}),v&&n.jsx("div",{className:"report-doc__pages",children:v.map((S,F)=>{const{header:Y,footer:G}=P(F+1,v.length,e[S[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[Y,S.map(q=>n.jsx("div",{children:e[q].content},e[q].id)),G]},F)})})]})}function T3({title:e,fields:t,columns:a=4,className:r,style:s}){return n.jsxs("div",{className:Be("report-info",r),style:{"--report-info-cols":String(a),...s},children:[e&&n.jsx("p",{className:"report-info__title h5b",children:e}),n.jsx("div",{className:"report-info__grid",children:t.map((i,l)=>n.jsxs("div",{className:"report-info__field body-2",children:[n.jsx("span",{className:"report-info__label body-3",children:i.label}),n.jsx("span",{className:"report-info__value",children:i.value})]},l))})]})}const zn=new Map;let lr=null;const j3=12;function M3(e){for(let t=e.parentElement;t&&t!==document.body;t=t.parentElement){const a=window.getComputedStyle(t);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return t}return document}function cr(){const e=new Map;for(const t of zn.keys()){if(!t.isConnected)continue;const a=M3(t),r=e.get(a)??[];r.push(t),e.set(a,r)}for(const t of e.values()){t.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of t){a>0?r.style.setProperty("--update-alert-stack-offset",`${a}px`):r.style.removeProperty("--update-alert-stack-offset");const s=r.getBoundingClientRect().height;s>0&&(a+=s+j3)}}}function L3(e){return typeof window>"u"?()=>{}:(zn.set(e,(zn.get(e)??0)+1),zn.get(e)===1&&typeof ResizeObserver<"u"&&(lr??(lr=new ResizeObserver(()=>cr())),lr.observe(e)),cr(),()=>{const t=(zn.get(e)??1)-1;if(t>0){zn.set(e,t),cr();return}zn.delete(e),lr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),cr()})}function $3({title:e,message:t,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:c}=fe.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8"),d=o.useRef(null),p=o.useRef(!1);return o.useLayoutEffect(()=>{const m=d.current,h=m?.parentElement?.closest(".update-alert-stack")??m,g=h?L3(h):null;return()=>{g?.(),p.current&&m&&m.contains(document.activeElement)&&Oa(m)}},[]),n.jsxs("div",{ref:d,className:Be("update-alert",l),role:"alert",children:[i&&n.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{p.current=!0,i()},"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),n.jsxs("div",{className:"update-alert__top",children:[n.jsx("div",{className:"update-alert__icon",children:s??n.jsx(ns,{size:20,strokeWidth:2})}),n.jsxs("div",{className:"update-alert__body",children:[n.jsx("div",{className:"update-alert__title h4",children:e}),n.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&n.jsx(ce,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}function R3({title:e,description:t,topActions:a,children:r,footerLeft:s,footerRight:i,onClick:l,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const m=s!=null||i!=null,h=r!=null&&r!==!1,g=o.useCallback(C=>{l&&C.target===C.currentTarget&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),l())},[l]);return n.jsxs("div",{className:Be("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?g:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,children:[n.jsxs("div",{className:"training-card__header",children:[n.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?n.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&n.jsx("div",{className:"training-card__top-actions",onClick:C=>C.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?n.jsx("p",{className:"training-card__description body-3",children:t}):t:n.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),h&&n.jsx("div",{className:"training-card__body",children:r}),m&&n.jsxs("div",{className:"training-card__footer",children:[s!=null&&n.jsx("div",{className:"training-card__footer-left",children:s}),i!=null&&n.jsx("div",{className:"training-card__meta",children:i})]})]})}function P3({title:e,count:t,collapsed:a=!1,onToggle:r,sort:s,actions:i,empty:l=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:m,children:h,className:g}){const{t:C}=fe.useTranslation(),b=r!=null,_=Be("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",b&&"training-card-group--collapsible",g);return n.jsxs("div",{className:_,onDragOver:d,onDragLeave:p,onDrop:m,children:[n.jsxs("header",{className:"training-card-group__header",children:[b&&n.jsx(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?C("common.expand","\uD3BC\uCE58\uAE30"):C("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!a,onClick:r}),typeof e=="string"?n.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&n.jsx("span",{className:"training-card-group__count body-3b",children:t}),(s||i!=null)&&n.jsxs("span",{className:"training-card-group__actions",onClick:f=>f.stopPropagation(),children:[s&&n.jsx(tn,{size:40,options:s.options,value:s.value,placeholder:s.placeholder,onChange:s.onChange}),i]})]}),!a&&(l?n.jsx("div",{className:"training-card-group__empty body-3",children:c}):n.jsx("div",{className:"training-card-group__grid",children:h}))]})}const I3="speechear:saved_word_tables";function F3(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 O3(){try{const e=localStorage.getItem(I3);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(F3):[]}catch{return[]}}function mu(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function zo(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function V3(e){const t=new Set;return e.map(a=>{let r=a.id;for(let s=2;t.has(r);s++)r=`${a.id}~${s}`;return t.add(r),r===a.id?a:{...a,id:r}})}function H3({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:s,onLoad:i,onRemoveItem:l,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:m,showCellCount:h,onAddItem:g,className:C,renderSavePopup:b,renderWordSearch:_,hideControls:f,saveOnly:y,tableName:x,nameValue:v,onNameChange:A,descriptionValue:w,onDescriptionChange:D,namePlaceholder:k,descriptionPlaceholder:B,existingNames:N,editingName:M,onCancel:P}){const{t:$}=fe.useTranslation(),W=u??$("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),S=r===void 0,F=!!A,[Y,G]=o.useState([]),q=(v??"").trim(),H=q||(k??"").trim(),z=(w??"").trim()||(B??"").trim(),Z=(N??[]).map(ke=>ke.trim().toLowerCase()),I=[M?.trim().toLowerCase(),...Y].filter(ke=>!!ke),T=[...Z];for(const ke of I){const Pe=T.indexOf(ke);Pe!==-1&&T.splice(Pe,1)}const O=q!==""&&T.includes(q.toLowerCase()),[R,j]=o.useState(Array(4).fill(null)),[L,Q]=o.useState(4),[J,oe]=o.useState(null),ge=R.slice(0,L),[Me,Ne]=o.useState("landscape"),[ie,U]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[se,me]=o.useState("\uD45C\uC2DC"),[_e,we]=o.useState(!0),[De,xe]=o.useState(!0),Ae=o.useRef(null),Te=o.useRef([]),[ae,ee]=o.useState(8),[de,te]=o.useState("right"),[he,be]=o.useState(!1),[Ye,Ve]=o.useState(!1),{toastMessage:qe,toastType:Se,showWarning:Ue,clearToast:$e}=tl("warning"),Ie=o.useCallback(()=>oe(null),[oe]);g&&!S&&!h&&jn("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.');const[He,at]=o.useState(()=>Math.max(r?.length??1,1)),ot=S?L:h?Math.max(He,r?.length??1,1):Math.max(r?.length??0,1),{width:We,height:Xe}=aa[Me],Ct=!S&&!h,At=r?.length??0,Et=Math.min(ae,Math.max(At,1)),ut=Ct?Et:ot,Qe=Ct?oc(r??[],ut):null,Ze=!!Qe&&Qe.length>1,Oe=S?ge.some(ke=>ke!==null&&ke.length>1):(r??[]).some(ke=>(ke.words??[]).length>1),rt=x?.trim()||`${ai(Ca())} ${Oe?$("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):$("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,et=o.useCallback(()=>Ze?Te.current.filter(ke=>ke!==null):Ae.current?[Ae.current]:[],[Ze]),{print:bt,openNewWindow:ze,downloadHtml:it}=vo({getElements:et,paperW:We,paperH:Xe,fileName:rt,onPopupBlocked:()=>{Ue($("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."))}}),Bt=ke=>{Q(ke),j(Pe=>Pe.length>=ke?Pe:[...Pe,...Array(ke-Pe.length).fill(null)]),oe(null)},Nt=ke=>{j(Pe=>{const ne=[...Pe];return ne[ke]=null,ne}),J===ke&&oe(null)},Le=ke=>{if(J===null)return;const Pe=J;j(pe=>{const V=[...pe];return V[Pe]=ke.length>0?ke:null,V});const ne=ge.findIndex((pe,V)=>V>Pe&&pe===null);oe(ne!==-1?ne:null)},Ke=S?ge.some(ke=>ke?.some(Pe=>!!Pe.colloquialPronunciation)):(r??[]).some(ke=>(ke.words??[]).some(Pe=>!!Pe.colloquialLabel)),Dt=o.useMemo(()=>Un()?S?R.slice(0,L).flatMap(ke=>(ke??[]).map(Pe=>[Pe.word,Pe.homonum])):(r??[]).flatMap(ke=>(ke.words??[]).map(Pe=>[Pe.label,Pe.homonum])):[],[S,R,L,r]),[vt,Tt]=o.useState(!1);o.useEffect(()=>{if(Dt.length===0)return;let ke=!1;return Promise.all(Dt.map(([Pe,ne])=>qs(Pe,ne))).then(Pe=>{ke||Tt(Pe.some(Boolean))},()=>{}),()=>{ke=!0}},[Dt]);const on=Dt.length>0&&vt,tt=o.useMemo(()=>[...S||h?[{label:$("wordTable.filter.columns","\uCE78 \uC218"),items:xy.map(ke=>({value:`${ke}\uCE78`,displayLabel:$("wordTable.filter.column",{count:ke})})),display:"segmented"}]:[],...Ct&&(r?.length??0)>0?[vc($,{hasPairs:Oe,itemCount:At})]:[],...Ze?[_c($)]:[]],[$,S,h,Ct,r?.length,Oe,At,Ze]),Gt={...S||h?{[$("wordTable.filter.columns","\uCE78 \uC218")]:`${ot}\uCE78`}:{},...Ct&&(r?.length??0)>0?{[$(Oe?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Et}\uAC1C`}:{},...Ze?{[$("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:wc[de]}:{}},vn=(ke,Pe)=>{Pe===$("wordTable.filter.columns","\uCE78 \uC218")?S?Bt(parseInt(ke)):at(parseInt(ke)):Pe===$(Oe?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?ee(xc(parseInt(ke),At)):Pe===$("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&te(kc(ke))},xt=S?V3(ge.filter(ke=>ke!==null&&ke.length>0).map(ke=>({id:zo(ke),words:ke.map(mu)}))):r??[],Ht=()=>{S&&j(ke=>ke.length>L?ke.slice(0,L):ke)},Xt=(ke=!1)=>{if(Ve(ke),F&&s){const Pe=H.trim().toLowerCase();Pe&&G(ne=>ne.includes(Pe)?ne:[...ne,Pe]),s(H,xt,z||void 0,ke),Ht();return}if(y&&s){s("",xt,void 0,ke),Ht();return}if(s){be(!0);return}it()},[an,sn]=o.useState(!1),[Jt,xn]=o.useState(""),Kt=Jt.trim(),mt=Kt!==""&&Z.includes(Kt.toLowerCase()),ln=()=>{xn(H?$("wordTable.save.copyName",{name:H,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),sn(!0)},Yt=()=>{!Kt||mt||!s||(s(Kt,xt,z||void 0,!0),Ht(),sn(!1))},jt=xt.length===0,cn=jt||F&&(H===""||O),Zt=()=>{if(jt){Ue($("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(F&&H===""){Ue($("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}F&&O&&Ue($("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},un=n.jsx(ra,{items:xt,orientation:Me,contentTypes:ie,cutLine:se,showOutline:_e,showDivLine:De,count:ot});return n.jsxs(n.Fragment,{children:[n.jsxs(na,{type:"page",icon:t,title:e,disc:a,className:Be("word-table-block",C),children:[an&&n.jsx(Dn,{size:"small",title:p??$("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>sn(!1),footer:({closeWithAnimation:ke})=>n.jsxs(n.Fragment,{children:[n.jsx(ce,{htmlType:"button",size:48,type:"bar",label:$("common.cancel","\uCDE8\uC18C"),onClick:ke}),n.jsx(ce,{htmlType:"button",size:48,type:"bar",variant:"main",label:$("common.save","\uC800\uC7A5"),disabled:!Kt||mt,onClick:Yt})]}),children:n.jsx(On,{label:$("wordTable.save.nameLabel","\uC774\uB984"),value:Jt,onChange:xn,placeholder:$("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:Yt,error:mt?$("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),he&&s&&b?.({defaultName:typeof e=="string"?e:$("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:un,previewW:We,previewH:Xe,items:xt,existingNames:O3().map(ke=>ke.name),saveAsNew:Ye,onSave:(ke,Pe)=>{s(ke,xt,Pe,Ye),Ht(),be(!1)},onCancel:()=>be(!1)}),(S||g)&&J!==null&&_?.({cellIndex:J,onConfirm:S?Le:ke=>{if(g){const Pe=ke[0];if(Pe){const ne=new Set((r??[]).map(V=>V.id));let pe=zo([Pe]);for(let V=2;ne.has(pe);V++)pe=`${zo([Pe])}~${V}`;g({id:pe,words:[mu(Pe)]})}}oe(null)},onClose:Ie}),!f&&n.jsx(go,{hasImage:on,hasColloquial:Ke,contentTypes:ie,orientation:Me,showOutline:_e,cutLine:se,showDivLine:De,setters:{setContentTypes:U,setOrientation:Ne,setShowOutline:we,setCutLine:me,setShowDivLine:xe},showCutLine:(Ct?ut:ot)>1,showDivLine2:Oe,middleSections:tt,extraSelected:Gt,onExtraSelect:vn}),Ze&&Qe?n.jsx("div",{className:"word-table-block__pages",children:Qe.map((ke,Pe)=>n.jsx(ra,{orientation:Me,contentTypes:ie,cutLine:se,showOutline:_e,showDivLine:De,count:ut,items:ke,onRemoveItem:l,onReorder:m&&((ne,pe)=>m(ne+Pe*ut,pe+Pe*ut)),contentRef:ne=>{Te.current[Pe]=ne},pageNumber:{current:Pe+1,total:Qe.length},pageNumberPosition:de},Pe))}):n.jsx(ra,{orientation:Me,contentTypes:ie,cutLine:se,showOutline:_e,showDivLine:De,count:ot,items:S?void 0:r??[],editCells:S?ge:void 0,activeCell:J,onActivateCell:S||g?oe:void 0,onRemoveCell:S?Nt:void 0,onRemoveItem:S?void 0:l,onReorder:S?void 0:m,showFillerAdd:!!g,contentRef:Ae}),F&&!f&&n.jsxs(or,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(Sn,{variant:"custom",label:$("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(On,{required:!0,value:v??"",onChange:A,placeholder:k?k+$("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):$("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:$("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:O?$("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ke=>{(ke.key==="Tab"&&!ke.shiftKey||ke.key===" ")&&!(v??"").trim()&&(k??"").trim()&&(ke.preventDefault(),A?.(k??""))}})}),n.jsx(Sn,{variant:"custom",label:$("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(On,{value:w??"",onChange:D,placeholder:B?B+$("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):$("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:$("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ke=>{(ke.key==="Tab"&&!ke.shiftKey||ke.key===" ")&&!(w??"").trim()&&(B??"").trim()&&(ke.preventDefault(),D?.(B??""))}})})]})]}),!f&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!y&&c&&n.jsx(ce,{htmlType:"button",size:40,type:"bar",label:W,onClick:c}),!y&&i&&n.jsx(ce,{htmlType:"button",size:40,type:"bar",label:$("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!y&&n.jsx(ce,{htmlType:"button",size:40,type:"bar",label:$("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:ze})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[P&&n.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:$("common.cancel","\uCDE8\uC18C"),onClick:P}),!y&&n.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:$("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:bt}),p&&n.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>F?ln():Xt(!0),disabled:jt,onDisabledClick:()=>{Ue($("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),n.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:d??$("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Xt(!1),disabled:cn,onDisabledClick:Zt})]})]}),n.jsx(ea,{message:qe,type:Se,onClose:$e})]})}function hu({items:e,className:t}){const a=e.length,r=a<=3?1:2,s=Math.ceil(a/r)||1,i=r*s;return n.jsx("div",{className:Be("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,c)=>{const u=e[c];return u?n.jsx("div",{className:"word-table-thumb__cell",children:(u.words?.length?u.words:[{label:u.id}]).map((d,p)=>n.jsxs(o.Fragment,{children:[p>0&&n.jsx("span",{className:"word-table-thumb__divider"}),n.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},p))},c):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function z3({items:e,name:t,description:a,createdAt:r,published:s,publishedLabel:i,shared:l,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:m,downloadCount:h,onPublisherClick:g,selected:C,onClick:b,onMore:_,titleNode:f,className:y}){const{t:x}=fe.useTranslation(),v=f!=null,A=d!=null||p!=null||m!=null||h!=null,w=D=>{D.target===D.currentTarget&&!v&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),b?.())};return n.jsxs("div",{className:Be("word-table-button",C?"word-table-button--selected":"",A?"":"word-table-button--no-footer",y),role:"button",tabIndex:0,"aria-label":t,onClick:v?void 0:b,onKeyDown:w,children:[u&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":x("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(hu,{items:e,className:"word-table-button__thumb"}),n.jsxs("div",{className:"word-table-button__info",children:[n.jsxs("div",{className:"word-table-button__info-text",children:[f??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),_&&!v&&n.jsx(ce,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:x("common.moreFor",{name:t}),onClick:D=>{D.stopPropagation(),_(D)}})]}),(r||s||l)&&n.jsxs("div",{className:"word-table-button__meta-row",children:[n.jsx("span",{className:"word-table-button__meta caption-1",children:r?ni(r,x):""}),n.jsxs("span",{className:"word-table-button__badges",children:[s&&n.jsx(pt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??x("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&n.jsx(pt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??x("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]}),A&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[d&&n.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:D=>{D.stopPropagation(),g?.()},children:d}),p&&n.jsx("span",{className:"training-card__date body-4",children:ni(p,x)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&n.jsx(pt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),h!=null&&n.jsx(pt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(h)})]})]})]})}/**
991
+ `).map((l,c,u)=>n.jsxs(o.Fragment,{children:[l,c<u.length-1&&n.jsx("br",{})]},c))})}),n.jsxs("div",{className:"site-footer__links",children:[n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),n.jsx("li",{children:n.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")})}),n.jsx("li",{children:n.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")})}),n.jsx("li",{children:n.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")})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.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")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),n.jsx("li",{children:n.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"})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:l=>{t&&(l.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),n.jsx("hr",{className:"site-footer__rule"}),n.jsxs("div",{className:"site-footer__bottom",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("img",{src:Qr,alt:"IHAB",className:"site-footer__logo"})}),n.jsxs("div",{className:"site-footer__meta",children:[n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),n.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),n.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")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),n.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",s]})]})]})]}),n.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function n5({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:c,menuLabel:u}){const{t:d}=fe.useTranslation(),p=u??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,h]=o.useState(!1),g=o.useId(),C=o.useRef(null);o.useEffect(()=>{if(!m)return;const f=Rn(()=>{const v=document.getElementById(g);v&&v.contains(document.activeElement)&&C.current?.focus(),h(!1)}),y=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,x=v=>{v.matches&&h(!1)};return y&&(y.matches&&h(!1),y.addEventListener?.("change",x)),()=>{f(),y?.removeEventListener?.("change",x)}},[m,g]);const b=l?`${l} landing-header__inner`:"landing-header__inner",_=(f,y)=>c?c(f,{onClick:y}):n.jsx("a",{href:f.href,onClick:y,"aria-current":f.current?"page":void 0,children:f.label});return n.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[n.jsxs("div",{className:b,children:[e!=null&&(()=>{const f=typeof e=="string"?n.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?n.jsx("a",{href:a,className:"landing-header__brand",children:f}):n.jsx("div",{className:"landing-header__brand",children:f})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((f,y)=>n.jsx("span",{children:_(f)},`${y}:${f.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&n.jsx("button",{ref:C,type:"button",onClick:()=>h(f=>!f),"aria-expanded":m,"aria-controls":g,"aria-label":m?p.close:p.open,className:m?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:n.jsxs("span",{className:"landing-header__burger",children:[n.jsx("span",{}),n.jsx("span",{}),n.jsx("span",{})]})})]})]}),r.length>0&&n.jsx("nav",{id:g,hidden:!m,className:"landing-header__drawer",children:n.jsx("div",{className:l??void 0,children:r.map((f,y)=>n.jsx("span",{className:"landing-header__drawer-item",children:_(f,()=>h(!1))},`${y}:${f.href}`))})})]})}function a5({children:e,action:t,onClick:a,className:r}){const s=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return n.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:n.jsxs("div",{className:s,onClick:a,...Zl(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}const sa=9,r5=e=>Math.round(Math.min(sa,Math.max(0,e))/sa*100),o5=e=>e/100*sa,Na=2,jc=.1,s5=e=>Math.min(Na,Math.max(0,e)),i5=.1,l5=e=>Math.round(e*1e6)/1e6;function Da(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return s5(t);const a=Math.min(sa,Math.max(0,Number(e.level)||0))/sa,r=Number(e.mainVolume);return r>0?a>0?l5(Math.min(Na,Math.max(i5,a/r))):0:1}const Mc=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Lc(e){return Mc(e)}function wo(e){return Mc(e)*Da(e)}function ko(e,t=Fs()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,wo(e)/a)}function Sa(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=Da({level:a.level,mainVolume:a.mainVolume})),a}const Ea={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Ao=o.createContext(null);function nr(){return o.useContext(Ao)}const Bo=e=>`${P0()}/${e}`,$c=e=>Array.from({length:10},(t,a)=>Bo(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),ar={get defaultNoise(){return Bo("noise1.mp3")},get street(){return $c("noise2")},get restaurant(){return $c("noise3")},get buzz(){return Bo("noise4.mp3")}};function c5(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return ar.defaultNoise;case"street":return ar.street[t];case"restaurant":return ar.restaurant[t];case"buzz":return ar.buzz;default:return null}}function u5({noisePlayer:e,audioRef:t,playbackStateRef:a}){const r=o.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const s=o.useRef(null),[i,l]=o.useState(null),c=o.useRef(null),u=o.useRef(null),d=o.useRef(null),p=o.useRef(null),m=o.useRef(0),h=o.useRef(null),g=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),C=o.useCallback((x,v=250)=>{const A=s.current;if(!A)return;const w=u.current;if(w){u.current=null;try{A.pause()}catch{}A.src=w,A.load()}if(!A.src)return;m.current+=1,g();try{Dr(),La(A).then(N=>{if(s.current===A)try{r.current?.("noise",N)}catch{}})}catch{}const D=A.paused?0:$a(A);A.paused&&kn(A,0),A.play().catch(()=>{});const k=performance.now(),B=()=>{const N=Math.min(1,(performance.now()-k)/v);try{kn(A,D+(x-D)*N)}catch{}N<1?p.current=requestAnimationFrame(B):p.current=null};p.current=requestAnimationFrame(B)},[g]),b=o.useCallback((x=250,v)=>{const A=s.current;if(!A||A.paused){v?.();return}const w=++m.current;g();const D=performance.now(),k=$a(A),B=()=>{const N=Math.min(1,(performance.now()-D)/x);try{kn(A,k*(1-N))}catch{}if(N<1)p.current=requestAnimationFrame(B);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{A.pause()}catch{}v?.()}};p.current=requestAnimationFrame(B),h.current=setTimeout(()=>{if(h.current=null,m.current===w){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{A.paused||(kn(A,0),A.pause(),v?.())}catch{}}},x+150)},[g]);o.useEffect(()=>{const x=document.createElement("audio");return x.loop=!0,x.crossOrigin="anonymous",s.current=x,()=>{g();try{x.pause(),x.src=""}catch{}s.current=null,c.current=null,u.current=null}},[g]);const _=e?ko(e.settings):0,f=!!e?.settings.enabled&&_>0;o.useEffect(()=>{if(!f)return;let x=0;const v=setInterval(()=>{const A=s.current;if(!A||A.paused){x=0;return}const w=t.current;if(w&&!w.paused&&!w.ended||a.current==="playing"){x=0;return}x+=1,x>=2&&(x=0,b())},400);return()=>clearInterval(v)},[b,f,t,a]),o.useEffect(()=>{const x=()=>{const v=s.current;if(document.hidden){if(v&&!v.paused){g();try{v.pause()}catch{}}return}if(!v||!v.paused)return;const A=t.current,w=!!A&&!A.paused&&!A.ended||a.current==="playing",D=d.current;w&&D?.enabled&&D.volume>0&&C(D.volume)};return document.addEventListener("visibilitychange",x),()=>document.removeEventListener("visibilitychange",x)},[g,C,t,a]),o.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:_,type:e.settings.type}:null},[e,e?.settings.enabled,_,e?.settings.type]);const y=o.useRef(null);return o.useEffect(()=>()=>{y.current?.(),y.current=null},[]),o.useEffect(()=>{const x=e?.settings,v=s.current;if(!v)return;const A=x?ko(x):0;if(!x||!x.enabled||A===0){b();return}if(c.current!==x.type){const w=c5(x.type);w&&(c.current=x.type,l(w),u.current=w,b(150,()=>{if(u.current!==w)return;u.current=null,v.src=w,v.load();const D=t.current;if(D&&!D.paused){y.current?.();const k=()=>{v.removeEventListener("canplay",k),y.current===B&&(y.current=null);const N=t.current,M=d.current;N&&!N.paused&&!N.ended&&M?.enabled&&M.volume>0&&C(M.volume)},B=()=>v.removeEventListener("canplay",k);y.current=B,v.addEventListener("canplay",k)}}))}else{const w=t.current,D=!!w&&!w.paused&&!w.ended||a.current==="playing";if(D&&u.current)C(A);else if(D&&v.paused&&v.src)C(A);else if(!v.paused)if(!D)b();else{g();const k=$a(v),B=performance.now(),N=()=>{const M=Math.min(1,(performance.now()-B)/150);try{kn(v,k+(A-k)*M)}catch{}M<1?p.current=requestAnimationFrame(N):p.current=null};p.current=requestAnimationFrame(N)}}},[e?.settings,e?.settings.enabled,_,e?.settings.type,g,C,b,t,a,d]),o.useEffect(()=>{const x=s.current;if(x)try{x.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:s,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:g,fadeInNoise:C,fadeOutNoise:b}}function d5({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const g=o.useRef(null),C=o.useRef(0),b=o.useRef(null),_=o.useRef(0),f=o.useRef(!1);o.useEffect(()=>()=>{_.current++;try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),f.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}f.current=!1}}catch{}},[]);const y=(A,w=1)=>{try{const D=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(D*300/Math.max(.25,w)))}catch{return 1200}},x=o.useCallback(A=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!1)}catch{}return}const w=window.speechSynthesis,D=++_.current;try{try{w.cancel()}catch{}const k=A??e,B=Array.isArray(k)?k.filter(S=>!!S):[k||""];B.length===0&&B.push("");const N=Math.max(.3,Math.min(3,t));C.current=B.reduce((S,F)=>S+y(F,N||1),0),g.current=performance.now(),i(0),l("playing"),c("playMode");const M=p.current;M?.enabled&&(M?.volume??0)>0&&u(M.volume);const P=()=>{try{const S=g.current||performance.now(),F=performance.now()-S,Y=C.current||1200,G=Math.min(1,F/Y);try{r.current&&(r.current.style.left=`${G*100}%`),s.current&&s.current.style.setProperty("--progress",String(G))}catch{}G<1&&(b.current=requestAnimationFrame(P))}catch{}},$=()=>{if(D===_.current)try{b.current&&(cancelAnimationFrame(b.current),b.current=null),i(1),l("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},W=S=>{const F=new SpeechSynthesisUtterance(B[S]);try{F.rate=N}catch{}try{F.volume=Math.max(0,Math.min(1,a))}catch{}F.onend=()=>{if(D===_.current){if(S<B.length-1){try{W(S+1)}catch{$()}return}$()}},F.onerror=()=>{$()},F.onstart=()=>{if(!(S>0))try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(P)}catch{}},f.current=!0,w.speak(F)};try{W(0)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,t,a,u,r,s,i,l,c,p,m,h]),v=o.useCallback(()=>{_.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),d(),g.current=null}catch{}l("stopped"),c("active"),i(0)},[d,l,c,i]);return{startTTS:x,stopTTS:v}}async function p5(e,t,a){let r=null;try{const s=window.AudioContext||window.webkitAudioContext;r=new s;const i=await r.decodeAudioData(e.slice(0)),l=i.numberOfChannels>0?i.getChannelData(0):null;if(!l)return null;const c=a&&a>0?Math.min(l.length,Math.floor(a*i.sampleRate)):l.length,u=Math.max(t,c),d=Math.floor(u/t)||1;return new Array(t).fill(0).map((p,m)=>{const h=m*d,g=Math.min(h+d,u);let C=0;for(let b=h;b<g;b++){const _=Math.abs(l[b]);_>C&&(C=_)}return C})}catch{return null}finally{try{r?.close?.()}catch{}}}async function Rc(e,t,a){try{const r=await fetch(e);if(r.ok===!1)return null;const s=await r.arrayBuffer();return await p5(s,t,a)}catch(r){try{const s=Ys(r)}catch{}return null}}const Pc=45,m5=74,h5=2;function Ta(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function No(e){return Ta(e)/45}const Ic=4;function f5(e){const{src:t,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=o.useRef(null),g=o.useRef(null),[C,b]=o.useState(null),[_,f]=o.useState(!1),[y,x]=o.useState(null),[v,A]=o.useState(2),[w,D]=o.useState(0),[k,B]=o.useState(null),[N,M]=o.useState(!1),[P,$]=o.useState(!1),W=3,S=3,F=1,Y=300,G=o.useRef(0),q=o.useCallback(()=>{const ie=h.current,U=g&&g.current?g.current:ie?ie.closest(".audio-player__wave"):null,se=U?U.getBoundingClientRect():ie?ie.getBoundingClientRect():null,me=se?se.width:0,_e=se?Math.max(100,se.width):320,we=se?se.height:0,De=Math.max(F,Math.min(Y,Math.floor((_e+S)/(W+S)))),xe=De*W,Ae=Math.max(0,De-1),Te=Math.max(0,Ae>0?(_e-xe)/Ae:S);return{bars:De,gap:Te,height:we,width:me}},[]),H=o.useRef(void 0),z=o.useRef(null),Z=o.useCallback(async(ie,U,{quiet:se=!1}={})=>{const me=++G.current,_e=()=>G.current===me;try{if(se||f(!1),H.current=ie,!ie){_e()&&b(null);return}let we=U;if(!we)try{for(let Ae=0;Ae<4&&!(h.current||g.current);Ae++)await new Promise(Te=>requestAnimationFrame(Te));await new Promise(Ae=>requestAnimationFrame(Ae));const xe=q();xe.height>0&&D(xe.height),we=xe.bars,A(xe.gap)}catch{we=120}z.current=we;const De=await Rc(ie,we);if(!_e())return;if(!De){b(null),f(!1);return}b(De),x(we),f(!0)}catch{if(!_e())return;b(null),f(!1)}},[f,b,D,A,x,q]);o.useEffect(()=>{const ie=g.current;if(!ie||typeof ResizeObserver>"u")return;let U=null;const se=new ResizeObserver(()=>{U!==null&&cancelAnimationFrame(U),U=requestAnimationFrame(()=>{U=null;try{const me=q();if(me.width<=0||(me.height>0&&D(me.height),z.current===null||me.bars===z.current))return;const _e=H.current;A(me.gap),_e?Z(_e,me.bars,{quiet:!0}).catch(()=>{}):z.current=me.bars}catch{}})});return se.observe(ie),()=>{se.disconnect(),U!==null&&cancelAnimationFrame(U)}},[q,Z]),o.useEffect(()=>{const ie=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;Z(typeof ie=="string"?ie:void 0).catch(()=>{}),$(!1)},[t,a,Z]),o.useEffect(()=>{let ie=!1;if(M(!1),!i||!y){B(null);return}const U=u>0?u*(c||1):void 0;return Rc(i,y,U).then(se=>{ie||(B(se),se||M(!0))}).catch(()=>{ie||(B(null),M(!0))}),()=>{ie=!0}},[i,y,u,c]);const I=Math.max(0,Math.min(1,d)),T=o.useMemo(()=>C&&C.length&&Math.max(...C)||1,[C]),O=y||40,R=o.useMemo(()=>Array.from({length:O}).map((ie,U)=>{const se=C&&C[U]!=null?C[U]:null,me=se==null?null:Math.min(1,se/T*I),_e=me!=null&&w>0&&Ta(me)<=Ic,we=me==null?.15:_e?0:No(me),De=O>1?U/(O-1):0;return n.jsx("div",{className:_e?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":we,"--i":U,"--mix":De}},U)}),[O,C,T,I,w]),j={"--progress":String(Math.max(0,Math.min(1,r)))},L=i?Math.max(1,l):1,Q={"--bar-gap":`${v}px`,"--wave-h":`${Ta(L)}px`,"--wave-h1":`${Pc}px`},J=I*Math.max(0,l)/Fs(),oe=_&&(i?!!k||N:!0);o.useEffect(()=>{oe&&$(!0)},[oe]);const ge=P?_:oe;o.useEffect(()=>{p?.(ge)},[ge,p]);const Me=y||40,Ne=o.useMemo(()=>Array.from({length:Me}).map((ie,U)=>{const se=k&&k[U]!=null?k[U]:null,me=se==null?0:se/T*J,_e=w>0&&Ta(me)<=Ic,we=_e?0:No(me),De=Me>1?U/(Me-1):0;return n.jsx("div",{className:_e?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":we,"--i":U,"--mix":De}},U)}),[Me,k,T,J,w]);return n.jsxs("div",{className:"audio-player__wave",ref:g,style:Q,children:[i&&n.jsx("div",{className:`audio-player__wave-noise ${oe?"is-ready":""}`,"aria-hidden":"true",children:Ne}),m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ge?"is-ready":""}`,ref:h,children:R}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ge?"is-ready":""}`,ref:s,style:j,children:R})]})]})}const C5={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 Do(e,t){return new Promise((a,r)=>{const s=document.createElement("audio");let i=!1;const l=()=>{try{s.src=""}catch{}},c=()=>{if(i)return;i=!0;const d=isFinite(s.duration)&&s.duration||0;l(),a(d)},u=d=>{i||(i=!0,l(),t.rejectOnError?r(new Error(d)):a(0))};s.addEventListener("loadedmetadata",c),s.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),t.timeoutMs),s.src=e})}const g5=2e3;function Fc(e,t=g5){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.addEventListener("canplay",s,{once:!0}),e.addEventListener("error",s,{once:!0}),setTimeout(s,t)})}function b5({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(u=>{if(r.current=u,!u||!s.current.length)return;const d=s.current;s.current=[];for(const p of d)p(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),c=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(u=>{const d=m=>{clearTimeout(p),s.current=s.current.filter(h=>h!==d),u(m)},p=setTimeout(()=>d(!0),a);s.current.push(d)}),[e,t,a]);return o.useEffect(()=>()=>{const u=s.current;s.current=[];for(const d of u)d(!1)},[]),{onReadyChange:i,waitForReady:c,markNotReady:l}}function y5(){const e=o.useRef([]),t=o.useCallback(s=>(e.current.push(s),s),[]),a=o.useCallback(s=>{const i=new Set([...s].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const s of e.current)try{URL.revokeObjectURL(s)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function v5({offsetY:e=8}={}){const t=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),i=o.useCallback(()=>{try{const l=t.current?.getBoundingClientRect();if(!l)return;r({left:l.left,right:l.right,width:l.width,height:l.height,x:l.x,top:l.top+e,bottom:l.bottom+e,y:l.y+e,toJSON:l.toJSON.bind(l)})}catch{}},[e]);return o.useEffect(()=>{if(a)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[a,s]),{ref:t,rect:a,show:i,hide:s}}function x5({currentTime:e,sources:t,index:a,audioDuration:r}){const s=a||0,i=Array.isArray(t)&&t.length>0?t[s]:void 0,l=i?i.duration||r||0:r||0;if(!(l>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/l))}function _5(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function w5({ended:e,completedByEnd:t}){return!!e||!!t}function k5(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function A5(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function B5(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],s=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;s.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){s.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),c=a(l,t);c&&s.push({code:l,resolvedPath:c})}}return s}function N5(e){if(!e)return 0;const t=e.duration;if(Number.isFinite(t)&&t>0)return t;if(t===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}function D5({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:s}){const i=o.useRef(null),l=o.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=o.useCallback(()=>{if(i.current!==null)return;const d=()=>{try{const p=e.current,m=Array.isArray(r.current)?r.current[s.current||0]:void 0,h=m&&Number.isFinite(m.duration)&&(m.duration??0)>0?0:N5(p),g=t.current;if(h===null)try{g&&g.style.visibility!=="hidden"&&(g.style.visibility="hidden")}catch{}else{const C=x5({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:s.current,audioDuration:h});try{g&&(g.style.visibility&&(g.style.visibility=""),g.style.left=`${C*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(C))}catch{}}}catch{}i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)},[e,t,a,r,s]),u=o.useCallback(d=>{l();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,t,a]);return o.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:u}}function So({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=fe.useTranslation(),p=e,m=nr(),h=o.useRef(m?.registerAnalyser);o.useEffect(()=>{h.current=m?.registerAnalyser});const g=o.useRef(null),C=o.useRef(null),b=o.useRef(null),_=y5(),f=o.useRef(null),y=o.useRef(!1),x=o.useRef(0),v=o.useRef(null),{ref:A,rect:w,show:D,hide:k}=v5();o.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[B,N]=o.useState(!1),[M,P]=o.useState("idle"),[$,W]=o.useState("stopped"),S=o.useRef("stopped");o.useEffect(()=>{S.current=$},[$]);const[F,Y]=o.useState(0),[G,q]=o.useState("active"),H=o.useRef(!1);o.useEffect(()=>{if(G!=="playMode"||!H.current)return;H.current=!1;const V=typeof document<"u"?document.activeElement:null;if(V&&V!==document.body)return;const re=b.current?.querySelectorAll("button")[1];try{re?.focus()}catch{}},[G]);const[z,Z]=o.useState(null),[I,T]=o.useState(null),[O,R]=o.useState(0),[j,L]=o.useState(!1),[Q,J]=o.useState(0),oe=m?.playbackRate??1,ge=m?.mainVolume??1,Me=m?wo(m.settings):0,Ne=m?Lc(m.settings):ge,[ie,U]=o.useState("idle"),[se,me]=o.useState(""),[_e]=o.useState("top"),we=o.useRef(null),De=o.useRef(0),xe=o.useRef(null),{start:Ae,stop:Te,settleTo:ae}=D5({audioRef:g,fillRef:C,waveProgressRef:xe,sourcesRef:we,currentIndexRef:De}),{onReadyChange:ee,waitForReady:de,markNotReady:te}=b5({showSoundWaveForm:c,showNoiseWaveForm:u}),he=o.useRef(null),be=o.useRef(s),Ye=o.useRef(r),Ve=o.useRef(null),qe=o.useRef(!1),[Se,Ue]=o.useState(!1),$e=o.useCallback(V=>{qe.current=V,Ue(V)},[]),Ie=o.useRef(null),{activeNoiseUrl:He,noiseSettingsRef:at,fadeInNoise:ot,fadeOutNoise:We}=u5({noisePlayer:m,audioRef:g,playbackStateRef:S}),{startTTS:Xe,stopTTS:Ct}=d5({ttsText:i,playbackRate:oe,mainVolume:Ne,fillRef:C,waveProgressRef:xe,setProgress:Y,setPlaybackState:W,setStateLocal:q,fadeInNoise:ot,fadeOutNoise:We,noiseSettingsRef:at,onDoneRef:Ye,handleEndRef:Ie});o.useEffect(()=>{bt.current=Ct});const At=V=>{if(typeof window>"u"||!window.speechSynthesis){try{me(d("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Xe(V);return}Nt("tts"),Xe(V)},Et=Array.isArray(t)?t.filter(Boolean):t?[t]:[],ut=(!Et||Et.length===0)&&!!i,Qe=Array.isArray(z)&&z.length>0?z:Array.isArray(I)&&I.length>0?I:null,Ze=Math.max(Array.isArray(Qe)?Qe.length:0,Et.length),Oe=o.useRef(!0);o.useEffect(()=>(Oe.current=!0,()=>{Oe.current=!1}),[]);const rt=o.useRef(0),et=()=>{rt.current+=1,x.current+=1},bt=o.useRef(null),ze=o.useRef(null),it=o.useRef(null),Bt=o.useRef(null);Bt.current||(Bt.current=()=>{it.current=null;const V=g.current;if(ze.current==="audio"&&V&&!V.paused){rt.current+=1,x.current+=1;try{V.pause()}catch{}Oe.current&&W("paused")}else if(ze.current==="tts")try{bt.current?.()}catch{}});const Nt=V=>{ze.current=V,it.current=Za(Bt.current)},Le=()=>{it.current?.(),it.current=null};o.useEffect(()=>()=>{Bt.current&&Xa(Bt.current)},[]);const Ke=o.useCallback(async(V,re=3,le=50)=>{const ye=rt.current;for(let ve=0;ve<re;ve++){if(!Oe.current||ye!==rt.current)return!1;try{return Nt("audio"),await V.play(),!0}catch(je){if((je instanceof Error||typeof je=="object"&&je&&"name"in je?je.name:void 0)==="AbortError"){if(ye!==rt.current)return!1;await new Promise(nt=>setTimeout(nt,le));continue}try{me(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{me(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),Dt=o.useCallback(()=>{const V=g.current;if(!V)return;const re=()=>{W("playing"),q("playMode"),L(!0),Ae();try{Dr(),La(V).then(je=>{if(Oe.current)try{h.current?.("main",je)}catch{}})}catch{}const ve=at.current;ve?.enabled&&(ve?.volume??0)>0&&ot(ve.volume)},le=()=>{w5({ended:!!V?.ended,completedByEnd:qe.current})||(W("paused"),Te(),We())},ye=()=>{try{const ve=we.current,je=_5(ve,De.current);if(je!==null){De.current=je,R(je),L(!0);const nt=ve?.[je]&&ve[je].src;if(nt&&V){V.src=nt,V.load(),Ke(V).catch(()=>{});return}}}catch{}W("stopped"),Y(1);try{if(V)try{V.currentTime=0}catch{}}catch{}Te(),L(!1),We();try{!be.current&&Ie.current&&Ie.current()}catch{}};return V.addEventListener("play",re),V.addEventListener("pause",le),V.addEventListener("ended",ye),()=>{try{V.removeEventListener("play",re),V.removeEventListener("pause",le),V.removeEventListener("ended",ye),Te()}catch{}}},[ot,We,Ke,at,Ae,Te]);o.useEffect(()=>Dt(),[Dt]),o.useEffect(()=>{be.current=s},[s]),o.useEffect(()=>{Ye.current=r},[r]),o.useEffect(()=>{if(s||G!=="active")return;const V=v.current;if(!V)return;let re=null;const le=requestAnimationFrame(()=>{try{const ye=V.getTotalLength();if(!ye)return;const ve=ye*.2;V.style.strokeDasharray=`${ye-ve} ${ve}`;const je="triFlow_"+Math.random().toString(36).slice(2);re=document.createElement("style"),re.textContent=`@keyframes ${je}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${ye}}}`,document.head.appendChild(re),V.style.animation=`${je} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(le),re?.remove()}},[G,s]),o.useEffect(()=>{we.current=z},[z]),o.useEffect(()=>{De.current=O},[O]),o.useEffect(()=>{const V=b.current,re=f.current;if(!V||!re)return;let le=null;const ye=32,ve=60,je=()=>{try{const ht=Array.from(V.querySelectorAll(":scope > .button"));let lt=0;ht.forEach(pn=>{if(pn===re)return;const ur=pn.getBoundingClientRect();lt+=ur.width});const _t=V.getBoundingClientRect().width,zt=Math.max(0,Math.floor(_t-lt-8)),Rt=Ze;if(!Rt||zt<=0){Array.from(re.children).forEach(pn=>{try{pn.style.width=""}catch{}});return}let dn=Math.floor(zt/Rt);dn>ve&&(dn=ve),dn<ye&&(dn=Math.max(ye,Math.floor(zt/Rt))),Array.from(re.querySelectorAll(".button")).forEach(pn=>{try{pn.style.width=`${dn}px`}catch{}})}catch{}},nt=requestAnimationFrame(je);try{le=new ResizeObserver(()=>{requestAnimationFrame(je)}),le.observe(V),le.observe(re),window.addEventListener("resize",je)}catch{}return()=>{try{cancelAnimationFrame(nt)}catch{}try{le&&(le.disconnect(),le=null)}catch{}try{window.removeEventListener("resize",je)}catch{}}},[z,I,Ze]),o.useEffect(()=>()=>{try{he.current&&(clearTimeout(he.current),he.current=null),Ve.current&&(clearTimeout(Ve.current),Ve.current=null)}catch{}},[]);const vt=(V,re)=>{Z(V),J(re),te(),T(k5(V)),we.current=V},Tt=async(V,re)=>{$e(!1),y.current=!1,V.src=re,V.load(),await Fc(V),await de()!==!1&&(N(!1),await Ke(V),q("playMode"),R(0),L(!0))},on=async(V,re=!1)=>{const le=g.current;N(!0),P("measuring_duration");try{const ye=await Do(V,{timeoutMs:1e4,rejectOnError:!0});vt([{src:V,objectUrl:null,duration:ye}],ye),P("ready"),re&&le&&await Tt(le,V)}finally{y.current=!1,N(!1)}},tt=async(V,re=!1)=>{const le=g.current;N(!0),P("measuring_duration");try{const ye=await Promise.all(V.map(je=>Do(je,{timeoutMs:1e4})));if(!Oe.current)return;const ve=V.map((je,nt)=>({src:je,objectUrl:null,duration:ye[nt]||0}));vt(ve,A5(ve)),P("ready"),re&&le&&ve.length>0&&await Tt(le,ve[0].src)}finally{y.current=!1,N(!1)}},Gt=async(V=!1,re=!0)=>{const le=g.current,ye=t?Array.isArray(t)?t:[t]:[];if(!ye||ye.length===0||!ye.some(Boolean))return!1;if(y.current)return null;y.current=!0,re&&N(!0),P("resolving");try{const ve=B5(t,a,Rs),je=[];let nt=0;for(const ht of ve){let lt=ht.src??null,_t=null;if(!lt&&ht.resolvedPath){try{P("getting_signed_url"),lt=await Ps(ht.resolvedPath)}catch{lt=null}if(!Oe.current)return!1;if(!lt)try{P("downloading");const Rt=await Is(ht.resolvedPath);if(!Oe.current)return!1;if(Rt){const dn=Rt instanceof Blob?Rt:new Blob([Rt]);_t=_.track(URL.createObjectURL(dn)),lt=_t}}catch{P("error");try{me(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),q("active")}catch{}}}if(!lt)continue;let zt=0;try{P("measuring_duration"),zt=await Do(lt,{timeoutMs:3e3})}catch{zt=0}if(!Oe.current){if(_t)try{URL.revokeObjectURL(_t)}catch{}for(const Rt of je)if(Rt.objectUrl)try{URL.revokeObjectURL(Rt.objectUrl)}catch{}return!1}nt+=zt||0,je.push({...ht,src:lt,objectUrl:_t,duration:zt})}if(vt(je,nt),je.length>0&&V&&le){const ht=je[0];$e(!1);try{_.keepOnly(je.map(lt=>lt.objectUrl))}catch{}if(P("ready"),y.current=!1,ht.src&&le)try{if(le.src=ht.src,le.load(),await Fc(le),await de()===!1)return!1;re&&N(!1),le&&await Ke(le)}catch{re&&N(!1)}else re&&N(!1);q("playMode"),R(0),L(!0)}return je.length>0}finally{y.current=!1,re&&N(!1),P(ve=>ve==="ready"?"ready":"idle")}},vn=async()=>{const V=g.current;if(!(!V&&!ut)){if(ut){const re=window.speechSynthesis;if(G==="active"){const le=Ar(),ye=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(le&&ye.length>0){q("load"),N(!0),P("resolving"),y.current=!0;try{const ve=await Promise.all(ye.map(je=>Promise.resolve(le(je))));ve.length>1?await tt(ve,!0):await on(ve[0],!0)}catch{y.current=!1,N(!1),q("active"),At(ye.length>0?ye:void 0)}return}At(ye.length>0?ye:void 0);return}if(G==="playMode"){const le=!!re&&(re.speaking||re.paused)&&!(V&&(V.currentSrc||V.getAttribute("src")));if(V&&!le){if(V.paused){if(qe.current){await xt();return}await Ke(V),W("playing")}else et(),V.pause(),W("paused");return}try{if(re&&re.paused)try{Nt("tts"),re.resume(),W("playing")}catch{}else try{re.pause(),W("paused")}catch{}}catch{}}return}if(G==="active"){if(s&&Array.isArray(we.current)&&we.current.length>0){const le=we.current[0];try{if(le.src&&V)try{V.src=le.src,V.load(),V&&await Ke(V)}catch{}q("playMode"),R(0),L(!0);return}catch{}}q("load");let re;try{re=await Gt(!0)}catch{re=!1}if(re===!1&&Oe.current){try{me(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}q("active")}return}if(G!=="load"&&(G==="playMode"||G==="active"))try{if(V&&V.paused){if(qe.current){await xt();return}V&&await Ke(V),W("playing")}else V&&(et(),V.pause(),W("paused"))}catch(re){(re instanceof Error||typeof re=="object"&&re&&"name"in re)&&re.name}}},xt=async()=>{const V=g.current;if(V)try{const re=we.current;if(Array.isArray(re)&&re.length>1){await Kt(0);return}$e(!1);try{V.currentTime=0}catch{}V&&await Ke(V),W("playing"),q("playMode")}catch{}},Ht=()=>{if(et(),Le(),ut){Ct();return}const V=g.current;try{if(V){try{V.pause()}catch{}try{V.currentTime=0}catch{}}}catch{}We(),W("stopped"),q("active"),Y(0),L(!1)},Xt=async(V,{sameSegment:re=!1}={})=>{const le=++x.current,ye=g.current,ve=we.current?.[V]?.src;try{if($e(!1),R(V),L(!0),De.current=V,!ve||!ye||(re||te(),ye.src=ve,ye.load(),!re&&await de()===!1)||le!==x.current||(await Ke(ye),le!==x.current))return;W("playing"),q("playMode")}catch{}},an=async()=>{const V=we.current,re=De.current||0;if(!V||re<=0){await xt();return}await Xt(re-1)},sn=async()=>{const V=we.current,re=De.current||0;if(!V||re>=V.length-1){Ht();return}await Xt(re+1)},Jt=()=>{if(qe.current)return;const V=200,re=340;$e(!0),et(),Le();try{Y(1)}catch{}ae(1);try{U("hold")}catch{}try{const le=g.current,ye=ut&&!!le?.src;if(!ut||ye){if(le){le.pause();try{le.currentTime=0}catch{}}}else Ct();We()}catch{}try{W("stopped")}catch{}if(L(!1),!be.current)try{Ve.current&&(clearTimeout(Ve.current),Ve.current=null),Ve.current=setTimeout(()=>{try{U("out")}catch{}Ve.current=setTimeout(()=>{try{typeof Ye.current=="function"&&Ye.current(!0)}catch{}try{U("idle")}catch{}Ve.current=null},re)},V)}catch{}};o.useEffect(()=>{Ie.current=Jt});const xn=o.useCallback(()=>me(""),[]),Kt=async V=>{(we.current||[])[V]&&await Xt(V,{sameSegment:V===De.current})},mt=$==="playing",ln=o.useMemo(()=>{if(!I||I.length<=1)return I;const V=I[O];return V?[V]:I},[I,O]),Yt=s===!0;o.useEffect(()=>{try{const V=g.current;V&&typeof V.playbackRate=="number"&&(V.playbackRate=oe||1)}catch{}},[oe]);const jt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const V=g.current;if(!V)return;const re=Math.max(0,Math.min(1,Ne)),le=jt.current,ye=()=>{le.raf!==null&&(cancelAnimationFrame(le.raf),le.raf=null),le.timer!==null&&(clearTimeout(le.timer),le.timer=null)};ye();const ve=$a(V);if(V.paused||Math.abs(ve-re)<.001||typeof requestAnimationFrame!="function"){try{kn(V,re)}catch{}return}const je=performance.now(),nt=()=>{const ht=Math.min(1,(performance.now()-je)/150);try{kn(V,ve+(re-ve)*ht)}catch{}le.raf=ht<1?requestAnimationFrame(nt):null};return le.raf=requestAnimationFrame(nt),le.timer=setTimeout(()=>{ye();try{kn(V,re)}catch{}},200),ye},[Ne]);const cn=ie==="hold",Zt=ie==="out",un=G==="playMode"&&!B&&!Se||cn||Zt,ke=$!=="stopped"||cn||Zt,Pe=$==="paused",ne=Math.max(0,Math.min(100,(F||0)*100)),pe=Be("audio-player__fill",un?"is-visible":"",ke?"is-expanded":"",Pe?"is-paused":"",Zt?"is-out":"");return n.jsxs("div",{className:`audio-player ${Yt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${mt?"is-playing":""} ${B?"is-loading":""} ${G!=="default"?"is-revealed":""}`,children:[B?n.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[n.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),n.jsx("span",{className:"audio-player__loading-text",children:d(`training.audioStatus.${M}`,{defaultValue:C5[M]})})]}):null,G==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Yt,onClick:()=>{H.current=Ja(),k(),vn()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:D,onMouseLeave:k,onFocus:D,onBlur:k,children:n.jsx("span",{ref:A,className:"audio-player__button-triangle-wrap",children:n.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:n.jsx("path",{ref:v,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&&n.jsx(Bn,{anchorRect:w,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${G==="playMode"||mt?"is-visible":""}`,inert:!(G==="playMode"||mt)||void 0,children:[n.jsxs("div",{ref:b,className:"audio-player__buttons",children:[n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:an,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:G!=="playMode"}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:mt?"pause":"play",onClick:vn,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":mt,width:"60px",variant:"transparent-white",disabled:G!=="playMode"}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Ht,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:G!=="playMode"}),Ze>1?n.jsx("div",{ref:f,className:"audio-player__source-buttons",children:Array.from({length:Ze}).map((V,re)=>n.jsx(ce,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(re+1),onClick:()=>{try{Kt(re)}catch{}},ariaLabel:d("training.sourcePlay",{n:re+1}),variant:"transparent-white",selected:j&&O===re,disabled:G!=="playMode"||!(Array.isArray(z)&&z[re]),showTooltipInfo:!0},re))}):null,!Array.isArray(z)||z.length<=1?n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:xt,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:G!=="playMode"}):null,n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:sn,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:G!=="playMode"}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:Jt,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:G!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:pe,ref:C,style:{left:`${ne}%`},"aria-hidden":"true"}),(c||u)&&n.jsx(f5,{segments:ln,progress:F,totalDuration:Q,waveProgressRef:xe,showSoundWaveForm:c,noiseSrc:u&&m?.settings.enabled&&Me>0?He:null,noiseRatio:m?Da(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:ge,onReadyChange:ee})]})]}),n.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!c&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(Ge,{icon:"triangle-alert",size:14}),d("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(ea,{message:se,position:_e,onClose:xn})]})}function rr(e){const{t}=fe.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:m,canIncrease:h,canDecrease:g,fontSize:C,lineHeight:b}=Gi({storageKey:"tooltip-fontScale"}),_=o.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),f=o.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),y=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],x={fontSize:`${C}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},v=n.jsxs("div",{className:`tooltip-textbox__root ${u==="dark"?"is-dark":""}`,children:[n.jsxs("div",{className:"tooltip-textbox__box",children:[r&&n.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),n.jsx("div",{className:"tooltip-textbox__text body-1",style:x,children:y.map((A,w)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[y.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},w))})]}),n.jsxs("div",{className:"tooltip-textbox__buttons",children:[n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:m,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!g}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:p,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!h}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:_,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:f,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return s?n.jsx(An,{anchorRect:s,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:v}):n.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:v})}function Oc({state:e="disabled"}){const{t}=fe.useTranslation();return n.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[n.jsx("div",{className:"bullet__dot",children:n.jsx(Ge,{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})}),n.jsx("div",{className:"ts-bullet__line"})]})}function Vc(e,t,a){const r=o.useRef(t),s=o.useRef(a);o.useEffect(()=>{r.current=t,s.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let i=null,l=10;const c=()=>{i=null;const u=r.current(),d=u?Array.from(u.querySelectorAll(hn)).find(p=>!p.closest('[aria-hidden="true"]')):void 0;if(d){try{d.focus()}catch{}if(document.activeElement===d)return}--l>0&&(i=requestAnimationFrame(c))};return i=requestAnimationFrame(c),()=>{i!==null&&cancelAnimationFrame(i);const u=document.activeElement;if(!u||u===document.body||!document.contains(u)||u.closest(".tooltip-content")){const d=s.current();if(d)try{d.focus()}catch{}}}},[e])}function Hc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:m}=fe.useTranslation(),h=en("(max-width: 767px)"),g=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),C=`training-step__title-row training-step__title-row--${r}`.trim(),b=o.useRef(null),[_,f]=o.useState(!1),[y,x]=o.useState(null),[v,A]=o.useState(null);Vc(_&&!!y,()=>{if(typeof document>"u")return null;const N=Array.from(document.querySelectorAll(".tooltip-content"));for(let M=N.length-1;M>=0;M--)if(N[M].querySelector(".tooltip-textbox__root"))return N[M];return null},()=>b.current?.querySelector("button")??null);const w=o.useRef(i);o.useEffect(()=>{w.current=i});const D=o.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(N=>typeof N=="string"||typeof N=="number")?l.join(""):"",[l]),k=o.useCallback(()=>{f(!1),x(null),A(null)},[]);o.useEffect(()=>{if(!_)return;let N;try{typeof w.current=="function"&&(N=w.current())}catch{}if(N===!1){k();return}A(typeof N<"u"&&N!==null?N:null)},[D]);const B=o.useCallback(()=>{let N;try{typeof i=="function"&&(N=i())}catch{}if(N!==!1){if(A(typeof N<"u"&&N!==null?N:l),!b.current){f(M=>!M);return}if(_)f(!1),x(null),A(null);else{const M=b.current.getBoundingClientRect();x(M),f(!0)}}},[i,l,_]);return n.jsxs("div",{className:C,children:[n.jsx("p",{className:g,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),s||u?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[u&&n.jsx(ce,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),s&&n.jsx("div",{ref:b,children:n.jsx(ce,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:B,className:_?"is-selected":void 0,"aria-expanded":_,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),_&&n.jsx(rr,{text:v??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:y,onClose:k,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Eo(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Hn({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:c=void 0,useTitleFaded:u=void 0}){const{t:d}=fe.useTranslation(),[p,m]=o.useState(()=>Eo(e,t));o.useEffect(()=>{const A=Eo(e,t);if(A!==p){const w=setTimeout(()=>m(A),0);return()=>clearTimeout(w)}},[e,t,p]);const h=o.useCallback((...A)=>{Eo(e,t)==="done"||p==="done"||typeof c=="function"&&c(...A)},[e,t,p,c]),[g,C]=o.useState(!1),[b,_]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),f=o.useCallback(A=>{if(!A)return null;try{const w=A;if(typeof A=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const B=w.currentTarget??w.target;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect()}if(A instanceof DOMRect)return A;const D=A;if(D&&typeof D.getBoundingClientRect=="function")return D.getBoundingClientRect();const k=A?.current;return k&&typeof k.getBoundingClientRect=="function"?k.getBoundingClientRect():null}catch{return null}},[]),y=o.useCallback((A,{text:w="",label:D="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:k=!1,alignX:B="center",alignY:N="top"}={})=>{const M=f(A);_({text:w,label:D,anchorRect:M,backdrop:k,alignX:B,alignY:N}),C(!0)},[f]),x=o.useCallback(()=>{C(!1),_(A=>({...A,anchorRect:null}))},[]),v=o.Children.map(i,A=>{if(o.isValidElement(A)){const w=A;if(typeof w.type=="string")return w;const D=w.props??{},k=typeof D.onDone=="function"?D.onDone:h,B=typeof D.disabled=="boolean";let N=p==="disabled";return B&&(N=!!D.disabled),o.cloneElement(w,{onDone:k,disabled:N,showTooltip:y,hideTooltip:x})}return A});return n.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[n.jsx(Oc,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(Hc,{state:p,title:r,...s,useFaded:u}),v]}),g?n.jsx(An,{anchorRect:b.anchorRect,backdrop:b.backdrop,onClose:x,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(rr,{text:b.text,onClose:x})}):null]})}function zc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=fe.useTranslation(),[s,i]=o.useState("disabled"),[l,c]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const u=()=>c($=>$==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:m,canDecrease:h,fontSize:g,lineHeight:C}=Gi({storageKey:"textbox_fontScale"}),[b,_]=o.useState(""),f=o.useRef(null),y=o.useRef(!1),x=o.useCallback(()=>{y.current=Ja()&&!!f.current&&f.current.contains(document.activeElement),i("active")},[]),v=o.useCallback(()=>_(""),[]),A=$=>{try{_($)}catch{}},w=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const $=setTimeout(()=>i(t),0);return()=>clearTimeout($)}},[t]);const D=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[k,B]=o.useState(D);k!==D&&(B(D),i("disabled"));const N=t==="disabled"?s:t,M=N==="disabled"?"training-text-box--disabled":N==="active"?"training-text-box--active":N==="done"?"training-text-box--done":"",P=o.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${C}px`}),[g,C]);return o.useEffect(()=>{if(N==="disabled"||!y.current)return;y.current=!1;const $=document.activeElement;$&&$!==document.body||f.current?.querySelector(".training-text-box__buttons button")?.focus()},[N]),n.jsxs("div",{ref:f,className:`training-text-box ${M} ${N!=="disabled"&&l==="dark"?"is-dark":""}`,children:[N==="disabled"&&n.jsx("div",{className:"training-text-box__preview",children:n.jsx(ce,{htmlType:"button",size:48,type:"bar",onClick:x,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),n.jsx("div",{className:"training-text-box__area","aria-hidden":N==="disabled",children:n.jsx("span",{className:"training-text-box__inner h3",style:P,children:D})}),N!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":N==="disabled",children:[n.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>A(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:l==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),n.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>A(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:l==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),n.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),n.jsx(ea,{message:b,position:"top",onClose:v})]})}function To({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:g,shuffleChoices:C=!0}){const{t:b}=fe.useTranslation(),_=r??b("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),f=typeof e=="number"?e:-1,y=typeof t!="number"?"disabled":f<t?"done":f===t?"active":"disabled",x=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,v=u?u.join("||"):"",A=d?d.join("||"):"",[w,D]=o.useState(()=>Array.isArray(x)?C?fa(x):x.slice():void 0);o.useEffect(()=>{Array.isArray(x)&&x.length?D(C?fa(x):x.slice()):D(void 0)},[c,v,A,C]);const[k,B]=o.useState(null),[N,M]=o.useState(()=>new Set);o.useEffect(()=>{B(null),M(new Set)},[A,c,v]);const P=o.useRef(void 0);o.useEffect(()=>{const S=P.current;typeof S=="number"&&typeof t=="number"&&typeof e=="number"&&S>=e&&t<e&&(B(null),M(new Set)),P.current=t},[t,e]);const $=o.useCallback(S=>{if(y!=="active")return;const F=w?.[S];if(F==null)return;const Y=F,G=y==="active"||y==="done";if(p){const q=new Set(N),H=q.has(Y);H?q.delete(Y):q.add(Y),M(q),typeof l=="function"&&l({selectedValues:[...q],__ts:Date.now()}),G&&(typeof m=="number"&&m>0?q.size>=m:!H)&&typeof i=="function"&&y==="active"&&i({selectedValues:[...q],__ts:Date.now()})}else B(Y),typeof l=="function"&&l({selectedIndex:S,selectedValue:Y,__ts:Date.now()}),G&&typeof i=="function"&&y==="active"&&i({selectedIndex:S,selectedValue:Y,__ts:Date.now()})},[w,y,p,l,i,m,N]),W=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return n.jsx(Hn,{index:e,stepIndex:t,isLast:a,title:_,useTitleFaded:s,children:n.jsx("div",{className:W,children:Array.isArray(w)&&w.length>0?w.map((S,F)=>n.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:()=>$(F),ariaLabel:String(S),label:S,useLabel:!0,icon:g?g[String(S)]:void 0,variant:"default",disabled:y==="disabled",selected:p?N.has(S):k===S,useDisabledCovered:h,minWidth:0},String(S))):null})})}function jo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:c}){const{t:u}=fe.useTranslation(),d=r??u("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,m=typeof t!="number"?"disabled":p<t?"done":p===t?"active":"disabled",h=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",g=l&&typeof l=="object"?l.choices:void 0,[C,b]=o.useState(c??null),_=`${String(h)}\0${JSON.stringify(g??null)}`,[f,y]=o.useState(_);f!==_&&(y(_),c==null&&b(null));const[x,v]=o.useState(c);Object.is(x,c)||(v(c),b(c??null));const A=o.useRef(void 0);o.useEffect(()=>{const B=A.current;typeof B=="number"&&typeof t=="number"&&typeof e=="number"&&B>=e&&t<e&&c==null&&b(null),A.current=t},[t,e,c]);const w=o.useCallback(B=>{const N=typeof B=="object"&&B!==null?Object.assign({},B,{__ts:Date.now()}):{value:B,__ts:Date.now()};typeof i=="function"&&i(N),m==="active"&&typeof s=="function"&&s(N)},[i,m,s]),D=o.useCallback(()=>{m==="active"&&(b(!1),w(!1))},[w,m]),k=o.useCallback(()=>{m==="active"&&(b(!0),w(!0))},[w,m]);return n.jsxs(Hn,{index:e,stepIndex:t,isLast:a,title:d,onDone:s,useTitleFaded:!1,children:[n.jsx(zc,{context:l,state:m}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((B,N)=>n.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(b(N),w&&w(N))},disabled:m==="disabled",ariaLabel:String(B),label:B,variant:m,selected:C===N},N)):n.jsxs(n.Fragment,{children:[n.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:D,disabled:m==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!1}),n.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:k,disabled:m==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!0})]})})]})}function Mo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:g,showNoiseWaveForm:C}){const{t:b}=fe.useTranslation(),_=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),f=m??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(Hn,{index:e,stepIndex:t,isLast:a,title:_,onDone:s,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:n.jsx(So,{soundSrc:l,ttsText:l?null:d??_,bucketPath:c,btnLabel:i||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:f,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:C},`audio-p${h??0}-s${e}`)})}const S5=[];function Lo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=S5}){const{t:c}=fe.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=I=>typeof I=="string"?I:I&&(I.context||I.sentence||I.question||"")||"",[p,m]=o.useState(Array.isArray(l)?l:[]),[h,g]=o.useState(()=>(p||[]).map((I,T)=>({id:T,text:d(I)}))),C=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),b=C!=="disabled",_=o.useRef(void 0);o.useEffect(()=>{if(_.current===l)return;_.current=l;const I=Array.isArray(l)?l:[];m(I);const T=(O=>{const R=(O||[]).map((J,oe)=>({id:oe,text:d(J)}));if(R.length<=1)return R;const j=(J,oe)=>{if(J.length!==oe.length)return!1;for(let ge=0;ge<J.length;ge++)if(J[ge].text!==oe[ge].text)return!1;return!0};let L=fa(R),Q=0;for(;j(L,R)&&Q<20;)L=fa(R),Q+=1;return L})(I);g(T);try{if(typeof i=="function"){const O=T.filter((R,j)=>R.text===d(I[j])).length;i({shuffled:T,score:O,total:(I||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&C==="active"){const O=T.filter((R,j)=>R.text===d(I[j])).length;s({shuffled:T,score:O,total:(I||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const f=(I,T)=>{const O=[...h],R=I+T;if(R<0||R>=O.length)return;const j=O[R];O[R]=O[I],O[I]=j,F(O);try{if(typeof s=="function"&&C==="active"){const L=O.filter((Q,J)=>Q.text===d(p[J])).length;s({shuffled:O,score:L,total:(p||[]).length,__ts:Date.now()})}}catch{}},[y,x]=o.useState(null),v=o.useRef(null),A=o.useRef(null),w=o.useRef(null),D=o.useRef(null),k=o.useRef(null),B=o.useRef({x:0,y:0}),N=o.useRef(null),M=o.useRef({dx:0,dy:0}),P=()=>{if(N.current!==null)return;const I=()=>{if(!v.current){N.current=null;return}N.current=requestAnimationFrame(I);const T=B.current,O=M.current||{dx:0,dy:0};v.current&&(v.current.style.transform=`translate3d(${T.x-O.dx}px, ${T.y-O.dy}px, 0)`)};N.current=requestAnimationFrame(I)},$=o.useRef(new Map),W=o.useRef(new Map),S=()=>{const I=new Map;return $.current.forEach((T,O)=>{T&&T.getBoundingClientRect&&I.set(O,T.getBoundingClientRect())}),I},F=I=>{const T=S();g(I);try{if(typeof i=="function"){const O=I.filter((R,j)=>R.text===d(p[j])).length;i({shuffled:I,score:O,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const O=S();I.forEach(R=>{const j=T.get(R.id),L=O.get(R.id),Q=$.current.get(R.id);if(!Q||!j||!L)return;const J=j.top-L.top;J&&(Q.style.transition="none",Q.style.transform=`translateY(${J}px)`,requestAnimationFrame(()=>{Q.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",Q.style.transform="";const oe=()=>{Q.style.transition="",Q.removeEventListener("transitionend",oe)};Q.addEventListener("transitionend",oe)}))})})},Y=(I,T)=>{try{try{T.dataTransfer?.setData("text/plain",String(I))}catch{}try{T.dataTransfer&&(T.dataTransfer.effectAllowed="move")}catch{}try{const O=document.createElement("div");O.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(O),T.dataTransfer?.setDragImage(O,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(O)}catch{}})}catch{}}catch{}x(I);try{const O=h[I],R=document.createElement("div");R.className="order-list__dragging-object order-list__dragging-object--visible",R.textContent=O&&O.text?O.text:"",document.body.appendChild(R),v.current=R;const j=$.current.get(O.id);let L=T.clientX||0,Q=T.clientY||0;try{if(j&&j.getBoundingClientRect){const ie=j.getBoundingClientRect();L=ie.left+ie.width/2,Q=ie.top+ie.height/2}}catch{}const J=R.getBoundingClientRect(),oe=J.width/2,ge=J.height/2;M.current={dx:oe,dy:ge},R.style.transition="none",B.current={x:L,y:Q},R.style.transform=`translate3d(${L-oe}px, ${Q-ge}px, 0)`,requestAnimationFrame(()=>{try{R.style.transition=""}catch{}P()});const Me=ie=>{const U=ie;B.current={x:U.clientX,y:U.clientY},P()};w.current=Me,document.addEventListener("mousemove",Me);const Ne=ie=>{const U=ie;B.current={x:U.clientX,y:U.clientY},P()};A.current=Ne,document.addEventListener("dragover",Ne);try{T.dataTransfer?.setData("text/plain",String(I));try{T.dataTransfer?.setData("application/json",JSON.stringify({idx:I}))}catch{}}catch{}}catch{}},G=(I,T)=>{T.preventDefault();try{T.dataTransfer&&(T.dataTransfer.dropEffect="move")}catch{}try{k.current!==null&&(clearTimeout(k.current),k.current=null);const O=T.currentTarget&&T.currentTarget.closest?T.currentTarget.closest(".order-list__item"):null;if(O&&D.current!==O){if(D.current)try{D.current.classList.remove("drag-over")}catch{}try{O.classList.add("drag-over")}catch{}D.current=O}}catch{}},q=(I,T)=>{T.preventDefault();const O=T.dataTransfer?.getData("text/plain")||"",R=O?parseInt(O,10):y,j=I;if(typeof R!="number"||isNaN(R)||R===j){x(null),Z(),H();return}const L=c2(h,R,j);F(L),x(null),H();try{if(typeof s=="function"&&C==="active"){const Q=L.filter((J,oe)=>J.text===d(p[oe])).length;s({shuffled:L,score:Q,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const Q=document.querySelectorAll(".order-list .order-list__item")[j];if(!Q)return;const J=Q.querySelector(".order-list__slot")||Q;try{J.classList.add("pulse"),J.offsetHeight,J.classList.add("to-dark");const oe=()=>{J.classList.remove("pulse","to-dark"),J.removeEventListener("transitionend",oe)};J.addEventListener("transitionend",oe)}catch{}})}catch{}Z()},H=()=>{if(v.current){try{document.body.removeChild(v.current)}catch{}v.current=null}A.current&&(document.removeEventListener("dragover",A.current),A.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),N.current!==null&&(cancelAnimationFrame(N.current),N.current=null)},z=()=>{x(null),Z(),H()};o.useEffect(()=>()=>H(),[]);const Z=()=>{try{if(k.current!==null&&(clearTimeout(k.current),k.current=null),D.current){try{D.current.classList.remove("drag-over")}catch{}D.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(I=>I.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const I=Math.max(1,(h||[]).length);h.forEach((T,O)=>{const R=W.current.get(T.id);if(!R)return;let j=50;I>1&&(j=Math.round(O/(I-1)*100));try{R.style.setProperty("--marker-pos",j+"%")}catch{}})}catch{}},[h]),o.useEffect(()=>()=>{H(),k.current!==null&&(clearTimeout(k.current),k.current=null)},[]),n.jsx(Hn,{index:e,stepIndex:t,isLast:a,title:u,children:n.jsx("div",{className:"order-list",children:h.map((I,T)=>{const O=Math.max(1,(h||[]).length),R=O>1?Math.round(T/(O-1)*100):50;return n.jsx("div",{className:"order-list__item",children:n.jsxs("div",{className:"order-list__slot","data-disabled":C==="disabled","aria-disabled":C==="disabled",children:[C!=="disabled"?n.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":R+"%"},ref:j=>{const L=W.current;j?L.set(I.id,j):L.delete(I.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:T+1})}):null,n.jsxs("div",{ref:j=>{const L=$.current;j?L.set(I.id,j):L.delete(I.id)},className:`order-list__draggable ${y===T?"dragging":""}`,"data-disabled":C==="disabled","aria-disabled":C==="disabled",tabIndex:C==="disabled"?-1:0,draggable:b,onDragStart:b?j=>Y(T,j):void 0,onDragEnter:b?j=>G(T,j):void 0,onDragOver:b?j=>G(T,j):void 0,onDragLeave:b?()=>{try{k.current!==null&&clearTimeout(k.current),k.current=setTimeout(()=>{try{const j=document.querySelectorAll(".order-list .order-list__item");j&&j[T]&&(j[T].classList.remove("drag-over"),D.current===j[T]&&(D.current=null))}catch{}},80)}catch{}}:void 0,onDrop:b?j=>q(T,j):void 0,onDragEnd:b?z:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:I.text}),b?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>f(T,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:T===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>f(T,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:T===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},I.id)})})})}const E5=8e3;function T5(e,t){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,t)})}function Wc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:m}=fe.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),C=p??3,b=(g||[]).slice(0,C);(g||[]).length>C&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${C} shown`);const _=typeof e=="number"?e:-1,f=typeof t!="number"?"disabled":_<t?"done":_===t?"active":"disabled",[y,x]=o.useState(null),v=o.useRef([]),[A,w]=o.useState(!1),D=o.useRef(null),k=o.useRef(!0);o.useEffect(()=>(k.current=!0,()=>{k.current=!1}),[]);const B=o.useMemo(()=>g.map(W=>W?.id??W?.word??"").join("|"),[g]);o.useEffect(()=>{x(null)},[B]);const N=o.useRef(void 0);o.useEffect(()=>{const W=N.current;typeof W=="number"&&typeof t=="number"&&typeof e=="number"&&W>=e&&t<e&&x(null),N.current=t},[t,e]);const M=o.useCallback((W,S)=>{if(c)return;const F={item:W,index:S,__ts:Date.now()};try{typeof i=="function"&&i(F)}catch{}if(f==="active"&&typeof s=="function")try{s(F)}catch{}},[c,i,f,s]),P=o.useCallback(async()=>{if(A||f==="disabled")return;w(!0);let W=!1;const S=new Promise(F=>{D.current=()=>{W=!0,F()}});try{for(let F=0;F<b.length&&!(!k.current||W);F++){const Y=v.current[F];Y&&await Promise.race([T5(Y.play(),E5),S])}}finally{D.current=null,w(!1)}},[A,f,b.length]),$=o.useCallback((W,S)=>{if(f!=="active")return;x(S);const F={selectedValue:W.word||W.title||"",selectedIndex:S,item:W,__ts:Date.now()};try{typeof i=="function"&&i(F)}catch{}if(f==="active"&&typeof s=="function")try{s(F)}catch{}},[i,f,s]);return n.jsx(Hn,{index:e,stepIndex:t,isLast:a,title:h,onDone:s,titleProps:{usePlayAllBtn:!d&&b.length>0,onPlayAll:P,playAllActive:A},children:n.jsx("div",{className:"training-step__cards",onClickCapture:W=>{const S=D.current;if(!S)return;const F=W.target;F&&typeof F.closest=="function"&&F.closest(".training-word-card__bottom")&&S()},children:b.length===0?n.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((W,S)=>n.jsx(ho,{ref:F=>{v.current[S]=F},item:W,disabled:f==="disabled",onPlayDone:()=>M(W,S),selectable:c,selected:c&&y===S,onSelect:c?()=>$(W,S):void 0,flipDelay:S*120,hideLabel:u,hideAudio:d},W&&W.id||S))})})}const j5=160,M5={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function L5(e,t){const a=M5[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}const qc=()=>{};function Sn(e){const t=o.useId();if(!("variant"in e)){const{label:f,sub:y,onClick:x,children:v,align:A="horizontal",icon:w}=e,D=k=>{x&&k.target===k.currentTarget&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),x())};return n.jsxs("div",{className:Be("panel-row",A==="vertical"?"panel-row--vertical":"",x?"panel-row--clickable":""),onClick:x,onKeyDown:x?D:void 0,role:x?"button":void 0,tabIndex:x?0:void 0,children:[w!=null&&n.jsx("div",{className:"panel-row__icon",children:w}),f!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:f}),y&&n.jsx("div",{className:"panel-row__sub caption-1",children:y})]}),n.jsx("div",{className:"panel-row__right",children:v})]})}if(e.variant==="description")return n.jsx("div",{className:"panel-row panel-row--block",children:n.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return n.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return n.jsx("div",{className:"panel-row panel-row--loading",children:n.jsx(Ba,{size:28})});if(e.variant==="custom"&&!e.label)return n.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:s,onClick:i,required:l,error:c,align:u="horizontal",useFullWidth:d=!1,icon:p}=e,m=a==="button"?void 0:i;let h=null;const g=a==="toggle"?`panel-toggle-${t}`:void 0,C=c?`panel-error-${t}`:void 0;if(a==="toggle"){const f=e;h=n.jsx(El,{checked:f.checked,onChange:f.onChange,id:g})}else if(a==="segmented"){const f=e;h=n.jsx(Vn,{options:f.options,value:f.value,onChange:f.onChange,size:f.size??40,ariaLabel:r})}else if(a==="dropdown"){const f=e,y=f.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:f.dropdowns.map((x,v)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(tn,{options:x.options,value:x.value,onChange:x.onChange,placeholder:x.placeholder,block:d,error:!!c,ariaDescribedBy:C,ariaLabel:x.ariaLabel??([r,x.placeholder].filter(Boolean).join(" ")||void 0)})},v))}):n.jsx(tn,{options:f.options??[],value:f.value??"",onChange:f.onChange??qc,block:d,error:!!c,ariaLabel:r,ariaDescribedBy:C});h=c?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[y,n.jsx("span",{id:C,className:"caption-1 panel-row__error",role:"alert",children:c})]}):y}else if(a==="button"){const f=e;f.buttons?.length?h=n.jsx("div",{className:"panel-row__button-group",children:f.buttons.map((y,x)=>n.jsx(ce,{htmlType:"button",size:y.btnSize??40,variant:y.btnVariant??"default",disabled:y.disabled,onClick:y.onClick,children:y.label},x))}):h=n.jsx(ce,{htmlType:"button",size:f.btnSize??40,variant:f.btnVariant??"default",disabled:f.disabled,onClick:f.onClick,children:f.buttonLabel})}else if(a==="text"){const f=e;h=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:f.valueColor?{color:f.valueColor}:void 0,children:f.value})}else if(a==="input"){const f=e;h=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(On,{value:f.value,onChange:f.onChange??qc,onKeyDown:f.onKeyDown,onEnter:f.onEnter,placeholder:f.placeholder,inputMode:f.inputMode,readOnly:f.readOnly,disabled:f.disabled,type:f.type,autoComplete:f.autoComplete,maxLength:f.maxLength,showCount:f.showCount,multiline:f.multiline,rows:f.rows,fullWidth:d,error:c,ariaLabel:r,required:l}),f.helperText&&n.jsx("div",{className:"panel-row__helper caption-1",children:f.helperText})]})}else a==="custom"&&(h=e.children);c&&a!=="input"&&a!=="dropdown"&&(h=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[h,n.jsx("span",{id:C,className:"caption-1 panel-row__error",role:"alert",children:c})]}));const b=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=f=>{m&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),m())};return n.jsxs("div",{className:Be("panel-row",u==="vertical"?"panel-row--vertical":"",b?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?_:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,children:[p!=null&&n.jsx("div",{className:"panel-row__icon",children:p}),n.jsxs("div",{className:"panel-row__left",children:[g?n.jsxs("label",{htmlFor:g,className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}),s&&n.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),n.jsx("div",{className:"panel-row__right",children:h})]})}function Uc(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function $5({devices:e,onRelease:t,emptyLabel:a}){const{t:r}=fe.useTranslation();return n.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(s=>{const i=e[s],l=s==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return n.jsxs("div",{className:"panel-row__device-column",children:[n.jsxs("div",{className:"panel-row__device-head",children:[n.jsx("span",{className:"panel-row__device-side body-2b",children:l}),i&&t&&n.jsx(ce,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${l} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(s)})]}),i?n.jsxs("div",{className:"panel-row__device-info",children:[n.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&n.jsx(pt,{size:"small",variant:Kl(i.device),fill:"soft",label:L5(i.device,r)}),Uc(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:Uc(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),co(i.wornYear,i.wornMonth,i.wornDay)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:co(i.wornYear,i.wornMonth,i.wornDay)})})]}):n.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},s)})})}function or({title:e,icon:t,disc:a,actions:r,size:s="medium",minHeight:i,maxWidth:l,className:c,scrollable:u,scrollbarGutter:d="auto",compactRows:p=!1,useBorder:m=!0,useBg:h=!0,useRowBorder:g=!0,labelWidth:C,form:b=!1,loading:_,empty:f,children:y}){const x=Be("panel",`panel--${s}`,b?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",h?"":"panel--no-bg",g?"":"panel--no-row-border",p?"panel--compact-rows":"",c),v={};return i!==void 0&&(v.minHeight=i),l!==void 0&&(v.maxWidth=typeof l=="number"?`${l}px`:l),C!==void 0&&(v["--panel-label-width"]=typeof C=="number"?`${C}px`:C),n.jsxs("div",{className:x,style:Object.keys(v).length?v:void 0,children:[(e!=null||a!=null)&&n.jsxs("div",{className:Be("panel__header",a!=null?"panel__header--with-disc":""),children:[t&&n.jsx(Ge,{icon:t,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[e!=null&&n.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&n.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&n.jsx("div",{className:"panel__actions",children:r})]}),_?n.jsx(Sn,{variant:"loading"}):f!=null&&o.Children.toArray(y).length===0?n.jsx(Sn,{variant:"empty",children:f}):u?n.jsx("div",{className:Be("panel__body--scroll",d==="stable"&&"panel__body--gutter-stable"),children:y}):y]})}function R5({cols:e=2,children:t}){return n.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:t})}function P5(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 Gc(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"}]}P5(wt.t.bind(wt)),Gc(wt.t.bind(wt));const $o="none",I5=.5,F5=1.5,O5=.25;function Ro({title:e,valueLabel:t,value:a,min:r,max:s,step:i,tickStep:l,size:c,onChange:u}){return n.jsxs(Sn,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(zl,{value:a,onChange:u,min:r,max:s,step:i,size:c,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),n.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function Kc({anchorRect:e,onClose:t}){const{t:a}=fe.useTranslation(),r=en("(max-width: 767px)")?40:24,s=nr(),i=Da(s?.settings??Ea),l=s?.settings.type??"defaultNoise",c=s?.settings.enabled??!0,u=s?.playbackRate??1,d=s?.mainVolume??1,p=Math.round(d*100),m=o.useCallback(b=>{try{s?.setMainVolume(Math.max(0,Math.min(1,b/100)))}catch{}},[s]),h=o.useCallback(b=>{try{s?.setPlaybackRate(b)}catch{}},[s]),g=o.useCallback(b=>{const _=Math.min(Na,Math.max(0,Math.round(b*10)/10));try{s?.setSettings({noiseRatio:_})}catch{}},[s]),C=o.useCallback(b=>{try{b===$o?s?.setSettings({enabled:!1}):s?.setSettings({type:b,enabled:!0})}catch{}},[s]);return n.jsx(An,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:n.jsxs("div",{className:"noise-settings__header",children:[n.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),n.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:n.jsxs(or,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[n.jsx(Ro,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),n.jsx(Ro,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:I5,max:F5,step:O5,size:r,onChange:h}),n.jsx(Sn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(Vn,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:$o,label:a("training.noise.type.none","\uC5C6\uC74C")},...Gc(a).map(b=>({key:b.value,label:b.label}))],value:c?l:$o,onChange:C})}),n.jsx(Ro,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Na,step:jc,size:r,onChange:g})]})})}function Yc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=fe.useTranslation(),[d,p]=o.useState(!1),[m,h]=o.useState(null),[g,C]=o.useState(!1),b=o.useRef(null),_=o.useRef(null),f=nr(),y=c>0,x=y&&l<c-1,v=!y||l>=c-1,A=s===Math.max(0,i);o.useEffect(()=>{e||(p(!1),h(null))},[e]);const w=o.useCallback(()=>{p(!1),h(null)},[]),D=o.useCallback(()=>{if(d){p(!1),h(null);return}const N=b?.current?.getBoundingClientRect();N&&h(N),t?.(),p(!0)},[d,t]),k=o.useCallback(()=>{if(d){p(!1),h(null);return}const N=_?.current?.getBoundingClientRect();N&&h(N),t?.(),p(!0)},[d,t]),B=o.useCallback(()=>C(N=>!N),[]);return Vc(e&&d,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[b.current,_.current].map(N=>N?.querySelector("button")??null).find(N=>!!N&&N.getClientRects().length>0)??b.current?.querySelector("button")??null),n.jsxs("div",{className:"pp-bottom",children:[n.jsxs("div",{className:"pp-bottom__left",children:[e?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pp-bottom__settings--desktop",children:n.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(ce,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:D,className:d?"is-selected":void 0,"aria-expanded":d,"aria-haspopup":"dialog",ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),n.jsx("div",{className:"pp-bottom__settings--mobile",children:n.jsx("div",{ref:_,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(ce,{htmlType:"button",size:56,type:"dot",icon:"settings",onClick:k,className:d?"is-selected":void 0,"aria-expanded":d,"aria-haspopup":"dialog",ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&n.jsx(ce,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:B,selected:g,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&g&&n.jsxs("div",{className:"pp-bottom__meters",children:[n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),n.jsx(so,{analyser:f?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),n.jsx(so,{analyser:f?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),n.jsxs("div",{className:"pp-bottom__right",children:[v&&n.jsx(ce,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!A}),x&&n.jsx(ce,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!A})]}),e&&d&&n.jsx(Kc,{anchorRect:m,onClose:w})]})}function Zc({title:e,subtitle:t,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:m,onClose:h}){const{t:g}=fe.useTranslation(),C=en("(max-width: 767px)"),b=Number.isInteger(p)?p:c||0,_=Number.isInteger(d)?d:u||0,f=m||h,y=Array.isArray(r)?C?r[r.length-1]:r.join(" / "):r,x=typeof e=="string"?e.trim():e,v=typeof t=="string"?t.trim():t,A=!!(x||v),w=A?x||v:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),D=y||(x?t:void 0),k=C&&typeof D=="string"&&(D.includes(" \xB7 ")||D.includes(" / "))?D.split(/\s[·/]\s/).pop():D,B=o.useMemo(()=>{const N=i&&typeof i=="object"?{...i}:{};return!("width"in N)&&!("height"in N)&&(N.width="40px",N.height="40px"),N},[i]);return n.jsxs("header",{className:"pp-title training-popup-title",children:[n.jsxs("div",{className:"pp-title__left",children:[f?n.jsx(ce,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:f,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,n.jsx("div",{children:s?n.jsx(Xl,{icon:s,label:e,tooltip:l,wrapperStyle:B}):null}),n.jsxs("div",{className:"pp-title__text",children:[k?n.jsx("span",{className:"pp-title__depth caption-1",children:k}):null,n.jsx("span",{className:`pp-title__title h2${A?"":" pp-title__title--empty"}`,children:w}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(Gl,{max:Math.max(0,_??0),index:Math.max(0,b??0)})]})}function V5(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function H5(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)]}const Xc=(e,t)=>{if(!t)return t;const a=typeof wt?.t=="function"?wt.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function Jc(e,t,a){const r=e,s=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=oi().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:s,label:r?.title||s,depth:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?Xc(`topic.${i.key}`,i.label):void 0,l?Xc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Po(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function z5(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function W5({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:c}){const u=Jc(t,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=t?.id||t?.title||s.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:s,emptyMessage:i,buildResults:l}}function q5(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function U5(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 G5(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 Qc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function K5(e,t,a,r){return Qc(e,t*a+r)}function Y5({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const s=e;if(Array.isArray(s.selectedValues))return r.every(i=>s.selectedValues.includes(i))&&s.selectedValues.every(i=>r.includes(i));if(typeof s.correct=="boolean")return s.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[t]));if(typeof t<"u")return r.some(s=>String(s)===String(t))}}function Z5(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 eu=o.createContext(null);function X5(){const e=o.useContext(eu);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function J5({index:e,stepIndex:t,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:c}=fe.useTranslation(),u=typeof e=="number"?e:-1,d=typeof t!="number"?"disabled":u<t?"done":u===t?"active":"disabled",[p,m]=o.useState(()=>s.map(()=>null)),h=JSON.stringify(s),g=s.length;o.useEffect(()=>{m(Array.from({length:g},()=>null))},[h]);const C=o.useRef(void 0);o.useEffect(()=>{const y=C.current;typeof y=="number"&&typeof t=="number"&&typeof e=="number"&&y>=e&&t<e&&m(Array.from({length:g},()=>null)),C.current=t},[t,e,g]);const b=o.useMemo(()=>p.filter(y=>y!==null).length+1,[p]),_=o.useCallback(y=>{if(d!=="active")return;const x=p;let v;if(x[y]!=null){const w=x[y];v=x.map(D=>D!==null&&D>=w?null:D)}else v=[...x],v[y]=b;m(v);const A={selectedOrder:v,words:s,__ts:Date.now()};try{typeof l=="function"&&l(A)}catch{}if(x[y]==null&&v.length>0&&v.every(w=>w!==null))try{typeof i=="function"&&i(A)}catch{}},[d,p,b,l,i,s]),f=r??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(Hn,{index:e,stepIndex:t,isLast:a,title:f,onDone:i,children:n.jsx("div",{className:"training-step__cards",children:s.map((y,x)=>n.jsx(ho,{item:{word:y},disabled:d==="disabled",selectable:!0,selected:p[x]!==null,orderRank:p[x],onSelect:()=>_(x),flipDelay:x*120,hideLabel:!1,hideAudio:!0},`${y}-${x}`))})})}function sr(e){return null}sr.__isTrainingPage=!0;function ia(e,t){const a=X5();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 tu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=ia(e,t);return n.jsx(Mo,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function nu({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(To,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function au({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(jo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function ru({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(Lo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function ou({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(Wc,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function Q5({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:c}=ia(e,t);return n.jsx(J5,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:c})}function Io(...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 s of r){if(typeof s=="string"&&s.trim().length)return s.trim();if(typeof s=="number"||typeof s=="boolean")return String(s)}}}return null}function e3(e){return Io(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function su(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=Io(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 iu(e){const{score:t,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:c=!1,pending:u=!1}=e||{},{t:d}=fe.useTranslation(),p=o.useId(),m=o.useCallback(()=>!u,[u]);o.useEffect(()=>{const y=a??0;if(t!=null&&y>0&&t/y>.5){const x=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(x)}},[t,a]);const h=o.useCallback(y=>{const x=su(y),v=Io(y?.wording,y?.label);return x===!0?{variant:"main",label:v??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:x===!1?{variant:"danger",label:v??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:v??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),g=a??0,C=t??0,b=o.useMemo(()=>Array.isArray(r)?r:[],[r]),_=o.useMemo(()=>b.map(y=>{const x=y??{},v=e3(x)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:A,label:w}=h(x),D=Array.isArray(x.corrects)?x.corrects:[],k=D.length?D.join(", "):x.answer!=null&&x.answer!==""?String(x.answer):null,B=typeof x.selectedText=="string"?x.selectedText:null,N=su(x)===!0;return{problem:v,variant:A,label:w,answer:k,selectedText:B,isCorrect:N}}),[b,h,d]),f=o.useMemo(()=>_.some(y=>y.answer!==null||y.selectedText!==null),[_]);return n.jsx(Dn,{onClose:l,closeOnBackdrop:!1,inline:c,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:m,footerClassName:"trp-result__foot",footer:({animateThen:y,closeWithAnimation:x})=>n.jsxs(n.Fragment,{children:[u&&n.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsxs("div",{className:"trp-actions",children:[n.jsx(ce,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>y(i)}),n.jsx(ce,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:x,disabled:u,onDisabledClick:u?()=>{}:void 0,"aria-describedby":u?p:void 0})]})]}),children:()=>n.jsxs("div",{className:"trp-result is-on",children:[n.jsxs("header",{className:"trp-result__head",children:[n.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&n.jsx("p",{className:"trp-result__subtitle body-3",children:s}),n.jsx("div",{className:"trp-score",children:n.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:C,total:g}),children:[n.jsx("span",{className:"trp-score__big",children:C}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:g})]})})]}),_.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${f?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[n.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[n.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),f&&n.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),n.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),_.map((y,x)=>n.jsxs("div",{className:"result-table__row",role:"row",children:[n.jsxs("div",{className:"trp-row__problem",children:[n.jsx("span",{className:"trp-row__no caption-1",children:String(x+1).padStart(2,"0")}),n.jsx("div",{className:"trp-row__q body-2",children:y.problem})]}),f&&n.jsxs("div",{className:"trp-row__answers",children:[y.answer!==null&&n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),n.jsx("span",{className:"trp-row__answer-value body-2",children:y.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${y.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${y.isCorrect?"is-correct":"is-wrong"}`,children:y.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx(pt,{variant:y.variant,label:y.label,fill:"soft",minWidth:80})})]},x))]})})]})})}function t3(e){o.useEffect(()=>{if(!e)return;const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const p=Date.now();a==null&&(a=p),r==null&&(r=p)},c=()=>{r!=null&&(s+=Date.now()-r,r=null)};t()&&l();const u=()=>{if(c(),a==null||s-i<1e3||i===0&&s<5e3)return;const p=a+i;i=s,p2({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+s).toISOString()})},d=()=>{t()?l():u()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",u),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",u),u()}},[e])}function Fo(e,t){return e&&e.id||`page-${t??0}`}function Oo(e,t){return e&&e.key||`step-${t??0}`}function ir(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function n3(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const a3=300,r3=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},En=Object.freeze({}),lu=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function cu(e){const t=e,a=t?.results||t?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,s=Array.isArray(a)?a.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:a,correct:r!=null?s:null,total:r}}const o3=e=>n.jsx(iu,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function s3(e){const{scenario:t,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:m,onBack:h,onComplete:g,onNext:C,onSettings:b,useNoiseSetting:_=!0,children:f,ariaLabel:y,label:x,buildResults:v,onResult:A,typeKey:w,entryPoint:D,dailyTotal:k,itemRef:B,renderResultPopup:N,noiseOverride:M}=e;t3(w&&!lu.has(w)?w:"");const P=o.useRef(0);o.useEffect(()=>{P.current=Date.now()},[]);const{t:$}=fe.useTranslation(),W=A,S=!!t,F=t?.id||null,Y=t?.meta||{},G=Array.isArray(t?.pages)?t.pages:[],q=Array.isArray(f)||o.isValidElement(f)&&typeof f!="function"?o.Children.toArray(f).filter(o.isValidElement):[],H=q.length>0,z=ne=>ne===sr||ne?.__isTrainingPage===!0,Z=H&&q.some(ne=>z(ne.type)),I=Z?q.filter(ne=>z(ne.type)).map((ne,pe)=>{const V=ne.props||{};return{id:`children-page-${pe}`,steps:o.Children.toArray(V.children).filter(o.isValidElement),pageTop:V.pageTop||V.top||null,pageBottom:V.pageBottom||V.bottom||null}}):[{id:"children-page-0",steps:q}],T=H&&!S&&typeof f!="function",O=T?Math.max(1,I.length):0;o.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")}},[]),o.useEffect(()=>{if(typeof document>"u"||!document.body)return;const ne=document.body;return ne.dataset.ihabTrainingPopupCount=String(Number(ne.dataset.ihabTrainingPopupCount||"0")+1),ne.classList.add("ihab-training-popup-open"),()=>{const pe=Number(ne.dataset.ihabTrainingPopupCount||"1")-1;pe>0?ne.dataset.ihabTrainingPopupCount=String(pe):(delete ne.dataset.ihabTrainingPopupCount,ne.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return r4()},[]);const[R,j]=o.useState({...Ea,enabled:!1}),L=o.useRef(R);o.useEffect(()=>{L.current=R},[R]);const Q=o.useRef(M),J=o.useRef(!1),oe=o.useRef(null);o.useEffect(()=>{let ne=!1;const pe=V=>{if(ne)return;J.current=!0;const re=V?Sa({...Ea,enabled:!1},V):{...Ea},le=oe.current;oe.current=null;const ye=le?Sa(re,le):re;L.current=ye,j(ye),le&&!Q.current&&Qs(ye),Ia(ye);const ve=Q.current;if(ve){const je=typeof ve=="function"?ve(ye):ve,nt=Sa(ye,je);L.current=nt,j(nt),Ia(nt)}};return C2().then(pe),()=>{ne=!0}},[]);const[ge,Me]=o.useState(null),[Ne,ie]=o.useState(null),U=o.useCallback((ne,pe)=>{ne==="main"?Me(pe):ie(pe)},[]),se=o.useRef(null),me=o.useRef(null),_e=o.useCallback(()=>{me.current!==null&&(clearTimeout(me.current),me.current=null);const ne=se.current;se.current=null,ne&&Qs(ne)},[]);o.useEffect(()=>{if(typeof window>"u")return;const ne=()=>{document.visibilityState==="hidden"&&_e()};return window.addEventListener("pagehide",_e),document.addEventListener("visibilitychange",ne),()=>{window.removeEventListener("pagehide",_e),document.removeEventListener("visibilitychange",ne),_e()}},[_e]);const we=o.useCallback(ne=>{const pe=Sa(L.current,ne);if(L.current=pe,j(pe),!J.current){oe.current={...oe.current??{},...ne},Ia(pe);return}Q.current||(se.current=pe,me.current!==null&&clearTimeout(me.current),me.current=setTimeout(_e,a3)),Ia(pe)},[_e]),De=R.mainSpeed,xe=R.mainVolume,Ae=o.useCallback(ne=>we({mainSpeed:ne}),[we]),Te=o.useCallback(ne=>we({mainVolume:ne}),[we]),ae=o.useMemo(()=>({settings:R,setSettings:we,registerAnalyser:U,mainAnalyser:ge,noiseAnalyser:Ne,playbackRate:De,setPlaybackRate:Ae,mainVolume:xe,setMainVolume:Te}),[R,we,U,ge,Ne,De,Ae,xe,Te]),ee=o.useRef(null),[de,te]=o.useState(0),he=o.useRef([]),[be,Ye]=o.useState("center"),[Ve,qe]=o.useState(!1),Se=o.useRef(!1),Ue=o.useRef(null),$e=o.useCallback(ne=>{Se.current||(Se.current=!0,qe(!0),Ue.current=setTimeout(()=>{try{ne()}catch{Se.current=!1,qe(!1)}},r3()?0:j5))},[]);o.useEffect(()=>()=>{Ue.current&&clearTimeout(Ue.current)},[]);const Ie=o.useRef(h);o.useEffect(()=>{Ie.current=h}),o.useEffect(()=>{const ne=ee.current,pe=document.activeElement;if(Ir(ne,pe),ne){const V=Array.from(ne.querySelectorAll(hn)).filter(re=>!re.closest('[aria-hidden="true"]'))[0];if(V)try{V.focus()}catch{}}return()=>{const V=document.activeElement;if(!V||V===document.body||ne&&ne.contains(V))try{Fr(pe)?.focus?.()}catch{}}},[]),o.useEffect(()=>Rn(()=>$e(()=>{const ne=Ie.current;typeof ne=="function"&&ne()})),[$e]),Rr(ee,!0);const[He,at]=o.useState(!1),ot=o.useRef(!1),[We,Xe]=o.useState(null),Ct=o.useRef(0),At=()=>{Ct.current+=1,Xe(null)},[Et,ut]=o.useState(""),[Qe,Ze]=o.useState(()=>ir()),Oe=o.useRef(typeof u=="number"?u:null);o.useEffect(()=>{!S&&!T||(Ze(ir()),At())},[S,F,T]),o.useEffect(()=>{T&&Ze(ne=>{const pe=Math.max(0,Math.min(ne.pageIndex,Math.max(0,O-1)));return pe!==ne.pageIndex?{...ne,pageIndex:pe,stepIndex:0}:ne})},[T,O]);const rt=T?Math.max(0,Math.min(Qe.pageIndex,O-1)):0,et=T?I[rt]:null,bt=T&&et&&Array.isArray(et.steps)?et.steps:[],ze=S?Qe.pageIndex:T?rt:typeof u=="number"?u:0,it=S?G[Math.max(0,Math.min(Qe.pageIndex,Math.max(0,G.length-1)))]:null,Bt=S&&it&&Array.isArray(it.steps)?it.steps:[],Nt=S?Bt.length:T?bt.length:typeof m=="number"?m:0,Le=S||T?Math.max(0,Math.min(Qe.stepIndex,Math.max(0,Nt))):typeof p=="number"?p:0,Ke=S?G.length:T?O:typeof d=="number"?d:0;o.useLayoutEffect(()=>{const ne=Oe.current;if(typeof ze=="number"&&ne!==null&&ze!==ne&&ze>ne)try{ut($("training.problemNotice",{n:ze+1}))}catch{}Oe.current=typeof ze=="number"?ze:Oe.current},[ze,u,$]),o.useLayoutEffect(()=>{const ne=ee.current;if(!ne)return;const pe=()=>ne.querySelector(".page-popup__scroll");let V=null,re=null,le=null;const ye=lt=>{const _t=pe();if(!_t)return;const zt=_t.scrollHeight<=_t.clientHeight;if(Ye(zt?"center":"top"),lt&&!ot.current){ot.current=!0;try{at(!0)}catch{}try{nt.disconnect()}catch{}}},ve=()=>{V!==null&&cancelAnimationFrame(V),V=requestAnimationFrame(()=>{re!==null&&clearTimeout(re),re=setTimeout(()=>ye(!0),60)})},je=()=>{le!==null&&cancelAnimationFrame(le),le=requestAnimationFrame(()=>ye(!1))};ve(),window.addEventListener("resize",je);const nt=new MutationObserver(ve);nt.observe(ne,{childList:!0,subtree:!0,attributes:!0});const ht=setTimeout(()=>{ot.current||ye(!0)},400);return()=>{window.removeEventListener("resize",je),V!==null&&cancelAnimationFrame(V),re!==null&&clearTimeout(re),le!==null&&cancelAnimationFrame(le),clearTimeout(ht);try{nt.disconnect()}catch{}}},[ee]);const Dt=o.useCallback(ne=>{ee.current&&(ee.current._childOnNext=ne)},[]),vt=o.useCallback(ne=>{ee.current&&(ee.current._childOnResult=ne)},[]),Tt=o.useCallback((ne,pe,V)=>{Ze(re=>{const le=re.answersByPage[ne]||{},ye=le[pe],ve=Po(V),je=Po(ye);return ye&&je>ve?re:{...re,answersByPage:{...re.answersByPage,[ne]:{...le,[pe]:V}}}})},[Ze]),on=o.useCallback((ne,pe,V)=>{const re=Fo(it,ze),le=Oo(ne,pe);Tt(re,le,V)},[it,ze,Tt]),tt=o.useCallback((ne,pe,V)=>{const re=Fo(it,ze),le=Oo(ne,pe);Tt(re,le,V),!V?.allowChange&&ne?.autoAdvance!==!1&&Ze(ye=>({...ye,stepIndex:Math.max(ye.stepIndex,pe+1)}))},[it,ze,Tt,Ze]),Gt=o.useCallback((ne,pe)=>{const V=et?.id||`children-page-${ze??0}`,re=typeof pe=="number"?pe:Le??0,le=`step-${re}`;Tt(V,le,ne),ne?.allowChange||Ze(ye=>({...ye,stepIndex:Math.max(ye.stepIndex,re+1)}))},[et,ze,Le,Tt,Ze]),vn=o.useCallback((ne,pe)=>{const V=et?.id||`children-page-${ze??0}`,re=`step-${typeof pe=="number"?pe:Le??0}`;Tt(V,re,ne)},[et,ze,Le,Tt]),xt=T?{currentPageIndex:ze??0,currentStepIndex:Le??0,totalStepsInPage:bt.length,handleStepDone:Gt,handleStepChange:vn}:null,Ht=async()=>{const ne=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:G,flowState:Qe,answersByPage:Qe.answersByPage})):null;return typeof W=="function"&&await Promise.resolve(W(ne))||ne},Xt=async()=>{const ne=et?.id||`children-page-${Qe.pageIndex}`,pe=Qe.answersByPage[ne]||{},V=Z?(()=>{const ye={};let ve=0;return I.forEach(je=>{const nt=Qe.answersByPage[je.id]||{},ht=Array.isArray(je.steps)?je.steps.length:0;for(let lt=0;lt<ht;lt+=1){const _t=nt[`step-${lt}`];typeof _t<"u"&&(ye[`step-${ve+lt}`]=_t)}ve+=ht}),ye})():pe;if(typeof v=="function"){const ye=await Promise.resolve(v(V,{pageAnswers:pe,answersByPage:Qe.answersByPage,pages:I,currentPageId:ne}));return typeof W=="function"&&await Promise.resolve(W(ye))||ye}const re=Object.entries(pe).map(([ye,ve],je)=>({index:je,key:ye,payload:ve})),le={results:re,answers:re,score:0};return typeof W=="function"&&await Promise.resolve(W(le))||le},an=()=>{const ne=++Ct.current,pe=()=>ne!==Ct.current;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(S){const le=Ht();Xe(En);const ye=le;Promise.resolve(ye).then(ve=>{pe()||Xe(ve||{isEmpty:!0})}).catch(ve=>{!pe()&&Xe({isEmpty:!0})});return}if(T){const le=Xt();Xe(En);const ye=le;Promise.resolve(ye).then(ve=>{pe()||Xe(ve||{isEmpty:!0})}).catch(ve=>{!pe()&&Xe({isEmpty:!0})});return}const V=ee.current&&ee.current._childOnResult,re=le=>{try{return le?le():void 0}catch{return}};if(typeof V=="function"){const le=re(V);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:mn&&mn.tagName.toUpperCase()==="SCRIPT"&&mn.src||new URL("components.cjs.js",document.baseURI).href}catch{}le&&typeof le.then!="function"?Xe(le):Xe(le&&typeof le.then=="function"?En:{});const ye=()=>{pe()||Xe(ve=>ve===En?{}:ve)};Promise.resolve(le).then(ve=>{ve&&!pe()?Xe(ve):ye()}).catch(ve=>{ye()});return}if(typeof W=="function"){const le=re(W);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:mn&&mn.tagName.toUpperCase()==="SCRIPT"&&mn.src||new URL("components.cjs.js",document.baseURI).href}catch{}le&&typeof le.then!="function"?Xe(le):Xe(le&&typeof le.then=="function"?En:{});const ye=()=>{pe()||Xe(ve=>ve===En?{}:ve)};Promise.resolve(le).then(ve=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:mn&&mn.tagName.toUpperCase()==="SCRIPT"&&mn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ve&&!pe()?Xe(ve):ye()}).catch(ve=>{console.error("viewResults external handler failed",ve),ye()});return}},sn=()=>{if(S){if(typeof ze=="number"&&typeof Ke=="number"&&ze<Ke-1){Ze(pe=>({...pe,pageIndex:pe.pageIndex+1,stepIndex:0}));return}return an()}if(T){const pe=bt.length;if(typeof Le=="number"&&Le<pe-1){Ze(V=>({...V,stepIndex:V.stepIndex+1}));return}if(typeof ze=="number"&&typeof Ke=="number"&&ze<Ke-1){Ze(V=>({...V,pageIndex:V.pageIndex+1,stepIndex:0}));return}return an()}if(typeof C=="function"){try{C()}catch{}return}const ne=ee.current&&ee.current._childOnNext;if(typeof ne=="function"){try{ne()}catch{}return}},Jt=S?Y.title||Y.label||y||$("common.popup","\uD31D\uC5C5"):a||x||(Array.isArray(s)?s[s.length-1]:void 0)||y||$("common.popup","\uD31D\uC5C5"),xn=y||Jt,Kt=S?Y.title??Y.label??Jt:a??x??Jt,mt=(ne,pe)=>{const V=Fo(it,ze),re=Oo(ne,pe),le=Qe.answersByPage[V]?.[re],ye=n3(ne,{page:it,pageIndex:ze,step:ne,stepIndex:pe,storedPayload:le,answersByPage:Qe.answersByPage,flowState:Qe}),ve={key:re,index:pe,stepIndex:Le,isLast:pe===Bt.length-1};switch(ne?.type){case"listen":return n.jsx(Mo,{...ve,...ye,onDone:je=>tt(ne,pe,je)});case"confirm":return n.jsx(To,{...ve,...ye,onDone:je=>tt(ne,pe,je),onChange:je=>on(ne,pe,je)});case"confirmWithText":return n.jsx(jo,{...ve,...ye,onDone:je=>tt(ne,pe,je),onChange:je=>on(ne,pe,je)});case"orderList":return n.jsx(Lo,{...ve,...ye,onDone:je=>tt(ne,pe,je),onChange:je=>on(ne,pe,je)});default:return null}},ln=o.useRef(void 0);o.useEffect(()=>{const ne=ln.current;if(ln.current=ze,ne===void 0||ne===ze||!Ja())return;const pe=ee.current;if(!pe)return;const V=document.activeElement;if(!(!V||V===document.body||!pe.contains(V)||V.disabled===!0))return;const re=pe.querySelector(`.training-steps ${hn.split(", ").join(", .training-steps ")}`)??Array.from(pe.querySelectorAll(hn)).find(le=>!le.closest('[aria-hidden="true"]'));try{re?.focus()}catch{}},[ze]);const Yt=S?G.length>0?n.jsx("div",{className:"training-steps",children:Bt.map((ne,pe)=>mt(ne,pe))},`replay-${de}`):n.jsx("div",{className:"page-popup__content page-popup__content--center",children:n.jsx("div",{className:"pp-empty",children:t?.emptyMessage||$("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,jt=T?n.jsxs(eu.Provider,{value:xt,children:[et?.pageTop?n.jsx("div",{className:"training-page-top",children:et.pageTop}):null,n.jsx("div",{className:"training-steps",children:bt.map((ne,pe)=>{const V=ne;return o.cloneElement(V,{...V.props,_stepIndex:pe,_totalSteps:bt.length,_stepKey:`step-${pe}`,_pageIndex:ze})})},`replay-${de}`),et?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:et.pageBottom}):null]}):null,cn=o.useCallback(()=>{let ne;if(w){const pe=We,{results:V,correct:re,total:le}=cu(We);m2({items:f2(V),category:lu.has(w)?"sentence":"word",trainingType:w,entryPoint:D??"sentence",itemRef:B??null,correct:re,total:le,score:typeof pe?.score=="number"?pe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-P.current)/1e3)),dailyTotal:k??null}),ne={correct:re,total:le,attempt:he.current.length+1,previousAttempts:[...he.current]}}At(),$e(()=>{typeof g=="function"&&g(ne),typeof h=="function"&&h()})},[g,h,w,D,k,B,We,Xe,$e]),Zt=o.useCallback(()=>ut(""),[ut]),un=o.useCallback(()=>{$e(()=>{typeof h=="function"&&h()})},[h,$e]),ke=n.jsxs("div",{className:`page-popup${Ve?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":xn,children:[n.jsxs("div",{ref:ee,className:`page-popup__panel ${He?"":"page-popup__panel--measuring"} ${be==="center"?"page-popup__panel--center":be==="top"?"page-popup__panel--top":""}`,children:[n.jsx(Zc,{title:Kt,subtitle:S?Y.subtitle||Y.label:Array.isArray(s)?s.join(" / "):void 0,desc:S?void 0:r,depth:S?Y.depth:s,icon:S?Y.icon:i,wrapperStyle:S?Y.wrapperStyle:l,iconTooltip:S?Y.iconTooltip:c,progressMax:Ke,progressIndex:ze,pageIndex:ze,pageCount:Ke,onBack:un,onClose:un}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${be==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:T?jt:S?Yt:typeof f=="function"?f({registerOnNext:Dt,registerOnResult:vt,panelRef:ee,setResultOverlay:Xe}):f})}),n.jsx(Yc,{onSettings:b,onNext:sn,onResult:an,useNoiseSettingBtn:!!(S?Y.useNoiseSetting??!0:_),stepIndex:Le,stepCount:Nt,pageIndex:ze,pageCount:Ke})]}),We&&!We.isEmpty&&(N??o3)({score:We.score,results:We.results||We.answers||[],contextsLength:We.results?We.results.length:We.answers?We.answers.length:0,onReplay:()=>{if(P.current=Date.now(),We!==En){const{correct:ne,total:pe}=cu(We);he.current.push({correct:ne,total:pe})}if(At(),te(ne=>ne+1),S){if(Ze(ir()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(T){Ze(ir());return}try{const ne=ee.current&&ee.current._childOnResult;typeof ne=="function"&&ne({replay:!0})}catch{}},onClose:cn,pending:We===En}),We?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":$("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:n.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:"page-popup__content page-popup__content--center",children:n.jsx("div",{className:"page-popup__empty",children:$("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),n.jsx("div",{className:"page-popup__bottom",children:n.jsx(ce,{htmlType:"button",variant:"main",size:48,onClick:cn,label:$("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(ea,{message:Et,position:"top",onClose:Zt})]}),Pe=n.jsx(Ao.Provider,{value:ae,children:ke});return typeof document<"u"&&document.body?Wt.createPortal(Pe,document.body):Pe}const Tn=s3;Tn.Page=sr,Tn.ListenStep=tu,Tn.ConfirmStep=nu,Tn.ConfirmWithTextStep=au,Tn.OrderListStep=ru,Tn.CardStep=ou,Tn.CardOrderStep=Q5;function i3({label:e,homonum:t}){const a=Un()?.(e,t)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:c}=mo(a);return i?n.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&n.jsx("div",{className:"tooltip-word-image__spinner"}),n.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?0:1},onLoad:l,onError:c})]}):n.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:n.jsx("span",{children:e})})}function uu({words:e,anchorRect:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,c=window.innerWidth;let u=t.left+t.width/2-i/2,d=t.top-l-8;d<8&&(d=t.bottom+8),u=Math.max(8,Math.min(u,c-i-8)),s({left:u,top:d})},[t]),!t||e.length===0?null:Wt.createPortal(n.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:n.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>n.jsx(i3,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const l3=new Intl.Collator("ko");function c3({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:m,className:h,emptyHint:g,sectionType:C="page",disc:b,notice:_}){const{t:f,i18n:y}=fe.useTranslation(),x=y.language?.startsWith("ko")??!1,{anchorRect:v,openAt:A,close:w}=za(),[D,k]=o.useState(null),B=o.useCallback(()=>{w(),k(null)},[w]);qg(B,!!D);const N=(r??"").trim(),M=/^[^,[\]\s]+$/.test(N)?N:"",P=M.length>0,$=r===void 0&&t===void 0,W=P?"match":$?"original":"ganada",[S,F]=o.useState(()=>W),[Y,G]=o.useState("50"),[q,H]=o.useState(1),[z,Z]=o.useState(P);z!==P&&(Z(P),F(W));const I=S==="match"&&!P||S==="original"&&!$?W:S,T=o.useMemo(()=>[...P?[{value:"match",label:f("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...$?[{value:"original",label:f("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:f("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:f("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:f("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:f("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:f("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:f("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[f,P,$]),O=o.useMemo(()=>["10","25","50","100"].map(xe=>({value:xe,label:f("wordSearch.pageSize",{count:Number(xe),defaultValue:`${xe}\uAC1C\uC529 \uBCF4\uAE30`})})),[f]),R=xe=>xe.words?.[0],j=o.useMemo(()=>{const xe=[...M].length,Ae=X0(M),Te=new Map;return ae=>{let ee=Te.get(ae);return ee===void 0&&(ee=Ae((ae.words?.[0]?.label??"").slice(0,xe))?0:1,Te.set(ae,ee)),ee}},[M]),L=o.useCallback((xe,Ae)=>{const Te=de=>R(de)?.label??"",ae=de=>R(de)?.syllables??[...Te(de)].length,ee=de=>(de.words??[]).reduce((te,he)=>{const be=parseInt(he.grade??"",10);return Number.isFinite(be)&&be<te?be:te},999);switch(I){case"match":return j(xe)-j(Ae)||l3.compare(Te(xe),Te(Ae));case"ganada":return Te(xe).localeCompare(Te(Ae),"ko");case"ganada_desc":return Te(Ae).localeCompare(Te(xe),"ko");case"syllable":return ae(xe)-ae(Ae)||Te(xe).localeCompare(Te(Ae),"ko");case"syllable_desc":return ae(Ae)-ae(xe)||Te(xe).localeCompare(Te(Ae),"ko");case"grade":return ee(xe)-ee(Ae)||Te(xe).localeCompare(Te(Ae),"ko");case"grade_desc":return ee(Ae)-ee(xe)||Te(xe).localeCompare(Te(Ae),"ko");default:return 0}},[I,j]),Q=o.useMemo(()=>s.slice().sort(L),[s,L]),J=Number(Y)||10,oe=o.useMemo(()=>(i??[]).flatMap(xe=>xe.items.slice().sort(L).map(Ae=>({item:Ae,label:xe.label}))),[i,L]),ge=i?oe.length:Q.length,Me=Math.max(1,Math.ceil(ge/J)),Ne=Math.min(q,Me),ie=o.useMemo(()=>Q.slice((Ne-1)*J,Ne*J),[Q,Ne,J]),U=o.useMemo(()=>{if(!i)return null;const xe=oe.slice((Ne-1)*J,Ne*J),Ae=new Map;for(const{item:Te,label:ae}of xe)Ae.has(ae)||Ae.set(ae,[]),Ae.get(ae).push(Te);return[...Ae.entries()].map(([Te,ae])=>({label:Te,items:ae}))},[i,oe,Ne,J]);o.useEffect(()=>{H(1)},[S,Y,ge,r]);const se=ge>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(tn,{size:40,options:T,value:I,onChange:F,ariaLabel:f("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(tn,{size:40,options:O,value:Y,onChange:G,ariaLabel:f("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(Ua,{page:Ne,totalPages:Me,onChange:H})]}):void 0,me=xe=>{c&&c(xe)},_e=t!==void 0&&a?n.jsxs(n.Fragment,{children:[f("wordSearch.resultTitlePrefix","\uCD1D "),n.jsx("span",{style:{color:"var(--color-main)"},children:t}),f("wordSearch.resultTitleSuffix",{unit:x?s2(a):a})]}):void 0,we=t!==void 0&&t>0&&u!==void 0&&a?f("wordSearch.resultDisc",{unit:x?l2(a):a,max:u,selected:l.length}):void 0,De=b??(_?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"word-search-result-block__notice",children:_}),we?n.jsx("span",{className:"word-search-result-block__disc",children:we}):null]}):we);return n.jsxs(na,{type:C,icon:e,title:_e,action:se,disc:De,className:Be("word-search-result-block",h),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:s.length===0)&&n.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[n.jsx("p",{className:"word-search-result-block__empty body-3",children:f("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(U??[]).map(xe=>n.jsx("div",{className:"word-search-result-block__group",children:n.jsx("div",{className:"word-search-result-block__items",children:xe.items.map(Ae=>{const Te=l.includes(Ae.id);return n.jsx("div",{onMouseEnter:ae=>{A(ae.currentTarget),k(Ae.words??[])},onMouseLeave:B,children:n.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:(Ae.words??[]).map(ae=>ae.label),subLabel:(Ae.words??[]).some(ae=>ae.subLabel)?(Ae.words??[]).map(ae=>ae.subLabel):void 0,selected:Te,onClick:()=>me(Ae.id),minWidth:200})},Ae.id)})})},xe.label)):n.jsx("div",{className:"word-search-result-block__items",children:ie.map(xe=>{const Ae=l.includes(xe.id);return n.jsx("div",{onMouseEnter:Te=>{A(Te.currentTarget),k(xe.words??[])},onMouseLeave:B,children:n.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:(xe.words??[]).map(Te=>Te.label),subLabel:(xe.words??[]).some(Te=>Te.subLabel)?(xe.words??[]).map(Te=>Te.subLabel):void 0,selected:Ae,onClick:()=>me(xe.id),minWidth:200})},xe.id)})}),D&&v&&n.jsx(uu,{words:D,anchorRect:v})]}),Me>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(Ua,{page:Ne,totalPages:Me,onChange:H})}),(d||p)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[d&&n.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:f("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),p&&n.jsx("div",{onClick:l.length===0?m:void 0,children:n.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:f("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function u3(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,s=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:s}})}function d3({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:m,titleIcon:h,disc:g,showInfoButton:C=!0,onClearPhoneme:b,onSearch:_,onSearchEmpty:f,searchDisabled:y=!1,searchLabel:x,searchChecking:v=!1,pairMode:A=!1,sectionType:w="page",beforeSearchContent:D,beforeContent:k,afterContent:B,hideCountControl:N=!1,ordinal:M=!1}){const{t:P}=fe.useTranslation(),$=o.useMemo(()=>P("wordPairs.infoNotes",{returnObjects:!0}),[P]),W=o.useMemo(()=>Array.from({length:s-i+1},(R,j)=>{const L=i+j;return{key:String(L),label:P("wordPairs.count",{n:L})}}),[P,s,i]),S=o.useMemo(()=>P("wordPairs.ordinals",{returnObjects:!0}),[P]),F=o.useCallback(R=>M?P("wordPairs.phonemeOrdinalLabel",{ordinal:S[R-1]??R}):a===1?P("wordPairs.phonemeSingleLabel","\uC74C\uC808"):P("wordPairs.phonemeN",{n:R}),[M,S,a,P]),Y=o.useCallback(R=>M?P("wordPairs.phonemeContrastOrdinalLabel",{ordinal:S[R-1]??R}):a===1?P("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):P("wordPairs.phonemeContrast",{n:R}),[M,S,a,P]),G=o.useCallback((R,j)=>j?n.jsxs(n.Fragment,{children:[R,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):R,[]),{anchorRect:q,toggleAt:H,close:z}=za(),Z=o.useCallback(R=>r(Number(R)),[r]),I=en("(max-width: 767px)"),T=o.useCallback(R=>u3(R,e).map(({label:j,value:L,displayLabel:Q})=>{const J=!!L&&L!=="\uC5C6\uC74C";return n.jsxs("span",{className:Be("phoneme-select-block__cell-jamo-part",L?"":"phoneme-select-block__cell-jamo-part--empty",J?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${L==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:L==="\uC5C6\uC74C"?"x":L||d}),J&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Q??j})]},j)}),[e,d]),O=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(ce,{htmlType:"button",size:40,type:I?"dot":void 0,icon:"info",label:I?void 0:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:q?"is-selected":void 0,"aria-expanded":!!q,"aria-haspopup":"dialog",onClick:R=>H(R.currentTarget)})}),q&&n.jsx(Pn,{title:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:$,anchorRect:q,onClose:z})]});return n.jsxs(na,{type:w,title:m,icon:h,disc:g,action:C?O:void 0,className:Be("phoneme-select-block",p),children:[k,!N&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(Vn,{options:W,value:String(a),onChange:Z,size:40,className:"phoneme-select-block__count-control"})}),n.jsx("div",{className:"phoneme-select-block__cells",children:A?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,j)=>{const L=t[j*2]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:T(L)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(j+1)})]},j)})}),n.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:P("wordPairs.phonemeSelect.vs","\uB300")}),n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,j)=>{const L=t[j*2+1]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:T(L)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Y(j+1)})]},j)})})]}):t.map((R,j)=>n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:T(R)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(j+1)})]},j))}),(l||c)&&n.jsx("div",{className:"phoneme-select-block__panels",children:n.jsx("div",{className:"phoneme-select-block__detail",children:A?n.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((R,j)=>{const L=t[j*2]??{};return n.jsx(yn,{title:G(F(j+1),j===0),sections:c?c(L,j*2):l,selected:L,onSelect:u?.(j*2),align:"newline"},j)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((R,j)=>{const L=t[j*2+1]??{};return n.jsx(yn,{title:Y(j+1),sections:c?c(L,j*2+1):l,selected:L,onSelect:u?.(j*2+1),align:"newline"},j)})})]}):t.map((R,j)=>n.jsx(yn,{title:G(F(j+1),j===0),sections:c?c(R,j):l,selected:R,onSelect:u?.(j),align:"newline"},j))})}),D&&n.jsx("div",{className:"phoneme-select-block__before-search",children:D}),(b||_||v)&&(()=>{const R=t.every(j=>Object.entries(j).every(([L,Q])=>!Q||L==="\uC885\uC131"&&Q==="\uC5C6\uC74C"));return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:R?f:void 0,children:[b&&n.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:P("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:R,onClick:R?void 0:b}),_?n.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:v?n.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:x??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:R||y||v,onDisabledClick:v?()=>{}:void 0,"aria-busy":v||void 0,onClick:_}):v?n.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[n.jsx("div",{className:"phoneme-select-block__spinner"}),n.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:x??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),B]})}function p3({title:e,sections:t,selected:a,onSelect:r,className:s}){const{t:i}=fe.useTranslation();return n.jsx(yn,{className:s,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,align:"inline"})}function m3({title:e,headerAction:t,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=fe.useTranslation();return a.length===0?null:n.jsx(yn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:s,align:"newline"})}function h3({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=fe.useTranslation(),m={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=_=>p("wordPairs.count",{n:_}),g=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:n.jsx(wa,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("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."),p("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."),p("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:m.phonemeOrder,items:[m.orderAny,m.orderMatch],display:"segmented",labelAction:n.jsx(wa,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[h(1),h(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:n.jsx(wa,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("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."),p("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.")]})}],C={[m.searchMode]:t==="explicit"?m.explicit:t==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:h(i),[m.inputMode]:c==="phoneme"?m.pronInput:m.charInput},b=(_,f)=>{f===m.searchMode?a(_===m.explicit?"explicit":_===m.pick?"pick":"include"):f===m.phonemeOrder?s(_===m.orderMatch?"ordered":"unordered"):f===m.count?l(_===h(2)?2:1):f===m.inputMode&&u(_===m.pronInput?"phoneme":"word")};return n.jsx(yn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:C,onSelect:b,align:"inline"})}function f3(e){const{title:t,items:a,columns:r,gridTemplateColumns:s,searchPlaceholder:i,searchFn:l,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:p,onSelect:m,onClose:h,pageSizeOptions:g=[10,25,50,100],initialPageSize:C,emptyText:b,countLabel:_,topContent:f,className:y=""}=e,{t:x}=fe.useTranslation(),v=i??x("common.search","\uAC80\uC0C9"),A=b??x("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,D]=o.useState(""),[k,B]=o.useState(c??r[0]?.key??""),[N,M]=o.useState(u),[P,$]=o.useState(String(C??g[0]??10)),[W,S]=o.useState(1);o.useEffect(()=>{S(1)},[w,P]);const F=l!==null,Y=o.useCallback((j,L)=>{if(!L)return!0;const Q=L.toLowerCase();return r.some(J=>{const oe=j[J.key];return oe==null?!1:String(oe).toLowerCase().includes(Q)})},[r]),G=l??Y,q=o.useMemo(()=>{const j=F?a.filter(L=>G(L,w)):a;return k?[...j].sort((L,Q)=>{const J=L[k],oe=Q[k];return J===oe?0:Gr(J,oe,N)}):j},[a,w,k,N,F,G]),H=Math.max(1,Math.ceil(q.length/Number(P)));W>H&&S(H);const z=Math.min(W,H),Z=q.slice((z-1)*Number(P),z*Number(P)),I=o.useCallback(j=>{k===j?M(L=>!L):(B(j),M(!0)),S(1)},[k]),T=o.useMemo(()=>{if(typeof _=="function"){const j=q.length,L=_(j);if(typeof L=="string"){const Q=L.lastIndexOf(String(j));if(Q>=0)return{prefix:L.slice(0,Q),suffix:L.slice(Q+String(j).length)}}return{label:L}}if(typeof _=="string"&&_.includes("{n}")){const[j,L]=_.split("{n}");return{prefix:j,suffix:L}}return{prefix:x("common.totalCountPrefix","\uCD1D "),suffix:x("common.totalCountSuffix","\uAC1C")}},[_,q.length,x]),O=o.useMemo(()=>r.map(j=>({label:j.label,onClick:j.sortable!==!1?()=>I(j.key):void 0,className:j.className,sortDir:j.sortable!==!1&&k===j.key?N?"asc":"desc":null})),[r,k,N,I]),R=o.useMemo(()=>g.map(j=>({value:String(j),label:x("common.pageSizeLabel",{n:j})})),[g,x]);return n.jsxs(Dn,{className:`popup-list ${y}`,title:t,onClose:h,children:[f,"label"in T&&n.jsx("p",{className:"toolbar__count body-1",children:T.label}),n.jsx(to,{count:"label"in T?void 0:{value:q.length,prefix:T.prefix,suffix:T.suffix},search:F?{value:w,onChange:D,placeholder:v}:void 0,pageSize:{options:R,value:P,onChange:$},pagination:{page:z,total:H,onChange:S}}),n.jsx(lo,{size:"medium",gridTemplateColumns:s,resizable:!0,fields:O,items:Z,onRowClick:m,renderRow:j=>{const L=p!=null?j.id!=null&&p.has(j.id):d!=null&&j.id===d;return r.map(Q=>({content:Q.render?Q.render(j):j[Q.key]??"",className:Be(Q.className,L&&"popup-list__row--selected")}))},empty:A})]})}function C3(e){const{title:t,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:g=!0,onClose:C,inline:b,size:_="small",className:f,initialFocus:y="close"}=e,{t:x}=fe.useTranslation(),v=o.useRef(null);o.useEffect(()=>{if(b||y==="close")return;const N=v.current?.closest(".popup-panel"),M=Array.from(N?.querySelectorAll(".popup-footer--buttons button")??[]),P=y==="confirm"?M[M.length-1]:u?void 0:M[d?1:0];P&&!P.disabled&&P.focus()},[]);const A=o.useRef(!1),[w,D]=o.useState(!1),k=N=>{let M=!1;return{close:()=>{M=!0,N()},\uB2EB\uC558\uB098:()=>M}},B=async N=>{if(A.current)return;A.current=!0;const M=typeof document<"u"?document.activeElement:null;D(!0);let P=!1;try{P=await N()}catch($){typeof console<"u"&&console.error($)}finally{P||(A.current=!1,D(!1),requestAnimationFrame(()=>{const $=document.activeElement;(!$||$===document.body)&&M?.isConnected&&M.focus()}))}};return n.jsxs(Dn,{title:t,onClose:C,closeDisabled:w,inline:b,size:_,className:Be("confirm-popup",f),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||w,onClick:async({closeWithAnimation:N})=>{await B(async()=>{const M=k(N);await d.onClick(M.close);const P=d.closeOnClick??!0;return P&&N(),P||M.\uB2EB\uC558\uB098()})}}]:[],...u?[]:[{label:c??x("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:w,onClick:({closeWithAnimation:N})=>N()}],{label:l??x("common.confirm","\uD655\uC778"),variant:p,disabled:m||w,onClick:async({closeWithAnimation:N})=>{await B(async()=>{const M=k(N);return await h(M.close),g&&N(),g||M.\uB2EB\uC558\uB098()})}}],children:[r!=null&&n.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&n.jsx(or,{children:s.map((N,M)=>n.jsx(Sn,{label:N.label,children:n.jsx("span",{className:"panel-row__text body-2",children:N.value})},M))}),n.jsx("p",{ref:v,className:"body-2 confirm-popup__message",children:a}),i]})}function g3({onApply:e,onCancel:t}){const{t:a}=fe.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[c,u]=o.useState(null),d=o.useRef(null);o.useEffect(()=>{d.current?.focus()},[]);const p=o.useCallback(async g=>{const C=r.trim();if(C){l(!0),u(null);try{await e(C),g()}catch(b){u(Ys(b)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),m=o.useCallback((g,C)=>{g.key==="Enter"&&!g.nativeEvent.isComposing&&p(C)},[p]),h=g=>{s(g.target.value),u(null)};return n.jsx(Dn,{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})=>{p(g)}}],children:({closeWithAnimation:g})=>n.jsxs(n.Fragment,{children:[n.jsx("input",{ref:d,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:h,onKeyDown:C=>m(C,g),disabled:i,autoComplete:"off",spellCheck:!1}),c&&n.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const b3=200;function y3(e){return e.itemId?(D2()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function v3({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:s}=fe.useTranslation(),i=o.useMemo(()=>E2(s).map(c=>({type:c,items:(e.items??[]).filter(u=>u.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items,s]);if(i.length===0)return null;const l=n.jsx("div",{className:"tooltip-training__box",children:n.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:c,items:u},d)=>[d>0?n.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,n.jsxs("div",{className:"tooltip-training__section",children:[n.jsx("div",{className:"tooltip-training__section-header",children:n.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),n.jsx("div",{className:"tooltip-training__items",children:u.map((p,m)=>{const h=y3(p);return h?n.jsx(uo,{index:m,type:c,trainingData:h,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},c.key)])})});return t?n.jsx(An,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const du=["var(--color-main)","var(--color-sub)"],x3=2e3;function _3(e,t){if(!t.startsWith("var("))return t;try{const a=t.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function Vo({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const b=Math.floor(t/2),_=t-b,f=(y,x)=>Array.from({length:y}).map((v,A)=>{const w=6+Math.random()*12,D=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),k=du[Math.floor(Math.random()*du.length)],B=Math.random()*300,N=(360+Math.random()*260)*r*1.2,M=(x==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,P=Math.cos(M)*N,$=Math.sin(M)*N*1.35,W=Math.random()*720-360,S=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),F=Math.random()>.7?"50%":"3px";return{id:`${x}-${A}`,side:x,size:D,color:k,delay:B,vx:P,vy:$,angularVel:W,life:S,borderRadius:F}});return[...f(b,"left"),...f(_,"right")]},[t,r]),c=o.useRef(null),u=o.useRef({}),d=o.useRef(null),p=o.useRef(s);o.useEffect(()=>{p.current=s},[s]);const m=o.useRef(null),h=o.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"&&h.current==null&&(h.current=g()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const z=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(z)}const b=1200,_=performance.now(),f=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,y=Math.max(60,(window.innerHeight||800)*.05),x=z=>Math.max(40,(z||window.innerWidth)*.02),v=f?.width||window.innerWidth||375,A=f?.height||window.innerHeight||812,w=z=>{const Z=[...z].sort((I,T)=>I-T);return Z[Math.floor(Z.length/2)]||1},D=w(l.map(z=>Math.abs(z.vy))),k=w(l.map(z=>Math.abs(z.vx))),B=Math.sqrt(2*b*(A*.72+y))/D,N=D*B/b,M=v*.5/(k*N),P=(z,Z,I)=>Math.min(I,Math.max(Z,z)),$=P(B,.8,2.4),W=P(M,.7,2.2),S=a>0?a/x3:1,F=l.map(z=>({...z,life:z.life*S,vx:z.vx*W,vy:z.vy*$,startTime:_+z.delay,ended:!1})),Y=f?{x:f.left-x(f.width),y:f.top+f.height+y}:{x:-x(window.innerWidth),y:window.innerHeight+y},G=f?{x:f.left+f.width+x(f.width),y:f.top+f.height+y}:{x:window.innerWidth+x(window.innerWidth),y:window.innerHeight+y},q=z=>{let Z=!1;for(const I of F){const T=u.current[I.id];if(!T||!T)continue;if(z<I.startTime){T.style.display="none",Z=!0;continue}if(!I._inited){const Ne=I.side==="left"?Y.x:G.x,ie=I.side==="left"?Y.y:G.y;T.style.left=`${Ne}px`,T.style.top=`${ie}px`,T.style.transform="translate3d(0px, 0px, 0)",T.style.display="block",T.style.zIndex="100000",typeof I.color=="string"&&I.color.startsWith("var(")&&(T.style.background=_3(T,I.color)??"#FF0060"),I._inited=!0}const O=(z-I.startTime)/1e3;if(O<0)continue;const R=I.life/1e3;if(O>=R){T.style.opacity="0",T.style.display="none",I.ended=!0;continue}Z=!0;const j=I.side==="left"?Y.x:G.x,L=I.side==="left"?Y.y:G.y,Q=j+I.vx*O,J=L+I.vy*O+.5*b*O*O,oe=(I.angularVel||0)*O,ge=Q-j,Me=J-L;T.style.transform=`translate3d(${ge}px, ${Me}px, 0) rotate(${oe}deg)`,T.style.opacity=`${Math.max(0,1-O/R)}`}Z?d.current=requestAnimationFrame(q):p.current?.()};d.current=requestAnimationFrame(q);const H=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const z=document.createElement("div");z.className="party-container",z.style.position="fixed",z.style.inset="0",z.style.pointerEvents="none",z.style.overflow="visible",z.style.zIndex="2147483647";for(const Z of l){const I=document.createElement("span");I.className=`confetti confetti--${Z.side}`,I.setAttribute("aria-hidden","true"),I.style.display="none",I.style.position="fixed",I.style.left="0px",I.style.top="0px",I.style.width=`${Z.size}px`,I.style.height=`${Math.max(4,Z.size*.6)}px`,I.style.background=Z.color,I.style.borderRadius=Z.borderRadius,I.style.transform="translate3d(0,0,0)",I.style.opacity="0",z.appendChild(I),u.current[Z.id]=I}(document.body||h.current).appendChild(z),m.current=z}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(H),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const C=n.jsx("div",{className:"party-container",ref:c,children:l.map(b=>n.jsx("span",{"aria-hidden":!0,ref:_=>{u.current[b.id]=_},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"?Wt.createPortal(C,h.current||document.body):C}const Ho=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function w3({trigger:e=0,active:t=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const c=l.detail??{};r(u=>({n:(u?.n??0)+1,count:Ho(c.count),strength:Ho(c.strength),duration:Ho(c.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const s=o.useCallback(()=>r(null),[]);return n.jsxs(n.Fragment,{children:[n.jsx(Vo,{active:t,trigger:e}),a&&n.jsx(Vo,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function k3({title:e,sub:t,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:u,wrap:d=!1}){const{t:p}=fe.useTranslation();Eg(typeof e=="string"?e:l??null);const m=u??p("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[n.jsxs("div",{className:"page-title__main",children:[n.jsxs("div",{className:"page-title__title-row",children:[c&&n.jsx(ce,{htmlType:"button",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}),n.jsx("h1",{className:"page-title__title h1",children:e}),s&&n.jsx("div",{className:"page-title__badge",children:n.jsx(pt,{label:s,size:"small",variant:i,fill:"outline"})}),r?n.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&n.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?n.jsx("div",{className:"page-title__action",children:a}):null]})}function A3(e){return e??""}const pu=o.createContext({words:[],loading:!1});function B3(){return o.useContext(pu)}function N3({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return n.jsx(pu.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function D3({items:e,actions:t,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return n.jsx("section",{className:Be("summary-strip",r&&"summary-strip--flat",s),style:{"--summary-strip-cols":String(l),...i},children:n.jsxs("div",{className:"summary-strip__row",children:[n.jsx("div",{className:"summary-strip__items",children:e.map((c,u)=>n.jsxs("div",{className:"summary-strip__item",children:[n.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),n.jsx("p",{className:"summary-strip__value body-3b",title:typeof c.value=="string"||typeof c.value=="number"?String(c.value):void 0,children:c.value})]},u))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const S3=(e,t)=>`${e} / ${t}`;function E3({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:s=S3,pageWidth:i,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=fe.useTranslation(),m=o.useRef(null),h=o.useRef(null),g=o.useRef(null),C=o.useRef(null),[b,_]=o.useState(null),[f,y]=o.useState(!1);o.useEffect(()=>{const S=m.current;if(!S)return;const F=()=>y(S.scrollWidth>S.clientWidth+1);if(F(),typeof ResizeObserver>"u")return;const Y=new ResizeObserver(F);return Y.observe(S),()=>Y.disconnect()},[b]);const x=e.map(S=>`${S.id}\0${S.section??""}\0${S.group??""}`).join(""),v=b&&b.shape===x?b.pages:null,[A,w]=o.useState(0);o.useEffect(()=>{const S=C.current;if(!S||typeof ResizeObserver>"u")return;const F=new ResizeObserver(()=>w(S.offsetHeight));return F.observe(S),()=>F.disconnect()},[]);const[D,k]=o.useState(0);o.useEffect(()=>{const S=h.current;if(!S||typeof ResizeObserver>"u")return;let F=null;const Y=typeof requestAnimationFrame=="function"?H=>requestAnimationFrame(H):H=>setTimeout(H,16),G=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:H=>clearTimeout(H),q=new ResizeObserver(()=>{F==null&&(F=Y(()=>{F=null,k(H=>H+1)}))});return Array.from(S.children).forEach(H=>q.observe(H)),()=>{q.disconnect(),F!=null&&G(F)}},[x]),o.useLayoutEffect(()=>{const S=h.current,F=C.current;if(!S||!F)return;const Y=R=>R.getBoundingClientRect().height||R.offsetHeight,G=new Map;g.current?.querySelectorAll("[data-chrome-section]").forEach(R=>{G.set(R.dataset.chromeSection??"",Y(R))});const q=R=>Y(F)-(G.get(R??"")??0),H=Array.from(S.children).map(R=>Y(R)),z=[];e.forEach((R,j)=>{const L=z[z.length-1],Q=L?e[L[0]]:void 0;Q&&R.group!=null&&Q.group===R.group&&Q.section===R.section?L.push(j):z.push([j])});const Z=[];let I=[],T=0;const O=()=>{I.length&&Z.push(I),I=[],T=0};z.forEach(R=>{const j=R.reduce((Q,J)=>Q+H[J],0),L=q(e[R[0]].section);I.length&&e[I[0]].section!==e[R[0]].section&&O(),j>L?R.forEach(Q=>{I.length&&T+H[Q]>L+.01&&O(),I.push(Q),T+=H[Q]}):(I.length&&T+j>L+.01&&O(),R.forEach(Q=>I.push(Q)),T+=j)}),O(),_(R=>R&&R.shape===x&&JSON.stringify(R.pages)===JSON.stringify(Z)?R:{shape:x,pages:Z})},[x,A,i,l,c,D]);const B=Qr,N=B,M=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:N,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),P=(S,F,Y)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:Y!=null&&t?.[Y]||null}),a]}),footer:n.jsxs("div",{className:"report-doc__footer caption-1",children:[n.jsx("span",{className:"report-doc__footer-left",children:M}),n.jsx("span",{className:"report-doc__page-no",children:s(S,F)})]})}),$=Array.from(new Set(e.map(S=>S.section??""))),W={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...d};return n.jsxs("div",{ref:m,className:Be("report-doc",u),style:W,tabIndex:f?0:void 0,role:f?"group":void 0,"aria-label":f?p("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[n.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[n.jsx("div",{ref:C,className:"report-doc__ruler"}),n.jsx("div",{ref:g,children:$.map(S=>{const F=P(1,1,S||void 0);return n.jsxs("div",{"data-chrome-section":S,children:[F.header,F.footer]},S)})}),n.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(S=>n.jsx("div",{children:S.content},S.id))})]}),v&&n.jsx("div",{className:"report-doc__pages",children:v.map((S,F)=>{const{header:Y,footer:G}=P(F+1,v.length,e[S[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[Y,S.map(q=>n.jsx("div",{children:e[q].content},e[q].id)),G]},F)})})]})}function T3({title:e,fields:t,columns:a=4,className:r,style:s}){return n.jsxs("div",{className:Be("report-info",r),style:{"--report-info-cols":String(a),...s},children:[e&&n.jsx("p",{className:"report-info__title h5b",children:e}),n.jsx("div",{className:"report-info__grid",children:t.map((i,l)=>n.jsxs("div",{className:"report-info__field body-2",children:[n.jsx("span",{className:"report-info__label body-3",children:i.label}),n.jsx("span",{className:"report-info__value",children:i.value})]},l))})]})}const zn=new Map;let lr=null;const j3=12;function M3(e){for(let t=e.parentElement;t&&t!==document.body;t=t.parentElement){const a=window.getComputedStyle(t);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return t}return document}function cr(){const e=new Map;for(const t of zn.keys()){if(!t.isConnected)continue;const a=M3(t),r=e.get(a)??[];r.push(t),e.set(a,r)}for(const t of e.values()){t.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of t){a>0?r.style.setProperty("--update-alert-stack-offset",`${a}px`):r.style.removeProperty("--update-alert-stack-offset");const s=r.getBoundingClientRect().height;s>0&&(a+=s+j3)}}}function L3(e){return typeof window>"u"?()=>{}:(zn.set(e,(zn.get(e)??0)+1),zn.get(e)===1&&typeof ResizeObserver<"u"&&(lr??(lr=new ResizeObserver(()=>cr())),lr.observe(e)),cr(),()=>{const t=(zn.get(e)??1)-1;if(t>0){zn.set(e,t),cr();return}zn.delete(e),lr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),cr()})}function $3({title:e,message:t,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:c}=fe.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8"),d=o.useRef(null),p=o.useRef(!1);return o.useLayoutEffect(()=>{const m=d.current,h=m?.parentElement?.closest(".update-alert-stack")??m,g=h?L3(h):null;return()=>{g?.(),p.current&&m&&m.contains(document.activeElement)&&Oa(m)}},[]),n.jsxs("div",{ref:d,className:Be("update-alert",l),role:"alert",children:[i&&n.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{p.current=!0,i()},"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),n.jsxs("div",{className:"update-alert__top",children:[n.jsx("div",{className:"update-alert__icon",children:s??n.jsx(ns,{size:20,strokeWidth:2})}),n.jsxs("div",{className:"update-alert__body",children:[n.jsx("div",{className:"update-alert__title h4",children:e}),n.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&n.jsx(ce,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}function R3({title:e,description:t,topActions:a,children:r,footerLeft:s,footerRight:i,onClick:l,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const m=s!=null||i!=null,h=r!=null&&r!==!1,g=o.useCallback(C=>{l&&C.target===C.currentTarget&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),l())},[l]);return n.jsxs("div",{className:Be("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?g:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,children:[n.jsxs("div",{className:"training-card__header",children:[n.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?n.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&n.jsx("div",{className:"training-card__top-actions",onClick:C=>C.stopPropagation(),children:a})]}),t!=null?typeof t=="string"?n.jsx("p",{className:"training-card__description body-3",children:t}):t:n.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),h&&n.jsx("div",{className:"training-card__body",children:r}),m&&n.jsxs("div",{className:"training-card__footer",children:[s!=null&&n.jsx("div",{className:"training-card__footer-left",children:s}),i!=null&&n.jsx("div",{className:"training-card__meta",children:i})]})]})}function P3({title:e,count:t,collapsed:a=!1,onToggle:r,sort:s,actions:i,empty:l=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:m,children:h,className:g}){const{t:C}=fe.useTranslation(),b=r!=null,_=Be("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",b&&"training-card-group--collapsible",g);return n.jsxs("div",{className:_,onDragOver:d,onDragLeave:p,onDrop:m,children:[n.jsxs("header",{className:"training-card-group__header",children:[b&&n.jsx(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?C("common.expand","\uD3BC\uCE58\uAE30"):C("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!a,onClick:r}),typeof e=="string"?n.jsx("span",{className:"training-card-group__title h5b",children:e}):e,t!==void 0&&n.jsx("span",{className:"training-card-group__count body-3b",children:t}),(s||i!=null)&&n.jsxs("span",{className:"training-card-group__actions",onClick:f=>f.stopPropagation(),children:[s&&n.jsx(tn,{size:40,options:s.options,value:s.value,placeholder:s.placeholder,onChange:s.onChange}),i]})]}),!a&&(l?n.jsx("div",{className:"training-card-group__empty body-3",children:c}):n.jsx("div",{className:"training-card-group__grid",children:h}))]})}const I3="speechear:saved_word_tables";function F3(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 O3(){try{const e=localStorage.getItem(I3);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(F3):[]}catch{return[]}}function mu(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function zo(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function V3(e){const t=new Set;return e.map(a=>{let r=a.id;for(let s=2;t.has(r);s++)r=`${a.id}~${s}`;return t.add(r),r===a.id?a:{...a,id:r}})}function H3({title:e,titleIcon:t,disc:a,items:r,onSaveComplete:s,onLoad:i,onRemoveItem:l,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:m,showCellCount:h,onAddItem:g,className:C,renderSavePopup:b,renderWordSearch:_,hideControls:f,saveOnly:y,tableName:x,nameValue:v,onNameChange:A,descriptionValue:w,onDescriptionChange:D,namePlaceholder:k,descriptionPlaceholder:B,existingNames:N,editingName:M,onCancel:P}){const{t:$}=fe.useTranslation(),W=u??$("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),S=r===void 0,F=!!A,[Y,G]=o.useState([]),q=(v??"").trim(),H=q||(k??"").trim(),z=(w??"").trim()||(B??"").trim(),Z=(N??[]).map(ke=>ke.trim().toLowerCase()),I=[M?.trim().toLowerCase(),...Y].filter(ke=>!!ke),T=[...Z];for(const ke of I){const Pe=T.indexOf(ke);Pe!==-1&&T.splice(Pe,1)}const O=q!==""&&T.includes(q.toLowerCase()),[R,j]=o.useState(Array(4).fill(null)),[L,Q]=o.useState(4),[J,oe]=o.useState(null),ge=R.slice(0,L),[Me,Ne]=o.useState("landscape"),[ie,U]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[se,me]=o.useState("\uD45C\uC2DC"),[_e,we]=o.useState(!0),[De,xe]=o.useState(!0),Ae=o.useRef(null),Te=o.useRef([]),[ae,ee]=o.useState(8),[de,te]=o.useState("right"),[he,be]=o.useState(!1),[Ye,Ve]=o.useState(!1),{toastMessage:qe,toastType:Se,showWarning:Ue,clearToast:$e}=tl("warning"),Ie=o.useCallback(()=>oe(null),[oe]);g&&!S&&!h&&jn("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.');const[He,at]=o.useState(()=>Math.max(r?.length??1,1)),ot=S?L:h?Math.max(He,r?.length??1,1):Math.max(r?.length??0,1),{width:We,height:Xe}=aa[Me],Ct=!S&&!h,At=r?.length??0,Et=Math.min(ae,Math.max(At,1)),ut=Ct?Et:ot,Qe=Ct?oc(r??[],ut):null,Ze=!!Qe&&Qe.length>1,Oe=S?ge.some(ke=>ke!==null&&ke.length>1):(r??[]).some(ke=>(ke.words??[]).length>1),rt=x?.trim()||`${ai(Ca())} ${Oe?$("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):$("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,et=o.useCallback(()=>Ze?Te.current.filter(ke=>ke!==null):Ae.current?[Ae.current]:[],[Ze]),{print:bt,openNewWindow:ze,downloadHtml:it}=vo({getElements:et,paperW:We,paperH:Xe,fileName:rt,onPopupBlocked:()=>{Ue($("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."))}}),Bt=ke=>{Q(ke),j(Pe=>Pe.length>=ke?Pe:[...Pe,...Array(ke-Pe.length).fill(null)]),oe(null)},Nt=ke=>{j(Pe=>{const ne=[...Pe];return ne[ke]=null,ne}),J===ke&&oe(null)},Le=ke=>{if(J===null)return;const Pe=J;j(pe=>{const V=[...pe];return V[Pe]=ke.length>0?ke:null,V});const ne=ge.findIndex((pe,V)=>V>Pe&&pe===null);oe(ne!==-1?ne:null)},Ke=S?ge.some(ke=>ke?.some(Pe=>!!Pe.colloquialPronunciation)):(r??[]).some(ke=>(ke.words??[]).some(Pe=>!!Pe.colloquialLabel)),Dt=o.useMemo(()=>Un()?S?R.slice(0,L).flatMap(ke=>(ke??[]).map(Pe=>[Pe.word,Pe.homonum])):(r??[]).flatMap(ke=>(ke.words??[]).map(Pe=>[Pe.label,Pe.homonum])):[],[S,R,L,r]),[vt,Tt]=o.useState(!1);o.useEffect(()=>{if(Dt.length===0)return;let ke=!1;return Promise.all(Dt.map(([Pe,ne])=>qs(Pe,ne))).then(Pe=>{ke||Tt(Pe.some(Boolean))},()=>{}),()=>{ke=!0}},[Dt]);const on=Dt.length>0&&vt,tt=o.useMemo(()=>[...S||h?[{label:$("wordTable.filter.columns","\uCE78 \uC218"),items:xy.map(ke=>({value:`${ke}\uCE78`,displayLabel:$("wordTable.filter.column",{count:ke})})),display:"segmented"}]:[],...Ct&&(r?.length??0)>0?[vc($,{hasPairs:Oe,itemCount:At})]:[],...Ze?[_c($)]:[]],[$,S,h,Ct,r?.length,Oe,At,Ze]),Gt={...S||h?{[$("wordTable.filter.columns","\uCE78 \uC218")]:`${ot}\uCE78`}:{},...Ct&&(r?.length??0)>0?{[$(Oe?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Et}\uAC1C`}:{},...Ze?{[$("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:wc[de]}:{}},vn=(ke,Pe)=>{Pe===$("wordTable.filter.columns","\uCE78 \uC218")?S?Bt(parseInt(ke)):at(parseInt(ke)):Pe===$(Oe?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?ee(xc(parseInt(ke),At)):Pe===$("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&te(kc(ke))},xt=S?V3(ge.filter(ke=>ke!==null&&ke.length>0).map(ke=>({id:zo(ke),words:ke.map(mu)}))):r??[],Ht=()=>{S&&j(ke=>ke.length>L?ke.slice(0,L):ke)},Xt=(ke=!1)=>{if(Ve(ke),F&&s){const Pe=H.trim().toLowerCase();Pe&&G(ne=>ne.includes(Pe)?ne:[...ne,Pe]),s(H,xt,z||void 0,ke),Ht();return}if(y&&s){s("",xt,void 0,ke),Ht();return}if(s){be(!0);return}it()},[an,sn]=o.useState(!1),[Jt,xn]=o.useState(""),Kt=Jt.trim(),mt=Kt!==""&&Z.includes(Kt.toLowerCase()),ln=()=>{xn(H?$("wordTable.save.copyName",{name:H,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),sn(!0)},Yt=()=>{!Kt||mt||!s||(s(Kt,xt,z||void 0,!0),Ht(),sn(!1))},jt=xt.length===0,cn=jt||F&&(H===""||O),Zt=()=>{if(jt){Ue($("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(F&&H===""){Ue($("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}F&&O&&Ue($("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},un=n.jsx(ra,{items:xt,orientation:Me,contentTypes:ie,cutLine:se,showOutline:_e,showDivLine:De,count:ot});return n.jsxs(n.Fragment,{children:[n.jsxs(na,{type:"page",icon:t,title:e,disc:a,className:Be("word-table-block",C),children:[an&&n.jsx(Dn,{size:"small",title:p??$("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>sn(!1),footer:({closeWithAnimation:ke})=>n.jsxs(n.Fragment,{children:[n.jsx(ce,{htmlType:"button",size:48,type:"bar",label:$("common.cancel","\uCDE8\uC18C"),onClick:ke}),n.jsx(ce,{htmlType:"button",size:48,type:"bar",variant:"main",label:$("common.save","\uC800\uC7A5"),disabled:!Kt||mt,onClick:Yt})]}),children:n.jsx(On,{label:$("wordTable.save.nameLabel","\uC774\uB984"),value:Jt,onChange:xn,placeholder:$("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:Yt,error:mt?$("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),he&&s&&b?.({defaultName:typeof e=="string"?e:$("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:un,previewW:We,previewH:Xe,items:xt,existingNames:O3().map(ke=>ke.name),saveAsNew:Ye,onSave:(ke,Pe)=>{s(ke,xt,Pe,Ye),Ht(),be(!1)},onCancel:()=>be(!1)}),(S||g)&&J!==null&&_?.({cellIndex:J,onConfirm:S?Le:ke=>{if(g){const Pe=ke[0];if(Pe){const ne=new Set((r??[]).map(V=>V.id));let pe=zo([Pe]);for(let V=2;ne.has(pe);V++)pe=`${zo([Pe])}~${V}`;g({id:pe,words:[mu(Pe)]})}}oe(null)},onClose:Ie}),!f&&n.jsx(go,{hasImage:on,hasColloquial:Ke,contentTypes:ie,orientation:Me,showOutline:_e,cutLine:se,showDivLine:De,setters:{setContentTypes:U,setOrientation:Ne,setShowOutline:we,setCutLine:me,setShowDivLine:xe},showCutLine:(Ct?ut:ot)>1,showDivLine2:Oe,middleSections:tt,extraSelected:Gt,onExtraSelect:vn}),Ze&&Qe?n.jsx("div",{className:"word-table-block__pages",children:Qe.map((ke,Pe)=>n.jsx(ra,{orientation:Me,contentTypes:ie,cutLine:se,showOutline:_e,showDivLine:De,count:ut,items:ke,onRemoveItem:l,onReorder:m&&((ne,pe)=>m(ne+Pe*ut,pe+Pe*ut)),contentRef:ne=>{Te.current[Pe]=ne},pageNumber:{current:Pe+1,total:Qe.length},pageNumberPosition:de},Pe))}):n.jsx(ra,{orientation:Me,contentTypes:ie,cutLine:se,showOutline:_e,showDivLine:De,count:ot,items:S?void 0:r??[],editCells:S?ge:void 0,activeCell:J,onActivateCell:S||g?oe:void 0,onRemoveCell:S?Nt:void 0,onRemoveItem:S?void 0:l,onReorder:S?void 0:m,showFillerAdd:!!g,contentRef:Ae}),F&&!f&&n.jsxs(or,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(Sn,{variant:"custom",label:$("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(On,{required:!0,value:v??"",onChange:A,placeholder:k?k+$("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):$("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:$("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:O?$("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ke=>{(ke.key==="Tab"&&!ke.shiftKey||ke.key===" ")&&!(v??"").trim()&&(k??"").trim()&&(ke.preventDefault(),A?.(k??""))}})}),n.jsx(Sn,{variant:"custom",label:$("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(On,{value:w??"",onChange:D,placeholder:B?B+$("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):$("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:$("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ke=>{(ke.key==="Tab"&&!ke.shiftKey||ke.key===" ")&&!(w??"").trim()&&(B??"").trim()&&(ke.preventDefault(),D?.(B??""))}})})]})]}),!f&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!y&&c&&n.jsx(ce,{htmlType:"button",size:40,type:"bar",label:W,onClick:c}),!y&&i&&n.jsx(ce,{htmlType:"button",size:40,type:"bar",label:$("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!y&&n.jsx(ce,{htmlType:"button",size:40,type:"bar",label:$("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:ze})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[P&&n.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:$("common.cancel","\uCDE8\uC18C"),onClick:P}),!y&&n.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:$("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:bt}),p&&n.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>F?ln():Xt(!0),disabled:jt,onDisabledClick:()=>{Ue($("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),n.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:d??$("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Xt(!1),disabled:cn,onDisabledClick:Zt})]})]}),n.jsx(ea,{message:qe,type:Se,onClose:$e})]})}function hu({items:e,className:t}){const a=e.length,r=a<=3?1:2,s=Math.ceil(a/r)||1,i=r*s;return n.jsx("div",{className:Be("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,c)=>{const u=e[c];return u?n.jsx("div",{className:"word-table-thumb__cell",children:(u.words?.length?u.words:[{label:u.id}]).map((d,p)=>n.jsxs(o.Fragment,{children:[p>0&&n.jsx("span",{className:"word-table-thumb__divider"}),n.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},p))},c):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function z3({items:e,name:t,description:a,createdAt:r,published:s,publishedLabel:i,shared:l,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:m,downloadCount:h,onPublisherClick:g,selected:C,onClick:b,onMore:_,titleNode:f,className:y}){const{t:x}=fe.useTranslation(),v=f!=null,A=d!=null||p!=null||m!=null||h!=null,w=D=>{D.target===D.currentTarget&&!v&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),b?.())};return n.jsxs("div",{className:Be("word-table-button",C?"word-table-button--selected":"",A?"":"word-table-button--no-footer",y),role:"button",tabIndex:0,"aria-label":t,onClick:v?void 0:b,onKeyDown:w,children:[u&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":x("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(hu,{items:e,className:"word-table-button__thumb"}),n.jsxs("div",{className:"word-table-button__info",children:[n.jsxs("div",{className:"word-table-button__info-text",children:[f??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),_&&!v&&n.jsx(ce,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:x("common.moreFor",{name:t}),onClick:D=>{D.stopPropagation(),_(D)}})]}),(r||s||l)&&n.jsxs("div",{className:"word-table-button__meta-row",children:[n.jsx("span",{className:"word-table-button__meta caption-1",children:r?ni(r,x):""}),n.jsxs("span",{className:"word-table-button__badges",children:[s&&n.jsx(pt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??x("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&n.jsx(pt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??x("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]}),A&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[d&&n.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:D=>{D.stopPropagation(),g?.()},children:d}),p&&n.jsx("span",{className:"training-card__date body-4",children:ni(p,x)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&n.jsx(pt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),h!=null&&n.jsx(pt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(h)})]})]})]})}/**
992
992
  * @license lucide-react v1.38.0 - ISC
993
993
  *
994
994
  * This source code is licensed under the ISC license.