@ihabdevteam/core 0.447.0 → 0.448.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/components.cjs.js +21 -21
- package/dist/hooks.cjs.js +3 -3
- package/dist/i18n.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +187 -187
- package/dist/ihabdevteam-core.d.ts +85 -1
- package/dist/packages/core/src/components/FolderDeleteConfirmPopup.d.ts +22 -0
- package/dist/packages/core/src/components/FolderDeleteConfirmPopup.js +19 -0
- package/dist/packages/core/src/components.d.ts +2 -0
- package/dist/packages/core/src/components.js +1 -0
- package/dist/packages/core/src/hooks/useCodeCountdown.d.ts +17 -0
- package/dist/packages/core/src/hooks/useCodeCountdown.js +23 -0
- package/dist/packages/core/src/hooks.d.ts +2 -0
- package/dist/packages/core/src/hooks.js +1 -0
- package/dist/packages/core/src/utils/wordGradeBands.d.ts +48 -0
- package/dist/packages/core/src/utils/wordGradeBands.js +79 -0
- package/dist/packages/core/src/utils.d.ts +3 -0
- package/dist/packages/core/src/utils.js +2 -0
- package/dist/packages/core/src/version.d.ts +1 -1
- package/dist/packages/core/src/version.js +1 -1
- package/dist/utils.cjs.js +168 -168
- package/package.json +1 -1
package/dist/hooks.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";var c=require("react"),Le=require("react-i18next"),ue=require("i18next"),to=typeof document<"u"?document.currentScript:null;function Vl(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Nr=Vl(c);function Ul({storageKey:e="fontScale",baseFont:t=20,minScale:n=.8,maxScale:o=1.4,step:r=.1,lineHeightRatio:a=1.4}={}){const u=E=>Math.max(n,Math.min(o,Number(E))),l=E=>{try{const A=localStorage.getItem(E),v=A?Number(A):1;return Number.isFinite(v)?u(v):u(1)}catch{return u(1)}},[s,d]=c.useState(()=>l(e)),[m,g]=c.useState(e);m!==e&&(g(e),d(l(e))),c.useEffect(()=>{try{localStorage.setItem(e,String(s))}catch{}},[e,s]);const f=E=>{d(typeof E=="function"?A=>u(E(A)):u(E))},p=()=>f(E=>+(E+r).toFixed(6)),h=()=>f(E=>+(E-r).toFixed(6)),w=s<o-Number.EPSILON,b=s>n+Number.EPSILON,y=Math.round(t*s),S=Math.round(y*a);return{scale:s,setScale:f,increase:p,decrease:h,canIncrease:w,canDecrease:b,fontSize:y,lineHeight:S}}const Or=c.createContext(null);function Yl(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const Lr=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function zl(e){const t=c.useCallback(n=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const o=window.matchMedia(e);o.addEventListener?o.addEventListener("change",n):o.addListener&&o.addListener(n);let r=null,a=null;const u=()=>{n(),r===null&&typeof requestAnimationFrame<"u"&&(r=requestAnimationFrame(()=>{r=null,n()})),a!==null&&clearTimeout(a),a=setTimeout(()=>{a=null,n()},150)};return window.addEventListener("resize",u),window.addEventListener("orientationchange",u),()=>{o.removeEventListener?o.removeEventListener("change",n):o.removeListener&&o.removeListener(n),window.removeEventListener("resize",u),window.removeEventListener("orientationchange",u),r!==null&&cancelAnimationFrame(r),a!==null&&clearTimeout(a)}},[e]);return Nr.useSyncExternalStore(t,()=>Lr(e),()=>!1)}function Kl(e){const[t,n]=c.useState(Lr(e));return c.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const o=window.matchMedia(e),r=u=>n(u.matches),a=o;return a.addEventListener?a.addEventListener("change",r):a.addListener&&a.addListener(r),n(o.matches),()=>{a.removeEventListener?a.removeEventListener("change",r):a.removeListener&&a.removeListener(r)}},[e]),t}const ql=typeof Nr.useSyncExternalStore=="function"?zl:Kl;function Jl(e){const t=c.useContext(Or),n=ql(e);return t&&typeof t.mobile=="boolean"&&Yl(e)?t.mobile:n}function bn(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),t}function no(e,t){const n=bn(t);c.useEffect(()=>{const o=()=>n.current();try{window.addEventListener(e,o)}catch{}return()=>{try{window.removeEventListener(e,o)}catch{}}},[e,n])}const oo=" \xB7 ",Rr=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(oo)?e.split(oo).pop()??e:e})(),Ir=c.createContext(!1),et=[];let Mr=null;function Xl(e){const t=c.useContext(Ir);c.useEffect(()=>{if(t||typeof e!="string"||!e)return;et.length===0&&(Mr=document.title);const n={text:Rr?`${e}${oo}${Rr}`:e};return et.push(n),document.title=n.text,()=>{const o=et.lastIndexOf(n);o>=0&&et.splice(o,1),document.title=et.length?et[et.length-1].text:Mr??document.title}},[e,t])}const Ql=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function Zl(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const n=e.trim(),o=/^(\d{4}-\d{2}-\d{2})(?:$|[T ])/.exec(n)?.[1];if(o){const a=new Date(`${o}T00:00:00Z`);if(Number.isNaN(a.getTime())||a.toISOString().slice(0,10)!==o)return null}const r=Ql.exec(n);t=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:n)}else t=new Date(e);return Number.isNaN(t.getTime())?null:t}function vt(){return Nt(new Date)}function Nt(e){if(e==null||e==="")return"";const t=Zl(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function ei(e,t){const[n,o,r]=e.split("-").map(Number),[a,u,l]=t.split("-").map(Number);return Math.round((Date.UTC(a,u-1,l)-Date.UTC(n,o-1,r))/864e5)}function ti(){const{t:e}=Le.useTranslation();return c.useCallback(t=>{if(!t)return"";const n=Nt(t);if(!n)return"";const o=ei(n,vt());return o<=0?e("myHomework.relativeDay.today","\uC624\uB298"):o===1?e("myHomework.relativeDay.yesterday","\uC5B4\uC81C"):e("myHomework.relativeDay.daysAgo",{n:o})},[e])}const ni=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof ue?.t=="function"?ue.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function oi(e,t){if(t===void 0&&(t=ni()),e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const n=e;for(const o of[n.message,n.error_description,n.error])if(typeof o=="string"&&o)return o}return t}function ri(e){const{t}=Le.useTranslation(),[n,o]=c.useState({current:"",next:"",confirm:""}),[r,a]=c.useState(null),[u,l]=c.useState(!1),s=c.useRef(null),d=c.useRef(!1),m=c.useRef(0);c.useEffect(()=>()=>{s.current!==null&&clearTimeout(s.current)},[]);const g=c.useCallback(()=>{m.current++,s.current!==null&&(clearTimeout(s.current),s.current=null),o({current:"",next:"",confirm:""}),a(null)},[]),f=c.useCallback(async()=>{if(d.current)return;if(s.current!==null&&(clearTimeout(s.current),s.current=null),!n.current){a({type:"error",text:t("account.security.password.currentRequired","\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.")});return}if(!n.next){a({type:"error",text:t("account.security.password.newRequired","\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.")});return}if(n.next!==n.confirm){a({type:"error",text:t("account.security.password.mismatch","\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")});return}l(!0),d.current=!0;const p=m.current;let h;try{h=e?await e(n.current,n.next):null}catch(w){h=oi(w)}finally{d.current=!1,l(!1)}if(p===m.current){if(h){a({type:"error",text:h});return}a({type:"success",text:t("account.security.password.changed","\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.")}),o({current:"",next:"",confirm:""}),s.current!==null&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=null,a(null)},1500)}},[n,e,t]);return{pw:n,setPw:o,pwMsg:r,setPwMsg:a,pwLoading:u,handleChangePw:f,reset:g}}const ai={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"},ro={\u314F:{nucleus:"\u314F"},\u3151:{glide:"j",nucleus:"\u314F"},\u3153:{nucleus:"\u3153"},\u3155:{glide:"j",nucleus:"\u3153"},\u3157:{nucleus:"\u3157"},\u315B:{glide:"j",nucleus:"\u3157"},\u315C:{nucleus:"\u315C"},\u3160:{glide:"j",nucleus:"\u315C"},\u3161:{nucleus:"\u3161"},\u3163:{nucleus:"\u3163"},\u3150:{nucleus:"\u3154/\u3150"},\u3152:{glide:"j",nucleus:"\u3154/\u3150"},\u3154:{nucleus:"\u3154/\u3150"},\u3156:{glide:"j",nucleus:"\u3154/\u3150"},\u3158:{glide:"w",nucleus:"\u314F"},\u3159:{glide:"w",nucleus:"\u3154/\u3150"},\u315A:{glide:"w",nucleus:"\u3154/\u3150"},\u315D:{glide:"w",nucleus:"\u3153"},\u315E:{glide:"w",nucleus:"\u3154/\u3150"},\u315F:{glide:"w",nucleus:"\u3163"},\u3162:{glide:"\u0270",nucleus:"\u3163"}};function ui(e,t){return(ro[e]?.glide??"")!==(ro[t]?.glide??"")}function Ot(e){return ai[e]??e}const pe=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],Te=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],Oe=["","\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 X(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 li(){const e=new Map;return t=>{let n=e.get(t);return n||(n=[...t].map(o=>X(o)),e.set(t,n)),n}}function ze(e,t,n=0){return String.fromCharCode(44032+(e*21+t)*28+n)}function ii(e,t){if(!e||!t||e===t||e.length!==t.length)return"random";let n=0,o=null;for(let r=0;r<e.length;r++){const a=X(e[r]),u=X(t[r]);if(!a||!u)return"random";if(a.cho===u.cho&&a.jung===u.jung&&a.jong===u.jong)continue;n++;const l=a.cho!==u.cho,s=a.jung!==u.jung,d=a.jong!==u.jong;(l?1:0)+(s?1:0)+(d?1:0)>1?o="multi":l?o="cho":s?o="jung":o="jong"}return n!==1?"random":o==="cho"?"cho":o==="jung"?"jung":o==="jong"?"jong":"random"}const Sn={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(Sn).map(([e,t])=>[t.join(""),Oe[Number(e)]]));function si(e,t){if(!e||!t)return!1;for(const n of e){const o=X(n);if(o){if(pe[o.cho]===t)return!0;if(o.jong>0){if(Oe[o.jong]===t)return!0;const r=Sn[o.jong];if(r&&r.includes(t))return!0}}}return!1}function ci(e,t,n){const o=Oe[e];return o===t?!0:n==="phoneme"&&Ot(o)===Ot(t)}function Lt(e){if(!e)return 0;let t=0;for(const n of e)X(n)&&t++;return t}function di(e){if(!e)return!1;let t=!1;for(const n of e){const o=X(n);if(o&&(t=!0,o.jong>0))return!1}return t}function fi(e,t,n){return e.jong<=0?!1:t.some(o=>ci(e.jong,o,n))}function gi(e,t,n,o="glyph"){if(!e)return!1;const r=[...e],a=u=>{const l=X(r[u]);if(!l||t.cho&&!t.cho.includes(pe[l.cho])||t.jung&&!t.jung.includes(Te[l.jung]))return!1;if(t.jongNone){if(l.jong>0)return!1}else if(t.jong&&!fi(l,t.jong,o))return!1;return!0};if(n==="head")return a(0);if(n==="tail")return a(r.length-1);if(n==="mid"){for(let u=1;u<r.length-1;u++)if(a(u))return!0;return!1}for(let u=0;u<r.length;u++)if(a(u))return!0;return!1}const mi={cho:pe.length,jung:Te.length,jong:Oe.length};function pi(e,t,n,o,r=1/0){if(!e||n<1)return[];const a=[...e].map(g=>X(g));if(a.some(g=>!g))return[];const u=a,l=u.length;if(n>l)return[];const s=mi[t],d=new Set,m=[];(function g(f,p){if(p.length===n){m.push([...p]);return}for(let h=f;h<l;h++)p.push(h),g(h+1,p),p.pop()})(0,[]);for(const g of m)if((function f(p,h){if(d.size>=r)return;if(p===g.length){const y=h.map(S=>ze(S.cho,S.jung,S.jong)).join("");y!==e&&o.has(y)&&d.add(y);return}const w=g[p],b=u[w][t];for(let y=0;y<s;y++){if(y===b)continue;const S=h.slice();if(S[w]={...h[w],[t]:y},f(p+1,S),d.size>=r)return}})(0,u),d.size>=r)break;return[...d]}function Ci(e,t){if(!e||!t||e.length!==t.length)return-1;let n=0;for(let o=0;o<e.length;o++){const r=X(e[o]),a=X(t[o]);if(!r||!a)return-1;r.cho!==a.cho&&n++,r.jung!==a.jung&&n++,r.jong!==a.jong&&n++}return n}const Pr="word_pair_index_v2",kr="word_pair_index_sig_v2";let Rt=null;function hi(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;for(const t of Object.values(e)){if(t===null||typeof t!="object"||Array.isArray(t))return!1;const n=t;for(const o of["cho","jung","jong"])if(!Array.isArray(n[o])||!n[o].every(r=>typeof r=="string"))return!1}return!0}function yi(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(Pr),t=localStorage.getItem(kr);if(!e||!t)return null;const n=JSON.parse(e);return hi(n)?{index:n,sig:t}:null}catch{return null}}function It(){if(Rt)return Rt;const e=yi();return e?(Rt=e.index,e.sig,Rt):null}function bi(){Rt=null;try{typeof localStorage<"u"&&(localStorage.removeItem(Pr),localStorage.removeItem(kr))}catch{}}const xr="word_image_existence_map_v1",Fr="ihab:image-existence-updated";function Si(){typeof window<"u"&&window.dispatchEvent(new Event(Fr))}let mt=null,Mt=0,jr=-1,Pt=null,$r=-1,Hr=new Set;const wi=new Map;function Gr(){if(mt)return mt;try{const e=typeof localStorage<"u"?localStorage.getItem(xr):null,t=e?JSON.parse(e):null,n={};if(t&&typeof t=="object"&&!Array.isArray(t))for(const[o,r]of Object.entries(t))typeof r=="boolean"&&(n[o]=r);mt=n}catch{mt={}}return mt}function Wr(){const e=Gr();if(jr===Mt)return Pt?{...Pt}:null;const t=Object.values(e);return Pt=t.length===0?null:{total:t.length,exists:t.filter(Boolean).length},jr=Mt,Pt?{...Pt}:null}function wn(){const e=Gr();if($r===Mt)return Hr;const t=new Set;for(const n in e)e[n]===!0&&n.endsWith("_1")&&t.add(n.slice(0,-2));return Hr=t,$r=Mt,t}function Ei(){mt={},wi.clear(),Mt++;try{typeof localStorage<"u"&&localStorage.removeItem(xr)}catch{}Si()}const Vr=[{id:"wordData",labelKey:"settings.cache.group.wordData.label",subKey:"settings.cache.group.wordData.sub",keys:["word_data_cache","word_data_version"]},{id:"pairIndex",labelKey:"settings.cache.group.pairIndex.label",subKey:"settings.cache.group.pairIndex.sub",keys:["word_pair_index_v2","word_pair_index_sig_v2"]},{id:"imageCache",labelKey:"settings.cache.group.imageCache.label",subKey:"settings.cache.group.imageCache.sub",keys:["word_image_existence_map_v1"]}];function Ur(e){return e.reduce((t,n)=>{try{const o=localStorage.getItem(n);return t+(o?new Blob([o]).size:0)}catch{return t}},0)}function Ai(e){return e===0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function Ti(e){const{t}=Le.useTranslation(),[n,o]=c.useState({}),[r,a]=c.useState(null),[u,l]=c.useState(null),[s,d]=c.useState(null),m=c.useRef(0),g=c.useCallback(()=>{const p=++m.current,h={};if(Vr.forEach(w=>{h[w.id]=Ur([...w.keys])}),o(h),typeof navigator<"u"&&navigator.storage?.estimate)try{navigator.storage.estimate().then(w=>{m.current===p&&d({usage:w.usage??0,quota:w.quota??0})}).catch(()=>{})}catch{}},[]);c.useEffect(()=>(g(),()=>{m.current+=1}),[g]);const f=c.useCallback(async p=>{a(p);try{p==="wordData"?(localStorage.removeItem("word_data_cache"),localStorage.removeItem("word_data_version")):p==="pairIndex"?bi():p==="imageCache"&&Ei(),g(),e?.(t("settings.cache.cleared","\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4."))}finally{a(null)}},[g,e,t]);return{cacheSizes:n,clearingId:r,confirmCacheId:u,setConfirmCacheId:l,storageEstimate:s,refreshCacheSizes:g,handleClearCache:f}}function _i(e){const[t,n]=c.useState(null),[o,r]=c.useState(null),a=c.useCallback(()=>{const u=It();if(u){const s=Object.values(u),d=s.filter(m=>m.cho.length+m.jung.length+m.jong.length>0).length;n({matched:d,total:s.length})}else n(null);const l=Wr();r(l?{exists:l.exists,total:l.total}:null)},[]);return c.useEffect(()=>{a();const u=setTimeout(a,1e3);return()=>clearTimeout(u)},[e?.length,a]),{pairStats:t,imgStats:o,setPairStats:n,setImgStats:r,refreshStats:a}}function tt(e,t){if(e===t)return!0;const n=e?.id,o=t?.id;return n!=null&&n!==""&&n===o}function Yr(e,t=[]){const[n,o]=c.useState(t),[r,a]=c.useState(null),[u,l]=c.useState(!1),[s,d]=c.useState(e),m=c.useRef(!1),g=c.useRef(null);c.useEffect(()=>{if(u)return;if(m.current){m.current=!1;return}const y=g.current;y!==null&&y.length===t.length&&y.every((S,E)=>S===t[E])||(g.current=t,o(t),a(S=>{if(S==null)return S;const E=t.find(v=>tt(v,S));if(E!=null)return E;const A=S.id;return A!=null&&A!==""?null:S}))},[t,u]),c.useEffect(()=>{!u&&r!=null&&d({...r})},[u,r]);const f=c.useCallback(y=>{a(y),l(!1),d({...y})},[]),p=c.useCallback(()=>l(!0),[]),h=c.useCallback(()=>l(!1),[]),w=c.useCallback((y,S)=>{o(y),a(S),l(E=>(E&&(m.current=!0),!1))},[]),b=c.useCallback(y=>{o(S=>S.filter(E=>!tt(E,y))),a(null)},[]);return{list:n,setList:o,selected:r,setSelected:a,isEditing:u,setIsEditing:l,editForm:s,setEditForm:d,openDetail:f,startEditing:p,cancelEditing:h,commitEdit:w,remove:b}}const kt=()=>{const[e,t,n]=vt().split("-");return{year:e,month:t,day:n}},Di={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Bi(e=[]){const{list:t,setList:n,selected:o,setSelected:r,isEditing:a,setIsEditing:u,editForm:l,setEditForm:s,openDetail:d,commitEdit:m}=Yr(Di,e),{year:g,month:f,day:p}=kt(),[h,w]=c.useState({year:g,month:f,day:p,hour:"09",minute:"00",memo:""});return{visitHistory:t,visitForm:h,setVisitForm:w,setVisit:b=>y=>w(S=>({...S,[b]:y})),selectedVisit:o,setSelectedVisit:r,isEditingVisit:a,setIsEditingVisit:u,editVisitForm:l,setEditVisitForm:s,openVisitDetail:d,handleVisitSave:b=>{n(A=>[h,...A]);const{year:y,month:S,day:E}=kt();w({year:y,month:S,day:E,hour:"09",minute:"00",memo:""}),b?.()},handleVisitEditSave:()=>{m(b=>b.map(y=>o!=null&&tt(y,o)?l:y),l)},addVisit:b=>{n(y=>[b,...y])},removeVisit:b=>{n(y=>y.filter(S=>!tt(S,b)))},revertVisitEdit:(b,y)=>{n(S=>S.map(E=>E===y?b:E)),r(S=>S===y?b:S)}}}const zr=e=>`${e.year.padStart(4,"0")}-${e.month.padStart(2,"0")}-${e.day.padStart(2,"0")} ${e.hour.padStart(2,"0")}:${e.minute.padStart(2,"0")}`,xt=e=>[...e].sort((t,n)=>{const o=zr(t),r=zr(n);return o<r?-1:o>r?1:0}),vi={year:"",month:"",day:"",hour:"09",minute:"00",memo:""};function Ni(e,t=[]){const n=c.useMemo(()=>xt(t),[t]),{list:o,setList:r,selected:a,setSelected:u,isEditing:l,setIsEditing:s,editForm:d,setEditForm:m,openDetail:g,commitEdit:f,remove:p}=Yr(vi,n),[h,w]=c.useState([]),{year:b,month:y,day:S}=kt(),[E,A]=c.useState({year:b,month:y,day:S,hour:"09",minute:"00",memo:""}),v=k=>x=>A(q=>({...q,[k]:x})),L=k=>{r(ce=>xt([...ce,E]));const{year:x,month:q,day:Q}=kt();A({year:x,month:q,day:Q,hour:"09",minute:"00",memo:""}),k?.()},B=()=>{f(k=>xt(k.map(x=>a!=null&&tt(x,a)?d:x)),d)},I=c.useCallback(k=>{p(k)},[p]),P=c.useCallback(k=>{e({year:k.year,month:k.month,day:k.day,hour:k.hour,minute:k.minute,memo:k.memo,...k.id!=null?{id:k.id}:{}}),p(k)},[e,p]),O=c.useCallback(k=>{r(x=>x.filter(q=>!tt(q,k))),w(x=>[k,...x]),u(null)},[r,u]),G=c.useCallback(k=>{r(x=>xt([...x,k]))},[r]),Y=c.useCallback(k=>{r(x=>x.filter(q=>!tt(q,k)))},[r]),V=c.useCallback((k,x)=>{r(q=>xt(q.map(Q=>Q===x?k:Q))),u(q=>q===x?k:q)},[r,u]);return{scheduleList:o,noShowList:h,addSchedule:G,removeSchedule:Y,revertScheduleEdit:V,scheduleForm:E,setScheduleForm:A,setSchedule:v,selectedSchedule:a,setSelectedSchedule:u,isEditingSchedule:l,setIsEditingSchedule:s,editScheduleForm:d,setEditScheduleForm:m,openScheduleDetail:g,handleScheduleSave:L,handleScheduleEditSave:B,handleScheduleDelete:I,handleScheduleToVisit:P,handleScheduleNoVisit:O}}const pt=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}];function Oi(e){const{t}=Le.useTranslation(),[n,o]=c.useState(""),[r,a]=c.useState("25"),[u,l]=c.useState("all"),[s,d]=c.useState(1),m=c.useCallback(b=>{a(y=>{const S=typeof b=="function"?b(y):b;return pt.some(E=>E.value===S)?S:y})},[]),g=c.useMemo(()=>e.filter(({item:b,status:y})=>!(n&&!b.memo.includes(n)||u!=="all"&&y!==u)),[e,n,u]),f=Math.max(1,Math.ceil(g.length/Number(r))),p=Number.isFinite(s)?Math.min(Math.max(1,Math.floor(s)),f):1,h=c.useMemo(()=>g.slice((p-1)*Number(r),p*Number(r)),[g,p,r]),w=c.useMemo(()=>pt.map(b=>({...b,label:t("common.pageSizeLabel",{n:b.value,defaultValue:b.label})})),[t]);return{vapSearch:n,setVapSearch:o,vapPageSize:r,setVapPageSize:m,vapPageSizeOptions:w,vapStatus:u,setVapStatus:l,vapPage:p,setVapPage:d,vapFiltered:g,vapTotal:f,vapPageItems:h}}const Li=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Kr(e,t){return Li().compare(e,t)}const En=new Map;function Ri(e){const t=En.get(e);if(t)return t;const n=[],o=/-?\d+(?:\.\d+)?/g;let r=0;for(let a=o.exec(e);a;a=o.exec(e)){let u=a.index,l=a[0];l[0]==="-"&&u>0&&!/\s/.test(e[u-1])&&(u+=1,l=l.slice(1)),u>r&&n.push(e.slice(r,u)),n.push(Number(l)),r=a.index+a[0].length}return r<e.length&&n.push(e.slice(r)),En.size>5e3&&En.clear(),En.set(e,n),n}function Ii(e){if(!/^[\d\s-]+$/.test(e))return null;const t=e.replace(/\D/g,"");return t.length<9||t.length>11?null:t[0]==="0"||t[0]==="1"&&e!==t?t:null}function Mi(e,t){const n=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),o=n(e),r=n(t);if(o===r)return 0;const a=(d,m)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const g=Ii(m);return g!==null?[g]:Ri(m)},u=a(e,o),l=a(t,r),s=Math.min(u.length,l.length);for(let d=0;d<s;d++){const m=u[d],g=l[d];if(typeof m=="number"&&typeof g=="number"){if(m!==g)return m-g;continue}if(typeof m=="number")return-1;if(typeof g=="number")return 1;const f=Kr(m,g);if(f!==0)return f}return u.length!==l.length?u.length-l.length:Kr(o,r)}const qr=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function Pi(e,t,n){const o=qr(e),r=qr(t);if(o||r)return o===r?0:o?1:-1;const a=Mi(e,t);return n?a:-a}function ki(e,t,n){const{t:o}=Le.useTranslation(),[r,a]=c.useState(()=>{const h=n?.initialPageSize;return h&&pt.some(w=>w.value===h)?h:"25"}),[u,l]=c.useState(1),[s,d]=c.useState(t);Object.is(s,t)||(d(t),u!==1&&l(1));const m=c.useMemo(()=>pt.map(h=>({...h,label:o("visits.showN",{n:h.value})})),[o]),g=c.useCallback(h=>{pt.some(w=>w.value===h)&&(a(h),l(1))},[]),f=Math.max(1,Math.ceil(e.length/Number(r))),p=Math.min(Math.max(1,Number.isFinite(u)?Math.floor(u):1),f);return u!==p&&l(p),{pageRows:c.useMemo(()=>e.slice((p-1)*Number(r),p*Number(r)),[e,p,r]),pageSizeProps:{options:m,value:r,onChange:g},paginationProps:{page:p,total:f,onChange:l},setPage:l}}function xi(e){const[t,n]=c.useState(()=>e?.defaultKey!=null?{key:e.defaultKey,asc:e.defaultAsc??!0}:null),o=c.useRef(t),r=c.useRef(e?.onSortChange);r.current=e?.onSortChange;const a=c.useCallback(s=>{const d=o.current,m=d?.key===s?{key:s,asc:!d.asc}:{key:s,asc:!0};o.current=m,n(m),r.current?.(m)},[]),u=c.useCallback((s,d)=>({label:s,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>a(d)}),[t,a]),l=c.useCallback((s,d)=>{if(!t)return s;const{key:m,asc:g}=t;return[...s].sort((f,p)=>Pi(d(f,m),d(p,m),g))},[t]);return{sort:t,field:u,sortRows:l}}const Jr=e=>e==="left"||e==="right"?e:null;function Fi(){const[e,t]=c.useState(!1),[n,o]=c.useState("left"),[r,a]=c.useState({left:null,right:null}),[u,l]=c.useState({left:[],right:[]}),[s,d]=c.useState(!1),[m,g]=c.useState("left"),f=c.useCallback(h=>{const w=Jr(h.direction);w&&(a(b=>({...b,[w]:h})),l(b=>({...b,[w]:[h,...b[w]]})),t(!1))},[]),p=c.useCallback(h=>{const w=Jr(h.direction);w&&(a(b=>({...b,[w]:h})),d(!1))},[]);return{showDevice:e,setShowDevice:t,deviceDirection:n,setDeviceDirection:o,devices:r,setDevices:a,deviceHistory:u,setDeviceHistory:l,showDeviceList:s,setShowDeviceList:d,listForSide:m,setListForSide:g,handleDeviceSubmit:f,handleSelectFromList:p}}const ke="\uC804\uCCB4",ji="__ihab_core_word_pool__";function An(){return globalThis[ji]??null}function K(e,t=Math.random){const n=e.slice();for(let o=n.length-1;o>0;o--){const r=Math.floor(t()*(o+1));[n[o],n[r]]=[n[r],n[o]]}return n}function $e(e,t,n=Math.random){return!Array.isArray(e)||e.length===0||t<=0?[]:t>=e.length?K(e,n):K(e,n).slice(0,t)}const ao={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}},uo=pe.indexOf("\u3147"),Tn={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==uo},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0&&e.cho!==uo},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0&&!Sn[e.jong]&&e.cho!==uo}},lo={cho:pe,jung:Te,jong:Oe},de=e=>Array.isArray(e)?e.length>0:!!e;function io(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const o=e[n],r=t[n];if(!(!o||!r)&&(o.cho!==r.cho&&pe[o.cho]==="\u3147"!=(pe[r.cho]==="\u3147")||o.jung!==r.jung&&ui(Te[o.jung],Te[r.jung])||o.jong!==r.jong&&o.jong===0!=(r.jong===0)))return!0}return!1}function $i(e,t,n){const o=n.pronOf(e),r=n.decompOf,a=n.sameStructureOnly&&r?r(o):null,u=[];for(const l of t)l!==e&&(n.okSet&&!n.okSet.has(l)||n.pronOf(l)!==o&&(a&&r&&io(a,r(n.pronOf(l)))||u.push(l)));return u}function Xr(e,t,n){const o=t?.[e];if(!o)return[];const r=n.kind?o[n.kind]??[]:[...o.cho??[],...o.jung??[],...o.jong??[]];return $i(e,r,n)}function Hi(e,t,n,o,r,a,u){const l=["cho","jung","jong"].filter(f=>de(e[f])),s={};for(const f of l){const p=e[f];s[f]=new Set(Array.isArray(p)?p:[p])}const d=r==="pron",m=new Map;for(const f of t){const p=n(a(f));if(p.some(y=>!y))continue;let h=p;if(!d&&(h=n(f),h.length!==p.length||h.some(y=>!y)))continue;const w=p.length,b=m.get(w);b?b.push({w:f,dPron:p,dPos:h}):m.set(w,[{w:f,dPron:p,dPos:h}])}const g=new Map;for(const[f,p]of m){const h=new Map,w=(b,y)=>{const S=b.dPos[y];return S!=null&&l.every(E=>s[E].has(lo[E][S[E]]))};for(const b of p){let y;if(u==="head")y=w(b,0)?0:-1;else if(u==="tail")y=w(b,f-1)?f-1:-1;else if(u==="mid"){const E=l.includes("cho")?1:0,A=l.includes("jong")?f-2:f-1;y=-1;for(let v=E;v<=A;v++)if(w(b,v)){y=v;break}}else y=b.dPos.findIndex(E=>E!=null&&l.every(A=>s[A].has(lo[A][E[A]])));if(y<0)continue;const S=h.get(y);S?S.push(b):h.set(y,[b])}for(const[b,y]of h){const S=l.includes("cho"),E=l.includes("jung"),A=l.includes("jong"),v=B=>{let I="";for(let P=0;P<f;P++){const O=B[P];P===b?I+=(S?"*":O.cho)+"."+(E?"*":O.jung)+"."+(A?"*":O.jong)+".":I+=O.cho+"."+O.jung+"."+O.jong+"."}return I},L=new Map;for(const B of p){const I=v(B.dPron),P=L.get(I);P?P.push(B):L.set(I,[B])}for(const B of y){const I=L.get(v(B.dPron))??[],P=[];for(const O of I){if(O.w===B.w)continue;let G=!0;for(const Y of l){const V=B.dPron[b][Y],k=O.dPron[b][Y];if(k===V){G=!1;break}if(d&&s[Y].has(lo[Y][k])){G=!1;break}}G&&(o&&io(B.dPron,O.dPron)||P.push(O.w))}g.set(B.w,P)}}}return g}const Gi=e=>e==null?[]:Array.isArray(e)?e:[e];function Wi(e){if([...e].length!==1)return"";const t=X(e);if(!t)return"";const n=Ot(Oe[t.jong]),o=n===""?0:Oe.indexOf(n);return ze(t.cho,t.jung,o<0?0:o)}function Qr(e,t){return t.get(e)||Wi(e)||e}function _n(e){return e?de(e.cho)?"cho":de(e.jung)?"jung":de(e.jong)?"jong":null:null}function nt(e,t){const n=(r,a)=>!de(r)||Gi(r).includes(a),o=t.jongNone?e.jong===0:n(t.jong,Oe[e.jong]);return n(t.cho,pe[e.cho])&&n(t.jung,Te[e.jung])&&o}function Ft(e,t,n){const o=[...e];if(n!=="pron")return o.map(a=>X(a));const r=[...t.get(e)||e];return r.length!==o.length?o.map(a=>X(a)):r.map(a=>X(a))}function jt(e,t,n,o,r){const a=t==="cho"?pe:t==="jung"?Te:Oe,u=e[t],l=[],s=g=>t==="jung"?Ui(Qr(g,r)):Qr(g,r),d=new Map([[s(n),-1]]),m=K(a.map((g,f)=>f).filter(g=>g!==u&&(t!=="cho"||a[g]!=="\u3147")&&(t!=="jong"||g!==0)));for(const g of m){if(l.length>=o)break;const f=t==="cho"?ze(g,e.jung,e.jong):t==="jung"?ze(e.cho,g,e.jong):ze(e.cho,e.jung,g),p=s(f),h=d.get(p);if(h!==void 0){t==="jung"&&h>=0&&r.has(f)&&!r.has(l[h])&&(l[h]=f);continue}d.set(p,l.length),l.push(f)}return l}const Vi={\u3154:"\u3150",\u3156:"\u3152",\u315A:"\u3159",\u315E:"\u3159"};function Ui(e){if([...e].length!==1)return e;const t=X(e);if(!t)return e;const n=Vi[Te[t.jung]];return n?ze(t.cho,Te.indexOf(n),t.jong):e}function Yi(e,t,n,o,r,a=null){const u=[...e];if(u.length!==2)return null;const l=u.map(g=>X(g));if(l.some(g=>!g))return null;const s=Ft(e,n,o);if(s.some(g=>!g))return null;const d=_n(t);let m=d&&t?s.map((g,f)=>nt(g,t)?f:-1).filter(g=>g>=0):[0,1];if(a!=null&&(m=m.filter(g=>g!==a)),!m.length)return null;for(const g of K(m)){const f=u[g];if(!r.has(f))continue;const p=jt(l[g],d??"cho",f,40,n),h=[];for(const w of p)if(w!==f&&r.has(w)&&!h.includes(w)&&h.push(w),h.length>=2)break;if(!(h.length<2))return{question:e,distractors:[f,...h]}}return null}function zi(e,t,n,o,r,a=null){const u=[...e];if(u.length!==3)return null;const l=u.map(g=>X(g));if(l.some(g=>!g))return null;const s=Ft(e,n,o);if(s.some(g=>!g))return null;const d=_n(t),m=d&&t?s.map((g,f)=>nt(g,t)?f:-1).filter(g=>g>=0):[0,1,2];if(!m.length)return null;for(const g of K(m))for(const f of K([0,1,2].filter(p=>p!==g&&(a==null||p===a)))){const p=[0,1,2].filter(S=>S!==f),h=p.map(S=>u[S]).join("");if(!r.has(h))continue;const w=p.indexOf(g),b=jt(l[g],d??"cho",u[g],40,n),y=[];for(const S of b){const E=p.map(v=>u[v]);E[w]=S;const A=E.join("");if(A!==h&&r.has(A)&&!y.includes(A)&&y.push(A),y.length>=2)break}if(!(y.length<2))return{question:e,distractors:[h,...y]}}return null}function Ki(e,t,n,o,r,a=null){const u=[...e],l=u.length;if(l<2)return null;const s=[];for(let m=1;m<=l-1;m++)s.push({remain:u.slice(0,m).join(""),dropped:u.slice(m).join(""),droppedEnd:1}),s.push({remain:u.slice(l-m).join(""),dropped:u.slice(0,l-m).join(""),droppedEnd:0});const d=_n(t);for(const{remain:m,dropped:g,droppedEnd:f}of K(s)){if(a!=null&&f!==a||[...m].length===1&&[...g].length===1||m===e||!r.has(m)||!r.has(g))continue;const p=[...m],h=p.map(y=>X(y));if(h.some(y=>!y))continue;const w=Ft(m,n,o);if(w.some(y=>!y))continue;const b=d&&t?w.map((y,S)=>nt(y,t)?S:-1).filter(y=>y>=0):p.map((y,S)=>S);if(b.length)for(const y of K(b)){const S=jt(h[y],d??"cho",p[y],40,n),E=[];for(const A of S){const v=[...p];v[y]=A;const L=v.join("");if(L!==m&&r.has(L)&&!E.includes(L)&&E.push(L),E.length>=2)break}if(E.length>=2)return{question:e,distractors:[m,...E],dropped:g}}}return null}function qi(e,t,n,o,r,a=null){if([...e].length!==1)return null;const u=X(n.get(e)||e);if(!u||u.jong===0)return null;const l=ze(u.cho,u.jung,0),s=jt({cho:u.cho,jung:u.jung,jong:0},"cho",l,2,n);return s.length<2?null:{question:e,distractors:[l,...s]}}const so=pe.indexOf("\u3147");function Ji(e,t,n,o,r,a=null){if([...e].length!==1)return null;const u=X(n.get(e)||e);if(!u||u.jong!==0||u.cho===so)return null;const l=ze(so,u.jung,0),s=jt({cho:so,jung:u.jung,jong:0},"jung",l,2,n);return s.length<2?null:{question:e,distractors:[l,...s]}}function Xi(e){const t=new Map;for(const n of e){const o=[...n],r=o.length;if(!(r<2||r>3))for(let a=0;a<r;a++){let u=r+"|"+a+"|";for(let s=0;s<r;s++)u+=s===a?"*":o[s];const l=t.get(u);l?l.push(n):t.set(u,[n])}}return t}function Qi(e,t,n,o,r,a=null,u=null,l=2){const s=[...e],d=s.length;if(d<2||d>3)return null;const m=s.map(S=>X(S));if(m.some(S=>!S))return null;const g=Ft(e,n,o);if(g.some(S=>!S))return null;const f=S=>n.get(S)??S,p=f(e),h=!!t&&(de(t.cho)||de(t.jung)||de(t.jong)),w=!!u&&(de(u.cho)||de(u.jung)||de(u.jong)),b=S=>{let E=d+"|"+S+"|";for(let A=0;A<d;A++)E+=A===S?"*":s[A];return E};let y;if(a!=null){if(a>=d||h&&!nt(g[a],t))return null;y=[a]}else h?y=g.map((S,E)=>nt(S,t)?E:-1).filter(S=>S>=0):y=Array.from({length:d},(S,E)=>E);for(const S of K(y)){const E=r.get(b(S))??[],A=[],v=[];for(const O of E){if(O===e)continue;const G=[...O].map(x=>X(x)),Y=m[S],V=G[S];if(!Y||!V)continue;let k=0;if(Y.cho!==V.cho&&k++,Y.jung!==V.jung&&k++,Y.jong!==V.jong&&k++,!(k<l||f(O)===p))if(w){const x=Ft(O,n,o)[S];x&&nt(x,u)?A.push(O):v.push(O)}else A.push(O)}if(!A.length)continue;const L=K(A)[0],B=[],I=new Set([p,f(L)]),P=w?v:A.filter(O=>O!==L);for(const O of K(P)){const G=f(O);if(!I.has(G)&&(I.add(G),B.push(O),B.length>=2))break}if(!w&&B.length<2)for(const O of K(E)){if(O===e||O===L)continue;const G=f(O);if(!I.has(G)&&(I.add(G),B.push(O),B.length>=2))break}if(!(B.length<2))return{question:e,distractors:[L,...B]}}return null}var Zi={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",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",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},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",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",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",collapseFor:"{{name}} \uC811\uAE30",expandFor:"{{name}} \uD3BC\uCE58\uAE30",sortFor:"{{name}} \uC815\uB82C",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",loading:"\uBD88\uB7EC\uC624\uB294 \uC911",playFor:"{{name}} \uC7AC\uC0DD",pauseFor:"{{name}} \uBA48\uCDA4",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.",noMatches:"\uB9DE\uB294 \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.",add:"\uCD94\uAC00"},es={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],weekOrdinal:["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"],yearMonthCompact:"{{year}}.{{month}}",weekLabel:"{{ord}}\uC8FC",weekLabelCompact:"{{ord}}\uC8FC",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",visitCount:"\uBC29\uBB38 {{count}}\uAC74",statusCount:"{{label}} {{count}}\uAC74"},ts={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",expired:"\uB9CC\uB8CC\uB428",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},ns={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},os={selected:"\uC120\uD0DD\uB428"},rs={placeholder:"\uC120\uD0DD"},as={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},us={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"},ls={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",feedback:"\uBC84\uADF8\uC2E0\uACE0",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",badgeInsideLabel:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"},is={cache:{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"}}}},ss={couponButton:"\uCFE0\uD3F0 \uC785\uB825"},cs={security:{password:{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."}}},ds={settings:"\uC124\uC815",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:"\uB09C\uC774\uB3C4",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",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",playSoundFor:"{{name}} \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",previewFor:"{{name}} \uBBF8\uB9AC \uB4E3\uAE30",stopFor:"{{name}} \uC815\uC9C0",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",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",replaySound:"{{no}}\uBC88 \uB2E4\uC2DC \uB4E3\uAE30",replaySoundStop:"{{no}}\uBC88 \uB4E3\uAE30 \uBA48\uCDA4",done:"\uC644\uB8CC",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:{synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026",preparing:"\uC18C\uB9AC\uB97C \uC900\uBE44\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"}},fs={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addButton:"\uAE30\uAE30 \uCD94\uAC00",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",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D"},visitHistory:{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"},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"},consent:{record:"\uB3D9\uC758 \uBC1B\uAE30",kinds:"\uBC1B\uC740 \uAC08\uB798",methodTitle:"\uBC1B\uC740 \uBC29\uBC95",sourceTitle:"\uC218\uC9D1 \uCD9C\uCC98",day:"\uBC1B\uC740 \uB0A0",note:"\uBA54\uBAA8",notePlaceholder:"\uC758\uB8B0\uAE30\uAD00 \uC774\uB984 \uB4F1 \u2014 \uBBFC\uAC10\uD55C \uB0B4\uC6A9\uC740 \uC801\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4",submit:"\uC800\uC7A5\uD558\uAE30",allTaken:"\uC138 \uAC08\uB798\uB97C \uC774\uBBF8 \uB2E4 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uBC1B\uC73C\uB824\uBA74 \uBA3C\uC800 \uCCA0\uD68C\uD558\uC138\uC694.",kind:{personal:"\uC77C\uBC18 \uAC1C\uC778\uC815\uBCF4",sensitive:"\uBBFC\uAC10\uC815\uBCF4(\uCCAD\uB825\xB7\uC9C4\uB2E8)",marketing:"\uAD11\uACE0\uC131 \uC815\uBCF4 \uC218\uC2E0"},method:{paper:"\uC11C\uBA74",verbal:"\uAD6C\uB450",electronic:"\uC804\uC790"},source:{self:"\uBCF8\uC778",guardian:"\uBCF4\uD638\uC790",referral:"\uC758\uB8B0\uAE30\uAD00"}}},gs={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"}}}},ms={input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9"},ps={showN:"{{n}}\uAC1C\uC529"},Cs={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."}},hs={newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},ys={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},bs={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",caption:"\uC720\uD615",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",topInfo:"\uC0C1\uB2E8 \uC815\uBCF4",bottomInfo:"\uD558\uB2E8 \uC815\uBCF4",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",copyItem:"\uD55C \uCE78 \uB354",copyItemAria:"{{n}}\uBC88 \uCE78 \uB0B1\uB9D0\uC744 \uD55C \uCE78 \uB354",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",viewLabel:"\uBCF4\uAE30 \uBC29\uC2DD",sortLabel:"\uC815\uB82C",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"}},publisherFilter:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \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",scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\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 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74, \uC790\uD310\uC73C\uB85C\uB294 \uCE78\uC5D0 \uCD08\uC810\uC774 \uAC00\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",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"},thumbMore:"+{{count}}",replaceItem:"\uB2E4\uB978 \uB2E8\uC5B4\uB85C",replacePair:"\uB2E4\uB978 \uC30D\uC73C\uB85C",replaceItemAria:"{{n}}\uBC88 \uCE78\uB9CC \uB2E4\uB978 \uB2E8\uC5B4\uB85C",replacePairAria:"{{n}}\uBC88 \uCE78\uB9CC \uB2E4\uB978 \uC30D\uC73C\uB85C",thumbMoreAria:"\uADF8 \uBC16 {{count}}\uCE78: {{words}}",pickForm:"\uB2E4\uB978 \uAF34\uB85C",pickFormAria:"{{n}}\uBC88 \uCE78 \uB0B1\uB9D0\uC744 \uB2E4\uB978 \uAF34\uB85C",pickFormBaseAria:"\uAE30\uBCF8\uD615 \uB0B1\uB9D0\uC744 \uB2E4\uB978 \uAF34\uB85C"},Ss={filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB09C\uC774\uB3C4",grade:"{{n}}\uB4F1\uAE09",age:"{{n}}\uC138",agePlus:"{{n}}\uC138 \uC774\uC0C1",ageRange:"{{from}}\uC138~{{to}}\uC138",difficultyInfoAge:"3\uC138~7\uC138: \uAC00\uC7A5 \uC26C\uC6B4 \uB0B1\uB9D0(1\uB4F1\uAE09)\uC744 \uB610\uB798\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4.",difficultyInfoGrade:"2~4\uB4F1\uAE09: \uADF8\uBCF4\uB2E4 \uC5B4\uB824\uC6B4 \uB0B1\uB9D0\uC774\uACE0, \uB098\uC774\uB85C\uB294 \uB098\uB204\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",difficultyInfoNone:"\uC5C6\uC74C: \uB09C\uC774\uB3C4\uAC00 \uB9E4\uACA8\uC9C0\uC9C0 \uC54A\uC740 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.",difficultyInfoBandAge:"{{ages}}: {{grade}} \uB0B1\uB9D0\uC744 \uB098\uC774\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4.",difficultyInfoBandAgeOne:"{{ages}}: {{grade}} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.",difficultyInfoBandGrade:"{{grade}}: {{ages}} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.",difficultyInfoBandAgeNamed:"{{ages}}: \uB098\uC774\uB85C \uB098\uB208 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.",gradeNone:"\uC5C6\uC74C",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",field:"\uC758\uBBF8\uBC94\uC8FC",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"},ws={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removePairFor:"{{name}} \uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30",removeWordFor:"{{name}} \uBE7C\uAE30"},Es={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"}},As={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",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",other:"\uAE30\uD0C0"}},Ts={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",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"}},_s={phonemeSelect:{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",countLabel:"\uC74C\uC18C \uAC1C\uC218",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:["1\uB4F1\uAE09 : \uD559\uB839\uC804\uAE30\uC5D0 \uC2B5\uB4DD\uD558\uC5EC \uD3C9\uC0DD\uC5D0 \uAC78\uCCD0 \uC77C\uC0C1 \uC5B8\uC5B4\uC0DD\uD65C\uC744 \uD558\uB294 \uB370 \uC0AC\uC6A9\uB418\uB294 \uC5B4\uD718","2\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 1-2\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","3\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 3-4\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","4\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 5-6\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","\uB4F1\uAE09\uC5C6\uC74C : \uAD6D\uB9BD\uAD6D\uC5B4\uC6D0 \uD45C\uC900 \uC5B4\uD718 \uC678 \uACE0\uBE48\uB3C4 \uC0DD\uD65C \uC5B4\uD718, \uC2E0\uC870\uC5B4 \uBC0F \uC678\uB798\uC5B4"],selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlyHighUsage:"\uD65C\uC6A9\uB3C4 \uB192\uC740 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},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."]},Ds={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
2
2
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
3
|
-
\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"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",bizNo:"\uC0AC\uC5C5\uC790\uB4F1\uB85D\uBC88\uD638",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",bizNoValue:"526-81-02926"},Bs={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},vs={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"},Ns={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30",showPassword:"\uBE44\uBC00\uBC88\uD638 \uBCF4\uAE30"},Os={ariaLabel:"\uC120\uD0DD \uD0ED"},Ls={ariaLabel:"\uD0ED"},Rs={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Is={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Ms={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"}},Ps={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",done:"\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",detailFor:"{{name}} \uC0C1\uC138\uBCF4\uAE30"},ks={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"}},xs={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},Fs={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.",runs:"{{count}}\uD310"},js={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654",scrollRegion:"\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C",rowActionHint:"\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4"},$s={viewWords:"\uB0B1\uB9D0"},Hs={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Gs={chooseDate:"\uB0A0\uC9DC \uC120\uD0DD",selectYear:"\uC5F0 \uC120\uD0DD",selectMonth:"\uC6D4 \uC120\uD0DD"},Ws={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Vs={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Us={place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},Ys={clearSelection:"\uC120\uD0DD \uD574\uC81C"},zs={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Ks={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},qs={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Js={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Xs={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},Qs={list:"\uD3F4\uB354",open:"{{name}} \uD3F4\uB354 \uC5F4\uAE30, {{count}}\uAC1C",menu:"{{name}} \uD3F4\uB354 \uBA54\uB274",placeMenu:"{{name}} \uBA54\uB274",tree:"\uD3F4\uB354 \uAD6C\uC870 \uBCF4\uAE30",fold:"{{name}} \uC811\uAE30",unfold:"{{name}} \uD3BC\uCE58\uAE30",add:{title:"\uD3F4\uB354 \uCD94\uAC00",sub:"\uC0C8 \uD3F4\uB354 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uD3F4\uB354 \uC774\uB984"}},Zs={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},ec={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"},tc={common:Zi,calendar:es,passCard:ts,rating:ns,colorPicker:os,dropdown:rs,accordion:as,header:us,nav:ls,settings:is,usage:ss,account:cs,training:ds,customers:fs,payment:gs,coupons:ms,visits:ps,trainingType:Cs,myWordTable:hs,keyWords:ys,wordTable:bs,wordSearch:Ss,wordPrint:ws,topic:Es,device:As,manager:Ts,wordPairs:_s,footer:Ds,date:Bs,wordData:vs,textField:Ns,segmentedControl:Os,tabs:Ls,fileUpload:Rs,avatar:Is,myHomework:Ms,trainingStatus:Ps,store:ks,progress:xs,trainingMiss:Fs,table:js,wordScore:$s,topBanner:Hs,datePicker:Gs,report:Ws,tooltip:Vs,phonemeProfile:Us,bulkBar:Ys,debug:zs,badge:Ks,loader:qs,soundCompass:Js,breadcrumb:Xs,folder:Qs,board:Zs,promoBannerBg:ec},nc={filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Difficulty",grade:"Grade {{n}}",age:"Age {{n}}",agePlus:"Age {{n}}+",ageRange:"Age {{from}}\u2013{{to}}",difficultyInfoAge:"Age 3\u20137: the easiest words (grade 1), split by age.",difficultyInfoGrade:"Grades 2\u20134: harder words, not split by age.",difficultyInfoNone:"None: words with no difficulty assigned.",difficultyInfoBandAge:"{{ages}}: {{grade}} words, split by age.",difficultyInfoBandAgeOne:"{{ages}}: {{grade}} words.",difficultyInfoBandGrade:"{{grade}}: words for {{ages}}.",difficultyInfoBandAgeNamed:"{{ages}}: words split by age.",gradeNone:"None",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",field:"Semantic Category",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"}},oc={filter:{onlyHighUsage:"High-use words only"}},rc={wordSearch:nc,wordPairs:oc};const ac="0.447.0";var Zr;const uc=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],co="ko",lc="ihab_display_language",fo={en:()=>Promise.resolve().then(function(){return sg})},Dn=new Set(["ko"]),go={},$t=e=>e.split("-")[0];function ea(e){const t=$t(e),n=fo[t];return!n||Dn.has(t)?Promise.resolve():go[t]??(go[t]=n().then(o=>{const r=o.default??o;ue.addResourceBundle(t,"translation",r,!0,!1),Dn.add(t)},o=>{throw go[t]=void 0,o}))}function ta(){if(typeof window>"u")return co;try{const e=localStorage.getItem(lc);if(e&&uc.some(t=>t.code===e))return e}catch{}return co}function na(e){try{document.documentElement.lang=e}catch{}}ue.on("languageChanged",na),na(ta());const oa=(Zr=ue).__ihabRawChangeLanguage??(Zr.__ihabRawChangeLanguage=ue.changeLanguage);ue.changeLanguage=oa,ue.use(Le.initReactI18next).init({resources:{ko:{translation:tc},en:{translation:rc}},lng:ta(),fallbackLng:co,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const mo=oa.bind(ue);let po;ue.changeLanguage=((e,t)=>{if(po=e,!e||Dn.has($t(e))||!fo[$t(e)])return mo(e,t);const n=()=>po===e?mo(e,t):Promise.resolve(ue.t);return ea(e).then(n,o=>(console.error(o),n()))});{const e=ue.language;e&&!Dn.has($t(e))&&fo[$t(e)]&&ea(e).then(()=>{ue.language===e&&(po??e)===e&&mo(e)},t=>console.error(t))}const ra=new Set(["field"]),Co="none";function ic(e){return e==null||String(e).trim()===""}function ho(e){return typeof e!="string"?!1:Ht.includes(e)||e===Co||ua.test(e)||la.test(e)}function yo(e,t,n){if(!e)return!0;const o=e instanceof Set?e:new Set(e);if(o.size===0)return!0;if(n!=null){if(o.has(`age${n}`))return!0;for(const r of o){const a=bo(r);if(a!=null&&n>=a)return!0}}return ic(t)?o.has(Co):o.has(String(t))}const Ct=["grade","syllables","pos","wordType","field"],Ht=["1","2","3","4","5"],aa=99,ua=/^age([1-9]\d?)$/,la=/^age([1-9]\d?)plus$/;function ia(e){const t=ua.exec(e);return t?Number(t[1]):null}function bo(e){const t=la.exec(e);return t?Number(t[1]):null}function So(e){if(!Array.isArray(e)||e.length===0||e.length>Ht.length)return null;const t=[];let n=1;for(let r=0;r<e.length;r++){const a=e[r];if(!a||a.grade!==r+1||typeof a.showAge!="boolean")return null;const u=a.showAge?void 0:sc(a.label);if(u===null)return null;const l={grade:a.grade,minAge:n,maxAge:null,showAge:a.showAge};if(u&&(l.label=u),r===e.length-1){if(a.maxAge!==null)return null;t.push(l);break}const s=a.maxAge;if(typeof s!="number"||!Number.isInteger(s)||s<n||s>=aa)return null;l.maxAge=s,t.push(l),n=s+1}const o=t.flatMap(r=>r.label?[r.label]:[]);return new Set(o).size!==o.length?null:(cc(t),t)}function sc(e){if(e==null)return;if(typeof e!="string")return null;const t=e.trim();if(t){if(ho(t)||ma.test(t))return null;for(const n of Gt())if(ht(n).reverse.grade.has(t))return null;return t}}const Bn=new Map,sa=new Map;let ca=null;function cc(e){ca=e,Bn.clear();for(const t of e)t.label&&(Bn.set(String(t.grade),t.label),sa.set(t.label,String(t.grade)))}function da(e,t){const n=t===void 0?ca:t;if(!n||n.length===0)return[...e];const o=[],r=l=>{for(const s of l)o.includes(s)||o.push(s)},a=l=>fa([l]),u=l=>n.find(s=>l>=s.minAge&&(s.maxAge==null||l<=s.maxAge));for(const l of e){if(Ht.includes(l)){const m=n.find(g=>String(g.grade)===l);r(m?a(m):[l]);continue}const s=ia(l);if(s!=null){const m=u(s);r(m&&!(m.showAge&&m.maxAge!=null)?a(m):[l]);continue}const d=bo(l);if(d!=null){const m=n.filter(g=>g.maxAge==null||g.maxAge>=d);if(m.length===0){r([l]);continue}for(const g of m)if(g.showAge&&g.maxAge!=null){const f=[];for(let p=Math.max(d,g.minAge);p<=g.maxAge;p++)f.push(`age${p}`);r(f)}else r(a(g));continue}r([l])}return o}function fa(e){const t=[];for(const n of e){if(!n.showAge){t.push(String(n.grade));continue}if(n.maxAge==null){t.push(`age${n.minAge}plus`);continue}for(let o=n.minAge;o<=n.maxAge;o++)t.push(`age${o}`)}return t}const dc=["1","2","3","4","5+"],fc=["noun","verb","modifier"],gc=["native","sino","foreign","mixed"],mc={grade:[],syllables:dc,pos:fc,wordType:gc,field:[]},pc=(e,t)=>e==="grade"?ho(t):mc[e].includes(t),Cc={noun:["\uBA85","\uC218"],verb:["\uB3D9","\uD615"],modifier:["\uBD80","\uAD00"]},hc={native:"\uACE0\uC720",sino:"\uD55C\uC790",foreign:"\uC678\uB798",mixed:"\uD63C\uC885"},yc={grade:["\uB09C\uC774\uB3C4 \uB4F1\uAE09","\uB4F1\uAE09","Grade","Difficulty"]},bc={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)"]}},wo=new Map;try{ue.store?.on?.("added",()=>wo.clear())}catch{}function ht(e){const t=wo.get(e);if(t)return t;const n=ue.getFixedT(e),o={section:{grade:n("wordSearch.filter.difficulty","\uB09C\uC774\uB3C4"),syllables:n("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),pos:n("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:n("wordSearch.filter.wordType","\uC720\uD615"),field:n("wordSearch.filter.field","\uC758\uBBF8\uBC94\uC8FC")},value:{grade:{...Object.fromEntries(Ht.map(r=>[r,n("wordSearch.filter.grade",{n:Number(r),defaultValue:`${r}\uB4F1\uAE09`})])),...Object.fromEntries(ga.map(r=>[`age${r}`,n("wordSearch.filter.age",{n:r,defaultValue:`${r}\uC138`})])),...Object.fromEntries(ga.map(r=>[`age${r}plus`,n("wordSearch.filter.agePlus",{n:r,defaultValue:`${r}\uC138 \uC774\uC0C1`})])),[Co]:n("wordSearch.filter.gradeNone","\uC5C6\uC74C")},syllables:{...Object.fromEntries(["1","2","3","4"].map(r=>[r,n("wordSearch.filter.syllable",{n:Number(r),defaultValue:`${r}\uC74C\uC808`})])),"5+":n("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1")},pos:{noun:n("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)"),verb:n("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)"),modifier:n("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")},wordType:{native:n("wordSearch.filter.type.native","\uACE0\uC720\uC5B4"),sino:n("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4"),foreign:n("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4"),mixed:n("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")},field:{}}};return o.reverse=Object.fromEntries(Ct.map(r=>{const a=new Map;for(const[u,l]of Object.entries(o.value[r]))a.has(l)||a.set(l,u);return[r,a]})),wo.set(e,o),o}const ga=Array.from({length:aa},(e,t)=>t+1),Gt=()=>Array.from(new Set([ue.language,"ko","en"].filter(e=>!!e))),Sc="highUsage";function wc(e){if(e===Sc)return!0;for(const t of Gt())if(ue.getFixedT(t)("wordPairs.filter.onlyHighUsage","\uD65C\uC6A9\uB3C4 \uB192\uC740 \uB2E8\uC5B4\uB9CC")===e)return!0;return!1}function Wt(e){if(Ct.includes(e))return e;for(const t of Gt()){const n=ht(t);for(const o of Ct)if(n.section[o]===e)return o}for(const t of Ct)if(yc[t]?.includes(e))return t;return null}function ot(e,t){if(ra.has(e)||pc(e,t))return t;if(e==="grade"){const n=sa.get(t.trim());if(n)return n}for(const n of Gt()){const o=ht(n).reverse[e].get(t);if(o)return o}for(const[n,o]of Object.entries(bc[e]??{}))if(o.includes(t))return n;if(e==="grade"&&ma.test(t.trim()))return null;if(e==="grade"||e==="syllables"){const n=parseInt(t.replace(/\D/g,""),10);if(Number.isFinite(n)&&n>=1)return e==="grade"?n<=Ht.length?String(n):null:n>=5?"5+":String(n)}return null}const ma=/(^age\s*\d)|((세|살|years?\s*old|yrs?)(\s*(이상|\+|or\s+(older|above|more)))?$)/i;function Ec(e,t,n=ue.language){if(e==="grade"){const o=Bn.get(t);if(o)return o}return ht(n).value[e][t]??t}const Ac=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):typeof e=="string"&&e?[e]:[];function Eo(e){const t={};for(const[n,o]of Object.entries(e??{})){const r=Wt(n);if(r)for(const a of Ac(o)){const u=ot(r,a);if(!u)continue;const l=t[r]??(t[r]=[]);l.includes(u)||l.push(u)}}return t}function Ao(e,t=ue.language){const n=ht(t||"ko"),o={};for(const r of Ct){const a=(r==="grade"?da(e?.[r]??[]):e?.[r]??[]).map(u=>(r==="grade"?Bn.get(u):void 0)??n.value[r][u]??(ra.has(r)?u:void 0)).filter(u=>!!u);a.length&&(o[n.section[r]]=a)}return o}function Tc(e,t=ue.language){const n={};for(const[o,r]of Object.entries(e??{}))Wt(o)||(n[o]=r);return{...n,...Ao(Eo(e),t)}}function _c(e){for(const t of Gt()){const n=ht(t);if(Ct.some(o=>n.section[o]===e))return t}return ue.language||"ko"}let vn=null,pa=null,Ca=null;function Dc(){const e=An();if(e&&e.entries.length>0){const t=It();if(vn&&pa===e&&Ca===t)return vn;const n=new Set,o=[];for(const r of e.entries)!r.word||n.has(r.word)||(n.add(r.word),o.push({w:r.word,s:r.syllables,p:t?.[r.word]?[...t[r.word].cho??[],...t[r.word].jung??[],...t[r.word].jong??[]]:[],pron:r.pronunciation||r.word,grade:r.grade}));return vn=o,pa=e,Ca=t,vn}return[]}const He=new Proxy([],{get(e,t){const n=Dc(),o=n[t];return typeof o=="function"?o.bind(n):o}});function To(e){return e.length?e[Math.floor(Math.random()*e.length)]:void 0}function Re(e,t){if(t>=e.length)return K(e);if(t===0)return[];const n=e.slice();for(let o=0;o<t;o++){const r=o+Math.floor(Math.random()*(n.length-o)),a=n[o];n[o]=n[r],n[r]=a}return n.slice(0,t)}let _o=null,ha=null;function Ke(){const e=An();if(_o&&ha===e)return _o;const t=new Map;for(const n of He)n.w&&t.set(n.w,n.pron);return _o=t,ha=e,t}function fe(e){return Ke().get(e)||e}function Nn(e,t,n=new Set){const o=[];for(const r of K(e)){if(o.length>=t)break;const a=fe(r);n.has(a)||(n.add(a),o.push(r))}return o}let Bc=0;function Ce(e){return`${e}-rt-${++Bc}`}function yt(e){const t=Wr();if(!t||t.total===0){const r=new Set;for(const a of e)r.add(a);return r}const n=wn(),o=new Set;for(const r of e)n.has(r)&&o.add(r);return o}const On=new Map;let ya=null,ba=null,Sa=null;function Vt(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function Do(e){const t=Array.isArray(e.choseong)&&e.choseong.length===0?"[]":Vt(e.choseong),n=e.composition,o=n?.syllable==null?"":Array.isArray(n.syllable)?n.syllable.slice().sort().join(","):String(n.syllable),r=n?`${Vt(n.cho)}/${Vt(n.jung)}/${Vt(n.jong)}/${n.jongNone?"N":""}/${o}`:"",a=Vt(e.grade);return`${e.difficulty??""}|${t}|${r}|${e.excludeNoImage?"1":"0"}|${e.count??""}|x${e.contrastCount??1}|${e.fullCount?"F":""}|s${e.sameStructureOnly===!1?"0":"1"}|v${e.phonemeView==="pron"?"p":"c"}|g${a}|t${e.targetSyllable??""}|c${e.choicesPerItem??""}`}const Bo=new Map;function vc(e){return Do({...e,count:void 0,choicesPerItem:void 0,fullCount:!1})}async function _e(e){const t=An(),n=It(),o=e.excludeNoImage?wn():null;(t!==ya||n!==ba||e.excludeNoImage&&o!==Sa)&&(On.clear(),Bo.clear(),ya=t,ba=n,Sa=o);const r=Do(e);return On.has(r)||On.set(r,Nc(e)),On.get(r)}function wa(e){if(!e)return null;const t=u=>u==null?null:Array.isArray(u)?u.length?u:null:[u],n=t(e.cho),o=t(e.jung),r=!!e.jongNone,a=r?null:t(e.jong);return n||o||a||r?r&&!n&&!o&&!a?u=>di(u):u=>gi(u,{cho:n,jung:o,jong:a,jongNone:r}):null}function Ea(e){const t=e.grade&&e.grade.length>0?new Set(e.grade):null,n=e.composition??null,o=n?.syllable!=null?new Set(Array.isArray(n.syllable)?n.syllable:[n.syllable]):null,r=n?[wa(n),o?u=>o.has(Lt(u)):null].filter(u=>u!=null):[];if(!t&&r.length===0)return null;const a=e.phonemeView==="pron";return u=>{if(!yo(t,u.grade,u.age))return!1;if(r.length===0)return!0;const l=a?fe(u.w):u.w;return r.every(s=>s(l))}}async function Nc(e){const{difficulty:t=null,choseong:n=null,composition:o=null,targetSyllable:r=null,excludeNoImage:a=!1}=e,u=e.grade&&e.grade.length>0?new Set(e.grade):null,l=e.sameStructureOnly??!0,s=e.phonemeView==="pron"?"pron":"char",d=Math.max(1,e.contrastCount??1),m=t==="cho"||t==="jung"||t==="jong",g=m&&d>=2,f=t==="count",p=n?new Set(Array.isArray(n)?n:[n]):null,h=o?.syllable!=null?new Set(Array.isArray(o.syllable)?o.syllable:[o.syllable]):null,w=o?[wa(o),h?R=>h.has(Lt(R)):null].filter(R=>R!=null):[],b=t==="random"||t===null,y=b||f,S=b||g||f;let E=He.filter(R=>!R.w||!yo(u,R.grade,R.age)?!1:S?!0:Array.isArray(R.p)&&R.p.length>0);p&&(E=E.filter(R=>{for(const j of p)if(si(R.w,j))return!0;return!1})),w.length>0&&(E=E.filter(R=>{const j=s==="pron"?fe(R.w):R.w;return w.every(F=>F(j))})),r&&(E=E.filter(R=>R.w[0]===r));let A;if(a){const R=new Set;for(const j of E)if(R.add(j.w),Array.isArray(j.p))for(const F of j.p)R.add(F);if(y)for(const j of He)j.w&&R.add(j.w);A=yt(R)}else{const R=new Set;for(const j of E)if(R.add(j.w),Array.isArray(j.p))for(const F of j.p)R.add(F);if(y)for(const j of He)j.w&&R.add(j.w);A=R}let v=null;if(g){const R=new Set;for(const j of He)j.w&&R.add(j.w);v=a?yt(R):R}const L=E.filter(R=>A.has(R.w)),B=600,I=Array.from(A),P=I.length>B?Re(I,B):I,O=f&&o!=null&&(de(o.cho)||de(o.jung)||de(o.jong)),G=2500,Y=new Map;if(f&&!O&&d>=2){for(const R of I){const j=Lt(R),F=Y.get(j);F?F.push(R):Y.set(j,[R])}for(const[R,j]of Y)j.length>G&&Y.set(R,Re(j,G))}const V=li();let k=null;if(O){const R=vc(e),j=a?wn():null,F=Bo.get(R);k=F&&F.imageOkSet===j?F.map:Hi(o,I,V,l,s,fe),Bo.set(R,{imageOkSet:j,map:k})}const x=500,q=1500,Q=e.fullCount?L:t==="random"?L.length>x?Re(L,x):L:L.length>q?Re(L,q):L,ce=It(),Ae=[];for(const R of Q){let j;const F=fe(R.w);if(g)j=pi(R.w,t,d,v,24).filter(U=>fe(U)!==F);else if(f)O?j=(k.get(R.w)??[]).filter(U=>fe(U)!==F):d<=1?j=Xr(R.w,ce,{okSet:A,pronOf:fe,decompOf:V,sameStructureOnly:!1}):j=(Y.get(Lt(R.w))??[]).filter(U=>{if(U===R.w||fe(U)===F)return!1;const H=Ci(F,fe(U));return d>=5?H>=5:H===d});else if(b){const U=H=>H!==R.w&&H.length===R.w.length&&fe(H)!==F;if(e.fullCount){const H=Math.max(1,(e.choicesPerItem??3)-1),je=[],me=new Set;for(const Ue of P){if(!U(Ue))continue;const lt=fe(Ue);if(!me.has(lt)&&(me.add(lt),je.push(Ue),je.length>=H))break}j=je}else j=P.filter(U)}else{const U=t;j=Xr(R.w,ce,{kind:U,okSet:A,pronOf:fe,decompOf:V,sameStructureOnly:!1}),j.length===0&&(j=(P.length>30?Re(P,30):P).filter(H=>H!==R.w&&ii(R.w,H)===t&&fe(H)!==F))}if(l&&j.length>0&&(m||f&&!O)){const U=V(fe(R.w));j=j.filter(H=>!io(U,V(fe(H))))}j.length!==0&&Ae.push({word:R,usable:j})}return Ae}async function Aa(e,t){const{choicesPerItem:n=3,count:o=10}=t,r=n-1,a=(await _e(t)).filter(l=>l.usable.length>=r),u=[];for(const l of K(a)){if(u.length>=o)break;const s=Nn(l.usable,r);if(s.length<r)continue;const d=K([l.word.w,...s]);u.push({id:Ce(e+"-item"),index:u.length+1,word:l.word.w,syllables:l.word.s,choices:d,answerIndex:d.indexOf(l.word.w)})}return u}async function Oc(e){const{choicesPerItem:t=3,count:n=10}=e,o=t-1,r=await _e({...e,difficulty:null});if(r.length<t)return[];const a=e.composition??null,u=[],l=K([...r]);for(const s of l){if(u.length>=n)break;const d=s.word.w,m=[...s.word.pron||d],g=a&&_n(a)?m.filter(b=>{const y=X(b);return!!y&&nt(y,a)}):[],f=To(g.length?g:m);if(!f)continue;const p=r.filter(b=>b.word.w!==d&&b.word.s===s.word.s&&!(b.word.pron||b.word.w).includes(f)&&b.word.pron!==s.word.pron);if(p.length<o)continue;const h=Nn(p.map(b=>b.word.w),o);if(h.length<o)continue;const w=K([d,...h]);u.push({id:Ce("HPI-item"),index:u.length+1,targetSyllable:f,word:d,choices:w,answerIndex:w.indexOf(d)})}return u}async function Lc(e){const{count:t=10}=e,n=(await _e(e)).filter(a=>a.usable.length>=1);if(!n.length)return[];const o=n.length>=t?Re(n,t):K(Array.from({length:t},(a,u)=>n[u%n.length])),r=K(Array.from({length:t},(a,u)=>u<Math.ceil(t/2)));return o.map((a,u)=>{const l=r[u];let s;if(l)s=[a.word.w,a.word.w];else{const d=To(a.usable);s=Math.random()<.5?[a.word.w,d]:[d,a.word.w]}return{id:Ce("SOD-item"),index:u+1,word:a.word.w,pair:s,same:l}})}async function Rc(e){const{choicesPerItem:t=3,count:n=10}=e,o=t-1,r=await _e({...e,difficulty:null});if(r.length<t+1)return[];const a=r.map(f=>f.word.w),u=new Map(r.map(f=>[f.word.w,f.word.pron])),l=f=>(u.get(f)||f)[0]??"",s={};for(const f of r){const p=l(f.word.w);p&&(s[p]||(s[p]=[]),s[p].push(f.word.w))}const d=Object.entries(s).filter(([,f])=>new Set(f.map(p=>u.get(p)||p)).size>=2).map(([f])=>f);if(d.length===0)return[];const m=[],g=K([...d]);for(let f=0;m.length<n&&f<n*4;f++){const p=g[f%g.length],h=s[p];if(h.length<2)continue;const w=K([...h]),b=w[0],y=u.get(b)||b,S=w.find(B=>B!==b&&(u.get(B)||B)!==y);if(!b||!S)continue;const E=u.get(S)||S,A=a.filter(B=>l(B)!==p&&B!==b&&B!==S&&B.length===S.length&&(u.get(B)||B)!==E);if(A.length<o)continue;const v=Nn(A,o);if(v.length<o)continue;const L=K([S,...v]);m.push({id:Ce("SWS-item"),index:m.length+1,sourceWord:b,targetSyllable:p,word:S,choices:L,answerIndex:L.indexOf(S)})}return m}function Ta(e,t,n){const o=Ke(),r=s=>o.get(s)||s,a=(s,d)=>{const m=[...s],g=[...d];if(m.length!==g.length)return-1;let f=-1;for(let p=0;p<m.length;p++)if(m[p]!==g[p]){if(f>=0)return-1;f=p}return f},u=e.map(s=>({e:s,swaps:s.usable.filter(d=>!!d&&a(s.word.w,d)>=0&&r(d)!==r(s.word.w))})).filter(s=>s.swaps.length>0),l=[];for(const{e:s,swaps:d}of K(u)){if(l.length>=t)break;const m=To(d)??"",g=[...s.word.w],f=[...m],p=a(s.word.w,m),h=Nn(s.usable.filter(w=>w&&w!==m),2,new Set([r(m),r(s.word.w)]));h.length<2||l.push({id:Ce(n),index:l.length+1,word:s.word.w,original:s.word.w,changed:m,changedFrom:p>=0?g[p]:"",changedTo:p>=0?f[p]:"",distractors:h})}return l}async function _a(e,t,n){const{count:o=10}=t,r=Ke(),a=He.filter(h=>h.w&&h.s===e),u=t.excludeNoImage?yt(a.map(h=>h.w)):null,l=u?a.filter(h=>u.has(h.w)):a,s=new Set(l.map(h=>h.w)),d=Xi(s),m=t.phonemeView??"char",g=t.composition??null,f=Ea(t),p=[];for(const h of K(l)){if(p.length>=o)break;if(f&&!f(h))continue;const w=Qi(h.w,g,r,m,d,null,null);if(!w)continue;const b=w.distractors[0],y=[...h.w],S=[...b],E=y.findIndex((A,v)=>A!==S[v]);p.push({id:Ce(n),index:p.length+1,word:h.w,original:h.w,changed:b,changedFrom:E>=0?y[E]:"",changedTo:E>=0?S[E]:"",distractors:w.distractors.slice(1)})}return p}async function Ic(e){return _a(2,e,"CS2-item")}async function Mc(e){return _a(3,e,"CS3-item")}async function Pc(e){const t=(await _e({...e,difficulty:"count",contrastCount:1})).filter(n=>n.word.s===1&&n.usable.length>=1);return Ta(t,e.count??10,"CP1-item")}async function kc(e){const t=e.difficulty&&e.difficulty!=="random"?e.difficulty:"count",n=(await _e({...e,difficulty:t,contrastCount:1})).filter(o=>o.word.s===2&&o.usable.length>=1);return Ta(n,e.count??10,"CP2-item")}async function xc(e){const{count:t=10}=e,n=(await _e({...e})).filter(o=>o.word.s===2);return Re(n,t).map((o,r)=>({id:Ce("M2S-item"),index:r+1,word:o.word.w,answer:o.word.w,parts:[...o.word.w]}))}async function Fc(e){const{count:t=10}=e,n=(await _e({...e})).filter(o=>o.word.s===3);return Re(n,t).map((o,r)=>({id:Ce("M3S-item"),index:r+1,word:o.word.w,answer:o.word.w,parts:[...o.word.w]}))}function vo(e){const t=He.map(n=>n.w);return e.excludeNoImage?yt(t):new Set(t)}async function jc(e){const{count:t=10}=e,n=(await _e({...e})).filter(l=>l.word.s===2),o=Ke(),r=vo(e),a=e.phonemeView??"char",u=[];for(const l of K(n)){if(u.length>=t)break;const s=Yi(l.word.w,e.composition??null,o,a,r);if(!s)continue;const[d,...m]=s.distractors,g=[...l.word.w],f=g[0]===d?g[1]:g[0];u.push({id:Ce("D2-item"),index:u.length+1,original:l.word.w,word:l.word.w,dropped:f,missingResult:d,distractors:m})}return u}async function $c(e){const{count:t=10}=e,n=(await _e({...e})).filter(l=>l.word.s===3),o=Ke(),r=vo(e),a=e.phonemeView??"char",u=[];for(const l of K(n)){if(u.length>=t)break;const s=zi(l.word.w,e.composition??null,o,a,r);if(!s)continue;const[d,...m]=s.distractors,g=[...l.word.w];let f="";for(let p=0;p<g.length;p++)if(g.filter((h,w)=>w!==p).join("")===d){f=g[p];break}u.push({id:Ce("D3-item"),index:u.length+1,original:l.word.w,word:l.word.w,dropped:f,missingResult:d,distractors:m})}return u}async function Hc(e){const{count:t=10}=e,n=(await _e({...e})).filter(l=>l.word.s>=3),o=Ke(),r=vo(e),a=e.phonemeView??"char",u=[];for(const l of K(n)){if(u.length>=t)break;const s=Ki(l.word.w,e.composition??null,o,a,r);if(!s)continue;const[d,...m]=s.distractors,g=l.word.w,f=s.dropped??(g.startsWith(d)?g.slice(d.length):g.endsWith(d)?g.slice(0,g.length-d.length):"");u.push({id:Ce("DPC-item"),index:u.length+1,original:g,word:g,dropped:f,missingResult:d,distractors:m})}return u}async function Gc(e){const{count:t=10}=e,n=(await _e({...e})).map(o=>o.word.w);return n.length<3?[]:Array.from({length:t},(o,r)=>{const a=Re(n,3);return{id:Ce("LRO-item"),index:r+1,sequence:a,choices:K(a)}})}function Ln(e,t,n){const o=He.filter(l=>l.w&&l.s===e),r=t.excludeNoImage?yt(o.map(l=>l.w)):null,a=Ea(t),u=[];for(const l of o)if(!(r&&!r.has(l.w))&&!(a&&!a(l))){if(n){const s=X(l.w);if(!s||!n(s))continue}u.push(l)}return u}function Wc(e){const t=Ln(1,e,Tn.MERGE_2_PHONEMES.syllable);return Re(t,e.count??10).map((n,o)=>{const r=X(n.w);return{id:Ce("M2P-item"),index:o+1,parts:[pe[r.cho],Te[r.jung]],answer:n.w,word:n.w}})}function Vc(e){const t=Ln(1,e,Tn.MERGE_3_PHONEMES.syllable);return Re(t,e.count??10).map((n,o)=>{const r=X(n.w);return{id:Ce("M3P-item"),index:o+1,parts:[pe[r.cho],Te[r.jung],Oe[r.jong]],answer:n.w,word:n.w}})}function Uc(e){const t=Tn.DROP_FINAL_CONSONANT_FROM_1SYLL,n=Ln(t.syllables,e,t.syllable),o=Ke(),r=[];for(const a of K(n)){if(r.length>=(e.count??10))break;const u=qi(a.w,null,o);if(!u)continue;const[l,...s]=u.distractors;r.push({id:Ce("DFC-item"),index:r.length+1,original:a.w,word:a.w,result:l,distractors:s})}return r}function Yc(e){const t=Tn.REMOVE_CONSONANT_AND_IDENTIFY_PHONEME,n=Ln(t.syllables,e,t.syllable),o=Ke(),r=[];for(const a of K(n)){if(r.length>=(e.count??10))break;const u=Ji(a.w,null,o);if(!u)continue;const l=X(o.get(a.w)||a.w);if(!l)continue;const[s,...d]=u.distractors;r.push({id:Ce("RCP-item"),index:r.length+1,base:a.w,word:a.w,missingConsonant:pe[l.cho],remaining:s,distractors:d})}return r}const Rn=new Map;let Da=null,Ba=null,va=null,No=0;async function Na(e,t={}){const n=An(),o=It(),r=t.excludeNoImage?wn():null;(n!==Da||o!==Ba||t.excludeNoImage&&r!==va)&&(Rn.clear(),No++,Da=n,Ba=o,va=r);const a=`${e}:${Do(t)}`;if(Rn.has(a))return Rn.get(a);const u=No,l=await Kc(e,t);return u===No&&Rn.set(a,l),l}const zc={SAME_SOUND_PICK:e=>Aa("SSP",e),HEAR_AND_PICK_SAME:e=>Aa("HPS",e),HEAR_AND_PICK_INCLUDED:e=>Oc(e),SAME_OR_DIFF:e=>Lc(e),STARTS_WITH_SAME_SOUND:e=>Rc(e),LISTEN_AND_REMEMBER_ORDER:e=>Gc(e),MERGE_2_SYLLABLES:e=>xc(e),MERGE_3_SYLLABLES:e=>Fc(e),MERGE_2_PHONEMES:e=>Wc(e),MERGE_3_PHONEMES:e=>Vc(e),DROP_1_FROM_2SYLL:e=>jc(e),DROP_1_FROM_3SYLL:e=>$c(e),DROP_PART_FROM_COMPOUND:e=>Hc(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>Uc(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>Yc(e),CHANGE_1_SYLL_IN_2SYLL:e=>Ic(e),CHANGE_1_SYLL_IN_3SYLL:e=>Mc(e),CHANGE_1_PHONEME_IN_1SYLL:e=>Pc(e),CHANGE_1_PHONEME_IN_2SYLL:e=>kc(e)};async function Kc(e,t={}){const n=zc[e];return n?await n(t):[]}async function qc(e){const t=["random","count"],n=Object.keys(ao);let o=0;for(const r of t)for(const a of n){const u=ao[a];Na(a,{difficulty:u.difficulty?r:null,contrastCount:1,composition:null,count:5,excludeNoImage:e,sameStructureOnly:!0,phonemeView:"char",grade:null}).catch(()=>{}),++o%6===0&&await new Promise(l=>setTimeout(l,0))}}async function Jc(e){const t=await _e({...e,fullCount:!0}),n=e.choicesPerItem!=null?Math.max(1,e.choicesPerItem-1):1;return t.filter(o=>new Set(o.usable.map(r=>fe(r))).size>=n).length}async function Xc(e={}){const t=[];for(const l of He)l.w&&t.push(l.w);const n=e.excludeNoImage?yt(t):t,o=new Set,r=new Set,a=new Set,u=new Set;for(const l of n){u.add(Lt(l));for(const s of l){const d=X(s);if(d&&(pe[d.cho]!=="\u3147"&&o.add(pe[d.cho]),r.add(Te[d.jung]),d.jong>0)){a.add(Oe[d.jong]);const m=Sn[d.jong];m&&m.forEach(g=>a.add(g))}}}return{cho:o,jung:r,jong:a,syllable:u}}const Qc={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},Zc={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},ed={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function Oa(e,t){if("place"in t)return Qc[t.place](e);const n=Zc[t.vowel](e);return t.glide?`${n} \xB7 ${ed[t.glide](e)}`:n}const td=(e,{defaultValue:t})=>t,La=(e,t)=>({jamos:e,phonetic:t,tooltip:Oa(td,t)}),Ge=(e,t)=>t.map(n=>La([n],{place:e})),ge=(e,t,n)=>La([...e],n?{vowel:t,glide:n}:{vowel:t}),Oo={cho:[Ge("labial",["\u3142","\u3143","\u314D","\u3141"]),Ge("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Ge("alveolar",["\u3145","\u3146"]),Ge("palatal",["\u3148","\u3149","\u314A"]),Ge("velar",["\u3131","\u3132","\u314B"]),Ge("glottal",["\u314E"])],jung:[[ge("\u3163","frontHigh"),ge("\u315F","frontHigh","w"),ge("\u3162","frontHigh","velar")],[ge("\u3161","backHighUnrounded")],[ge("\u315C","backHighRounded"),ge("\u3160","backHighRounded","j")],[ge("\u3154\u3150","frontMid"),ge("\u3156\u3152","frontMid","j"),ge("\u3159\u315A\u315E","frontMid","w")],[ge("\u3153","backMidUnrounded"),ge("\u3155","backMidUnrounded","j"),ge("\u315D","backMidUnrounded","w")],[ge("\u3157","backMidRounded"),ge("\u315B","backMidRounded","j")],[ge("\u314F","low"),ge("\u3151","low","j"),ge("\u3158","low","w")]],jong:[Ge("labial",["\u3142","\u3141"]),Ge("alveolar",["\u3137","\u3134","\u3139"]),Ge("velar",["\u3131","\u3147"])]},nd=[...pe],od=[...Te],rd=Oe.filter(e=>e!==""),We=e=>e===xe?[]:Array.from(e),xe="__NO_CODA__",Ra=[1,2,3,4],Fe=5,ad=12,Ia="SYL_",Lo=e=>`${Ia}${e}`,ud=e=>Number(e.slice(Ia.length));function Ro(e){return e>=Fe?Array.from({length:ad-Fe+1},(t,n)=>Fe+n):[e]}const Ma={cho:nd,jung:od,jong:rd},Io=e=>e.map(t=>t.map(({jamos:n,phonetic:o,tooltip:r})=>({v:n.join(""),phonetic:o,tooltip:r}))),Mo={cho:Io(Oo.cho),jung:Io(Oo.jung),jong:Io(Oo.jong)},Pa={};Mo.jung.flat().forEach(({v:e})=>{for(const t of We(e))Pa[t]=e});const ld=new Set(Mo.cho.flat().map(e=>e.v));function ka(e,t){return e==="cho"?ld.has(t)?t:null:e==="jung"?Pa[t]??t:Ot(t)}function xa(e,t,n){if(e==="jung"){const o=We(t);return n&&o.includes(n)?n:o[0]??t}return e==="jong"&&n&&Ot(n)===t?n:t}function Fa(e,t,n,o){const r=(a,u)=>u?a==="jong"&&u===xe?xe:t==="pron"?ka(a,u):xa(a,u,a==="jung"?n:a==="jong"?o:null):null;return{...e,cho:r("cho",e.cho),jung:r("jung",e.jung),jong:r("jong",e.jong)}}const Po={cho:null,jung:null,jong:null,syllable:null};function id(e){const{caps:t,difficulty:n,contrastCount:o,composition:r,phonemeView:a,excludeNoImage:u,sameStructureOnly:l,gradeFilter:s}=e,{i18n:d}=Le.useTranslation(),[m,g]=c.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[f,p]=c.useState(!1),[h,w]=c.useState(null),[b,y]=c.useState(0);no("wordpool:update",()=>y(E=>E+1)),no(Fr,()=>y(E=>E+1));const S=c.useRef(d.language);return c.useEffect(()=>{S.current!==d.language&&(S.current=d.language,y(E=>E+1))},[d.language]),c.useEffect(()=>{if(!t.choseong)return;let E=!1;return Xc({difficulty:n,excludeNoImage:u}).then(A=>{E||(g(A),p(A.cho.size+A.jung.size+A.jong.size>0))}).catch(()=>{E||(g({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),p(!1))}),()=>{E=!0}},[t.choseong,n,u,b]),c.useEffect(()=>{let E=!1;const A=r,v=A.cho?We(A.cho):null,L=A.jung?We(A.jung):null,B=A.jong===xe,I=B?null:A.jong?We(A.jong):null,P=A.syllable!=null?Ro(A.syllable):null,O=!!(v||L||I||B||P);return Jc({difficulty:t.difficulty?n:null,contrastCount:t.difficulty?o:1,composition:t.choseong&&O?{cho:v,jung:L,jong:I,jongNone:B,syllable:P}:null,excludeNoImage:u,sameStructureOnly:l,phonemeView:a==="pron"?"pron":"char",grade:s.length>0?s:null}).then(G=>{E||w(G)}).catch(()=>{E||w(null)}),()=>{E=!0}},[t.choseong,t.difficulty,n,o,r,a,u,l,b,s]),{viable:m,viableReady:f,wordCount:h,poolVersion:b}}function ja(){const{t:e}=Le.useTranslation();return c.useMemo(()=>({difficulty:e("wordSearch.filter.difficulty","\uB09C\uC774\uB3C4"),syllables:e("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),syllable5plus:e("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1"),partOfSpeech:e("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:e("wordSearch.filter.wordType","\uC720\uD615"),posMap:{[e("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)")]:["\uBA85","\uC218"],[e("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)")]:["\uB3D9","\uD615"],[e("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")]:["\uBD80","\uAD00"]},typeMap:{[e("wordSearch.filter.type.native","\uACE0\uC720\uC5B4")]:"\uACE0\uC720",[e("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4")]:"\uD55C\uC790",[e("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4")]:"\uC678\uB798",[e("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")]:"\uD63C\uC885"}}),[e])}function $a(e,t,n){const o=So(n?.bands);return o?{label:t.difficulty,items:[...fa(o).map(r=>sd(e,r,o)),e("wordSearch.filter.gradeNone","\uC5C6\uC74C")],multiple:!0,allOption:!0,allLabel:n?.allLabel,labelAction:n?.labelAction,labelInfo:n?.labelInfo??{title:t.difficulty,items:ko(e,o)}}:{label:t.difficulty,items:[...[3,4,5,6,7].map(r=>e("wordSearch.filter.age",{n:r,defaultValue:`${r}\uC138`})),...[2,3,4].map(r=>e("wordSearch.filter.grade",{n:r})),e("wordSearch.filter.gradeNone","\uC5C6\uC74C")],multiple:!0,allOption:!0,allLabel:n?.allLabel,labelAction:n?.labelAction,labelInfo:n?.labelInfo??{title:t.difficulty,items:[e("wordSearch.filter.difficultyInfoAge","3\uC138~7\uC138: \uAC00\uC7A5 \uC26C\uC6B4 \uB0B1\uB9D0(1\uB4F1\uAE09)\uC744 \uB610\uB798\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4."),e("wordSearch.filter.difficultyInfoGrade","2~4\uB4F1\uAE09: \uADF8\uBCF4\uB2E4 \uC5B4\uB824\uC6B4 \uB0B1\uB9D0\uC774\uACE0, \uB098\uC774\uB85C\uB294 \uB098\uB204\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."),e("wordSearch.filter.difficultyInfoNone","\uC5C6\uC74C: \uB09C\uC774\uB3C4\uAC00 \uB9E4\uACA8\uC9C0\uC9C0 \uC54A\uC740 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.")]}}}function sd(e,t,n){const o=n.find(u=>u.label&&String(u.grade)===t)?.label;if(o)return o;const r=ia(t);if(r!=null)return e("wordSearch.filter.age",{n:r,defaultValue:`${r}\uC138`});const a=bo(t);return a!=null?e("wordSearch.filter.agePlus",{n:a,defaultValue:`${a}\uC138 \uC774\uC0C1`}):e("wordSearch.filter.grade",{n:Number(t),defaultValue:`${t}\uB4F1\uAE09`})}function ko(e,t){const n=t.some(o=>o.label);return[...t.map(o=>{const r=o.maxAge==null?e("wordSearch.filter.agePlus",{n:o.minAge,defaultValue:`${o.minAge}\uC138 \uC774\uC0C1`}):o.minAge===o.maxAge?e("wordSearch.filter.age",{n:o.minAge,defaultValue:`${o.minAge}\uC138`}):e("wordSearch.filter.ageRange",{from:o.minAge,to:o.maxAge,defaultValue:`${o.minAge}\uC138~${o.maxAge}\uC138`}),a=o.label??e("wordSearch.filter.grade",{n:o.grade,defaultValue:`${o.grade}\uB4F1\uAE09`});return o.showAge?n?e("wordSearch.filter.difficultyInfoBandAgeNamed",{ages:r,defaultValue:`${r}: \uB098\uC774\uB85C \uB098\uB208 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.`}):o.maxAge!=null&&o.maxAge>o.minAge?e("wordSearch.filter.difficultyInfoBandAge",{grade:a,ages:r,defaultValue:`${r}: ${a} \uB0B1\uB9D0\uC744 \uB098\uC774\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4.`}):e("wordSearch.filter.difficultyInfoBandAgeOne",{grade:a,ages:r,defaultValue:`${r}: ${a} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.`}):e("wordSearch.filter.difficultyInfoBandGrade",{grade:a,ages:r,defaultValue:`${a}: ${r} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.`})}),e("wordSearch.filter.difficultyInfoNone","\uC5C6\uC74C: \uB09C\uC774\uB3C4\uAC00 \uB9E4\uACA8\uC9C0\uC9C0 \uC54A\uC740 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.")]}function Ha(e){return{label:e.partOfSpeech,items:Object.keys(e.posMap),multiple:!0,allOption:!0}}function Ga(e){return{label:e.wordType,items:Object.keys(e.typeMap),multiple:!0,allOption:!0}}function cd(e,t){return{label:t.syllables,items:[e("wordSearch.filter.syllable",{n:1}),e("wordSearch.filter.syllable",{n:2}),e("wordSearch.filter.syllable",{n:3}),e("wordSearch.filter.syllable",{n:4}),t.syllable5plus],multiple:!0,allOption:!0}}function dd(e,t){const n=[e("wordPairs.filter.onlyHasImage","\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"),e("wordPairs.filter.onlyHighUsage","\uD65C\uC6A9\uB3C4 \uB192\uC740 \uB2E8\uC5B4\uB9CC")];return t?.includeStructure&&n.push(e("wordPairs.filter.onlySameStructure","\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC")),{label:e("wordPairs.filter.selectLabel","\uC120\uD0DD"),items:n,multiple:!0,labelAction:t?.labelAction,labelInfo:t?.labelInfo}}function fd(e,t){const{label:n,headValue:o,midValue:r,tailValue:a,includeMid:u=!0,headDisabled:l,midDisabled:s,tailDisabled:d,allOptionDisabled:m,groupLabel:g,labelAction:f}=t;return{label:n,...g?{groupLabel:g}:{},...f?{labelAction:f}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...m?{allOptionDisabled:m}:{},items:[{value:o,displayLabel:e("wordSearch.filter.positionHead",{defaultValue:"\uC5B4\uB450"}),disabled:l},...u?[{value:r,displayLabel:e("wordSearch.filter.positionMid",{defaultValue:"\uC5B4\uC911"}),disabled:s}]:[],{value:a,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:d}]}}function gd(e,t,n){const o=Wt(n),r=o&&t!==ke?ot(o,t):null;if(o&&(t===ke||r)){const l={},s={};for(const[p,h]of Object.entries(e))(Wt(p)===o?s:l)[p]=h;if(t===ke)return l;const d=Eo(s)[o]??[],m=d.includes(r)?d.filter(p=>p!==r):[...d,r];if(m.length===0)return l;const g=Ao({[o]:m},_c(n)),f=Object.values(g)[0]??[];return{...l,[n]:f}}if(t===ke){const{[n]:l,...s}=e;return s}const a=e[n]??[],u=a.includes(t)?a.filter(l=>l!==t):[...a,t];if(u.length===0){const{[n]:l,...s}=e;return s}return{...e,[n]:u}}Object.fromEntries(Object.entries(ro).map(([e,{nucleus:t}])=>[e,t]));const md={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},pd={"\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)":["\uBA85","\uC218"],"\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)":["\uB3D9","\uD615"],"\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)":["\uBD80","\uAD00"]},Cd={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",field:"\uC758\uBBF8\uBC94\uC8FC",posMap:pd,typeMap:md},Wa=new WeakMap;function hd(e,t){const n=Wa.get(e);if(n&&n.keys===t)return n.value;const o={grades:[],syls:[],poses:[],types:[],fields:[],highUsage:!1},r={grade:o.grades,syllables:o.syls,pos:o.poses,wordType:o.types,field:o.fields};for(const[a,u]of Object.entries(e??{})){const l=Array.isArray(u)?u:typeof u=="string"?[u]:[];!o.highUsage&&l.some(wc)&&(o.highUsage=!0);const s=a===t.difficulty?"grade":a===t.syllables?"syllables":a===t.partOfSpeech?"pos":a===t.wordType?"wordType":a===t.field?"field":Wt(a);if(s)for(const d of l)r[s].includes(d)||r[s].push(d)}return Wa.set(e,{keys:t,value:o}),o}function yd(e,t,n=Cd){const{grades:o,syls:r,poses:a,types:u,highUsage:l}=hd(t,n);if(l&&e.usage!==!0)return!1;if(o.length){const s=o.map(d=>ot("grade",d)??d.replace(/\D/g,"")).filter(d=>d!=="");if(s.length===0||!yo(s,e.grade,e.age))return!1}if(r.length){const s=e.syllables??0;if(!r.some(d=>{const m=d===n.syllable5plus?"5+":ot("syllables",d);return m==="5+"?s>=5:s===parseInt(m??d)}))return!1}return!(a.length&&!a.flatMap(s=>n.posMap[s]??Cc[ot("pos",s)??""]??[s]).some(s=>(e.pos??"").includes(s))||u.length&&!u.some(s=>e.wordType===(n.typeMap[s]??hc[ot("wordType",s)??""])))}const Va=["1\uB4F1\uAE09 : \uD559\uB839\uC804\uAE30\uC5D0 \uC2B5\uB4DD\uD558\uC5EC \uD3C9\uC0DD\uC5D0 \uAC78\uCCD0 \uC77C\uC0C1 \uC5B8\uC5B4\uC0DD\uD65C\uC744 \uD558\uB294 \uB370 \uC0AC\uC6A9\uB418\uB294 \uC5B4\uD718","2\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 1-2\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","3\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 3-4\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","4\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 5-6\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","\uB4F1\uAE09\uC5C6\uC74C : \uAD6D\uB9BD\uAD6D\uC5B4\uC6D0 \uD45C\uC900 \uC5B4\uD718 \uC678 \uACE0\uBE48\uB3C4 \uC0DD\uD65C \uC5B4\uD718, \uC2E0\uC870\uC5B4 \uBC0F \uC678\uB798\uC5B4"];function Ua(e){const t=e("wordPairs.filter.difficultyInfo",{returnObjects:!0,defaultValue:Va});return Array.isArray(t)&&t.length>0&&t.every(n=>typeof n=="string")?t:Va}function bd(e){return{composition:e("wordPairs.composition","\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131"),syllableCount:e("wordPairs.syllableCount","\uC74C\uC808 \uC218"),onset:e("wordPairs.onset","\uCD08\uC131"),vowel:e("wordPairs.vowel","\uBAA8\uC74C"),coda:e("wordPairs.coda","\uC885\uC131"),phonemeGroup:e("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),trainOnset:e("training.filter.trainOnset",{defaultValue:"\uCD08\uC131"}),trainVowel:e("training.filter.trainVowel",{defaultValue:"\uBAA8\uC74C"}),trainCoda:e("training.filter.trainCoda",{defaultValue:"\uC885\uC131"}),random:e("training.filter.random","\uBB34\uC791\uC704"),exclude:e("wordSearch.filter.exclude","\uC81C\uC678"),selectLabel:e("training.filter.selectSection",{defaultValue:"\uC120\uD0DD"}),none:e("common.none","\uC5C6\uC74C"),noImage:e("wordSearch.filter.excludeNoImage","\uC774\uBBF8\uC9C0 \uC5C6\uC74C"),excludeImage:e("training.filter.excludeImage",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"}),sameStructure:e("training.filter.sameStructure",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"}),noLimit:e("training.filter.noLimit",{defaultValue:"\uBB34\uAD00"}),codaExclude:e("training.filter.codaExclude",{defaultValue:"\uC81C\uC678"}),gradeLabel:e("training.filter.gradeLabel",{defaultValue:"\uB09C\uC774\uB3C4"})}}function Sd(e){const{caps:t,t:n,attrKeys:o,labels:r,phonemeView:a,viable:u,partViable:l,syllableViable:s,minSyllables:d,gradeBands:m}=e,g=So(m),f=(w,b)=>({title:b,items:w}),p=[n("training.filter.excludeImageInfo",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4."}),n("training.filter.sameStructureInfo",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694."})],h=[];if(t.choseong){const w={value:xe,displayLabel:r.codaExclude},b=t.fixedNoCoda===!0,y=(S,E)=>{const A=b&&S==="jong",v={label:E,groupLabel:r.phonemeGroup,allOption:!t.requireSyllable,allLabel:r.noLimit,allOptionDisabled:A};if(a==="pron"){const B=Mo[S].map(I=>I.map(({v:P,phonetic:O})=>{const G=We(P),Y=Oa(n,O),V=A||!G.some(k=>u[S].has(k));return G.length>1?{value:P,labels:G,tooltip:Y,disabled:V}:{value:P,tooltip:Y,disabled:V}}));return S==="jong"&&!t.requireCoda&&B.unshift([w]),{...v,groups:B}}const L=Ma[S].map(B=>!A&&l[S].has(B)?B:{value:B,disabled:!0});return{...v,items:S==="jong"&&!t.requireCoda?[w,...L]:L}};h.push(y("cho",r.trainOnset)),h.push(y("jung",r.trainVowel)),h.push(y("jong",r.trainCoda))}if(h.push({...$a(n,o,{bands:m,labelInfo:f(g?ko(n,g):Ua(n))}),label:r.gradeLabel}),t.partOfSpeech&&h.push(Ha(o)),t.wordType&&h.push(Ga(o)),t.choseong||t.fixedSyllable!=null){const w=t.fixedSyllable;h.push({label:r.syllableCount,items:[...Ra.map(b=>({value:Lo(b),displayLabel:n("wordPairs.syllableN",{n:b,defaultValue:"{{n}}\uC74C\uC808"}),disabled:w!=null?b!==w:!s.exact.has(b)||b<d})),{value:Lo(Fe),displayLabel:n("wordPairs.syllableNPlus",{n:Fe,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:w!=null?Fe!==w:!s.min}],allOption:!0,allOptionDisabled:w!=null})}return t.choseong?h.push({label:r.exclude,displayLabel:r.selectLabel,multiple:!0,items:[r.excludeImage,r.sameStructure],labelInfo:f(p)}):h.push({label:r.exclude,displayLabel:r.selectLabel,multiple:!0,items:[r.excludeImage],labelInfo:f([p[0]])}),h}const xo=e=>Array.isArray(e)?e.filter(ho):[],wd="wt_filter",Ya=e=>`wt_filter_${e}`,Fo=["noun","verb","modifier"],jo=["native","sino","foreign","mixed"];function za(e,t,n,o,r){if(!Array.isArray(e))return[];const a=[];for(const u of e){if(typeof u!="string")continue;const l=t.includes(u)?u:t.find(s=>r.some(d=>o(d,n(s))===u));l&&!a.includes(l)&&a.push(l)}return a}function Ka(e){try{const t=localStorage.getItem(Ya(e))??localStorage.getItem(wd);if(t)return JSON.parse(t)}catch{}return null}function qa(e){const t=e?.phonemeView;return t==="pron"?"pron":t==="direct"?"direct":"char"}function Ed(e){const t=e;return t?.composition?{cho:t.composition.cho??null,jung:t.composition.jung??null,jong:t.composition.jong??null,syllable:t.composition.syllable??null}:t?.choseong?{...Po,cho:t.choseong}:Po}function Ad(e,t,n){const{t:o,i18n:r}=Le.useTranslation(),a=JSON.stringify(n?.gradeBands??null),u=c.useMemo(()=>JSON.parse(a),[a]),l=c.useMemo(()=>So(u),[u]),s=c.useCallback(_=>l?da(_,l):_,[l]),[d]=c.useState(()=>n?.resetOnMount?null:Ka(e)),[m,g]=c.useState(qa(d)),[f,p]=c.useState(()=>Ed(d)),h=c.useCallback(()=>t.requireSyllable?{cho:"\u3131",jung:"\u314F",jong:xe,syllable:t.fixedSyllable??null}:{cho:null,jung:null,jong:t.fixedNoCoda?xe:null,syllable:t.fixedSyllable??null},[t.requireSyllable,t.fixedSyllable,t.fixedNoCoda]);c.useEffect(()=>{!t.requireSyllable&&t.fixedSyllable==null&&!t.fixedNoCoda||p(_=>_.cho||_.jung||_.syllable!=null||_.jong?_:h())},[]);const w=c.useMemo(()=>de(f.cho)||de(f.jung)||de(f.jong)?"count":"random",[f.cho,f.jung,f.jong]),b=c.useRef(m==="char"?f.jung:null),y=c.useRef(m==="char"?f.jong:null);c.useEffect(()=>{m==="char"&&(b.current=f.jung,y.current=f.jong)},[m,f.jung,f.jong]);const[S,E]=c.useState(n?.resetOnMount?!!n?.defaultImageOnly:d?.excludeNoImage??!0),[A,v]=c.useState(n?.resetOnMount?!1:d?.sameStructureOnly??!0),[L,B]=c.useState(xo(d?.gradeFilter)),I=Array.from(new Set([r.language,"ko","en"].filter(Boolean))),P=(_,ne)=>r.getFixedT(_)(ne),O=_=>za(_,Fo,ne=>`wordSearch.filter.pos.${ne}`,P,I),G=_=>za(_,jo,ne=>`wordSearch.filter.type.${ne}`,P,I),[Y,V]=c.useState(()=>O(d?.posFilter)),[k,x]=c.useState(()=>G(d?.wordTypeFilter)),q=c.useRef(n?.resetKey);c.useEffect(()=>{q.current!==n?.resetKey&&(q.current=n?.resetKey,p(h()),E(!!n?.defaultImageOnly),v(!1),B([]),V([]),x([]))},[n?.resetKey]);const Q=ja(),ce=c.useMemo(()=>Object.keys(Q.posMap),[Q]),Ae=c.useMemo(()=>Object.keys(Q.typeMap),[Q]),R=c.useMemo(()=>Y.map(_=>ce[Fo.indexOf(_)]).filter(Boolean),[Y,ce]),j=c.useMemo(()=>k.map(_=>Ae[jo.indexOf(_)]).filter(Boolean),[k,Ae]),F=1,U=Math.max(1,[f.cho,f.jung,f.jong].filter(Boolean).length),[H,je]=c.useState(e);c.useEffect(()=>{if(H!==e){if(!n?.resetOnMount){const _=Ka(e);p(_?.composition??h()),E(_?.excludeNoImage??!0),v(_?.sameStructureOnly??!0),g(qa(_)),B(xo(_?.gradeFilter)),V(O(_?.posFilter)),x(G(_?.wordTypeFilter))}je(e)}},[e,H,n?.resetOnMount]),c.useEffect(()=>{if(!n?.resetOnMount&&H===e)try{localStorage.setItem(Ya(e),JSON.stringify({contrastCount:U,composition:f,excludeNoImage:S,sameStructureOnly:A,phonemeView:m,gradeFilter:L,posFilter:Y,wordTypeFilter:k}))}catch{}},[n?.resetOnMount,e,H,U,f,S,A,m,L,Y,k]);const{viable:me,viableReady:Ue,wordCount:lt,poolVersion:Gn}=id({caps:t,difficulty:w,contrastCount:U,composition:f,phonemeView:m,excludeNoImage:S,sameStructureOnly:A,gradeFilter:L});c.useEffect(()=>{Ue&&p(_=>{const ne={..._};let W=!1;return["cho","jung","jong"].forEach(J=>{const be=_[J];!be||be===xe||We(be).some(Ne=>me[J].has(Ne))||(ne[J]=null,W=!0)}),_.syllable!=null&&t.fixedSyllable==null&&(_.syllable>=Fe?[...me.syllable].some(J=>J>=Fe)||(ne.syllable=null,W=!0):(!me.syllable.has(_.syllable)||_.syllable<F)&&(ne.syllable=null,W=!0)),W?ne:_})},[me,Ue,F,t.fixedSyllable]);const rn=c.useMemo(()=>{const _=ne=>{const W=new Set;for(const J of Ma[ne])me[ne].has(J)&&W.add(J);return W};return{cho:_("cho"),jung:_("jung"),jong:_("jong")}},[me]),Et=c.useMemo(()=>({exact:new Set(Ra.filter(_=>me.syllable.has(_))),min:[...me.syllable].some(_=>_>=Fe)}),[me]),oe=c.useMemo(()=>bd(o),[o]),At=c.useMemo(()=>({[oe.trainOnset]:"cho",[oe.trainVowel]:"jung",[oe.trainCoda]:"jong"}),[oe]),Z=c.useMemo(()=>Sd({caps:t,t:o,attrKeys:Q,labels:oe,phonemeView:m,viable:me,partViable:rn,syllableViable:Et,minSyllables:F,gradeBands:u}),[t,o,Q,oe,m,me,rn,Et,F,u]),Tt={...(t.choseong||t.fixedSyllable!=null)&&f.syllable!=null?{[oe.syllableCount]:Lo(f.syllable)}:{},...t.choseong&&f.cho?{[oe.trainOnset]:f.cho}:{},...t.choseong&&f.jung?{[oe.trainVowel]:f.jung}:{},...t.choseong&&f.jong?{[oe.trainCoda]:f.jong}:{},[oe.exclude]:[...S?[oe.excludeImage]:[],...A?[oe.sameStructure]:[]],[oe.gradeLabel]:s(L).map(_=>Ec("grade",_)),...t.partOfSpeech?{[Q.partOfSpeech]:R}:{},...t.wordType?{[Q.wordType]:j}:{}},ee=c.useCallback((_,ne)=>{if(ne===oe.exclude)_===oe.excludeImage?E(W=>!W):_===oe.sameStructure&&v(W=>!W);else if(ne===oe.syllableCount)p(W=>{if(!_||_===ke)return{...W,syllable:null};const J=ud(_);return{...W,syllable:W.syllable===J?null:J}});else if(ne===oe.gradeLabel){if(!_||_===ke){B([]);return}const W=ot("grade",_);if(W==null)return;B(J=>{const be=s(J);return be.includes(W)?be.filter(Ne=>Ne!==W):[...be,W]})}else if(ne===Q.partOfSpeech){if(!_||_===ke){V([]);return}const W=Fo[ce.indexOf(_)]??O([_])[0];if(!W)return;V(J=>J.includes(W)?J.filter(be=>be!==W):[...J,W])}else if(ne===Q.wordType){if(!_||_===ke){x([]);return}const W=jo[Ae.indexOf(_)]??G([_])[0];if(!W)return;x(J=>J.includes(W)?J.filter(be=>be!==W):[...J,W])}else{const W=At[ne];if(!W)return;p(J=>t.requireSyllable?_&&_!==ke?{...J,[W]:_}:J:!_||_===ke||J[W]===_?{...J,[W]:null}:{...J,[W]:_})}},[oe,At,Q,ce,Ae,t.requireSyllable,s]),_t=c.useCallback(_=>!t.partOfSpeech&&!t.wordType?!0:yd(_,{...t.partOfSpeech?{[Q.partOfSpeech]:R}:{},...t.wordType?{[Q.wordType]:j}:{}},Q),[t.partOfSpeech,t.wordType,R,j,Q]),ve=c.useCallback(_=>{_!==m&&(_!=="direct"&&m!=="direct"&&p(ne=>Fa(ne,_,b.current,y.current)),g(_))},[m]),Je=c.useCallback(()=>({composition:f,contrastCount:U,excludeNoImage:S,sameStructureOnly:A,phonemeView:m,gradeFilter:L,posFilter:Y,wordTypeFilter:k}),[f,U,S,A,m,L,Y,k]),an=c.useCallback(_=>{p(_.composition),E(_.excludeNoImage),v(_.sameStructureOnly??!0),g(_.phonemeView),B(xo(_.gradeFilter)),Array.isArray(_.posFilter)&&V(O(_.posFilter)),Array.isArray(_.wordTypeFilter)&&x(G(_.wordTypeFilter))},[]);return{difficulty:w,contrastCount:U,composition:f,choseong:f.cho,excludeNoImage:S,sameStructureOnly:A,gradeFilter:L,posFilter:R,wordTypeFilter:j,matchesWordAttributes:_t,poolVersion:Gn,filterSections:Z,filterSelected:Tt,handleFilterSelect:ee,phonemeView:m,setPhonemeView:ve,phonemeGroupLabel:oe.phonemeGroup,wordCount:lt,getFilterSnapshot:Je,restoreFilterSnapshot:an}}function Td(e){const t=l=>l?We(l):null,n=t(e.cho),o=t(e.jung),r=e.jong===xe,a=r?null:t(e.jong),u=e.syllable!=null?Ro(e.syllable):null;return!n&&!o&&!a&&!r&&!u?null:{cho:n,jung:o,jong:a,jongNone:r,syllable:u}}function _d(e,t,n,o,r,a,u=!0,l="char",s=[]){const[d,m]=c.useState({}),[g,f]=c.useState(!1),{cho:p=null,jung:h=null,jong:w=null,syllable:b=null}=o??{},y=s.length>0?s.slice().sort().join(","):"",S=e.map(A=>A.key).join("|");c.useEffect(()=>{a>0&&qc(r).catch(()=>{})},[a,r]),c.useEffect(()=>{let A=!1;return f(!0),(async()=>{const v=Td({cho:p,jung:h,jong:w,syllable:b}),L=`${p??""}_${h??""}_${w??""}_${b??""}_${y}`,B={};await Promise.all(e.map(async I=>{const P=ao[I.key];try{const O=await Na(I.key,{difficulty:P.difficulty?t:null,contrastCount:P.difficulty?n:1,composition:P.choseong?v:null,count:5,excludeNoImage:r,sameStructureOnly:u,phonemeView:l,grade:s.length>0?s:null});O&&O.length>0?B[I.key]={id:`wt-${I.key}-${t}-${L}-${Date.now()}`,name:I.label,training_type:I.key,category_main_code:"WORD",iconColor:I.color,subTitle:I.subTitle,items:O,itemCount:O.length}:B[I.key]={id:`wt-${I.key}-empty`,name:I.label,training_type:I.key,category_main_code:"WORD",iconColor:I.color,subTitle:I.subTitle,items:[],itemCount:0,__empty:!0}}catch{B[I.key]=null}})),A||(m(B),f(!1))})(),()=>{A=!0}},[t,n,p,h,w,b,r,u,l,a,y,S]);const E=JSON.stringify(e.map(A=>[A.key,A.label,A.color,A.subTitle]));return{perTypeData:c.useMemo(()=>{const A={};for(const[v,L]of Object.entries(d)){const B=e.find(I=>I.key===v);A[v]=L&&B?{...L,name:B.label,iconColor:B.color,subTitle:B.subTitle}:L}return A},[d,E]),generating:g}}const Ut=[],Yt=[],zt=[],Kt=[],In={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},Mn={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},Dd={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let $o=null,Ja=null,Ve=null;function Bd({counts:e,forceRefresh:t}={}){const n=Object.assign({},Dd,e||{}),o=vt(),r=Nt(new Date(`${o}T00:00:00+09:00`).getTime()-864e5),a=JSON.stringify(n);if(!t&&Ja===o&&$o===a&&Ve)return Object.assign(In,Ve.today),Object.assign(Mn,Ve.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:In,yesterday:Mn};const u={LISTEN_IN_NOISE:$e(Ut,Math.max(0,Number(n.LISTEN_IN_NOISE)||0)),SHORT_STORY:$e(Yt,Math.max(0,Number(n.SHORT_STORY)||0)),LONG_STORY:$e(zt,Math.max(0,Number(n.LONG_STORY)||0)),ORDERING_SENTENCE:$e(Kt,Math.max(0,Number(n.ORDERING_SENTENCE)||0))};let l=null;return Ve&&$o===a&&Ve.yesterday&&Ve.yesterday.date===r&&(l=Ve.yesterday.selection),l||(l={LISTEN_IN_NOISE:$e(Ut,Math.max(0,Number(n.LISTEN_IN_NOISE)||0)),SHORT_STORY:$e(Yt,Math.max(0,Number(n.SHORT_STORY)||0)),LONG_STORY:$e(zt,Math.max(0,Number(n.LONG_STORY)||0)),ORDERING_SENTENCE:$e(Kt,Math.max(0,Number(n.ORDERING_SENTENCE)||0))}),Object.assign(In,u),Object.assign(Mn,l),Ja=o,$o=a,Ve={today:u,yesterday:{date:r,countsKey:a,selection:l}},{today:In,yesterday:Mn}}let Ho=!1,qt=null;async function vd(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:to&&to.tagName.toUpperCase()==="SCRIPT"&&to.src||new URL("hooks.cjs.js",document.baseURI).href}&&void 0||"/",t=await fetch(`${e}data/allTrainingData.json`);return t.ok?await t.json():null}catch{return null}}async function Nd(){if(!Ho)return qt||(qt=(async()=>{const e=await vd();if(!e){qt=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}const t={noise:[],short:[],long:[],order:[]};try{if(typeof e!="object"||Array.isArray(e))throw new Error("Invalid training data map");for(const n of Object.keys(e)){const o=e[n];if(!Array.isArray(o))throw new Error("Invalid training data group");for(const r of o){if(!r||typeof r!="object")continue;const a=r,u=String(a.training_type||n),l=String(a.category_main_code||a.category_main||a.category_0||""),s=String(a.category_sub_code||a.category_sub||a.category_1||""),d=Object.assign({},a,{training_type:u,category_0:l,category_1:s});u==="LISTEN_IN_NOISE"?t.noise.push(d):u==="SHORT_STORY"?t.short.push(d):u==="LONG_STORY"?t.long.push(d):u==="ORDERING_SENTENCE"&&t.order.push(d)}}}catch{qt=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}Ut.push(...t.noise),Yt.push(...t.short),zt.push(...t.long),Kt.push(...t.order),Ho=!0,Ve=null;try{Bd()}catch{}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}})(),qt)}async function Od(e=3e3){const t=Nd();let n;try{await Promise.race([t,new Promise(o=>{n=setTimeout(o,e)})])}finally{n!==void 0&&clearTimeout(n)}return Ho}function Xa(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function Ld(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let n=Math.imul(t^t>>>15,1|t);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}const Rd=$e,Id=e=>{const[t,n,o]=e.split("-").map(Number);return Math.round(Date.UTC(t,(n||1)-1,o||1)/864e5)},Md=(e,t)=>{const n=e??{};return String(n.id??n.name??t)};function Pn(e,t,n,o,r){if(!e.length||t<=0)return[];const a=Ld(Xa(`${n}|${o}|${r}`)),u=Id(o)&1,l=e.filter((d,m)=>(Xa(`${n}|${r}|${Md(d,m)}`)>>>7&1)===u),s=l.length>=t&&e.length-l.length>=t;return Rd(s?l:e,t,a)}function Go(e,t,n){const o=r=>Math.max(0,e[r]||0);return{LISTEN_IN_NOISE:Pn(Ut,o("LISTEN_IN_NOISE"),t,n,"LISTEN_IN_NOISE"),SHORT_STORY:Pn(Yt,o("SHORT_STORY"),t,n,"SHORT_STORY"),LONG_STORY:Pn(zt,o("LONG_STORY"),t,n,"LONG_STORY"),ORDERING_SENTENCE:Pn(Kt,o("ORDERING_SENTENCE"),t,n,"ORDERING_SENTENCE")}}function Wo(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const Pd={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function Vo(e=!1,t=Pd,n){const o=Date.now(),r=Nt(o),a=Nt(o-864e5),u=n??"";return Ut.length>0||Yt.length>0||zt.length>0||Kt.length>0?{today:Go(t,u,r),yesterday:Go(t,u,a)}:{today:Go(t,u,r),yesterday:null}}function kd(e){const t=c.useRef({LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),n=c.useRef(null),[o,r]=c.useState(!1),[a,u]=c.useState(!1),[l,s]=c.useState(0),[d,m]=c.useState(!1),[g,f]=c.useState(()=>vt()),p=JSON.stringify([e??"",g]),h=c.useRef(null),w=c.useRef(p);c.useEffect(()=>{const y=()=>{const E=Date.now(),A=new Date(E+9*36e5),v=Date.UTC(A.getUTCFullYear(),A.getUTCMonth(),A.getUTCDate()+1)-9*36e5;return Math.max(1e3,v-E+1e3)};let S=setTimeout(function E(){f(vt()),S=setTimeout(E,y())},y());return()=>clearTimeout(S)},[]),c.useEffect(()=>{w.current=p,h.current=null,r(!1),m(!1);let y=!1,S=!1,E=!1,A,v=0,L=null,B=0;const I=40,P=()=>{A!==void 0&&(clearInterval(A),A=void 0)};let O=!1;try{const x=new URLSearchParams(window.location.search),q=x.get("forceRefresh")||x.get("force");O=q==="1"||q==="true"}catch{}const G=x=>{S||(E=!0,h.current=p,t.current=x.today,n.current=x.yesterday,r(!0),m(!0),s(q=>q+1),y=!0,P())},Y=async()=>{if(y)return;if(!O){const q=Vo(!1,void 0,e);if(Wo(q.today)){G(q);return}}if(L){++v>=I&&V();return}if(v>=B){B=v+8,L=Od(3e3).catch(()=>!1);try{await L}finally{L=null}if(y)return}const x=Vo(O,void 0,e);if(Wo(x.today)){G(x);return}++v>=I&&V()};function V(){r(!0),m(!1),y=!0,P()}const k=()=>{if(S||E)return;const x=Vo(O,void 0,e);Wo(x.today)&&G(x)};try{window.addEventListener("speechear.data.updated",k)}catch{}return A=setInterval(Y,250),Y(),()=>{y=!0,S=!0,P();try{window.removeEventListener("speechear.data.updated",k)}catch{}}},[e,g]);const b=c.useCallback(y=>{if(h.current!==p)return;const S=a?n.current:t.current,E=a?t.current:n.current;return S?.[y]?.length?S[y]:E?.[y]?.length?E[y]:void 0},[a,l,p]);return{loaded:w.current===p&&o,hasData:w.current===p&&d,showYesterday:a,setShowYesterday:u,getTrainingPerType:b}}const bt=[];let kn=!1;function Qa(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=bt[bt.length-1];t&&(e.stopPropagation(),t())}function Za(e){return bt.push(e),!kn&&typeof document<"u"&&(document.addEventListener("keydown",Qa),kn=!0),()=>{const t=bt.lastIndexOf(e);t>=0&&bt.splice(t,1),bt.length===0&&kn&&typeof document<"u"&&(document.removeEventListener("keydown",Qa),kn=!1)}}function xd(e,t=!0){const n=bn(e);c.useEffect(()=>{if(t)return Za(()=>{n.current?.()})},[t,n])}const Uo=(e,t)=>`${e}:${t??1}`,Jt=new Map,Yo=new Set,zo=new Map,xn=6e4;function Fd(e,t){const[n,o]=c.useState(0),[r,a]=c.useState(0),u=JSON.stringify(Array.from(new Set(e.map(l=>Uo(l.word,l.homonum)))).sort());return c.useEffect(()=>{const l=JSON.parse(u),s=Date.now(),d=l.filter(w=>!Jt.has(w)&&!Yo.has(w)&&!(s-(zo.get(w)??-1/0)<xn));let m=!1,g=null,f=1/0;const p=(w=xn)=>{if(m)return;const b=Date.now()+w;b>=f||(g!==null&&clearTimeout(g),f=b,g=setTimeout(()=>a(y=>y+1),w))};for(const w of l){if(Jt.has(w)||Yo.has(w))continue;const b=zo.get(w);b!=null&&s-b<xn&&p(Math.max(0,xn-(s-b)))}if(d.length===0)return()=>{m=!0,g!==null&&clearTimeout(g)};const h=Array.from(new Set(d.map(w=>w.slice(0,w.lastIndexOf(":")))));return Promise.resolve().then(()=>t(h)).then(w=>{for(const b of w)b.Meaning&&Jt.set(Uo(b.Word,b.Homonum??void 0),b.Meaning);if(w.length>0)for(const b of d)Jt.has(b)||Yo.add(b);else{const b=Date.now();for(const y of d)zo.set(y,b);p()}m||w.length===0||o(b=>b+1)}).catch(()=>{p()}),()=>{m=!0,g!==null&&clearTimeout(g)}},[u,t,r]),c.useMemo(()=>{const l=JSON.parse(u),s=new Map;for(const d of l){const m=Jt.get(d);m!=null&&s.set(d,m)}return s},[u,n])}function jd(){const[e,t]=c.useState(null),n=c.useCallback(a=>t(a.getBoundingClientRect()),[]),o=c.useCallback(()=>t(null),[]),r=c.useCallback(a=>{const u=a.getBoundingClientRect();t(l=>l?null:u)},[]);return{anchorRect:e,isOpen:e!=null,openAt:n,close:o,toggleAt:r}}function $d(e){const[t,n]=c.useState(null),[o,r]=c.useState(null),a=c.useRef(null);c.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]);const u=c.useCallback((s,d)=>{a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{n(s),r(d)},e)},[e]),l=c.useCallback(()=>{a.current&&clearTimeout(a.current),n(null),r(null)},[]);return{payload:t,anchorRect:o,openAfterDelay:u,close:l}}function Hd(e,t,n){const o=Number.isFinite(t)&&t>=1?Math.floor(t):1,r=Math.max(1,Math.ceil(e.length/o)),a=Number.isFinite(n)?Math.min(Math.max(1,Math.floor(n)),r):1;return{pageItems:c.useMemo(()=>e.slice((a-1)*o,a*o),[e,a,o]),totalPages:r,curPage:a}}function eu(e,t){const[n,o]=c.useState(e);n!==e&&(o(e),t(1))}function Gd(e={}){const{defaultPageSize:t="25",resetOn:n}=e,[o,r]=c.useState(""),[a,u]=c.useState(t),[l,s]=c.useState(1),d=f=>{const p=Number(f);return Number.isFinite(p)&&p>=1?Math.floor(p):null},m=d(t)??25,g=d(a)??m;return eu(JSON.stringify([o,a,...n??[]]),s),{query:o,setQuery:r,pageSize:a,setPageSize:u,perPage:g,page:l,setPage:s}}function Wd(e="warning"){const[t,n]=c.useState(""),[o,r]=c.useState(e),[a,u]=c.useState(0),l=c.useCallback((g,f)=>{r(f),n(g),u(p=>p+1)},[]),s=c.useCallback(g=>l(g,"warning"),[l]),d=c.useCallback(g=>l(g,"normal"),[l]),m=c.useCallback(()=>n(""),[]);return{toastMessage:t,toastType:o,toastKey:a,showToast:l,showWarning:s,showNormal:d,clearToast:m}}const Vd=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"audio-lines",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."}],Ud={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function Yd(e){return Vd.map(t=>{const n=Ud[t.key];return n?{...t,label:e(`trainingType.${n}.title`),desc:e(`trainingType.${n}.desc`)}:t})}const Xt={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},Qt=Xt.blue,Fn=Xt.green,Zt=Xt.amber,jn=Xt.purple,zd=Xt.pink,Kd=[{key:"discrimination",label:"\uBCC0\uBCC4\uD6C8\uB828",disc:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0, \uB610\uB294 \uD2B9\uC815 \uC18C\uB9AC\uB97C \uAD6C\uBCC4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"ear",types:[{key:"SAME_SOUND_PICK",label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",icon:"volume-2",color:Qt,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"SAME_OR_DIFF",label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",icon:"diff",color:Qt,subTitle:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},{key:"HEAR_AND_PICK_SAME",label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"headphones",color:Qt,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"HEAR_AND_PICK_INCLUDED",label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"scan-search",color:Qt,subTitle:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"STARTS_WITH_SAME_SOUND",label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"play-circle",color:Qt,subTitle:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."}]},{key:"synthesis",label:"\uD569\uC131\uD6C8\uB828",disc:"\uB450 \uAC1C \uC774\uC0C1\uC758 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uD569\uCCD0 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"git-merge",types:[{key:"MERGE_2_SYLLABLES",label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",icon:"link-2",color:Fn,subTitle:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_SYLLABLES",label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",icon:"git-merge",color:Fn,subTitle:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_2_PHONEMES",label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",icon:"combine",color:Fn,subTitle:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_PHONEMES",label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",icon:"braces",color:Fn,subTitle:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"}]},{key:"deletion",label:"\uD0C8\uB77D\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC5D0\uC11C \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uC81C\uAC70\uD588\uC744 \uB54C \uB0A8\uB294 \uC18C\uB9AC\uB97C \uC778\uC2DD\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"scissors",types:[{key:"DROP_1_FROM_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"scissors",color:Zt,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_1_FROM_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"minus-circle",color:Zt,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_PART_FROM_COMPOUND",label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84\uD0C8\uB77D",icon:"unlink",color:Zt,subTitle:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_FINAL_CONSONANT_FROM_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",icon:"eraser",color:Zt,subTitle:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"REMOVE_CONSONANT_AND_IDENTIFY_PHONEME",label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",icon:"audio-lines",color:Zt,subTitle:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"}]},{key:"substitution",label:"\uB300\uCE58\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC758 \uC77C\uBD80 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uBC14\uAFB8\uC5B4 \uC0C8\uB85C\uC6B4 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"replace",types:[{key:"CHANGE_1_SYLL_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"replace",color:jn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_SYLL_IN_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"shuffle",color:jn,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"arrow-right-left",color:jn,subTitle:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"flip-horizontal",color:jn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}]},{key:"attention",label:"\uCCAD\uAC01\uC801\uC8FC\uC758\uB825\uD6C8\uB828",disc:"\uC5EC\uB7EC \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uC21C\uC11C\uB97C \uAE30\uC5B5\uD558\uB294 \uC8FC\uC758\uB825\uACFC \uB2E8\uAE30 \uAE30\uC5B5 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"list-ordered",types:[{key:"LISTEN_AND_REMEMBER_ORDER",label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",icon:"list-ordered",color:zd,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function qd(){const{t:e}=Le.useTranslation();return c.useMemo(()=>{const t=Object.fromEntries(Yd(e).map(o=>[o.key,o.label])),n={...t};return Kd.flatMap(o=>o.types).forEach(o=>{n[o.key]=e(`trainingType.${o.key}.label`,{defaultValue:o.label})}),{sentence:t,all:n}},[e])}function Jd({computeStyle:e,onScroll:t="close",onResize:n="close",ignoreOutsideClickSelector:o}){const[r,a]=c.useState(!1),[u,l]=c.useState({position:"fixed"}),s=c.useRef(null),d=c.useRef(null),m=c.useCallback(()=>{s.current&&l(e(s.current.getBoundingClientRect(),s.current))},[e]);c.useLayoutEffect(()=>{r&&m()},[r,m]),c.useEffect(()=>{if(!r)return;let p=d.current?.offsetHeight??0;p>0&&m();let h=0,w=null;typeof ResizeObserver<"u"&&d.current&&(w=new ResizeObserver(()=>{const B=d.current?.offsetHeight??0;if(B!==p){if(p=B,++h>4){w?.disconnect(),w=null;return}m()}}),w.observe(d.current));const b=B=>{const I=B.target;o&&I.closest?.(o)||s.current?.contains(I)||d.current?.contains(I)||a(!1)};document.addEventListener("mousedown",b),document.addEventListener("pointerdown",b);let y=null;const S=()=>{if(typeof requestAnimationFrame>"u"){m();return}y===null&&(y=requestAnimationFrame(()=>{y=null,m()}))},E=B=>{d.current?.contains(B.target)||(t==="reposition"?S():t==="close"&&a(!1))};t!=="ignore"&&window.addEventListener("scroll",E,!0);const A=()=>{n==="reposition"?S():n==="close"&&a(!1)};let v=null;const L=()=>{A(),v&&clearTimeout(v),v=setTimeout(()=>{v=null,n==="reposition"&&m()},250)};return n!=="ignore"&&(window.addEventListener("resize",A),window.addEventListener("orientationchange",L)),()=>{y!==null&&cancelAnimationFrame(y),w?.disconnect(),document.removeEventListener("mousedown",b),document.removeEventListener("pointerdown",b),t!=="ignore"&&window.removeEventListener("scroll",E,!0),n!=="ignore"&&(window.removeEventListener("resize",A),window.removeEventListener("orientationchange",L)),v&&clearTimeout(v)}},[r,m,t,n,o]),c.useEffect(()=>{if(r)return Za(()=>a(!1))},[r]);const g=c.useCallback(()=>a(p=>!p),[]),f=c.useCallback(()=>a(!1),[]);return{open:r,setOpen:a,toggle:g,close:f,style:u,triggerRef:s,menuRef:d}}function Xd(e,{mode:t="playback",autoStart:n=!1,onPlaySpeaker:o,onComplete:r,playMs:a=1100,feedbackMs:u=1500}={}){const[l,s]=c.useState([]),[d,m]=c.useState(0),[g,f]=c.useState("idle"),[p,h]=c.useState(null),[w,b]=c.useState([]),[y,S]=c.useState(null),[E,A]=c.useState(0),v=c.useRef(0),L=c.useCallback(F=>{v.current=typeof F=="function"?F(v.current):F,A(v.current)},[]),B=c.useRef(o),I=c.useRef(r);c.useEffect(()=>{B.current=o,I.current=r},[o,r]);const P=c.useRef([]),O=()=>{P.current.forEach(clearTimeout),P.current=[]},G=(F,U)=>{P.current.push(setTimeout(U,F))};c.useEffect(()=>()=>O(),[]);const Y=l[d]?.id??null,V=c.useRef(null),k=c.useCallback(()=>{O(),f("playing"),b([]),S(null),L(0);let F=0;e.forEach((U,H)=>{G(F,()=>{m(H),h(U.id),B.current?.(U)}),G(F+1e3,()=>{h(null),b(je=>[...je,U.id])}),F+=1300}),G(F,()=>{f("done"),I.current?.({score:0,total:e.length})})},[e,L]),x=c.useCallback((F,U)=>{if(U>=F.length){f("done"),I.current?.({score:v.current,total:F.length});return}V.current=null,m(U),S(null),f("playing"),h(F[U].id),B.current?.(F[U]),G(a,()=>{h(null),f("waiting")})},[a]),q=c.useCallback(()=>{O();const F=K(e);s(F),L(0),b([]),x(F,0)},[e,x,L]),Q=c.useCallback(()=>{t==="playback"?(s(e),k()):q()},[t,e,k,q]),ce=c.useCallback(()=>{O(),f("idle"),h(null),b([]),S(null),m(0),L(0),s([])},[L]),Ae=JSON.stringify(e.map(F=>[F.id,F.label,F.angleDeg,F.deg,F.row,F.shortcut]));c.useEffect(()=>(n?Q():ce(),()=>O()),[t,Ae,n]);const R=c.useCallback(F=>{g!=="waiting"||t==="playback"||V.current===d||(V.current=d,S(F),F===l[d]?.id&&L(U=>U+1),t==="exam"?(f("playing"),G(400,()=>x(l,d+1))):(f("feedback"),G(u,()=>x(l,d+1))))},[g,t,l,d,x,u,L]),j=t==="playback"?e.length:l.length;return{bind:{activeSpeakerId:p,playedIds:w,selectedId:y,answerId:Y,showFeedback:g==="feedback",clickable:g==="waiting",onSelectSpeaker:R},index:d,total:j,score:E,phase:g,done:g==="done",start:Q,reset:ce}}/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function tu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Qd(e){if(Array.isArray(e))return e}function Zd(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o,r,a,u,l=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(m){d=!0,r=m}finally{try{if(!s&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw r}}return l}}function ef(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
\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"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",bizNo:"\uC0AC\uC5C5\uC790\uB4F1\uB85D\uBC88\uD638",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",bizNoValue:"526-81-02926"},Bs={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},vs={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"},Ns={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30",showPassword:"\uBE44\uBC00\uBC88\uD638 \uBCF4\uAE30"},Os={ariaLabel:"\uC120\uD0DD \uD0ED"},Ls={ariaLabel:"\uD0ED"},Rs={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Is={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Ms={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"}},Ps={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",done:"\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",detailFor:"{{name}} \uC0C1\uC138\uBCF4\uAE30"},ks={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"}},xs={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},Fs={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.",runs:"{{count}}\uD310"},js={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654",scrollRegion:"\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C",rowActionHint:"\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4"},$s={viewWords:"\uB0B1\uB9D0"},Hs={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Gs={chooseDate:"\uB0A0\uC9DC \uC120\uD0DD",selectYear:"\uC5F0 \uC120\uD0DD",selectMonth:"\uC6D4 \uC120\uD0DD"},Ws={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Vs={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Us={place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},Ys={clearSelection:"\uC120\uD0DD \uD574\uC81C"},zs={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Ks={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},qs={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Js={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Xs={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},Qs={list:"\uD3F4\uB354",open:"{{name}} \uD3F4\uB354 \uC5F4\uAE30, {{count}}\uAC1C",menu:"{{name}} \uD3F4\uB354 \uBA54\uB274",placeMenu:"{{name}} \uBA54\uB274",tree:"\uD3F4\uB354 \uAD6C\uC870 \uBCF4\uAE30",fold:"{{name}} \uC811\uAE30",unfold:"{{name}} \uD3BC\uCE58\uAE30",add:{title:"\uD3F4\uB354 \uCD94\uAC00",sub:"\uC0C8 \uD3F4\uB354 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uD3F4\uB354 \uC774\uB984"}},Zs={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},ec={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"},tc={common:Zi,calendar:es,passCard:ts,rating:ns,colorPicker:os,dropdown:rs,accordion:as,header:us,nav:ls,settings:is,usage:ss,account:cs,training:ds,customers:fs,payment:gs,coupons:ms,visits:ps,trainingType:Cs,myWordTable:hs,keyWords:ys,wordTable:bs,wordSearch:Ss,wordPrint:ws,topic:Es,device:As,manager:Ts,wordPairs:_s,footer:Ds,date:Bs,wordData:vs,textField:Ns,segmentedControl:Os,tabs:Ls,fileUpload:Rs,avatar:Is,myHomework:Ms,trainingStatus:Ps,store:ks,progress:xs,trainingMiss:Fs,table:js,wordScore:$s,topBanner:Hs,datePicker:Gs,report:Ws,tooltip:Vs,phonemeProfile:Us,bulkBar:Ys,debug:zs,badge:Ks,loader:qs,soundCompass:Js,breadcrumb:Xs,folder:Qs,board:Zs,promoBannerBg:ec},nc={filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Difficulty",grade:"Grade {{n}}",age:"Age {{n}}",agePlus:"Age {{n}}+",ageRange:"Age {{from}}\u2013{{to}}",difficultyInfoAge:"Age 3\u20137: the easiest words (grade 1), split by age.",difficultyInfoGrade:"Grades 2\u20134: harder words, not split by age.",difficultyInfoNone:"None: words with no difficulty assigned.",difficultyInfoBandAge:"{{ages}}: {{grade}} words, split by age.",difficultyInfoBandAgeOne:"{{ages}}: {{grade}} words.",difficultyInfoBandGrade:"{{grade}}: words for {{ages}}.",difficultyInfoBandAgeNamed:"{{ages}}: words split by age.",gradeNone:"None",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",field:"Semantic Category",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"}},oc={filter:{onlyHighUsage:"High-use words only"}},rc={wordSearch:nc,wordPairs:oc};const ac="0.448.0";var Zr;const uc=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],co="ko",lc="ihab_display_language",fo={en:()=>Promise.resolve().then(function(){return cg})},Dn=new Set(["ko"]),go={},$t=e=>e.split("-")[0];function ea(e){const t=$t(e),n=fo[t];return!n||Dn.has(t)?Promise.resolve():go[t]??(go[t]=n().then(o=>{const r=o.default??o;ue.addResourceBundle(t,"translation",r,!0,!1),Dn.add(t)},o=>{throw go[t]=void 0,o}))}function ta(){if(typeof window>"u")return co;try{const e=localStorage.getItem(lc);if(e&&uc.some(t=>t.code===e))return e}catch{}return co}function na(e){try{document.documentElement.lang=e}catch{}}ue.on("languageChanged",na),na(ta());const oa=(Zr=ue).__ihabRawChangeLanguage??(Zr.__ihabRawChangeLanguage=ue.changeLanguage);ue.changeLanguage=oa,ue.use(Le.initReactI18next).init({resources:{ko:{translation:tc},en:{translation:rc}},lng:ta(),fallbackLng:co,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const mo=oa.bind(ue);let po;ue.changeLanguage=((e,t)=>{if(po=e,!e||Dn.has($t(e))||!fo[$t(e)])return mo(e,t);const n=()=>po===e?mo(e,t):Promise.resolve(ue.t);return ea(e).then(n,o=>(console.error(o),n()))});{const e=ue.language;e&&!Dn.has($t(e))&&fo[$t(e)]&&ea(e).then(()=>{ue.language===e&&(po??e)===e&&mo(e)},t=>console.error(t))}const ra=new Set(["field"]),Co="none";function ic(e){return e==null||String(e).trim()===""}function ho(e){return typeof e!="string"?!1:Ht.includes(e)||e===Co||ua.test(e)||la.test(e)}function yo(e,t,n){if(!e)return!0;const o=e instanceof Set?e:new Set(e);if(o.size===0)return!0;if(n!=null){if(o.has(`age${n}`))return!0;for(const r of o){const a=bo(r);if(a!=null&&n>=a)return!0}}return ic(t)?o.has(Co):o.has(String(t))}const Ct=["grade","syllables","pos","wordType","field"],Ht=["1","2","3","4","5"],aa=99,ua=/^age([1-9]\d?)$/,la=/^age([1-9]\d?)plus$/;function ia(e){const t=ua.exec(e);return t?Number(t[1]):null}function bo(e){const t=la.exec(e);return t?Number(t[1]):null}function So(e){if(!Array.isArray(e)||e.length===0||e.length>Ht.length)return null;const t=[];let n=1;for(let r=0;r<e.length;r++){const a=e[r];if(!a||a.grade!==r+1||typeof a.showAge!="boolean")return null;const u=a.showAge?void 0:sc(a.label);if(u===null)return null;const l={grade:a.grade,minAge:n,maxAge:null,showAge:a.showAge};if(u&&(l.label=u),r===e.length-1){if(a.maxAge!==null)return null;t.push(l);break}const s=a.maxAge;if(typeof s!="number"||!Number.isInteger(s)||s<n||s>=aa)return null;l.maxAge=s,t.push(l),n=s+1}const o=t.flatMap(r=>r.label?[r.label]:[]);return new Set(o).size!==o.length?null:(cc(t),t)}function sc(e){if(e==null)return;if(typeof e!="string")return null;const t=e.trim();if(t){if(ho(t)||ma.test(t))return null;for(const n of Gt())if(ht(n).reverse.grade.has(t))return null;return t}}const Bn=new Map,sa=new Map;let ca=null;function cc(e){ca=e,Bn.clear();for(const t of e)t.label&&(Bn.set(String(t.grade),t.label),sa.set(t.label,String(t.grade)))}function da(e,t){const n=t===void 0?ca:t;if(!n||n.length===0)return[...e];const o=[],r=l=>{for(const s of l)o.includes(s)||o.push(s)},a=l=>fa([l]),u=l=>n.find(s=>l>=s.minAge&&(s.maxAge==null||l<=s.maxAge));for(const l of e){if(Ht.includes(l)){const m=n.find(g=>String(g.grade)===l);r(m?a(m):[l]);continue}const s=ia(l);if(s!=null){const m=u(s);r(m&&!(m.showAge&&m.maxAge!=null)?a(m):[l]);continue}const d=bo(l);if(d!=null){const m=n.filter(g=>g.maxAge==null||g.maxAge>=d);if(m.length===0){r([l]);continue}for(const g of m)if(g.showAge&&g.maxAge!=null){const f=[];for(let p=Math.max(d,g.minAge);p<=g.maxAge;p++)f.push(`age${p}`);r(f)}else r(a(g));continue}r([l])}return o}function fa(e){const t=[];for(const n of e){if(!n.showAge){t.push(String(n.grade));continue}if(n.maxAge==null){t.push(`age${n.minAge}plus`);continue}for(let o=n.minAge;o<=n.maxAge;o++)t.push(`age${o}`)}return t}const dc=["1","2","3","4","5+"],fc=["noun","verb","modifier"],gc=["native","sino","foreign","mixed"],mc={grade:[],syllables:dc,pos:fc,wordType:gc,field:[]},pc=(e,t)=>e==="grade"?ho(t):mc[e].includes(t),Cc={noun:["\uBA85","\uC218"],verb:["\uB3D9","\uD615"],modifier:["\uBD80","\uAD00"]},hc={native:"\uACE0\uC720",sino:"\uD55C\uC790",foreign:"\uC678\uB798",mixed:"\uD63C\uC885"},yc={grade:["\uB09C\uC774\uB3C4 \uB4F1\uAE09","\uB4F1\uAE09","Grade","Difficulty"]},bc={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)"]}},wo=new Map;try{ue.store?.on?.("added",()=>wo.clear())}catch{}function ht(e){const t=wo.get(e);if(t)return t;const n=ue.getFixedT(e),o={section:{grade:n("wordSearch.filter.difficulty","\uB09C\uC774\uB3C4"),syllables:n("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),pos:n("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:n("wordSearch.filter.wordType","\uC720\uD615"),field:n("wordSearch.filter.field","\uC758\uBBF8\uBC94\uC8FC")},value:{grade:{...Object.fromEntries(Ht.map(r=>[r,n("wordSearch.filter.grade",{n:Number(r),defaultValue:`${r}\uB4F1\uAE09`})])),...Object.fromEntries(ga.map(r=>[`age${r}`,n("wordSearch.filter.age",{n:r,defaultValue:`${r}\uC138`})])),...Object.fromEntries(ga.map(r=>[`age${r}plus`,n("wordSearch.filter.agePlus",{n:r,defaultValue:`${r}\uC138 \uC774\uC0C1`})])),[Co]:n("wordSearch.filter.gradeNone","\uC5C6\uC74C")},syllables:{...Object.fromEntries(["1","2","3","4"].map(r=>[r,n("wordSearch.filter.syllable",{n:Number(r),defaultValue:`${r}\uC74C\uC808`})])),"5+":n("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1")},pos:{noun:n("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)"),verb:n("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)"),modifier:n("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")},wordType:{native:n("wordSearch.filter.type.native","\uACE0\uC720\uC5B4"),sino:n("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4"),foreign:n("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4"),mixed:n("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")},field:{}}};return o.reverse=Object.fromEntries(Ct.map(r=>{const a=new Map;for(const[u,l]of Object.entries(o.value[r]))a.has(l)||a.set(l,u);return[r,a]})),wo.set(e,o),o}const ga=Array.from({length:aa},(e,t)=>t+1),Gt=()=>Array.from(new Set([ue.language,"ko","en"].filter(e=>!!e))),Sc="highUsage";function wc(e){if(e===Sc)return!0;for(const t of Gt())if(ue.getFixedT(t)("wordPairs.filter.onlyHighUsage","\uD65C\uC6A9\uB3C4 \uB192\uC740 \uB2E8\uC5B4\uB9CC")===e)return!0;return!1}function Wt(e){if(Ct.includes(e))return e;for(const t of Gt()){const n=ht(t);for(const o of Ct)if(n.section[o]===e)return o}for(const t of Ct)if(yc[t]?.includes(e))return t;return null}function ot(e,t){if(ra.has(e)||pc(e,t))return t;if(e==="grade"){const n=sa.get(t.trim());if(n)return n}for(const n of Gt()){const o=ht(n).reverse[e].get(t);if(o)return o}for(const[n,o]of Object.entries(bc[e]??{}))if(o.includes(t))return n;if(e==="grade"&&ma.test(t.trim()))return null;if(e==="grade"||e==="syllables"){const n=parseInt(t.replace(/\D/g,""),10);if(Number.isFinite(n)&&n>=1)return e==="grade"?n<=Ht.length?String(n):null:n>=5?"5+":String(n)}return null}const ma=/(^age\s*\d)|((세|살|years?\s*old|yrs?)(\s*(이상|\+|or\s+(older|above|more)))?$)/i;function Ec(e,t,n=ue.language){if(e==="grade"){const o=Bn.get(t);if(o)return o}return ht(n).value[e][t]??t}const Ac=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):typeof e=="string"&&e?[e]:[];function Eo(e){const t={};for(const[n,o]of Object.entries(e??{})){const r=Wt(n);if(r)for(const a of Ac(o)){const u=ot(r,a);if(!u)continue;const l=t[r]??(t[r]=[]);l.includes(u)||l.push(u)}}return t}function Ao(e,t=ue.language){const n=ht(t||"ko"),o={};for(const r of Ct){const a=(r==="grade"?da(e?.[r]??[]):e?.[r]??[]).map(u=>(r==="grade"?Bn.get(u):void 0)??n.value[r][u]??(ra.has(r)?u:void 0)).filter(u=>!!u);a.length&&(o[n.section[r]]=a)}return o}function Tc(e,t=ue.language){const n={};for(const[o,r]of Object.entries(e??{}))Wt(o)||(n[o]=r);return{...n,...Ao(Eo(e),t)}}function _c(e){for(const t of Gt()){const n=ht(t);if(Ct.some(o=>n.section[o]===e))return t}return ue.language||"ko"}let vn=null,pa=null,Ca=null;function Dc(){const e=An();if(e&&e.entries.length>0){const t=It();if(vn&&pa===e&&Ca===t)return vn;const n=new Set,o=[];for(const r of e.entries)!r.word||n.has(r.word)||(n.add(r.word),o.push({w:r.word,s:r.syllables,p:t?.[r.word]?[...t[r.word].cho??[],...t[r.word].jung??[],...t[r.word].jong??[]]:[],pron:r.pronunciation||r.word,grade:r.grade}));return vn=o,pa=e,Ca=t,vn}return[]}const He=new Proxy([],{get(e,t){const n=Dc(),o=n[t];return typeof o=="function"?o.bind(n):o}});function To(e){return e.length?e[Math.floor(Math.random()*e.length)]:void 0}function Re(e,t){if(t>=e.length)return K(e);if(t===0)return[];const n=e.slice();for(let o=0;o<t;o++){const r=o+Math.floor(Math.random()*(n.length-o)),a=n[o];n[o]=n[r],n[r]=a}return n.slice(0,t)}let _o=null,ha=null;function Ke(){const e=An();if(_o&&ha===e)return _o;const t=new Map;for(const n of He)n.w&&t.set(n.w,n.pron);return _o=t,ha=e,t}function fe(e){return Ke().get(e)||e}function Nn(e,t,n=new Set){const o=[];for(const r of K(e)){if(o.length>=t)break;const a=fe(r);n.has(a)||(n.add(a),o.push(r))}return o}let Bc=0;function Ce(e){return`${e}-rt-${++Bc}`}function yt(e){const t=Wr();if(!t||t.total===0){const r=new Set;for(const a of e)r.add(a);return r}const n=wn(),o=new Set;for(const r of e)n.has(r)&&o.add(r);return o}const On=new Map;let ya=null,ba=null,Sa=null;function Vt(e){return e==null?"":Array.isArray(e)?e.slice().sort().join(","):e}function Do(e){const t=Array.isArray(e.choseong)&&e.choseong.length===0?"[]":Vt(e.choseong),n=e.composition,o=n?.syllable==null?"":Array.isArray(n.syllable)?n.syllable.slice().sort().join(","):String(n.syllable),r=n?`${Vt(n.cho)}/${Vt(n.jung)}/${Vt(n.jong)}/${n.jongNone?"N":""}/${o}`:"",a=Vt(e.grade);return`${e.difficulty??""}|${t}|${r}|${e.excludeNoImage?"1":"0"}|${e.count??""}|x${e.contrastCount??1}|${e.fullCount?"F":""}|s${e.sameStructureOnly===!1?"0":"1"}|v${e.phonemeView==="pron"?"p":"c"}|g${a}|t${e.targetSyllable??""}|c${e.choicesPerItem??""}`}const Bo=new Map;function vc(e){return Do({...e,count:void 0,choicesPerItem:void 0,fullCount:!1})}async function _e(e){const t=An(),n=It(),o=e.excludeNoImage?wn():null;(t!==ya||n!==ba||e.excludeNoImage&&o!==Sa)&&(On.clear(),Bo.clear(),ya=t,ba=n,Sa=o);const r=Do(e);return On.has(r)||On.set(r,Nc(e)),On.get(r)}function wa(e){if(!e)return null;const t=u=>u==null?null:Array.isArray(u)?u.length?u:null:[u],n=t(e.cho),o=t(e.jung),r=!!e.jongNone,a=r?null:t(e.jong);return n||o||a||r?r&&!n&&!o&&!a?u=>di(u):u=>gi(u,{cho:n,jung:o,jong:a,jongNone:r}):null}function Ea(e){const t=e.grade&&e.grade.length>0?new Set(e.grade):null,n=e.composition??null,o=n?.syllable!=null?new Set(Array.isArray(n.syllable)?n.syllable:[n.syllable]):null,r=n?[wa(n),o?u=>o.has(Lt(u)):null].filter(u=>u!=null):[];if(!t&&r.length===0)return null;const a=e.phonemeView==="pron";return u=>{if(!yo(t,u.grade,u.age))return!1;if(r.length===0)return!0;const l=a?fe(u.w):u.w;return r.every(s=>s(l))}}async function Nc(e){const{difficulty:t=null,choseong:n=null,composition:o=null,targetSyllable:r=null,excludeNoImage:a=!1}=e,u=e.grade&&e.grade.length>0?new Set(e.grade):null,l=e.sameStructureOnly??!0,s=e.phonemeView==="pron"?"pron":"char",d=Math.max(1,e.contrastCount??1),m=t==="cho"||t==="jung"||t==="jong",g=m&&d>=2,f=t==="count",p=n?new Set(Array.isArray(n)?n:[n]):null,h=o?.syllable!=null?new Set(Array.isArray(o.syllable)?o.syllable:[o.syllable]):null,w=o?[wa(o),h?R=>h.has(Lt(R)):null].filter(R=>R!=null):[],b=t==="random"||t===null,y=b||f,S=b||g||f;let E=He.filter(R=>!R.w||!yo(u,R.grade,R.age)?!1:S?!0:Array.isArray(R.p)&&R.p.length>0);p&&(E=E.filter(R=>{for(const j of p)if(si(R.w,j))return!0;return!1})),w.length>0&&(E=E.filter(R=>{const j=s==="pron"?fe(R.w):R.w;return w.every(F=>F(j))})),r&&(E=E.filter(R=>R.w[0]===r));let A;if(a){const R=new Set;for(const j of E)if(R.add(j.w),Array.isArray(j.p))for(const F of j.p)R.add(F);if(y)for(const j of He)j.w&&R.add(j.w);A=yt(R)}else{const R=new Set;for(const j of E)if(R.add(j.w),Array.isArray(j.p))for(const F of j.p)R.add(F);if(y)for(const j of He)j.w&&R.add(j.w);A=R}let v=null;if(g){const R=new Set;for(const j of He)j.w&&R.add(j.w);v=a?yt(R):R}const L=E.filter(R=>A.has(R.w)),B=600,I=Array.from(A),P=I.length>B?Re(I,B):I,O=f&&o!=null&&(de(o.cho)||de(o.jung)||de(o.jong)),G=2500,Y=new Map;if(f&&!O&&d>=2){for(const R of I){const j=Lt(R),F=Y.get(j);F?F.push(R):Y.set(j,[R])}for(const[R,j]of Y)j.length>G&&Y.set(R,Re(j,G))}const V=li();let k=null;if(O){const R=vc(e),j=a?wn():null,F=Bo.get(R);k=F&&F.imageOkSet===j?F.map:Hi(o,I,V,l,s,fe),Bo.set(R,{imageOkSet:j,map:k})}const x=500,q=1500,Q=e.fullCount?L:t==="random"?L.length>x?Re(L,x):L:L.length>q?Re(L,q):L,ce=It(),Ae=[];for(const R of Q){let j;const F=fe(R.w);if(g)j=pi(R.w,t,d,v,24).filter(U=>fe(U)!==F);else if(f)O?j=(k.get(R.w)??[]).filter(U=>fe(U)!==F):d<=1?j=Xr(R.w,ce,{okSet:A,pronOf:fe,decompOf:V,sameStructureOnly:!1}):j=(Y.get(Lt(R.w))??[]).filter(U=>{if(U===R.w||fe(U)===F)return!1;const H=Ci(F,fe(U));return d>=5?H>=5:H===d});else if(b){const U=H=>H!==R.w&&H.length===R.w.length&&fe(H)!==F;if(e.fullCount){const H=Math.max(1,(e.choicesPerItem??3)-1),je=[],me=new Set;for(const Ue of P){if(!U(Ue))continue;const lt=fe(Ue);if(!me.has(lt)&&(me.add(lt),je.push(Ue),je.length>=H))break}j=je}else j=P.filter(U)}else{const U=t;j=Xr(R.w,ce,{kind:U,okSet:A,pronOf:fe,decompOf:V,sameStructureOnly:!1}),j.length===0&&(j=(P.length>30?Re(P,30):P).filter(H=>H!==R.w&&ii(R.w,H)===t&&fe(H)!==F))}if(l&&j.length>0&&(m||f&&!O)){const U=V(fe(R.w));j=j.filter(H=>!io(U,V(fe(H))))}j.length!==0&&Ae.push({word:R,usable:j})}return Ae}async function Aa(e,t){const{choicesPerItem:n=3,count:o=10}=t,r=n-1,a=(await _e(t)).filter(l=>l.usable.length>=r),u=[];for(const l of K(a)){if(u.length>=o)break;const s=Nn(l.usable,r);if(s.length<r)continue;const d=K([l.word.w,...s]);u.push({id:Ce(e+"-item"),index:u.length+1,word:l.word.w,syllables:l.word.s,choices:d,answerIndex:d.indexOf(l.word.w)})}return u}async function Oc(e){const{choicesPerItem:t=3,count:n=10}=e,o=t-1,r=await _e({...e,difficulty:null});if(r.length<t)return[];const a=e.composition??null,u=[],l=K([...r]);for(const s of l){if(u.length>=n)break;const d=s.word.w,m=[...s.word.pron||d],g=a&&_n(a)?m.filter(b=>{const y=X(b);return!!y&&nt(y,a)}):[],f=To(g.length?g:m);if(!f)continue;const p=r.filter(b=>b.word.w!==d&&b.word.s===s.word.s&&!(b.word.pron||b.word.w).includes(f)&&b.word.pron!==s.word.pron);if(p.length<o)continue;const h=Nn(p.map(b=>b.word.w),o);if(h.length<o)continue;const w=K([d,...h]);u.push({id:Ce("HPI-item"),index:u.length+1,targetSyllable:f,word:d,choices:w,answerIndex:w.indexOf(d)})}return u}async function Lc(e){const{count:t=10}=e,n=(await _e(e)).filter(a=>a.usable.length>=1);if(!n.length)return[];const o=n.length>=t?Re(n,t):K(Array.from({length:t},(a,u)=>n[u%n.length])),r=K(Array.from({length:t},(a,u)=>u<Math.ceil(t/2)));return o.map((a,u)=>{const l=r[u];let s;if(l)s=[a.word.w,a.word.w];else{const d=To(a.usable);s=Math.random()<.5?[a.word.w,d]:[d,a.word.w]}return{id:Ce("SOD-item"),index:u+1,word:a.word.w,pair:s,same:l}})}async function Rc(e){const{choicesPerItem:t=3,count:n=10}=e,o=t-1,r=await _e({...e,difficulty:null});if(r.length<t+1)return[];const a=r.map(f=>f.word.w),u=new Map(r.map(f=>[f.word.w,f.word.pron])),l=f=>(u.get(f)||f)[0]??"",s={};for(const f of r){const p=l(f.word.w);p&&(s[p]||(s[p]=[]),s[p].push(f.word.w))}const d=Object.entries(s).filter(([,f])=>new Set(f.map(p=>u.get(p)||p)).size>=2).map(([f])=>f);if(d.length===0)return[];const m=[],g=K([...d]);for(let f=0;m.length<n&&f<n*4;f++){const p=g[f%g.length],h=s[p];if(h.length<2)continue;const w=K([...h]),b=w[0],y=u.get(b)||b,S=w.find(B=>B!==b&&(u.get(B)||B)!==y);if(!b||!S)continue;const E=u.get(S)||S,A=a.filter(B=>l(B)!==p&&B!==b&&B!==S&&B.length===S.length&&(u.get(B)||B)!==E);if(A.length<o)continue;const v=Nn(A,o);if(v.length<o)continue;const L=K([S,...v]);m.push({id:Ce("SWS-item"),index:m.length+1,sourceWord:b,targetSyllable:p,word:S,choices:L,answerIndex:L.indexOf(S)})}return m}function Ta(e,t,n){const o=Ke(),r=s=>o.get(s)||s,a=(s,d)=>{const m=[...s],g=[...d];if(m.length!==g.length)return-1;let f=-1;for(let p=0;p<m.length;p++)if(m[p]!==g[p]){if(f>=0)return-1;f=p}return f},u=e.map(s=>({e:s,swaps:s.usable.filter(d=>!!d&&a(s.word.w,d)>=0&&r(d)!==r(s.word.w))})).filter(s=>s.swaps.length>0),l=[];for(const{e:s,swaps:d}of K(u)){if(l.length>=t)break;const m=To(d)??"",g=[...s.word.w],f=[...m],p=a(s.word.w,m),h=Nn(s.usable.filter(w=>w&&w!==m),2,new Set([r(m),r(s.word.w)]));h.length<2||l.push({id:Ce(n),index:l.length+1,word:s.word.w,original:s.word.w,changed:m,changedFrom:p>=0?g[p]:"",changedTo:p>=0?f[p]:"",distractors:h})}return l}async function _a(e,t,n){const{count:o=10}=t,r=Ke(),a=He.filter(h=>h.w&&h.s===e),u=t.excludeNoImage?yt(a.map(h=>h.w)):null,l=u?a.filter(h=>u.has(h.w)):a,s=new Set(l.map(h=>h.w)),d=Xi(s),m=t.phonemeView??"char",g=t.composition??null,f=Ea(t),p=[];for(const h of K(l)){if(p.length>=o)break;if(f&&!f(h))continue;const w=Qi(h.w,g,r,m,d,null,null);if(!w)continue;const b=w.distractors[0],y=[...h.w],S=[...b],E=y.findIndex((A,v)=>A!==S[v]);p.push({id:Ce(n),index:p.length+1,word:h.w,original:h.w,changed:b,changedFrom:E>=0?y[E]:"",changedTo:E>=0?S[E]:"",distractors:w.distractors.slice(1)})}return p}async function Ic(e){return _a(2,e,"CS2-item")}async function Mc(e){return _a(3,e,"CS3-item")}async function Pc(e){const t=(await _e({...e,difficulty:"count",contrastCount:1})).filter(n=>n.word.s===1&&n.usable.length>=1);return Ta(t,e.count??10,"CP1-item")}async function kc(e){const t=e.difficulty&&e.difficulty!=="random"?e.difficulty:"count",n=(await _e({...e,difficulty:t,contrastCount:1})).filter(o=>o.word.s===2&&o.usable.length>=1);return Ta(n,e.count??10,"CP2-item")}async function xc(e){const{count:t=10}=e,n=(await _e({...e})).filter(o=>o.word.s===2);return Re(n,t).map((o,r)=>({id:Ce("M2S-item"),index:r+1,word:o.word.w,answer:o.word.w,parts:[...o.word.w]}))}async function Fc(e){const{count:t=10}=e,n=(await _e({...e})).filter(o=>o.word.s===3);return Re(n,t).map((o,r)=>({id:Ce("M3S-item"),index:r+1,word:o.word.w,answer:o.word.w,parts:[...o.word.w]}))}function vo(e){const t=He.map(n=>n.w);return e.excludeNoImage?yt(t):new Set(t)}async function jc(e){const{count:t=10}=e,n=(await _e({...e})).filter(l=>l.word.s===2),o=Ke(),r=vo(e),a=e.phonemeView??"char",u=[];for(const l of K(n)){if(u.length>=t)break;const s=Yi(l.word.w,e.composition??null,o,a,r);if(!s)continue;const[d,...m]=s.distractors,g=[...l.word.w],f=g[0]===d?g[1]:g[0];u.push({id:Ce("D2-item"),index:u.length+1,original:l.word.w,word:l.word.w,dropped:f,missingResult:d,distractors:m})}return u}async function $c(e){const{count:t=10}=e,n=(await _e({...e})).filter(l=>l.word.s===3),o=Ke(),r=vo(e),a=e.phonemeView??"char",u=[];for(const l of K(n)){if(u.length>=t)break;const s=zi(l.word.w,e.composition??null,o,a,r);if(!s)continue;const[d,...m]=s.distractors,g=[...l.word.w];let f="";for(let p=0;p<g.length;p++)if(g.filter((h,w)=>w!==p).join("")===d){f=g[p];break}u.push({id:Ce("D3-item"),index:u.length+1,original:l.word.w,word:l.word.w,dropped:f,missingResult:d,distractors:m})}return u}async function Hc(e){const{count:t=10}=e,n=(await _e({...e})).filter(l=>l.word.s>=3),o=Ke(),r=vo(e),a=e.phonemeView??"char",u=[];for(const l of K(n)){if(u.length>=t)break;const s=Ki(l.word.w,e.composition??null,o,a,r);if(!s)continue;const[d,...m]=s.distractors,g=l.word.w,f=s.dropped??(g.startsWith(d)?g.slice(d.length):g.endsWith(d)?g.slice(0,g.length-d.length):"");u.push({id:Ce("DPC-item"),index:u.length+1,original:g,word:g,dropped:f,missingResult:d,distractors:m})}return u}async function Gc(e){const{count:t=10}=e,n=(await _e({...e})).map(o=>o.word.w);return n.length<3?[]:Array.from({length:t},(o,r)=>{const a=Re(n,3);return{id:Ce("LRO-item"),index:r+1,sequence:a,choices:K(a)}})}function Ln(e,t,n){const o=He.filter(l=>l.w&&l.s===e),r=t.excludeNoImage?yt(o.map(l=>l.w)):null,a=Ea(t),u=[];for(const l of o)if(!(r&&!r.has(l.w))&&!(a&&!a(l))){if(n){const s=X(l.w);if(!s||!n(s))continue}u.push(l)}return u}function Wc(e){const t=Ln(1,e,Tn.MERGE_2_PHONEMES.syllable);return Re(t,e.count??10).map((n,o)=>{const r=X(n.w);return{id:Ce("M2P-item"),index:o+1,parts:[pe[r.cho],Te[r.jung]],answer:n.w,word:n.w}})}function Vc(e){const t=Ln(1,e,Tn.MERGE_3_PHONEMES.syllable);return Re(t,e.count??10).map((n,o)=>{const r=X(n.w);return{id:Ce("M3P-item"),index:o+1,parts:[pe[r.cho],Te[r.jung],Oe[r.jong]],answer:n.w,word:n.w}})}function Uc(e){const t=Tn.DROP_FINAL_CONSONANT_FROM_1SYLL,n=Ln(t.syllables,e,t.syllable),o=Ke(),r=[];for(const a of K(n)){if(r.length>=(e.count??10))break;const u=qi(a.w,null,o);if(!u)continue;const[l,...s]=u.distractors;r.push({id:Ce("DFC-item"),index:r.length+1,original:a.w,word:a.w,result:l,distractors:s})}return r}function Yc(e){const t=Tn.REMOVE_CONSONANT_AND_IDENTIFY_PHONEME,n=Ln(t.syllables,e,t.syllable),o=Ke(),r=[];for(const a of K(n)){if(r.length>=(e.count??10))break;const u=Ji(a.w,null,o);if(!u)continue;const l=X(o.get(a.w)||a.w);if(!l)continue;const[s,...d]=u.distractors;r.push({id:Ce("RCP-item"),index:r.length+1,base:a.w,word:a.w,missingConsonant:pe[l.cho],remaining:s,distractors:d})}return r}const Rn=new Map;let Da=null,Ba=null,va=null,No=0;async function Na(e,t={}){const n=An(),o=It(),r=t.excludeNoImage?wn():null;(n!==Da||o!==Ba||t.excludeNoImage&&r!==va)&&(Rn.clear(),No++,Da=n,Ba=o,va=r);const a=`${e}:${Do(t)}`;if(Rn.has(a))return Rn.get(a);const u=No,l=await Kc(e,t);return u===No&&Rn.set(a,l),l}const zc={SAME_SOUND_PICK:e=>Aa("SSP",e),HEAR_AND_PICK_SAME:e=>Aa("HPS",e),HEAR_AND_PICK_INCLUDED:e=>Oc(e),SAME_OR_DIFF:e=>Lc(e),STARTS_WITH_SAME_SOUND:e=>Rc(e),LISTEN_AND_REMEMBER_ORDER:e=>Gc(e),MERGE_2_SYLLABLES:e=>xc(e),MERGE_3_SYLLABLES:e=>Fc(e),MERGE_2_PHONEMES:e=>Wc(e),MERGE_3_PHONEMES:e=>Vc(e),DROP_1_FROM_2SYLL:e=>jc(e),DROP_1_FROM_3SYLL:e=>$c(e),DROP_PART_FROM_COMPOUND:e=>Hc(e),DROP_FINAL_CONSONANT_FROM_1SYLL:e=>Uc(e),REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:e=>Yc(e),CHANGE_1_SYLL_IN_2SYLL:e=>Ic(e),CHANGE_1_SYLL_IN_3SYLL:e=>Mc(e),CHANGE_1_PHONEME_IN_1SYLL:e=>Pc(e),CHANGE_1_PHONEME_IN_2SYLL:e=>kc(e)};async function Kc(e,t={}){const n=zc[e];return n?await n(t):[]}async function qc(e){const t=["random","count"],n=Object.keys(ao);let o=0;for(const r of t)for(const a of n){const u=ao[a];Na(a,{difficulty:u.difficulty?r:null,contrastCount:1,composition:null,count:5,excludeNoImage:e,sameStructureOnly:!0,phonemeView:"char",grade:null}).catch(()=>{}),++o%6===0&&await new Promise(l=>setTimeout(l,0))}}async function Jc(e){const t=await _e({...e,fullCount:!0}),n=e.choicesPerItem!=null?Math.max(1,e.choicesPerItem-1):1;return t.filter(o=>new Set(o.usable.map(r=>fe(r))).size>=n).length}async function Xc(e={}){const t=[];for(const l of He)l.w&&t.push(l.w);const n=e.excludeNoImage?yt(t):t,o=new Set,r=new Set,a=new Set,u=new Set;for(const l of n){u.add(Lt(l));for(const s of l){const d=X(s);if(d&&(pe[d.cho]!=="\u3147"&&o.add(pe[d.cho]),r.add(Te[d.jung]),d.jong>0)){a.add(Oe[d.jong]);const m=Sn[d.jong];m&&m.forEach(g=>a.add(g))}}}return{cho:o,jung:r,jong:a,syllable:u}}const Qc={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},Zc={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},ed={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function Oa(e,t){if("place"in t)return Qc[t.place](e);const n=Zc[t.vowel](e);return t.glide?`${n} \xB7 ${ed[t.glide](e)}`:n}const td=(e,{defaultValue:t})=>t,La=(e,t)=>({jamos:e,phonetic:t,tooltip:Oa(td,t)}),Ge=(e,t)=>t.map(n=>La([n],{place:e})),ge=(e,t,n)=>La([...e],n?{vowel:t,glide:n}:{vowel:t}),Oo={cho:[Ge("labial",["\u3142","\u3143","\u314D","\u3141"]),Ge("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Ge("alveolar",["\u3145","\u3146"]),Ge("palatal",["\u3148","\u3149","\u314A"]),Ge("velar",["\u3131","\u3132","\u314B"]),Ge("glottal",["\u314E"])],jung:[[ge("\u3163","frontHigh"),ge("\u315F","frontHigh","w"),ge("\u3162","frontHigh","velar")],[ge("\u3161","backHighUnrounded")],[ge("\u315C","backHighRounded"),ge("\u3160","backHighRounded","j")],[ge("\u3154\u3150","frontMid"),ge("\u3156\u3152","frontMid","j"),ge("\u3159\u315A\u315E","frontMid","w")],[ge("\u3153","backMidUnrounded"),ge("\u3155","backMidUnrounded","j"),ge("\u315D","backMidUnrounded","w")],[ge("\u3157","backMidRounded"),ge("\u315B","backMidRounded","j")],[ge("\u314F","low"),ge("\u3151","low","j"),ge("\u3158","low","w")]],jong:[Ge("labial",["\u3142","\u3141"]),Ge("alveolar",["\u3137","\u3134","\u3139"]),Ge("velar",["\u3131","\u3147"])]},nd=[...pe],od=[...Te],rd=Oe.filter(e=>e!==""),We=e=>e===xe?[]:Array.from(e),xe="__NO_CODA__",Ra=[1,2,3,4],Fe=5,ad=12,Ia="SYL_",Lo=e=>`${Ia}${e}`,ud=e=>Number(e.slice(Ia.length));function Ro(e){return e>=Fe?Array.from({length:ad-Fe+1},(t,n)=>Fe+n):[e]}const Ma={cho:nd,jung:od,jong:rd},Io=e=>e.map(t=>t.map(({jamos:n,phonetic:o,tooltip:r})=>({v:n.join(""),phonetic:o,tooltip:r}))),Mo={cho:Io(Oo.cho),jung:Io(Oo.jung),jong:Io(Oo.jong)},Pa={};Mo.jung.flat().forEach(({v:e})=>{for(const t of We(e))Pa[t]=e});const ld=new Set(Mo.cho.flat().map(e=>e.v));function ka(e,t){return e==="cho"?ld.has(t)?t:null:e==="jung"?Pa[t]??t:Ot(t)}function xa(e,t,n){if(e==="jung"){const o=We(t);return n&&o.includes(n)?n:o[0]??t}return e==="jong"&&n&&Ot(n)===t?n:t}function Fa(e,t,n,o){const r=(a,u)=>u?a==="jong"&&u===xe?xe:t==="pron"?ka(a,u):xa(a,u,a==="jung"?n:a==="jong"?o:null):null;return{...e,cho:r("cho",e.cho),jung:r("jung",e.jung),jong:r("jong",e.jong)}}const Po={cho:null,jung:null,jong:null,syllable:null};function id(e){const{caps:t,difficulty:n,contrastCount:o,composition:r,phonemeView:a,excludeNoImage:u,sameStructureOnly:l,gradeFilter:s}=e,{i18n:d}=Le.useTranslation(),[m,g]=c.useState({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),[f,p]=c.useState(!1),[h,w]=c.useState(null),[b,y]=c.useState(0);no("wordpool:update",()=>y(E=>E+1)),no(Fr,()=>y(E=>E+1));const S=c.useRef(d.language);return c.useEffect(()=>{S.current!==d.language&&(S.current=d.language,y(E=>E+1))},[d.language]),c.useEffect(()=>{if(!t.choseong)return;let E=!1;return Xc({difficulty:n,excludeNoImage:u}).then(A=>{E||(g(A),p(A.cho.size+A.jung.size+A.jong.size>0))}).catch(()=>{E||(g({cho:new Set,jung:new Set,jong:new Set,syllable:new Set}),p(!1))}),()=>{E=!0}},[t.choseong,n,u,b]),c.useEffect(()=>{let E=!1;const A=r,v=A.cho?We(A.cho):null,L=A.jung?We(A.jung):null,B=A.jong===xe,I=B?null:A.jong?We(A.jong):null,P=A.syllable!=null?Ro(A.syllable):null,O=!!(v||L||I||B||P);return Jc({difficulty:t.difficulty?n:null,contrastCount:t.difficulty?o:1,composition:t.choseong&&O?{cho:v,jung:L,jong:I,jongNone:B,syllable:P}:null,excludeNoImage:u,sameStructureOnly:l,phonemeView:a==="pron"?"pron":"char",grade:s.length>0?s:null}).then(G=>{E||w(G)}).catch(()=>{E||w(null)}),()=>{E=!0}},[t.choseong,t.difficulty,n,o,r,a,u,l,b,s]),{viable:m,viableReady:f,wordCount:h,poolVersion:b}}function ja(){const{t:e}=Le.useTranslation();return c.useMemo(()=>({difficulty:e("wordSearch.filter.difficulty","\uB09C\uC774\uB3C4"),syllables:e("wordSearch.filter.syllables","\uC74C\uC808 \uC218"),syllable5plus:e("wordSearch.filter.syllable5plus","5\uC74C\uC808 \uC774\uC0C1"),partOfSpeech:e("wordSearch.filter.partOfSpeech","\uD488\uC0AC"),wordType:e("wordSearch.filter.wordType","\uC720\uD615"),posMap:{[e("wordSearch.filter.pos.noun","\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)")]:["\uBA85","\uC218"],[e("wordSearch.filter.pos.verb","\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)")]:["\uB3D9","\uD615"],[e("wordSearch.filter.pos.modifier","\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)")]:["\uBD80","\uAD00"]},typeMap:{[e("wordSearch.filter.type.native","\uACE0\uC720\uC5B4")]:"\uACE0\uC720",[e("wordSearch.filter.type.sino","\uD55C\uC790\uC5B4")]:"\uD55C\uC790",[e("wordSearch.filter.type.foreign","\uC678\uB798\uC5B4")]:"\uC678\uB798",[e("wordSearch.filter.type.mixed","\uD63C\uC885\uC5B4")]:"\uD63C\uC885"}}),[e])}function $a(e,t,n){const o=So(n?.bands);return o?{label:t.difficulty,items:[...fa(o).map(r=>sd(e,r,o)),e("wordSearch.filter.gradeNone","\uC5C6\uC74C")],multiple:!0,allOption:!0,allLabel:n?.allLabel,labelAction:n?.labelAction,labelInfo:n?.labelInfo??{title:t.difficulty,items:ko(e,o)}}:{label:t.difficulty,items:[...[3,4,5,6,7].map(r=>e("wordSearch.filter.age",{n:r,defaultValue:`${r}\uC138`})),...[2,3,4].map(r=>e("wordSearch.filter.grade",{n:r})),e("wordSearch.filter.gradeNone","\uC5C6\uC74C")],multiple:!0,allOption:!0,allLabel:n?.allLabel,labelAction:n?.labelAction,labelInfo:n?.labelInfo??{title:t.difficulty,items:[e("wordSearch.filter.difficultyInfoAge","3\uC138~7\uC138: \uAC00\uC7A5 \uC26C\uC6B4 \uB0B1\uB9D0(1\uB4F1\uAE09)\uC744 \uB610\uB798\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4."),e("wordSearch.filter.difficultyInfoGrade","2~4\uB4F1\uAE09: \uADF8\uBCF4\uB2E4 \uC5B4\uB824\uC6B4 \uB0B1\uB9D0\uC774\uACE0, \uB098\uC774\uB85C\uB294 \uB098\uB204\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."),e("wordSearch.filter.difficultyInfoNone","\uC5C6\uC74C: \uB09C\uC774\uB3C4\uAC00 \uB9E4\uACA8\uC9C0\uC9C0 \uC54A\uC740 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.")]}}}function sd(e,t,n){const o=n.find(u=>u.label&&String(u.grade)===t)?.label;if(o)return o;const r=ia(t);if(r!=null)return e("wordSearch.filter.age",{n:r,defaultValue:`${r}\uC138`});const a=bo(t);return a!=null?e("wordSearch.filter.agePlus",{n:a,defaultValue:`${a}\uC138 \uC774\uC0C1`}):e("wordSearch.filter.grade",{n:Number(t),defaultValue:`${t}\uB4F1\uAE09`})}function ko(e,t){const n=t.some(o=>o.label);return[...t.map(o=>{const r=o.maxAge==null?e("wordSearch.filter.agePlus",{n:o.minAge,defaultValue:`${o.minAge}\uC138 \uC774\uC0C1`}):o.minAge===o.maxAge?e("wordSearch.filter.age",{n:o.minAge,defaultValue:`${o.minAge}\uC138`}):e("wordSearch.filter.ageRange",{from:o.minAge,to:o.maxAge,defaultValue:`${o.minAge}\uC138~${o.maxAge}\uC138`}),a=o.label??e("wordSearch.filter.grade",{n:o.grade,defaultValue:`${o.grade}\uB4F1\uAE09`});return o.showAge?n?e("wordSearch.filter.difficultyInfoBandAgeNamed",{ages:r,defaultValue:`${r}: \uB098\uC774\uB85C \uB098\uB208 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.`}):o.maxAge!=null&&o.maxAge>o.minAge?e("wordSearch.filter.difficultyInfoBandAge",{grade:a,ages:r,defaultValue:`${r}: ${a} \uB0B1\uB9D0\uC744 \uB098\uC774\uBCC4\uB85C \uB098\uB208 \uAC83\uC785\uB2C8\uB2E4.`}):e("wordSearch.filter.difficultyInfoBandAgeOne",{grade:a,ages:r,defaultValue:`${r}: ${a} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.`}):e("wordSearch.filter.difficultyInfoBandGrade",{grade:a,ages:r,defaultValue:`${a}: ${r} \uB0B1\uB9D0\uC785\uB2C8\uB2E4.`})}),e("wordSearch.filter.difficultyInfoNone","\uC5C6\uC74C: \uB09C\uC774\uB3C4\uAC00 \uB9E4\uACA8\uC9C0\uC9C0 \uC54A\uC740 \uB0B1\uB9D0\uC785\uB2C8\uB2E4.")]}function Ha(e){return{label:e.partOfSpeech,items:Object.keys(e.posMap),multiple:!0,allOption:!0}}function Ga(e){return{label:e.wordType,items:Object.keys(e.typeMap),multiple:!0,allOption:!0}}function cd(e,t){return{label:t.syllables,items:[e("wordSearch.filter.syllable",{n:1}),e("wordSearch.filter.syllable",{n:2}),e("wordSearch.filter.syllable",{n:3}),e("wordSearch.filter.syllable",{n:4}),t.syllable5plus],multiple:!0,allOption:!0}}function dd(e,t){const n=[e("wordPairs.filter.onlyHasImage","\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"),e("wordPairs.filter.onlyHighUsage","\uD65C\uC6A9\uB3C4 \uB192\uC740 \uB2E8\uC5B4\uB9CC")];return t?.includeStructure&&n.push(e("wordPairs.filter.onlySameStructure","\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC")),{label:e("wordPairs.filter.selectLabel","\uC120\uD0DD"),items:n,multiple:!0,labelAction:t?.labelAction,labelInfo:t?.labelInfo}}function fd(e,t){const{label:n,headValue:o,midValue:r,tailValue:a,includeMid:u=!0,headDisabled:l,midDisabled:s,tailDisabled:d,allOptionDisabled:m,groupLabel:g,labelAction:f}=t;return{label:n,...g?{groupLabel:g}:{},...f?{labelAction:f}:{},allOption:!0,allLabel:e("wordSearch.filter.positionAny",{defaultValue:"\uBB34\uAD00"}),...m?{allOptionDisabled:m}:{},items:[{value:o,displayLabel:e("wordSearch.filter.positionHead",{defaultValue:"\uC5B4\uB450"}),disabled:l},...u?[{value:r,displayLabel:e("wordSearch.filter.positionMid",{defaultValue:"\uC5B4\uC911"}),disabled:s}]:[],{value:a,displayLabel:e("wordSearch.filter.positionTail",{defaultValue:"\uC5B4\uB9D0"}),disabled:d}]}}function gd(e,t,n){const o=Wt(n),r=o&&t!==ke?ot(o,t):null;if(o&&(t===ke||r)){const l={},s={};for(const[p,h]of Object.entries(e))(Wt(p)===o?s:l)[p]=h;if(t===ke)return l;const d=Eo(s)[o]??[],m=d.includes(r)?d.filter(p=>p!==r):[...d,r];if(m.length===0)return l;const g=Ao({[o]:m},_c(n)),f=Object.values(g)[0]??[];return{...l,[n]:f}}if(t===ke){const{[n]:l,...s}=e;return s}const a=e[n]??[],u=a.includes(t)?a.filter(l=>l!==t):[...a,t];if(u.length===0){const{[n]:l,...s}=e;return s}return{...e,[n]:u}}Object.fromEntries(Object.entries(ro).map(([e,{nucleus:t}])=>[e,t]));const md={\uACE0\uC720\uC5B4:"\uACE0\uC720",\uD55C\uC790\uC5B4:"\uD55C\uC790",\uC678\uB798\uC5B4:"\uC678\uB798",\uD63C\uC885\uC5B4:"\uD63C\uC885"},pd={"\uCCB4\uC5B8(\uBA85\uC0AC,\uC218\uC0AC)":["\uBA85","\uC218"],"\uC6A9\uC5B8(\uB3D9\uC0AC,\uD615\uC6A9\uC0AC)":["\uB3D9","\uD615"],"\uC218\uC2DD\uC5B8(\uBD80\uC0AC,\uAD00\uD615\uC0AC)":["\uBD80","\uAD00"]},Cd={difficulty:"\uB09C\uC774\uB3C4 \uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",wordType:"\uC720\uD615",field:"\uC758\uBBF8\uBC94\uC8FC",posMap:pd,typeMap:md},Wa=new WeakMap;function hd(e,t){const n=Wa.get(e);if(n&&n.keys===t)return n.value;const o={grades:[],syls:[],poses:[],types:[],fields:[],highUsage:!1},r={grade:o.grades,syllables:o.syls,pos:o.poses,wordType:o.types,field:o.fields};for(const[a,u]of Object.entries(e??{})){const l=Array.isArray(u)?u:typeof u=="string"?[u]:[];!o.highUsage&&l.some(wc)&&(o.highUsage=!0);const s=a===t.difficulty?"grade":a===t.syllables?"syllables":a===t.partOfSpeech?"pos":a===t.wordType?"wordType":a===t.field?"field":Wt(a);if(s)for(const d of l)r[s].includes(d)||r[s].push(d)}return Wa.set(e,{keys:t,value:o}),o}function yd(e,t,n=Cd){const{grades:o,syls:r,poses:a,types:u,highUsage:l}=hd(t,n);if(l&&e.usage!==!0)return!1;if(o.length){const s=o.map(d=>ot("grade",d)??d.replace(/\D/g,"")).filter(d=>d!=="");if(s.length===0||!yo(s,e.grade,e.age))return!1}if(r.length){const s=e.syllables??0;if(!r.some(d=>{const m=d===n.syllable5plus?"5+":ot("syllables",d);return m==="5+"?s>=5:s===parseInt(m??d)}))return!1}return!(a.length&&!a.flatMap(s=>n.posMap[s]??Cc[ot("pos",s)??""]??[s]).some(s=>(e.pos??"").includes(s))||u.length&&!u.some(s=>e.wordType===(n.typeMap[s]??hc[ot("wordType",s)??""])))}const Va=["1\uB4F1\uAE09 : \uD559\uB839\uC804\uAE30\uC5D0 \uC2B5\uB4DD\uD558\uC5EC \uD3C9\uC0DD\uC5D0 \uAC78\uCCD0 \uC77C\uC0C1 \uC5B8\uC5B4\uC0DD\uD65C\uC744 \uD558\uB294 \uB370 \uC0AC\uC6A9\uB418\uB294 \uC5B4\uD718","2\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 1-2\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","3\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 3-4\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","4\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 5-6\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","\uB4F1\uAE09\uC5C6\uC74C : \uAD6D\uB9BD\uAD6D\uC5B4\uC6D0 \uD45C\uC900 \uC5B4\uD718 \uC678 \uACE0\uBE48\uB3C4 \uC0DD\uD65C \uC5B4\uD718, \uC2E0\uC870\uC5B4 \uBC0F \uC678\uB798\uC5B4"];function Ua(e){const t=e("wordPairs.filter.difficultyInfo",{returnObjects:!0,defaultValue:Va});return Array.isArray(t)&&t.length>0&&t.every(n=>typeof n=="string")?t:Va}function bd(e){return{composition:e("wordPairs.composition","\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131"),syllableCount:e("wordPairs.syllableCount","\uC74C\uC808 \uC218"),onset:e("wordPairs.onset","\uCD08\uC131"),vowel:e("wordPairs.vowel","\uBAA8\uC74C"),coda:e("wordPairs.coda","\uC885\uC131"),phonemeGroup:e("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),trainOnset:e("training.filter.trainOnset",{defaultValue:"\uCD08\uC131"}),trainVowel:e("training.filter.trainVowel",{defaultValue:"\uBAA8\uC74C"}),trainCoda:e("training.filter.trainCoda",{defaultValue:"\uC885\uC131"}),random:e("training.filter.random","\uBB34\uC791\uC704"),exclude:e("wordSearch.filter.exclude","\uC81C\uC678"),selectLabel:e("training.filter.selectSection",{defaultValue:"\uC120\uD0DD"}),none:e("common.none","\uC5C6\uC74C"),noImage:e("wordSearch.filter.excludeNoImage","\uC774\uBBF8\uC9C0 \uC5C6\uC74C"),excludeImage:e("training.filter.excludeImage",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC"}),sameStructure:e("training.filter.sameStructure",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"}),noLimit:e("training.filter.noLimit",{defaultValue:"\uBB34\uAD00"}),codaExclude:e("training.filter.codaExclude",{defaultValue:"\uC81C\uC678"}),gradeLabel:e("training.filter.gradeLabel",{defaultValue:"\uB09C\uC774\uB3C4"})}}function Sd(e){const{caps:t,t:n,attrKeys:o,labels:r,phonemeView:a,viable:u,partViable:l,syllableViable:s,minSyllables:d,gradeBands:m}=e,g=So(m),f=(w,b)=>({title:b,items:w}),p=[n("training.filter.excludeImageInfo",{defaultValue:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4."}),n("training.filter.sameStructureInfo",{defaultValue:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694."})],h=[];if(t.choseong){const w={value:xe,displayLabel:r.codaExclude},b=t.fixedNoCoda===!0,y=(S,E)=>{const A=b&&S==="jong",v={label:E,groupLabel:r.phonemeGroup,allOption:!t.requireSyllable,allLabel:r.noLimit,allOptionDisabled:A};if(a==="pron"){const B=Mo[S].map(I=>I.map(({v:P,phonetic:O})=>{const G=We(P),Y=Oa(n,O),V=A||!G.some(k=>u[S].has(k));return G.length>1?{value:P,labels:G,tooltip:Y,disabled:V}:{value:P,tooltip:Y,disabled:V}}));return S==="jong"&&!t.requireCoda&&B.unshift([w]),{...v,groups:B}}const L=Ma[S].map(B=>!A&&l[S].has(B)?B:{value:B,disabled:!0});return{...v,items:S==="jong"&&!t.requireCoda?[w,...L]:L}};h.push(y("cho",r.trainOnset)),h.push(y("jung",r.trainVowel)),h.push(y("jong",r.trainCoda))}if(h.push({...$a(n,o,{bands:m,labelInfo:f(g?ko(n,g):Ua(n))}),label:r.gradeLabel}),t.partOfSpeech&&h.push(Ha(o)),t.wordType&&h.push(Ga(o)),t.choseong||t.fixedSyllable!=null){const w=t.fixedSyllable;h.push({label:r.syllableCount,items:[...Ra.map(b=>({value:Lo(b),displayLabel:n("wordPairs.syllableN",{n:b,defaultValue:"{{n}}\uC74C\uC808"}),disabled:w!=null?b!==w:!s.exact.has(b)||b<d})),{value:Lo(Fe),displayLabel:n("wordPairs.syllableNPlus",{n:Fe,defaultValue:"{{n}}\uC74C\uC808 \uC774\uC0C1"}),disabled:w!=null?Fe!==w:!s.min}],allOption:!0,allOptionDisabled:w!=null})}return t.choseong?h.push({label:r.exclude,displayLabel:r.selectLabel,multiple:!0,items:[r.excludeImage,r.sameStructure],labelInfo:f(p)}):h.push({label:r.exclude,displayLabel:r.selectLabel,multiple:!0,items:[r.excludeImage],labelInfo:f([p[0]])}),h}const xo=e=>Array.isArray(e)?e.filter(ho):[],wd="wt_filter",Ya=e=>`wt_filter_${e}`,Fo=["noun","verb","modifier"],jo=["native","sino","foreign","mixed"];function za(e,t,n,o,r){if(!Array.isArray(e))return[];const a=[];for(const u of e){if(typeof u!="string")continue;const l=t.includes(u)?u:t.find(s=>r.some(d=>o(d,n(s))===u));l&&!a.includes(l)&&a.push(l)}return a}function Ka(e){try{const t=localStorage.getItem(Ya(e))??localStorage.getItem(wd);if(t)return JSON.parse(t)}catch{}return null}function qa(e){const t=e?.phonemeView;return t==="pron"?"pron":t==="direct"?"direct":"char"}function Ed(e){const t=e;return t?.composition?{cho:t.composition.cho??null,jung:t.composition.jung??null,jong:t.composition.jong??null,syllable:t.composition.syllable??null}:t?.choseong?{...Po,cho:t.choseong}:Po}function Ad(e,t,n){const{t:o,i18n:r}=Le.useTranslation(),a=JSON.stringify(n?.gradeBands??null),u=c.useMemo(()=>JSON.parse(a),[a]),l=c.useMemo(()=>So(u),[u]),s=c.useCallback(_=>l?da(_,l):_,[l]),[d]=c.useState(()=>n?.resetOnMount?null:Ka(e)),[m,g]=c.useState(qa(d)),[f,p]=c.useState(()=>Ed(d)),h=c.useCallback(()=>t.requireSyllable?{cho:"\u3131",jung:"\u314F",jong:xe,syllable:t.fixedSyllable??null}:{cho:null,jung:null,jong:t.fixedNoCoda?xe:null,syllable:t.fixedSyllable??null},[t.requireSyllable,t.fixedSyllable,t.fixedNoCoda]);c.useEffect(()=>{!t.requireSyllable&&t.fixedSyllable==null&&!t.fixedNoCoda||p(_=>_.cho||_.jung||_.syllable!=null||_.jong?_:h())},[]);const w=c.useMemo(()=>de(f.cho)||de(f.jung)||de(f.jong)?"count":"random",[f.cho,f.jung,f.jong]),b=c.useRef(m==="char"?f.jung:null),y=c.useRef(m==="char"?f.jong:null);c.useEffect(()=>{m==="char"&&(b.current=f.jung,y.current=f.jong)},[m,f.jung,f.jong]);const[S,E]=c.useState(n?.resetOnMount?!!n?.defaultImageOnly:d?.excludeNoImage??!0),[A,v]=c.useState(n?.resetOnMount?!1:d?.sameStructureOnly??!0),[L,B]=c.useState(xo(d?.gradeFilter)),I=Array.from(new Set([r.language,"ko","en"].filter(Boolean))),P=(_,ne)=>r.getFixedT(_)(ne),O=_=>za(_,Fo,ne=>`wordSearch.filter.pos.${ne}`,P,I),G=_=>za(_,jo,ne=>`wordSearch.filter.type.${ne}`,P,I),[Y,V]=c.useState(()=>O(d?.posFilter)),[k,x]=c.useState(()=>G(d?.wordTypeFilter)),q=c.useRef(n?.resetKey);c.useEffect(()=>{q.current!==n?.resetKey&&(q.current=n?.resetKey,p(h()),E(!!n?.defaultImageOnly),v(!1),B([]),V([]),x([]))},[n?.resetKey]);const Q=ja(),ce=c.useMemo(()=>Object.keys(Q.posMap),[Q]),Ae=c.useMemo(()=>Object.keys(Q.typeMap),[Q]),R=c.useMemo(()=>Y.map(_=>ce[Fo.indexOf(_)]).filter(Boolean),[Y,ce]),j=c.useMemo(()=>k.map(_=>Ae[jo.indexOf(_)]).filter(Boolean),[k,Ae]),F=1,U=Math.max(1,[f.cho,f.jung,f.jong].filter(Boolean).length),[H,je]=c.useState(e);c.useEffect(()=>{if(H!==e){if(!n?.resetOnMount){const _=Ka(e);p(_?.composition??h()),E(_?.excludeNoImage??!0),v(_?.sameStructureOnly??!0),g(qa(_)),B(xo(_?.gradeFilter)),V(O(_?.posFilter)),x(G(_?.wordTypeFilter))}je(e)}},[e,H,n?.resetOnMount]),c.useEffect(()=>{if(!n?.resetOnMount&&H===e)try{localStorage.setItem(Ya(e),JSON.stringify({contrastCount:U,composition:f,excludeNoImage:S,sameStructureOnly:A,phonemeView:m,gradeFilter:L,posFilter:Y,wordTypeFilter:k}))}catch{}},[n?.resetOnMount,e,H,U,f,S,A,m,L,Y,k]);const{viable:me,viableReady:Ue,wordCount:lt,poolVersion:Gn}=id({caps:t,difficulty:w,contrastCount:U,composition:f,phonemeView:m,excludeNoImage:S,sameStructureOnly:A,gradeFilter:L});c.useEffect(()=>{Ue&&p(_=>{const ne={..._};let W=!1;return["cho","jung","jong"].forEach(J=>{const be=_[J];!be||be===xe||We(be).some(Ne=>me[J].has(Ne))||(ne[J]=null,W=!0)}),_.syllable!=null&&t.fixedSyllable==null&&(_.syllable>=Fe?[...me.syllable].some(J=>J>=Fe)||(ne.syllable=null,W=!0):(!me.syllable.has(_.syllable)||_.syllable<F)&&(ne.syllable=null,W=!0)),W?ne:_})},[me,Ue,F,t.fixedSyllable]);const rn=c.useMemo(()=>{const _=ne=>{const W=new Set;for(const J of Ma[ne])me[ne].has(J)&&W.add(J);return W};return{cho:_("cho"),jung:_("jung"),jong:_("jong")}},[me]),Et=c.useMemo(()=>({exact:new Set(Ra.filter(_=>me.syllable.has(_))),min:[...me.syllable].some(_=>_>=Fe)}),[me]),oe=c.useMemo(()=>bd(o),[o]),At=c.useMemo(()=>({[oe.trainOnset]:"cho",[oe.trainVowel]:"jung",[oe.trainCoda]:"jong"}),[oe]),Z=c.useMemo(()=>Sd({caps:t,t:o,attrKeys:Q,labels:oe,phonemeView:m,viable:me,partViable:rn,syllableViable:Et,minSyllables:F,gradeBands:u}),[t,o,Q,oe,m,me,rn,Et,F,u]),Tt={...(t.choseong||t.fixedSyllable!=null)&&f.syllable!=null?{[oe.syllableCount]:Lo(f.syllable)}:{},...t.choseong&&f.cho?{[oe.trainOnset]:f.cho}:{},...t.choseong&&f.jung?{[oe.trainVowel]:f.jung}:{},...t.choseong&&f.jong?{[oe.trainCoda]:f.jong}:{},[oe.exclude]:[...S?[oe.excludeImage]:[],...A?[oe.sameStructure]:[]],[oe.gradeLabel]:s(L).map(_=>Ec("grade",_)),...t.partOfSpeech?{[Q.partOfSpeech]:R}:{},...t.wordType?{[Q.wordType]:j}:{}},ee=c.useCallback((_,ne)=>{if(ne===oe.exclude)_===oe.excludeImage?E(W=>!W):_===oe.sameStructure&&v(W=>!W);else if(ne===oe.syllableCount)p(W=>{if(!_||_===ke)return{...W,syllable:null};const J=ud(_);return{...W,syllable:W.syllable===J?null:J}});else if(ne===oe.gradeLabel){if(!_||_===ke){B([]);return}const W=ot("grade",_);if(W==null)return;B(J=>{const be=s(J);return be.includes(W)?be.filter(Ne=>Ne!==W):[...be,W]})}else if(ne===Q.partOfSpeech){if(!_||_===ke){V([]);return}const W=Fo[ce.indexOf(_)]??O([_])[0];if(!W)return;V(J=>J.includes(W)?J.filter(be=>be!==W):[...J,W])}else if(ne===Q.wordType){if(!_||_===ke){x([]);return}const W=jo[Ae.indexOf(_)]??G([_])[0];if(!W)return;x(J=>J.includes(W)?J.filter(be=>be!==W):[...J,W])}else{const W=At[ne];if(!W)return;p(J=>t.requireSyllable?_&&_!==ke?{...J,[W]:_}:J:!_||_===ke||J[W]===_?{...J,[W]:null}:{...J,[W]:_})}},[oe,At,Q,ce,Ae,t.requireSyllable,s]),_t=c.useCallback(_=>!t.partOfSpeech&&!t.wordType?!0:yd(_,{...t.partOfSpeech?{[Q.partOfSpeech]:R}:{},...t.wordType?{[Q.wordType]:j}:{}},Q),[t.partOfSpeech,t.wordType,R,j,Q]),ve=c.useCallback(_=>{_!==m&&(_!=="direct"&&m!=="direct"&&p(ne=>Fa(ne,_,b.current,y.current)),g(_))},[m]),Je=c.useCallback(()=>({composition:f,contrastCount:U,excludeNoImage:S,sameStructureOnly:A,phonemeView:m,gradeFilter:L,posFilter:Y,wordTypeFilter:k}),[f,U,S,A,m,L,Y,k]),an=c.useCallback(_=>{p(_.composition),E(_.excludeNoImage),v(_.sameStructureOnly??!0),g(_.phonemeView),B(xo(_.gradeFilter)),Array.isArray(_.posFilter)&&V(O(_.posFilter)),Array.isArray(_.wordTypeFilter)&&x(G(_.wordTypeFilter))},[]);return{difficulty:w,contrastCount:U,composition:f,choseong:f.cho,excludeNoImage:S,sameStructureOnly:A,gradeFilter:L,posFilter:R,wordTypeFilter:j,matchesWordAttributes:_t,poolVersion:Gn,filterSections:Z,filterSelected:Tt,handleFilterSelect:ee,phonemeView:m,setPhonemeView:ve,phonemeGroupLabel:oe.phonemeGroup,wordCount:lt,getFilterSnapshot:Je,restoreFilterSnapshot:an}}function Td(e){const t=l=>l?We(l):null,n=t(e.cho),o=t(e.jung),r=e.jong===xe,a=r?null:t(e.jong),u=e.syllable!=null?Ro(e.syllable):null;return!n&&!o&&!a&&!r&&!u?null:{cho:n,jung:o,jong:a,jongNone:r,syllable:u}}function _d(e,t,n,o,r,a,u=!0,l="char",s=[]){const[d,m]=c.useState({}),[g,f]=c.useState(!1),{cho:p=null,jung:h=null,jong:w=null,syllable:b=null}=o??{},y=s.length>0?s.slice().sort().join(","):"",S=e.map(A=>A.key).join("|");c.useEffect(()=>{a>0&&qc(r).catch(()=>{})},[a,r]),c.useEffect(()=>{let A=!1;return f(!0),(async()=>{const v=Td({cho:p,jung:h,jong:w,syllable:b}),L=`${p??""}_${h??""}_${w??""}_${b??""}_${y}`,B={};await Promise.all(e.map(async I=>{const P=ao[I.key];try{const O=await Na(I.key,{difficulty:P.difficulty?t:null,contrastCount:P.difficulty?n:1,composition:P.choseong?v:null,count:5,excludeNoImage:r,sameStructureOnly:u,phonemeView:l,grade:s.length>0?s:null});O&&O.length>0?B[I.key]={id:`wt-${I.key}-${t}-${L}-${Date.now()}`,name:I.label,training_type:I.key,category_main_code:"WORD",iconColor:I.color,subTitle:I.subTitle,items:O,itemCount:O.length}:B[I.key]={id:`wt-${I.key}-empty`,name:I.label,training_type:I.key,category_main_code:"WORD",iconColor:I.color,subTitle:I.subTitle,items:[],itemCount:0,__empty:!0}}catch{B[I.key]=null}})),A||(m(B),f(!1))})(),()=>{A=!0}},[t,n,p,h,w,b,r,u,l,a,y,S]);const E=JSON.stringify(e.map(A=>[A.key,A.label,A.color,A.subTitle]));return{perTypeData:c.useMemo(()=>{const A={};for(const[v,L]of Object.entries(d)){const B=e.find(I=>I.key===v);A[v]=L&&B?{...L,name:B.label,iconColor:B.color,subTitle:B.subTitle}:L}return A},[d,E]),generating:g}}const Ut=[],Yt=[],zt=[],Kt=[],In={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},Mn={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},Dd={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let $o=null,Ja=null,Ve=null;function Bd({counts:e,forceRefresh:t}={}){const n=Object.assign({},Dd,e||{}),o=vt(),r=Nt(new Date(`${o}T00:00:00+09:00`).getTime()-864e5),a=JSON.stringify(n);if(!t&&Ja===o&&$o===a&&Ve)return Object.assign(In,Ve.today),Object.assign(Mn,Ve.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:In,yesterday:Mn};const u={LISTEN_IN_NOISE:$e(Ut,Math.max(0,Number(n.LISTEN_IN_NOISE)||0)),SHORT_STORY:$e(Yt,Math.max(0,Number(n.SHORT_STORY)||0)),LONG_STORY:$e(zt,Math.max(0,Number(n.LONG_STORY)||0)),ORDERING_SENTENCE:$e(Kt,Math.max(0,Number(n.ORDERING_SENTENCE)||0))};let l=null;return Ve&&$o===a&&Ve.yesterday&&Ve.yesterday.date===r&&(l=Ve.yesterday.selection),l||(l={LISTEN_IN_NOISE:$e(Ut,Math.max(0,Number(n.LISTEN_IN_NOISE)||0)),SHORT_STORY:$e(Yt,Math.max(0,Number(n.SHORT_STORY)||0)),LONG_STORY:$e(zt,Math.max(0,Number(n.LONG_STORY)||0)),ORDERING_SENTENCE:$e(Kt,Math.max(0,Number(n.ORDERING_SENTENCE)||0))}),Object.assign(In,u),Object.assign(Mn,l),Ja=o,$o=a,Ve={today:u,yesterday:{date:r,countsKey:a,selection:l}},{today:In,yesterday:Mn}}let Ho=!1,qt=null;async function vd(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:to&&to.tagName.toUpperCase()==="SCRIPT"&&to.src||new URL("hooks.cjs.js",document.baseURI).href}&&void 0||"/",t=await fetch(`${e}data/allTrainingData.json`);return t.ok?await t.json():null}catch{return null}}async function Nd(){if(!Ho)return qt||(qt=(async()=>{const e=await vd();if(!e){qt=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}const t={noise:[],short:[],long:[],order:[]};try{if(typeof e!="object"||Array.isArray(e))throw new Error("Invalid training data map");for(const n of Object.keys(e)){const o=e[n];if(!Array.isArray(o))throw new Error("Invalid training data group");for(const r of o){if(!r||typeof r!="object")continue;const a=r,u=String(a.training_type||n),l=String(a.category_main_code||a.category_main||a.category_0||""),s=String(a.category_sub_code||a.category_sub||a.category_1||""),d=Object.assign({},a,{training_type:u,category_0:l,category_1:s});u==="LISTEN_IN_NOISE"?t.noise.push(d):u==="SHORT_STORY"?t.short.push(d):u==="LONG_STORY"?t.long.push(d):u==="ORDERING_SENTENCE"&&t.order.push(d)}}}catch{qt=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}Ut.push(...t.noise),Yt.push(...t.short),zt.push(...t.long),Kt.push(...t.order),Ho=!0,Ve=null;try{Bd()}catch{}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}})(),qt)}async function Od(e=3e3){const t=Nd();let n;try{await Promise.race([t,new Promise(o=>{n=setTimeout(o,e)})])}finally{n!==void 0&&clearTimeout(n)}return Ho}function Xa(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function Ld(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let n=Math.imul(t^t>>>15,1|t);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}const Rd=$e,Id=e=>{const[t,n,o]=e.split("-").map(Number);return Math.round(Date.UTC(t,(n||1)-1,o||1)/864e5)},Md=(e,t)=>{const n=e??{};return String(n.id??n.name??t)};function Pn(e,t,n,o,r){if(!e.length||t<=0)return[];const a=Ld(Xa(`${n}|${o}|${r}`)),u=Id(o)&1,l=e.filter((d,m)=>(Xa(`${n}|${r}|${Md(d,m)}`)>>>7&1)===u),s=l.length>=t&&e.length-l.length>=t;return Rd(s?l:e,t,a)}function Go(e,t,n){const o=r=>Math.max(0,e[r]||0);return{LISTEN_IN_NOISE:Pn(Ut,o("LISTEN_IN_NOISE"),t,n,"LISTEN_IN_NOISE"),SHORT_STORY:Pn(Yt,o("SHORT_STORY"),t,n,"SHORT_STORY"),LONG_STORY:Pn(zt,o("LONG_STORY"),t,n,"LONG_STORY"),ORDERING_SENTENCE:Pn(Kt,o("ORDERING_SENTENCE"),t,n,"ORDERING_SENTENCE")}}function Wo(e){return e?!!(e.LISTEN_IN_NOISE?.length||e.SHORT_STORY?.length||e.LONG_STORY?.length||e.ORDERING_SENTENCE?.length):!1}const Pd={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};function Vo(e=!1,t=Pd,n){const o=Date.now(),r=Nt(o),a=Nt(o-864e5),u=n??"";return Ut.length>0||Yt.length>0||zt.length>0||Kt.length>0?{today:Go(t,u,r),yesterday:Go(t,u,a)}:{today:Go(t,u,r),yesterday:null}}function kd(e){const t=c.useRef({LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),n=c.useRef(null),[o,r]=c.useState(!1),[a,u]=c.useState(!1),[l,s]=c.useState(0),[d,m]=c.useState(!1),[g,f]=c.useState(()=>vt()),p=JSON.stringify([e??"",g]),h=c.useRef(null),w=c.useRef(p);c.useEffect(()=>{const y=()=>{const E=Date.now(),A=new Date(E+9*36e5),v=Date.UTC(A.getUTCFullYear(),A.getUTCMonth(),A.getUTCDate()+1)-9*36e5;return Math.max(1e3,v-E+1e3)};let S=setTimeout(function E(){f(vt()),S=setTimeout(E,y())},y());return()=>clearTimeout(S)},[]),c.useEffect(()=>{w.current=p,h.current=null,r(!1),m(!1);let y=!1,S=!1,E=!1,A,v=0,L=null,B=0;const I=40,P=()=>{A!==void 0&&(clearInterval(A),A=void 0)};let O=!1;try{const x=new URLSearchParams(window.location.search),q=x.get("forceRefresh")||x.get("force");O=q==="1"||q==="true"}catch{}const G=x=>{S||(E=!0,h.current=p,t.current=x.today,n.current=x.yesterday,r(!0),m(!0),s(q=>q+1),y=!0,P())},Y=async()=>{if(y)return;if(!O){const q=Vo(!1,void 0,e);if(Wo(q.today)){G(q);return}}if(L){++v>=I&&V();return}if(v>=B){B=v+8,L=Od(3e3).catch(()=>!1);try{await L}finally{L=null}if(y)return}const x=Vo(O,void 0,e);if(Wo(x.today)){G(x);return}++v>=I&&V()};function V(){r(!0),m(!1),y=!0,P()}const k=()=>{if(S||E)return;const x=Vo(O,void 0,e);Wo(x.today)&&G(x)};try{window.addEventListener("speechear.data.updated",k)}catch{}return A=setInterval(Y,250),Y(),()=>{y=!0,S=!0,P();try{window.removeEventListener("speechear.data.updated",k)}catch{}}},[e,g]);const b=c.useCallback(y=>{if(h.current!==p)return;const S=a?n.current:t.current,E=a?t.current:n.current;return S?.[y]?.length?S[y]:E?.[y]?.length?E[y]:void 0},[a,l,p]);return{loaded:w.current===p&&o,hasData:w.current===p&&d,showYesterday:a,setShowYesterday:u,getTrainingPerType:b}}const bt=[];let kn=!1;function Qa(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=bt[bt.length-1];t&&(e.stopPropagation(),t())}function Za(e){return bt.push(e),!kn&&typeof document<"u"&&(document.addEventListener("keydown",Qa),kn=!0),()=>{const t=bt.lastIndexOf(e);t>=0&&bt.splice(t,1),bt.length===0&&kn&&typeof document<"u"&&(document.removeEventListener("keydown",Qa),kn=!1)}}function xd(e,t=!0){const n=bn(e);c.useEffect(()=>{if(t)return Za(()=>{n.current?.()})},[t,n])}const Uo=(e,t)=>`${e}:${t??1}`,Jt=new Map,Yo=new Set,zo=new Map,xn=6e4;function Fd(e,t){const[n,o]=c.useState(0),[r,a]=c.useState(0),u=JSON.stringify(Array.from(new Set(e.map(l=>Uo(l.word,l.homonum)))).sort());return c.useEffect(()=>{const l=JSON.parse(u),s=Date.now(),d=l.filter(w=>!Jt.has(w)&&!Yo.has(w)&&!(s-(zo.get(w)??-1/0)<xn));let m=!1,g=null,f=1/0;const p=(w=xn)=>{if(m)return;const b=Date.now()+w;b>=f||(g!==null&&clearTimeout(g),f=b,g=setTimeout(()=>a(y=>y+1),w))};for(const w of l){if(Jt.has(w)||Yo.has(w))continue;const b=zo.get(w);b!=null&&s-b<xn&&p(Math.max(0,xn-(s-b)))}if(d.length===0)return()=>{m=!0,g!==null&&clearTimeout(g)};const h=Array.from(new Set(d.map(w=>w.slice(0,w.lastIndexOf(":")))));return Promise.resolve().then(()=>t(h)).then(w=>{for(const b of w)b.Meaning&&Jt.set(Uo(b.Word,b.Homonum??void 0),b.Meaning);if(w.length>0)for(const b of d)Jt.has(b)||Yo.add(b);else{const b=Date.now();for(const y of d)zo.set(y,b);p()}m||w.length===0||o(b=>b+1)}).catch(()=>{p()}),()=>{m=!0,g!==null&&clearTimeout(g)}},[u,t,r]),c.useMemo(()=>{const l=JSON.parse(u),s=new Map;for(const d of l){const m=Jt.get(d);m!=null&&s.set(d,m)}return s},[u,n])}function jd(){const[e,t]=c.useState(null),n=c.useCallback(a=>t(a.getBoundingClientRect()),[]),o=c.useCallback(()=>t(null),[]),r=c.useCallback(a=>{const u=a.getBoundingClientRect();t(l=>l?null:u)},[]);return{anchorRect:e,isOpen:e!=null,openAt:n,close:o,toggleAt:r}}function $d(e){const[t,n]=c.useState(null),[o,r]=c.useState(null),a=c.useRef(null);c.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]);const u=c.useCallback((s,d)=>{a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{n(s),r(d)},e)},[e]),l=c.useCallback(()=>{a.current&&clearTimeout(a.current),n(null),r(null)},[]);return{payload:t,anchorRect:o,openAfterDelay:u,close:l}}function Hd(e,t,n){const o=Number.isFinite(t)&&t>=1?Math.floor(t):1,r=Math.max(1,Math.ceil(e.length/o)),a=Number.isFinite(n)?Math.min(Math.max(1,Math.floor(n)),r):1;return{pageItems:c.useMemo(()=>e.slice((a-1)*o,a*o),[e,a,o]),totalPages:r,curPage:a}}function eu(e,t){const[n,o]=c.useState(e);n!==e&&(o(e),t(1))}function Gd(e={}){const{defaultPageSize:t="25",resetOn:n}=e,[o,r]=c.useState(""),[a,u]=c.useState(t),[l,s]=c.useState(1),d=f=>{const p=Number(f);return Number.isFinite(p)&&p>=1?Math.floor(p):null},m=d(t)??25,g=d(a)??m;return eu(JSON.stringify([o,a,...n??[]]),s),{query:o,setQuery:r,pageSize:a,setPageSize:u,perPage:g,page:l,setPage:s}}function Wd(e="warning"){const[t,n]=c.useState(""),[o,r]=c.useState(e),[a,u]=c.useState(0),l=c.useCallback((g,f)=>{r(f),n(g),u(p=>p+1)},[]),s=c.useCallback(g=>l(g,"warning"),[l]),d=c.useCallback(g=>l(g,"normal"),[l]),m=c.useCallback(()=>n(""),[]);return{toastMessage:t,toastType:o,toastKey:a,showToast:l,showWarning:s,showNormal:d,clearToast:m}}const Vd=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"audio-lines",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."}],Ud={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function Yd(e){return Vd.map(t=>{const n=Ud[t.key];return n?{...t,label:e(`trainingType.${n}.title`),desc:e(`trainingType.${n}.desc`)}:t})}const Xt={blue:"#60A5FA",green:"#4ADE80",amber:"#FBBF24",purple:"#A78BFA",pink:"#F472B6"},Qt=Xt.blue,Fn=Xt.green,Zt=Xt.amber,jn=Xt.purple,zd=Xt.pink,Kd=[{key:"discrimination",label:"\uBCC0\uBCC4\uD6C8\uB828",disc:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0, \uB610\uB294 \uD2B9\uC815 \uC18C\uB9AC\uB97C \uAD6C\uBCC4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"ear",types:[{key:"SAME_SOUND_PICK",label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",icon:"volume-2",color:Qt,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"SAME_OR_DIFF",label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",icon:"diff",color:Qt,subTitle:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},{key:"HEAR_AND_PICK_SAME",label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"headphones",color:Qt,subTitle:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"HEAR_AND_PICK_INCLUDED",label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"scan-search",color:Qt,subTitle:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},{key:"STARTS_WITH_SAME_SOUND",label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",icon:"play-circle",color:Qt,subTitle:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."}]},{key:"synthesis",label:"\uD569\uC131\uD6C8\uB828",disc:"\uB450 \uAC1C \uC774\uC0C1\uC758 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uD569\uCCD0 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"git-merge",types:[{key:"MERGE_2_SYLLABLES",label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",icon:"link-2",color:Fn,subTitle:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_SYLLABLES",label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",icon:"git-merge",color:Fn,subTitle:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_2_PHONEMES",label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",icon:"combine",color:Fn,subTitle:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"MERGE_3_PHONEMES",label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",icon:"braces",color:Fn,subTitle:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"}]},{key:"deletion",label:"\uD0C8\uB77D\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC5D0\uC11C \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uC81C\uAC70\uD588\uC744 \uB54C \uB0A8\uB294 \uC18C\uB9AC\uB97C \uC778\uC2DD\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"scissors",types:[{key:"DROP_1_FROM_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"scissors",color:Zt,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_1_FROM_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C 1\uC74C\uC808 \uD0C8\uB77D",icon:"minus-circle",color:Zt,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_PART_FROM_COMPOUND",label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84\uD0C8\uB77D",icon:"unlink",color:Zt,subTitle:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},{key:"DROP_FINAL_CONSONANT_FROM_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",icon:"eraser",color:Zt,subTitle:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},{key:"REMOVE_CONSONANT_AND_IDENTIFY_PHONEME",label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",icon:"audio-lines",color:Zt,subTitle:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"}]},{key:"substitution",label:"\uB300\uCE58\uD6C8\uB828",disc:"\uB2E8\uC5B4\uC758 \uC77C\uBD80 \uC74C\uC808\uC774\uB098 \uC74C\uC18C\uB97C \uBC14\uAFB8\uC5B4 \uC0C8\uB85C\uC6B4 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"replace",types:[{key:"CHANGE_1_SYLL_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"replace",color:jn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_SYLL_IN_3SYLL",label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",icon:"shuffle",color:jn,subTitle:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_1SYLL",label:"1\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"arrow-right-left",color:jn,subTitle:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},{key:"CHANGE_1_PHONEME_IN_2SYLL",label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC18C \uBC14\uAFB8\uAE30",icon:"flip-horizontal",color:jn,subTitle:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}]},{key:"attention",label:"\uCCAD\uAC01\uC801\uC8FC\uC758\uB825\uD6C8\uB828",disc:"\uC5EC\uB7EC \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uC21C\uC11C\uB97C \uAE30\uC5B5\uD558\uB294 \uC8FC\uC758\uB825\uACFC \uB2E8\uAE30 \uAE30\uC5B5 \uD6C8\uB828\uC785\uB2C8\uB2E4.",icon:"list-ordered",types:[{key:"LISTEN_AND_REMEMBER_ORDER",label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",icon:"list-ordered",color:zd,subTitle:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."}]}];function qd(){const{t:e}=Le.useTranslation();return c.useMemo(()=>{const t=Object.fromEntries(Yd(e).map(o=>[o.key,o.label])),n={...t};return Kd.flatMap(o=>o.types).forEach(o=>{n[o.key]=e(`trainingType.${o.key}.label`,{defaultValue:o.label})}),{sentence:t,all:n}},[e])}function Jd({computeStyle:e,onScroll:t="close",onResize:n="close",ignoreOutsideClickSelector:o}){const[r,a]=c.useState(!1),[u,l]=c.useState({position:"fixed"}),s=c.useRef(null),d=c.useRef(null),m=c.useCallback(()=>{s.current&&l(e(s.current.getBoundingClientRect(),s.current))},[e]);c.useLayoutEffect(()=>{r&&m()},[r,m]),c.useEffect(()=>{if(!r)return;let p=d.current?.offsetHeight??0;p>0&&m();let h=0,w=null;typeof ResizeObserver<"u"&&d.current&&(w=new ResizeObserver(()=>{const B=d.current?.offsetHeight??0;if(B!==p){if(p=B,++h>4){w?.disconnect(),w=null;return}m()}}),w.observe(d.current));const b=B=>{const I=B.target;o&&I.closest?.(o)||s.current?.contains(I)||d.current?.contains(I)||a(!1)};document.addEventListener("mousedown",b),document.addEventListener("pointerdown",b);let y=null;const S=()=>{if(typeof requestAnimationFrame>"u"){m();return}y===null&&(y=requestAnimationFrame(()=>{y=null,m()}))},E=B=>{d.current?.contains(B.target)||(t==="reposition"?S():t==="close"&&a(!1))};t!=="ignore"&&window.addEventListener("scroll",E,!0);const A=()=>{n==="reposition"?S():n==="close"&&a(!1)};let v=null;const L=()=>{A(),v&&clearTimeout(v),v=setTimeout(()=>{v=null,n==="reposition"&&m()},250)};return n!=="ignore"&&(window.addEventListener("resize",A),window.addEventListener("orientationchange",L)),()=>{y!==null&&cancelAnimationFrame(y),w?.disconnect(),document.removeEventListener("mousedown",b),document.removeEventListener("pointerdown",b),t!=="ignore"&&window.removeEventListener("scroll",E,!0),n!=="ignore"&&(window.removeEventListener("resize",A),window.removeEventListener("orientationchange",L)),v&&clearTimeout(v)}},[r,m,t,n,o]),c.useEffect(()=>{if(r)return Za(()=>a(!1))},[r]);const g=c.useCallback(()=>a(p=>!p),[]),f=c.useCallback(()=>a(!1),[]);return{open:r,setOpen:a,toggle:g,close:f,style:u,triggerRef:s,menuRef:d}}function Xd(e,{mode:t="playback",autoStart:n=!1,onPlaySpeaker:o,onComplete:r,playMs:a=1100,feedbackMs:u=1500}={}){const[l,s]=c.useState([]),[d,m]=c.useState(0),[g,f]=c.useState("idle"),[p,h]=c.useState(null),[w,b]=c.useState([]),[y,S]=c.useState(null),[E,A]=c.useState(0),v=c.useRef(0),L=c.useCallback(F=>{v.current=typeof F=="function"?F(v.current):F,A(v.current)},[]),B=c.useRef(o),I=c.useRef(r);c.useEffect(()=>{B.current=o,I.current=r},[o,r]);const P=c.useRef([]),O=()=>{P.current.forEach(clearTimeout),P.current=[]},G=(F,U)=>{P.current.push(setTimeout(U,F))};c.useEffect(()=>()=>O(),[]);const Y=l[d]?.id??null,V=c.useRef(null),k=c.useCallback(()=>{O(),f("playing"),b([]),S(null),L(0);let F=0;e.forEach((U,H)=>{G(F,()=>{m(H),h(U.id),B.current?.(U)}),G(F+1e3,()=>{h(null),b(je=>[...je,U.id])}),F+=1300}),G(F,()=>{f("done"),I.current?.({score:0,total:e.length})})},[e,L]),x=c.useCallback((F,U)=>{if(U>=F.length){f("done"),I.current?.({score:v.current,total:F.length});return}V.current=null,m(U),S(null),f("playing"),h(F[U].id),B.current?.(F[U]),G(a,()=>{h(null),f("waiting")})},[a]),q=c.useCallback(()=>{O();const F=K(e);s(F),L(0),b([]),x(F,0)},[e,x,L]),Q=c.useCallback(()=>{t==="playback"?(s(e),k()):q()},[t,e,k,q]),ce=c.useCallback(()=>{O(),f("idle"),h(null),b([]),S(null),m(0),L(0),s([])},[L]),Ae=JSON.stringify(e.map(F=>[F.id,F.label,F.angleDeg,F.deg,F.row,F.shortcut]));c.useEffect(()=>(n?Q():ce(),()=>O()),[t,Ae,n]);const R=c.useCallback(F=>{g!=="waiting"||t==="playback"||V.current===d||(V.current=d,S(F),F===l[d]?.id&&L(U=>U+1),t==="exam"?(f("playing"),G(400,()=>x(l,d+1))):(f("feedback"),G(u,()=>x(l,d+1))))},[g,t,l,d,x,u,L]),j=t==="playback"?e.length:l.length;return{bind:{activeSpeakerId:p,playedIds:w,selectedId:y,answerId:Y,showFeedback:g==="feedback",clickable:g==="waiting",onSelectSpeaker:R},index:d,total:j,score:E,phase:g,done:g==="done",start:Q,reset:ce}}/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function tu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Qd(e){if(Array.isArray(e))return e}function Zd(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o,r,a,u,l=[],s=!0,d=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(m){d=!0,r=m}finally{try{if(!s&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw r}}return l}}function ef(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tf(e,t){return Qd(e)||Zd(e,t)||nf(e,t)||ef()}function nf(e,t){if(e){if(typeof e=="string")return tu(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tu(e,t):void 0}}const nu=Object.entries,ou=Object.setPrototypeOf,of=Object.isFrozen,rf=Object.getPrototypeOf,af=Object.getOwnPropertyDescriptor;let ie=Object.freeze,se=Object.seal,St=Object.create,ru=typeof Reflect<"u"&&Reflect,Ko=ru.apply,qo=ru.construct;ie||(ie=function(t){return t}),se||(se=function(t){return t}),Ko||(Ko=function(t,n){for(var o=arguments.length,r=new Array(o>2?o-2:0),a=2;a<o;a++)r[a-2]=arguments[a];return t.apply(n,r)}),qo||(qo=function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return new t(...o)});const rt=le(Array.prototype.forEach),uf=le(Array.prototype.lastIndexOf),au=le(Array.prototype.pop),en=le(Array.prototype.push),lf=le(Array.prototype.splice),wt=Array.isArray,tn=le(String.prototype.toLowerCase),Jo=le(String.prototype.toString),uu=le(String.prototype.match),nn=le(String.prototype.replace),lu=le(String.prototype.indexOf),sf=le(String.prototype.trim),cf=le(Number.prototype.toString),df=le(Boolean.prototype.toString),iu=typeof BigInt>"u"?null:le(BigInt.prototype.toString),su=typeof Symbol>"u"?null:le(Symbol.prototype.toString),Ee=le(Object.prototype.hasOwnProperty),on=le(Object.prototype.toString),he=le(RegExp.prototype.test),at=ff(TypeError);function le(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return Ko(e,t,o)}}function ff(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return qo(e,n)}}function z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tn;if(ou&&ou(e,null),!wt(t))return e;let o=t.length;for(;o--;){let r=t[o];if(typeof r=="string"){const a=n(r);a!==r&&(of(t)||(t[o]=a),r=a)}e[r]=!0}return e}function gf(e){for(let t=0;t<e.length;t++)Ee(e,t)||(e[t]=null);return e}function De(e){const t=St(null);for(const o of nu(e)){var n=tf(o,2);const r=n[0],a=n[1];Ee(e,r)&&(wt(a)?t[r]=gf(a):a&&typeof a=="object"&&a.constructor===Object?t[r]=De(a):t[r]=a)}return t}function mf(e){switch(typeof e){case"string":return e;case"number":return cf(e);case"boolean":return df(e);case"bigint":return iu?iu(e):"0";case"symbol":return su?su(e):"Symbol()";case"undefined":return on(e);case"function":case"object":{if(e===null)return on(e);const t=e,n=Ie(t,"toString");if(typeof n=="function"){const o=n(t);return typeof o=="string"?o:on(o)}return on(e)}default:return on(e)}}function Ie(e,t){for(;e!==null;){const o=af(e,t);if(o){if(o.get)return le(o.get);if(typeof o.value=="function")return le(o.value)}e=rf(e)}function n(){return null}return n}function pf(e){try{return he(e,""),!0}catch{return!1}}const cu=ie(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Xo=ie(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Qo=ie(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Cf=ie(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Zo=ie(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),hf=ie(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),du=ie(["#text"]),fu=ie(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),er=ie(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gu=ie(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$n=ie(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),yf=se(/{{[\w\W]*|^[\w\W]*}}/g),bf=se(/<%[\w\W]*|^[\w\W]*%>/g),Sf=se(/\${[\w\W]*/g),wf=se(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ef=se(/^aria-[\-\w]+$/),mu=se(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Af=se(/^(?:\w+script|data):/i),Tf=se(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_f=se(/^html$/i),Df=se(/^[a-z][.\w]*(-[.\w]+)+$/i),pu=se(/<[/\w!]/g),Cu=se(/<[/\w]/g),Bf=se(/<\/no(script|embed|frames)/i),vf=se(/\/>/i),Be={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},hu=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Nf=ie(z({},hu)),Of=(function(){const e={};return rt(hu,t=>{e[t]=se(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),ie(e)})(),Lf=function(){return typeof window>"u"?null:window},Rf=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));const a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},yu=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},qe=function(t,n,o,r){return Ee(t,n)&&wt(t[n])?z(r.base?De(r.base):{},t[n],r.transform):o},tr=function(t,n,o){const r=Ee(t,n)?t[n]:void 0;return r&&typeof r=="object"?De(r):o()};function bu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lf();const t=D=>bu(D);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==Be.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const o=n,r=o.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,u=e.Node,l=e.Element,s=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,g=e.trustedTypes,f=l.prototype,p=Ie(f,"cloneNode"),h=Ie(f,"remove"),w=Ie(f,"nextSibling"),b=Ie(f,"childNodes"),y=Ie(f,"parentNode"),S=Ie(f,"shadowRoot"),E=Ie(f,"attributes"),A=u&&u.prototype?Ie(u.prototype,"nodeType"):null,v=u&&u.prototype?Ie(u.prototype,"nodeName"):null,L=u&&u.prototype?Ie(u.prototype,"ownerDocument"):null,B=function(i){return A?A(i):i.nodeType},I=function(i){return v?v(i):i.nodeName};if(typeof a=="function"){const D=n.createElement("template");D.content&&D.content.ownerDocument&&(n=D.content.ownerDocument)}let P,O="",G,Y=!1,V=0;const k=function(){if(V>0)throw at('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},x=function(i){k(),V++;try{return P.createHTML(i)}finally{V--}},q=function(i){k(),V++;try{return P.createScriptURL(i)}finally{V--}},Q=function(){return Y||(G=Rf(g,r),Y=!0),G},ce=n,Ae=ce.implementation,R=ce.createNodeIterator,j=ce.createDocumentFragment,F=ce.getElementsByTagName,U=o.importNode;let H=yu();t.isSupported=typeof nu=="function"&&typeof y=="function"&&Ae&&Ae.createHTMLDocument!==void 0;const je=yf,me=bf,Ue=Sf,lt=wf,Gn=Ef,rn=Af,Et=Tf,oe=Df;let At=mu,Z=null;const Tt=z({},[...cu,...Xo,...Qo,...Zo,...du]);let ee=null;const _t=z({},[...fu,...er,...gu,...$n]);let ve=Object.seal(St(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Je=null,an=null;const _=Object.seal(St(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ne=!0,W=!0,J=!1,be=!0,Ne=!1,Xe=!0,Qe=!1,Wn=!1,un=null,ln=null,Vn=!1,it=!1,sn=!1,cn=!1,ur=!0,lr=!1;const ir="user-content-";let Un=!0,Yn=!1,st={},ct=null;const sr=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let cr=null;const dr=z({},["audio","video","img","source","image","track"]);let fr=null;const gr=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dn="http://www.w3.org/1998/Math/MathML",fn="http://www.w3.org/2000/svg",Me="http://www.w3.org/1999/xhtml";let dt=Me,zn=!1,Kn=null;const vl=z({},[dn,fn,Me],Jo),mr=ie(["mi","mo","mn","ms","mtext"]);let qn=z({},mr);const pr=ie(["annotation-xml"]);let Jn=z({},pr);const Nl=z({},["title","style","font","a","script"]);let Dt=null;const Ol=["application/xhtml+xml","text/html"],Ll="text/html";let ae=null,ft=null;const Rl=n.createElement("form"),Cr=function(i){return i instanceof RegExp||i instanceof Function},Xn=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ft&&ft===i)return;(!i||typeof i!="object")&&(i={}),i=De(i),Dt=Ol.indexOf(i.PARSER_MEDIA_TYPE)===-1?Ll:i.PARSER_MEDIA_TYPE,ae=Dt==="application/xhtml+xml"?Jo:tn,Z=qe(i,"ALLOWED_TAGS",Tt,{transform:ae}),ee=qe(i,"ALLOWED_ATTR",_t,{transform:ae}),Kn=qe(i,"ALLOWED_NAMESPACES",vl,{transform:Jo}),fr=qe(i,"ADD_URI_SAFE_ATTR",gr,{transform:ae,base:gr}),cr=qe(i,"ADD_DATA_URI_TAGS",dr,{transform:ae,base:dr}),ct=qe(i,"FORBID_CONTENTS",sr,{transform:ae}),Je=qe(i,"FORBID_TAGS",De({}),{transform:ae}),an=qe(i,"FORBID_ATTR",De({}),{transform:ae}),st=Ee(i,"USE_PROFILES")?i.USE_PROFILES&&typeof i.USE_PROFILES=="object"?De(i.USE_PROFILES):i.USE_PROFILES:!1,ne=i.ALLOW_ARIA_ATTR!==!1,W=i.ALLOW_DATA_ATTR!==!1,J=i.ALLOW_UNKNOWN_PROTOCOLS||!1,be=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ne=i.SAFE_FOR_TEMPLATES||!1,Xe=i.SAFE_FOR_XML!==!1,Qe=i.WHOLE_DOCUMENT||!1,it=i.RETURN_DOM||!1,sn=i.RETURN_DOM_FRAGMENT||!1,cn=i.RETURN_TRUSTED_TYPE||!1,Vn=i.FORCE_BODY||!1,ur=i.SANITIZE_DOM!==!1,lr=i.SANITIZE_NAMED_PROPS||!1,Un=i.KEEP_CONTENT!==!1,Yn=i.IN_PLACE||!1,At=pf(i.ALLOWED_URI_REGEXP)?i.ALLOWED_URI_REGEXP:mu,dt=typeof i.NAMESPACE=="string"?i.NAMESPACE:Me,qn=tr(i,"MATHML_TEXT_INTEGRATION_POINTS",()=>z({},mr)),Jn=tr(i,"HTML_INTEGRATION_POINTS",()=>z({},pr));const C=tr(i,"CUSTOM_ELEMENT_HANDLING",()=>St(null));if(ve=St(null),Ee(C,"tagNameCheck")&&Cr(C.tagNameCheck)&&(ve.tagNameCheck=C.tagNameCheck),Ee(C,"attributeNameCheck")&&Cr(C.attributeNameCheck)&&(ve.attributeNameCheck=C.attributeNameCheck),Ee(C,"allowCustomizedBuiltInElements")&&typeof C.allowCustomizedBuiltInElements=="boolean"&&(ve.allowCustomizedBuiltInElements=C.allowCustomizedBuiltInElements),se(ve),Ne&&(W=!1),sn&&(it=!0),st&&(Z=z({},du),ee=St(null),st.html===!0&&(z(Z,cu),z(ee,fu)),st.svg===!0&&(z(Z,Xo),z(ee,er),z(ee,$n)),st.svgFilters===!0&&(z(Z,Qo),z(ee,er),z(ee,$n)),st.mathMl===!0&&(z(Z,Zo),z(ee,gu),z(ee,$n))),_.tagCheck=null,_.attributeCheck=null,Ee(i,"ADD_TAGS")&&(typeof i.ADD_TAGS=="function"?_.tagCheck=i.ADD_TAGS:wt(i.ADD_TAGS)&&(Z===Tt&&(Z=De(Z)),z(Z,i.ADD_TAGS,ae))),Ee(i,"ADD_ATTR")&&(typeof i.ADD_ATTR=="function"?_.attributeCheck=i.ADD_ATTR:wt(i.ADD_ATTR)&&(ee===_t&&(ee=De(ee)),z(ee,i.ADD_ATTR,ae))),Ee(i,"ADD_FORBID_CONTENTS")&&wt(i.ADD_FORBID_CONTENTS)&&(ct===sr&&(ct=De(ct)),z(ct,i.ADD_FORBID_CONTENTS,ae)),Un&&(Z["#text"]=!0),Qe&&z(Z,["html","head","body"]),Z.table&&(z(Z,["tbody"]),delete Je.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const T=P;P=i.TRUSTED_TYPES_POLICY;try{O=x("")}catch(N){throw P=T,N}}else i.TRUSTED_TYPES_POLICY===null?(P=void 0,O=""):(P===void 0&&(P=Q()),P&&typeof O=="string"&&(O=x("")));ie&&ie(i),ft=i},hr=z({},[...Xo,...Qo,...Cf]),yr=z({},[...Zo,...hf]),Il=function(i,C,T){return C.namespaceURI===Me?i==="svg":C.namespaceURI===dn?i==="svg"&&(T==="annotation-xml"||qn[T]):!!hr[i]},Ml=function(i,C,T){return C.namespaceURI===Me?i==="math":C.namespaceURI===fn?i==="math"&&Jn[T]:!!yr[i]},Pl=function(i,C,T){return C.namespaceURI===fn&&!Jn[T]||C.namespaceURI===dn&&!qn[T]?!1:!yr[i]&&(Nl[i]||!hr[i])},kl=function(i){let C=y(i);(!C||!C.tagName)&&(C={namespaceURI:dt,tagName:"template"});const T=tn(i.tagName),N=tn(C.tagName);return Kn[i.namespaceURI]?i.namespaceURI===fn?Il(T,C,N):i.namespaceURI===dn?Ml(T,C,N):i.namespaceURI===Me?Pl(T,C,N):!!(Dt==="application/xhtml+xml"&&Kn[i.namespaceURI]):!1},Ye=function(i){en(t.removed,{element:i});try{y(i).removeChild(i)}catch{if(h(i),!y(i))throw at("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},br=function(i,C,T){try{i.removeAttributeNode(C)}catch{try{i.removeAttribute(T)}catch{}}},gn=function(i){mn(i);const C=b(i);if(C){const N=[];rt(C,M=>{en(N,M)}),rt(N,M=>{try{h(M)}catch{}})}const T=E(i);if(T)for(let N=T.length-1;N>=0;--N){const M=T[N],$=M&&M.name;typeof $=="string"&&br(i,M,$)}},Ze=function(i,C,T){if(!T)try{T=C.getAttributeNode(i)}catch{T=null}en(t.removed,{attribute:T||null,from:C});try{T?C.removeAttributeNode(T):C.removeAttribute(i)}catch{try{C.removeAttribute(i)}catch{}}if(i==="is")if(it||sn)try{Ye(C)}catch{}else try{C.setAttribute(i,"")}catch{}},xl=function(i){const C=E(i);if(C)for(let T=C.length-1;T>=0;--T){const N=C[T],M=N&&N.name;typeof M!="string"||ee[ae(M)]||br(i,N,M)}},mn=function(i){const C=[i];for(;C.length>0;){const T=C.pop();B(T)===Be.element&&xl(T);const M=b(T);if(M)for(let $=M.length-1;$>=0;--$)C.push(M[$])}},Sr=function(i,C){return Xe?i==="patchsrc"?!0:i==="for"&&C!=="label"&&C!=="output":!1},Fl=function(i){if(!Xe)return;const C=[i];for(;C.length>0;){const T=C.pop(),N=B(T);if(N===Be.processingInstruction||N===Be.comment&&he(Cu,T.data)){try{h(T)}catch{}continue}if(N===Be.element){const $=T,te=ae(I(T));try{$.hasAttribute&&$.hasAttribute("patchsrc")&&$.removeAttribute("patchsrc"),$.hasAttribute&&$.hasAttribute("for")&&Sr("for",te)&&$.removeAttribute("for")}catch{}}const M=b(T);if(M)for(let $=M.length-1;$>=0;--$)C.push(M[$])}},wr=function(i){let C=null,T=null;if(Vn)i="<remove></remove>"+i;else{const $=uu(i,/^[\r\n\t ]+/);T=$&&$[0]}Dt==="application/xhtml+xml"&&dt===Me&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const N=P?x(i):i;if(dt===Me)try{C=new m().parseFromString(N,Dt)}catch{}if(!C||!C.documentElement){C=Ae.createDocument(dt,"template",null);try{C.documentElement.innerHTML=zn?O:N}catch{}}const M=C.body||C.documentElement;return i&&T&&M.insertBefore(n.createTextNode(T),M.childNodes[0]||null),dt===Me?F.call(C,Qe?"html":"body")[0]:Qe?C.documentElement:M},Er=function(i){const C=L?L(i):i.ownerDocument;return R.call(C||i,i,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},pn=function(i){return i=nn(i,je," "),i=nn(i,me," "),i=nn(i,Ue," "),i},Qn=function(i){var C;i.normalize();const T=L?L(i):i.ownerDocument,N=R.call(T||i,i,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let M=N.nextNode();for(;M;)M.data=pn(M.data),M=N.nextNode();const $=(C=i.querySelectorAll)===null||C===void 0?void 0:C.call(i,"template");$&&rt($,te=>{gt(te.content)&&Qn(te.content)})},Cn=function(i){const C=v?v(i):null;return typeof C!="string"||ae(C)!=="form"?!1:typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||i.attributes!==E(i)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function"||i.nodeType!==A(i)||i.childNodes!==b(i)},gt=function(i){if(!A||typeof i!="object"||i===null)return!1;try{return A(i)===Be.documentFragment}catch{return!1}},Bt=function(i){if(!A||typeof i!="object"||i===null)return!1;try{return typeof A(i)=="number"}catch{return!1}};function Pe(D,i,C){D.length!==0&&rt(D,T=>{T.call(t,i,C,ft)})}const jl=function(i,C){return!!(Xe&&i.hasChildNodes()&&!Bt(i.firstElementChild)&&he(pu,i.textContent)&&he(pu,i.innerHTML)||Xe&&i.namespaceURI===Me&&Nf[C]&&(Bt(i.firstElementChild)||typeof i.textContent=="string"&&he(Of[C],i.textContent))||i.nodeType===Be.processingInstruction||Xe&&i.nodeType===Be.comment&&he(Cu,i.data))},hn=function(i,C){if(i instanceof RegExp)return he(i,C);if(i instanceof Function){for(var T=arguments.length,N=new Array(T>2?T-2:0),M=2;M<T;M++)N[M-2]=arguments[M];return!!i(C,...N)}return!1},$l=function(i,C,T){if(!Je[C]&&Br(C)&&hn(ve.tagNameCheck,C))return!1;if(Un&&!ct[C]){const N=y(i),M=b(i);if(M&&N){const $=M.length;for(let te=$-1;te>=0;--te){const re=i===T?p(M[te],!0):M[te];N.insertBefore(re,w(i))}}}return Ye(i),!0},Ar=function(i,C,T,N){return i.length===0?C:C===T||C===N?De(C):C},Tr=function(i,C){return i===C||y(i)!==null?!1:(Yn&&mn(i),!0)},_r=function(i,C){if(Pe(H.beforeSanitizeElements,i,null),Tr(i,C))return!0;if(Cn(i))return Ye(i),!0;const T=ae(I(i));if(Z=Ar(H.uponSanitizeElement,Z,Tt,un),Pe(H.uponSanitizeElement,i,{tagName:T,allowedTags:Z}),Tr(i,C))return!0;if(jl(i,T))return Ye(i),!0;if(Je[T]||!(_.tagCheck instanceof Function&&_.tagCheck(T))&&!Z[T]){const M=$l(i,T,C);return M===!1&&Pe(H.afterSanitizeElements,i,null),M}if(B(i)===Be.element&&!kl(i)||(T==="noscript"||T==="noembed"||T==="noframes")&&he(Bf,i.innerHTML))return Ye(i),!0;if(Ne&&i.nodeType===Be.text){const M=pn(i.textContent);i.textContent!==M&&(en(t.removed,{element:i.cloneNode()}),i.textContent=M)}return Pe(H.afterSanitizeElements,i,null),!1},Dr=function(i,C,T){if(an[C]||Sr(C,i)||ur&&(C==="id"||C==="name")&&(T in n||T in Rl))return!1;const N=ee[C]||_.attributeCheck instanceof Function&&_.attributeCheck(C,i);return W&&he(lt,C)||ne&&he(Gn,C)?!0:N?fr[C]||he(At,nn(T,Et,""))||(C==="src"||C==="xlink:href"||C==="href")&&i!=="script"&&lu(T,"data:")===0&&cr[i]||J&&!he(rn,nn(T,Et,""))?!0:!T:Br(i)&&hn(ve.tagNameCheck,i)&&hn(ve.attributeNameCheck,C,i)||C==="is"&&ve.allowCustomizedBuiltInElements&&hn(ve.tagNameCheck,T)},Hl=z({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Br=function(i){return!Hl[tn(i)]&&he(oe,i)},Gl=function(i,C,T,N){if(P&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!T)switch(g.getAttributeType(i,C)){case"TrustedHTML":return x(N);case"TrustedScriptURL":return q(N)}return N},Wl=function(i,C,T,N){try{T?i.setAttributeNS(T,C,N):i.setAttribute(C,N),Cn(i)?Ye(i):au(t.removed)}catch{Ze(C,i)}},vr=function(i){Pe(H.beforeSanitizeAttributes,i,null);const C=i.attributes;if(!C||Cn(i))return;ee=Ar(H.uponSanitizeAttribute,ee,_t,ln);const T={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let N=C.length;const M=ae(i.nodeName);for(;N--;){const $=C[N],te=$.name,re=$.namespaceURI,Se=$.value,we=ae(te),eo=Se;let ye=te==="value"?eo:sf(eo);if(T.attrName=we,T.attrValue=ye,T.keepAttr=!0,T.forceKeepAttr=void 0,Pe(H.uponSanitizeAttribute,i,T),ye=T.attrValue,lr&&(we==="id"||we==="name")&&lu(ye,ir)!==0&&(Ze(te,i,$),ye=ir+ye),Xe&&he(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ye)){Ze(te,i,$);continue}if(we==="attributename"&&uu(ye,"href")){Ze(te,i,$);continue}if(!T.forceKeepAttr){if(!T.keepAttr){Ze(te,i,$);continue}if(!be&&he(vf,ye)){Ze(te,i,$);continue}if(Ne&&(ye=pn(ye)),!Dr(M,we,ye)){Ze(te,i,$);continue}ye=Gl(M,we,re,ye),ye!==eo&&Wl(i,te,re,ye)}}Pe(H.afterSanitizeAttributes,i,null)},yn=function(i){let C=null;const T=Er(i);for(Pe(H.beforeSanitizeShadowDOM,i,null);C=T.nextNode();)if(Pe(H.uponSanitizeShadowNode,C,null),_r(C,i),vr(C),gt(C.content)&&yn(C.content),B(C)===Be.element){const N=S(C);gt(N)&&(Zn(N),yn(N))}Pe(H.afterSanitizeShadowDOM,i,null)},Zn=function(i){const C=[{node:i,shadow:null}];for(;C.length>0;){const T=C.pop();if(T.shadow){yn(T.shadow);continue}const N=T.node,$=B(N)===Be.element,te=b(N);if(te)for(let re=te.length-1;re>=0;--re)C.push({node:te[re],shadow:null});if($){const re=v?v(N):null;if(typeof re=="string"&&ae(re)==="template"){const Se=N.content;gt(Se)&&C.push({node:Se,shadow:null})}}if($){const re=S(N);gt(re)&&C.push({node:null,shadow:re},{node:re,shadow:null})}}};return t.sanitize=function(D){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,T=null,N=null,M=null;if(zn=!D,zn&&(D="<!-->"),typeof D!="string"&&!Bt(D)&&(D=mf(D),typeof D!="string"))throw at("dirty is not a string, aborting");if(!t.isSupported)return D;Wn?(Z=un,ee=ln):Xn(i),(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&(Z=De(Z)),H.uponSanitizeAttribute.length>0&&(ee=De(ee)),t.removed=[];const $=Yn&&typeof D!="string"&&Bt(D);if($){Fl(D);const Se=I(D);if(typeof Se=="string"){const we=ae(Se);if(!Z[we]||Je[we])throw gn(D),at("root node is forbidden and cannot be sanitized in-place")}if(Cn(D))throw gn(D),at("root node is clobbered and cannot be sanitized in-place");try{Zn(D)}catch(we){throw gn(D),we}}else if(Bt(D))C=wr("<!---->"),T=C.ownerDocument.importNode(D,!0),T.nodeType===Be.element&&T.nodeName==="BODY"||T.nodeName==="HTML"?C=T:C.appendChild(T),Zn(T);else{if(!it&&!Ne&&!Qe&&D.indexOf("<")===-1)return P&&cn?x(D):D;if(C=wr(D),!C)return it?null:cn?O:""}C&&Vn&&Ye(C.firstChild);const te=$?D:C;try{const Se=Er(te);for(;N=Se.nextNode();)_r(N,te),vr(N),gt(N.content)&&yn(N.content)}catch(Se){throw $&&(gn(D),rt(t.removed,we=>{we.element&&mn(we.element)})),Se}if($)return rt(t.removed,Se=>{Se.element&&mn(Se.element)}),Ne&&Qn(D),D;if(it){if(Ne&&Qn(C),sn)for(M=j.call(C.ownerDocument);C.firstChild;)M.appendChild(C.firstChild);else M=C;return(ee.shadowroot||ee.shadowrootmode)&&(M=U.call(o,M,!0)),M}let re=Qe?C.outerHTML:C.innerHTML;return Qe&&Z["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&he(_f,C.ownerDocument.doctype.name)&&(re="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
|
|
5
|
-
`+re),Ne&&(re=pn(re)),P&&cn?x(re):re},t.setConfig=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xn(D),Wn=!0,un=Z,ln=ee},t.clearConfig=function(){ft=null,Wn=!1,un=null,ln=null,P=G,O=""},t.isValidAttribute=function(D,i,C){ft||Xn({});const T=ae(D),N=ae(i);return Dr(T,N,C)},t.addHook=function(D,i){typeof i=="function"&&Ee(H,D)&&en(H[D],i)},t.removeHook=function(D,i){if(Ee(H,D)){if(i!==void 0){const C=uf(H[D],i);return C===-1?void 0:lf(H[D],C,1)[0]}return au(H[D])}},t.removeHooks=function(D){Ee(H,D)&&(H[D]=[])},t.removeAllHooks=function(){H=yu()},t}bu();const nr=new Map,or=new Map,If=()=>()=>{},Mf=()=>!0,Pf=()=>!1;function Su(e){const t=/^data:image\/svg\+xml(;base64)?,([\s\S]*)$/.exec(e);if(!t)return null;try{if(!t[1])return decodeURIComponent(t[2]);const n=Uint8Array.from(atob(t[2]),o=>o.charCodeAt(0));return new TextDecoder("utf-8").decode(n)}catch{return null}}function kf(e){const t=or.get(e);if(t)return t;const n=fetch(e).then(o=>o.ok?o.text():null).then(o=>(o!=null&&nr.set(e,o),o)).catch(()=>null).finally(()=>{or.delete(e)});return or.set(e,n),n}function xf(e,t=!0){const n=c.useSyncExternalStore(If,Mf,Pf)&&t&&e?Su(e)??nr.get(e)??null:null,[o,r]=c.useState({src:e,enabled:t,svg:n});return c.useEffect(()=>{if(!t||!e){r({src:e,enabled:t,svg:null});return}const a=Su(e)??nr.get(e)??null;if(a!==null){r({src:e,enabled:t,svg:a});return}let u=!0;return kf(e).then(l=>{u&&r({src:e,enabled:t,svg:l})}),()=>{u=!1}},[e,t]),o.src===e&&o.enabled===t?o.svg:n}const rr=e=>e.split("/").filter(t=>t!=="");function wu(e){const t=rr(e);return t[t.length-1]??e}function Ff(e){const t=rr(e);return t.length>1?t.slice(0,-1).join("/"):null}const jf=(e,t)=>e?`${e}/${t.trim()}`:t.trim(),$f=(e,t)=>!!e&&(e===t||e.startsWith(t+"/"));function Hf(e){const t=new Set,n=[];for(const o of e){const r=rr(o);for(let a=1;a<=r.length;a+=1){const u=r.slice(0,a).join("/");t.has(u)||(t.add(u),n.push(u))}}return n}function Gf(e,t){return Hf(e).filter(n=>Ff(n)===t)}function Wf(e,t,n){if(!(!e||!$f(e,t)))return jf(n,wu(t))+e.slice(t.length)}function Vf({paths:e,search:t,onOpen:n}){const[o,r]=c.useState(null),a=o&&e.includes(o)?o:null,u=t.trim()!=="",l=c.useCallback(f=>{r(f),n?.()},[n]),s=c.useCallback((f,p)=>{r(h=>Wf(h,f,p)??h)},[]),d=c.useCallback((f,p)=>{r(h=>h===f?p:h?.startsWith(`${f}/`)?p+h.slice(f.length):h)},[]),m=c.useCallback(()=>r(null),[]),g=u?null:a;return{opened:a,searching:u,open:l,reset:m,followMove:s,followRename:d,newFolderParent:g,siblingNames:Gf(e,g).map(wu)}}const Uf=e=>String(e);function Yf(e,t=Uf){const[n,o]=c.useState(null),[r,a]=c.useState(null),u=c.useCallback(s=>({draggable:!0,onDragStart:d=>{o(s),d.dataTransfer.effectAllowed="move",d.dataTransfer.setData("text/plain",t(s))},onDragEnd:()=>{o(null),a(null)}}),[t]),l=c.useCallback((s,d)=>{const m=n!=null&&(!d||d(n));return{onDragOver:g=>{m&&(g.preventDefault(),g.dataTransfer.dropEffect="move",a(s))},onDragEnter:()=>{m&&a(s)},onDragLeave:g=>{m&&!g.currentTarget.contains(g.relatedTarget)&&a(f=>f===s?null:f)},onDrop:g=>{if(!m||n==null)return;g.preventDefault();const f=n;a(null),o(null),e(f,s)}}},[n,e]);return{dragging:n,draggingId:n==null?null:t(n),dragOverKey:r,cardProps:u,groupProps:l}}const Eu=[10,25,50,100];function zf(e=Eu){const{t}=Le.useTranslation(),n=e.join(",");return c.useMemo(()=>e.map(o=>({value:String(o),label:t("common.pageSizeLabel",{n:o,defaultValue:"{{n}}\uAC1C\uC529 \uBCF4\uAE30"})})),[n,t])}function Kf(e,t=!0){const n=bn(e);c.useEffect(()=>{if(!t)return;const o=()=>{n.current()},r=()=>{document.visibilityState==="hidden"&&o()};return document.addEventListener("visibilitychange",r),window.addEventListener("pagehide",o),()=>{document.removeEventListener("visibilitychange",r),window.removeEventListener("pagehide",o)}},[t,n])}function qf(e){c.useEffect(()=>{if(!e||typeof navigator>"u")return;const t=navigator.wakeLock;if(!t)return;let n=null,o=!1;const r=async()=>{if(!(o||n||document.visibilityState!=="visible"))try{const u=await t.request("screen");if(o){u.release().catch(()=>{});return}n=u,u.addEventListener("release",()=>{n===u&&(n=null)})}catch{}},a=()=>{document.visibilityState==="visible"&&r()};return r(),document.addEventListener("visibilitychange",a),()=>{o=!0,document.removeEventListener("visibilitychange",a),n&&(n.release().catch(()=>{}),n=null)}},[e])}function Jf(e){return window.addEventListener("online",e),window.addEventListener("offline",e),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",e)}}const Xf=()=>typeof navigator>"u"||navigator.onLine!==!1;function Qf(){return c.useSyncExternalStore(Jf,Xf,()=>!0)}function Zf(e,t,n){const o=bn(n);c.useEffect(()=>{if(!e)return;const r=a=>{t.current?.contains(a.target)||o.current()};return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[e,t,o])}const Au="__ihabBackClosable",ut=[];let Hn=0,Tu=!1,eg=1;function ar(){try{const e=window.history.state?.[Au];return typeof e=="number"?e:void 0}catch{return}}function _u(e){try{const t=window.history.state??{};window.history.pushState({...t,[Au]:e},"")}catch{}}function tg(){if(Hn>0){Hn--;return}const e=ut[ut.length-1];if(e&&ar()!==e.id){if(e.onBack()===!1){_u(e.id);return}ut.pop()}}function ng(){Tu||typeof window>"u"||(window.addEventListener("popstate",tg),Tu=!0)}function og(e,t){const n=c.useRef(t);c.useEffect(()=>{n.current=t});const o=c.useRef(null);c.useEffect(()=>{if(!e||typeof window>"u")return;ng();const r=o.current??(o.current=eg++),a={id:r,onBack:()=>n.current()};return ut.push(a),ar()!==r&&_u(r),()=>{const u=ut.indexOf(a);if(u<0){o.current=null;return}ut.splice(u,1),setTimeout(()=>{if(!ut.some(l=>l.id===r)&&(o.current===r&&(o.current=null),ar()===r)){Hn++;try{window.history.back()}catch{Hn--}}},0)}},[e])}const rg=260,ag="(prefers-reduced-motion: reduce)";function ug(){try{return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(ag).matches}catch{return!1}}function lg(e){const t=c.useRef(null),n=c.useCallback(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]);return c.useEffect(()=>n,[n]),c.useCallback(o=>{n();const r=e??(ug()?0:rg);t.current=setTimeout(()=>{t.current=null,o?.()},r)},[n,e])}var Du={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",collapseFor:"Collapse {{name}}",expandFor:"Expand {{name}}",sortFor:"Sort {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount_one:"{{count}} like",likeCount_other:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount_one:"{{count}} download",downloadCount_other:"{{count}} downloads",descriptionFor:"About {{name}}",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",loading:"Loading",playFor:"Play {{name}}",pauseFor:"Pause {{name}}",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",noMatches:"No matching 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.",add:"Add"},Bu={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonthCompact:"{{short}}",weekLabel:"Week {{ord}}",weekLabelCompact:"W{{ord}}",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",visitCount_one:"{{count}} visit",visitCount_other:"{{count}} visits",statusCount:"{{count}} {{label}}",weekOrdinal:["1","2","3","4","5","6","7"]},vu={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",expired:"Expired",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},Nu={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},Ou={selected:"selected"},Lu={placeholder:"Select"},Ru={collapse:"Collapse",expand:"Expand"},Iu={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},Mu={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",feedback:"Report a bug",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}}",badgeInsideLabel_one:"{{label}}, {{count}} notification inside",badgeInsideLabel_other:"{{label}}, {{count}} notifications inside"},Pu={cache:{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"}}}},ku={couponButton:"Enter Coupon"},xu={security:{password:{currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."}}},Fu={settings:"Settings",filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Difficulty",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_one:"{{n}} question",countQuestions_other:"{{n}} questions",countSentences_one:"{{n}} sentence",countSentences_other:"{{n}} sentences",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",playSoundFor:"Play {{name}}",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",previewFor:"Preview {{name}}",stopFor:"Stop {{name}}",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",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",replaySound:"Replay item {{no}}",replaySoundStop:"Stop item {{no}}",done:"Done",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{synthesizing:"Preparing the sound\u2026",preparing:"Preparing sound\u2026"}},ju={totalCount:" customers",loadError:"Failed to load list",device:{title:"Hearing Devices",addButton:"Add device",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",historyTitle:"Hearing device history"},schedule:{registerTitle:" Register Schedule"},visitHistory:{empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"},consent:{record:"Record consent",kinds:"Kinds given",methodTitle:"How it was given",sourceTitle:"Who gave it",day:"Date given",note:"Note",notePlaceholder:"Referring clinic and the like \u2014 do not write anything sensitive",submit:"Save",allTaken:"All three kinds are already on record. Revoke one first to record it again.",kind:{personal:"General personal data",sensitive:"Sensitive data (hearing, diagnosis)",marketing:"Marketing messages"},method:{paper:"On paper",verbal:"Spoken",electronic:"Electronic"},source:{self:"The customer",guardian:"A guardian",referral:"A referring body"}}},$u={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},Hu={input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply"},Gu={showN:"Show {{n}}"},Wu={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."}},Vu={newBadge:"Newly created",publishedBadge:"Published",sharedBadge:"Shared"},Uu={title:"Key Words",empty:"No key words available."},Yu={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",caption:"Form",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",topInfo:"Header",bottomInfo:"Footer",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",copyItem:"Duplicate",copyItemAria:"Duplicate the word in cell {{n}}",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_one:"{{count}} word",itemCount_other:"{{count}} words",deleteAriaLabel:"Delete {{name}}",viewLabel:"View as",sortLabel:"Sort by",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},publisherFilter:"Show only tables by {{name}}",groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",markName:{o:"Correct",triangle:"Partial",x:"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 \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse they appear when you hover the cell; with a keyboard, when focus reaches it.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved_one:"Saved {{count}} mark for {{name}}.",saved_other:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage_one:"Builds a new table from the {{count}} cell {{name}} got wrong or partial. Correct ones are left out.",reviewMessage_other:"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_one:"Created \u201C{{name}}\u201D \u2014 {{count}} cell.",reviewCreated_other:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage_one:"You marked {{count}} cell but have not saved. Leaving discards it.",discardMessage_other:"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"},thumbMore:"+{{count}}",replaceItem:"Other words",replacePair:"Other pairs",replaceItemAria:"Swap cell {{n}} only",replacePairAria:"Swap pair {{n}} only",thumbMoreAria_one:"1 more cell: {{words}}",thumbMoreAria_other:"{{count}} more cells: {{words}}",pickForm:"Other forms",pickFormAria:"Change the form in cell {{n}}",pickFormBaseAria:"Change the form of the base word"},zu={filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Difficulty",grade:"Grade {{n}}",age:"Age {{n}}",agePlus:"Age {{n}}+",ageRange:"Age {{from}}\u2013{{to}}",difficultyInfoAge:"Age 3\u20137: the easiest words (grade 1), split by age.",difficultyInfoGrade:"Grades 2\u20134: harder words, not split by age.",difficultyInfoNone:"None: words with no difficulty assigned.",difficultyInfoBandAge:"{{ages}}: {{grade}} words, split by age.",difficultyInfoBandAgeOne:"{{ages}}: {{grade}} words.",difficultyInfoBandGrade:"{{grade}}: words for {{ages}}.",difficultyInfoBandAgeNamed:"{{ages}}: words split by age.",gradeNone:"None",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",field:"Semantic Category",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"},Ku={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removePairFor:"Remove the pair {{name}}",removeWord:"Remove word",removeWordFor:"Remove {{name}}"},qu={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"}},Ju={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant",other:"Other"}},Xu={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"}},Qu={phonemeSelect:{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}}",countLabel:"Number of phonemes",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:["Level 1 \u2014 everyday vocabulary acquired before school age and used for life","Level 2 \u2014 difficulty of grades 1\u20132","Level 3 \u2014 difficulty of grades 3\u20134","Level 4 \u2014 difficulty of grades 5\u20136","No level \u2014 frequent everyday words outside the national standard list, plus coinages and loanwords"],selectLabel:"Select",onlyHasImage:"Only words with images",onlyHighUsage:"High-use words only",onlySameStructure:"Only same phoneme structure"},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."]},Zu={lead:`IHAB builds trust
|
|
5
|
+
`+re),Ne&&(re=pn(re)),P&&cn?x(re):re},t.setConfig=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xn(D),Wn=!0,un=Z,ln=ee},t.clearConfig=function(){ft=null,Wn=!1,un=null,ln=null,P=G,O=""},t.isValidAttribute=function(D,i,C){ft||Xn({});const T=ae(D),N=ae(i);return Dr(T,N,C)},t.addHook=function(D,i){typeof i=="function"&&Ee(H,D)&&en(H[D],i)},t.removeHook=function(D,i){if(Ee(H,D)){if(i!==void 0){const C=uf(H[D],i);return C===-1?void 0:lf(H[D],C,1)[0]}return au(H[D])}},t.removeHooks=function(D){Ee(H,D)&&(H[D]=[])},t.removeAllHooks=function(){H=yu()},t}bu();const nr=new Map,or=new Map,If=()=>()=>{},Mf=()=>!0,Pf=()=>!1;function Su(e){const t=/^data:image\/svg\+xml(;base64)?,([\s\S]*)$/.exec(e);if(!t)return null;try{if(!t[1])return decodeURIComponent(t[2]);const n=Uint8Array.from(atob(t[2]),o=>o.charCodeAt(0));return new TextDecoder("utf-8").decode(n)}catch{return null}}function kf(e){const t=or.get(e);if(t)return t;const n=fetch(e).then(o=>o.ok?o.text():null).then(o=>(o!=null&&nr.set(e,o),o)).catch(()=>null).finally(()=>{or.delete(e)});return or.set(e,n),n}function xf(e,t=!0){const n=c.useSyncExternalStore(If,Mf,Pf)&&t&&e?Su(e)??nr.get(e)??null:null,[o,r]=c.useState({src:e,enabled:t,svg:n});return c.useEffect(()=>{if(!t||!e){r({src:e,enabled:t,svg:null});return}const a=Su(e)??nr.get(e)??null;if(a!==null){r({src:e,enabled:t,svg:a});return}let u=!0;return kf(e).then(l=>{u&&r({src:e,enabled:t,svg:l})}),()=>{u=!1}},[e,t]),o.src===e&&o.enabled===t?o.svg:n}const rr=e=>e.split("/").filter(t=>t!=="");function wu(e){const t=rr(e);return t[t.length-1]??e}function Ff(e){const t=rr(e);return t.length>1?t.slice(0,-1).join("/"):null}const jf=(e,t)=>e?`${e}/${t.trim()}`:t.trim(),$f=(e,t)=>!!e&&(e===t||e.startsWith(t+"/"));function Hf(e){const t=new Set,n=[];for(const o of e){const r=rr(o);for(let a=1;a<=r.length;a+=1){const u=r.slice(0,a).join("/");t.has(u)||(t.add(u),n.push(u))}}return n}function Gf(e,t){return Hf(e).filter(n=>Ff(n)===t)}function Wf(e,t,n){if(!(!e||!$f(e,t)))return jf(n,wu(t))+e.slice(t.length)}function Vf({paths:e,search:t,onOpen:n}){const[o,r]=c.useState(null),a=o&&e.includes(o)?o:null,u=t.trim()!=="",l=c.useCallback(f=>{r(f),n?.()},[n]),s=c.useCallback((f,p)=>{r(h=>Wf(h,f,p)??h)},[]),d=c.useCallback((f,p)=>{r(h=>h===f?p:h?.startsWith(`${f}/`)?p+h.slice(f.length):h)},[]),m=c.useCallback(()=>r(null),[]),g=u?null:a;return{opened:a,searching:u,open:l,reset:m,followMove:s,followRename:d,newFolderParent:g,siblingNames:Gf(e,g).map(wu)}}const Uf=e=>String(e);function Yf(e,t=Uf){const[n,o]=c.useState(null),[r,a]=c.useState(null),u=c.useCallback(s=>({draggable:!0,onDragStart:d=>{o(s),d.dataTransfer.effectAllowed="move",d.dataTransfer.setData("text/plain",t(s))},onDragEnd:()=>{o(null),a(null)}}),[t]),l=c.useCallback((s,d)=>{const m=n!=null&&(!d||d(n));return{onDragOver:g=>{m&&(g.preventDefault(),g.dataTransfer.dropEffect="move",a(s))},onDragEnter:()=>{m&&a(s)},onDragLeave:g=>{m&&!g.currentTarget.contains(g.relatedTarget)&&a(f=>f===s?null:f)},onDrop:g=>{if(!m||n==null)return;g.preventDefault();const f=n;a(null),o(null),e(f,s)}}},[n,e]);return{dragging:n,draggingId:n==null?null:t(n),dragOverKey:r,cardProps:u,groupProps:l}}const Eu=[10,25,50,100];function zf(e=Eu){const{t}=Le.useTranslation(),n=e.join(",");return c.useMemo(()=>e.map(o=>({value:String(o),label:t("common.pageSizeLabel",{n:o,defaultValue:"{{n}}\uAC1C\uC529 \uBCF4\uAE30"})})),[n,t])}function Kf(e,t=!0){const n=bn(e);c.useEffect(()=>{if(!t)return;const o=()=>{n.current()},r=()=>{document.visibilityState==="hidden"&&o()};return document.addEventListener("visibilitychange",r),window.addEventListener("pagehide",o),()=>{document.removeEventListener("visibilitychange",r),window.removeEventListener("pagehide",o)}},[t,n])}function qf(e){c.useEffect(()=>{if(!e||typeof navigator>"u")return;const t=navigator.wakeLock;if(!t)return;let n=null,o=!1;const r=async()=>{if(!(o||n||document.visibilityState!=="visible"))try{const u=await t.request("screen");if(o){u.release().catch(()=>{});return}n=u,u.addEventListener("release",()=>{n===u&&(n=null)})}catch{}},a=()=>{document.visibilityState==="visible"&&r()};return r(),document.addEventListener("visibilitychange",a),()=>{o=!0,document.removeEventListener("visibilitychange",a),n&&(n.release().catch(()=>{}),n=null)}},[e])}function Jf(e){return window.addEventListener("online",e),window.addEventListener("offline",e),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",e)}}const Xf=()=>typeof navigator>"u"||navigator.onLine!==!1;function Qf(){return c.useSyncExternalStore(Jf,Xf,()=>!0)}function Zf(e,t,n){const o=bn(n);c.useEffect(()=>{if(!e)return;const r=a=>{t.current?.contains(a.target)||o.current()};return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[e,t,o])}const Au="__ihabBackClosable",ut=[];let Hn=0,Tu=!1,eg=1;function ar(){try{const e=window.history.state?.[Au];return typeof e=="number"?e:void 0}catch{return}}function _u(e){try{const t=window.history.state??{};window.history.pushState({...t,[Au]:e},"")}catch{}}function tg(){if(Hn>0){Hn--;return}const e=ut[ut.length-1];if(e&&ar()!==e.id){if(e.onBack()===!1){_u(e.id);return}ut.pop()}}function ng(){Tu||typeof window>"u"||(window.addEventListener("popstate",tg),Tu=!0)}function og(e,t){const n=c.useRef(t);c.useEffect(()=>{n.current=t});const o=c.useRef(null);c.useEffect(()=>{if(!e||typeof window>"u")return;ng();const r=o.current??(o.current=eg++),a={id:r,onBack:()=>n.current()};return ut.push(a),ar()!==r&&_u(r),()=>{const u=ut.indexOf(a);if(u<0){o.current=null;return}ut.splice(u,1),setTimeout(()=>{if(!ut.some(l=>l.id===r)&&(o.current===r&&(o.current=null),ar()===r)){Hn++;try{window.history.back()}catch{Hn--}}},0)}},[e])}function rg(e){const[t,n]=c.useState(0);c.useEffect(()=>{if(!e||t<=0)return;const a=setTimeout(()=>n(u=>Math.max(0,u-1)),1e3);return()=>clearTimeout(a)},[e,t]);const o=c.useCallback(a=>{n(Number.isFinite(a)?Math.max(0,Math.floor(a)):0)},[]),r=`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`;return{left:t,clock:r,start:o}}const ag=260,ug="(prefers-reduced-motion: reduce)";function lg(){try{return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(ug).matches}catch{return!1}}function ig(e){const t=c.useRef(null),n=c.useCallback(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]);return c.useEffect(()=>n,[n]),c.useCallback(o=>{n();const r=e??(lg()?0:ag);t.current=setTimeout(()=>{t.current=null,o?.()},r)},[n,e])}var Du={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",collapseFor:"Collapse {{name}}",expandFor:"Expand {{name}}",sortFor:"Sort {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount_one:"{{count}} like",likeCount_other:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount_one:"{{count}} download",downloadCount_other:"{{count}} downloads",descriptionFor:"About {{name}}",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",loading:"Loading",playFor:"Play {{name}}",pauseFor:"Pause {{name}}",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",noMatches:"No matching 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.",add:"Add"},Bu={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonthCompact:"{{short}}",weekLabel:"Week {{ord}}",weekLabelCompact:"W{{ord}}",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",visitCount_one:"{{count}} visit",visitCount_other:"{{count}} visits",statusCount:"{{count}} {{label}}",weekOrdinal:["1","2","3","4","5","6","7"]},vu={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",expired:"Expired",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},Nu={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},Ou={selected:"selected"},Lu={placeholder:"Select"},Ru={collapse:"Collapse",expand:"Expand"},Iu={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},Mu={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",feedback:"Report a bug",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}}",badgeInsideLabel_one:"{{label}}, {{count}} notification inside",badgeInsideLabel_other:"{{label}}, {{count}} notifications inside"},Pu={cache:{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"}}}},ku={couponButton:"Enter Coupon"},xu={security:{password:{currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."}}},Fu={settings:"Settings",filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Difficulty",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_one:"{{n}} question",countQuestions_other:"{{n}} questions",countSentences_one:"{{n}} sentence",countSentences_other:"{{n}} sentences",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",playSoundFor:"Play {{name}}",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",previewFor:"Preview {{name}}",stopFor:"Stop {{name}}",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",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",replaySound:"Replay item {{no}}",replaySoundStop:"Stop item {{no}}",done:"Done",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{synthesizing:"Preparing the sound\u2026",preparing:"Preparing sound\u2026"}},ju={totalCount:" customers",loadError:"Failed to load list",device:{title:"Hearing Devices",addButton:"Add device",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",historyTitle:"Hearing device history"},schedule:{registerTitle:" Register Schedule"},visitHistory:{empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"},consent:{record:"Record consent",kinds:"Kinds given",methodTitle:"How it was given",sourceTitle:"Who gave it",day:"Date given",note:"Note",notePlaceholder:"Referring clinic and the like \u2014 do not write anything sensitive",submit:"Save",allTaken:"All three kinds are already on record. Revoke one first to record it again.",kind:{personal:"General personal data",sensitive:"Sensitive data (hearing, diagnosis)",marketing:"Marketing messages"},method:{paper:"On paper",verbal:"Spoken",electronic:"Electronic"},source:{self:"The customer",guardian:"A guardian",referral:"A referring body"}}},$u={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},Hu={input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply"},Gu={showN:"Show {{n}}"},Wu={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."}},Vu={newBadge:"Newly created",publishedBadge:"Published",sharedBadge:"Shared"},Uu={title:"Key Words",empty:"No key words available."},Yu={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",caption:"Form",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",topInfo:"Header",bottomInfo:"Footer",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",copyItem:"Duplicate",copyItemAria:"Duplicate the word in cell {{n}}",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_one:"{{count}} word",itemCount_other:"{{count}} words",deleteAriaLabel:"Delete {{name}}",viewLabel:"View as",sortLabel:"Sort by",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},publisherFilter:"Show only tables by {{name}}",groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",markName:{o:"Correct",triangle:"Partial",x:"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 \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse they appear when you hover the cell; with a keyboard, when focus reaches it.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved_one:"Saved {{count}} mark for {{name}}.",saved_other:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage_one:"Builds a new table from the {{count}} cell {{name}} got wrong or partial. Correct ones are left out.",reviewMessage_other:"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_one:"Created \u201C{{name}}\u201D \u2014 {{count}} cell.",reviewCreated_other:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage_one:"You marked {{count}} cell but have not saved. Leaving discards it.",discardMessage_other:"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"},thumbMore:"+{{count}}",replaceItem:"Other words",replacePair:"Other pairs",replaceItemAria:"Swap cell {{n}} only",replacePairAria:"Swap pair {{n}} only",thumbMoreAria_one:"1 more cell: {{words}}",thumbMoreAria_other:"{{count}} more cells: {{words}}",pickForm:"Other forms",pickFormAria:"Change the form in cell {{n}}",pickFormBaseAria:"Change the form of the base word"},zu={filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Difficulty",grade:"Grade {{n}}",age:"Age {{n}}",agePlus:"Age {{n}}+",ageRange:"Age {{from}}\u2013{{to}}",difficultyInfoAge:"Age 3\u20137: the easiest words (grade 1), split by age.",difficultyInfoGrade:"Grades 2\u20134: harder words, not split by age.",difficultyInfoNone:"None: words with no difficulty assigned.",difficultyInfoBandAge:"{{ages}}: {{grade}} words, split by age.",difficultyInfoBandAgeOne:"{{ages}}: {{grade}} words.",difficultyInfoBandGrade:"{{grade}}: words for {{ages}}.",difficultyInfoBandAgeNamed:"{{ages}}: words split by age.",gradeNone:"None",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",field:"Semantic Category",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"},Ku={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removePairFor:"Remove the pair {{name}}",removeWord:"Remove word",removeWordFor:"Remove {{name}}"},qu={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"}},Ju={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant",other:"Other"}},Xu={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"}},Qu={phonemeSelect:{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}}",countLabel:"Number of phonemes",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:["Level 1 \u2014 everyday vocabulary acquired before school age and used for life","Level 2 \u2014 difficulty of grades 1\u20132","Level 3 \u2014 difficulty of grades 3\u20134","Level 4 \u2014 difficulty of grades 5\u20136","No level \u2014 frequent everyday words outside the national standard list, plus coinages and loanwords"],selectLabel:"Select",onlyHasImage:"Only words with images",onlyHighUsage:"High-use words only",onlySameStructure:"Only same phoneme structure"},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."]},Zu={lead:`IHAB builds trust
|
|
6
6
|
through sound
|
|
7
|
-
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",bizNo:"Business no.",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Sicheong-gil, Chuncheon, Gangwon, Korea",bizNoValue:"526-81-02926"},el={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},tl={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount_one:"Downloading {{n}} word",downloadingCount_other:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},nl={clearAriaLabel:"Clear input",showPassword:"Show password"},ol={ariaLabel:"Select tab"},rl={ariaLabel:"Tabs"},al={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},ul={ariaLabel:"User avatar"},ll={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"}},il={weekly:{title:"Weekly Training",daily:"Daily Listening"},homework:{title:"Homework Progress",totalRate:"Overall rate",done:"Done"},today:{tooltipTotal:"Total",tooltipDone:"Done"},visit:{title:"Linked Visit Records"},detail:"Details",detailFor:"{{name}} details"},sl={time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"}},cl={steps:"Step {{current}} of {{total}}"},dl={skippedOnly_one:"{{n}} older record was excluded \u2014 it does not say what was answered.",skippedOnly_other:"{{n}} older records were excluded \u2014 they do not say what was answered.",runs_one:"{{count}} run",runs_other:"{{count}} runs"},fl={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},gl={viewWords:"Words"},ml={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},pl={chooseDate:"Choose a date",selectYear:"Select year",selectMonth:"Select month"},Cl={previewRegion:"Report preview \u2014 scrollable sideways"},hl={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},yl={place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},bl={clearSelection:"Clear selection"},Sl={showResult:"Show {{type}} result"},wl={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},El={loading:"Loading"},Al={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Tl={ariaLabel:"Breadcrumb"},_l={list:"Folders",open_one:"Open folder {{name}}, {{count}} item",open_other:"Open folder {{name}}, {{count}} items",menu:"{{name}} folder menu",placeMenu:"{{name}} menu",tree:"Show folder structure",fold:"Collapse {{name}}",unfold:"Expand {{name}}",add:{title:"Add Folder",sub:"Enter a name for the new folder.",placeholder:"Folder name"}},Dl={empty:"No items yet."},Bl={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},
|
|
7
|
+
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",bizNo:"Business no.",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Sicheong-gil, Chuncheon, Gangwon, Korea",bizNoValue:"526-81-02926"},el={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},tl={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount_one:"Downloading {{n}} word",downloadingCount_other:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},nl={clearAriaLabel:"Clear input",showPassword:"Show password"},ol={ariaLabel:"Select tab"},rl={ariaLabel:"Tabs"},al={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},ul={ariaLabel:"User avatar"},ll={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"}},il={weekly:{title:"Weekly Training",daily:"Daily Listening"},homework:{title:"Homework Progress",totalRate:"Overall rate",done:"Done"},today:{tooltipTotal:"Total",tooltipDone:"Done"},visit:{title:"Linked Visit Records"},detail:"Details",detailFor:"{{name}} details"},sl={time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"}},cl={steps:"Step {{current}} of {{total}}"},dl={skippedOnly_one:"{{n}} older record was excluded \u2014 it does not say what was answered.",skippedOnly_other:"{{n}} older records were excluded \u2014 they do not say what was answered.",runs_one:"{{count}} run",runs_other:"{{count}} runs"},fl={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},gl={viewWords:"Words"},ml={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},pl={chooseDate:"Choose a date",selectYear:"Select year",selectMonth:"Select month"},Cl={previewRegion:"Report preview \u2014 scrollable sideways"},hl={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},yl={place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},bl={clearSelection:"Clear selection"},Sl={showResult:"Show {{type}} result"},wl={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},El={loading:"Loading"},Al={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Tl={ariaLabel:"Breadcrumb"},_l={list:"Folders",open_one:"Open folder {{name}}, {{count}} item",open_other:"Open folder {{name}}, {{count}} items",menu:"{{name}} folder menu",placeMenu:"{{name}} menu",tree:"Show folder structure",fold:"Collapse {{name}}",unfold:"Expand {{name}}",add:{title:"Add Folder",sub:"Enter a name for the new folder.",placeholder:"Folder name"}},Dl={empty:"No items yet."},Bl={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},sg={common:Du,calendar:Bu,passCard:vu,rating:Nu,colorPicker:Ou,dropdown:Lu,accordion:Ru,header:Iu,nav:Mu,settings:Pu,usage:ku,account:xu,training:Fu,customers:ju,payment:$u,coupons:Hu,visits:Gu,trainingType:Wu,myWordTable:Vu,keyWords:Uu,wordTable:Yu,wordSearch:zu,wordPrint:Ku,topic:qu,device:Ju,manager:Xu,wordPairs:Qu,footer:Zu,date:el,wordData:tl,textField:nl,segmentedControl:ol,tabs:rl,fileUpload:al,avatar:ul,myHomework:ll,trainingStatus:il,store:sl,progress:cl,trainingMiss:dl,table:fl,wordScore:gl,topBanner:ml,datePicker:pl,report:Cl,tooltip:hl,phonemeProfile:yl,bulkBar:bl,debug:Sl,badge:wl,loader:El,soundCompass:Al,breadcrumb:Tl,folder:_l,board:Dl,promoBannerBg:Bl},cg=Object.freeze({__proto__:null,accordion:Ru,account:xu,avatar:ul,badge:wl,board:Dl,breadcrumb:Tl,bulkBar:bl,calendar:Bu,colorPicker:Ou,common:Du,coupons:Hu,customers:ju,date:el,datePicker:pl,debug:Sl,default:sg,device:Ju,dropdown:Lu,fileUpload:al,folder:_l,footer:Zu,header:Iu,keyWords:Uu,loader:El,manager:Xu,myHomework:ll,myWordTable:Vu,nav:Mu,passCard:vu,payment:$u,phonemeProfile:yl,progress:cl,promoBannerBg:Bl,rating:Nu,report:Cl,segmentedControl:ol,settings:Pu,soundCompass:Al,store:sl,table:fl,tabs:rl,textField:nl,tooltip:hl,topBanner:ml,topic:qu,training:Fu,trainingMiss:dl,trainingStatus:il,trainingType:Wu,usage:ku,visits:Gu,wordData:tl,wordPairs:Qu,wordPrint:Ku,wordScore:gl,wordSearch:zu,wordTable:Yu});exports.CACHE_GROUPS=Vr,exports.CORE_VERSION=ac,exports.DEFAULT_PAGE_SIZES=Eu,exports.DocumentTitleSuppressContext=Ir,exports.EMPTY_COMPOSITION=Po,exports.MediaQueryOverrideContext=Or,exports.NO_CODA=xe,exports.SYLLABLE_MIN=Fe,exports.VAP_PAGE_SIZE_OPTIONS=pt,exports.buildGradeSection=$a,exports.buildPartOfSpeechSection=Ha,exports.buildPositionSection=fd,exports.buildSelectSection=dd,exports.buildSyllableSection=cd,exports.buildWordTypeSection=Ga,exports.charToPronValue=ka,exports.convertComposition=Fa,exports.fmtBytes=Ai,exports.gradeBandDescriptions=ko,exports.gradeDescriptions=Ua,exports.lsBytes=Ur,exports.meaningKey=Uo,exports.normalizeWordAttributeFilter=Tc,exports.pronToCharValue=xa,exports.syllableToFilter=Ro,exports.toWordAttributeFilterCodes=Eo,exports.today=kt,exports.toggleAttributeFilter=gd,exports.useAnchoredMenu=Jd,exports.useBackClosable=og,exports.useCacheManagement=Ti,exports.useCardDragToGroup=Yf,exports.useClosingDelay=ig,exports.useCodeCountdown=rg,exports.useDailyTrainingSelection=kd,exports.useDelayedHoverAnchor=$d,exports.useDeviceManagement=Fi,exports.useDocumentTitle=Xl,exports.useEscToClose=xd,exports.useFolderBrowse=Vf,exports.useFontScale=Ul,exports.useHoverAnchor=jd,exports.useInlineSvg=xf,exports.useListControls=Gd,exports.useMediaQuery=Jl,exports.useOnline=Qf,exports.useOutsideClose=Zf,exports.usePageResetOnChange=eu,exports.usePageSizeOptions=zf,exports.usePagedList=Hd,exports.usePasswordChange=ri,exports.useRelativeDay=ti,exports.useSaveOnHide=Kf,exports.useScreenWakeLock=qf,exports.useSoundCompassExam=Xd,exports.useTablePaging=ki,exports.useTableSort=xi,exports.useToastState=Wd,exports.useTrainingTypeLabels=qd,exports.useVisitAllPanel=Oi,exports.useVisitHistory=Bi,exports.useVisitSchedule=Ni,exports.useWindowEvent=no,exports.useWordAttributeFilterKeys=ja,exports.useWordDataStats=_i,exports.useWordMeanings=Fd,exports.useWordTrainingDataGeneration=_d,exports.useWordTrainingFilter=Ad,exports.valueToJamos=We,exports.wordAttributeFilterFromCodes=Ao;
|