@ihabdevteam/core 0.148.0 → 0.149.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.
@@ -804,8 +804,8 @@
804
804
  * This source code is licensed under the ISC license.
805
805
  * See the LICENSE file in the root directory of this source tree.
806
806
  */const uh=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],dh=G("thumbs-up",uh),Go={"alert-triangle":Eo,"align-start-vertical":Uc,anchor:km,armchair:Nm,"arrow-down":Kc,"arrow-left":Zc,"arrow-right":Jc,"arrow-right-left":eu,"arrow-up-a-z":Dm,"audio-lines":nu,baby:ru,ban:su,"bar-chart-2":Tm,bell:lu,"book-marked":uu,"book-open":pu,"bow-arrow":hu,braces:Cu,bug:bu,calendar:Wo,"calendar-check":vu,"calendar-days":_u,camera:ku,car:Mm,"chart-column":Nu,"chart-line":Du,"chart-pie":Tu,check:Mo,"chevron-down":qo,"chevron-left":Lo,"chevron-right":$o,"chevron-up":Uo,circle:ah,"clipboard-list":$u,coffee:$m,combine:Pu,copy:Fu,"chevrons-left-right-ellipsis":Hu,"credit-card":zu,database:Ro,diff:Uu,download:Po,ear:Yu,edit:Xu,"edit-2":Qu,"edit-3":td,ellipsis:Io,eraser:rd,"external-link":sd,eye:ld,"file-text":ud,"flip-horizontal":pd,"folder-open":hd,"folder-plus":Cd,gamepad:bd,"gamepad-2":Pm,gavel:vd,"git-merge":Fo,globe:wd,headphones:Ad,heart:Bd,home:Sd,inbox:Fm,info:jd,"key-round":Md,landmark:$d,layers:Pd,"layout-dashboard":Fd,leaf:Hd,lightbulb:zd,link:qd,"link-2":Gd,"link-2-off":Yd,list:Xd,"list-checks":Qd,"list-ordered":tp,"list-tree":Hm,loader:ap,lock:op,"log-out":ip,mail:cp,"map-pin":dp,menu:ih,"message-circle":mp,"message-circle-question-mark":fp,"message-square":gp,"message-square-more":zm,"message-square-text":yp,minus:qm,"minus-circle":xp,moon:ch,"more-horizontal":Io,package:wp,palette:Ap,"party-popper":Bp,pause:Sp,pencil:jp,phone:Mp,play:$p,"play-circle":Pp,plus:Fp,printer:Hp,"refresh-cw":zp,repeat:qp,replace:Gp,rocket:Yp,"rotate-ccw":Xp,"rotate-cw":Qp,salad:t1,"scan-search":a1,search:i1,"circle-alert":Oo,"alert-circle":Oo,"check-circle":Ho,scissors:c1,"search-x":d1,send:m1,settings:f1,"share-2":Gm,"shield-check":g1,"shopping-cart":y1,shuffle:x1,"skip-back":w1,"skip-forward":A1,sparkles:Ym,square:B1,star:S1,store:j1,"sun-medium":M1,table:$1,"table-2":P1,tag:F1,terminal:H1,"text-cursor-input":z1,"text-initial":q1,"thumbs-up":dh,ticket:G1,trash:X1,triangle:oh,"trash-2":Y1,"trending-up":Q1,"triangle-alert":Eo,trophy:tm,type:Xm,unlink:am,upload:om,user:ar,"user-plus":lm,"user-round":um,"user-round-check":pm,users:hm,"users-round":Cm,volume:Qm,"volume-2":Vo,wrench:ym,x:zo,zap:_m};function ph(e){return Go[e]??null}const Ko=new Set;function mh(e){return So&&!(e in Go)&&!Ko.has(e)&&(Ko.add(e),console.warn(`[ihabdevteam-core] lucide \uC544\uC774\uCF58 '${e}' \uC774 \uC815\uC801 \uBAA9\uB85D\uC5D0 \uC5C6\uC5B4 \uB80C\uB354\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. utils/lucideIconSet.ts \uC758 STATIC_LUCIDE_ICONS \uC5D0 \uCD94\uAC00\uD558\uC138\uC694.`)),Promise.resolve(null)}const hh=e=>e.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Za-z])([0-9])/g,"$1-$2").replace(/[_ ]+/g,"-").toLowerCase();function fh(e){const n=e.toLowerCase();if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")||e.includes("/assets/")||/\.(png|jpe?g|gif|webp|avif|bmp|ico)$/i.test(n))return null;const a=(e.split("/").pop()||"").replace(/\.svg$/,"");return a?hh(a):null}const Yo=new Map;function Ch(e){const n=typeof e=="string"?fh(e):null,a=n?ph(n)??Yo.get(n)??null:null,[r,o]=s.useState(null);return s.useEffect(()=>{if(!n||a)return;let i=!1;return mh(n).then(l=>{Yo.set(n,l),i||o(l)}),()=>{i=!0}},[n,a]),a??r}/*! @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 Zo(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,r=Array(n);a<n;a++)r[a]=e[a];return r}function gh(e){if(Array.isArray(e))return e}function bh(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,o,i,l,c=[],u=!0,d=!1;try{if(i=(a=a.call(e)).next,n!==0)for(;!(u=(r=i.call(a)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(p){d=!0,o=p}finally{try{if(!u&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(d)throw o}}return c}}function yh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
807
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vh(e,n){return gh(e)||bh(e,n)||xh(e,n)||yh()}function xh(e,n){if(e){if(typeof e=="string")return Zo(e,n);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Zo(e,n):void 0}}const Xo=Object.entries,Jo=Object.setPrototypeOf,_h=Object.isFrozen,wh=Object.getPrototypeOf,kh=Object.getOwnPropertyDescriptor;let Ct=Object.freeze,bt=Object.seal,Vn=Object.create,Qo=typeof Reflect<"u"&&Reflect,rr=Qo.apply,or=Qo.construct;Ct||(Ct=function(n){return n}),bt||(bt=function(n){return n}),rr||(rr=function(n,a){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return n.apply(a,o)}),or||(or=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return new n(...r)});const Tn=pt(Array.prototype.forEach),Ah=pt(Array.prototype.lastIndexOf),es=pt(Array.prototype.pop),na=pt(Array.prototype.push),Nh=pt(Array.prototype.splice),zn=Array.isArray,aa=pt(String.prototype.toLowerCase),sr=pt(String.prototype.toString),ts=pt(String.prototype.match),ra=pt(String.prototype.replace),ns=pt(String.prototype.indexOf),Bh=pt(String.prototype.trim),Dh=pt(Number.prototype.toString),Sh=pt(Boolean.prototype.toString),as=typeof BigInt>"u"?null:pt(BigInt.prototype.toString),rs=typeof Symbol>"u"?null:pt(Symbol.prototype.toString),Rt=pt(Object.prototype.hasOwnProperty),oa=pt(Object.prototype.toString),At=pt(RegExp.prototype.test),jn=Th(TypeError);function pt(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return rr(e,n,r)}}function Th(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return or(e,a)}}function Ze(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:aa;if(Jo&&Jo(e,null),!zn(n))return e;let r=n.length;for(;r--;){let o=n[r];if(typeof o=="string"){const i=a(o);i!==o&&(_h(n)||(n[r]=i),o=i)}e[o]=!0}return e}function jh(e){for(let n=0;n<e.length;n++)Rt(e,n)||(e[n]=null);return e}function Ht(e){const n=Vn(null);for(const r of Xo(e)){var a=vh(r,2);const o=a[0],i=a[1];Rt(e,o)&&(zn(i)?n[o]=jh(i):i&&typeof i=="object"&&i.constructor===Object?n[o]=Ht(i):n[o]=i)}return n}function Eh(e){switch(typeof e){case"string":return e;case"number":return Dh(e);case"boolean":return Sh(e);case"bigint":return as?as(e):"0";case"symbol":return rs?rs(e):"Symbol()";case"undefined":return oa(e);case"function":case"object":{if(e===null)return oa(e);const n=e,a=Xt(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:oa(r)}return oa(e)}default:return oa(e)}}function Xt(e,n){for(;e!==null;){const r=kh(e,n);if(r){if(r.get)return pt(r.get);if(typeof r.value=="function")return pt(r.value)}e=wh(e)}function a(){return null}return a}function Mh(e){try{return At(e,""),!0}catch{return!1}}const os=Ct(["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"]),ir=Ct(["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"]),lr=Ct(["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"]),Lh=Ct(["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"]),cr=Ct(["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"]),$h=Ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ss=Ct(["#text"]),is=Ct(["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"]),ur=Ct(["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"]),ls=Ct(["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"]),Aa=Ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Rh=bt(/{{[\w\W]*|^[\w\W]*}}/g),Ph=bt(/<%[\w\W]*|^[\w\W]*%>/g),Ih=bt(/\${[\w\W]*/g),Fh=bt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Oh=bt(/^aria-[\-\w]+$/),cs=bt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Hh=bt(/^(?:\w+script|data):/i),Vh=bt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zh=bt(/^html$/i),Wh=bt(/^[a-z][.\w]*(-[.\w]+)+$/i),us=bt(/<[/\w!]/g),ds=bt(/<[/\w]/g),qh=bt(/<\/no(script|embed|frames)/i),Uh=bt(/\/>/i),Vt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ps=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Gh=Ct(Ze({},ps)),Kh=(function(){const e={};return Tn(ps,n=>{e[n]=bt(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),Ct(e)})(),Yh=function(){return typeof window>"u"?null:window},Zh=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";a&&a.hasAttribute(o)&&(r=a.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return n.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ms=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},vn=function(n,a,r,o){return Rt(n,a)&&zn(n[a])?Ze(o.base?Ht(o.base):{},n[a],o.transform):r},dr=function(n,a,r){const o=Rt(n,a)?n[a]:void 0;return o&&typeof o=="object"?Ht(o):r()};function hs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yh();const n=he=>hs(he);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==Vt.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,o=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,h=c.prototype,C=Xt(h,"cloneNode"),y=Xt(h,"remove"),f=Xt(h,"nextSibling"),v=Xt(h,"childNodes"),g=Xt(h,"parentNode"),x=Xt(h,"shadowRoot"),_=Xt(h,"attributes"),b=l&&l.prototype?Xt(l.prototype,"nodeType"):null,A=l&&l.prototype?Xt(l.prototype,"nodeName"):null,w=l&&l.prototype?Xt(l.prototype,"ownerDocument"):null,D=function(S){return b?b(S):S.nodeType},B=function(S){return A?A(S):S.nodeName};if(typeof i=="function"){const he=a.createElement("template");he.content&&he.content.ownerDocument&&(a=he.content.ownerDocument)}let k,N="",I,O=!1,E=0;const H=function(){if(E>0)throw jn('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.')},T=function(S){H(),E++;try{return k.createHTML(S)}finally{E--}},K=function(S){H(),E++;try{return k.createScriptURL(S)}finally{E--}},W=function(){return O||(I=Zh(m,o),O=!0),I},V=a,U=V.implementation,re=V.createNodeIterator,P=V.createDocumentFragment,R=V.getElementsByTagName,M=r.importNode;let L=ms();n.isSupported=typeof Xo=="function"&&typeof g=="function"&&U&&U.createHTMLDocument!==void 0;const z=Rh,$=Ph,j=Ih,F=Fh,se=Oh,ne=Hh,ee=Vh,ie=Wh;let Ce=cs,Z=null;const oe=Ze({},[...os,...ir,...lr,...cr,...ss]);let X=null;const ge=Ze({},[...is,...ur,...ls,...Aa]);let _e=Object.seal(Vn(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}})),Se=null,ue=null;const be=Object.seal(Vn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ae=!0,Q=!0,te=!1,ke=!0,Te=!1,ze=!0,Le=!1,We=!1,Re=null,et=null,Ke=!1,Ge=!1,ye=!1,Oe=!1,Ee=!0,Pe=!1;const qe="user-content-";let Ye=!0,ct=!1,ut={},dt=null;const Xe=Ze({},["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 tt=null;const He=Ze({},["audio","video","img","source","image","track"]);let nt=null;const Je=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",Me="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let yt=Qe,Gt=!1,mt=null;const _t=Ze({},[rt,Me,Qe],sr),zt=Ct(["mi","mo","mn","ms","mtext"]);let Kt=Ze({},zt);const wt=Ct(["annotation-xml"]);let ht=Ze({},wt);const Tt=Ze({},["title","style","font","a","script"]);let It=null;const yn=["application/xhtml+xml","text/html"],Sn="text/html";let at=null,Wt=null;const en=a.createElement("form"),vt=function(S){return S instanceof RegExp||S instanceof Function},Ft=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Wt&&Wt===S)return;(!S||typeof S!="object")&&(S={}),S=Ht(S),It=yn.indexOf(S.PARSER_MEDIA_TYPE)===-1?Sn:S.PARSER_MEDIA_TYPE,at=It==="application/xhtml+xml"?sr:aa,Z=vn(S,"ALLOWED_TAGS",oe,{transform:at}),X=vn(S,"ALLOWED_ATTR",ge,{transform:at}),mt=vn(S,"ALLOWED_NAMESPACES",_t,{transform:sr}),nt=vn(S,"ADD_URI_SAFE_ATTR",Je,{transform:at,base:Je}),tt=vn(S,"ADD_DATA_URI_TAGS",He,{transform:at,base:He}),dt=vn(S,"FORBID_CONTENTS",Xe,{transform:at}),Se=vn(S,"FORBID_TAGS",Ht({}),{transform:at}),ue=vn(S,"FORBID_ATTR",Ht({}),{transform:at}),ut=Rt(S,"USE_PROFILES")?S.USE_PROFILES&&typeof S.USE_PROFILES=="object"?Ht(S.USE_PROFILES):S.USE_PROFILES:!1,Ae=S.ALLOW_ARIA_ATTR!==!1,Q=S.ALLOW_DATA_ATTR!==!1,te=S.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=S.SAFE_FOR_TEMPLATES||!1,ze=S.SAFE_FOR_XML!==!1,Le=S.WHOLE_DOCUMENT||!1,Ge=S.RETURN_DOM||!1,ye=S.RETURN_DOM_FRAGMENT||!1,Oe=S.RETURN_TRUSTED_TYPE||!1,Ke=S.FORCE_BODY||!1,Ee=S.SANITIZE_DOM!==!1,Pe=S.SANITIZE_NAMED_PROPS||!1,Ye=S.KEEP_CONTENT!==!1,ct=S.IN_PLACE||!1,Ce=Mh(S.ALLOWED_URI_REGEXP)?S.ALLOWED_URI_REGEXP:cs,yt=typeof S.NAMESPACE=="string"?S.NAMESPACE:Qe,Kt=dr(S,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ze({},zt)),ht=dr(S,"HTML_INTEGRATION_POINTS",()=>Ze({},wt));const q=dr(S,"CUSTOM_ELEMENT_HANDLING",()=>Vn(null));if(_e=Vn(null),Rt(q,"tagNameCheck")&&vt(q.tagNameCheck)&&(_e.tagNameCheck=q.tagNameCheck),Rt(q,"attributeNameCheck")&&vt(q.attributeNameCheck)&&(_e.attributeNameCheck=q.attributeNameCheck),Rt(q,"allowCustomizedBuiltInElements")&&typeof q.allowCustomizedBuiltInElements=="boolean"&&(_e.allowCustomizedBuiltInElements=q.allowCustomizedBuiltInElements),bt(_e),Te&&(Q=!1),ye&&(Ge=!0),ut&&(Z=Ze({},ss),X=Vn(null),ut.html===!0&&(Ze(Z,os),Ze(X,is)),ut.svg===!0&&(Ze(Z,ir),Ze(X,ur),Ze(X,Aa)),ut.svgFilters===!0&&(Ze(Z,lr),Ze(X,ur),Ze(X,Aa)),ut.mathMl===!0&&(Ze(Z,cr),Ze(X,ls),Ze(X,Aa))),be.tagCheck=null,be.attributeCheck=null,Rt(S,"ADD_TAGS")&&(typeof S.ADD_TAGS=="function"?be.tagCheck=S.ADD_TAGS:zn(S.ADD_TAGS)&&(Z===oe&&(Z=Ht(Z)),Ze(Z,S.ADD_TAGS,at))),Rt(S,"ADD_ATTR")&&(typeof S.ADD_ATTR=="function"?be.attributeCheck=S.ADD_ATTR:zn(S.ADD_ATTR)&&(X===ge&&(X=Ht(X)),Ze(X,S.ADD_ATTR,at))),Rt(S,"ADD_FORBID_CONTENTS")&&zn(S.ADD_FORBID_CONTENTS)&&(dt===Xe&&(dt=Ht(dt)),Ze(dt,S.ADD_FORBID_CONTENTS,at)),Ye&&(Z["#text"]=!0),Le&&Ze(Z,["html","head","body"]),Z.table&&(Ze(Z,["tbody"]),delete Se.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ce=k;k=S.TRUSTED_TYPES_POLICY;try{N=T("")}catch(we){throw k=ce,we}}else S.TRUSTED_TYPES_POLICY===null?(k=void 0,N=""):(k===void 0&&(k=W()),k&&typeof N=="string"&&(N=T("")));Ct&&Ct(S),Wt=S},tn=Ze({},[...ir,...lr,...Lh]),nn=Ze({},[...cr,...$h]),ln=function(S,q,ce){return q.namespaceURI===Qe?S==="svg":q.namespaceURI===rt?S==="svg"&&(ce==="annotation-xml"||Kt[ce]):!!tn[S]},cn=function(S,q,ce){return q.namespaceURI===Qe?S==="math":q.namespaceURI===Me?S==="math"&&ht[ce]:!!nn[S]},Yt=function(S,q,ce){return q.namespaceURI===Me&&!ht[ce]||q.namespaceURI===rt&&!Kt[ce]?!1:!nn[S]&&(Tt[S]||!tn[S])},qt=function(S){let q=g(S);(!q||!q.tagName)&&(q={namespaceURI:yt,tagName:"template"});const ce=aa(S.tagName),we=aa(q.tagName);return mt[S.namespaceURI]?S.namespaceURI===Me?ln(ce,q,we):S.namespaceURI===rt?cn(ce,q,we):S.namespaceURI===Qe?Yt(ce,q,we):!!(It==="application/xhtml+xml"&&mt[S.namespaceURI]):!1},gt=function(S){na(n.removed,{element:S});try{g(S).removeChild(S)}catch{if(y(S),!g(S))throw jn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},an=function(S,q,ce){try{S.removeAttributeNode(q)}catch{try{S.removeAttribute(ce)}catch{}}},Ot=function(S){pe(S);const q=v(S);if(q){const we=[];Tn(q,De=>{na(we,De)}),Tn(we,De=>{try{y(De)}catch{}})}const ce=_(S);if(ce)for(let we=ce.length-1;we>=0;--we){const De=ce[we],Fe=De&&De.name;typeof Fe=="string"&&an(S,De,Fe)}},jt=function(S,q,ce){if(!ce)try{ce=q.getAttributeNode(S)}catch{ce=null}na(n.removed,{attribute:ce||null,from:q});try{ce?q.removeAttributeNode(ce):q.removeAttribute(S)}catch{try{q.removeAttribute(S)}catch{}}if(S==="is")if(Ge||ye)try{gt(q)}catch{}else try{q.setAttribute(S,"")}catch{}},ae=function(S){const q=_(S);if(q)for(let ce=q.length-1;ce>=0;--ce){const we=q[ce],De=we&&we.name;typeof De!="string"||X[at(De)]||an(S,we,De)}},pe=function(S){const q=[S];for(;q.length>0;){const ce=q.pop();D(ce)===Vt.element&&ae(ce);const De=v(ce);if(De)for(let Fe=De.length-1;Fe>=0;--Fe)q.push(De[Fe])}},J=function(S,q){return ze?S==="patchsrc"?!0:S==="for"&&q!=="label"&&q!=="output":!1},me=function(S){if(!ze)return;const q=[S];for(;q.length>0;){const ce=q.pop(),we=D(ce);if(we===Vt.processingInstruction||we===Vt.comment&&At(ds,ce.data)){try{y(ce)}catch{}continue}if(we===Vt.element){const Fe=ce,ot=at(B(ce));try{Fe.hasAttribute&&Fe.hasAttribute("patchsrc")&&Fe.removeAttribute("patchsrc"),Fe.hasAttribute&&Fe.hasAttribute("for")&&J("for",ot)&&Fe.removeAttribute("for")}catch{}}const De=v(ce);if(De)for(let Fe=De.length-1;Fe>=0;--Fe)q.push(De[Fe])}},xe=function(S){let q=null,ce=null;if(Ke)S="<remove></remove>"+S;else{const Fe=ts(S,/^[\r\n\t ]+/);ce=Fe&&Fe[0]}It==="application/xhtml+xml"&&yt===Qe&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const we=k?T(S):S;if(yt===Qe)try{q=new p().parseFromString(we,It)}catch{}if(!q||!q.documentElement){q=U.createDocument(yt,"template",null);try{q.documentElement.innerHTML=Gt?N:we}catch{}}const De=q.body||q.documentElement;return S&&ce&&De.insertBefore(a.createTextNode(ce),De.childNodes[0]||null),yt===Qe?R.call(q,Le?"html":"body")[0]:Le?q.documentElement:De},Ne=function(S){const q=w?w(S):S.ownerDocument;return re.call(q||S,S,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ie=function(S){return S=ra(S,z," "),S=ra(S,$," "),S=ra(S,j," "),S},Y=function(S){var q;S.normalize();const ce=w?w(S):S.ownerDocument,we=re.call(ce||S,S,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let De=we.nextNode();for(;De;)De.data=Ie(De.data),De=we.nextNode();const Fe=(q=S.querySelectorAll)===null||q===void 0?void 0:q.call(S,"template");Fe&&Tn(Fe,ot=>{Be(ot.content)&&Y(ot.content)})},fe=function(S){const q=A?A(S):null;return typeof q!="string"||at(q)!=="form"?!1:typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||S.attributes!==_(S)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function"||S.nodeType!==b(S)||S.childNodes!==v(S)},Be=function(S){if(!b||typeof S!="object"||S===null)return!1;try{return b(S)===Vt.documentFragment}catch{return!1}},$e=function(S){if(!b||typeof S!="object"||S===null)return!1;try{return typeof b(S)=="number"}catch{return!1}};function je(he,S,q){he.length!==0&&Tn(he,ce=>{ce.call(n,S,q,Wt)})}const Ve=function(S,q){return!!(ze&&S.hasChildNodes()&&!$e(S.firstElementChild)&&At(us,S.textContent)&&At(us,S.innerHTML)||ze&&S.namespaceURI===Qe&&Gh[q]&&($e(S.firstElementChild)||typeof S.textContent=="string"&&At(Kh[q],S.textContent))||S.nodeType===Vt.processingInstruction||ze&&S.nodeType===Vt.comment&&At(ds,S.data))},ft=function(S,q){if(S instanceof RegExp)return At(S,q);if(S instanceof Function){for(var ce=arguments.length,we=new Array(ce>2?ce-2:0),De=2;De<ce;De++)we[De-2]=arguments[De];return!!S(q,...we)}return!1},Nt=function(S,q,ce){if(!Se[q]&&dn(q)&&ft(_e.tagNameCheck,q))return!1;if(Ye&&!dt[q]){const we=g(S),De=v(S);if(De&&we){const Fe=De.length;for(let ot=Fe-1;ot>=0;--ot){const st=S===ce?C(De[ot],!0):De[ot];we.insertBefore(st,f(S))}}}return gt(S),!0},kt=function(S,q,ce,we){return S.length===0?q:q===ce||q===we?Ht(q):q},rn=function(S,q){return S===q||g(S)!==null?!1:(ct&&pe(S),!0)},Zt=function(S,q){if(je(L.beforeSanitizeElements,S,null),rn(S,q))return!0;if(fe(S))return gt(S),!0;const ce=at(B(S));if(Z=kt(L.uponSanitizeElement,Z,oe,Re),je(L.uponSanitizeElement,S,{tagName:ce,allowedTags:Z}),rn(S,q))return!0;if(Ve(S,ce))return gt(S),!0;if(Se[ce]||!(be.tagCheck instanceof Function&&be.tagCheck(ce))&&!Z[ce]){const De=Nt(S,ce,q);return De===!1&&je(L.afterSanitizeElements,S,null),De}if(D(S)===Vt.element&&!qt(S)||(ce==="noscript"||ce==="noembed"||ce==="noframes")&&At(qh,S.innerHTML))return gt(S),!0;if(Te&&S.nodeType===Vt.text){const De=Ie(S.textContent);S.textContent!==De&&(na(n.removed,{element:S.cloneNode()}),S.textContent=De)}return je(L.afterSanitizeElements,S,null),!1},Et=function(S,q,ce){if(ue[q]||J(q,S)||Ee&&(q==="id"||q==="name")&&(ce in a||ce in en))return!1;const we=X[q]||be.attributeCheck instanceof Function&&be.attributeCheck(q,S);return Q&&At(F,q)||Ae&&At(se,q)?!0:we?nt[q]||At(Ce,ra(ce,ee,""))||(q==="src"||q==="xlink:href"||q==="href")&&S!=="script"&&ns(ce,"data:")===0&&tt[S]||te&&!At(ne,ra(ce,ee,""))?!0:!ce:dn(S)&&ft(_e.tagNameCheck,S)&&ft(_e.attributeNameCheck,q,S)||q==="is"&&_e.allowCustomizedBuiltInElements&&ft(_e.tagNameCheck,ce)},un=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),dn=function(S){return!un[aa(S)]&&At(ie,S)},Qa=function(S,q,ce,we){if(k&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!ce)switch(m.getAttributeType(S,q)){case"TrustedHTML":return T(we);case"TrustedScriptURL":return K(we)}return we},Rc=function(S,q,ce,we){try{ce?S.setAttributeNS(ce,q,we):S.setAttribute(q,we),fe(S)?gt(S):es(n.removed)}catch{jt(q,S)}},No=function(S){je(L.beforeSanitizeAttributes,S,null);const q=S.attributes;if(!q||fe(S))return;X=kt(L.uponSanitizeAttribute,X,ge,et);const ce={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:X,forceKeepAttr:void 0};let we=q.length;const De=at(S.nodeName);for(;we--;){const Fe=q[we],ot=Fe.name,st=Fe.namespaceURI,Mt=Fe.value,Lt=at(ot),tr=Mt;let Bt=ot==="value"?tr:Bh(tr);if(ce.attrName=Lt,ce.attrValue=Bt,ce.keepAttr=!0,ce.forceKeepAttr=void 0,je(L.uponSanitizeAttribute,S,ce),Bt=ce.attrValue,Pe&&(Lt==="id"||Lt==="name")&&ns(Bt,qe)!==0&&(jt(ot,S,Fe),Bt=qe+Bt),ze&&At(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Bt)){jt(ot,S,Fe);continue}if(Lt==="attributename"&&ts(Bt,"href")){jt(ot,S,Fe);continue}if(!ce.forceKeepAttr){if(!ce.keepAttr){jt(ot,S,Fe);continue}if(!ke&&At(Uh,Bt)){jt(ot,S,Fe);continue}if(Te&&(Bt=Ie(Bt)),!Et(De,Lt,Bt)){jt(ot,S,Fe);continue}Bt=Qa(De,Lt,st,Bt),Bt!==tr&&Rc(S,ot,st,Bt)}}je(L.afterSanitizeAttributes,S,null)},ka=function(S){let q=null;const ce=Ne(S);for(je(L.beforeSanitizeShadowDOM,S,null);q=ce.nextNode();)if(je(L.uponSanitizeShadowNode,q,null),Zt(q,S),No(q),Be(q.content)&&ka(q.content),D(q)===Vt.element){const we=x(q);Be(we)&&(er(we),ka(we))}je(L.afterSanitizeShadowDOM,S,null)},er=function(S){const q=[{node:S,shadow:null}];for(;q.length>0;){const ce=q.pop();if(ce.shadow){ka(ce.shadow);continue}const we=ce.node,Fe=D(we)===Vt.element,ot=v(we);if(ot)for(let st=ot.length-1;st>=0;--st)q.push({node:ot[st],shadow:null});if(Fe){const st=A?A(we):null;if(typeof st=="string"&&at(st)==="template"){const Mt=we.content;Be(Mt)&&q.push({node:Mt,shadow:null})}}if(Fe){const st=x(we);Be(st)&&q.push({node:null,shadow:st},{node:st,shadow:null})}}};return n.sanitize=function(he){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,ce=null,we=null,De=null;if(Gt=!he,Gt&&(he="<!-->"),typeof he!="string"&&!$e(he)&&(he=Eh(he),typeof he!="string"))throw jn("dirty is not a string, aborting");if(!n.isSupported)return he;We?(Z=Re,X=et):Ft(S),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(Z=Ht(Z)),L.uponSanitizeAttribute.length>0&&(X=Ht(X)),n.removed=[];const Fe=ct&&typeof he!="string"&&$e(he);if(Fe){me(he);const Mt=B(he);if(typeof Mt=="string"){const Lt=at(Mt);if(!Z[Lt]||Se[Lt])throw Ot(he),jn("root node is forbidden and cannot be sanitized in-place")}if(fe(he))throw Ot(he),jn("root node is clobbered and cannot be sanitized in-place");try{er(he)}catch(Lt){throw Ot(he),Lt}}else if($e(he))q=xe("<!---->"),ce=q.ownerDocument.importNode(he,!0),ce.nodeType===Vt.element&&ce.nodeName==="BODY"||ce.nodeName==="HTML"?q=ce:q.appendChild(ce),er(ce);else{if(!Ge&&!Te&&!Le&&he.indexOf("<")===-1)return k&&Oe?T(he):he;if(q=xe(he),!q)return Ge?null:Oe?N:""}q&&Ke&&gt(q.firstChild);const ot=Fe?he:q;try{const Mt=Ne(ot);for(;we=Mt.nextNode();)Zt(we,ot),No(we),Be(we.content)&&ka(we.content)}catch(Mt){throw Fe&&(Ot(he),Tn(n.removed,Lt=>{Lt.element&&pe(Lt.element)})),Mt}if(Fe)return Tn(n.removed,Mt=>{Mt.element&&pe(Mt.element)}),Te&&Y(he),he;if(Ge){if(Te&&Y(q),ye)for(De=P.call(q.ownerDocument);q.firstChild;)De.appendChild(q.firstChild);else De=q;return(X.shadowroot||X.shadowrootmode)&&(De=M.call(r,De,!0)),De}let st=Le?q.outerHTML:q.innerHTML;return Le&&Z["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&At(zh,q.ownerDocument.doctype.name)&&(st="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
808
- `+st),Te&&(st=Ie(st)),k&&Oe?T(st):st},n.setConfig=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ft(he),We=!0,Re=Z,et=X},n.clearConfig=function(){Wt=null,We=!1,Re=null,et=null,k=I,N=""},n.isValidAttribute=function(he,S,q){Wt||Ft({});const ce=at(he),we=at(S);return Et(ce,we,q)},n.addHook=function(he,S){typeof S=="function"&&Rt(L,he)&&na(L[he],S)},n.removeHook=function(he,S){if(Rt(L,he)){if(S!==void 0){const q=Ah(L[he],S);return q===-1?void 0:Nh(L[he],q,1)[0]}return es(L[he])}},n.removeHooks=function(he){Rt(L,he)&&(L[he]=[])},n.removeAllHooks=function(){L=ms()},n}var Xh=hs();const Jh=/^(?:[a-z]+:)?\/\//i,Qh="__ihab_core_asset_base_url__";function e0(){return globalThis[Qh]??""}function pr(e){const n=String(e||"").trim();if(!n)return"";if(Jh.test(n)||n.startsWith("data:")||n.startsWith("blob:"))return n;const a=n.startsWith("/")?n:`/${n}`,r=e0();return r?`${r}${a}`:a}const fs="__ihab_core_storage_resolvers__";function sa(){return globalThis[fs]??null}function t0(e){globalThis[fs]=e}let Cs=class extends Error{constructor(n){super(`
807
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vh(e,n){return gh(e)||bh(e,n)||xh(e,n)||yh()}function xh(e,n){if(e){if(typeof e=="string")return Zo(e,n);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Zo(e,n):void 0}}const Xo=Object.entries,Jo=Object.setPrototypeOf,_h=Object.isFrozen,wh=Object.getPrototypeOf,kh=Object.getOwnPropertyDescriptor;let Ct=Object.freeze,bt=Object.seal,Vn=Object.create,Qo=typeof Reflect<"u"&&Reflect,rr=Qo.apply,or=Qo.construct;Ct||(Ct=function(n){return n}),bt||(bt=function(n){return n}),rr||(rr=function(n,a){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return n.apply(a,o)}),or||(or=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return new n(...r)});const Tn=pt(Array.prototype.forEach),Ah=pt(Array.prototype.lastIndexOf),es=pt(Array.prototype.pop),na=pt(Array.prototype.push),Nh=pt(Array.prototype.splice),zn=Array.isArray,aa=pt(String.prototype.toLowerCase),sr=pt(String.prototype.toString),ts=pt(String.prototype.match),ra=pt(String.prototype.replace),ns=pt(String.prototype.indexOf),Bh=pt(String.prototype.trim),Dh=pt(Number.prototype.toString),Sh=pt(Boolean.prototype.toString),as=typeof BigInt>"u"?null:pt(BigInt.prototype.toString),rs=typeof Symbol>"u"?null:pt(Symbol.prototype.toString),Rt=pt(Object.prototype.hasOwnProperty),oa=pt(Object.prototype.toString),At=pt(RegExp.prototype.test),jn=Th(TypeError);function pt(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return rr(e,n,r)}}function Th(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return or(e,a)}}function Ze(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:aa;if(Jo&&Jo(e,null),!zn(n))return e;let r=n.length;for(;r--;){let o=n[r];if(typeof o=="string"){const i=a(o);i!==o&&(_h(n)||(n[r]=i),o=i)}e[o]=!0}return e}function jh(e){for(let n=0;n<e.length;n++)Rt(e,n)||(e[n]=null);return e}function Ht(e){const n=Vn(null);for(const r of Xo(e)){var a=vh(r,2);const o=a[0],i=a[1];Rt(e,o)&&(zn(i)?n[o]=jh(i):i&&typeof i=="object"&&i.constructor===Object?n[o]=Ht(i):n[o]=i)}return n}function Eh(e){switch(typeof e){case"string":return e;case"number":return Dh(e);case"boolean":return Sh(e);case"bigint":return as?as(e):"0";case"symbol":return rs?rs(e):"Symbol()";case"undefined":return oa(e);case"function":case"object":{if(e===null)return oa(e);const n=e,a=Xt(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:oa(r)}return oa(e)}default:return oa(e)}}function Xt(e,n){for(;e!==null;){const r=kh(e,n);if(r){if(r.get)return pt(r.get);if(typeof r.value=="function")return pt(r.value)}e=wh(e)}function a(){return null}return a}function Mh(e){try{return At(e,""),!0}catch{return!1}}const os=Ct(["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"]),ir=Ct(["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"]),lr=Ct(["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"]),Lh=Ct(["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"]),cr=Ct(["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"]),$h=Ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ss=Ct(["#text"]),is=Ct(["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"]),ur=Ct(["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"]),ls=Ct(["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"]),Aa=Ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Rh=bt(/{{[\w\W]*|^[\w\W]*}}/g),Ph=bt(/<%[\w\W]*|^[\w\W]*%>/g),Ih=bt(/\${[\w\W]*/g),Fh=bt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Oh=bt(/^aria-[\-\w]+$/),cs=bt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Hh=bt(/^(?:\w+script|data):/i),Vh=bt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zh=bt(/^html$/i),Wh=bt(/^[a-z][.\w]*(-[.\w]+)+$/i),us=bt(/<[/\w!]/g),ds=bt(/<[/\w]/g),qh=bt(/<\/no(script|embed|frames)/i),Uh=bt(/\/>/i),Vt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ps=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Gh=Ct(Ze({},ps)),Kh=(function(){const e={};return Tn(ps,n=>{e[n]=bt(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),Ct(e)})(),Yh=function(){return typeof window>"u"?null:window},Zh=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";a&&a.hasAttribute(o)&&(r=a.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return n.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ms=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},vn=function(n,a,r,o){return Rt(n,a)&&zn(n[a])?Ze(o.base?Ht(o.base):{},n[a],o.transform):r},dr=function(n,a,r){const o=Rt(n,a)?n[a]:void 0;return o&&typeof o=="object"?Ht(o):r()};function hs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yh();const n=he=>hs(he);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==Vt.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,o=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,h=c.prototype,C=Xt(h,"cloneNode"),y=Xt(h,"remove"),f=Xt(h,"nextSibling"),v=Xt(h,"childNodes"),g=Xt(h,"parentNode"),x=Xt(h,"shadowRoot"),_=Xt(h,"attributes"),b=l&&l.prototype?Xt(l.prototype,"nodeType"):null,A=l&&l.prototype?Xt(l.prototype,"nodeName"):null,w=l&&l.prototype?Xt(l.prototype,"ownerDocument"):null,D=function(S){return b?b(S):S.nodeType},B=function(S){return A?A(S):S.nodeName};if(typeof i=="function"){const he=a.createElement("template");he.content&&he.content.ownerDocument&&(a=he.content.ownerDocument)}let k,N="",I,O=!1,j=0;const H=function(){if(j>0)throw jn('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.')},T=function(S){H(),j++;try{return k.createHTML(S)}finally{j--}},K=function(S){H(),j++;try{return k.createScriptURL(S)}finally{j--}},W=function(){return O||(I=Zh(m,o),O=!0),I},V=a,U=V.implementation,re=V.createNodeIterator,P=V.createDocumentFragment,$=V.getElementsByTagName,M=r.importNode;let L=ms();n.isSupported=typeof Xo=="function"&&typeof g=="function"&&U&&U.createHTMLDocument!==void 0;const z=Rh,R=Ph,E=Ih,F=Fh,ae=Oh,le=Hh,se=Vh,oe=Wh;let Ce=cs,X=null;const te=Ze({},[...os,...ir,...lr,...cr,...ss]);let Y=null;const ge=Ze({},[...is,...ur,...ls,...Aa]);let xe=Object.seal(Vn(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}})),Te=null,ue=null;const be=Object.seal(Vn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ae=!0,Q=!0,ee=!1,ke=!0,De=!1,Oe=!0,Le=!1,We=!1,Re=null,et=null,Ke=!1,Ge=!1,ye=!1,He=!1,Ee=!0,Pe=!1;const qe="user-content-";let Ye=!0,ct=!1,ut={},dt=null;const Xe=Ze({},["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 tt=null;const Ve=Ze({},["audio","video","img","source","image","track"]);let nt=null;const Je=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",Me="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let yt=Qe,Gt=!1,mt=null;const _t=Ze({},[rt,Me,Qe],sr),zt=Ct(["mi","mo","mn","ms","mtext"]);let Kt=Ze({},zt);const wt=Ct(["annotation-xml"]);let ht=Ze({},wt);const Tt=Ze({},["title","style","font","a","script"]);let It=null;const yn=["application/xhtml+xml","text/html"],Sn="text/html";let at=null,Wt=null;const en=a.createElement("form"),vt=function(S){return S instanceof RegExp||S instanceof Function},Ft=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Wt&&Wt===S)return;(!S||typeof S!="object")&&(S={}),S=Ht(S),It=yn.indexOf(S.PARSER_MEDIA_TYPE)===-1?Sn:S.PARSER_MEDIA_TYPE,at=It==="application/xhtml+xml"?sr:aa,X=vn(S,"ALLOWED_TAGS",te,{transform:at}),Y=vn(S,"ALLOWED_ATTR",ge,{transform:at}),mt=vn(S,"ALLOWED_NAMESPACES",_t,{transform:sr}),nt=vn(S,"ADD_URI_SAFE_ATTR",Je,{transform:at,base:Je}),tt=vn(S,"ADD_DATA_URI_TAGS",Ve,{transform:at,base:Ve}),dt=vn(S,"FORBID_CONTENTS",Xe,{transform:at}),Te=vn(S,"FORBID_TAGS",Ht({}),{transform:at}),ue=vn(S,"FORBID_ATTR",Ht({}),{transform:at}),ut=Rt(S,"USE_PROFILES")?S.USE_PROFILES&&typeof S.USE_PROFILES=="object"?Ht(S.USE_PROFILES):S.USE_PROFILES:!1,Ae=S.ALLOW_ARIA_ATTR!==!1,Q=S.ALLOW_DATA_ATTR!==!1,ee=S.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=S.SAFE_FOR_TEMPLATES||!1,Oe=S.SAFE_FOR_XML!==!1,Le=S.WHOLE_DOCUMENT||!1,Ge=S.RETURN_DOM||!1,ye=S.RETURN_DOM_FRAGMENT||!1,He=S.RETURN_TRUSTED_TYPE||!1,Ke=S.FORCE_BODY||!1,Ee=S.SANITIZE_DOM!==!1,Pe=S.SANITIZE_NAMED_PROPS||!1,Ye=S.KEEP_CONTENT!==!1,ct=S.IN_PLACE||!1,Ce=Mh(S.ALLOWED_URI_REGEXP)?S.ALLOWED_URI_REGEXP:cs,yt=typeof S.NAMESPACE=="string"?S.NAMESPACE:Qe,Kt=dr(S,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ze({},zt)),ht=dr(S,"HTML_INTEGRATION_POINTS",()=>Ze({},wt));const q=dr(S,"CUSTOM_ELEMENT_HANDLING",()=>Vn(null));if(xe=Vn(null),Rt(q,"tagNameCheck")&&vt(q.tagNameCheck)&&(xe.tagNameCheck=q.tagNameCheck),Rt(q,"attributeNameCheck")&&vt(q.attributeNameCheck)&&(xe.attributeNameCheck=q.attributeNameCheck),Rt(q,"allowCustomizedBuiltInElements")&&typeof q.allowCustomizedBuiltInElements=="boolean"&&(xe.allowCustomizedBuiltInElements=q.allowCustomizedBuiltInElements),bt(xe),De&&(Q=!1),ye&&(Ge=!0),ut&&(X=Ze({},ss),Y=Vn(null),ut.html===!0&&(Ze(X,os),Ze(Y,is)),ut.svg===!0&&(Ze(X,ir),Ze(Y,ur),Ze(Y,Aa)),ut.svgFilters===!0&&(Ze(X,lr),Ze(Y,ur),Ze(Y,Aa)),ut.mathMl===!0&&(Ze(X,cr),Ze(Y,ls),Ze(Y,Aa))),be.tagCheck=null,be.attributeCheck=null,Rt(S,"ADD_TAGS")&&(typeof S.ADD_TAGS=="function"?be.tagCheck=S.ADD_TAGS:zn(S.ADD_TAGS)&&(X===te&&(X=Ht(X)),Ze(X,S.ADD_TAGS,at))),Rt(S,"ADD_ATTR")&&(typeof S.ADD_ATTR=="function"?be.attributeCheck=S.ADD_ATTR:zn(S.ADD_ATTR)&&(Y===ge&&(Y=Ht(Y)),Ze(Y,S.ADD_ATTR,at))),Rt(S,"ADD_FORBID_CONTENTS")&&zn(S.ADD_FORBID_CONTENTS)&&(dt===Xe&&(dt=Ht(dt)),Ze(dt,S.ADD_FORBID_CONTENTS,at)),Ye&&(X["#text"]=!0),Le&&Ze(X,["html","head","body"]),X.table&&(Ze(X,["tbody"]),delete Te.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ce=k;k=S.TRUSTED_TYPES_POLICY;try{N=T("")}catch(we){throw k=ce,we}}else S.TRUSTED_TYPES_POLICY===null?(k=void 0,N=""):(k===void 0&&(k=W()),k&&typeof N=="string"&&(N=T("")));Ct&&Ct(S),Wt=S},tn=Ze({},[...ir,...lr,...Lh]),nn=Ze({},[...cr,...$h]),ln=function(S,q,ce){return q.namespaceURI===Qe?S==="svg":q.namespaceURI===rt?S==="svg"&&(ce==="annotation-xml"||Kt[ce]):!!tn[S]},cn=function(S,q,ce){return q.namespaceURI===Qe?S==="math":q.namespaceURI===Me?S==="math"&&ht[ce]:!!nn[S]},Yt=function(S,q,ce){return q.namespaceURI===Me&&!ht[ce]||q.namespaceURI===rt&&!Kt[ce]?!1:!nn[S]&&(Tt[S]||!tn[S])},qt=function(S){let q=g(S);(!q||!q.tagName)&&(q={namespaceURI:yt,tagName:"template"});const ce=aa(S.tagName),we=aa(q.tagName);return mt[S.namespaceURI]?S.namespaceURI===Me?ln(ce,q,we):S.namespaceURI===rt?cn(ce,q,we):S.namespaceURI===Qe?Yt(ce,q,we):!!(It==="application/xhtml+xml"&&mt[S.namespaceURI]):!1},gt=function(S){na(n.removed,{element:S});try{g(S).removeChild(S)}catch{if(y(S),!g(S))throw jn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},an=function(S,q,ce){try{S.removeAttributeNode(q)}catch{try{S.removeAttribute(ce)}catch{}}},Ot=function(S){pe(S);const q=v(S);if(q){const we=[];Tn(q,Se=>{na(we,Se)}),Tn(we,Se=>{try{y(Se)}catch{}})}const ce=_(S);if(ce)for(let we=ce.length-1;we>=0;--we){const Se=ce[we],Fe=Se&&Se.name;typeof Fe=="string"&&an(S,Se,Fe)}},jt=function(S,q,ce){if(!ce)try{ce=q.getAttributeNode(S)}catch{ce=null}na(n.removed,{attribute:ce||null,from:q});try{ce?q.removeAttributeNode(ce):q.removeAttribute(S)}catch{try{q.removeAttribute(S)}catch{}}if(S==="is")if(Ge||ye)try{gt(q)}catch{}else try{q.setAttribute(S,"")}catch{}},ne=function(S){const q=_(S);if(q)for(let ce=q.length-1;ce>=0;--ce){const we=q[ce],Se=we&&we.name;typeof Se!="string"||Y[at(Se)]||an(S,we,Se)}},pe=function(S){const q=[S];for(;q.length>0;){const ce=q.pop();D(ce)===Vt.element&&ne(ce);const Se=v(ce);if(Se)for(let Fe=Se.length-1;Fe>=0;--Fe)q.push(Se[Fe])}},J=function(S,q){return Oe?S==="patchsrc"?!0:S==="for"&&q!=="label"&&q!=="output":!1},me=function(S){if(!Oe)return;const q=[S];for(;q.length>0;){const ce=q.pop(),we=D(ce);if(we===Vt.processingInstruction||we===Vt.comment&&At(ds,ce.data)){try{y(ce)}catch{}continue}if(we===Vt.element){const Fe=ce,ot=at(B(ce));try{Fe.hasAttribute&&Fe.hasAttribute("patchsrc")&&Fe.removeAttribute("patchsrc"),Fe.hasAttribute&&Fe.hasAttribute("for")&&J("for",ot)&&Fe.removeAttribute("for")}catch{}}const Se=v(ce);if(Se)for(let Fe=Se.length-1;Fe>=0;--Fe)q.push(Se[Fe])}},_e=function(S){let q=null,ce=null;if(Ke)S="<remove></remove>"+S;else{const Fe=ts(S,/^[\r\n\t ]+/);ce=Fe&&Fe[0]}It==="application/xhtml+xml"&&yt===Qe&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const we=k?T(S):S;if(yt===Qe)try{q=new p().parseFromString(we,It)}catch{}if(!q||!q.documentElement){q=U.createDocument(yt,"template",null);try{q.documentElement.innerHTML=Gt?N:we}catch{}}const Se=q.body||q.documentElement;return S&&ce&&Se.insertBefore(a.createTextNode(ce),Se.childNodes[0]||null),yt===Qe?$.call(q,Le?"html":"body")[0]:Le?q.documentElement:Se},Ne=function(S){const q=w?w(S):S.ownerDocument;return re.call(q||S,S,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ie=function(S){return S=ra(S,z," "),S=ra(S,R," "),S=ra(S,E," "),S},Z=function(S){var q;S.normalize();const ce=w?w(S):S.ownerDocument,we=re.call(ce||S,S,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Se=we.nextNode();for(;Se;)Se.data=Ie(Se.data),Se=we.nextNode();const Fe=(q=S.querySelectorAll)===null||q===void 0?void 0:q.call(S,"template");Fe&&Tn(Fe,ot=>{Be(ot.content)&&Z(ot.content)})},fe=function(S){const q=A?A(S):null;return typeof q!="string"||at(q)!=="form"?!1:typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||S.attributes!==_(S)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function"||S.nodeType!==b(S)||S.childNodes!==v(S)},Be=function(S){if(!b||typeof S!="object"||S===null)return!1;try{return b(S)===Vt.documentFragment}catch{return!1}},$e=function(S){if(!b||typeof S!="object"||S===null)return!1;try{return typeof b(S)=="number"}catch{return!1}};function je(he,S,q){he.length!==0&&Tn(he,ce=>{ce.call(n,S,q,Wt)})}const ze=function(S,q){return!!(Oe&&S.hasChildNodes()&&!$e(S.firstElementChild)&&At(us,S.textContent)&&At(us,S.innerHTML)||Oe&&S.namespaceURI===Qe&&Gh[q]&&($e(S.firstElementChild)||typeof S.textContent=="string"&&At(Kh[q],S.textContent))||S.nodeType===Vt.processingInstruction||Oe&&S.nodeType===Vt.comment&&At(ds,S.data))},ft=function(S,q){if(S instanceof RegExp)return At(S,q);if(S instanceof Function){for(var ce=arguments.length,we=new Array(ce>2?ce-2:0),Se=2;Se<ce;Se++)we[Se-2]=arguments[Se];return!!S(q,...we)}return!1},Nt=function(S,q,ce){if(!Te[q]&&dn(q)&&ft(xe.tagNameCheck,q))return!1;if(Ye&&!dt[q]){const we=g(S),Se=v(S);if(Se&&we){const Fe=Se.length;for(let ot=Fe-1;ot>=0;--ot){const st=S===ce?C(Se[ot],!0):Se[ot];we.insertBefore(st,f(S))}}}return gt(S),!0},kt=function(S,q,ce,we){return S.length===0?q:q===ce||q===we?Ht(q):q},rn=function(S,q){return S===q||g(S)!==null?!1:(ct&&pe(S),!0)},Zt=function(S,q){if(je(L.beforeSanitizeElements,S,null),rn(S,q))return!0;if(fe(S))return gt(S),!0;const ce=at(B(S));if(X=kt(L.uponSanitizeElement,X,te,Re),je(L.uponSanitizeElement,S,{tagName:ce,allowedTags:X}),rn(S,q))return!0;if(ze(S,ce))return gt(S),!0;if(Te[ce]||!(be.tagCheck instanceof Function&&be.tagCheck(ce))&&!X[ce]){const Se=Nt(S,ce,q);return Se===!1&&je(L.afterSanitizeElements,S,null),Se}if(D(S)===Vt.element&&!qt(S)||(ce==="noscript"||ce==="noembed"||ce==="noframes")&&At(qh,S.innerHTML))return gt(S),!0;if(De&&S.nodeType===Vt.text){const Se=Ie(S.textContent);S.textContent!==Se&&(na(n.removed,{element:S.cloneNode()}),S.textContent=Se)}return je(L.afterSanitizeElements,S,null),!1},Et=function(S,q,ce){if(ue[q]||J(q,S)||Ee&&(q==="id"||q==="name")&&(ce in a||ce in en))return!1;const we=Y[q]||be.attributeCheck instanceof Function&&be.attributeCheck(q,S);return Q&&At(F,q)||Ae&&At(ae,q)?!0:we?nt[q]||At(Ce,ra(ce,se,""))||(q==="src"||q==="xlink:href"||q==="href")&&S!=="script"&&ns(ce,"data:")===0&&tt[S]||ee&&!At(le,ra(ce,se,""))?!0:!ce:dn(S)&&ft(xe.tagNameCheck,S)&&ft(xe.attributeNameCheck,q,S)||q==="is"&&xe.allowCustomizedBuiltInElements&&ft(xe.tagNameCheck,ce)},un=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),dn=function(S){return!un[aa(S)]&&At(oe,S)},Qa=function(S,q,ce,we){if(k&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!ce)switch(m.getAttributeType(S,q)){case"TrustedHTML":return T(we);case"TrustedScriptURL":return K(we)}return we},Rc=function(S,q,ce,we){try{ce?S.setAttributeNS(ce,q,we):S.setAttribute(q,we),fe(S)?gt(S):es(n.removed)}catch{jt(q,S)}},No=function(S){je(L.beforeSanitizeAttributes,S,null);const q=S.attributes;if(!q||fe(S))return;Y=kt(L.uponSanitizeAttribute,Y,ge,et);const ce={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let we=q.length;const Se=at(S.nodeName);for(;we--;){const Fe=q[we],ot=Fe.name,st=Fe.namespaceURI,Mt=Fe.value,Lt=at(ot),tr=Mt;let Bt=ot==="value"?tr:Bh(tr);if(ce.attrName=Lt,ce.attrValue=Bt,ce.keepAttr=!0,ce.forceKeepAttr=void 0,je(L.uponSanitizeAttribute,S,ce),Bt=ce.attrValue,Pe&&(Lt==="id"||Lt==="name")&&ns(Bt,qe)!==0&&(jt(ot,S,Fe),Bt=qe+Bt),Oe&&At(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Bt)){jt(ot,S,Fe);continue}if(Lt==="attributename"&&ts(Bt,"href")){jt(ot,S,Fe);continue}if(!ce.forceKeepAttr){if(!ce.keepAttr){jt(ot,S,Fe);continue}if(!ke&&At(Uh,Bt)){jt(ot,S,Fe);continue}if(De&&(Bt=Ie(Bt)),!Et(Se,Lt,Bt)){jt(ot,S,Fe);continue}Bt=Qa(Se,Lt,st,Bt),Bt!==tr&&Rc(S,ot,st,Bt)}}je(L.afterSanitizeAttributes,S,null)},ka=function(S){let q=null;const ce=Ne(S);for(je(L.beforeSanitizeShadowDOM,S,null);q=ce.nextNode();)if(je(L.uponSanitizeShadowNode,q,null),Zt(q,S),No(q),Be(q.content)&&ka(q.content),D(q)===Vt.element){const we=x(q);Be(we)&&(er(we),ka(we))}je(L.afterSanitizeShadowDOM,S,null)},er=function(S){const q=[{node:S,shadow:null}];for(;q.length>0;){const ce=q.pop();if(ce.shadow){ka(ce.shadow);continue}const we=ce.node,Fe=D(we)===Vt.element,ot=v(we);if(ot)for(let st=ot.length-1;st>=0;--st)q.push({node:ot[st],shadow:null});if(Fe){const st=A?A(we):null;if(typeof st=="string"&&at(st)==="template"){const Mt=we.content;Be(Mt)&&q.push({node:Mt,shadow:null})}}if(Fe){const st=x(we);Be(st)&&q.push({node:null,shadow:st},{node:st,shadow:null})}}};return n.sanitize=function(he){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,ce=null,we=null,Se=null;if(Gt=!he,Gt&&(he="<!-->"),typeof he!="string"&&!$e(he)&&(he=Eh(he),typeof he!="string"))throw jn("dirty is not a string, aborting");if(!n.isSupported)return he;We?(X=Re,Y=et):Ft(S),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(X=Ht(X)),L.uponSanitizeAttribute.length>0&&(Y=Ht(Y)),n.removed=[];const Fe=ct&&typeof he!="string"&&$e(he);if(Fe){me(he);const Mt=B(he);if(typeof Mt=="string"){const Lt=at(Mt);if(!X[Lt]||Te[Lt])throw Ot(he),jn("root node is forbidden and cannot be sanitized in-place")}if(fe(he))throw Ot(he),jn("root node is clobbered and cannot be sanitized in-place");try{er(he)}catch(Lt){throw Ot(he),Lt}}else if($e(he))q=_e("<!---->"),ce=q.ownerDocument.importNode(he,!0),ce.nodeType===Vt.element&&ce.nodeName==="BODY"||ce.nodeName==="HTML"?q=ce:q.appendChild(ce),er(ce);else{if(!Ge&&!De&&!Le&&he.indexOf("<")===-1)return k&&He?T(he):he;if(q=_e(he),!q)return Ge?null:He?N:""}q&&Ke&&gt(q.firstChild);const ot=Fe?he:q;try{const Mt=Ne(ot);for(;we=Mt.nextNode();)Zt(we,ot),No(we),Be(we.content)&&ka(we.content)}catch(Mt){throw Fe&&(Ot(he),Tn(n.removed,Lt=>{Lt.element&&pe(Lt.element)})),Mt}if(Fe)return Tn(n.removed,Mt=>{Mt.element&&pe(Mt.element)}),De&&Z(he),he;if(Ge){if(De&&Z(q),ye)for(Se=P.call(q.ownerDocument);q.firstChild;)Se.appendChild(q.firstChild);else Se=q;return(Y.shadowroot||Y.shadowrootmode)&&(Se=M.call(r,Se,!0)),Se}let st=Le?q.outerHTML:q.innerHTML;return Le&&X["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&At(zh,q.ownerDocument.doctype.name)&&(st="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
808
+ `+st),De&&(st=Ie(st)),k&&He?T(st):st},n.setConfig=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ft(he),We=!0,Re=X,et=Y},n.clearConfig=function(){Wt=null,We=!1,Re=null,et=null,k=I,N=""},n.isValidAttribute=function(he,S,q){Wt||Ft({});const ce=at(he),we=at(S);return Et(ce,we,q)},n.addHook=function(he,S){typeof S=="function"&&Rt(L,he)&&na(L[he],S)},n.removeHook=function(he,S){if(Rt(L,he)){if(S!==void 0){const q=Ah(L[he],S);return q===-1?void 0:Nh(L[he],q,1)[0]}return es(L[he])}},n.removeHooks=function(he){Rt(L,he)&&(L[he]=[])},n.removeAllHooks=function(){L=ms()},n}var Xh=hs();const Jh=/^(?:[a-z]+:)?\/\//i,Qh="__ihab_core_asset_base_url__";function e0(){return globalThis[Qh]??""}function pr(e){const n=String(e||"").trim();if(!n)return"";if(Jh.test(n)||n.startsWith("data:")||n.startsWith("blob:"))return n;const a=n.startsWith("/")?n:`/${n}`,r=e0();return r?`${r}${a}`:a}const fs="__ihab_core_storage_resolvers__";function sa(){return globalThis[fs]??null}function t0(e){globalThis[fs]=e}let Cs=class extends Error{constructor(n){super(`
809
809
  [ihabdevteam-core] ${n}() \uD638\uCD9C \uC2E4\uD328 \u2014 configureStorage()\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
810
810
 
811
811
  \uC571 \uCD08\uAE30\uD654 \uC2DC\uC810(main.tsx \uB4F1)\uC5D0 \uC544\uB798\uC640 \uAC19\uC774 \uD55C \uBC88 \uD638\uCD9C\uD558\uC138\uC694:
@@ -824,18 +824,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
824
824
  \uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
825
825
  npm install @supabase/supabase-js
826
826
  pnpm add @supabase/supabase-js
827
- `),this.name="StorageNotConfiguredError"}};function n0(e){t0(e)}function gs(e,n){if(!e)return null;const a=sa();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function bs(e){if(!e)return null;const n=sa();if(!n)throw new Cs("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function ys(e){const n=sa();if(!n)throw new Cs("downloadSound");return n.download(e)}function a0(){return sa()?.noiseBaseUrl??"/sounds/noise"}function vs(){const e=Number(sa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function r0(e){const n=AbortSignal.timeout;if(typeof n=="function")return n.call(AbortSignal,e);const a=new AbortController;return setTimeout(()=>a.abort(),e),a.signal}const xs="__ihab_core_tts_config__";function mr(){return globalThis[xs]?.urlResolver??null}function o0(){return globalThis[xs]?.fallbackUrlResolver??null}const s0="__ihab_core_pronunciation_resolver__";function i0(){return globalThis[s0]??null}let xn=null;const ia=new WeakMap,hr=new WeakMap,fr=new WeakMap;let _s=!1;const ws=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function l0(){if(_s||typeof document>"u")return;_s=!0;const e=()=>{try{xn&&xn.state!=="running"&&xn.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function ks(){if(xn)return xn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(xn=new e,l0(),xn):null}catch{return null}}function Cr(){try{xn?.resume()}catch{}}function gr(e,n){const a=ia.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),o=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,o.gain.value=ws(hr.get(n)??n.volume),r.connect(o),o.connect(i),o.connect(e.destination);try{n.volume=1}catch{}const l={gain:o,analyser:i};return ia.set(n,l),l}catch{return null}}function Na(e){if(!e)return Promise.resolve(null);const n=ia.get(e);if(n)return Promise.resolve(n.analyser);const a=ks();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(gr(a,e)?.analyser??null);const r=fr.get(e);if(r)return r;const o=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?gr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{fr.delete(e)});return fr.set(e,o),o}function c0(e){if(!e)return null;const n=ia.get(e);if(n)return n.analyser;const a=ks();return a?a.state==="running"?gr(a,e)?.analyser??null:(Na(e),null):null}function _n(e,n){const a=ws(n);hr.set(e,a);const r=ia.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const o=r.gain.gain;try{const i=r.gain.context.currentTime;o.cancelScheduledValues(i),o.setTargetAtTime(a,i,.01)}catch{try{o.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function Ba(e){return hr.get(e)??e.volume}function u0(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const o=n[r];a+=o*o}return Math.sqrt(a/n.length)}const d0="__ihab_core_image_config__";function Wn(){return globalThis[d0]??null}const As="word_image_existence_map_v1";let En=null;const Da=new Map;function p0(){if(En)return En;try{const e=typeof localStorage<"u"?localStorage.getItem(As):null,n=e?JSON.parse(e):null;En=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{En={}}return En}let br=null;function m0(){br||(br=setTimeout(()=>{br=null;try{typeof localStorage<"u"&&En&&localStorage.setItem(As,JSON.stringify(En))}catch{}},200))}function h0(e,n){return`${e}_${n??1}`}async function Ns(e,n){const a=p0(),r=h0(e,n);if(r in a)return a[r];if(Da.has(r))return Da.get(r);const o=Wn();if(!o)return!1;const i=o(e,n);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:r0(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Da.delete(r),c===null?!1:(a[r]=c,m0(),c)));return Da.set(r,l),l}const Bs=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],Ds=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],f0=["","\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 la(e){if(!e)return null;const n=e.charCodeAt(0)-44032;return n<0||n>=11172?null:{cho:Math.floor(n/588),jung:Math.floor(n%588/28),jong:n%28}}function C0(e){const n=la(e[0]||"");return n?Bs[n.cho]:""}function g0(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],a=l=>Bs.includes(l),r=l=>Ds.includes(l),o=n.map(l=>a(l)?"cho":r(l)?"jung":la(l)?"syl":"other"),i=n.map(l=>la(l));if(o.includes("other")){const l=e.toLowerCase();return c=>c.normalize("NFC").toLowerCase().includes(l)}return l=>{const c=[...l.normalize("NFC")];for(let u=0;u+n.length<=c.length;u++){let d=!0;for(let p=0;p<n.length;p++){const m=c[u+p],h=o[p];if(h==="cho"){if(C0(m)!==n[p]){d=!1;break}}else if(h==="jung"){const C=la(m);if(!C||Ds[C.jung]!==n[p]){d=!1;break}}else{const C=i[p];if(C&&C.jong===0){const y=la(m);if(!y||y.cho!==C.cho||y.jung!==C.jung){d=!1;break}}else if(m!==n[p]){d=!1;break}}}if(d)return!0}return!1}}const b0={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(b0).map(([e,n])=>[n.join(""),f0[Number(e)]]));const y0="word_pair_index_v2",v0="word_pair_index_sig_v2";let Sa=null;function x0(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(y0),n=localStorage.getItem(v0);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function _0(){if(Sa)return Sa;const e=x0();return e?(Sa=e.index,e.sig,Sa):null}const w0={\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"}},yr=/[ㄱ-ㅎ]/,k0=/[ㅏ-ㅣ]/;function Ss(e){e=e.normalize("NFC");for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.charCodeAt(0);if(r>=44032&&r<=55203||yr.test(a)||k0.test(a))return a}return null}function A0(e){const n=Ss(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":yr.test(n)?"\uC774":"\uAC00"}function N0(e){return`${e}${A0(e)}`}function B0(e){const n=Ss(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":yr.test(n)?"\uC744":"\uB97C"}function D0(e){return`${e}${B0(e)}`}function S0(e,n,a){const r=e.slice(),[o]=r.splice(n,1);return r.splice(a,0,o),r}function ca(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const o=Math.floor(n()*(r+1));[a[r],a[o]]=[a[o],a[r]]}return a}const T0=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof $t?.t=="function"?$t.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function Ts(e,n){if(n===void 0&&(n=T0()),e instanceof Error)return e.message||n;if(typeof e=="string")return e||n;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return n}const j0="__ihab_core_word_pool__";function E0(){return globalThis[j0]??null}const js=globalThis;function Es(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function M0(e){Es("time",()=>js.__ihabTrainingTimeLogger?.(e))}function L0(e){Es("completion",()=>js.__ihabTrainingCompletionLogger?.(e))}function Pt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function $0(e){for(const n of["correct","isCorrect","heard","judgement"])if(typeof e[n]=="boolean")return e[n];return e.score===1?!0:e.score===0?!1:null}function R0(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Pt(r.contextCode)??Pt(r.itemId)??Pt(r.itemCode)??Pt(r.id),question:Pt(r.question)??Pt(r.q)??Pt(r.sentence)??Pt(r.text)??Pt(r.prompt)??Pt(r.word)??Pt(r.targetSyllable),answer:Pt(r.answer),selected:Pt(r.selectedText)??Pt(r.selected),correct:$0(r)}}):[]}const vr=globalThis;async function P0(){try{return await vr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function Ms(e){const n=a=>{};try{const a=vr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Ta(e){try{vr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function I0(e){if(typeof document<"u"){const n=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),n&&n!==document.activeElement&&typeof n.focus=="function"&&n.isConnected)try{n.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}function Mn(){return xr(new Date)}function qn(){return O0(Mn())}const F0=540*60*1e3;function Ls(e,n,a){return new Date(Date.UTC(e,n,a)-F0)}function O0(e){const[n,a,r]=e.split("-").map(Number);return new Date(n,(a||1)-1,r||1)}function xr(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n)}function $s(e,n){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),o=Math.floor(r/60),i=Math.floor(o/60),l=Math.floor(i/24),c=Math.floor(l/7),u=Math.floor(l/30),d=Math.floor(l/365);return o<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):o<60?n("store.time.minutesAgo",{n:o}):i<24?n("store.time.hoursAgo",{n:i}):l<7?n("store.time.daysAgo",{n:l}):c<5?n("store.time.weeksAgo",{n:c}):l<365?n("store.time.monthsAgo",{n:Math.min(u,11)}):n("store.time.yearsAgo",{n:d})}function Rs(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:o=!1,fallback:i="\u2014"}=n;if(!e)return i;const l=xr(e instanceof Date?e:String(e));if(!l)return i;const[c,u,d]=l.split("-"),p=r?u:String(Number(u)),m=r?d:String(Number(d));return`${c}${a}${p}${a}${m}${o?".":""}`}function ua(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function Ps(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),o=Number(a[2]),i=a[1].padStart(2,"0");return o===0?n("date.timeH",{h:r,hh:i,mm:a[2]}):n("date.timeHM",{h:r,hh:i,m:o,mm:a[2]})}function _r(e){return(e??0).toLocaleString("ko-KR")}const H0=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],V0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];function Is(){return H0}function z0(){return V0}const W0=[],q0=[],U0=[],G0=[];function K0(){return{LISTEN_IN_NOISE:W0,SHORT_STORY:q0,LONG_STORY:U0,ORDERING_SENTENCE:G0}}const Y0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],Fs={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function Z0(e){return Y0.map(n=>{const a=Fs[n.key];return a?{...n,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:n})}let ja=null,Os=null,Hs=null;function X0(){const e=E0();if(e&&e.entries.length>0){const n=_0();if(ja&&Os===e&&Hs===n)return ja;const a=new Set,r=[];for(const o of e.entries)!o.word||a.has(o.word)||(a.add(o.word),r.push({w:o.word,s:o.syllables,p:n?.[o.word]?[...n[o.word].cho??[],...n[o.word].jung??[],...n[o.word].jong??[]]:[],pron:o.pronunciation||o.word,grade:o.grade}));return ja=r,Os=e,Hs=n,ja}return[]}new Proxy([],{get(e,n){const a=X0(),r=a[n];return typeof r=="function"?r.bind(a):r}});const J0="0.148.0";function Q0(e){return typeof window>"u"?"":Xh.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function e2(e){const[n,a]=s.useState(null),[r,o]=s.useState(null),[i,l]=s.useState(null),[c,u]=s.useState(null);return s.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),o(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=pr(e):/^(Logo|Symbol)/i.test(d)?p=pr(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),o(null),l(null),a(p)},[e]),s.useEffect(()=>{if(!n)return;let d=!1;async function p(){try{let m=await fetch(n);m.ok||(m=await fetch(n));const h=m.headers.get("content-type")||"";if(d)return;if(h.includes("svg")){o("mask");return}if(h.startsWith("image/")){o("img");return}const C=await fetch(n);if(!C.ok)throw new Error("not ok");const y=await C.text();if(d)return;if(/^\s*<svg[\s>]/i.test(y)){const f=Q0(y);if(!f){o("none");return}l(f),o("inline");return}o("none")}catch{d||o("none")}}return p(),()=>{d=!0}},[n]),s.useEffect(()=>{let d=!1,p=null;return r==="mask"&&n&&fetch(n).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{d||(p=URL.createObjectURL(m),u(p))}).catch(()=>{d||o("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,n]),{iconToUse:n,mode:r,svgText:i,blobUrl:c}}function Ue(e){const{icon:n,label:a,className:r,imgClassName:o,maskClassName:i,svgClassName:l,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=o??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=l??"iconRenderer-icon-svg",C=typeof n=="string"?n:null,y=Ch(C),{iconToUse:f,mode:v,svgText:g,blobUrl:x}=e2(C),_=(D,B={})=>t.jsx("span",{className:d,style:c,...B,children:D}),b=(D,B={})=>t.jsx("img",{src:D,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...B});if(!n)return null;if(typeof n!="string")return _(n);if(n==="none")return _(t.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(y)try{return _(s.createElement(y,{className:h,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(f&&f.endsWith(".svg")){if(v==="mask"){const D={"--icon-url":x?`url(${x})`:`url(${f})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return _(t.jsx("span",{className:m,style:D}),{"aria-hidden":"true"})}return v==="img"?_(b(f,{onError:D=>{D.currentTarget.onerror=null,D.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="inline"?_(t.jsx("span",{className:h,dangerouslySetInnerHTML:g?{__html:g}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return b(pr(n),{style:c,onError:D=>{D.currentTarget.onerror=null,D.currentTarget.style.display="none"}});const A=typeof u=="number"?u:20,w=`<svg width="${A}" height="${A}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return _(t.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:w}}),{"aria-hidden":"true"})}function t2({icon:e,emoji:n,title:a,message:r,hint:o,action:i,compact:l,className:c}){return t.jsxs("div",{className:ve("empty-state",l&&"empty-state--compact",c),children:[n&&t.jsx("span",{className:"empty-state__emoji",children:n}),e&&t.jsx(Ue,{icon:e,className:"empty-state__icon"}),a&&t.jsx("p",{className:"empty-state__title body-2",children:a}),r&&t.jsx("p",{className:"empty-state__message body-3",children:r}),o&&t.jsx("p",{className:"empty-state__hint caption-1",children:o}),i&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i.onClick,children:[i.icon&&t.jsx(Ue,{icon:i.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:i.label})]})]})}function n2({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:o,className:i}){const{t:l}=de.useTranslation();return t.jsxs("div",{className:ve("empty-state","error-state",i),role:"alert",children:[t.jsx(Ue,{icon:a,className:"empty-state__icon error-state__icon"}),t.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),n&&t.jsx("p",{className:"empty-state__hint caption-1",children:n}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[t.jsx(Ue,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:o??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function a2({icon:e,title:n,description:a,cta:r,tone:o="main",disabled:i=!1,onClick:l,className:c=""}){const u=s.useId(),d=`${u}-title`,p=`${u}-desc`,m=`${u}-cta`,h=()=>{i||l?.()};return t.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":d,"aria-describedby":`${p} ${m}`,onClick:h,onKeyDown:C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),h())},className:ve("action-card",`action-card--${o}`,i&&"action-card--disabled",c),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(Ue,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{id:d,className:"action-card__title",children:n}),t.jsx("p",{id:p,className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{id:m,children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Ue,{icon:"arrow-right",size:18})})]})]})})}function r2({as:e="div",className:n="",children:a,storage:r,...o}){r&&n0({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const i=ve("ihabdevteam-core-scope",n);return t.jsx(e,{className:i,...o,children:a})}function o2({title:e="",lines:n=[],notices:a=null,children:r,variant:o="default",dismissible:i=!1,className:l=""}){const{t:c}=de.useTranslation(),[u,d]=s.useState(!1),p=s.useCallback(()=>d(!0),[]);if(u)return null;const m=`notice-box notice-box--${o} body-2 ${l}`.trim();if(a&&Array.isArray(a)&&a.length)return t.jsx("div",{className:m,role:"note",children:a.map((C,y)=>t.jsxs("div",{className:"notice-box__inner",children:[C.title?t.jsx("span",{className:"notice-box__title body-3",children:C.title}):null,t.jsx("div",{className:"notice-box__body",children:C.lines&&C.lines.length?t.jsx("div",{children:C.lines.map((f,v)=>t.jsx("span",{className:"notice-box__line body-3",children:f},v))}):C.children??null})]},y))});const h=e||n.length?t.jsxs("div",{className:"notice-box__inner",children:[e?t.jsx("span",{className:"notice-box__title body-1",children:e}):null,t.jsx("div",{className:"notice-box__body",children:n.length?t.jsx("ul",{children:n.map((C,y)=>t.jsx("li",{className:"notice-box__line",children:C},y))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{className:m,role:"note",children:[h,i&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}function wr(e,n=!0){s.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=o=>{if(o.key!=="Tab")return;const i=Array.from(a.querySelectorAll(Ln)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){o.preventDefault();return}const l=i[0],c=i[i.length-1],u=document.activeElement,d=u===a;o.shiftKey&&(u===l||d)?(o.preventDefault(),c.focus()):!o.shiftKey&&u===c&&(o.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const Ln='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Un=[];let Ea=!1;function Vs(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const n=Un[Un.length-1];n&&(e.stopPropagation(),n())}function $n(e){return Un.push(e),!Ea&&typeof document<"u"&&(document.addEventListener("keydown",Vs),Ea=!0),()=>{const n=Un.lastIndexOf(e);n>=0&&Un.splice(n,1),Un.length===0&&Ea&&typeof document<"u"&&(document.removeEventListener("keydown",Vs),Ea=!1)}}function wn(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:o=20,onClose:i,closeOnOutsideClick:l=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:C=!0,header:y}=e||{},f=s.useRef(null),[v,g]=s.useState({position:"fixed",left:0,top:-9999}),[x,_]=s.useState(!1),[b,A]=s.useState("bottom"),[w,D]=s.useState(!1),[B,k]=s.useState(!1),N=!n&&!a,I=s.useCallback((V=!1)=>{if(B&&h)return;const U=a?a.getBoundingClientRect():n;if(!U||!f.current)return;const re=f.current,{offsetWidth:P,offsetHeight:R}=re,M=window.innerWidth,L=window.innerHeight,z=M-U.right,$=U.left,j=U.top,F=L-U.bottom;let se=0,ne=0,ee="top";if(j>=R+r)ee="top",ne=U.top-r-R,se=U.left+U.width/2-P/2;else if(F>=R+r)ee="bottom",ne=U.bottom+r,se=U.left+U.width/2-P/2;else if(z>=P+r)ee="right",se=U.right+r,ne=U.top+U.height/2-R/2;else if($>=P+r)ee="left",se=U.left-r-P,ne=U.top+U.height/2-R/2;else{const oe=Math.max(j,F,z,$);oe===j?(ee="top",ne=U.top-r-R,se=U.left+U.width/2-P/2):oe===F?(ee="bottom",ne=U.bottom+r,se=U.left+U.width/2-P/2):oe===z?(ee="right",se=U.right+r,ne=U.top+U.height/2-R/2):(ee="left",se=U.left-r-P,ne=U.top+U.height/2-R/2)}const ie=Number.isFinite(Number(o))?Number(o):8;se=Math.min(Math.max(se,ie),M-P-ie),ne=Math.min(Math.max(ne,ie),L-R-ie);const Ce=Math.round(se),Z=Math.round(ne);V&&f.current?(f.current.style.left=`${Ce}px`,f.current.style.top=`${Z}px`,f.current.dataset.placement=ee):(A(ee||b),g({position:"fixed",left:Ce,top:Z}),D(!0))},[B,h,a,n,r,o,b]);s.useLayoutEffect(()=>{if(N)return;if(B&&h){g({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),D(!0);return}I();const V=requestAnimationFrame(()=>I());return()=>cancelAnimationFrame(V)},[n,a,r,p,o,N,B,h,I]),s.useEffect(()=>{if(N||B&&h||!f.current||typeof ResizeObserver>"u")return;const V=new ResizeObserver(()=>{n&&I()});return V.observe(f.current),()=>V.disconnect()},[n,p,o,N,B,h,I]),s.useEffect(()=>{if(N||B&&h)return;const V=()=>I(!0),U=re=>{if(!a&&i){const P=re.target;if(P&&f.current&&f.current.contains(P))return;try{if(P&&P.closest&&P.closest("[data-tooltip-ignore]"))return}catch{}T.current(!0);return}V()};return window.addEventListener("resize",V),document.addEventListener("scroll",U,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",V),document.removeEventListener("scroll",U,{capture:!0})}},[n,a,i,r,p,o,N,B,h,I]),s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const V=window.matchMedia("(max-width: 768px)"),U=()=>k(!!V.matches);U();try{V.addEventListener?V.addEventListener("change",U):V.addListener(U)}catch{try{V.addListener(U)}catch{}}return()=>{try{V.removeEventListener?V.removeEventListener("change",U):V.removeListener(U)}catch{}}},[]);const O=s.useRef(!1),E=s.useRef(null),H=s.useCallback((V=!1)=>{if(i&&!(x||O.current)){if(O.current=!0,V){_(!0);try{i&&i()}catch{O.current=!1,_(!1)}return}_(!0),E.current=setTimeout(()=>{E.current=null;try{i&&i()}catch{O.current=!1,_(!1)}},200)}},[x,i,_]);s.useEffect(()=>()=>{E.current&&clearTimeout(E.current)},[]),s.useEffect(()=>{if(N)return;const V=P=>{const R=f.current;if(!R)return;const M=P.target;if(M&&!R.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&H(!0)}},U=P=>{const R=f.current;if(!R)return;const M=P.target;if(M&&!R.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&H(!0)}},re=P=>{if(P.key==="Tab"){const R=f.current;if(!R)return;const M=R.querySelectorAll(Ln);if(!M||M.length===0)return;const L=M[0],z=M[M.length-1],$=document.activeElement;P.shiftKey?$===L&&(P.preventDefault(),z.focus()):$===z&&(P.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",V,!0),document.addEventListener("click",U,!0),document.addEventListener("keydown",re),()=>{document.removeEventListener("pointerdown",V,!0),document.removeEventListener("click",U,!0),document.removeEventListener("keydown",re)}},[i,l,H,N]);const T=s.useRef(H);s.useEffect(()=>{T.current=H});const K=!!i;s.useEffect(()=>{if(!(N||!K))return $n(()=>T.current())},[N,K]),s.useEffect(()=>{const V=()=>{H(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",V),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",V)}},[H]);const W=t.jsxs("div",{ref:f,className:`tooltip-content ${N?"tooltip-content--inline":""} ${C?"tooltip-content--bordered":""} ${x?"is-closing":""} ${c} ${B&&h?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:N?{}:{...v,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":b,"data-left":N?"":v.left,"data-top":N?"":v.top,"data-anchor-left":n?Math.round(n.left):"","data-anchor-top":n?Math.round(n.top):"","data-anchor-width":n?Math.round(n.width):"","data-anchor-height":n?Math.round(n.height):"",children:[y!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:y}),p]});if(N||typeof document>"u")return W;if(m||B&&h){const V=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&H(!0)}}),W]});return Ut.createPortal(V,document.body)}return Ut.createPortal(W,document.body)}function kn(e){const{anchorRect:n,text:a,offset:r=8,onClose:o,className:i="",ariaLabel:l}=e||{};return a?t.jsx(wn,{anchorRect:n,offset:r,onClose:o,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Rn(e){const{t:n}=de.useTranslation(),{anchorRect:a,title:r,items:o,activeIndex:i=-1,showIndex:l=!0,onClose:c,offset:u=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(o)?o:o?[o]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:t.jsx(wn,{anchorRect:a,offset:u,onClose:c,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||n("tooltip.description","\uC124\uBA85"),children:t.jsxs("div",{className:"tooltip-description__box",children:[r&&t.jsx("span",{className:"tooltip-description__title body-2",children:r}),t.jsx("ol",{className:"tooltip-description__items",children:p.map((m,h)=>t.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),m.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),t.jsx("span",{children:m.text})]},h))})]})})}function le(e){const{size:n=48,type:a,htmlType:r,href:o,target:i,rel:l,icon:c,rightIcon:u,label:d,count:p,subLabel:m,children:h,ariaLabel:C,variant:y="default",align:f="center",selected:v,toggleable:g=!1,disabled:x=!1,useLabel:_=!0,useBorder:b=!0,useBG:A=!0,useDisabledCovered:w=!1,useDisabledInvisible:D=!1,width:B,minWidth:k,onClick:N,onDisabledClick:I,showTooltipInfo:O=!1,tooltipInfoText:E=null,tooltipDescription:H=null,tooltipOnly:T=!1,iconSize:K="medium",iconColor:W,shape:V="rounded",color:U,className:re,...P}=e,R=typeof n=="string"&&isNaN(Number(n))?n.toLowerCase():String(Number(n)||48),M=R.match(/^\d+$/)?`button${R}`:`button-${R}`,L=Number(n),z=!isNaN(L)&&L<40?"button-2":"button-1",$=d??h,j=x||!!P.disabled,F=j?w?"disabled-covered":D?"disabled-invisibled":"disabled":y,se=F?`button--variant-${F}`:"",ne=f?`button--align-${f}`:"",ee=V?`button--shape-${V}`:"",ie=typeof W=="string"&&W.startsWith("--")?`var(${W})`:W,Ce={...B?{width:typeof B=="number"?`${B}px`:B}:{},...k?{minWidth:typeof k=="number"?`${k}px`:k}:{},...b?{}:{"--button-border":j?"0":"1px solid transparent"},...ie?{"--button-icon-color":ie}:{},...U?{"--color-main":U}:{}},Z=_===!1?"":$,oe=Array.isArray(Z)?Z.length>0:!!Z,X=!!u,ge=a??(oe||c||X?"bar":"dot"),_e=`${M}--${ge}`,Se=s.useRef(null),ue=s.useRef(j),[be,Ae]=s.useState(!!v),[Q,te]=s.useState(!1),[ke,Te]=s.useState(null),ze=s.useCallback(()=>te(!1),[]);s.useEffect(()=>{typeof v=="boolean"&&Ae(v)},[v]),s.useEffect(()=>{if(ue.current&&!j&&Se.current){const He=Se.current;let nt=!1;try{nt=He.matches(":focus:not(:focus-visible)")}catch{nt=!1}nt&&He.blur(),He.style.pointerEvents="none";const Je=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Se.current&&(Se.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Je)}ue.current=j},[j]);const Le=typeof v=="boolean"?!!v:be,We=g||typeof v=="boolean"?Le?"true":"false":P["aria-pressed"],Re=ve("button",M,_e,se,ne,ee,Le?"is-selected":null,A?null:"button--no-bg",T?"button--tooltip-only":null,re),et=`button__icon button__icon--${K}`,Ke=Array.isArray(m)?m:m!==void 0?[m]:[],Ge=()=>{if(Array.isArray(Z))return Z.map((nt,Je)=>{const rt=Ke[Je];return t.jsxs("span",{className:`button__label-text${rt!==void 0?" button__label-text--has-sub":""}`,children:[nt,rt!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:rt})]},Je)});const He=m!==void 0;return t.jsxs("span",{className:`button__label-text${He?" button__label-text--has-sub":""}`,children:[Z,p!=null&&t.jsx("span",{className:"button__count",children:p}),He&&t.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},ye=He=>{typeof v!="boolean"&&!g&&Ae(!1),He.currentTarget.blur()},Oe=He=>{j||(typeof P.onMouseLeave=="function"&&P.onMouseLeave(He),ye(He))},Ee=He=>{if(j){I?.(He);return}typeof v!="boolean"&&g&&Ae(nt=>!nt),N?.(He)},Pe=s.useCallback(()=>{(O||H)&&(te(!0),Te(Se.current?.getBoundingClientRect()??null))},[O,H]),qe=s.useCallback(()=>{(O||H)&&(te(!1),Te(null))},[O,H]),Ye={...P};delete Ye.disabled,delete Ye.className,delete Ye.faded,delete Ye.useFaded,delete Ye.loading,delete Ye.onMouseLeave,delete Ye.onPointerEnter,delete Ye.onPointerLeave,delete Ye.onFocus,delete Ye.onBlur,j&&(Object.keys(Ye).forEach(He=>{/^on[A-Z]/.test(He)&&typeof Ye[He]=="function"&&delete Ye[He]}),Ye["aria-disabled"]="true");const ct=(typeof O=="string"?O:null)??(typeof E=="string"?E:null)??(typeof C=="string"?C:null)??(typeof $=="string"?$:null)??void 0,ut=typeof C=="string"?C:typeof $=="string"?$:ct,dt=(He,nt)=>t.jsx(Ue,{icon:He,label:nt??ut,className:et,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Xe=()=>ge==="dot"?t.jsxs(t.Fragment,{children:[dt(c),oe&&t.jsx("span",{className:`button__label ${z}`,children:Ge()})]}):f==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:dt(c)}),oe&&t.jsx("span",{className:`button__label ${z}`,children:Ge()})]}),X&&t.jsx("span",{className:"button__right",children:dt(u)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:dt(c,C??$)}),oe&&t.jsx("span",{className:`button__label ${z}`,children:Ge()}),X&&t.jsx("span",{className:"button__right",children:dt(u)})]}),tt=!!o&&!j;return t.jsxs(t.Fragment,{children:[t.jsx(tt?"a":"button",{...Ye,ref:Se,...tt?{href:o,target:i,rel:l??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:j&&!I},className:Re,"aria-pressed":We,"aria-label":ut,"aria-disabled":j&&(tt||I)?!0:void 0,style:Ce,onClick:Ee,onMouseLeave:Oe,onPointerEnter:He=>{Pe(),!j&&typeof P.onPointerEnter=="function"&&P.onPointerEnter(He)},onPointerLeave:He=>{qe(),!j&&typeof P.onPointerLeave=="function"&&P.onPointerLeave(He)},onFocus:He=>{Pe(),!j&&typeof P.onFocus=="function"&&P.onFocus(He)},onBlur:He=>{j||ye(He),qe(),!j&&typeof P.onBlur=="function"&&P.onBlur(He)},children:Xe()}),Q&&H?t.jsx(Rn,{anchorRect:ke,title:H.title,items:H.items,onClose:ze}):Q&&ct?t.jsx(kn,{anchorRect:ke,text:ct,onClose:ze}):null]})}function it(e,n,a){const r=s.useRef(null);return s.useLayoutEffect(()=>{const o=r.current?.parentElement??null;return n(o,e),()=>a(o)},[e,n,a]),r}const da={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},kr=new WeakMap;function Ar(e){if(e)return kr.get(e)}function Dt(e,n){e&&(e.style.setProperty(da.title,n.title),e.style.setProperty(da.description,n.description),kr.set(e,n))}function St(e){e&&(e.style.removeProperty(da.title),e.style.removeProperty(da.description),kr.delete(e))}const zs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Ws(){const e=it(zs,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const qs={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Us(){const e=it(qs,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Gs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ks(){const e=it(Gs,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Ys={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Zs(){const e=it(Ys,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Xs={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Js(){const e=it(Xs,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Qs={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function ei(){const e=it(Qs,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const ti={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function ni(){const e=it(ti,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const ai={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ri(){const e=it(ai,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const oi={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function si(){const e=it(oi,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const ii={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function li(){const e=it(ii,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const ci={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function ui(){const e=it(ci,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:t.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const di={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function pi(){const e=it(di,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const mi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function hi(){const e=it(mi,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const fi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Ci(){const e=it(fi,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const s2=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],gi={main:Ws,soft:Us,sub:Ks,deep:Zs,softSub:Js,warm:ei,dark:ni,radial:ri,diagonal:si,dots:li,outline:ui,success:pi,naver:hi,instagram:Ci};function bi({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:o=.1,lineHeightRatio:i=1.4}={}){const l=_=>Math.max(a,Math.min(r,Number(_))),c=_=>{try{const b=localStorage.getItem(_),A=b?Number(b):1;return Number.isFinite(A)?l(A):l(1)}catch{return l(1)}},[u,d]=s.useState(()=>c(e)),[p,m]=s.useState(e);p!==e&&(m(e),d(c(e))),s.useEffect(()=>{try{localStorage.setItem(e,String(u))}catch{}},[e,u]);const h=_=>{d(typeof _=="function"?b=>l(_(b)):l(_))},C=()=>h(_=>+(_+o).toFixed(6)),y=()=>h(_=>+(_-o).toFixed(6)),f=u<r-Number.EPSILON,v=u>a+Number.EPSILON,g=Math.round(n*u),x=Math.round(g*i);return{scale:u,setScale:h,increase:C,decrease:y,canIncrease:f,canDecrease:v,fontSize:g,lineHeight:x}}const yi=s.createContext(null);function i2(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const vi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function l2(e){const n=s.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Bo.useSyncExternalStore(n,()=>vi(e),()=>!1)}function c2(e){const[n,a]=s.useState(vi(e));return s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),o=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",o):i.addListener&&i.addListener(o),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",o):i.removeListener&&i.removeListener(o)}},[e]),n}const u2=typeof Bo.useSyncExternalStore=="function"?l2:c2;function on(e){const n=s.useContext(yi),a=u2(e);return n&&typeof n.mobile=="boolean"&&i2(e)?n.mobile:a}function Nr(e){const n=s.useRef(e);return s.useEffect(()=>{n.current=e}),n}function xi(e,n){const a=Nr(n);s.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Br=" \xB7 ",_i=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Br)?e.split(Br).pop()??e:e})(),d2=s.createContext(!1),Pn=[];let wi=null;function p2(e){const n=s.useContext(d2);s.useEffect(()=>{if(n||typeof e!="string"||!e)return;Pn.length===0&&(wi=document.title);const a={text:_i?`${e}${Br}${_i}`:e};return Pn.push(a),document.title=a.text,()=>{const r=Pn.lastIndexOf(a);r>=0&&Pn.splice(r,1),document.title=Pn.length?Pn[Pn.length-1].text:wi??document.title}},[e,n])}const ki=[{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 m2(e,n,a){const{t:r}=de.useTranslation(),[o,i]=s.useState(()=>{const y=a?.initialPageSize;return y&&ki.some(f=>f.value===y)?y:"25"}),[l,c]=s.useState(1),[u,d]=s.useState(n);Object.is(u,n)||(d(n),l!==1&&c(1));const p=s.useMemo(()=>ki.map(y=>({...y,label:r("visits.showN",{n:y.value})})),[r]),m=s.useCallback(y=>{i(y),c(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(o)));(l>h||l<1||!Number.isFinite(l))&&c(Math.min(Math.max(1,Number.isFinite(l)?l:1),h));const C=Math.min(Math.max(1,Number.isFinite(l)?l:1),h);return{pageRows:s.useMemo(()=>e.slice((C-1)*Number(o),C*Number(o)),[e,C,o]),pageSizeProps:{options:p,value:o,onChange:m},paginationProps:{page:C,total:h,onChange:c},setPage:c}}function h2(){const[e,n]=s.useState(null),a=s.useCallback(o=>{n(i=>i?.key===o?{key:o,asc:!i.asc}:{key:o,asc:!0})},[]),r=s.useCallback((o,i)=>({label:o,sortDir:e?.key===i?e.asc?"asc":"desc":null,onClick:()=>a(i)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}const sn="\uC804\uCCB4";Object.fromEntries(Object.entries(w0).map(([e,{nucleus:n}])=>[e,n]));const f2={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"})},C2={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"})},g2={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 b2(e,n){if("place"in n)return f2[n.place](e);const a=C2[n.vowel](e);return n.glide?`${a} \xB7 ${g2[n.glide](e)}`:a}const y2=(e,{defaultValue:n})=>n,Ai=(e,n)=>({jamos:e,phonetic:n,tooltip:b2(y2,n)}),mn=(e,n)=>n.map(a=>Ai([a],{place:e})),xt=(e,n,a)=>Ai([...e],a?{vowel:n,glide:a}:{vowel:n}),Dr={cho:[mn("labial",["\u3142","\u3143","\u314D","\u3141"]),mn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),mn("alveolar",["\u3145","\u3146"]),mn("palatal",["\u3148","\u3149","\u314A"]),mn("velar",["\u3131","\u3132","\u314B"]),mn("glottal",["\u314E"])],jung:[[xt("\u3163","frontHigh"),xt("\u315F","frontHigh","w"),xt("\u3162","frontHigh","velar")],[xt("\u3161","backHighUnrounded")],[xt("\u315C","backHighRounded"),xt("\u3160","backHighRounded","j")],[xt("\u3154\u3150","frontMid"),xt("\u3156\u3152","frontMid","j"),xt("\u3159\u315A\u315E","frontMid","w")],[xt("\u3153","backMidUnrounded"),xt("\u3155","backMidUnrounded","j"),xt("\u315D","backMidUnrounded","w")],[xt("\u3157","backMidRounded"),xt("\u315B","backMidRounded","j")],[xt("\u314F","low"),xt("\u3151","low","j"),xt("\u3158","low","w")]],jong:[mn("labial",["\u3142","\u3141"]),mn("alveolar",["\u3137","\u3134","\u3139"]),mn("velar",["\u3131","\u3147"])]},v2=e=>e===x2?[]:Array.from(e),x2="__NO_CODA__",Sr=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:o})=>({v:a.join(""),phonetic:r,tooltip:o}))),Ni={cho:Sr(Dr.cho),jung:Sr(Dr.jung),jong:Sr(Dr.jong)};Ni.jung.flat().forEach(({v:e})=>{for(const n of v2(e));}),new Set(Ni.cho.flat().map(e=>e.v));function _2(e,n=!0){const a=Nr(e);s.useEffect(()=>{if(n)return $n(()=>{a.current?.()})},[n,a])}function Ma(){const[e,n]=s.useState(null),a=s.useCallback(i=>n(i.getBoundingClientRect()),[]),r=s.useCallback(()=>n(null),[]),o=s.useCallback(i=>{const l=i.getBoundingClientRect();n(c=>c?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:o}}function Bi(e="warning"){const[n,a]=s.useState(""),[r,o]=s.useState(e),[i,l]=s.useState(0),c=s.useCallback((m,h)=>{o(h),a(m),l(C=>C+1)},[]),u=s.useCallback(m=>c(m,"warning"),[c]),d=s.useCallback(m=>c(m,"normal"),[c]),p=s.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:i,showToast:c,showWarning:u,showNormal:d,clearToast:p}}function pa({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[o,i]=s.useState(!1),[l,c]=s.useState({}),u=s.useRef(null),d=s.useRef(null),p=s.useCallback(()=>{u.current&&c(e(u.current.getBoundingClientRect()))},[e]);s.useEffect(()=>{if(!o)return;p();const C=v=>{const g=v.target;r&&g.closest?.(r)||u.current?.contains(g)||d.current?.contains(g)||i(!1)};document.addEventListener("mousedown",C),document.addEventListener("pointerdown",C);const y=v=>{d.current?.contains(v.target)||(n==="reposition"?p():n==="close"&&i(!1))};n!=="ignore"&&window.addEventListener("scroll",y,!0);const f=()=>{a==="reposition"?p():a==="close"&&i(!1)};return a!=="ignore"&&window.addEventListener("resize",f),()=>{document.removeEventListener("mousedown",C),document.removeEventListener("pointerdown",C),n!=="ignore"&&window.removeEventListener("scroll",y,!0),a!=="ignore"&&window.removeEventListener("resize",f)}},[o,p,n,a,r]),s.useEffect(()=>{if(o)return $n(()=>i(!1))},[o]);const m=s.useCallback(()=>i(C=>!C),[]),h=s.useCallback(()=>i(!1),[]);return{open:o,setOpen:i,toggle:m,close:h,style:l,triggerRef:u,menuRef:d}}function w2(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:o,playMs:i=1100,feedbackMs:l=1500}={}){const[c,u]=s.useState([]),[d,p]=s.useState(0),[m,h]=s.useState("idle"),[C,y]=s.useState(null),[f,v]=s.useState([]),[g,x]=s.useState(null),[_,b]=s.useState(0),A=s.useRef(0),w=s.useCallback(R=>{A.current=typeof R=="function"?R(A.current):R,b(A.current)},[]),D=s.useRef(r),B=s.useRef(o);s.useEffect(()=>{D.current=r,B.current=o},[r,o]);const k=s.useRef([]),N=()=>{k.current.forEach(clearTimeout),k.current=[]},I=(R,M)=>{k.current.push(setTimeout(M,R))};s.useEffect(()=>()=>N(),[]);const O=c[d]?.id??null,E=s.useRef(null),H=s.useCallback(()=>{N(),h("playing"),v([]),x(null),w(0);let R=0;e.forEach((M,L)=>{I(R,()=>{p(L),y(M.id),D.current?.(M)}),I(R+1e3,()=>{y(null),v(z=>[...z,M.id])}),R+=1300}),I(R,()=>{h("done"),B.current?.({score:0,total:e.length})})},[e,w]),T=s.useCallback((R,M)=>{if(M>=R.length){h("done"),B.current?.({score:A.current,total:R.length});return}E.current=null,p(M),x(null),h("playing"),y(R[M].id),D.current?.(R[M]),I(i,()=>{y(null),h("waiting")})},[i]),K=s.useCallback(()=>{N();const R=ca(e);u(R),w(0),v([]),T(R,0)},[e,T,w]),W=s.useCallback(()=>{n==="playback"?(u(e),H()):K()},[n,e,H,K]),V=s.useCallback(()=>{N(),h("idle"),y(null),v([]),x(null),p(0),w(0),u([])},[w]),U=e.map(R=>R.id).join("|");s.useEffect(()=>(a?W():V(),()=>N()),[n,U,a]);const re=s.useCallback(R=>{m!=="waiting"||n==="playback"||E.current===d||(E.current=d,x(R),R===c[d]?.id&&w(M=>M+1),n==="exam"?(h("playing"),I(400,()=>T(c,d+1))):(h("feedback"),I(l,()=>T(c,d+1))))},[m,n,c,d,T,l,w]),P=n==="playback"?e.length:c.length;return{bind:{activeSpeakerId:C,playedIds:f,selectedId:g,answerId:O,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:re},index:d,total:P,score:_,phase:m,done:m==="done",start:W,reset:V}}function k2({title:e,description:n,actionLabel:a,onAction:r,bg:o,color:i,size:l="medium",actionVariant:c,titleColor:u,descriptionColor:d,className:p=""}){const m=o??i??"main",h=s.useRef(null),[C,y]=s.useState("main"),f=on("(max-width: 767px)"),v=s.useRef({title:!1,description:!1});s.useLayoutEffect(()=>{const _=h.current;if(!_)return;const b=Ar(_),A=(w,D,B)=>{if(B!==void 0)_.style.setProperty(D,B),v.current[w]=!0;else if(v.current[w]){const k=b?.[w];k?_.style.setProperty(D,k):_.style.removeProperty(D),v.current[w]=!1}};A("title","--promo-banner-bg-title",u),A("description","--promo-banner-bg-description",d)},[u,d,m]),s.useLayoutEffect(()=>{const _=h.current;if(!_)return;const b=Ar(_);y(b?.actionVariant??"main")},[m]);const g=ve("promo-banner",`promo-banner--${l}`,p),x=gi[m];return t.jsxs("div",{ref:h,className:g,role:"note",children:[t.jsx(x,{}),t.jsxs("div",{className:"promo-banner__text",children:[t.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),n&&t.jsx("span",{className:"promo-banner__description body-3",children:n})]}),a&&r&&t.jsx(le,{htmlType:"button",size:40,variant:c??C,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...f?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function A2({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":o}){const{t:i}=de.useTranslation(),l=o??i("topBanner.ariaLabel","\uBC30\uB108"),c=s.Children.toArray(e),u=c.length,[d,p]=s.useState(0),[m,h]=s.useState(!1),[C,y]=s.useState(!1),f=m||C,v=u>0?d%u:0;return s.useEffect(()=>{if(u<2||n<=0||f)return;const g=window.setInterval(()=>p(x=>(x+1)%u),n);return()=>window.clearInterval(g)},[u,n,f]),u===0?null:t.jsxs("section",{className:ve("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>y(!0),onBlur:g=>{g.currentTarget.contains(g.relatedTarget)||y(!1)},children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${v*100}%)`},children:c.map((g,x)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":x!==v,...x!==v?{inert:!0}:{},children:g},x))})}),u>1&&t.jsx("div",{className:`top-banner__dots${(a?.[v]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((g,x)=>t.jsx("button",{type:"button",className:`top-banner__dot${x===v?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:u,index:x+1,defaultValue:`${u}\uAC1C \uC911 ${x+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":x===v,onClick:()=>p(x)},x))})]})}function N2({title:e,body:n,open:a=!1,onToggle:r,avatar:o,titleClassName:i="body-2",bodyClassName:l="body-2",className:c=""}){const{t:u}=de.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),role:"listitem",children:[t.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const p=d.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),h=m.indexOf(d.currentTarget);(d.key==="ArrowDown"?m[h+1]:m[h-1])?.focus()}},children:[o&&t.jsx("div",{className:"accordion-item__avatar",children:o}),t.jsx("div",{className:`accordion-item__title ${i}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(Ue,{icon:a?"chevron-up":"chevron-down",label:a?u("accordion.collapse","\uC811\uAE30"):u("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function B2({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:o}){const[i,l]=s.useState(n);return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,u)=>t.jsx(N2,{title:c.title,body:c.body,avatar:c.avatar,open:u===i,onToggle:()=>l(u===i?-1:u),bodyClassName:o},u))})}function D2(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("polyline",{points:"2,6 5,9 10,3"})})}function S2(){return t.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[t.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function T2(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:t.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function lt(e){const{t:n}=de.useTranslation(),{type:a="bar",size:r,className:o="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:A,number:w,position:D="top-right",onClick:B,animate:k=!1}=e,N=A??"check",I=w!==void 0?"number":N,O=typeof r=="number"?r:32,E=ve("circle-badge",`circle-badge--${I}`,`circle-badge--${D}`,`circle-badge--${O}`,k?"circle-badge--animate":"",B?"circle-badge--clickable":"",o),H=w!==void 0?n("badge.nthSelected",{n:w,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:n("badge.selected","\uC120\uD0DD\uB428"),remove:n("badge.remove","\uC81C\uAC70"),minus:n("badge.exclude","\uC81C\uC678")}[N];return t.jsxs("span",{className:E,onClick:B,onKeyDown:B?T=>{T.key!=="Enter"&&T.key!==" "||(T.preventDefault(),T.currentTarget.click())}:void 0,"aria-label":l?void 0:i??H,"aria-hidden":l||void 0,role:B?"button":l?void 0:"img",tabIndex:B?0:void 0,children:[w!==void 0&&w,w===void 0&&N==="check"&&t.jsx(D2,{}),w===void 0&&N==="remove"&&t.jsx(S2,{}),w===void 0&&N==="minus"&&t.jsx(T2,{})]})}const{label:c,children:u,variant:d="default",fill:p="filled",minWidth:m,iconLeft:h,iconRight:C,color:y}=e,f=typeof r=="number"?"medium":r??"medium",v={small:"caption-2b",medium:"body-3b",large:"body-2b"}[f]??"body-2b",g={small:12,medium:14,large:16}[f]??14,x=ve("badge",`badge--${d}`,`badge--${f}`,p!=="filled"?`badge--${p}`:"",v,o),_=y?.startsWith("--")?`var(${y})`:y,b=m!==void 0||_?{...m!==void 0?{minWidth:typeof m=="number"?`${m}px`:m}:{},..._?{"--badge-color":_}:{}}:void 0;return t.jsxs("span",{className:x,style:b,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[h&&t.jsx(Ue,{icon:h,size:g,className:"badge__icon"}),c??u,C&&t.jsx(Ue,{icon:C,size:g,className:"badge__icon"})]})}function La({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:o}=de.useTranslation(),i=r==="small"?40:48,[l,c]=s.useState([]),u=s.useMemo(()=>{const v=[{title:null,columns:e}];let g=e;for(const x of l){const _=g?.[x.ci]?.items?.[x.ii];if(!_||!Array.isArray(_.children)||!_.children.length)break;g=[{title:null,items:_.children}],v.push({title:_.label||null,columns:g})}return v},[e,l]),d=u[u.length-1],p=u.length-1,m=s.useCallback(()=>c(v=>v.slice(0,Math.max(0,Math.min(v.length,p)-1))),[p]),h=s.useRef(null),C=s.useRef(null),y=u.length;s.useEffect(()=>{C.current||(C.current=document.activeElement);let v=0,g=0;const x=()=>{const _=h.current?.querySelector("button:not([disabled])");if(_&&_.offsetParent){_.focus({preventScroll:!0});return}g++<20&&(v=requestAnimationFrame(x))};return v=requestAnimationFrame(x),()=>cancelAnimationFrame(v)},[y]),s.useEffect(()=>()=>{C.current?.focus?.({preventScroll:!0})},[]);const f=s.useCallback((v,g,x)=>{if(v){if(Array.isArray(v.children)&&v.children.length){c(_=>[..._.slice(0,p),{ci:g,ii:x}]);return}try{typeof v.onClick=="function"&&v.onClick()}catch{}try{v&&v.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n,p]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(u.length>1||d.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[u.length>1?t.jsx(le,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:o("common.back","\uB4A4\uB85C"),onClick:m,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:h,children:d.columns&&d.columns.map((v,g)=>t.jsxs("div",{className:"tooltip-menu__column",children:[v.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:v.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(v.items||[]).map((x,_)=>t.jsx(le,{htmlType:"button",className:"tooltip-menu__item",size:i,type:x.label?"bar":"dot",icon:x.selected?"check":x.icon||"none",rightIcon:Array.isArray(x.children)&&x.children.length?"chevron-right":x.badgeCount?t.jsx(lt,{type:"dot",position:"inline",number:Math.min(x.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:x.label,ariaLabel:x.label&&x.badgeCount&&x.badgeCount>0?o("nav.badgeLabel",{label:x.label,count:x.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):x.label,onClick:()=>f(x,g,_),selected:x.selected,disabled:x.disabled,showTooltipInfo:x.tooltip||!1,useBorder:!1,align:"left"},_))})]},g))})]})}const $a=52,Gn=10,Di=e=>e&&e>0?e:0;function Si({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:o,moreItems:i=[]}){const{t:l}=de.useTranslation(),c=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",d=r==="manager"?l("nav.modeLabelMalgwi","\uB9D0\uADC0"):l("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=s.useRef(null),[m,h]=s.useState(0),C=e.length;s.useEffect(()=>{const P=p.current;if(!P||(h(P.clientWidth),typeof ResizeObserver>"u"))return;const R=new ResizeObserver(M=>h(M[0].contentRect.width));return R.observe(P),()=>R.disconnect()},[]);const y=$a+1,f=s.useRef(!1),v=m>0&&i.length===0&&f.current?m+y:m,g=C*($a+Gn)-Gn<=v,x=m<=0?C:i.length>0?Math.floor((m+Gn)/($a+Gn)):g?C:Math.floor((v-y+Gn)/($a+Gn)),_=m>0&&x<C,b=_?x:C,A=e.slice(0,b),w=e.slice(b),D=_||i.length>0;s.useEffect(()=>{f.current=D});const B=s.useCallback(P=>({position:"fixed",bottom:window.innerHeight-P.top+8,right:window.innerWidth-P.right,zIndex:1e4}),[]),k=s.useId(),{open:N,toggle:I,close:O,style:E,triggerRef:H,menuRef:T}=pa({computeStyle:B,onScroll:"ignore",onResize:"ignore"}),K=s.useCallback((P,R)=>R>0?l("nav.badgeLabel",{label:P,count:R,defaultValue:"{{label}}, {{count}}\uAC1C"}):P,[l]),W=s.useCallback(()=>o?.(c),[o,c]),V=s.useMemo(()=>w.find(P=>!!P.key&&P.key===n)??i.find(P=>P.selected||P.key&&P.key===n),[w,n,i]),U=s.useMemo(()=>[{items:[...w.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:!!P.key&&P.key===n,closeOnSelect:!0,disabled:P.state==="disabled",onClick:()=>{P.state!=="disabled"&&(P.key&&a&&a(P.key),O())}})),...i.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:P.selected??(!!P.key&&P.key===n),closeOnSelect:!0,onClick:()=>{P.onClick?.(),O()}}))]}],[w,i,n,a,O]),re=[...w,...i].reduce((P,R)=>P+Di(R.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav","aria-label":l("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[o&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(le,{htmlType:"button",size:52,type:"dot",icon:u,ariaLabel:d,className:"bottom-nav-item",onClick:W})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",ref:p,children:A.map((P,R)=>{const M=Di(P.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(le,{htmlType:"button",size:52,type:"dot",icon:P.icon,ariaLabel:K(P.label,M),selected:!!P.key&&P.key===n,disabled:P.state==="disabled",className:"bottom-nav-item",onClick:()=>P.key&&a?.(P.key)}),M>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(lt,{type:"dot",position:"top-right",number:Math.min(M,99),size:24})})]},P.key??`__slot-${R}`)})}),D&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),t.jsx("div",{className:"bottom-nav__right",children:t.jsxs("div",{ref:H,className:"bottom-nav__slot",children:[t.jsx(le,{htmlType:"button",size:52,type:"dot",icon:V?.icon??"ellipsis",ariaLabel:K(V?.label??l("nav.more","\uB354\uBCF4\uAE30"),re),selected:!!V,className:"bottom-nav-item",onClick:I,"aria-expanded":N,"aria-controls":N?k:void 0}),re>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(lt,{type:"dot",position:"top-right",number:Math.min(re,99),size:24})}),N&&Ut.createPortal(t.jsx("div",{id:k,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:E,ref:T,children:t.jsx(La,{columns:U,onClose:O})}),document.body)]})})]})]})}function Ti(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function j2(e){const{t:n}=de.useTranslation(),{activeKey:a,unreadCount:r,onDebug:o,onNotification:i,onSetting:l,onHelp:c,onAccount:u}=e||{},d="default";return o||i||l||c||u?t.jsxs("div",{className:"side-nav__footer",children:[o&&t.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:o,selected:a==="debug"}),i&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"bell",ariaLabel:Ti(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&t.jsx(lt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&t.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),c&&t.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),u&&t.jsx(le,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function ji(e){const{t:n}=de.useTranslation(),{item:a,itemKey:r,label:o,icon:i,active:l,onClick:c,style:u,state:d,labelStyle:p}=e||{},m=a?.key??r??"",h=a?.label??o??"",C=a?.icon??i??"",y=a?.badge??0,f=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(Ue,{icon:C,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),v=d==="disabled",g=`side-nav__item ${l?"active":""} ${d||""} ${v?"disabled":""} ${a?.child?"side-nav__item--child":""}`,x=s.useCallback(_=>{if(v)return;const b=_.detail>0;if(b)try{_.currentTarget.blur()}catch{}c?.(m,_.currentTarget,b)},[v,m,c]);return t.jsxs("button",{type:"button",className:g,onClick:x,"aria-label":typeof h=="string"?Ti(n,h,y):void 0,"aria-current":l?"page":void 0,style:u,"aria-disabled":v,children:[f,t.jsx("span",{className:"side-nav__label button-1 f",style:p,children:h}),y>0&&t.jsx(lt,{type:"dot",position:"inline",number:Math.min(y,99),size:24,"aria-hidden":!0}),d==="loading"&&t.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":n("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function Ei(e){const{t:n}=de.useTranslation(),{items:a=[],activeKey:r,onChange:o,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}=e||{},C=m==="manager",y=s.useCallback(()=>h?.(C?"malgwi":"manager"),[h,C]);return t.jsxs("nav",{"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,v)=>t.jsxs(s.Fragment,{children:[f.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(ji,{item:f,active:!!f.key&&f.key===r,state:f.disabled?"disabled":void 0,onClick:(g,x,_)=>{if(f.disabled)return;if(f.href){if(window.open(f.href,"_blank","noopener,noreferrer"),_)try{x?.blur()}catch{}return}o?.(f.key);try{const A=document.querySelector(".content-area");A?A.scrollTop=0:window.scrollTo({top:0})}catch{}if(!_)return;try{x?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const b=document.querySelector(".header");if(b&&!(typeof b.matches=="function"&&b.matches(":hover"))){b.classList.add("header--force-collapsed");const A=()=>{b.classList.remove("header--force-collapsed"),b.removeEventListener("mouseenter",A)};b.addEventListener("mouseenter",A)}}})]},f.key??`side-nav__item-${v}`)),h&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),h&&t.jsx(ji,{item:{key:"__mode-switch__",label:C?n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:C?"arrow-left":"arrow-right"},onClick:y})]}),t.jsx(j2,{activeKey:r,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var Tr='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2080_3066)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="black"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="black"/>%0A<path d="M46.4288 17.8571H25.0002C15.138 17.8571 7.14307 25.852 7.14307 35.7143V57.1428C7.14307 67.0051 15.138 75 25.0002 75H46.4288C56.291 75 64.2859 67.0051 64.2859 57.1428V35.7143C64.2859 25.852 56.291 17.8571 46.4288 17.8571Z" fill="%234DCDC0"/>%0A<path d="M34.8607 50.7393C25.8285 60.6821 10.6142 61.6678 0.385667 53.1643C-0.0821902 52.775 -0.13219 52.0678 0.278524 51.6178L16.3535 33.925L34.8607 50.7393Z" fill="%234DCDC0"/>%0A<path d="M53.5714 25H32.1428C22.2821 25 14.2856 32.9964 14.2856 42.8571V64.2857C14.2856 74.1464 22.2821 82.1429 32.1428 82.1429H48.2535C49.2178 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7214 51.8928 85.6321C62.8392 84.675 71.4285 75.4821 71.4285 64.2857V42.8571C71.4285 32.9964 63.4321 25 53.5714 25Z" fill="%234DCDC0"/>%0A<path d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23499CDF"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="white"/>%0A<path d="M36.0715 57.1429C35.0287 57.1429 33.9822 56.875 33.0358 56.3286C32.1822 55.8357 31.8894 54.7429 32.3858 53.8893C32.8787 53.0357 33.9715 52.7429 34.8251 53.2393C35.8037 53.8036 37.043 53.6429 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3536 40.4322 35.9107 37.5072 35.7286C36.5215 35.6679 35.5715 35.8464 34.693 36.2679C33.8037 36.6929 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0429C34.5751 32.3714 36.1537 32.0679 37.7322 32.1643C42.4894 32.4607 46.3072 36.4286 46.4251 41.1964C46.4822 43.5286 45.6715 45.7786 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9357C41.8965 53.2464 41.3037 54.4357 40.368 55.375C39.2001 56.5429 37.6465 57.15 36.0751 57.15L36.0715 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2080_3066">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',jr='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7374)">%0A<path d="M237.151 26.0393V72.7214H216.65V26.0393H237.151ZM234.408 70.0464V28.7179H219.254V70.0464H234.408ZM261.495 76.3607H258.819V48.9679H247.575V75.4679H244.899V23.9821H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3607Z" fill="black"/>%0A<path d="M299.722 69.2571C302.076 68.775 304.031 68.1464 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.789 72.0357C297.435 72.4929 295.045 72.7214 292.623 72.7214H272.257V25.6964H275V69.975H292.623C294.998 69.975 297.364 69.7357 299.722 69.2536V69.2571ZM311.69 76.4321V23.6393H314.433V76.3643L311.69 76.4321Z" fill="black"/>%0A<path d="M340.556 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.329 62.2643 333.632 65.925C330.935 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.33 63.1107C334.617 59.3572 336.354 54.5179 337.542 48.5893C338.73 42.6643 339.369 36.0393 339.461 28.7143H324.992V26.0357H356.602V28.7143H342.201C342.155 35.9 341.605 42.3072 340.556 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="black"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="black"/>%0A<path d="M181.886 47.8714V57.275C179.097 58.5571 174.73 59.1964 168.791 59.1964H168.174V76.3607H158.299V59.1964H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8714H181.886ZM148.971 34.2786V24.875H177.634V47.05H167.76V34.2821H148.971V34.2786ZM194.64 76.3607H184.765V23.6393H194.64V76.3643V76.3607Z" fill="black"/>%0A<path d="M48.1549 17.8571H26.7511C16.9002 17.8571 8.91455 25.852 8.91455 35.7143V57.1428C8.91455 67.0051 16.9002 75 26.7511 75H48.1549C58.0058 75 65.9915 67.0051 65.9915 57.1428V35.7143C65.9915 25.852 58.0058 17.8571 48.1549 17.8571Z" fill="%234DCDC0"/>%0A<path d="M36.6007 50.7393C27.579 60.6821 12.3823 61.6678 2.1655 53.1643C1.69818 52.775 1.64824 52.0678 2.05848 51.6178L18.1149 33.925L36.6007 50.7393Z" fill="%234DCDC0"/>%0A<path d="M55.2897 25H33.8859C24.0365 25 16.0493 32.9964 16.0493 42.8571V64.2857C16.0493 74.1464 24.0365 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7214 53.6131 85.6321C64.5469 84.675 73.1262 75.4821 73.1262 64.2857V42.8571C73.1262 32.9964 65.139 25 55.2897 25Z" fill="%234DCDC0"/>%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23499CDF"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="white"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7374">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',E2='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';function Mi({appMode:e}){const{t:n}=de.useTranslation(),a=e==="manager",r=a?jr:Tr,o=E2,i=on("(min-width: 768px) and (max-width: 1023px)");return t.jsx("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:i?t.jsx("img",{src:o,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):t.jsx("img",{src:r,alt:a?n("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):n("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function Li({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:o,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}){const{t:C}=de.useTranslation(),y=on("(max-width: 767px)"),f=s.useMemo(()=>(a??[]).filter(I=>!I.section&&(I.key||I.label)).map(I=>({key:I.key,label:typeof I.label=="string"?I.label:void 0,icon:I.icon,state:I.disabled?"disabled":void 0,badgeCount:I.badge})),[a]),v=s.useCallback(I=>{const O=a?.find(E=>E.key===I);if(!O?.disabled){if(O?.href){window.open(O.href,"_blank","noopener,noreferrer");return}n?.(I)}},[a,n]),g=s.useMemo(()=>{const I=[];return l&&I.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&I.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),d&&I.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),p&&I.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&I.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:u}),I},[C,l,c,d,p,u,i]),x=s.useCallback(I=>({position:"fixed",top:I.bottom+8,right:Math.max(8,window.innerWidth-I.right),zIndex:1e4}),[]),_=s.useId(),{open:b,toggle:A,close:w,style:D,triggerRef:B,menuRef:k}=pa({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),N=s.useMemo(()=>[{items:g.map(I=>({label:I.label,icon:I.icon,badgeCount:I.badgeCount,selected:I.selected??(!!I.key&&I.key===e),closeOnSelect:!0,onClick:()=>{I.onClick?.(),w()}}))}],[g,e,w]);return t.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(Mi,{appMode:m}),t.jsxs("div",{className:"header__menu-button",ref:B,children:[t.jsx(le,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:c&&i&&i>0?C("nav.badgeLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:A,"aria-expanded":b,"aria-controls":b?_:void 0}),!!c&&!!i&&i>0&&t.jsx(lt,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),b&&Ut.createPortal(t.jsx("div",{id:_,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:D,ref:k,children:t.jsx(La,{columns:N,onClose:w})}),document.body)]})]}),t.jsx(Ei,{items:a,activeKey:e??void 0,onChange:n,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}),y&&t.jsx(Si,{items:f,activeKey:e??void 0,onChange:v,appMode:m,onAppModeChange:h})]})}const M2=Li;var L2={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."},$2={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],yearMonth:"{{year}}\uB144 {{month}}\uC6D4",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704"},R2={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},P2={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},I2={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},F2={selected:"\uC120\uD0DD\uB428"},O2={placeholder:"\uC120\uD0DD"},H2={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},V2={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"},z2={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C"},W2={language:{training:{label:"\uD6C8\uB828 \uC5B8\uC5B4",sub:"\uD6C8\uB828\uC5D0 \uC0AC\uC6A9\uB418\uB294 \uB2E8\uC5B4\uC640 \uC74C\uC131 \uC5B8\uC5B4"}},notifications:{title:"\uC54C\uB9BC"},display:{fontSize:{small:"\uC791\uAC8C",large:"\uD06C\uAC8C"}},cache:{title:"\uCE90\uC2DC \uAD00\uB9AC",confirmMessage:"\uCE90\uC2DC({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",delete:"\uC0AD\uC81C",deleting:"\uC0AD\uC81C \uC911",cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"},trainingRecord:{label:"\uD6C8\uB828 \uAE30\uB85D",sub:"\uC624\uB298\uC758 \uD6C8\uB828 \uC9C4\uD589\uB960 \uBC0F \uD559\uC2B5 \uC77C\uC218"}}},button:{save:"\uC124\uC815 \uC800\uC7A5"},popup:{clear:{confirm:"\uCD08\uAE30\uD654"},update:{confirm:"\uC5C5\uB370\uC774\uD2B8"},cache:{title:"{{label}} \uC0AD\uC81C",message:"{{label}}({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"}},saved:"\u2713 \uC800\uC7A5\uB428",account:{title:"\uACC4\uC815",delete:{sub:"\uD0C8\uD1F4 \uD6C4 30\uC77C \uC774\uB0B4 \uC7AC\uAC00\uC785 \uC2DC \uBCF5\uAD6C \uAC00\uB2A5\uD569\uB2C8\uB2E4."}}},q2={addButton:"\uC774\uC6A9\uAD8C \uCD94\uAC00\uD558\uAE30",couponButton:"\uCFE0\uD3F0 \uC785\uB825",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",segment:{personal:"\uB9D0\uADC0",org:"\uB9D0\uADC0\uB9E4\uB2C8\uC800"},org:{title:"\uD604\uC7AC \uC774\uC6A9\uAD8C",disc:"\uAE30\uAD00\uC5D0\uC11C \uC0AC\uC6A9 \uC911\uC778 \uC774\uC6A9\uAD8C \uC815\uBCF4\uC785\uB2C8\uB2E4.",empty:"\uB4F1\uB85D\uB41C \uAE30\uAD00 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",fallbackTitle:"\uAE30\uAD00 \uC774\uC6A9\uAD8C",startDate:"\uC2DC\uC791\uC77C",endDate:"\uB9CC\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04",duration:"\uC774\uC6A9 \uAE30\uAC04"},active:{infoTitle:"\uC774\uC6A9 \uC815\uBCF4",refund:"\uD658\uBD88 \uC694\uCCAD",startDate:"\uC0AC\uC6A9 \uC2DC\uC791\uC77C",endDate:"\uC885\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04"},pending:{title:"\uBCF4\uC720",empty:"\uB300\uAE30 \uC911\uC778 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}},U2={profile:{planSuffix:"\uD50C\uB79C",plan:"\uD50C\uB79C"},basicInfo:{name:{placeholder:"\uD64D\uAE38\uB3D9"}},security:{title:"\uBCF4\uC548",password:{label:"\uBE44\uBC00\uBC88\uD638",currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},twoFactor:{label:"2\uB2E8\uACC4 \uC778\uC99D",sub:"\uACC4\uC815 \uBCF4\uC548\uC744 \uAC15\uD654\uD558\uC138\uC694"}}},G2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},K2={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",selectInOrder:"\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",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:{eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"}},Y2={totalCount:"\uAC1C\uC758 \uD6C8\uB828 \uBB36\uC74C",renameGroup:"\uADF8\uB8F9 \uC774\uB984 \uBC14\uAFB8\uAE30",itemCount:"\uD6C8\uB828 \uAC1C\uC218",menu:{edit:"\uD6C8\uB828 \uBB36\uC74C \uC218\uC815",rename:"\uC774\uB984 \uBC14\uAFB8\uAE30",move:"\uADF8\uB8F9 \uC774\uB3D9",duplicate:"\uD6C8\uB828 \uBB36\uC74C \uBCF5\uC0AC",publish:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30"},sort:{customers:"\uD6C8\uB828 \uACE0\uAC1D"},copyLink:"\uB9C1\uD06C \uBCF5\uC0AC",removeLink:"\uB9C1\uD06C \uC81C\uAC70",linkRemoved:"\uB9C1\uD06C\uAC00 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",linkSaveFirst:"\uBA3C\uC800 \uD6C8\uB828 \uBB36\uC74C\uC744 \uC800\uC7A5\uD574\uC8FC\uC138\uC694.",linkSaveFirstHint:"\uC800\uC7A5\uB41C \uD6C8\uB828 \uBB36\uC74C\uC5D0\uC11C\uB9CC \uACF5\uC720 \uB9C1\uD06C\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",linkCopySelect:"\uBCF5\uC0AC\uAC00 \uB9C9\uD600 \uB9C1\uD06C\uB97C \uC120\uD0DD\uD588\uC2B5\uB2C8\uB2E4. Ctrl/\u2318+C\uB85C \uBCF5\uC0AC\uD558\uC138\uC694.",nameRequired:"\uD6C8\uB828 \uBB36\uC74C \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694.",itemRequired:"\uD6C8\uB828\uC744 1\uAC1C \uC774\uC0C1 \uB2F4\uC544\uC8FC\uC138\uC694.",randomAdd:"\uBB34\uC791\uC704 \uCD94\uAC00"},Z2={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",basicInfo:{editTooltip:"\uC218\uC815\uD558\uAE30"},member:{placeholder:"\uC774\uBA54\uC77C \uB610\uB294 \uC804\uD654",link:"\uC5F0\uACB0",linking:"\uC5F0\uACB0 \uC911\u2026"},device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addTooltip:"\uC0C8\uB85C \uC0DD\uC131",addButton:"\uAE30\uAE30 \uCD94\uAC00",listTooltip:"\uBAA9\uB85D \uBCF4\uAE30",listTitle:"\uCE21 \uAE30\uAE30 \uBAA9\uB85D",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",release:"\uD574\uC81C",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{title:"\uBC29\uBB38 \uC608\uC815",addTooltip:"\uC608\uC815 \uB4F1\uB85D",listTooltip:"\uC804\uCCB4 \uBCF4\uAE30",empty:"\uC608\uC815\uB41C \uBC29\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D",memoPlaceholder:"\uBC29\uBB38 \uC608\uC815 \uAD00\uB828 \uBA54\uBAA8\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694."},visitHistory:{title:"\uBC29\uBB38 \uC774\uB825",addTooltip:"\uC2E0\uADDC \uB4F1\uB85D",empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uC0C1\uD669",active:"\uD65C\uC131",inactive:"\uBE44\uD65C\uC131",copy:"\uB9C1\uD06C \uBCF5\uC0AC",copied:"\uB9C1\uD06C\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",visits:{title:"\uBC29\uBB38"},trainingRecord:{title:"\uACE0\uAC1D \uD6C8\uB828 \uAE30\uB85D"},status:{trainingSubtitle:"\uD6C8\uB828 \uD604\uD669"},detail:{session:{completedFmt:"\uC644\uB8CC {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:"\uC758 \uBC29\uBB38"},duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},X2={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"}}}},J2={title:"\uCFE0\uD3F0",subtitle:"\uCFE0\uD3F0 \uCF54\uB4DC\uB97C \uC785\uB825\uD558\uAC70\uB098 \uBCF4\uC720 \uCFE0\uD3F0\uC744 \uD655\uC778\uD558\uC138\uC694.",input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9",error:{invalid:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uCFE0\uD3F0 \uCF54\uB4DC\uC785\uB2C8\uB2E4.",alreadyUsed:"\uC774\uBBF8 \uC0AC\uC6A9\uB41C \uCFE0\uD3F0\uC785\uB2C8\uB2E4."},success:{applied:'"{{name}}" \uCFE0\uD3F0\uC774 \uC801\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.'},section:{owned:"\uBCF4\uC720 \uCFE0\uD3F0"},status:{used:"\uC0AC\uC6A9 \uC644\uB8CC",available:"\uC0AC\uC6A9 \uAC00\uB2A5"}},Q2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},ef={subtitle:"\uC5C5\uCCB4 \uBC0F \uBC95\uC778 \uC815\uBCF4\uB97C \uAD00\uB9AC\uD558\uC138\uC694.",editButton:"\uC815\uBCF4 \uC218\uC815",basicInfo:{title:"\uAE30\uBCF8 \uC815\uBCF4"},contactInfo:{title:"\uC5F0\uB77D\uCC98 \uC815\uBCF4"}},tf={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."}},nf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},af={colName:"\uB2E8\uC5B4\uD45C \uC774\uB984",open:"\uC5F4\uAE30",countSuffix:"\uAC1C\uC758 \uB2E8\uC5B4\uD45C",tab:{cards:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",tables:"\uB2E8\uC5B4\uD45C"},cardsEmpty:"\uC544\uC9C1 \uB9CC\uB4E0 \uB2E8\uC5B4\uD45C \uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",addCard:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC \uCD94\uAC00",menu:{publishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30",unpublishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0\uC11C \uB0B4\uB9AC\uAE30"},newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},rf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},of={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"\uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"}},sf={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},lf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},cf={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"}},uf={maxUses:"\uCD5C\uB300 \uC0AC\uC6A9 \uD69F\uC218 (\uBE44\uC6CC\uB450\uBA74 \uBB34\uC81C\uD55C)",redirect:"\uC774\uB3D9\uD560 \uD398\uC774\uC9C0 URL (\uBE44\uC6CC\uB450\uBA74 \uC571 \uBA54\uC778)",creating:"\uC0DD\uC131 \uC911\u2026",create:"\uB9C1\uD06C \uC0DD\uC131",created:"\u2713 \uB9C1\uD06C\uAC00 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4",copied:"\uBCF5\uC0AC\uB428!",copy:"\uBCF5\uC0AC",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",empty:"\uC0DD\uC131\uB41C \uB9C1\uD06C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",uses:"{{count}}\uD68C \uC0AC\uC6A9",expiresAt:"\uB9CC\uB8CC: {{date}}",createdAt:"\uC0DD\uC131: {{date}}",confirmDelete:"\uC0AD\uC81C\uD560\uAE4C\uC694?",deactivate:"\uBE44\uD65C\uC131\uD654",delete:"\uC0AD\uC81C",status:{active:"\uC720\uD6A8",expired:"\uB9CC\uB8CC",inactive:"\uBE44\uD65C\uC131"}},df={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},pf={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},mf={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",validationError:{brandAndProduct:"\uBE0C\uB79C\uB4DC\uC640 \uC81C\uD488\uBA85\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."},addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C",type:{hearingAid:"\uBCF4\uCCAD\uAE30",cochlearImplant:"\uC778\uACF5\uC640\uC6B0"}},hf={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",daily:"\uC77C\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"},subscriptionStatus:{active:"{{pct}}% \uD65C\uC131",expired:"{{pct}}% \uB9CC\uB8CC",unused:"{{pct}}% \uBBF8\uC0AC\uC6A9"}},ff={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4.",selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},searchLabel:{error:"\uB370\uC774\uD130 \uBD88\uB7EC\uC624\uAE30 \uC2E4\uD328",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},Cf={sentenceTyping:{roundCount:"{{rounds}}\uBB38\uC81C \xB7 \uBB38\uC81C\uB2F9 {{timeLimit}}\uCD08"},wordDefense:{me:"\uB098"},dictation:{title:"\uBC1B\uC544\uC4F0\uAE30",desc:"\uBB38\uC7A5\uC744 \uB4E3\uACE0 \uC815\uD655\uD788 \uBC1B\uC544\uC801\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC131 \uC7AC\uC0DD, \uC785\uB825 \uD544\uB4DC, \uC815\uB2F5 \uBE44\uAD50"},result:{heading:"{{number}}\uB2E8\uACC4 \uD574\uB2F5",retry:"\uB2E4\uC2DC \uD480\uAE30"},common:{accuracy:"{{pct}}% \uC815\uD655\uB3C4"},soundMatch:{title:"\uC18C\uB9AC \uB9E4\uCE6D",desc:"\uAC19\uC740 \uC18C\uB9AC\uB97C \uAC00\uC9C4 \uB2E8\uC5B4 \uB610\uB294 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB9E4\uCE6D\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uD50C\uB808\uC774 \uBC84\uD2BC, \uD0C0\uC774\uBA38, \uC810\uC218 \uC9D1\uACC4"},orderSequence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uD769\uC5B4\uC9C4 \uBB38\uC7A5 \uC870\uAC01\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uBB38\uC7A5 \uC138\uD2B8, \uC21C\uC11C \uD655\uC778 \uC778\uD130\uD398\uC774\uC2A4"},speedListen:{title:"\uC18D\uB3C4 \uB4E3\uAE30",desc:"\uC2DC\uAC04 \uC81C\uD55C \uB0B4\uC5D0 \uBB38\uC7A5\uC758 \uB2E8\uC5B4 \uC218\uB97C \uB9DE\uCD94\uB294 \uB3C4\uC804\uD615 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC81C\uD55C\uC2DC\uAC04, \uC810\uC218\uD310"},noiseChallenge:{title:"\uC18C\uC74C \uCC4C\uB9B0\uC9C0",desc:"\uBC30\uACBD \uC18C\uC74C \uC18D\uC5D0\uC11C \uBB38\uC7A5\uC744 \uBD84\uBCC4\uD558\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB2E4\uC591\uD55C \uC18C\uC74C \uB808\uBCA8, \uC810\uC218 \uC9D1\uACC4"},fastListen:{title:"\uBE60\uB978 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB4E4\uB824\uC8FC\uACE0 \uD575\uC2EC \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB09C\uC774\uB3C4\uBCC4 \uC18D\uB3C4, \uD0C0\uC774\uBA38"},shadowing:{title:"\uC250\uB3C4\uC789",desc:"\uBB38\uC7A5\uC744 \uB530\uB77C \uB9D0\uD558\uBA70 \uBC1C\uC74C\uACFC \uC5B5\uC591\uC744 \uC5F0\uC2B5\uD558\uB294 \uBAA8\uB4DC\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC7AC\uC0DD, \uB179\uC74C, \uBE44\uAD50 \uD53C\uB4DC\uBC31"},phonemeHunt:{title:"\uC74C\uC6B4 \uCC3E\uAE30",desc:"\uD2B9\uC815 \uC74C\uC6B4(\uBC1C\uC74C)\uC744 \uD3EC\uD568\uD55C \uB2E8\uC5B4\uB97C \uCC3E\uC544\uB0B4\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC6B4 \uD544\uD130, \uD78C\uD2B8 \uAE30\uB2A5"}},gf={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
827
+ `),this.name="StorageNotConfiguredError"}};function n0(e){t0(e)}function gs(e,n){if(!e)return null;const a=sa();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function bs(e){if(!e)return null;const n=sa();if(!n)throw new Cs("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function ys(e){const n=sa();if(!n)throw new Cs("downloadSound");return n.download(e)}function a0(){return sa()?.noiseBaseUrl??"/sounds/noise"}function vs(){const e=Number(sa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function r0(e){const n=AbortSignal.timeout;if(typeof n=="function")return n.call(AbortSignal,e);const a=new AbortController;return setTimeout(()=>a.abort(),e),a.signal}const xs="__ihab_core_tts_config__";function mr(){return globalThis[xs]?.urlResolver??null}function o0(){return globalThis[xs]?.fallbackUrlResolver??null}const s0="__ihab_core_pronunciation_resolver__";function i0(){return globalThis[s0]??null}let xn=null;const ia=new WeakMap,hr=new WeakMap,fr=new WeakMap;let _s=!1;const ws=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function l0(){if(_s||typeof document>"u")return;_s=!0;const e=()=>{try{xn&&xn.state!=="running"&&xn.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function ks(){if(xn)return xn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(xn=new e,l0(),xn):null}catch{return null}}function Cr(){try{xn?.resume()}catch{}}function gr(e,n){const a=ia.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),o=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,o.gain.value=ws(hr.get(n)??n.volume),r.connect(o),o.connect(i),o.connect(e.destination);try{n.volume=1}catch{}const l={gain:o,analyser:i};return ia.set(n,l),l}catch{return null}}function Na(e){if(!e)return Promise.resolve(null);const n=ia.get(e);if(n)return Promise.resolve(n.analyser);const a=ks();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(gr(a,e)?.analyser??null);const r=fr.get(e);if(r)return r;const o=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?gr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{fr.delete(e)});return fr.set(e,o),o}function c0(e){if(!e)return null;const n=ia.get(e);if(n)return n.analyser;const a=ks();return a?a.state==="running"?gr(a,e)?.analyser??null:(Na(e),null):null}function _n(e,n){const a=ws(n);hr.set(e,a);const r=ia.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const o=r.gain.gain;try{const i=r.gain.context.currentTime;o.cancelScheduledValues(i),o.setTargetAtTime(a,i,.01)}catch{try{o.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function Ba(e){return hr.get(e)??e.volume}function u0(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const o=n[r];a+=o*o}return Math.sqrt(a/n.length)}const d0="__ihab_core_image_config__";function Wn(){return globalThis[d0]??null}const As="word_image_existence_map_v1";let En=null;const Da=new Map;function p0(){if(En)return En;try{const e=typeof localStorage<"u"?localStorage.getItem(As):null,n=e?JSON.parse(e):null;En=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{En={}}return En}let br=null;function m0(){br||(br=setTimeout(()=>{br=null;try{typeof localStorage<"u"&&En&&localStorage.setItem(As,JSON.stringify(En))}catch{}},200))}function h0(e,n){return`${e}_${n??1}`}async function Ns(e,n){const a=p0(),r=h0(e,n);if(r in a)return a[r];if(Da.has(r))return Da.get(r);const o=Wn();if(!o)return!1;const i=o(e,n);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:r0(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Da.delete(r),c===null?!1:(a[r]=c,m0(),c)));return Da.set(r,l),l}const Bs=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],Ds=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],f0=["","\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 la(e){if(!e)return null;const n=e.charCodeAt(0)-44032;return n<0||n>=11172?null:{cho:Math.floor(n/588),jung:Math.floor(n%588/28),jong:n%28}}function C0(e){const n=la(e[0]||"");return n?Bs[n.cho]:""}function g0(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],a=l=>Bs.includes(l),r=l=>Ds.includes(l),o=n.map(l=>a(l)?"cho":r(l)?"jung":la(l)?"syl":"other"),i=n.map(l=>la(l));if(o.includes("other")){const l=e.toLowerCase();return c=>c.normalize("NFC").toLowerCase().includes(l)}return l=>{const c=[...l.normalize("NFC")];for(let u=0;u+n.length<=c.length;u++){let d=!0;for(let p=0;p<n.length;p++){const m=c[u+p],h=o[p];if(h==="cho"){if(C0(m)!==n[p]){d=!1;break}}else if(h==="jung"){const C=la(m);if(!C||Ds[C.jung]!==n[p]){d=!1;break}}else{const C=i[p];if(C&&C.jong===0){const y=la(m);if(!y||y.cho!==C.cho||y.jung!==C.jung){d=!1;break}}else if(m!==n[p]){d=!1;break}}}if(d)return!0}return!1}}const b0={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(b0).map(([e,n])=>[n.join(""),f0[Number(e)]]));const y0="word_pair_index_v2",v0="word_pair_index_sig_v2";let Sa=null;function x0(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(y0),n=localStorage.getItem(v0);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function _0(){if(Sa)return Sa;const e=x0();return e?(Sa=e.index,e.sig,Sa):null}const w0={\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"}},yr=/[ㄱ-ㅎ]/,k0=/[ㅏ-ㅣ]/;function Ss(e){e=e.normalize("NFC");for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.charCodeAt(0);if(r>=44032&&r<=55203||yr.test(a)||k0.test(a))return a}return null}function A0(e){const n=Ss(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":yr.test(n)?"\uC774":"\uAC00"}function N0(e){return`${e}${A0(e)}`}function B0(e){const n=Ss(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":yr.test(n)?"\uC744":"\uB97C"}function D0(e){return`${e}${B0(e)}`}function S0(e,n,a){const r=e.slice(),[o]=r.splice(n,1);return r.splice(a,0,o),r}function ca(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const o=Math.floor(n()*(r+1));[a[r],a[o]]=[a[o],a[r]]}return a}const T0=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof $t?.t=="function"?$t.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function Ts(e,n){if(n===void 0&&(n=T0()),e instanceof Error)return e.message||n;if(typeof e=="string")return e||n;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return n}const j0="__ihab_core_word_pool__";function E0(){return globalThis[j0]??null}const js=globalThis;function Es(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function M0(e){Es("time",()=>js.__ihabTrainingTimeLogger?.(e))}function L0(e){Es("completion",()=>js.__ihabTrainingCompletionLogger?.(e))}function Pt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function $0(e){for(const n of["correct","isCorrect","heard","judgement"])if(typeof e[n]=="boolean")return e[n];return e.score===1?!0:e.score===0?!1:null}function R0(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Pt(r.contextCode)??Pt(r.itemId)??Pt(r.itemCode)??Pt(r.id),question:Pt(r.question)??Pt(r.q)??Pt(r.sentence)??Pt(r.text)??Pt(r.prompt)??Pt(r.word)??Pt(r.targetSyllable),answer:Pt(r.answer),selected:Pt(r.selectedText)??Pt(r.selected),correct:$0(r)}}):[]}const vr=globalThis;async function P0(){try{return await vr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function Ms(e){const n=a=>{};try{const a=vr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Ta(e){try{vr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function I0(e){if(typeof document<"u"){const n=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),n&&n!==document.activeElement&&typeof n.focus=="function"&&n.isConnected)try{n.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}function Mn(){return xr(new Date)}function qn(){return O0(Mn())}const F0=540*60*1e3;function Ls(e,n,a){return new Date(Date.UTC(e,n,a)-F0)}function O0(e){const[n,a,r]=e.split("-").map(Number);return new Date(n,(a||1)-1,r||1)}function xr(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n)}function $s(e,n){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),o=Math.floor(r/60),i=Math.floor(o/60),l=Math.floor(i/24),c=Math.floor(l/7),u=Math.floor(l/30),d=Math.floor(l/365);return o<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):o<60?n("store.time.minutesAgo",{n:o}):i<24?n("store.time.hoursAgo",{n:i}):l<7?n("store.time.daysAgo",{n:l}):c<5?n("store.time.weeksAgo",{n:c}):l<365?n("store.time.monthsAgo",{n:Math.min(u,11)}):n("store.time.yearsAgo",{n:d})}function Rs(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:o=!1,fallback:i="\u2014"}=n;if(!e)return i;const l=xr(e instanceof Date?e:String(e));if(!l)return i;const[c,u,d]=l.split("-"),p=r?u:String(Number(u)),m=r?d:String(Number(d));return`${c}${a}${p}${a}${m}${o?".":""}`}function ua(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function Ps(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),o=Number(a[2]),i=a[1].padStart(2,"0");return o===0?n("date.timeH",{h:r,hh:i,mm:a[2]}):n("date.timeHM",{h:r,hh:i,m:o,mm:a[2]})}function _r(e){return(e??0).toLocaleString("ko-KR")}const H0=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],V0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];function Is(){return H0}function z0(){return V0}const W0=[],q0=[],U0=[],G0=[];function K0(){return{LISTEN_IN_NOISE:W0,SHORT_STORY:q0,LONG_STORY:U0,ORDERING_SENTENCE:G0}}const Y0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],Fs={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function Z0(e){return Y0.map(n=>{const a=Fs[n.key];return a?{...n,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:n})}let ja=null,Os=null,Hs=null;function X0(){const e=E0();if(e&&e.entries.length>0){const n=_0();if(ja&&Os===e&&Hs===n)return ja;const a=new Set,r=[];for(const o of e.entries)!o.word||a.has(o.word)||(a.add(o.word),r.push({w:o.word,s:o.syllables,p:n?.[o.word]?[...n[o.word].cho??[],...n[o.word].jung??[],...n[o.word].jong??[]]:[],pron:o.pronunciation||o.word,grade:o.grade}));return ja=r,Os=e,Hs=n,ja}return[]}new Proxy([],{get(e,n){const a=X0(),r=a[n];return typeof r=="function"?r.bind(a):r}});const J0="0.149.0";function Q0(e){return typeof window>"u"?"":Xh.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function e2(e){const[n,a]=s.useState(null),[r,o]=s.useState(null),[i,l]=s.useState(null),[c,u]=s.useState(null);return s.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),o(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=pr(e):/^(Logo|Symbol)/i.test(d)?p=pr(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),o(null),l(null),a(p)},[e]),s.useEffect(()=>{if(!n)return;let d=!1;async function p(){try{let m=await fetch(n);m.ok||(m=await fetch(n));const h=m.headers.get("content-type")||"";if(d)return;if(h.includes("svg")){o("mask");return}if(h.startsWith("image/")){o("img");return}const C=await fetch(n);if(!C.ok)throw new Error("not ok");const y=await C.text();if(d)return;if(/^\s*<svg[\s>]/i.test(y)){const f=Q0(y);if(!f){o("none");return}l(f),o("inline");return}o("none")}catch{d||o("none")}}return p(),()=>{d=!0}},[n]),s.useEffect(()=>{let d=!1,p=null;return r==="mask"&&n&&fetch(n).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{d||(p=URL.createObjectURL(m),u(p))}).catch(()=>{d||o("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,n]),{iconToUse:n,mode:r,svgText:i,blobUrl:c}}function Ue(e){const{icon:n,label:a,className:r,imgClassName:o,maskClassName:i,svgClassName:l,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=o??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=l??"iconRenderer-icon-svg",C=typeof n=="string"?n:null,y=Ch(C),{iconToUse:f,mode:v,svgText:g,blobUrl:x}=e2(C),_=(D,B={})=>t.jsx("span",{className:d,style:c,...B,children:D}),b=(D,B={})=>t.jsx("img",{src:D,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...B});if(!n)return null;if(typeof n!="string")return _(n);if(n==="none")return _(t.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(y)try{return _(s.createElement(y,{className:h,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(f&&f.endsWith(".svg")){if(v==="mask"){const D={"--icon-url":x?`url(${x})`:`url(${f})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return _(t.jsx("span",{className:m,style:D}),{"aria-hidden":"true"})}return v==="img"?_(b(f,{onError:D=>{D.currentTarget.onerror=null,D.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="inline"?_(t.jsx("span",{className:h,dangerouslySetInnerHTML:g?{__html:g}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return b(pr(n),{style:c,onError:D=>{D.currentTarget.onerror=null,D.currentTarget.style.display="none"}});const A=typeof u=="number"?u:20,w=`<svg width="${A}" height="${A}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return _(t.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:w}}),{"aria-hidden":"true"})}function t2({icon:e,emoji:n,title:a,message:r,hint:o,action:i,compact:l,className:c}){return t.jsxs("div",{className:ve("empty-state",l&&"empty-state--compact",c),children:[n&&t.jsx("span",{className:"empty-state__emoji",children:n}),e&&t.jsx(Ue,{icon:e,className:"empty-state__icon"}),a&&t.jsx("p",{className:"empty-state__title body-2",children:a}),r&&t.jsx("p",{className:"empty-state__message body-3",children:r}),o&&t.jsx("p",{className:"empty-state__hint caption-1",children:o}),i&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i.onClick,children:[i.icon&&t.jsx(Ue,{icon:i.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:i.label})]})]})}function n2({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:o,className:i}){const{t:l}=de.useTranslation();return t.jsxs("div",{className:ve("empty-state","error-state",i),role:"alert",children:[t.jsx(Ue,{icon:a,className:"empty-state__icon error-state__icon"}),t.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),n&&t.jsx("p",{className:"empty-state__hint caption-1",children:n}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[t.jsx(Ue,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:o??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function a2({icon:e,title:n,description:a,cta:r,tone:o="main",disabled:i=!1,onClick:l,className:c=""}){const u=s.useId(),d=`${u}-title`,p=`${u}-desc`,m=`${u}-cta`,h=()=>{i||l?.()};return t.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":d,"aria-describedby":`${p} ${m}`,onClick:h,onKeyDown:C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),h())},className:ve("action-card",`action-card--${o}`,i&&"action-card--disabled",c),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(Ue,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{id:d,className:"action-card__title",children:n}),t.jsx("p",{id:p,className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{id:m,children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Ue,{icon:"arrow-right",size:18})})]})]})})}function r2({as:e="div",className:n="",children:a,storage:r,...o}){r&&n0({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const i=ve("ihabdevteam-core-scope",n);return t.jsx(e,{className:i,...o,children:a})}function o2({title:e="",lines:n=[],notices:a=null,children:r,variant:o="default",dismissible:i=!1,className:l=""}){const{t:c}=de.useTranslation(),[u,d]=s.useState(!1),p=s.useCallback(()=>d(!0),[]);if(u)return null;const m=`notice-box notice-box--${o} body-2 ${l}`.trim();if(a&&Array.isArray(a)&&a.length)return t.jsx("div",{className:m,role:"note",children:a.map((C,y)=>t.jsxs("div",{className:"notice-box__inner",children:[C.title?t.jsx("span",{className:"notice-box__title body-3",children:C.title}):null,t.jsx("div",{className:"notice-box__body",children:C.lines&&C.lines.length?t.jsx("div",{children:C.lines.map((f,v)=>t.jsx("span",{className:"notice-box__line body-3",children:f},v))}):C.children??null})]},y))});const h=e||n.length?t.jsxs("div",{className:"notice-box__inner",children:[e?t.jsx("span",{className:"notice-box__title body-1",children:e}):null,t.jsx("div",{className:"notice-box__body",children:n.length?t.jsx("ul",{children:n.map((C,y)=>t.jsx("li",{className:"notice-box__line",children:C},y))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{className:m,role:"note",children:[h,i&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}function wr(e,n=!0){s.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=o=>{if(o.key!=="Tab")return;const i=Array.from(a.querySelectorAll(Ln)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){o.preventDefault();return}const l=i[0],c=i[i.length-1],u=document.activeElement,d=u===a;o.shiftKey&&(u===l||d)?(o.preventDefault(),c.focus()):!o.shiftKey&&u===c&&(o.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const Ln='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Un=[];let Ea=!1;function Vs(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const n=Un[Un.length-1];n&&(e.stopPropagation(),n())}function $n(e){return Un.push(e),!Ea&&typeof document<"u"&&(document.addEventListener("keydown",Vs),Ea=!0),()=>{const n=Un.lastIndexOf(e);n>=0&&Un.splice(n,1),Un.length===0&&Ea&&typeof document<"u"&&(document.removeEventListener("keydown",Vs),Ea=!1)}}function wn(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:o=20,onClose:i,closeOnOutsideClick:l=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:C=!0,header:y}=e||{},f=s.useRef(null),[v,g]=s.useState({position:"fixed",left:0,top:-9999}),[x,_]=s.useState(!1),[b,A]=s.useState("bottom"),[w,D]=s.useState(!1),[B,k]=s.useState(!1),N=!n&&!a,I=s.useCallback((V=!1)=>{if(B&&h)return;const U=a?a.getBoundingClientRect():n;if(!U||!f.current)return;const re=f.current,{offsetWidth:P,offsetHeight:$}=re,M=window.innerWidth,L=window.innerHeight,z=M-U.right,R=U.left,E=U.top,F=L-U.bottom;let ae=0,le=0,se="top";if(E>=$+r)se="top",le=U.top-r-$,ae=U.left+U.width/2-P/2;else if(F>=$+r)se="bottom",le=U.bottom+r,ae=U.left+U.width/2-P/2;else if(z>=P+r)se="right",ae=U.right+r,le=U.top+U.height/2-$/2;else if(R>=P+r)se="left",ae=U.left-r-P,le=U.top+U.height/2-$/2;else{const te=Math.max(E,F,z,R);te===E?(se="top",le=U.top-r-$,ae=U.left+U.width/2-P/2):te===F?(se="bottom",le=U.bottom+r,ae=U.left+U.width/2-P/2):te===z?(se="right",ae=U.right+r,le=U.top+U.height/2-$/2):(se="left",ae=U.left-r-P,le=U.top+U.height/2-$/2)}const oe=Number.isFinite(Number(o))?Number(o):8;ae=Math.min(Math.max(ae,oe),M-P-oe),le=Math.min(Math.max(le,oe),L-$-oe);const Ce=Math.round(ae),X=Math.round(le);V&&f.current?(f.current.style.left=`${Ce}px`,f.current.style.top=`${X}px`,f.current.dataset.placement=se):(A(se||b),g({position:"fixed",left:Ce,top:X}),D(!0))},[B,h,a,n,r,o,b]);s.useLayoutEffect(()=>{if(N)return;if(B&&h){g({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),D(!0);return}I();const V=requestAnimationFrame(()=>I());return()=>cancelAnimationFrame(V)},[n,a,r,p,o,N,B,h,I]),s.useEffect(()=>{if(N||B&&h||!f.current||typeof ResizeObserver>"u")return;const V=new ResizeObserver(()=>{n&&I()});return V.observe(f.current),()=>V.disconnect()},[n,p,o,N,B,h,I]),s.useEffect(()=>{if(N||B&&h)return;const V=()=>I(!0),U=re=>{if(!a&&i){const P=re.target;if(P&&f.current&&f.current.contains(P))return;try{if(P&&P.closest&&P.closest("[data-tooltip-ignore]"))return}catch{}T.current(!0);return}V()};return window.addEventListener("resize",V),document.addEventListener("scroll",U,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",V),document.removeEventListener("scroll",U,{capture:!0})}},[n,a,i,r,p,o,N,B,h,I]),s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const V=window.matchMedia("(max-width: 768px)"),U=()=>k(!!V.matches);U();try{V.addEventListener?V.addEventListener("change",U):V.addListener(U)}catch{try{V.addListener(U)}catch{}}return()=>{try{V.removeEventListener?V.removeEventListener("change",U):V.removeListener(U)}catch{}}},[]);const O=s.useRef(!1),j=s.useRef(null),H=s.useCallback((V=!1)=>{if(i&&!(x||O.current)){if(O.current=!0,V){_(!0);try{i&&i()}catch{O.current=!1,_(!1)}return}_(!0),j.current=setTimeout(()=>{j.current=null;try{i&&i()}catch{O.current=!1,_(!1)}},200)}},[x,i,_]);s.useEffect(()=>()=>{j.current&&clearTimeout(j.current)},[]),s.useEffect(()=>{if(N)return;const V=P=>{const $=f.current;if(!$)return;const M=P.target;if(M&&!$.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&H(!0)}},U=P=>{const $=f.current;if(!$)return;const M=P.target;if(M&&!$.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&H(!0)}},re=P=>{if(P.key==="Tab"){const $=f.current;if(!$)return;const M=$.querySelectorAll(Ln);if(!M||M.length===0)return;const L=M[0],z=M[M.length-1],R=document.activeElement;P.shiftKey?R===L&&(P.preventDefault(),z.focus()):R===z&&(P.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",V,!0),document.addEventListener("click",U,!0),document.addEventListener("keydown",re),()=>{document.removeEventListener("pointerdown",V,!0),document.removeEventListener("click",U,!0),document.removeEventListener("keydown",re)}},[i,l,H,N]);const T=s.useRef(H);s.useEffect(()=>{T.current=H});const K=!!i;s.useEffect(()=>{if(!(N||!K))return $n(()=>T.current())},[N,K]),s.useEffect(()=>{const V=()=>{H(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",V),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",V)}},[H]);const W=t.jsxs("div",{ref:f,className:`tooltip-content ${N?"tooltip-content--inline":""} ${C?"tooltip-content--bordered":""} ${x?"is-closing":""} ${c} ${B&&h?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:N?{}:{...v,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":b,"data-left":N?"":v.left,"data-top":N?"":v.top,"data-anchor-left":n?Math.round(n.left):"","data-anchor-top":n?Math.round(n.top):"","data-anchor-width":n?Math.round(n.width):"","data-anchor-height":n?Math.round(n.height):"",children:[y!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:y}),p]});if(N||typeof document>"u")return W;if(m||B&&h){const V=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&H(!0)}}),W]});return Ut.createPortal(V,document.body)}return Ut.createPortal(W,document.body)}function kn(e){const{anchorRect:n,text:a,offset:r=8,onClose:o,className:i="",ariaLabel:l}=e||{};return a?t.jsx(wn,{anchorRect:n,offset:r,onClose:o,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Rn(e){const{t:n}=de.useTranslation(),{anchorRect:a,title:r,items:o,activeIndex:i=-1,showIndex:l=!0,onClose:c,offset:u=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(o)?o:o?[o]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:t.jsx(wn,{anchorRect:a,offset:u,onClose:c,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||n("tooltip.description","\uC124\uBA85"),children:t.jsxs("div",{className:"tooltip-description__box",children:[r&&t.jsx("span",{className:"tooltip-description__title body-2",children:r}),t.jsx("ol",{className:"tooltip-description__items",children:p.map((m,h)=>t.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),m.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),t.jsx("span",{children:m.text})]},h))})]})})}function ie(e){const{size:n=48,type:a,htmlType:r,href:o,target:i,rel:l,icon:c,rightIcon:u,label:d,count:p,subLabel:m,children:h,ariaLabel:C,variant:y="default",align:f="center",selected:v,toggleable:g=!1,disabled:x=!1,useLabel:_=!0,useBorder:b=!0,useBG:A=!0,useDisabledCovered:w=!1,useDisabledInvisible:D=!1,width:B,minWidth:k,onClick:N,onDisabledClick:I,showTooltipInfo:O=!1,tooltipInfoText:j=null,tooltipDescription:H=null,tooltipOnly:T=!1,iconSize:K="medium",iconColor:W,shape:V="rounded",color:U,className:re,...P}=e,$=typeof n=="string"&&isNaN(Number(n))?n.toLowerCase():String(Number(n)||48),M=$.match(/^\d+$/)?`button${$}`:`button-${$}`,L=Number(n),z=!isNaN(L)&&L<40?"button-2":"button-1",R=d??h,E=x||!!P.disabled,F=E?w?"disabled-covered":D?"disabled-invisibled":"disabled":y,ae=F?`button--variant-${F}`:"",le=f?`button--align-${f}`:"",se=V?`button--shape-${V}`:"",oe=typeof W=="string"&&W.startsWith("--")?`var(${W})`:W,Ce={...B?{width:typeof B=="number"?`${B}px`:B}:{},...k?{minWidth:typeof k=="number"?`${k}px`:k}:{},...b?{}:{"--button-border":E?"0":"1px solid transparent"},...oe?{"--button-icon-color":oe}:{},...U?{"--color-main":U}:{}},X=_===!1?"":R,te=Array.isArray(X)?X.length>0:!!X,Y=!!u,ge=a??(te||c||Y?"bar":"dot"),xe=`${M}--${ge}`,Te=s.useRef(null),ue=s.useRef(E),[be,Ae]=s.useState(!!v),[Q,ee]=s.useState(!1),[ke,De]=s.useState(null),Oe=s.useCallback(()=>ee(!1),[]);s.useEffect(()=>{typeof v=="boolean"&&Ae(v)},[v]),s.useEffect(()=>{if(ue.current&&!E&&Te.current){const Ve=Te.current;let nt=!1;try{nt=Ve.matches(":focus:not(:focus-visible)")}catch{nt=!1}nt&&Ve.blur(),Ve.style.pointerEvents="none";const Je=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Te.current&&(Te.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Je)}ue.current=E},[E]);const Le=typeof v=="boolean"?!!v:be,We=g||typeof v=="boolean"?Le?"true":"false":P["aria-pressed"],Re=ve("button",M,xe,ae,le,se,Le?"is-selected":null,A?null:"button--no-bg",T?"button--tooltip-only":null,re),et=`button__icon button__icon--${K}`,Ke=Array.isArray(m)?m:m!==void 0?[m]:[],Ge=()=>{if(Array.isArray(X))return X.map((nt,Je)=>{const rt=Ke[Je];return t.jsxs("span",{className:`button__label-text${rt!==void 0?" button__label-text--has-sub":""}`,children:[nt,rt!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:rt})]},Je)});const Ve=m!==void 0;return t.jsxs("span",{className:`button__label-text${Ve?" button__label-text--has-sub":""}`,children:[X,p!=null&&t.jsx("span",{className:"button__count",children:p}),Ve&&t.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},ye=Ve=>{typeof v!="boolean"&&!g&&Ae(!1),Ve.currentTarget.blur()},He=Ve=>{E||(typeof P.onMouseLeave=="function"&&P.onMouseLeave(Ve),ye(Ve))},Ee=Ve=>{if(E){I?.(Ve);return}typeof v!="boolean"&&g&&Ae(nt=>!nt),N?.(Ve)},Pe=s.useCallback(()=>{(O||H)&&(ee(!0),De(Te.current?.getBoundingClientRect()??null))},[O,H]),qe=s.useCallback(()=>{(O||H)&&(ee(!1),De(null))},[O,H]),Ye={...P};delete Ye.disabled,delete Ye.className,delete Ye.faded,delete Ye.useFaded,delete Ye.loading,delete Ye.onMouseLeave,delete Ye.onPointerEnter,delete Ye.onPointerLeave,delete Ye.onFocus,delete Ye.onBlur,E&&(Object.keys(Ye).forEach(Ve=>{/^on[A-Z]/.test(Ve)&&typeof Ye[Ve]=="function"&&delete Ye[Ve]}),Ye["aria-disabled"]="true");const ct=(typeof O=="string"?O:null)??(typeof j=="string"?j:null)??(typeof C=="string"?C:null)??(typeof R=="string"?R:null)??void 0,ut=typeof C=="string"?C:typeof R=="string"?R:ct,dt=(Ve,nt)=>t.jsx(Ue,{icon:Ve,label:nt??ut,className:et,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Xe=()=>ge==="dot"?t.jsxs(t.Fragment,{children:[dt(c),te&&t.jsx("span",{className:`button__label ${z}`,children:Ge()})]}):f==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:dt(c)}),te&&t.jsx("span",{className:`button__label ${z}`,children:Ge()})]}),Y&&t.jsx("span",{className:"button__right",children:dt(u)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:dt(c,C??R)}),te&&t.jsx("span",{className:`button__label ${z}`,children:Ge()}),Y&&t.jsx("span",{className:"button__right",children:dt(u)})]}),tt=!!o&&!E;return t.jsxs(t.Fragment,{children:[t.jsx(tt?"a":"button",{...Ye,ref:Te,...tt?{href:o,target:i,rel:l??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:E&&!I},className:Re,"aria-pressed":We,"aria-label":ut,"aria-disabled":E&&(tt||I)?!0:void 0,style:Ce,onClick:Ee,onMouseLeave:He,onPointerEnter:Ve=>{Pe(),!E&&typeof P.onPointerEnter=="function"&&P.onPointerEnter(Ve)},onPointerLeave:Ve=>{qe(),!E&&typeof P.onPointerLeave=="function"&&P.onPointerLeave(Ve)},onFocus:Ve=>{Pe(),!E&&typeof P.onFocus=="function"&&P.onFocus(Ve)},onBlur:Ve=>{E||ye(Ve),qe(),!E&&typeof P.onBlur=="function"&&P.onBlur(Ve)},children:Xe()}),Q&&H?t.jsx(Rn,{anchorRect:ke,title:H.title,items:H.items,onClose:Oe}):Q&&ct?t.jsx(kn,{anchorRect:ke,text:ct,onClose:Oe}):null]})}function it(e,n,a){const r=s.useRef(null);return s.useLayoutEffect(()=>{const o=r.current?.parentElement??null;return n(o,e),()=>a(o)},[e,n,a]),r}const da={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},kr=new WeakMap;function Ar(e){if(e)return kr.get(e)}function Dt(e,n){e&&(e.style.setProperty(da.title,n.title),e.style.setProperty(da.description,n.description),kr.set(e,n))}function St(e){e&&(e.style.removeProperty(da.title),e.style.removeProperty(da.description),kr.delete(e))}const zs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Ws(){const e=it(zs,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const qs={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Us(){const e=it(qs,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Gs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ks(){const e=it(Gs,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Ys={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Zs(){const e=it(Ys,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Xs={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Js(){const e=it(Xs,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Qs={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function ei(){const e=it(Qs,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const ti={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function ni(){const e=it(ti,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const ai={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ri(){const e=it(ai,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const oi={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function si(){const e=it(oi,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const ii={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function li(){const e=it(ii,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const ci={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function ui(){const e=it(ci,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:t.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const di={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function pi(){const e=it(di,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const mi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function hi(){const e=it(mi,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const fi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Ci(){const e=it(fi,Dt,St);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const s2=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],gi={main:Ws,soft:Us,sub:Ks,deep:Zs,softSub:Js,warm:ei,dark:ni,radial:ri,diagonal:si,dots:li,outline:ui,success:pi,naver:hi,instagram:Ci};function bi({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:o=.1,lineHeightRatio:i=1.4}={}){const l=_=>Math.max(a,Math.min(r,Number(_))),c=_=>{try{const b=localStorage.getItem(_),A=b?Number(b):1;return Number.isFinite(A)?l(A):l(1)}catch{return l(1)}},[u,d]=s.useState(()=>c(e)),[p,m]=s.useState(e);p!==e&&(m(e),d(c(e))),s.useEffect(()=>{try{localStorage.setItem(e,String(u))}catch{}},[e,u]);const h=_=>{d(typeof _=="function"?b=>l(_(b)):l(_))},C=()=>h(_=>+(_+o).toFixed(6)),y=()=>h(_=>+(_-o).toFixed(6)),f=u<r-Number.EPSILON,v=u>a+Number.EPSILON,g=Math.round(n*u),x=Math.round(g*i);return{scale:u,setScale:h,increase:C,decrease:y,canIncrease:f,canDecrease:v,fontSize:g,lineHeight:x}}const yi=s.createContext(null);function i2(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const vi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function l2(e){const n=s.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Bo.useSyncExternalStore(n,()=>vi(e),()=>!1)}function c2(e){const[n,a]=s.useState(vi(e));return s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),o=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",o):i.addListener&&i.addListener(o),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",o):i.removeListener&&i.removeListener(o)}},[e]),n}const u2=typeof Bo.useSyncExternalStore=="function"?l2:c2;function on(e){const n=s.useContext(yi),a=u2(e);return n&&typeof n.mobile=="boolean"&&i2(e)?n.mobile:a}function Nr(e){const n=s.useRef(e);return s.useEffect(()=>{n.current=e}),n}function xi(e,n){const a=Nr(n);s.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Br=" \xB7 ",_i=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Br)?e.split(Br).pop()??e:e})(),d2=s.createContext(!1),Pn=[];let wi=null;function p2(e){const n=s.useContext(d2);s.useEffect(()=>{if(n||typeof e!="string"||!e)return;Pn.length===0&&(wi=document.title);const a={text:_i?`${e}${Br}${_i}`:e};return Pn.push(a),document.title=a.text,()=>{const r=Pn.lastIndexOf(a);r>=0&&Pn.splice(r,1),document.title=Pn.length?Pn[Pn.length-1].text:wi??document.title}},[e,n])}const ki=[{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 m2(e,n,a){const{t:r}=de.useTranslation(),[o,i]=s.useState(()=>{const y=a?.initialPageSize;return y&&ki.some(f=>f.value===y)?y:"25"}),[l,c]=s.useState(1),[u,d]=s.useState(n);Object.is(u,n)||(d(n),l!==1&&c(1));const p=s.useMemo(()=>ki.map(y=>({...y,label:r("visits.showN",{n:y.value})})),[r]),m=s.useCallback(y=>{i(y),c(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(o)));(l>h||l<1||!Number.isFinite(l))&&c(Math.min(Math.max(1,Number.isFinite(l)?l:1),h));const C=Math.min(Math.max(1,Number.isFinite(l)?l:1),h);return{pageRows:s.useMemo(()=>e.slice((C-1)*Number(o),C*Number(o)),[e,C,o]),pageSizeProps:{options:p,value:o,onChange:m},paginationProps:{page:C,total:h,onChange:c},setPage:c}}function h2(){const[e,n]=s.useState(null),a=s.useCallback(o=>{n(i=>i?.key===o?{key:o,asc:!i.asc}:{key:o,asc:!0})},[]),r=s.useCallback((o,i)=>({label:o,sortDir:e?.key===i?e.asc?"asc":"desc":null,onClick:()=>a(i)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}const sn="\uC804\uCCB4";Object.fromEntries(Object.entries(w0).map(([e,{nucleus:n}])=>[e,n]));const f2={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"})},C2={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"})},g2={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 b2(e,n){if("place"in n)return f2[n.place](e);const a=C2[n.vowel](e);return n.glide?`${a} \xB7 ${g2[n.glide](e)}`:a}const y2=(e,{defaultValue:n})=>n,Ai=(e,n)=>({jamos:e,phonetic:n,tooltip:b2(y2,n)}),mn=(e,n)=>n.map(a=>Ai([a],{place:e})),xt=(e,n,a)=>Ai([...e],a?{vowel:n,glide:a}:{vowel:n}),Dr={cho:[mn("labial",["\u3142","\u3143","\u314D","\u3141"]),mn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),mn("alveolar",["\u3145","\u3146"]),mn("palatal",["\u3148","\u3149","\u314A"]),mn("velar",["\u3131","\u3132","\u314B"]),mn("glottal",["\u314E"])],jung:[[xt("\u3163","frontHigh"),xt("\u315F","frontHigh","w"),xt("\u3162","frontHigh","velar")],[xt("\u3161","backHighUnrounded")],[xt("\u315C","backHighRounded"),xt("\u3160","backHighRounded","j")],[xt("\u3154\u3150","frontMid"),xt("\u3156\u3152","frontMid","j"),xt("\u3159\u315A\u315E","frontMid","w")],[xt("\u3153","backMidUnrounded"),xt("\u3155","backMidUnrounded","j"),xt("\u315D","backMidUnrounded","w")],[xt("\u3157","backMidRounded"),xt("\u315B","backMidRounded","j")],[xt("\u314F","low"),xt("\u3151","low","j"),xt("\u3158","low","w")]],jong:[mn("labial",["\u3142","\u3141"]),mn("alveolar",["\u3137","\u3134","\u3139"]),mn("velar",["\u3131","\u3147"])]},v2=e=>e===x2?[]:Array.from(e),x2="__NO_CODA__",Sr=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:o})=>({v:a.join(""),phonetic:r,tooltip:o}))),Ni={cho:Sr(Dr.cho),jung:Sr(Dr.jung),jong:Sr(Dr.jong)};Ni.jung.flat().forEach(({v:e})=>{for(const n of v2(e));}),new Set(Ni.cho.flat().map(e=>e.v));function _2(e,n=!0){const a=Nr(e);s.useEffect(()=>{if(n)return $n(()=>{a.current?.()})},[n,a])}function Ma(){const[e,n]=s.useState(null),a=s.useCallback(i=>n(i.getBoundingClientRect()),[]),r=s.useCallback(()=>n(null),[]),o=s.useCallback(i=>{const l=i.getBoundingClientRect();n(c=>c?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:o}}function Bi(e="warning"){const[n,a]=s.useState(""),[r,o]=s.useState(e),[i,l]=s.useState(0),c=s.useCallback((m,h)=>{o(h),a(m),l(C=>C+1)},[]),u=s.useCallback(m=>c(m,"warning"),[c]),d=s.useCallback(m=>c(m,"normal"),[c]),p=s.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:i,showToast:c,showWarning:u,showNormal:d,clearToast:p}}function pa({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[o,i]=s.useState(!1),[l,c]=s.useState({}),u=s.useRef(null),d=s.useRef(null),p=s.useCallback(()=>{u.current&&c(e(u.current.getBoundingClientRect()))},[e]);s.useEffect(()=>{if(!o)return;p();const C=v=>{const g=v.target;r&&g.closest?.(r)||u.current?.contains(g)||d.current?.contains(g)||i(!1)};document.addEventListener("mousedown",C),document.addEventListener("pointerdown",C);const y=v=>{d.current?.contains(v.target)||(n==="reposition"?p():n==="close"&&i(!1))};n!=="ignore"&&window.addEventListener("scroll",y,!0);const f=()=>{a==="reposition"?p():a==="close"&&i(!1)};return a!=="ignore"&&window.addEventListener("resize",f),()=>{document.removeEventListener("mousedown",C),document.removeEventListener("pointerdown",C),n!=="ignore"&&window.removeEventListener("scroll",y,!0),a!=="ignore"&&window.removeEventListener("resize",f)}},[o,p,n,a,r]),s.useEffect(()=>{if(o)return $n(()=>i(!1))},[o]);const m=s.useCallback(()=>i(C=>!C),[]),h=s.useCallback(()=>i(!1),[]);return{open:o,setOpen:i,toggle:m,close:h,style:l,triggerRef:u,menuRef:d}}function w2(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:o,playMs:i=1100,feedbackMs:l=1500}={}){const[c,u]=s.useState([]),[d,p]=s.useState(0),[m,h]=s.useState("idle"),[C,y]=s.useState(null),[f,v]=s.useState([]),[g,x]=s.useState(null),[_,b]=s.useState(0),A=s.useRef(0),w=s.useCallback($=>{A.current=typeof $=="function"?$(A.current):$,b(A.current)},[]),D=s.useRef(r),B=s.useRef(o);s.useEffect(()=>{D.current=r,B.current=o},[r,o]);const k=s.useRef([]),N=()=>{k.current.forEach(clearTimeout),k.current=[]},I=($,M)=>{k.current.push(setTimeout(M,$))};s.useEffect(()=>()=>N(),[]);const O=c[d]?.id??null,j=s.useRef(null),H=s.useCallback(()=>{N(),h("playing"),v([]),x(null),w(0);let $=0;e.forEach((M,L)=>{I($,()=>{p(L),y(M.id),D.current?.(M)}),I($+1e3,()=>{y(null),v(z=>[...z,M.id])}),$+=1300}),I($,()=>{h("done"),B.current?.({score:0,total:e.length})})},[e,w]),T=s.useCallback(($,M)=>{if(M>=$.length){h("done"),B.current?.({score:A.current,total:$.length});return}j.current=null,p(M),x(null),h("playing"),y($[M].id),D.current?.($[M]),I(i,()=>{y(null),h("waiting")})},[i]),K=s.useCallback(()=>{N();const $=ca(e);u($),w(0),v([]),T($,0)},[e,T,w]),W=s.useCallback(()=>{n==="playback"?(u(e),H()):K()},[n,e,H,K]),V=s.useCallback(()=>{N(),h("idle"),y(null),v([]),x(null),p(0),w(0),u([])},[w]),U=e.map($=>$.id).join("|");s.useEffect(()=>(a?W():V(),()=>N()),[n,U,a]);const re=s.useCallback($=>{m!=="waiting"||n==="playback"||j.current===d||(j.current=d,x($),$===c[d]?.id&&w(M=>M+1),n==="exam"?(h("playing"),I(400,()=>T(c,d+1))):(h("feedback"),I(l,()=>T(c,d+1))))},[m,n,c,d,T,l,w]),P=n==="playback"?e.length:c.length;return{bind:{activeSpeakerId:C,playedIds:f,selectedId:g,answerId:O,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:re},index:d,total:P,score:_,phase:m,done:m==="done",start:W,reset:V}}function k2({title:e,description:n,actionLabel:a,onAction:r,bg:o,color:i,size:l="medium",actionVariant:c,titleColor:u,descriptionColor:d,className:p=""}){const m=o??i??"main",h=s.useRef(null),[C,y]=s.useState("main"),f=on("(max-width: 767px)"),v=s.useRef({title:!1,description:!1});s.useLayoutEffect(()=>{const _=h.current;if(!_)return;const b=Ar(_),A=(w,D,B)=>{if(B!==void 0)_.style.setProperty(D,B),v.current[w]=!0;else if(v.current[w]){const k=b?.[w];k?_.style.setProperty(D,k):_.style.removeProperty(D),v.current[w]=!1}};A("title","--promo-banner-bg-title",u),A("description","--promo-banner-bg-description",d)},[u,d,m]),s.useLayoutEffect(()=>{const _=h.current;if(!_)return;const b=Ar(_);y(b?.actionVariant??"main")},[m]);const g=ve("promo-banner",`promo-banner--${l}`,p),x=gi[m];return t.jsxs("div",{ref:h,className:g,role:"note",children:[t.jsx(x,{}),t.jsxs("div",{className:"promo-banner__text",children:[t.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),n&&t.jsx("span",{className:"promo-banner__description body-3",children:n})]}),a&&r&&t.jsx(ie,{htmlType:"button",size:40,variant:c??C,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...f?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function A2({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":o}){const{t:i}=de.useTranslation(),l=o??i("topBanner.ariaLabel","\uBC30\uB108"),c=s.Children.toArray(e),u=c.length,[d,p]=s.useState(0),[m,h]=s.useState(!1),[C,y]=s.useState(!1),f=m||C,v=u>0?d%u:0;return s.useEffect(()=>{if(u<2||n<=0||f)return;const g=window.setInterval(()=>p(x=>(x+1)%u),n);return()=>window.clearInterval(g)},[u,n,f]),u===0?null:t.jsxs("section",{className:ve("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>y(!0),onBlur:g=>{g.currentTarget.contains(g.relatedTarget)||y(!1)},children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${v*100}%)`},children:c.map((g,x)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":x!==v,...x!==v?{inert:!0}:{},children:g},x))})}),u>1&&t.jsx("div",{className:`top-banner__dots${(a?.[v]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((g,x)=>t.jsx("button",{type:"button",className:`top-banner__dot${x===v?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:u,index:x+1,defaultValue:`${u}\uAC1C \uC911 ${x+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":x===v,onClick:()=>p(x)},x))})]})}function N2({title:e,body:n,open:a=!1,onToggle:r,avatar:o,titleClassName:i="body-2",bodyClassName:l="body-2",className:c=""}){const{t:u}=de.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),role:"listitem",children:[t.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const p=d.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),h=m.indexOf(d.currentTarget);(d.key==="ArrowDown"?m[h+1]:m[h-1])?.focus()}},children:[o&&t.jsx("div",{className:"accordion-item__avatar",children:o}),t.jsx("div",{className:`accordion-item__title ${i}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(Ue,{icon:a?"chevron-up":"chevron-down",label:a?u("accordion.collapse","\uC811\uAE30"):u("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function B2({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:o}){const[i,l]=s.useState(n);return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,u)=>t.jsx(N2,{title:c.title,body:c.body,avatar:c.avatar,open:u===i,onToggle:()=>l(u===i?-1:u),bodyClassName:o},u))})}function D2(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("polyline",{points:"2,6 5,9 10,3"})})}function S2(){return t.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[t.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function T2(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:t.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function lt(e){const{t:n}=de.useTranslation(),{type:a="bar",size:r,className:o="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:A,number:w,position:D="top-right",onClick:B,animate:k=!1}=e,N=A??"check",I=w!==void 0?"number":N,O=typeof r=="number"?r:32,j=ve("circle-badge",`circle-badge--${I}`,`circle-badge--${D}`,`circle-badge--${O}`,k?"circle-badge--animate":"",B?"circle-badge--clickable":"",o),H=w!==void 0?n("badge.nthSelected",{n:w,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:n("badge.selected","\uC120\uD0DD\uB428"),remove:n("badge.remove","\uC81C\uAC70"),minus:n("badge.exclude","\uC81C\uC678")}[N];return t.jsxs("span",{className:j,onClick:B,onKeyDown:B?T=>{T.key!=="Enter"&&T.key!==" "||(T.preventDefault(),T.currentTarget.click())}:void 0,"aria-label":l?void 0:i??H,"aria-hidden":l||void 0,role:B?"button":l?void 0:"img",tabIndex:B?0:void 0,children:[w!==void 0&&w,w===void 0&&N==="check"&&t.jsx(D2,{}),w===void 0&&N==="remove"&&t.jsx(S2,{}),w===void 0&&N==="minus"&&t.jsx(T2,{})]})}const{label:c,children:u,variant:d="default",fill:p="filled",minWidth:m,iconLeft:h,iconRight:C,color:y}=e,f=typeof r=="number"?"medium":r??"medium",v={small:"caption-2b",medium:"body-3b",large:"body-2b"}[f]??"body-2b",g={small:12,medium:14,large:16}[f]??14,x=ve("badge",`badge--${d}`,`badge--${f}`,p!=="filled"?`badge--${p}`:"",v,o),_=y?.startsWith("--")?`var(${y})`:y,b=m!==void 0||_?{...m!==void 0?{minWidth:typeof m=="number"?`${m}px`:m}:{},..._?{"--badge-color":_}:{}}:void 0;return t.jsxs("span",{className:x,style:b,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[h&&t.jsx(Ue,{icon:h,size:g,className:"badge__icon"}),c??u,C&&t.jsx(Ue,{icon:C,size:g,className:"badge__icon"})]})}function La({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:o}=de.useTranslation(),i=r==="small"?40:48,[l,c]=s.useState([]),u=s.useMemo(()=>{const v=[{title:null,columns:e}];let g=e;for(const x of l){const _=g?.[x.ci]?.items?.[x.ii];if(!_||!Array.isArray(_.children)||!_.children.length)break;g=[{title:null,items:_.children}],v.push({title:_.label||null,columns:g})}return v},[e,l]),d=u[u.length-1],p=u.length-1,m=s.useCallback(()=>c(v=>v.slice(0,Math.max(0,Math.min(v.length,p)-1))),[p]),h=s.useRef(null),C=s.useRef(null),y=u.length;s.useEffect(()=>{C.current||(C.current=document.activeElement);let v=0,g=0;const x=()=>{const _=h.current?.querySelector("button:not([disabled])");if(_&&_.offsetParent){_.focus({preventScroll:!0});return}g++<20&&(v=requestAnimationFrame(x))};return v=requestAnimationFrame(x),()=>cancelAnimationFrame(v)},[y]),s.useEffect(()=>()=>{C.current?.focus?.({preventScroll:!0})},[]);const f=s.useCallback((v,g,x)=>{if(v){if(Array.isArray(v.children)&&v.children.length){c(_=>[..._.slice(0,p),{ci:g,ii:x}]);return}try{typeof v.onClick=="function"&&v.onClick()}catch{}try{v&&v.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n,p]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(u.length>1||d.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[u.length>1?t.jsx(ie,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:o("common.back","\uB4A4\uB85C"),onClick:m,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:h,children:d.columns&&d.columns.map((v,g)=>t.jsxs("div",{className:"tooltip-menu__column",children:[v.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:v.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(v.items||[]).map((x,_)=>t.jsx(ie,{htmlType:"button",className:"tooltip-menu__item",size:i,type:x.label?"bar":"dot",icon:x.selected?"check":x.icon||"none",rightIcon:Array.isArray(x.children)&&x.children.length?"chevron-right":x.badgeCount?t.jsx(lt,{type:"dot",position:"inline",number:Math.min(x.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:x.label,ariaLabel:x.label&&x.badgeCount&&x.badgeCount>0?o("nav.badgeLabel",{label:x.label,count:x.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):x.label,onClick:()=>f(x,g,_),selected:x.selected,disabled:x.disabled,showTooltipInfo:x.tooltip||!1,useBorder:!1,align:"left"},_))})]},g))})]})}const $a=52,Gn=10,Di=e=>e&&e>0?e:0;function Si({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:o,moreItems:i=[]}){const{t:l}=de.useTranslation(),c=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",d=r==="manager"?l("nav.modeLabelMalgwi","\uB9D0\uADC0"):l("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=s.useRef(null),[m,h]=s.useState(0),C=e.length;s.useEffect(()=>{const P=p.current;if(!P||(h(P.clientWidth),typeof ResizeObserver>"u"))return;const $=new ResizeObserver(M=>h(M[0].contentRect.width));return $.observe(P),()=>$.disconnect()},[]);const y=$a+1,f=s.useRef(!1),v=m>0&&i.length===0&&f.current?m+y:m,g=C*($a+Gn)-Gn<=v,x=m<=0?C:i.length>0?Math.floor((m+Gn)/($a+Gn)):g?C:Math.floor((v-y+Gn)/($a+Gn)),_=m>0&&x<C,b=_?x:C,A=e.slice(0,b),w=e.slice(b),D=_||i.length>0;s.useEffect(()=>{f.current=D});const B=s.useCallback(P=>({position:"fixed",bottom:window.innerHeight-P.top+8,right:window.innerWidth-P.right,zIndex:1e4}),[]),k=s.useId(),{open:N,toggle:I,close:O,style:j,triggerRef:H,menuRef:T}=pa({computeStyle:B,onScroll:"ignore",onResize:"ignore"}),K=s.useCallback((P,$)=>$>0?l("nav.badgeLabel",{label:P,count:$,defaultValue:"{{label}}, {{count}}\uAC1C"}):P,[l]),W=s.useCallback(()=>o?.(c),[o,c]),V=s.useMemo(()=>w.find(P=>!!P.key&&P.key===n)??i.find(P=>P.selected||P.key&&P.key===n),[w,n,i]),U=s.useMemo(()=>[{items:[...w.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:!!P.key&&P.key===n,closeOnSelect:!0,disabled:P.state==="disabled",onClick:()=>{P.state!=="disabled"&&(P.key&&a&&a(P.key),O())}})),...i.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:P.selected??(!!P.key&&P.key===n),closeOnSelect:!0,onClick:()=>{P.onClick?.(),O()}}))]}],[w,i,n,a,O]),re=[...w,...i].reduce((P,$)=>P+Di($.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav","aria-label":l("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[o&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(ie,{htmlType:"button",size:52,type:"dot",icon:u,ariaLabel:d,className:"bottom-nav-item",onClick:W})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",ref:p,children:A.map((P,$)=>{const M=Di(P.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(ie,{htmlType:"button",size:52,type:"dot",icon:P.icon,ariaLabel:K(P.label,M),selected:!!P.key&&P.key===n,disabled:P.state==="disabled",className:"bottom-nav-item",onClick:()=>P.key&&a?.(P.key)}),M>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(lt,{type:"dot",position:"top-right",number:Math.min(M,99),size:24})})]},P.key??`__slot-${$}`)})}),D&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),t.jsx("div",{className:"bottom-nav__right",children:t.jsxs("div",{ref:H,className:"bottom-nav__slot",children:[t.jsx(ie,{htmlType:"button",size:52,type:"dot",icon:V?.icon??"ellipsis",ariaLabel:K(V?.label??l("nav.more","\uB354\uBCF4\uAE30"),re),selected:!!V,className:"bottom-nav-item",onClick:I,"aria-expanded":N,"aria-controls":N?k:void 0}),re>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(lt,{type:"dot",position:"top-right",number:Math.min(re,99),size:24})}),N&&Ut.createPortal(t.jsx("div",{id:k,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:j,ref:T,children:t.jsx(La,{columns:U,onClose:O})}),document.body)]})})]})]})}function Ti(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function j2(e){const{t:n}=de.useTranslation(),{activeKey:a,unreadCount:r,onDebug:o,onNotification:i,onSetting:l,onHelp:c,onAccount:u}=e||{},d="default";return o||i||l||c||u?t.jsxs("div",{className:"side-nav__footer",children:[o&&t.jsx(ie,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:o,selected:a==="debug"}),i&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(ie,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"bell",ariaLabel:Ti(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&t.jsx(lt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&t.jsx(ie,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),c&&t.jsx(ie,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),u&&t.jsx(ie,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function ji(e){const{t:n}=de.useTranslation(),{item:a,itemKey:r,label:o,icon:i,active:l,onClick:c,style:u,state:d,labelStyle:p}=e||{},m=a?.key??r??"",h=a?.label??o??"",C=a?.icon??i??"",y=a?.badge??0,f=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(Ue,{icon:C,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),v=d==="disabled",g=`side-nav__item ${l?"active":""} ${d||""} ${v?"disabled":""} ${a?.child?"side-nav__item--child":""}`,x=s.useCallback(_=>{if(v)return;const b=_.detail>0;if(b)try{_.currentTarget.blur()}catch{}c?.(m,_.currentTarget,b)},[v,m,c]);return t.jsxs("button",{type:"button",className:g,onClick:x,"aria-label":typeof h=="string"?Ti(n,h,y):void 0,"aria-current":l?"page":void 0,style:u,"aria-disabled":v,children:[f,t.jsx("span",{className:"side-nav__label button-1 f",style:p,children:h}),y>0&&t.jsx(lt,{type:"dot",position:"inline",number:Math.min(y,99),size:24,"aria-hidden":!0}),d==="loading"&&t.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":n("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function Ei(e){const{t:n}=de.useTranslation(),{items:a=[],activeKey:r,onChange:o,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}=e||{},C=m==="manager",y=s.useCallback(()=>h?.(C?"malgwi":"manager"),[h,C]);return t.jsxs("nav",{"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,v)=>t.jsxs(s.Fragment,{children:[f.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(ji,{item:f,active:!!f.key&&f.key===r,state:f.disabled?"disabled":void 0,onClick:(g,x,_)=>{if(f.disabled)return;if(f.href){if(window.open(f.href,"_blank","noopener,noreferrer"),_)try{x?.blur()}catch{}return}o?.(f.key);try{const A=document.querySelector(".content-area");A?A.scrollTop=0:window.scrollTo({top:0})}catch{}if(!_)return;try{x?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const b=document.querySelector(".header");if(b&&!(typeof b.matches=="function"&&b.matches(":hover"))){b.classList.add("header--force-collapsed");const A=()=>{b.classList.remove("header--force-collapsed"),b.removeEventListener("mouseenter",A)};b.addEventListener("mouseenter",A)}}})]},f.key??`side-nav__item-${v}`)),h&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),h&&t.jsx(ji,{item:{key:"__mode-switch__",label:C?n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:C?"arrow-left":"arrow-right"},onClick:y})]}),t.jsx(j2,{activeKey:r,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var Tr='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2080_3066)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="black"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="black"/>%0A<path d="M46.4288 17.8571H25.0002C15.138 17.8571 7.14307 25.852 7.14307 35.7143V57.1428C7.14307 67.0051 15.138 75 25.0002 75H46.4288C56.291 75 64.2859 67.0051 64.2859 57.1428V35.7143C64.2859 25.852 56.291 17.8571 46.4288 17.8571Z" fill="%234DCDC0"/>%0A<path d="M34.8607 50.7393C25.8285 60.6821 10.6142 61.6678 0.385667 53.1643C-0.0821902 52.775 -0.13219 52.0678 0.278524 51.6178L16.3535 33.925L34.8607 50.7393Z" fill="%234DCDC0"/>%0A<path d="M53.5714 25H32.1428C22.2821 25 14.2856 32.9964 14.2856 42.8571V64.2857C14.2856 74.1464 22.2821 82.1429 32.1428 82.1429H48.2535C49.2178 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7214 51.8928 85.6321C62.8392 84.675 71.4285 75.4821 71.4285 64.2857V42.8571C71.4285 32.9964 63.4321 25 53.5714 25Z" fill="%234DCDC0"/>%0A<path d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23499CDF"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="white"/>%0A<path d="M36.0715 57.1429C35.0287 57.1429 33.9822 56.875 33.0358 56.3286C32.1822 55.8357 31.8894 54.7429 32.3858 53.8893C32.8787 53.0357 33.9715 52.7429 34.8251 53.2393C35.8037 53.8036 37.043 53.6429 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3536 40.4322 35.9107 37.5072 35.7286C36.5215 35.6679 35.5715 35.8464 34.693 36.2679C33.8037 36.6929 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0429C34.5751 32.3714 36.1537 32.0679 37.7322 32.1643C42.4894 32.4607 46.3072 36.4286 46.4251 41.1964C46.4822 43.5286 45.6715 45.7786 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9357C41.8965 53.2464 41.3037 54.4357 40.368 55.375C39.2001 56.5429 37.6465 57.15 36.0751 57.15L36.0715 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2080_3066">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',jr='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7374)">%0A<path d="M237.151 26.0393V72.7214H216.65V26.0393H237.151ZM234.408 70.0464V28.7179H219.254V70.0464H234.408ZM261.495 76.3607H258.819V48.9679H247.575V75.4679H244.899V23.9821H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3607Z" fill="black"/>%0A<path d="M299.722 69.2571C302.076 68.775 304.031 68.1464 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.789 72.0357C297.435 72.4929 295.045 72.7214 292.623 72.7214H272.257V25.6964H275V69.975H292.623C294.998 69.975 297.364 69.7357 299.722 69.2536V69.2571ZM311.69 76.4321V23.6393H314.433V76.3643L311.69 76.4321Z" fill="black"/>%0A<path d="M340.556 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.329 62.2643 333.632 65.925C330.935 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.33 63.1107C334.617 59.3572 336.354 54.5179 337.542 48.5893C338.73 42.6643 339.369 36.0393 339.461 28.7143H324.992V26.0357H356.602V28.7143H342.201C342.155 35.9 341.605 42.3072 340.556 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="black"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="black"/>%0A<path d="M181.886 47.8714V57.275C179.097 58.5571 174.73 59.1964 168.791 59.1964H168.174V76.3607H158.299V59.1964H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8714H181.886ZM148.971 34.2786V24.875H177.634V47.05H167.76V34.2821H148.971V34.2786ZM194.64 76.3607H184.765V23.6393H194.64V76.3643V76.3607Z" fill="black"/>%0A<path d="M48.1549 17.8571H26.7511C16.9002 17.8571 8.91455 25.852 8.91455 35.7143V57.1428C8.91455 67.0051 16.9002 75 26.7511 75H48.1549C58.0058 75 65.9915 67.0051 65.9915 57.1428V35.7143C65.9915 25.852 58.0058 17.8571 48.1549 17.8571Z" fill="%234DCDC0"/>%0A<path d="M36.6007 50.7393C27.579 60.6821 12.3823 61.6678 2.1655 53.1643C1.69818 52.775 1.64824 52.0678 2.05848 51.6178L18.1149 33.925L36.6007 50.7393Z" fill="%234DCDC0"/>%0A<path d="M55.2897 25H33.8859C24.0365 25 16.0493 32.9964 16.0493 42.8571V64.2857C16.0493 74.1464 24.0365 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7214 53.6131 85.6321C64.5469 84.675 73.1262 75.4821 73.1262 64.2857V42.8571C73.1262 32.9964 65.139 25 55.2897 25Z" fill="%234DCDC0"/>%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23499CDF"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="white"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7374">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',E2='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';function Mi({appMode:e}){const{t:n}=de.useTranslation(),a=e==="manager",r=a?jr:Tr,o=E2,i=on("(min-width: 768px) and (max-width: 1023px)");return t.jsx("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:i?t.jsx("img",{src:o,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):t.jsx("img",{src:r,alt:a?n("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):n("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function Li({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:o,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}){const{t:C}=de.useTranslation(),y=on("(max-width: 767px)"),f=s.useMemo(()=>(a??[]).filter(I=>!I.section&&(I.key||I.label)).map(I=>({key:I.key,label:typeof I.label=="string"?I.label:void 0,icon:I.icon,state:I.disabled?"disabled":void 0,badgeCount:I.badge})),[a]),v=s.useCallback(I=>{const O=a?.find(j=>j.key===I);if(!O?.disabled){if(O?.href){window.open(O.href,"_blank","noopener,noreferrer");return}n?.(I)}},[a,n]),g=s.useMemo(()=>{const I=[];return l&&I.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&I.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),d&&I.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),p&&I.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&I.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:u}),I},[C,l,c,d,p,u,i]),x=s.useCallback(I=>({position:"fixed",top:I.bottom+8,right:Math.max(8,window.innerWidth-I.right),zIndex:1e4}),[]),_=s.useId(),{open:b,toggle:A,close:w,style:D,triggerRef:B,menuRef:k}=pa({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),N=s.useMemo(()=>[{items:g.map(I=>({label:I.label,icon:I.icon,badgeCount:I.badgeCount,selected:I.selected??(!!I.key&&I.key===e),closeOnSelect:!0,onClick:()=>{I.onClick?.(),w()}}))}],[g,e,w]);return t.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(Mi,{appMode:m}),t.jsxs("div",{className:"header__menu-button",ref:B,children:[t.jsx(ie,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:c&&i&&i>0?C("nav.badgeLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:A,"aria-expanded":b,"aria-controls":b?_:void 0}),!!c&&!!i&&i>0&&t.jsx(lt,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),b&&Ut.createPortal(t.jsx("div",{id:_,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:D,ref:k,children:t.jsx(La,{columns:N,onClose:w})}),document.body)]})]}),t.jsx(Ei,{items:a,activeKey:e??void 0,onChange:n,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:m,onAppModeChange:h}),y&&t.jsx(Si,{items:f,activeKey:e??void 0,onChange:v,appMode:m,onAppModeChange:h})]})}const M2=Li;var L2={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."},$2={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],yearMonth:"{{year}}\uB144 {{month}}\uC6D4",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704"},R2={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},P2={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},I2={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},F2={selected:"\uC120\uD0DD\uB428"},O2={placeholder:"\uC120\uD0DD"},H2={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},V2={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"},z2={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C"},W2={language:{training:{label:"\uD6C8\uB828 \uC5B8\uC5B4",sub:"\uD6C8\uB828\uC5D0 \uC0AC\uC6A9\uB418\uB294 \uB2E8\uC5B4\uC640 \uC74C\uC131 \uC5B8\uC5B4"}},notifications:{title:"\uC54C\uB9BC"},display:{fontSize:{small:"\uC791\uAC8C",large:"\uD06C\uAC8C"}},cache:{title:"\uCE90\uC2DC \uAD00\uB9AC",confirmMessage:"\uCE90\uC2DC({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",delete:"\uC0AD\uC81C",deleting:"\uC0AD\uC81C \uC911",cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"},trainingRecord:{label:"\uD6C8\uB828 \uAE30\uB85D",sub:"\uC624\uB298\uC758 \uD6C8\uB828 \uC9C4\uD589\uB960 \uBC0F \uD559\uC2B5 \uC77C\uC218"}}},button:{save:"\uC124\uC815 \uC800\uC7A5"},popup:{clear:{confirm:"\uCD08\uAE30\uD654"},update:{confirm:"\uC5C5\uB370\uC774\uD2B8"},cache:{title:"{{label}} \uC0AD\uC81C",message:"{{label}}({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"}},saved:"\u2713 \uC800\uC7A5\uB428",account:{title:"\uACC4\uC815",delete:{sub:"\uD0C8\uD1F4 \uD6C4 30\uC77C \uC774\uB0B4 \uC7AC\uAC00\uC785 \uC2DC \uBCF5\uAD6C \uAC00\uB2A5\uD569\uB2C8\uB2E4."}}},q2={addButton:"\uC774\uC6A9\uAD8C \uCD94\uAC00\uD558\uAE30",couponButton:"\uCFE0\uD3F0 \uC785\uB825",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",segment:{personal:"\uB9D0\uADC0",org:"\uB9D0\uADC0\uB9E4\uB2C8\uC800"},org:{title:"\uD604\uC7AC \uC774\uC6A9\uAD8C",disc:"\uAE30\uAD00\uC5D0\uC11C \uC0AC\uC6A9 \uC911\uC778 \uC774\uC6A9\uAD8C \uC815\uBCF4\uC785\uB2C8\uB2E4.",empty:"\uB4F1\uB85D\uB41C \uAE30\uAD00 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",fallbackTitle:"\uAE30\uAD00 \uC774\uC6A9\uAD8C",startDate:"\uC2DC\uC791\uC77C",endDate:"\uB9CC\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04",duration:"\uC774\uC6A9 \uAE30\uAC04"},active:{infoTitle:"\uC774\uC6A9 \uC815\uBCF4",refund:"\uD658\uBD88 \uC694\uCCAD",startDate:"\uC0AC\uC6A9 \uC2DC\uC791\uC77C",endDate:"\uC885\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04"},pending:{title:"\uBCF4\uC720",empty:"\uB300\uAE30 \uC911\uC778 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}},U2={profile:{planSuffix:"\uD50C\uB79C",plan:"\uD50C\uB79C"},basicInfo:{name:{placeholder:"\uD64D\uAE38\uB3D9"}},security:{title:"\uBCF4\uC548",password:{label:"\uBE44\uBC00\uBC88\uD638",currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},twoFactor:{label:"2\uB2E8\uACC4 \uC778\uC99D",sub:"\uACC4\uC815 \uBCF4\uC548\uC744 \uAC15\uD654\uD558\uC138\uC694"}}},G2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},K2={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",selectInOrder:"\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",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:{eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"}},Y2={totalCount:"\uAC1C\uC758 \uD6C8\uB828 \uBB36\uC74C",renameGroup:"\uADF8\uB8F9 \uC774\uB984 \uBC14\uAFB8\uAE30",itemCount:"\uD6C8\uB828 \uAC1C\uC218",menu:{edit:"\uD6C8\uB828 \uBB36\uC74C \uC218\uC815",rename:"\uC774\uB984 \uBC14\uAFB8\uAE30",move:"\uADF8\uB8F9 \uC774\uB3D9",duplicate:"\uD6C8\uB828 \uBB36\uC74C \uBCF5\uC0AC",publish:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30"},sort:{customers:"\uD6C8\uB828 \uACE0\uAC1D"},copyLink:"\uB9C1\uD06C \uBCF5\uC0AC",removeLink:"\uB9C1\uD06C \uC81C\uAC70",linkRemoved:"\uB9C1\uD06C\uAC00 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",linkSaveFirst:"\uBA3C\uC800 \uD6C8\uB828 \uBB36\uC74C\uC744 \uC800\uC7A5\uD574\uC8FC\uC138\uC694.",linkSaveFirstHint:"\uC800\uC7A5\uB41C \uD6C8\uB828 \uBB36\uC74C\uC5D0\uC11C\uB9CC \uACF5\uC720 \uB9C1\uD06C\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",linkCopySelect:"\uBCF5\uC0AC\uAC00 \uB9C9\uD600 \uB9C1\uD06C\uB97C \uC120\uD0DD\uD588\uC2B5\uB2C8\uB2E4. Ctrl/\u2318+C\uB85C \uBCF5\uC0AC\uD558\uC138\uC694.",nameRequired:"\uD6C8\uB828 \uBB36\uC74C \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694.",itemRequired:"\uD6C8\uB828\uC744 1\uAC1C \uC774\uC0C1 \uB2F4\uC544\uC8FC\uC138\uC694.",randomAdd:"\uBB34\uC791\uC704 \uCD94\uAC00"},Z2={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",basicInfo:{editTooltip:"\uC218\uC815\uD558\uAE30"},member:{placeholder:"\uC774\uBA54\uC77C \uB610\uB294 \uC804\uD654",link:"\uC5F0\uACB0",linking:"\uC5F0\uACB0 \uC911\u2026"},device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addTooltip:"\uC0C8\uB85C \uC0DD\uC131",addButton:"\uAE30\uAE30 \uCD94\uAC00",listTooltip:"\uBAA9\uB85D \uBCF4\uAE30",listTitle:"\uCE21 \uAE30\uAE30 \uBAA9\uB85D",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",release:"\uD574\uC81C",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{title:"\uBC29\uBB38 \uC608\uC815",addTooltip:"\uC608\uC815 \uB4F1\uB85D",listTooltip:"\uC804\uCCB4 \uBCF4\uAE30",empty:"\uC608\uC815\uB41C \uBC29\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D",memoPlaceholder:"\uBC29\uBB38 \uC608\uC815 \uAD00\uB828 \uBA54\uBAA8\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694."},visitHistory:{title:"\uBC29\uBB38 \uC774\uB825",addTooltip:"\uC2E0\uADDC \uB4F1\uB85D",empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uC0C1\uD669",active:"\uD65C\uC131",inactive:"\uBE44\uD65C\uC131",copy:"\uB9C1\uD06C \uBCF5\uC0AC",copied:"\uB9C1\uD06C\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",visits:{title:"\uBC29\uBB38"},trainingRecord:{title:"\uACE0\uAC1D \uD6C8\uB828 \uAE30\uB85D"},status:{trainingSubtitle:"\uD6C8\uB828 \uD604\uD669"},detail:{session:{completedFmt:"\uC644\uB8CC {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:"\uC758 \uBC29\uBB38"},duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},X2={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"}}}},J2={title:"\uCFE0\uD3F0",subtitle:"\uCFE0\uD3F0 \uCF54\uB4DC\uB97C \uC785\uB825\uD558\uAC70\uB098 \uBCF4\uC720 \uCFE0\uD3F0\uC744 \uD655\uC778\uD558\uC138\uC694.",input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9",error:{invalid:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uCFE0\uD3F0 \uCF54\uB4DC\uC785\uB2C8\uB2E4.",alreadyUsed:"\uC774\uBBF8 \uC0AC\uC6A9\uB41C \uCFE0\uD3F0\uC785\uB2C8\uB2E4."},success:{applied:'"{{name}}" \uCFE0\uD3F0\uC774 \uC801\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.'},section:{owned:"\uBCF4\uC720 \uCFE0\uD3F0"},status:{used:"\uC0AC\uC6A9 \uC644\uB8CC",available:"\uC0AC\uC6A9 \uAC00\uB2A5"}},Q2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},ef={subtitle:"\uC5C5\uCCB4 \uBC0F \uBC95\uC778 \uC815\uBCF4\uB97C \uAD00\uB9AC\uD558\uC138\uC694.",editButton:"\uC815\uBCF4 \uC218\uC815",basicInfo:{title:"\uAE30\uBCF8 \uC815\uBCF4"},contactInfo:{title:"\uC5F0\uB77D\uCC98 \uC815\uBCF4"}},tf={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."}},nf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},af={colName:"\uB2E8\uC5B4\uD45C \uC774\uB984",open:"\uC5F4\uAE30",countSuffix:"\uAC1C\uC758 \uB2E8\uC5B4\uD45C",tab:{cards:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",tables:"\uB2E8\uC5B4\uD45C"},cardsEmpty:"\uC544\uC9C1 \uB9CC\uB4E0 \uB2E8\uC5B4\uD45C \uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",addCard:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC \uCD94\uAC00",menu:{publishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30",unpublishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0\uC11C \uB0B4\uB9AC\uAE30"},newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},rf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},of={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"\uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"}},sf={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},lf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},cf={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"}},uf={maxUses:"\uCD5C\uB300 \uC0AC\uC6A9 \uD69F\uC218 (\uBE44\uC6CC\uB450\uBA74 \uBB34\uC81C\uD55C)",redirect:"\uC774\uB3D9\uD560 \uD398\uC774\uC9C0 URL (\uBE44\uC6CC\uB450\uBA74 \uC571 \uBA54\uC778)",creating:"\uC0DD\uC131 \uC911\u2026",create:"\uB9C1\uD06C \uC0DD\uC131",created:"\u2713 \uB9C1\uD06C\uAC00 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4",copied:"\uBCF5\uC0AC\uB428!",copy:"\uBCF5\uC0AC",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",empty:"\uC0DD\uC131\uB41C \uB9C1\uD06C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",uses:"{{count}}\uD68C \uC0AC\uC6A9",expiresAt:"\uB9CC\uB8CC: {{date}}",createdAt:"\uC0DD\uC131: {{date}}",confirmDelete:"\uC0AD\uC81C\uD560\uAE4C\uC694?",deactivate:"\uBE44\uD65C\uC131\uD654",delete:"\uC0AD\uC81C",status:{active:"\uC720\uD6A8",expired:"\uB9CC\uB8CC",inactive:"\uBE44\uD65C\uC131"}},df={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},pf={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},mf={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",validationError:{brandAndProduct:"\uBE0C\uB79C\uB4DC\uC640 \uC81C\uD488\uBA85\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."},addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C",type:{hearingAid:"\uBCF4\uCCAD\uAE30",cochlearImplant:"\uC778\uACF5\uC640\uC6B0"}},hf={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",daily:"\uC77C\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"},subscriptionStatus:{active:"{{pct}}% \uD65C\uC131",expired:"{{pct}}% \uB9CC\uB8CC",unused:"{{pct}}% \uBBF8\uC0AC\uC6A9"}},ff={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4.",selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},searchLabel:{error:"\uB370\uC774\uD130 \uBD88\uB7EC\uC624\uAE30 \uC2E4\uD328",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},Cf={sentenceTyping:{roundCount:"{{rounds}}\uBB38\uC81C \xB7 \uBB38\uC81C\uB2F9 {{timeLimit}}\uCD08"},wordDefense:{me:"\uB098"},dictation:{title:"\uBC1B\uC544\uC4F0\uAE30",desc:"\uBB38\uC7A5\uC744 \uB4E3\uACE0 \uC815\uD655\uD788 \uBC1B\uC544\uC801\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC131 \uC7AC\uC0DD, \uC785\uB825 \uD544\uB4DC, \uC815\uB2F5 \uBE44\uAD50"},result:{heading:"{{number}}\uB2E8\uACC4 \uD574\uB2F5",retry:"\uB2E4\uC2DC \uD480\uAE30"},common:{accuracy:"{{pct}}% \uC815\uD655\uB3C4"},soundMatch:{title:"\uC18C\uB9AC \uB9E4\uCE6D",desc:"\uAC19\uC740 \uC18C\uB9AC\uB97C \uAC00\uC9C4 \uB2E8\uC5B4 \uB610\uB294 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB9E4\uCE6D\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uD50C\uB808\uC774 \uBC84\uD2BC, \uD0C0\uC774\uBA38, \uC810\uC218 \uC9D1\uACC4"},orderSequence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uD769\uC5B4\uC9C4 \uBB38\uC7A5 \uC870\uAC01\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uBB38\uC7A5 \uC138\uD2B8, \uC21C\uC11C \uD655\uC778 \uC778\uD130\uD398\uC774\uC2A4"},speedListen:{title:"\uC18D\uB3C4 \uB4E3\uAE30",desc:"\uC2DC\uAC04 \uC81C\uD55C \uB0B4\uC5D0 \uBB38\uC7A5\uC758 \uB2E8\uC5B4 \uC218\uB97C \uB9DE\uCD94\uB294 \uB3C4\uC804\uD615 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC81C\uD55C\uC2DC\uAC04, \uC810\uC218\uD310"},noiseChallenge:{title:"\uC18C\uC74C \uCC4C\uB9B0\uC9C0",desc:"\uBC30\uACBD \uC18C\uC74C \uC18D\uC5D0\uC11C \uBB38\uC7A5\uC744 \uBD84\uBCC4\uD558\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB2E4\uC591\uD55C \uC18C\uC74C \uB808\uBCA8, \uC810\uC218 \uC9D1\uACC4"},fastListen:{title:"\uBE60\uB978 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB4E4\uB824\uC8FC\uACE0 \uD575\uC2EC \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB09C\uC774\uB3C4\uBCC4 \uC18D\uB3C4, \uD0C0\uC774\uBA38"},shadowing:{title:"\uC250\uB3C4\uC789",desc:"\uBB38\uC7A5\uC744 \uB530\uB77C \uB9D0\uD558\uBA70 \uBC1C\uC74C\uACFC \uC5B5\uC591\uC744 \uC5F0\uC2B5\uD558\uB294 \uBAA8\uB4DC\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC7AC\uC0DD, \uB179\uC74C, \uBE44\uAD50 \uD53C\uB4DC\uBC31"},phonemeHunt:{title:"\uC74C\uC6B4 \uCC3E\uAE30",desc:"\uD2B9\uC815 \uC74C\uC6B4(\uBC1C\uC74C)\uC744 \uD3EC\uD568\uD55C \uB2E8\uC5B4\uB97C \uCC3E\uC544\uB0B4\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC6B4 \uD544\uD130, \uD78C\uD2B8 \uAE30\uB2A5"}},gf={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
828
828
  \uC2E0\uB8B0\uB97C \uC313\uACE0
829
829
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638"},bf={trainingPhone:{topic:"\uD143\uBC2D\uAC00\uAFB8\uAE30",prev:"\uC774\uC804",next:"\uB2E4\uC74C",speed:"\uBE60\uB974\uAE30 3",noiseType:"\uC640\uAE00\uC640\uAE00",settings:"\uC124\uC815",start:{caption:"\uC544\uB798 \uD50C\uB808\uC774(\u25B6) \uBC84\uD2BC\uC744 \uB20C\uB7EC \uBB38\uC7A5\uC744 \uC798 \uB4E4\uC5B4\uBCF4\uC138\uC694. \uC798 \uB4E4\uC73C\uC2E0 \uB4A4 \uBB38\uC7A5\uC744 \uD655\uC778\uD558\uC138\uC694."},feedback:{caption:"\uC798 \uD0A4\uC6B4 \uBAA8\uC885\uC744 \uD143\uBC2D\uC5D0 \uC2EC\uACE0 \uBE44\uB2D0\uC744 \uC798 \uB36E\uC5B4 \uC90D\uB2C8\uB2E4."},done:{heardWell:"\uC798 \uB4E4\uB9B0 \uBB38\uC7A5",listenAgain:"\uD55C \uBC88 \uB354 \uB4E3\uAE30"}}},yf={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},vf={options:"\uD6C8\uB828 \uC635\uC158",difficulty:"\uB09C\uC774\uB3C4",exclude:"\uC81C\uC678",chosung:"\uCD08\uC131",excludeOptions:{none:"\uC5C6\uC74C",noImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"}},xf={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},_f={phaseWordDownload:"\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC",phaseImageCheck:"\uC774\uBBF8\uC9C0 \uD655\uC778",phasePairAnalysis:"\uB2E8\uC5B4\uC30D \uBD84\uC11D",downloadingCount:"{{n}}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911",checkingPage:"{{page}}\uD398\uC774\uC9C0 \uBAA9\uB85D \uD655\uC778 \uC911",imageCount:"{{done}} / {{total}}\uAC1C"},wf={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},kf={ariaLabel:"\uC120\uD0DD \uD0ED"},Af={ariaLabel:"\uD0ED"},Nf={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Bf={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Df={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"},reason:{notLoggedIn:"\uB85C\uADF8\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},list:{title:"\uBC1B\uC740 \uC219\uC81C"},status:{expired:"\uB9CC\uB8CC\uB428",done:"\uC644\uB8CC {{count}}\uD68C \xB7 {{date}}",notDone:"\uBBF8\uC644\uB8CC"}},Sf={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30",crossword:"\uAC00\uB85C\uC138\uB85C"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",count:"\uC804\uCCB4",done:"\uC644\uB8CC",remaining:"\uBBF8\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},filter:{countSuffix:" \uD6C8\uB828"},time:{countLabel:"{{n}}\uD68C \uD6C8\uB828",empty:"\uD6C8\uB828 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},daily:{title:"\uC624\uB298\uC758 \uB4E3\uAE30 \uAE30\uB85D",empty:"\uC644\uB8CC\uD55C \uD68C\uCC28\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},crossword:{title:"\uAC00\uB85C\uC138\uB85C\uD034\uC988",empty:"\uC644\uB8CC\uD55C \uB808\uBCA8\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",trainingType:{LISTEN_IN_NOISE:"\uC18C\uC74C \uD558 \uBB38\uC7A5",SHORT_STORY:"\uC9E7\uC740 \uC774\uC57C\uAE30",LONG_STORY:"\uAE34 \uC774\uC57C\uAE30",ORDERING_SENTENCE:"\uBB38\uC7A5 \uC21C\uC11C\uD654"}},Tf={publish:{descPlaceholder:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uD45C\uC2DC\uD560 \uD55C \uC904 \uC124\uBA85 (\uC120\uD0DD)"},import:"\uB0B4 \uD6C8\uB828\uC5D0 \uAC00\uC838\uC624\uAE30",publisher:"\uAC8C\uC2DC\uC790",time:{justNow:"\uBC29\uAE08 \uC804",minutesAgo:"{{n}}\uBD84 \uC804",hoursAgo:"{{n}}\uC2DC\uAC04 \uC804",daysAgo:"{{n}}\uC77C \uC804",weeksAgo:"{{n}}\uC8FC \uC804",monthsAgo:"{{n}}\uAC1C\uC6D4 \uC804",yearsAgo:"{{n}}\uB144 \uC804"},badge:{shared:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"}},jf={manage:{unit:"\uAC74"}},Ef={cancelLabel:"\uCDE8\uC18C"},Mf={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},Lf={panelTitle:"\uD6C8\uB828 \uC624\uB2F5",viewItems:"\uBB38\uD56D",viewTypes:"\uC720\uD615",colPending:"\uB0A8\uC740 \uAC83",colTrend:"\uBCC0\uD654",colRuns:"\uD310",unitItem:"\uAC1C",skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",summaryLabel:"\uC313\uC778 \uAE30\uB85D",summaryValue:"{{items}}\uBB38\uD56D \xB7 \uC544\uC9C1 \uBABB \uC7A1\uC740 \uAC83 {{pending}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C",picked:"\u2192 {{what}}",typeClear:"\uB2E4 \uC7A1\uC558\uC5B4\uC694",typePending:"{{total}}\uAC1C \uC911 {{pending}}\uAC1C \uB0A8\uC74C",flat:"\uBCC0\uD654 \uC5C6\uC74C",runs:"{{count}}\uD310",avgDuration:"\uD3C9\uADE0 {{sec}}\uCD08"},$f={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},Rf={panelTitle:"\uB2E8\uC5B4\uD45C \uCC44\uC810",viewWords:"\uB0B1\uB9D0",viewTables:"\uD45C",colLatest:"\uB9C8\uC9C0\uB9C9",colTrend:"\uBCC0\uD654",unitTime:"\uD68C",summaryLabel:"\uC313\uC778 \uCC44\uC810",summaryValue:"{{times}}\uD68C \xB7 \uB0B1\uB9D0 {{words}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",allClear:"\uC9C0\uB09C\uBC88\uC5D0 \uBAA8\uB450 \uB9DE\uD614\uC2B5\uB2C8\uB2E4.",times:"{{count}}\uD68C",flat:"\uBCC0\uD654 \uC5C6\uC74C",recentLabel:"\uCD5C\uADFC \uCC44\uC810",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C"},Pf={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},If={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},Ff={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Of={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Hf={devNone:"\uBC1C\uB2EC \uC790\uB8CC \uC5C6\uC74C",place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},Vf={clearSelection:"\uC120\uD0DD \uD574\uC81C"},zf={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Wf={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},qf={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Uf={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Gf={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},Kf={common:L2,calendar:$2,passCard:R2,searchField:P2,rating:I2,colorPicker:F2,dropdown:O2,accordion:H2,header:V2,nav:z2,settings:W2,usage:q2,account:U2,help:G2,training:K2,trainingSettings:Y2,customers:Z2,payment:X2,coupons:J2,visits:Q2,company:ef,trainingType:tf,myWordTraining:nf,myWordTable:af,keyWords:rf,wordTable:of,wordSearch:sf,wordPrint:lf,topic:cf,accessLinkManager:uf,login:df,trainingPlanRun:pf,device:mf,manager:hf,wordPairs:ff,game:Cf,footer:gf,landing:bf,date:yf,trainingSetPage:vf,wordTrainingPreview:xf,wordData:_f,textField:wf,segmentedControl:kf,tabs:Af,fileUpload:Nf,avatar:Bf,myHomework:Df,trainingStatus:Sf,store:Tf,homework:jf,inquiry:Ef,progress:Mf,trainingMiss:Lf,table:$f,wordScore:Rf,topBanner:Pf,datePicker:If,report:Ff,tooltip:Of,phonemeProfile:Hf,bulkBar:Vf,debug:zf,badge:Wf,loader:qf,soundCompass:Uf,breadcrumb:Gf},Yf={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},Zf={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonth:"{{month}}/{{year}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit"},Xf={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},Jf={clearAriaLabel:"Clear search"},Qf={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},eC={selected:"selected"},tC={placeholder:"Select"},nC={collapse:"Collapse",expand:"Expand"},aC={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},rC={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}"},oC={language:{training:{label:"Training Language",sub:"Language used for training words and speech"}},notifications:{title:"Notifications"},display:{fontSize:{small:"Small",large:"Large"}},cache:{title:"Cache Management",confirmMessage:"Delete cache ({{size}}). Do you want to continue?",delete:"Delete",deleting:"Deleting",cleared:"Cache cleared successfully.",group:{wordData:{label:"Word Data",sub:"Word list and version info"},pairIndex:{label:"Pair Index",sub:"Onset\xB7vowel\xB7coda minimal pair analysis cache"},imageCache:{label:"Image Cache",sub:"Word image existence check results"},trainingRecord:{label:"Training Record",sub:"Daily training progress and streak"}}},button:{save:"Save Settings"},popup:{clear:{confirm:"Reset"},update:{confirm:"Update"},cache:{title:"Delete {{label}}",message:"Delete {{label}} ({{size}}). Do you want to continue?"}},saved:"\u2713 Saved",account:{title:"Account",delete:{sub:"You can restore your account within 30 days of withdrawal."}}},sC={addButton:"Add Subscription",couponButton:"Enter Coupon",active:{infoTitle:"Subscription Info",refund:"Request Refund",startDate:"Start Date",endDate:"End Date",remaining:"Remaining"},pending:{title:"Pending",empty:"No pending subscriptions."},loading:"Loading\u2026",segment:{personal:"Malgwi",org:"Malgwi Manager"},org:{title:"Current Plan",disc:"Subscription plan in use by your organization.",empty:"No organization plan registered.",fallbackTitle:"Organization Plan",startDate:"Start Date",endDate:"End Date",remaining:"Remaining",duration:"Duration"}},iC={profile:{planSuffix:"",plan:"Plan"},basicInfo:{name:{placeholder:"John Doe"}},security:{title:"Security",password:{label:"Password",currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."},twoFactor:{label:"Two-Factor Authentication",sub:"Strengthen your account security"}}},lC={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},cC={settings:"Settings",start:{title:"Start Word Training",description:"Select a training type below to begin"},difficulty:{tooltip:"The easiest difficulty is 'Random', the hardest is 'Initial Consonant Difference'."},contrast:{label:"Contrast",type:"Contrast Type",count:"Contrast Count",n:"{{n}}"},filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions:"{{n}} questions",countSentences:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{idle:"Idle",resolving:"Resolving\u2026",checking_exists:"Checking file\u2026",getting_signed_url:"Getting URL\u2026",downloading:"Downloading\u2026",measuring_duration:"Measuring length\u2026",ready:"Ready",error:"Error"}},uC={totalCount:" training bundles",sort:{customers:"Customers"},copyLink:"Copy Link",removeLink:"Remove Link",linkRemoved:"Link removed.",linkSaveFirst:"Please save the training bundle first.",linkSaveFirstHint:"You can only create a shared link from a saved training bundle.",linkCopySelect:"Copy blocked \u2014 link selected. Press Ctrl/\u2318+C to copy.",nameRequired:"Please enter a training bundle name.",itemRequired:"Please add at least one training item.",randomAdd:"Random Add",menu:{publish:"Post to Store",duplicate:"Duplicate Training Bundle",edit:"Edit Training Bundle",move:"Move Group",rename:"Rename"},itemCount:"Number of Items",renameGroup:"Rename Group"},dC={totalCount:" customers",loadError:"Failed to load list",basicInfo:{editTooltip:"Edit"},member:{placeholder:"Email or phone",link:"Link",linking:"Linking\u2026"},device:{title:"Hearing Devices",addTooltip:"Add New",addButton:"Add device",listTooltip:"View List",listTitle:" Device List",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",release:"Release",historyTitle:"Hearing device history"},schedule:{title:"Upcoming Visits",addTooltip:"Add Schedule",listTooltip:"View All",empty:"No upcoming visits",registerTitle:" Register Schedule",memoPlaceholder:"Enter a memo for this visit."},visitHistory:{title:"Visit History",addTooltip:"Add Visit",empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",visits:{title:"Visits"},trainingRecord:{title:"Customer Training Records"},status:{trainingSubtitle:"Training Status"},detail:{session:{completedFmt:"Done {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:" visits"},homework:{active:"Active",copied:"Link copied.",copy:"Copy Link",inactive:"Inactive",title:"Homework Progress"},duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"}},pC={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},mC={title:"Coupons",subtitle:"Enter a coupon code or view your coupons",input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply",error:{invalid:"Invalid coupon code.",alreadyUsed:"This coupon has already been used."},success:{applied:'"{{name}}" coupon applied.'},section:{owned:"My Coupons"},status:{used:"Used",available:"Available"}},hC={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},fC={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},CC={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."}},gC={comingSoon:"Word training is coming soon."},bC={colName:"Table Name",open:"Open",countSuffix:" tables",addCard:"Add Word Table Card",cardsEmpty:"No word table cards created yet.",menu:{publishStore:"Post to Training Store",unpublishStore:"Remove from Training Store"},newBadge:"Newly created",tab:{cards:"Word Table Cards",tables:"Word Tables"},publishedBadge:"Published",sharedBadge:"Shared"},yC={title:"Key Words",empty:"No key words available."},vC={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap a cell to mark \u25CB \xB7 \u25B3 \xB7 \u2715.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"}},xC={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},_C={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},wC={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"}},kC={maxUses:"Max uses (leave blank for unlimited)",redirect:"Redirect URL (leave blank for app home)",creating:"Creating\u2026",create:"Create link",created:"\u2713 Link created",copied:"Copied!",copy:"Copy",loading:"Loading\u2026",empty:"No links created yet.",uses:"Used {{count}} times",expiresAt:"Expires: {{date}}",createdAt:"Created: {{date}}",confirmDelete:"Delete this link?",deactivate:"Deactivate",delete:"Delete",status:{active:"Active",expired:"Expired",inactive:"Inactive"}},AC={passwordPlaceholder:"Enter password"},NC={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant"}},BC={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",daily:"Daily",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"},subscriptionStatus:{active:"{{pct}}% Active",expired:"{{pct}}% Expired",unused:"{{pct}}% Unused"}},DC={editBanner:{message:"Saving will update the contrast pair table you're editing."},phonemeSelect:{title:"Phoneme Selection",vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:"Reflects the National Institute of Korean Language's basic vocabulary grade.",selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},searchLabel:{error:"Failed to load data",loading:"Loading\u2026"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},SC={sentenceTyping:{roundCount:"{{rounds}} rounds \xB7 {{timeLimit}}s each"},wordDefense:{me:"Me"},dictation:{title:"Dictation",desc:"Practice writing down exactly what you hear.",comingSoon:"Coming soon: audio playback, input field, answer comparison"},result:{heading:"Level {{number}} Answer",retry:"Try Again"},common:{accuracy:"{{pct}}% accuracy"},soundMatch:{title:"Sound Match",desc:"Quickly match words or sentences that share the same sound.",comingSoon:"Coming soon: play button, timer, score tracking"},orderSequence:{title:"Sentence Ordering",desc:"Arrange scattered sentence fragments in the correct order.",comingSoon:"Coming soon: sentence sets, ordering interface"},speedListen:{title:"Speed Listen",desc:"A challenge game to count the number of words in a sentence within a time limit.",comingSoon:"Coming soon: time limit, scoreboard"},noiseChallenge:{title:"Noise Challenge",desc:"Practice distinguishing sentences amid background noise.",comingSoon:"Coming soon: various noise levels, score tracking"},fastListen:{title:"Fast Listen",desc:"Listen to short sentences at speed and select the key word.",comingSoon:"Coming soon: speed by difficulty, timer"},shadowing:{title:"Shadowing",desc:"Practice pronunciation and intonation by repeating sentences aloud.",comingSoon:"Coming soon: playback, recording, comparison feedback"},phonemeHunt:{title:"Phoneme Hunt",desc:"Find words that contain a specific phoneme (sound).",comingSoon:"Coming soon: phoneme filter, hint feature"}},TC={lead:`IHAB builds trust
830
830
  through sound
831
- 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",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},jC={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},EC={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},MC={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},LC={answer:"Answer",distractor:"Distractor"},$C={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},RC={clearAriaLabel:"Clear input"},PC={ariaLabel:"Select tab"},IC={ariaLabel:"Tabs"},FC={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},OC={ariaLabel:"User avatar"},HC={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"},reason:{notLoggedIn:"Login required."},list:{title:"Received Homework"},status:{expired:"Expired",done:"Done {{count}}\xD7 \xB7 {{date}}",notDone:"Not done"}},VC={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},zC={import:"Add to my trainings",publisher:"Publisher",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"},badge:{shared:"Store"},publish:{descPlaceholder:"One-line description for the Training Store (optional)"}},WC={manage:{unit:"item(s)"}},qC={cancelLabel:"Cancel"},UC={subtitle:"Select a topic to start listening practice."},GC={steps:"Step {{current}} of {{total}}"},KC={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},YC={resetColumns:"Reset column widths"},ZC={panelTitle:"Word table scores",viewWords:"Words",viewTables:"Tables",colLatest:"When",colTrend:"Change",unitTime:" times",summaryLabel:"Scored",summaryValue:"{{times}} times \xB7 {{words}} words",nextLabel:"Focus next",nextCount:"{{count}}",allClear:"All correct last time.",times:"{{count}}x",flat:"no change",recentLabel:"Recent scorings",nextCountCapped:"{{shown}} of {{total}}"},XC={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},JC={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},QC={previewRegion:"Report preview \u2014 scrollable sideways"},eg={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},tg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},ng={clearSelection:"Clear selection"},ag={showResult:"Show {{type}} result"},rg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},og={loading:"Loading"},sg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},ig={ariaLabel:"Breadcrumb"},lg={common:Yf,calendar:Zf,passCard:Xf,searchField:Jf,rating:Qf,colorPicker:eC,dropdown:tC,accordion:nC,header:aC,nav:rC,settings:oC,usage:sC,account:iC,help:lC,training:cC,trainingSettings:uC,customers:dC,payment:pC,coupons:mC,visits:hC,company:fC,trainingType:CC,myWordTraining:gC,myWordTable:bC,keyWords:yC,wordTable:vC,wordSearch:xC,wordPrint:_C,topic:wC,accessLinkManager:kC,login:AC,device:NC,manager:BC,wordPairs:DC,game:SC,footer:TC,landing:jC,date:EC,trainingSetPage:MC,wordTrainingPreview:LC,wordData:$C,textField:RC,segmentedControl:PC,tabs:IC,fileUpload:FC,avatar:OC,myHomework:HC,trainingStatus:VC,store:zC,homework:WC,inquiry:qC,trainingPlanRun:UC,progress:GC,trainingMiss:KC,table:YC,wordScore:ZC,topBanner:XC,datePicker:JC,report:QC,tooltip:eg,phonemeProfile:tg,bulkBar:ng,debug:ag,badge:rg,loader:og,soundCompass:sg,breadcrumb:ig};const cg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],$i="ko",ug="ihab_display_language";function Ri(){try{const e=localStorage.getItem(ug);if(e&&cg.some(n=>n.code===e))return e}catch{}return $i}function Pi(e){try{document.documentElement.lang=e}catch{}}$t.on("languageChanged",Pi),Pi(Ri()),$t.use(de.initReactI18next).init({resources:{ko:{translation:Kf},en:{translation:lg}},lng:Ri(),fallbackLng:$i,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function Ii(e){if(!(e==null||e===""))return ua(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function dg(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function pg(e){if(e.durationDays&&e.durationDays>0){const i=e.durationDays;return i%365===0?`${i/365}\uB144`:`${i}\uC77C`}const n=(e.code??"").match(/(\d+)(d|y)\b/i);if(n)return n[2].toLowerCase()==="y"?`${n[1]}\uB144`:`${n[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);if(r)return r[1].replace(/\s+/g,"");const o=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return o?o[2].toLowerCase()==="year"?`${o[1]}\uB144`:`${o[1]}\uC77C`:a||"\uC774\uC6A9\uAD8C"}function mg(e){const n=(e??"").match(/(\d+)(d|y)\b/i);if(!n)return null;const a=Number(n[1]);return n[2].toLowerCase()==="y"?a*365:a}function Fi(e){return{type:e.type??dg(e),plan:pg(e),label:e.label,price:Ii(e.price),originalPrice:Ii(e.originalPrice),discountLabel:e.discountLabel}}var hg='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',fg='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',Cg='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7325)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23111111"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23111111"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23111111"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23111111"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23111111"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7325">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',gg='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7395)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23FAFAFA"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23FAFAFA"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23FAFAFA"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23FAFAFA"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23FAFAFA"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7395">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',bg='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 371 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="371" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M237.15,26.04v46.68h-20.5V26.04h20.5ZM234.41,70.05V28.72h-15.15v41.33h15.15ZM261.49,76.36h-2.68v-27.39h-11.24v26.5h-2.68V23.98h2.68v22.31h11.24v-22.65h2.68v52.73h0Z"/>%0A <path class="st3" d="M299.72,69.26c2.35-.48,4.31-1.11,5.86-1.89v2.75c-1.51.82-3.44,1.46-5.79,1.92-2.35.46-4.74.69-7.17.69h-20.37V25.7h2.74v44.28h17.62c2.38,0,4.74-.24,7.1-.72h0ZM311.69,76.43V23.64h2.74v52.73l-2.74.07Z"/>%0A <path class="st3" d="M340.56,47.94l17.62,22.52-2.13,1.65-16.18-20.94c-1.46,6.18-3.54,11.1-6.24,14.76-2.7,3.66-5.9,5.93-9.6,6.8v-2.75c3.25-.82,6.01-3.11,8.3-6.86,2.29-3.75,4.02-8.59,5.21-14.52,1.19-5.92,1.83-12.55,1.92-19.87h-14.47v-2.68h31.61v2.68h-14.4c-.05,7.19-.6,13.59-1.64,19.22h0ZM369.22,76.36h-2.74v-28.9h-14.06v-2.68h14.06v-21.14h2.74v52.73Z"/>%0A <path class="st3" d="M92.88,48.35v-24.1h30.58v24.1h-30.58ZM139.37,69.15v7.21h-44.71v-15.72h34.42v-2.13h-34.56v-7.21h44.3v15.72h-34.28v2.13h34.83,0ZM102.68,32.56v7.41h11.04v-7.41h-11.04ZM144.72,40.39h-5.9v9.06h-9.88v-25.81h9.88v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M181.89,47.87v9.4c-2.79,1.28-7.16,1.92-13.1,1.92h-.62v17.16h-9.88v-17.16h-12.2v-9.4h22.83c5.85,0,10.17-.64,12.96-1.92h0ZM148.97,34.28v-9.4h28.66v22.17h-9.87v-12.77h-18.79ZM194.64,76.36h-9.88V23.64h9.88v52.73h0Z"/>%0A <path class="st1" d="M48.15,17.86h-21.4c-9.85,0-17.84,7.99-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h21.4c9.85,0,17.84-7.99,17.84-17.86v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st1" d="M36.6,50.74c-9.02,9.94-24.22,10.93-34.44,2.42-.47-.39-.52-1.1-.11-1.55l16.06-17.69,18.49,16.81Z"/>%0A <path class="st1" d="M55.29,25h-21.4c-9.85,0-17.84,8-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h16.09c.96,0,1.74.78,1.74,1.75,0,1.02.87,1.83,1.89,1.74,10.93-.96,19.51-10.15,19.51-21.35v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st2" d="M26.75,25c-5.91,0-10.7,4.8-10.7,10.71v28.57c0,3.09.79,6,2.17,8.54,2.53,1.39,5.44,2.17,8.53,2.17h28.54c5.91,0,10.7-4.8,10.7-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.53-1.39-5.44-2.17-8.53-2.17h-28.54Z"/>%0A <path class="st3" d="M27.11,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M37.81,57.14c-1.04,0-2.09-.27-3.03-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.58-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.32-4.44,2.9-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.34-5.56-.99-.06-1.93.12-2.81.54-.89.43-1.95.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.75.3,8.57,4.26,8.68,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',yg='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7394)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23111111"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23111111"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23111111"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23111111"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23111111"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23111111"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23111111"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7394">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Oi='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const In={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Er=new WeakMap;function vg(e){if(e)return Er.get(e)}function hn(e,n){e&&(e.style.setProperty(In.text,n.text),e.style.setProperty(In.sub,n.sub),n.copyrightColor&&e.style.setProperty(In.copyright,n.copyrightColor),Er.set(e,n))}function fn(e){e&&(e.style.removeProperty(In.text),e.style.removeProperty(In.sub),e.style.removeProperty(In.copyright),Er.delete(e))}const Hi={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Vi(e={}){const n=it(Hi,hn,fn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-two-circle__c1"}),t.jsx("div",{className:"pass-card-bg-two-circle__c3"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${Oi}")`}})]})}const zi="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464Z";var ma='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65181)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="url(%23paint0_linear_2175_65181)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2175_65181" x1="29.6392" y1="29.6393" x2="75.2535" y2="75.2536" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2175_65181">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const xg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},_g=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Wi(e={}){const n=it(xg,hn,fn),a="var(--color-main)",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:_g.map(({scale:i,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:zi,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${ma}")`}})]})}const wg={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},kg=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Ag(e={}){const n=it(wg,hn,fn),a="#ffffff",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:kg.map(({scale:i,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:zi,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${Oi}")`}})]})}const Ng={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Bg(e={}){const n=it(Ng,hn,fn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${ma}")`}})]})}const Dg={Logo_speechear_kr:{"":Tr,_white:hg,_textWhite:fg,_black:Cg},Logo_speechearManager_kr:{"":jr,_white:gg,_textWhite:bg,_black:yg}};function Sg(e,n){if(e)return Dg[e]?.[n??""]??void 0}const Tg={speechear:Tr,manager:jr},jg={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},qi=10;function Eg(e,n){if(e<=0)return n("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return n("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return n("passCard.remainingHour",{n:r});const o=Math.floor(e/60);return o>0?n("passCard.remainingMinute",{n:o}):n("passCard.remainingSecond",{n:Math.floor(e)})}function Mg(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),o=a==="\uC624\uD508\uD2B9\uAC00"||a===$t.t("passCard.specialLabel");return r?t.jsx(Bg,{}):o?t.jsx(Ag,{}):t.jsx(Wi,{})}return t.jsx(Vi,{})}function Ui({product:e,showPrice:n=!1,plan:a,type:r,endDate:o,remainingSeconds:i,state:l="active",bg:c,bgOnly:u=!1,textColor:d,subColor:p,copyrightColor:m,logoSrc:h,label:C,price:y,originalPrice:f,discountLabel:v,onUse:g,onRefund:x,onDelete:_}){const{t:b}=de.useTranslation(),A=e?Fi(e):void 0,w=r??A?.type??"speechear",D=a??A?.plan??"\uC774\uC6A9\uAD8C",B=C??A?.label,k=y??(n?A?.price:void 0),N=f??(n?A?.originalPrice:void 0),I=v??A?.discountLabel,O=s.useMemo(()=>{if(k)return null;const Z=e?.durationDays??mg(e?.code);if(!Z||Z<=0)return null;const oe=Z*86400;let X;if(i!=null)X=i;else if((l==="active"||l==="expired")&&o){const _e=new Date(o).getTime();if(Number.isNaN(_e))return null;const Se=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(o)),ue=/^(\d{4})-(\d{2})-(\d{2})/.exec(Mn()),be=Math.round(Se&&ue?(Date.UTC(+Se[1],+Se[2]-1,+Se[3])-Date.UTC(+ue[1],+ue[2]-1,+ue[3]))/864e5:(_e-Date.now())/864e5);X=Math.max(0,be)*86400}else l==="expired"?X=0:X=oe;const ge=Math.max(0,Math.min(100,Math.floor(Math.min(X,oe)/oe*100)));return l==="pending"&&ge>=100?null:{percent:ge,remainingLabel:Eg(X,b)}},[k,l,o,i,e?.durationDays,e?.code,b]),E=s.useRef(null),[H,T]=s.useState({}),[K,W]=s.useState(null),V=!!(g||x||_),U=s.useRef(!1),re=s.useRef(void 0),[P,R]=s.useState(h);s.useLayoutEffect(()=>{R(h)},[h]),s.useLayoutEffect(()=>{const Z=E.current;Z&&(d!==void 0&&Z.style.setProperty("--pass-card-text",d),p!==void 0&&Z.style.setProperty("--pass-card-sub",p),m!==void 0&&Z.style.setProperty("--pass-card-copyright",m))},[d,p,m]),s.useLayoutEffect(()=>{const Z=E.current;if(!Z)return;const oe=vg(Z);if(!h){const X=jg[w],ge=l==="expired"?"_black":oe?.logoColor??"",_e=Sg(X,ge);R(_e)}},[c,h,w,l]);const M=Z=>{const oe=E.current;if(!oe)return null;const{left:X,top:ge,width:_e,height:Se}=oe.getBoundingClientRect(),ue=(Z.clientX-X)/_e-.5;return{rotateX:-((Z.clientY-ge)/Se-.5)*qi,rotateY:ue*qi}},L=(Z,oe)=>{const X=oe*-.7,ge=Z*.7+10,_e=20+(Math.abs(Z)+Math.abs(oe))*.4;return`${X}px ${ge}px ${_e}px rgba(0, 0, 0, 0.18)`},z=s.useCallback(Z=>{U.current=!0,clearTimeout(re.current),re.current=setTimeout(()=>{U.current=!1},200);const oe=M(Z);oe&&T({transform:`perspective(800px) rotateX(${oe.rotateX}deg) rotateY(${oe.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:L(oe.rotateX,oe.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),$=s.useCallback(Z=>{const oe=M(Z);if(!oe)return;const X=U.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";T({transform:`perspective(800px) rotateX(${oe.rotateX}deg) rotateY(${oe.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:L(oe.rotateX,oe.rotateY),transition:X})},[]),j=s.useCallback(()=>{clearTimeout(re.current),U.current=!1,T({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),F=s.useCallback(()=>W(null),[]),se=s.useMemo(()=>{const Z=D.replace("\uC774\uC6A9\uAD8C","").trim(),oe=Z.match(/^(.*?)(일|년)$/);return oe?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:oe[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:oe[2]==="\uB144"?b("passCard.unitYear","\uB144"):b("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:Z})},[D,b]),ne=s.useMemo(()=>{const Z=ua(k);if(!Z)return null;const oe=Z.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!oe)return t.jsx("span",{className:"h1",children:Z});const[,X,ge,_e]=oe;return t.jsxs(t.Fragment,{children:[X&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:X}),t.jsx("span",{className:"h1 pass-card__price-amount",children:ge}),_e.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:_e.trim()})]})},[k]),ee=s.useCallback(()=>{V&&W(Z=>{if(Z)return null;const oe=E.current?.getBoundingClientRect();if(!oe)return null;const X=50;return{left:oe.left,right:oe.right,width:oe.width,height:oe.height,x:oe.x,y:oe.y+X,top:oe.top+X,bottom:oe.bottom+X}})},[V]),ie=s.useCallback(Z=>{V&&(Z.key==="Enter"||Z.key===" ")&&(Z.preventDefault(),ee())},[V,ee]),Ce=[{items:[...g?[{label:b("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{g(),W(null)},closeOnSelect:!0}]:[],...x?[{label:b("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),W(null)},closeOnSelect:!0}]:[],..._?[{label:b("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{_(),W(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:E,className:`pass-card pass-card--${l}${V?" pass-card--clickable":""}`,style:H,onMouseEnter:z,onMouseMove:$,onMouseLeave:j,onClick:ee,onKeyDown:V?ie:void 0,role:V?"button":void 0,tabIndex:V?0:void 0,"aria-haspopup":V?"menu":void 0,"aria-expanded":V?!!K:void 0,children:[c??Mg(w,D,B),!u&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card__top",children:t.jsxs("div",{className:"pass-card__top-left",children:[t.jsx("img",{src:P??Tg[w],className:"pass-card__logo",alt:w==="manager"?b("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):b("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:se}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:B?b("passCard.labeledPlan",{label:B}):b("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),k?t.jsxs("div",{className:"pass-card__price-area",children:[I&&t.jsx("span",{className:"pass-card__discount body-3",children:I}),t.jsxs("div",{className:"pass-card__price",children:[N&&t.jsx("span",{className:"pass-card__price-original body-3",children:ua(N)}),ne]})]}):O?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:O.remainingLabel}),t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:O.percent}),t.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):t.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),K&&t.jsx(wn,{anchorRect:K,onClose:F,ariaLabel:b("tooltip.menu","\uBA54\uB274"),children:t.jsx(La,{columns:Ce,onClose:F,size:"small"})})]})}const Lg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function $g(e={}){const n=`passcard-sound-line-grad-${s.useId()}`,a=it(Lg,hn,fn);return t.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[t.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:n,x1:"0",y1:"0",x2:"1",y2:"0",children:[t.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),t.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),t.jsx("g",{transform:"translate(25, 45)",children:t.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${n})`,strokeWidth:"50",strokeLinecap:"round"})})]}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${ma}")`}})]})}const Rg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Pg(e={}){const n=it(Rg,hn,fn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${ma}")`}})]})}function Ig(e,n){if(e){if(n==="manager_pro")return t.jsx(Pg,{});if(n==="manager_standard")return t.jsx($g,{});if(n==="manager_lite")return t.jsx(Wi,{})}}function Fg(e){const n=ua(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,o,i]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),o,i.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Og(e){const{t:n}=de.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:o,onSelect:i,period:l="monthly",ownedCodes:c}=e||{},u=b=>!!b&&!!c?.includes(b),d=b=>b.onceOnly??/오픈\s*특가/.test(b.label??""),p=(o.tiers||[]).some(b=>d(b)&&u(b.code)),m=b=>{const A=b.prices?b.prices[l]:b.price;return A?(o.tiers||[]).some(w=>!!w.badge&&w.originals?.[l]===A):!1},h=o.colorToken?`var(--color-${o.colorToken})`:"var(--color-gray)",C=n("payment.plan.freePrice","\uBB34\uB8CC"),y=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=b=>b.prices?b.prices[l]:b.price,v=(o.tiers||[]).length>0&&(o.tiers||[]).every(b=>{const A=f(b);return A==="\uBB34\uB8CC"||A===C||A==="0\uC6D0"||typeof A=="string"&&/\d/.test(A)&&!/[1-9]/.test(A)}),g=(o.tiers||[]).length>0&&(o.tiers||[]).every(b=>{const A=f(b);return A==="\uBB38\uC758"||A===y}),x=o.group==="org",_=x?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[o.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(lt,{label:o.cardBadge,variant:"main",size:"medium",fill:"soft"})}),t.jsxs("div",{className:"payment-plan__title",children:[t.jsx("p",{className:"payment-plan__quote body-3b",style:{color:h},children:o.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:o.tier??o.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:o.subtitle})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.recommendedFor||[]).map((b,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ue,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),b]},A))})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.features||[]).map((b,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ue,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),b]},A))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:v?null:g?t.jsx(le,{htmlType:"button",className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>o.tiers?.[0]&&i?.({...o.tiers[0],productId:o.id,productTitle:o.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(o.tiers||[]).map(b=>{const A=b.label||a,w=d(b),D=w||b.openPromo===!0,B=A.replace(/^오픈\s*특가\s*/,"")||a,k=b.prices?b.prices[l]:b.price,N=b.badge?D?`${r}
832
- ${b.badge}`:b.badge:void 0;if(w&&u(b.code))return null;if(!b.badge&&!p)return m(b)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${b.highlight?" payment-plan__pricing-row--highlight":""}`,children:[t.jsx("div",{className:"payment-plan__pricing-row-title",children:t.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:b.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:Fg(k)})})]},b.id);const I=o.tier??(x?o.title:void 0),O=t.jsx(Ui,{showPrice:!0,product:{type:_,code:b.code,name:B,label:I,price:k,originalPrice:b.originals?.[l]??void 0,discountLabel:N},bg:Ig(x,o.id)}),E=()=>i?.({...b,productId:o.id,productTitle:o.title,preview:O});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:E,onKeyDown:i?H=>{H.target===H.currentTarget&&(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),E())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:O},b.id)})})})})]})}function Hg({variant:e="default"}){return t.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var Mr='data:image/svg+xml,<svg width="264" height="100" viewBox="0 0 264 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2079_3030)">%0A<path d="M60.9019 24.7464C54.4446 18.2821 45.5257 14.2857 35.6757 14.2857C25.8256 14.2857 23.2106 24.5964 16.7569 31.0607C10.2996 37.5214 0 40.1857 0 50C0 59.8143 3.99211 68.7893 10.4494 75.2536C16.9067 81.7178 25.8256 85.7143 35.6757 85.7143C45.5257 85.7143 54.4446 81.7178 60.9019 75.2536C67.3592 68.7893 71.3513 59.8607 71.3513 50C71.3513 40.1393 67.3592 31.2107 60.9019 24.7464ZM48.2906 62.6286C45.0619 65.8607 40.6025 67.8571 35.6757 67.8571C30.7489 67.8571 26.2894 65.8571 23.0608 62.6286C19.8321 59.3964 17.8378 54.9321 17.8378 50C17.8378 45.0678 19.8357 40.6036 23.0608 37.3714C26.2894 34.1393 30.7489 32.1428 35.6757 32.1428C40.6025 32.1428 45.0619 34.1428 48.2906 37.3714C51.5192 40.6036 53.5135 45.0678 53.5135 50C53.5135 54.9321 51.5157 59.3964 48.2906 62.6286Z" fill="url(%23paint0_linear_2079_3030)"/>%0A<path d="M106.735 74.8322H93.6274V24.8322H106.735V74.8322Z" fill="%23111111"/>%0A<path d="M113.495 24.8322H126.602V44.5143H145.022V24.8322H158.197V74.8322H145.022V55.15H126.602V74.8322H113.495V24.8322Z" fill="%23111111"/>%0A<path d="M163.027 74.8322L179.652 24.8322H197.519L214.076 74.8322H199.934L196.969 65.025H180.205L177.241 74.8322H163.031H163.027ZM193.933 55.0786L188.76 38.2964H188.346L183.241 55.0786H193.933Z" fill="%23111111"/>%0A<path d="M218.906 24.8322H240.29C251.674 24.8322 257.675 29.7357 257.675 37.4C257.675 42.925 253.743 47.1393 248.085 48.3107V48.7929C254.364 49 259.605 53.6286 259.605 60.7393C259.605 68.8893 252.983 74.8286 242.081 74.8286H218.902V24.8322H218.906ZM244.157 40.1643C244.157 36.9857 241.674 35.1929 238.085 35.1929H232.013V45.1393H237.878C241.535 45.1393 244.157 43.3429 244.157 40.1679V40.1643ZM245.741 59.0857C245.741 55.425 243.119 53.3536 238.913 53.3536H232.013V64.2643H238.706C243.397 64.2643 245.741 62.4679 245.741 59.0857Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2079_3030" x1="15.337" y1="29.6393" x2="60.9512" y2="75.2042" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2079_3030">%0A<rect width="264" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Gi={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Vg(){const e=it(Gi,hn,fn);return t.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${Mr}")`}})})}const Ki={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function zg(e={}){const n=it(Ki,hn,fn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),t.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${ma}")`}})]})}function Yi({keys:e,anchor:n="top-right",scale:a,className:r=""}){const o=Array.isArray(e)?e:[e];return t.jsx("span",{className:ve("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:o.map((i,l)=>t.jsxs("span",{className:"shortcut-badge__group",children:[l>0&&t.jsx("span",{className:"shortcut-badge__plus",children:"+"}),t.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${l}`))})}const ha=(e,n,a)=>e+(n-e)*a;function Wg({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:o,selectedId:i=null,answerId:l=null,showFeedback:c=!1,pulseSelected:u=!1,pulseSelectedDuration:d,pulseScale:p,clickable:m=!1,onSelectSpeaker:h,buttonSize:C=40,showIcon:y=!0,onCenterClick:f,centerLabel:v,centerDisabled:g=!1,centerAttention:x=!1,shortcutAnchor:_="top-right",shortcutScale:b,scaleShortcut:A=!1}){const{t:w}=de.useTranslation(),D=Math.max(0,Math.min(1,a)),B=n/2,k=110/300,N=.18,I=X=>n*(k+(X-1)*N),O=X=>{const ge=I(X.row??1),_e=X.angleDeg*Math.PI/180;return{x:B+ge*Math.cos(_e),y:B+ge*Math.sin(_e)}},E=Math.max(...e.map(X=>X.row??1),1),H=n*.08,T=n*.1,K=n*.24,W=n-2*H,V=n-T-K,U=n-K/2,re=s.useMemo(()=>[...new Set(e.map(X=>X.deg))].sort((X,ge)=>X-ge),[e]),P=re.length,R=Math.max(68,P>1?W/(P-1):0),M=s.useMemo(()=>new Map(re.map((X,ge)=>[X,ge])),[re]),L=X=>{const ge=M.get(X.deg)??0,_e=B+(ge-(P-1)/2)*R,Se=E>1?Math.min(68,V/(E-1)):0,ue=Se*(E-1),be=T+(V-ue)/2,Ae=E===1?T+V*.4:be+(E-(X.row??1))*Se;return{x:_e,y:Ae}},z=X=>{const ge=O(X),_e=L(X);return{x:ha(ge.x,_e.x,D),y:ha(ge.y,_e.y,D)}},$={x:B,y:ha(B,U,D)},j=Math.round(C*1.2),F=Math.round(Math.max(16,Math.min(80,C*.7))),se=[],ne=new Map;for(const X of e){const ge=X.row??1;ne.has(ge)||ne.set(ge,[]),ne.get(ge).push(X)}for(const[X,ge]of ne.entries()){if(ge.length<2)continue;const _e=[...ge].sort((Re,et)=>Re.deg-et.deg),Se=_e.map(Re=>z(Re)),ue=_e.map(Re=>Re.deg),be=ue[ue.length-1]-ue[0],Ae=be/(ue.length-1),Q=360-be,te=_e.length>=3&&Ae>0&&Q<=Ae*1.5,ke=Math.round(I(X)*1e3)/1e3,Te=(Re,et,Ke,Ge)=>{const ye=(et.angleDeg-Re.angleDeg+540)%360-180;if(ye===0)return`L ${Ge.x} ${Ge.y}`;if(D===0)return`A ${ke} ${ke} 0 0 ${ye>0?1:0} ${Ge.x} ${Ge.y}`;const Oe=(Re.angleDeg+ye/2)*Math.PI/180,Ee={x:B+ke*Math.cos(Oe),y:B+ke*Math.sin(Oe)},Pe={x:(Ke.x+Ge.x)/2,y:(Ke.y+Ge.y)/2},qe={x:ha(Ee.x,Pe.x,D),y:ha(Ee.y,Pe.y,D)},Ye={x:2*qe.x-Pe.x,y:2*qe.y-Pe.y};return`Q ${Ye.x} ${Ye.y} ${Ge.x} ${Ge.y}`},ze=te?[..._e,_e[0]]:_e,Le=te?[...Se,Se[0]]:Se;let We=`M ${Le[0].x} ${Le[0].y}`;for(let Re=1;Re<Le.length;Re++)We+=" "+Te(ze[Re-1],ze[Re],Le[Re-1],Le[Re]);se.push({key:`arc-${X}`,d:We})}const ee=s.useMemo(()=>new Set(o??[]),[o]),ie=X=>({idle:"",active:w("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:w("soundCompass.state.played","\uB4E4\uC74C"),correct:w("soundCompass.state.correct","\uC815\uB2F5"),wrong:w("soundCompass.state.wrong","\uC624\uB2F5")})[X],Ce=X=>{if(r===X.id)return"active";if(c){if(X.id===l)return"correct";if(X.id===i&&i!==l)return"wrong"}return ee.has(X.id)?"played":"idle"},Z=X=>r===X.id?"loop":c?X.id===l?"loop":null:u&&X.id===i?"once":null,oe=(X,ge)=>{switch(X){case"played":case"correct":return t.jsx(Mo,{size:ge});case"wrong":return t.jsx(zo,{size:ge});default:return t.jsx(Vo,{size:ge})}};return t.jsx("div",{className:"sound-compass",children:t.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:n,height:n},children:[t.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,className:"sound-compass__svg",children:[D===0&&e.map(X=>{const{x:ge,y:_e}=z(X);return t.jsx("line",{x1:$.x,y1:$.y,x2:ge,y2:_e,stroke:"#dde3ec",strokeWidth:"1"},X.id)}),se.map(X=>t.jsx("path",{d:X.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},X.key))]}),x&&!g&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:j,height:j,left:$.x-j/2,top:$.y-j/2}}),f?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${g?" sound-compass__center--disabled":""}`,style:{width:j,height:j,left:$.x,top:$.y},"aria-label":v,"aria-disabled":g||void 0,tabIndex:g?-1:0,onClick:g?void 0:f,children:t.jsx(ar,{size:F,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:j,height:j,left:$.x,top:$.y},children:t.jsx(ar,{size:F,color:"currentColor",strokeWidth:1.5})}),e.map((X,ge)=>{const{x:_e,y:Se}=z(X),ue=Ce(X),be=Z(X),Ae={...b!==void 0||A?{"--shortcut-badge-scale":String(b??Math.max(.75,Math.min(3,C/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:ue!=="idle"?10:1},Q=C,te=Math.round(Math.max(10,Math.min(56,Q*.38))),ke=Math.round(Math.max(7,Math.min(18,Q*.2))),Te=Math.round(Math.max(10,Math.min(56,Q*.4))),ze=y==="answered"&&(ue==="played"||ue==="correct"||ue==="wrong"),Le=y===!0||ze,We=!ze;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...Ae,left:_e-Q/2,top:Se-Q/2},children:[be&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ue}`+(be==="once"?" sound-compass__pulse--once":""),style:{width:Q,height:Q,...be==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),t.jsxs("button",{type:"button",tabIndex:m?0:-1,"aria-disabled":m?void 0:!0,onClick:m?()=>h?.(X.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ue}`,style:{width:Q,height:Q},"aria-label":ie(ue)?`${X.label}, ${ie(ue)}`:X.label,"aria-pressed":i!=null?X.id===i:void 0,children:[Le&&oe(ue,te),We&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?ke:Te},children:ge+1})]}),X.shortcut&&t.jsx(Yi,{keys:X.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},X.id)})]})})}function qg({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:ve("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function Ug({orientation:e="horizontal",label:n,className:a=""}){const r=ve("divider",`divider--${e}`,n&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?t.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):n?t.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[t.jsx("span",{className:"divider__line"}),t.jsx("span",{className:"divider__label caption-1",children:n}),t.jsx("span",{className:"divider__line"})]}):t.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function Zi({checked:e,onChange:n,name:a,value:r,disabled:o=!1,label:i,className:l=""}){const c=s.useId();return t.jsxs("label",{className:`radio${o?" radio--disabled":""} ${l}`.trim(),htmlFor:c,children:[t.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:o,onChange:u=>n?.(u.target.checked)}),t.jsx("span",{className:"radio__dot"}),i&&t.jsx("span",{className:"radio__label body-2",children:i})]})}function Gg({options:e,value:n,onChange:a,name:r,disabled:o=!1,direction:i="vertical",className:l="",ariaLabel:c}){const u=s.useId(),d=r??`radio-group-${u}`;return t.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":c,children:e.map(p=>t.jsx(Zi,{name:d,value:p.value,checked:n===p.value,disabled:o||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const Kg={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Yg({tone:e="info",title:n,message:a,children:r,dismissible:o=!1,onDismiss:i,className:l=""}){const{t:c}=de.useTranslation(),[u,d]=s.useState(!1),p=s.useCallback(()=>{d(!0),i?.()},[i]);if(u)return null;const m=ve("alert",`alert--${e}`,l),h=!!n,C=!!(a||r);return t.jsxs("div",{className:m,role:"alert",children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Ue,{icon:Kg[e],size:20,className:"alert__icon"}),h&&t.jsx("span",{className:"alert__title body-2",children:n}),!h&&C&&t.jsx("div",{className:"alert__message body-3",children:a||r})]}),h&&C&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),o&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const Zg={ready:"search",guide:"info",error:"circle-alert"};function Xg(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let o=0,i=0;for(const l of a){const c=e.indexOf(l,o);c<0||(c>o&&r.push(e.slice(o,c)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),o=c+l.length)}return o<e.length&&r.push(e.slice(o)),r}function Jg({status:e="guide",label:n,children:a,emphasis:r,icon:o,className:i=""}){const l=o===!1?null:o??Zg[e],c=ve("search-summary",`search-summary--${e}`,i),u=n??a,d=typeof u=="string"&&r&&r.length>0?Xg(u,r):u;return t.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Ue,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:d})]})}function fa({title:e,items:n}){const{t:a}=de.useTranslation(),{anchorRect:r,openAt:o,close:i}=Ma();return t.jsxs(t.Fragment,{children:[t.jsx(le,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:l=>o(l.currentTarget),onPointerLeave:i,onFocus:l=>o(l.currentTarget),onBlur:i}),r&&t.jsx(Rn,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:i})]})}function Qg({items:e=[],value:n,onChange:a,className:r="",size:o=40}){const i=s.useId(),{t:l}=de.useTranslation(),c=s.useRef(null),u=e.find(f=>!f.disabled)?.key,d=e.some(f=>f.key===n)?n:u??e[0]?.key,p=e.find(f=>f.key===d&&!f.disabled)?.key??u,m=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(f,v=m())=>{if(v.length===0)return;const g=(f%v.length+v.length)%v.length;v[g]?.focus(),v[g]?.click()},C=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const v=m(),g=v.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?h(g+1,v):f.key==="ArrowLeft"||f.key==="ArrowUp"?h(g-1,v):f.key==="Home"?h(0,v):h(v.length-1,v)},y=e.find(f=>f.key===d);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:c,className:`tabs__list tabs__list--${o}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(f=>t.jsx("button",{id:`tabs__tab-${i}-${f.key}`,type:"button",role:"tab","aria-selected":f.key===d,"aria-controls":`tabs__panel-${i}-${f.key}`,disabled:f.disabled,tabIndex:f.key===p?0:-1,className:`tabs__tab body-2${f.key===d?" tabs__tab--active":""}`,onClick:()=>a?.(f.key),onKeyDown:C,children:f.label},f.key))}),y&&t.jsx("div",{id:`tabs__panel-${i}-${y.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${y.key}`,tabIndex:0,className:"tabs__panel",children:y.panel},y.key)]})}const e4={xs:12,sm:16,md:20,lg:28,xl:36};function t4(e){const n=e.trim().split(/\s+/).filter(Boolean);return n.length===0?"":n.length===1?[...n[0]].slice(0,2).join("").toUpperCase():([...n[0]][0]+[...n[n.length-1]][0]).toUpperCase()}function n4({src:e,name:n,size:a="md",shape:r="circle",className:o=""}){const{t:i}=de.useTranslation(),[l,c]=s.useState(null),u=!!e&&l===e,d=n?t4(n):"",p=!!e&&!u,m=!p&&!!d,h=n||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${o}`.trim(),role:"img","aria-label":h,children:[p&&t.jsx("img",{className:"avatar__image",src:e,alt:h,onError:()=>c(e??null)}),!p&&m&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!p&&!m&&t.jsx(Ue,{icon:"user-round",size:e4[a],className:"avatar__icon"})]})}function a4(e,n){if(!n)return!0;const a=n.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),o=e.type.toLowerCase();return a.some(i=>{const l=i.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?o.startsWith(l.slice(0,-1)):o===l})}function r4({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:o=!0,files:i,onRemove:l,className:c=""}){const{t:u}=de.useTranslation(),d=s.useRef(null),[p,m]=s.useState(!1),[h,C]=s.useState([]),y=i??h,f=w=>{if(!w||w.length===0)return;const D=Array.from(w).filter(k=>a4(k,n));if(D.length===0)return;const B=a?D:D.slice(0,1);if(i===void 0){const k=a?[...y,...B]:B;C(k),e?.(k)}else e?.(B)},v=w=>{w.preventDefault(),!r&&m(!0)},g=w=>{w.preventDefault(),m(!1)},x=w=>{w.preventDefault(),m(!1),!r&&f(w.dataTransfer.files)},_=w=>{f(w.target.files),w.target.value=""},b=()=>{r||d.current?.click()},A=w=>{if(!r&&(l?.(w),i===void 0)){const D=y.filter((B,k)=>k!==w);C(D),l||e?.(D)}};return t.jsxs("div",{className:`file-upload ${c}`.trim(),children:[t.jsxs("div",{className:ve("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:b,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),b())},onDragOver:v,onDragLeave:g,onDrop:x,children:[t.jsx(Ue,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:u("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:w=>{w.stopPropagation(),b()},children:u("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),o&&y.length>0&&t.jsx("ul",{className:"file-upload__list",children:y.map((w,D)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:w.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":u("fileUpload.removeAriaLabel",{name:w.name}),disabled:r,onClick:()=>A(D),children:t.jsx(Ue,{icon:"x",size:14})})]},`${w.name}-${D}`))})]})}function o4({items:e,className:n=""}){const{t:a}=de.useTranslation();return t.jsx("nav",{className:`breadcrumb ${n}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:t.jsx("ol",{className:"breadcrumb__list",children:e.map((r,o)=>{const i=o===e.length-1;return t.jsxs("li",{className:"breadcrumb__item",children:[i?t.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}),!i&&t.jsx(Ue,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},o)})})})}const s4={small:14,medium:20,large:28};function i4({value:e,onChange:n,max:a=5,readOnly:r=!1,size:o="medium",ariaLabel:i,className:l=""}){const{t:c}=de.useTranslation(),u=r||!n,[d,p]=s.useState(null),m=d??e,h=s4[o],C=b=>{u||n?.(b)},y=b=>{u||p(b)},f=s.useRef(null),v=b=>{const A=Math.min(a,Math.max(1,b));n?.(A),Array.from(f.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(A))?.focus()},g=b=>{if(!u){switch(b.key){case"ArrowRight":case"ArrowUp":v((e||0)+1);break;case"ArrowLeft":case"ArrowDown":v((e||1)-1);break;case"Home":v(1);break;case"End":v(a);break;default:return}b.preventDefault()}},x=e>=1&&e<=a?Math.round(e):1,_=()=>{u||p(null)};return t.jsx("div",{className:`rating rating--${o}${u?" rating--readOnly":""} ${l}`.trim(),ref:f,onKeyDown:g,role:u?"img":"radiogroup","aria-label":u?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:_,children:Array.from({length:a},(b,A)=>{const w=A+1,D=Math.max(0,Math.min(1,m-A)),B=D>0&&D<1,k=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Ue,{icon:"star",size:h,className:"rating__star rating__star--empty"}),D>0&&t.jsx("span",{className:`rating__star-fill${B?" rating__star-fill--half":""}`,style:B?{width:`${D*100}%`}:void 0,children:t.jsx(Ue,{icon:"star",size:h,className:"rating__star rating__star--filled"})})]});return u?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:k},w):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===w,"aria-label":c("rating.starLabel",{n:w}),"data-star":w,tabIndex:w===x?0:-1,onClick:()=>C(w),onMouseEnter:()=>y(w),children:k},w)})})}const l4=20,c4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function u4({value:e,onChange:n,palette:a=c4,size:r=40,className:o="",ariaLabel:i}){const{t:l}=de.useTranslation();return t.jsx("div",{className:`color-picker ${o}`.trim(),role:"group","aria-label":i,children:a.map(c=>{const u=e?.toLowerCase()===c.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:c},onClick:()=>n(c),"aria-pressed":u,"aria-label":u?`${c} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:c,children:u&&t.jsx(Ue,{icon:"check",size:l4,className:"color-picker__check"})},c)})})}function d4({icon:e,count:n,title:a,className:r="",onClick:o,onMouseEnter:i,onMouseLeave:l}){const c=ve("count-tile",o&&"count-tile--clickable",r);return t.jsxs("div",{className:c,onClick:o,onKeyDown:o?u=>{u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),u.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:l,role:o?"button":"img",tabIndex:o?0:void 0,"aria-label":a?`${a} ${n}`:String(n),children:[t.jsx(Ue,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]})}let Ca=0,Xi="",Ji="",ga=0;function Qi(){return el(!1)}function p4(){return el(!0)}function el(e){const n=typeof document<"u";Ca===0&&n&&(Xi=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(ga===0&&(Ji=document.body.style.paddingRight),ga++,document.body.style.paddingRight="0px"),Ca++;let a=!1;return()=>{a||(a=!0,Ca=Math.max(0,Ca-1),e&&n&&(ga=Math.max(0,ga-1),ga===0&&(document.body.style.paddingRight=Ji)),Ca===0&&n&&(document.body.style.overflow=Xi))}}const Lr=new WeakMap;function $r(e,n){e&&Lr.set(e,n)}function Rr(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!Lr.has(r);)r=r.parentElement;if(!r)return n;n=Lr.get(r)??null}return n}function m4(){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:t.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function h4({open:e,onClose:n,ariaLabel:a,title:r,children:o,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:u=!0,className:d,contentClassName:p}){const{t:m}=de.useTranslation(),h=s.useId(),C=s.useRef(null),y=s.useCallback(()=>n(),[n]);s.useEffect(()=>{if(!e)return;const x=document.activeElement,_=Qi(),b=C.current;return $r(b,x),b?.focus(),()=>{_();const A=document.activeElement;(!A||A===document.body||b&&b.contains(A))&&Rr(x)?.focus?.()}},[e]);const f=s.useRef(y),v=s.useRef(c);s.useEffect(()=>{f.current=y,v.current=c}),s.useEffect(()=>{if(e)return $n(()=>{v.current&&f.current()})},[e]);const g=s.useRef(!1);return wr(C,e),!e||typeof document>"u"?null:Ut.createPortal(t.jsx("div",{className:ve("dialog",d),onPointerDown:l?x=>{g.current=x.target===x.currentTarget}:void 0,onMouseDown:x=>{x.target===x.currentTarget&&x.preventDefault()},onClick:l?x=>{const _=g.current;g.current=!1,_&&x.target===x.currentTarget&&y()}:void 0,children:t.jsxs("div",{ref:C,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:ve("dialog__surface",`dialog__surface--${i}`,p),onClick:x=>x.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,u?t.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:y,children:t.jsx(m4,{})}):null,t.jsx("div",{className:"dialog__body",children:o})]})}),document.body)}function f4({columns:e,rows:n,rowKey:a,title:r,toolbar:o,empty:i="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:l,caption:c,className:u=""}){const d=!l&&n.length===0;return t.jsxs("div",{className:ve("board",u),children:[r||o?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),o?t.jsx("div",{className:"board__toolbar",children:o}):null]}):null,t.jsxs("table",{className:"board__table",children:[c?t.jsx("caption",{className:"board__caption",children:c}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(p=>t.jsx("th",{scope:"col",className:ve("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):d?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):n.map((p,m)=>t.jsx("tr",{className:"board__row",children:e.map(h=>t.jsx("td",{className:ve("board__td",`board__cell--${h.align??"left"}`),children:h.render(p,m)},h.key))},a(p,m)))})]})]})}function C4({name:e,role:n,photo:a,media:r,credentials:o,size:i=190,className:l=""}){return t.jsxs("div",{className:ve("person-card",l),children:[t.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?t.jsx("img",{src:a,alt:n?`${e} ${n}`:e}):null)}),t.jsx("h3",{className:"person-card__name",children:e}),n?t.jsx("p",{className:"person-card__role",children:n}):null,o?.length?t.jsx("ul",{className:"person-card__credentials",children:o.map(c=>t.jsx("li",{children:c},c))}):null]})}function g4({groups:e,className:n=""}){return t.jsx("div",{className:ve("timeline",n),children:e.map(a=>t.jsxs("section",{className:"timeline__group",children:[t.jsx("h3",{className:"timeline__title",children:a.title}),t.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,o)=>t.jsxs("li",{className:"timeline__row",children:[r.label?t.jsx("span",{className:"timeline__label",children:r.label}):null,t.jsx("div",{className:"timeline__items",children:r.items.map((i,l)=>t.jsx("p",{children:i},l))})]},`${r.label??""}-${o}`))})]},a.title))})}function b4({title:e,kind:n,body:a,badge:r,badgeSrc:o,footer:i,width:l,className:c=""}){const u=r??(o?t.jsx("img",{src:o,alt:""}):null);return t.jsxs("div",{className:ve("publication-card",c),style:l?{width:l,flexShrink:0}:void 0,children:[u?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:u}):null,t.jsx("h3",{className:"publication-card__title",children:e}),n?t.jsx("p",{className:"publication-card__kind",children:n}):null,t.jsx("p",{className:"publication-card__body",children:a}),i?t.jsx("div",{className:"publication-card__footer",children:i}):null]})}function y4({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const o=Nr(a);return s.useEffect(()=>{const i=setTimeout(()=>o.current?.(),r);return()=>clearTimeout(i)},[r,o]),t.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:t.jsx("img",{src:e,alt:n,className:"splash-logo__image"})})}function v4({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:o=2,tone:i="dark",className:l=""}){const c=o===1?"h1":"h2";return t.jsxs("div",{className:ve("section-header",`section-header--${i}`,l),children:[e?t.jsxs("p",{className:"section-header__eyebrow",children:[n?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"section-header__index",children:n}),t.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?t.jsx(c,{className:"section-header__title",children:a}):null,r?t.jsx("div",{className:"section-header__description",children:r}):null]})}function x4({items:e,className:n=""}){return t.jsx("ul",{className:ve("company-meta",n),children:e.map((a,r)=>t.jsxs("li",{className:"company-meta__item",children:[r>0?t.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function tl({value:e,onChange:n,suggestions:a,openOnFocus:r=!1}){const o=s.useId(),[i,l]=s.useState(!1),[c,u]=s.useState(-1),d=s.useRef(null),p=s.useMemo(()=>{if(!a.length)return[];const g=e??"";return g?a.filter(x=>x.toLowerCase().includes(g.toLowerCase())):r?a:[]},[a,e,r]);s.useEffect(()=>{i||u(-1)},[i]),s.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const m=c<p.length?c:-1,h=s.useCallback(g=>{n?.(g),l(!1)},[n]),C=s.useCallback(()=>l(!0),[]),y=s.useCallback(()=>{l(!0),u(-1)},[]),f=s.useCallback(()=>{d.current=setTimeout(()=>l(!1),120)},[]),v=s.useCallback(g=>{g.nativeEvent.isComposing||g.keyCode===229||(g.key==="ArrowDown"?(g.preventDefault(),l(!0),u(x=>Math.min(p.length-1,(x<p.length?x:-1)+1))):g.key==="ArrowUp"?(g.preventDefault(),u(x=>Math.max(-1,(x<p.length?x:p.length)-1))):g.key==="Enter"?m>=0&&h(p[m]):g.key==="Escape"&&i&&(g.preventDefault(),l(!1)))},[p,m,i,h]);return{listId:o,open:i,activeIdx:m,filtered:p,handleFocus:C,handleBlur:f,handleInput:y,handleKeyDown:v,handleSelect:h}}const _4=typeof window<"u"?s.useLayoutEffect:s.useEffect;function Fn(e){const{value:n,defaultValue:a,name:r,inputRef:o,onChange:i,label:l,ariaLabel:c,required:u,placeholder:d,type:p="text",disabled:m=!1,readOnly:h=!1,error:C,helperText:y,maxLength:f,size:v=48,variant:g="input",fullWidth:x=!1,newline:_=!1,multiline:b=!1,rows:A=3,leftIcon:w,rightIcon:D,clearable:B=!1,list:k,showCount:N=!0,className:I="",onFocus:O,onBlur:E,onKeyDown:H,onEnter:T,inputMode:K,autoComplete:W,autoFocus:V,suggestions:U,openOnFocus:re=!1}=e,P=h||m?void 0:U,{t:R}=de.useTranslation(),M=s.useId();!l&&!c&&ta(`TextField:unnamed:${M}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const L=`tf-${M}`,z=`tf-helper-${M}`,$=s.useRef(null),j=tl({value:n??"",onChange:i,suggestions:P??[],openOnFocus:re}),F=!!P&&j.open&&j.filtered.length>0,se=s.useCallback(te=>{$.current=te,typeof o=="function"?o(te):o&&(o.current=te)},[o]),ne=n!==void 0,ee=ne&&p==="password",[ie,Ce]=s.useState((a??"").length),Z=ne?(n??"").length:ie,oe=s.useRef(n);_4(()=>{oe.current=n}),s.useEffect(()=>{const te=$.current;if(!ee||!te)return;const ke=n??"";te.value!==ke&&(te.value=ke)},[ee,n]),s.useEffect(()=>{if(!_||!$.current)return;const te=$.current;te.style.height="",te.scrollHeight>te.clientHeight&&(te.style.height=`${te.scrollHeight}px`)},[n,ie,_]);const X=f!=null&&Z>f,ge=v===32?16:20,_e=ve("text-field",`text-field--s${v}`,g==="display"?"text-field--display":"",x?"text-field--full-width":"",m?"text-field--disabled":"",h?"text-field--readonly":"",C?"text-field--error":"",w?"text-field--has-left-icon":"",D||B?"text-field--has-right-icon":"",I),Se={id:L,...ee?{}:ne?{value:n}:{defaultValue:a},ref:se,placeholder:d,name:r,disabled:m,readOnly:h,autoFocus:V,maxLength:f,list:k,inputMode:K,autoComplete:W,"aria-label":!l&&c?c:void 0,"aria-required":u,"aria-invalid":!!C,"aria-describedby":y||C?z:void 0,role:P?"combobox":void 0,"aria-autocomplete":P?"list":void 0,"aria-haspopup":P?"listbox":void 0,"aria-expanded":P?j.open:void 0,"aria-controls":F?j.listId:void 0,"aria-activedescendant":F&&j.activeIdx>=0?`${j.listId}-option-${j.activeIdx}`:void 0,onChange:te=>{const ke=te.target;ne||Ce(ke.value.length),i?.(ke.value),P&&j.handleInput(),ee&&queueMicrotask(()=>{const Te=oe.current??"";ke.value!==Te&&(ke.value=Te)})},onFocus:(te=>{O?.(te),P&&j.handleFocus()}),onBlur:(te=>{E?.(te),P&&j.handleBlur()}),onKeyDown:(te=>{P&&te.key==="Enter"&&!te.nativeEvent.isComposing&&j.activeIdx>=0?te.preventDefault():T&&te.key==="Enter"&&!te.nativeEvent.isComposing&&(te.preventDefault(),T()),H?.(te),P&&j.handleKeyDown(te)})},ue=B&&!m&&!h&&Z>0,be=()=>_?t.jsx("textarea",{...Se,className:"text-field__input text-field__input--auto body-2",rows:1}):b?t.jsx("textarea",{...Se,className:"text-field__input text-field__input--textarea body-2",rows:A}):t.jsx("input",{...Se,type:p,className:"text-field__input body-2"}),Ae=g==="display"&&!_&&!b&&!!d,Q=()=>t.jsxs(t.Fragment,{children:[be(),Ae&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return t.jsxs("div",{className:_e,children:[l&&t.jsxs("label",{htmlFor:L,className:"text-field__label caption-1",children:[l,u&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[w&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(Ue,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:ge})}),Q(),f!=null&&N&&t.jsxs("span",{className:`text-field__count caption-2${X?" text-field__count--over":""}`,children:[Z,"/",f]}),ue&&t.jsx(le,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:R("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:te=>{te.preventDefault()},onClick:()=>{!ne&&$.current&&($.current.value="",Ce(0)),i?.("")},tabIndex:-1}),D&&!ue&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(Ue,{icon:D,label:"",className:"",svgClassName:"text-field__icon-svg",size:ge})})]}),P&&j.open&&j.filtered.length>0&&t.jsx("ul",{id:j.listId,className:"text-field__suggestions",role:"listbox",children:j.filtered.map((te,ke)=>t.jsx("li",{id:`${j.listId}-option-${ke}`,role:"option","aria-selected":ke===j.activeIdx,className:`text-field__suggestion body-2${ke===j.activeIdx?" is-active":""}`,onMouseDown:Te=>Te.preventDefault(),onClick:()=>{j.handleSelect(te),$.current?.focus()},children:te},`${te}-${ke}`))}),(y||C)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:z,className:"text-field__helper caption-1",role:C?"alert":void 0,children:C||y})})]})}function Jt({options:e,value:n,onChange:a,placeholder:r,disabled:o=!1,block:i=!1,size:l=48,error:c=!1,className:u="",ariaLabel:d,ariaDescribedBy:p}){const{t:m}=de.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),C=s.useId(),y=s.useId(),f=s.useRef(null),v=s.useCallback(T=>{const K=window.innerHeight-T.bottom<260&&T.top>260;return{position:"fixed",left:T.left,minWidth:T.width,...K?{bottom:window.innerHeight-T.top+6}:{top:T.bottom+6},zIndex:9999}},[]),{open:g,setOpen:x,toggle:_,style:b,triggerRef:A,menuRef:w}=pa({computeStyle:v}),[D,B]=s.useState(-1),k=s.useCallback(()=>B(-1),[]),N=e.find(T=>T.value===n);s.useEffect(()=>{if(g){const T=e.findIndex(K=>K.value===n);B(T>=0?T:e.length?0:-1),requestAnimationFrame(()=>{const K=w.current;if(!K)return;const W=K.querySelectorAll(".dropdown__option")[T];W&&(K.scrollTop=Math.max(0,W.offsetTop-K.clientHeight/2+W.clientHeight/2))})}},[g]),s.useEffect(()=>{g&&B(T=>{if(T>=0&&T<e.length)return T;const K=e.findIndex(W=>W.value===n);return K>=0?K:e.length?0:-1})},[g,e.length]);const I=s.useCallback(()=>{o||_()},[o,_]),O=s.useCallback(T=>{T.disabled||o||(a?.(T.value),x(!1))},[a,x,o]);s.useEffect(()=>{o&&x(!1)},[o,x]);const E=s.useCallback(T=>{if(!o){if(!g){(T.key==="Enter"||T.key===" "||T.key==="ArrowDown")&&(T.preventDefault(),x(!0));return}if(T.key==="Escape"){T.preventDefault(),x(!1);return}T.key==="ArrowDown"?(T.preventDefault(),B(K=>{let W=K+1;for(;W<e.length&&e[W].disabled;)W++;return W<e.length?W:K})):T.key==="ArrowUp"?(T.preventDefault(),B(K=>{let W=K-1;for(;W>=0&&e[W].disabled;)W--;return W>=0?W:K})):(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),e[D]?O(e[D]):x(!1))}},[o,g,e,D,O,x]),H=g?t.jsx("div",{ref:w,id:C,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:b,onMouseLeave:k,onMouseDown:T=>T.preventDefault(),children:e.map((T,K)=>t.jsxs("button",{id:`${C}-option-${K}`,type:"button",role:"option","aria-selected":T.value===n,className:ve("dropdown__option body-2",T.value===n?"dropdown__option--active":"",K===D?"dropdown__option--active":"",T.disabled?"dropdown__option--disabled":""),onMouseDown:W=>W.preventDefault(),onClick:()=>O(T),onMouseEnter:()=>B(K),disabled:T.disabled,children:[t.jsx("span",{className:"dropdown__option-check",children:T.value===n&&t.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),T.label]},T.value))}):null;return t.jsxs("div",{ref:f,className:ve("dropdown",`dropdown--s${l}`,g?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:E,children:[t.jsxs("button",{ref:A,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":g,"aria-controls":g?C:void 0,"aria-activedescendant":g&&D>=0?`${C}-option-${D}`:void 0,"aria-label":d,"aria-describedby":[d&&N?y:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":c||void 0,disabled:o,onClick:I,onBlur:T=>{g&&!w.current?.contains(T.relatedTarget)&&x(!1)},children:[t.jsx("span",{id:y,className:`dropdown__trigger-label body-2${N?"":" dropdown__trigger-label--placeholder"}`,children:N?N.label:h}),t.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&Ut.createPortal(H,f.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Ra({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:o,className:i=""}){const{t:l}=de.useTranslation(),c=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),u=o??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,n),p=()=>a(Math.max(1,Math.min(d,e-1))),m=()=>a(Math.min(d,e+1));return t.jsxs("div",{className:ve("pagination",i),children:[t.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:p}),t.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),t.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=n,onClick:m})]})}function On(e){const{t:n}=de.useTranslation(),{options:a=[],value:r=a.find(v=>!v.disabled)?.key??a[0]?.key,onChange:o=v=>{},className:i="",size:l=48,shape:c="pill",useBG:u=!0,fullWidth:d=!1,ariaLabel:p}=e||{},m=s.useRef(null),h=a.filter(v=>!v.disabled),C=v=>{if(!h.length)return;const g=Math.max(0,h.findIndex(_=>_.key===r)),x=v==="first"?h[0]:v==="last"?h[h.length-1]:h[(g+v+h.length)%h.length];x&&(o(x.key),Array.from(m.current?.querySelectorAll("[data-segkey]")??[]).find(_=>_.dataset.segkey===x.key)?.focus())},y=v=>{switch(v.key){case"ArrowRight":case"ArrowDown":C(1);break;case"ArrowLeft":case"ArrowUp":C(-1);break;case"Home":C("first");break;case"End":C("last");break;default:return}v.preventDefault()},f=h.some(v=>v.key===r)?r:h[0]?.key;return t.jsx("div",{ref:m,onKeyDown:y,className:ve("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,d&&"segmented-control--full",!u&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":p??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(v=>t.jsx(le,{htmlType:"button",role:"radio","aria-checked":v.key===r,"data-segkey":v.key,tabIndex:v.key===f?0:-1,label:v.label,count:v.count,disabled:v.disabled,className:v.key===r?"is-selected":"",onClick:()=>{v.disabled||o(v.key)},size:l,shape:c,useBorder:!1,useBG:!1},v.key))})}function Pr({count:e,search:n,segment:a,filters:r,pageSize:o,pagination:i,actions:l,className:c}){const{t:u}=de.useTranslation(),d=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??u("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(n||r?.length||o||i||l);return t.jsxs("div",{className:ve("toolbar",c),children:[t.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((m,h)=>t.jsx(On,{size:40,...m},m.ariaLabel??h))]}),p&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(Fn,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??u("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??u("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((m,h)=>t.jsx(Jt,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},h)),o&&t.jsx(Jt,{size:40,options:o.options,value:o.value,onChange:o.onChange,ariaLabel:o.ariaLabel??u("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&t.jsx(Ra,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),l]})})]})}function nl(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(nl).join(""):""}function w4(e){let n=e.replace(/\r\n/g,`
831
+ 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",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},jC={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},EC={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},MC={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},LC={answer:"Answer",distractor:"Distractor"},$C={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},RC={clearAriaLabel:"Clear input"},PC={ariaLabel:"Select tab"},IC={ariaLabel:"Tabs"},FC={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},OC={ariaLabel:"User avatar"},HC={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"},reason:{notLoggedIn:"Login required."},list:{title:"Received Homework"},status:{expired:"Expired",done:"Done {{count}}\xD7 \xB7 {{date}}",notDone:"Not done"}},VC={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},zC={import:"Add to my trainings",publisher:"Publisher",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"},badge:{shared:"Store"},publish:{descPlaceholder:"One-line description for the Training Store (optional)"}},WC={manage:{unit:"item(s)"}},qC={cancelLabel:"Cancel"},UC={subtitle:"Select a topic to start listening practice."},GC={steps:"Step {{current}} of {{total}}"},KC={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},YC={resetColumns:"Reset column widths"},ZC={panelTitle:"Word table scores",viewWords:"Words",viewTables:"Tables",colLatest:"When",colTrend:"Change",unitTime:" times",summaryLabel:"Scored",summaryValue:"{{times}} times \xB7 {{words}} words",nextLabel:"Focus next",nextCount:"{{count}}",allClear:"All correct last time.",times:"{{count}}x",flat:"no change",recentLabel:"Recent scorings",nextCountCapped:"{{shown}} of {{total}}"},XC={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},JC={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},QC={previewRegion:"Report preview \u2014 scrollable sideways"},eg={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},tg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},ng={clearSelection:"Clear selection"},ag={showResult:"Show {{type}} result"},rg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},og={loading:"Loading"},sg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},ig={ariaLabel:"Breadcrumb"},lg={common:Yf,calendar:Zf,passCard:Xf,searchField:Jf,rating:Qf,colorPicker:eC,dropdown:tC,accordion:nC,header:aC,nav:rC,settings:oC,usage:sC,account:iC,help:lC,training:cC,trainingSettings:uC,customers:dC,payment:pC,coupons:mC,visits:hC,company:fC,trainingType:CC,myWordTraining:gC,myWordTable:bC,keyWords:yC,wordTable:vC,wordSearch:xC,wordPrint:_C,topic:wC,accessLinkManager:kC,login:AC,device:NC,manager:BC,wordPairs:DC,game:SC,footer:TC,landing:jC,date:EC,trainingSetPage:MC,wordTrainingPreview:LC,wordData:$C,textField:RC,segmentedControl:PC,tabs:IC,fileUpload:FC,avatar:OC,myHomework:HC,trainingStatus:VC,store:zC,homework:WC,inquiry:qC,trainingPlanRun:UC,progress:GC,trainingMiss:KC,table:YC,wordScore:ZC,topBanner:XC,datePicker:JC,report:QC,tooltip:eg,phonemeProfile:tg,bulkBar:ng,debug:ag,badge:rg,loader:og,soundCompass:sg,breadcrumb:ig};const cg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],$i="ko",ug="ihab_display_language";function Ri(){try{const e=localStorage.getItem(ug);if(e&&cg.some(n=>n.code===e))return e}catch{}return $i}function Pi(e){try{document.documentElement.lang=e}catch{}}$t.on("languageChanged",Pi),Pi(Ri()),$t.use(de.initReactI18next).init({resources:{ko:{translation:Kf},en:{translation:lg}},lng:Ri(),fallbackLng:$i,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function Ii(e){if(!(e==null||e===""))return ua(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function dg(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function pg(e){if(e.durationDays&&e.durationDays>0){const i=e.durationDays;return i%365===0?`${i/365}\uB144`:`${i}\uC77C`}const n=(e.code??"").match(/(\d+)(d|y)\b/i);if(n)return n[2].toLowerCase()==="y"?`${n[1]}\uB144`:`${n[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);if(r)return r[1].replace(/\s+/g,"");const o=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return o?o[2].toLowerCase()==="year"?`${o[1]}\uB144`:`${o[1]}\uC77C`:a||"\uC774\uC6A9\uAD8C"}function mg(e){const n=(e??"").match(/(\d+)(d|y)\b/i);if(!n)return null;const a=Number(n[1]);return n[2].toLowerCase()==="y"?a*365:a}function Fi(e){return{type:e.type??dg(e),plan:pg(e),label:e.label,price:Ii(e.price),originalPrice:Ii(e.originalPrice),discountLabel:e.discountLabel}}var hg='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',fg='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',Cg='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7325)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23111111"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23111111"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23111111"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23111111"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23111111"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7325">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',gg='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7395)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23FAFAFA"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23FAFAFA"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23FAFAFA"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23FAFAFA"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23FAFAFA"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7395">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',bg='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 371 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="371" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M237.15,26.04v46.68h-20.5V26.04h20.5ZM234.41,70.05V28.72h-15.15v41.33h15.15ZM261.49,76.36h-2.68v-27.39h-11.24v26.5h-2.68V23.98h2.68v22.31h11.24v-22.65h2.68v52.73h0Z"/>%0A <path class="st3" d="M299.72,69.26c2.35-.48,4.31-1.11,5.86-1.89v2.75c-1.51.82-3.44,1.46-5.79,1.92-2.35.46-4.74.69-7.17.69h-20.37V25.7h2.74v44.28h17.62c2.38,0,4.74-.24,7.1-.72h0ZM311.69,76.43V23.64h2.74v52.73l-2.74.07Z"/>%0A <path class="st3" d="M340.56,47.94l17.62,22.52-2.13,1.65-16.18-20.94c-1.46,6.18-3.54,11.1-6.24,14.76-2.7,3.66-5.9,5.93-9.6,6.8v-2.75c3.25-.82,6.01-3.11,8.3-6.86,2.29-3.75,4.02-8.59,5.21-14.52,1.19-5.92,1.83-12.55,1.92-19.87h-14.47v-2.68h31.61v2.68h-14.4c-.05,7.19-.6,13.59-1.64,19.22h0ZM369.22,76.36h-2.74v-28.9h-14.06v-2.68h14.06v-21.14h2.74v52.73Z"/>%0A <path class="st3" d="M92.88,48.35v-24.1h30.58v24.1h-30.58ZM139.37,69.15v7.21h-44.71v-15.72h34.42v-2.13h-34.56v-7.21h44.3v15.72h-34.28v2.13h34.83,0ZM102.68,32.56v7.41h11.04v-7.41h-11.04ZM144.72,40.39h-5.9v9.06h-9.88v-25.81h9.88v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M181.89,47.87v9.4c-2.79,1.28-7.16,1.92-13.1,1.92h-.62v17.16h-9.88v-17.16h-12.2v-9.4h22.83c5.85,0,10.17-.64,12.96-1.92h0ZM148.97,34.28v-9.4h28.66v22.17h-9.87v-12.77h-18.79ZM194.64,76.36h-9.88V23.64h9.88v52.73h0Z"/>%0A <path class="st1" d="M48.15,17.86h-21.4c-9.85,0-17.84,7.99-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h21.4c9.85,0,17.84-7.99,17.84-17.86v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st1" d="M36.6,50.74c-9.02,9.94-24.22,10.93-34.44,2.42-.47-.39-.52-1.1-.11-1.55l16.06-17.69,18.49,16.81Z"/>%0A <path class="st1" d="M55.29,25h-21.4c-9.85,0-17.84,8-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h16.09c.96,0,1.74.78,1.74,1.75,0,1.02.87,1.83,1.89,1.74,10.93-.96,19.51-10.15,19.51-21.35v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st2" d="M26.75,25c-5.91,0-10.7,4.8-10.7,10.71v28.57c0,3.09.79,6,2.17,8.54,2.53,1.39,5.44,2.17,8.53,2.17h28.54c5.91,0,10.7-4.8,10.7-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.53-1.39-5.44-2.17-8.53-2.17h-28.54Z"/>%0A <path class="st3" d="M27.11,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M37.81,57.14c-1.04,0-2.09-.27-3.03-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.58-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.32-4.44,2.9-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.34-5.56-.99-.06-1.93.12-2.81.54-.89.43-1.95.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.75.3,8.57,4.26,8.68,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',yg='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7394)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23111111"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23111111"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23111111"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23111111"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23111111"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23111111"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23111111"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7394">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Oi='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const In={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Er=new WeakMap;function vg(e){if(e)return Er.get(e)}function hn(e,n){e&&(e.style.setProperty(In.text,n.text),e.style.setProperty(In.sub,n.sub),n.copyrightColor&&e.style.setProperty(In.copyright,n.copyrightColor),Er.set(e,n))}function fn(e){e&&(e.style.removeProperty(In.text),e.style.removeProperty(In.sub),e.style.removeProperty(In.copyright),Er.delete(e))}const Hi={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Vi(e={}){const n=it(Hi,hn,fn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-two-circle__c1"}),t.jsx("div",{className:"pass-card-bg-two-circle__c3"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${Oi}")`}})]})}const zi="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464Z";var ma='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65181)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="url(%23paint0_linear_2175_65181)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2175_65181" x1="29.6392" y1="29.6393" x2="75.2535" y2="75.2536" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2175_65181">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const xg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},_g=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Wi(e={}){const n=it(xg,hn,fn),a="var(--color-main)",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:_g.map(({scale:i,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:zi,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${ma}")`}})]})}const wg={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},kg=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Ag(e={}){const n=it(wg,hn,fn),a="#ffffff",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:kg.map(({scale:i,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:zi,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${Oi}")`}})]})}const Ng={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Bg(e={}){const n=it(Ng,hn,fn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${ma}")`}})]})}const Dg={Logo_speechear_kr:{"":Tr,_white:hg,_textWhite:fg,_black:Cg},Logo_speechearManager_kr:{"":jr,_white:gg,_textWhite:bg,_black:yg}};function Sg(e,n){if(e)return Dg[e]?.[n??""]??void 0}const Tg={speechear:Tr,manager:jr},jg={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},qi=10;function Eg(e,n){if(e<=0)return n("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return n("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return n("passCard.remainingHour",{n:r});const o=Math.floor(e/60);return o>0?n("passCard.remainingMinute",{n:o}):n("passCard.remainingSecond",{n:Math.floor(e)})}function Mg(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),o=a==="\uC624\uD508\uD2B9\uAC00"||a===$t.t("passCard.specialLabel");return r?t.jsx(Bg,{}):o?t.jsx(Ag,{}):t.jsx(Wi,{})}return t.jsx(Vi,{})}function Ui({product:e,showPrice:n=!1,plan:a,type:r,endDate:o,remainingSeconds:i,state:l="active",bg:c,bgOnly:u=!1,textColor:d,subColor:p,copyrightColor:m,logoSrc:h,label:C,price:y,originalPrice:f,discountLabel:v,onUse:g,onRefund:x,onDelete:_}){const{t:b}=de.useTranslation(),A=e?Fi(e):void 0,w=r??A?.type??"speechear",D=a??A?.plan??"\uC774\uC6A9\uAD8C",B=C??A?.label,k=y??(n?A?.price:void 0),N=f??(n?A?.originalPrice:void 0),I=v??A?.discountLabel,O=s.useMemo(()=>{if(k)return null;const X=e?.durationDays??mg(e?.code);if(!X||X<=0)return null;const te=X*86400;let Y;if(i!=null)Y=i;else if((l==="active"||l==="expired")&&o){const xe=new Date(o).getTime();if(Number.isNaN(xe))return null;const Te=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(o)),ue=/^(\d{4})-(\d{2})-(\d{2})/.exec(Mn()),be=Math.round(Te&&ue?(Date.UTC(+Te[1],+Te[2]-1,+Te[3])-Date.UTC(+ue[1],+ue[2]-1,+ue[3]))/864e5:(xe-Date.now())/864e5);Y=Math.max(0,be)*86400}else l==="expired"?Y=0:Y=te;const ge=Math.max(0,Math.min(100,Math.floor(Math.min(Y,te)/te*100)));return l==="pending"&&ge>=100?null:{percent:ge,remainingLabel:Eg(Y,b)}},[k,l,o,i,e?.durationDays,e?.code,b]),j=s.useRef(null),[H,T]=s.useState({}),[K,W]=s.useState(null),V=!!(g||x||_),U=s.useRef(!1),re=s.useRef(void 0),[P,$]=s.useState(h);s.useLayoutEffect(()=>{$(h)},[h]),s.useLayoutEffect(()=>{const X=j.current;X&&(d!==void 0&&X.style.setProperty("--pass-card-text",d),p!==void 0&&X.style.setProperty("--pass-card-sub",p),m!==void 0&&X.style.setProperty("--pass-card-copyright",m))},[d,p,m]),s.useLayoutEffect(()=>{const X=j.current;if(!X)return;const te=vg(X);if(!h){const Y=jg[w],ge=l==="expired"?"_black":te?.logoColor??"",xe=Sg(Y,ge);$(xe)}},[c,h,w,l]);const M=X=>{const te=j.current;if(!te)return null;const{left:Y,top:ge,width:xe,height:Te}=te.getBoundingClientRect(),ue=(X.clientX-Y)/xe-.5;return{rotateX:-((X.clientY-ge)/Te-.5)*qi,rotateY:ue*qi}},L=(X,te)=>{const Y=te*-.7,ge=X*.7+10,xe=20+(Math.abs(X)+Math.abs(te))*.4;return`${Y}px ${ge}px ${xe}px rgba(0, 0, 0, 0.18)`},z=s.useCallback(X=>{U.current=!0,clearTimeout(re.current),re.current=setTimeout(()=>{U.current=!1},200);const te=M(X);te&&T({transform:`perspective(800px) rotateX(${te.rotateX}deg) rotateY(${te.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:L(te.rotateX,te.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),R=s.useCallback(X=>{const te=M(X);if(!te)return;const Y=U.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";T({transform:`perspective(800px) rotateX(${te.rotateX}deg) rotateY(${te.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:L(te.rotateX,te.rotateY),transition:Y})},[]),E=s.useCallback(()=>{clearTimeout(re.current),U.current=!1,T({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),F=s.useCallback(()=>W(null),[]),ae=s.useMemo(()=>{const X=D.replace("\uC774\uC6A9\uAD8C","").trim(),te=X.match(/^(.*?)(일|년)$/);return te?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:te[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:te[2]==="\uB144"?b("passCard.unitYear","\uB144"):b("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:X})},[D,b]),le=s.useMemo(()=>{const X=ua(k);if(!X)return null;const te=X.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!te)return t.jsx("span",{className:"h1",children:X});const[,Y,ge,xe]=te;return t.jsxs(t.Fragment,{children:[Y&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:Y}),t.jsx("span",{className:"h1 pass-card__price-amount",children:ge}),xe.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:xe.trim()})]})},[k]),se=s.useCallback(()=>{V&&W(X=>{if(X)return null;const te=j.current?.getBoundingClientRect();if(!te)return null;const Y=50;return{left:te.left,right:te.right,width:te.width,height:te.height,x:te.x,y:te.y+Y,top:te.top+Y,bottom:te.bottom+Y}})},[V]),oe=s.useCallback(X=>{V&&(X.key==="Enter"||X.key===" ")&&(X.preventDefault(),se())},[V,se]),Ce=[{items:[...g?[{label:b("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{g(),W(null)},closeOnSelect:!0}]:[],...x?[{label:b("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),W(null)},closeOnSelect:!0}]:[],..._?[{label:b("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{_(),W(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:j,className:`pass-card pass-card--${l}${V?" pass-card--clickable":""}`,style:H,onMouseEnter:z,onMouseMove:R,onMouseLeave:E,onClick:se,onKeyDown:V?oe:void 0,role:V?"button":void 0,tabIndex:V?0:void 0,"aria-haspopup":V?"menu":void 0,"aria-expanded":V?!!K:void 0,children:[c??Mg(w,D,B),!u&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card__top",children:t.jsxs("div",{className:"pass-card__top-left",children:[t.jsx("img",{src:P??Tg[w],className:"pass-card__logo",alt:w==="manager"?b("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):b("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:ae}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:B?b("passCard.labeledPlan",{label:B}):b("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),k?t.jsxs("div",{className:"pass-card__price-area",children:[I&&t.jsx("span",{className:"pass-card__discount body-3",children:I}),t.jsxs("div",{className:"pass-card__price",children:[N&&t.jsx("span",{className:"pass-card__price-original body-3",children:ua(N)}),le]})]}):O?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:O.remainingLabel}),t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:O.percent}),t.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):t.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),K&&t.jsx(wn,{anchorRect:K,onClose:F,ariaLabel:b("tooltip.menu","\uBA54\uB274"),children:t.jsx(La,{columns:Ce,onClose:F,size:"small"})})]})}const Lg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function $g(e={}){const n=`passcard-sound-line-grad-${s.useId()}`,a=it(Lg,hn,fn);return t.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[t.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:n,x1:"0",y1:"0",x2:"1",y2:"0",children:[t.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),t.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),t.jsx("g",{transform:"translate(25, 45)",children:t.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${n})`,strokeWidth:"50",strokeLinecap:"round"})})]}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${ma}")`}})]})}const Rg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Pg(e={}){const n=it(Rg,hn,fn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${ma}")`}})]})}function Ig(e,n){if(e){if(n==="manager_pro")return t.jsx(Pg,{});if(n==="manager_standard")return t.jsx($g,{});if(n==="manager_lite")return t.jsx(Wi,{})}}function Fg(e){const n=ua(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,o,i]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),o,i.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Og(e){const{t:n}=de.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:o,onSelect:i,period:l="monthly",ownedCodes:c}=e||{},u=b=>!!b&&!!c?.includes(b),d=b=>b.onceOnly??/오픈\s*특가/.test(b.label??""),p=(o.tiers||[]).some(b=>d(b)&&u(b.code)),m=b=>{const A=b.prices?b.prices[l]:b.price;return A?(o.tiers||[]).some(w=>!!w.badge&&w.originals?.[l]===A):!1},h=o.colorToken?`var(--color-${o.colorToken})`:"var(--color-gray)",C=n("payment.plan.freePrice","\uBB34\uB8CC"),y=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=b=>b.prices?b.prices[l]:b.price,v=(o.tiers||[]).length>0&&(o.tiers||[]).every(b=>{const A=f(b);return A==="\uBB34\uB8CC"||A===C||A==="0\uC6D0"||typeof A=="string"&&/\d/.test(A)&&!/[1-9]/.test(A)}),g=(o.tiers||[]).length>0&&(o.tiers||[]).every(b=>{const A=f(b);return A==="\uBB38\uC758"||A===y}),x=o.group==="org",_=x?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[o.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(lt,{label:o.cardBadge,variant:"main",size:"medium",fill:"soft"})}),t.jsxs("div",{className:"payment-plan__title",children:[t.jsx("p",{className:"payment-plan__quote body-3b",style:{color:h},children:o.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:o.tier??o.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:o.subtitle})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.recommendedFor||[]).map((b,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ue,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),b]},A))})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.features||[]).map((b,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ue,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),b]},A))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:v?null:g?t.jsx(ie,{htmlType:"button",className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>o.tiers?.[0]&&i?.({...o.tiers[0],productId:o.id,productTitle:o.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(o.tiers||[]).map(b=>{const A=b.label||a,w=d(b),D=w||b.openPromo===!0,B=A.replace(/^오픈\s*특가\s*/,"")||a,k=b.prices?b.prices[l]:b.price,N=b.badge?D?`${r}
832
+ ${b.badge}`:b.badge:void 0;if(w&&u(b.code))return null;if(!b.badge&&!p)return m(b)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${b.highlight?" payment-plan__pricing-row--highlight":""}`,children:[t.jsx("div",{className:"payment-plan__pricing-row-title",children:t.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:b.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:Fg(k)})})]},b.id);const I=o.tier??(x?o.title:void 0),O=t.jsx(Ui,{showPrice:!0,product:{type:_,code:b.code,name:B,label:I,price:k,originalPrice:b.originals?.[l]??void 0,discountLabel:N},bg:Ig(x,o.id)}),j=()=>i?.({...b,productId:o.id,productTitle:o.title,preview:O});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:j,onKeyDown:i?H=>{H.target===H.currentTarget&&(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),j())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:O},b.id)})})})})]})}function Hg({variant:e="default"}){return t.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var Mr='data:image/svg+xml,<svg width="264" height="100" viewBox="0 0 264 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2079_3030)">%0A<path d="M60.9019 24.7464C54.4446 18.2821 45.5257 14.2857 35.6757 14.2857C25.8256 14.2857 23.2106 24.5964 16.7569 31.0607C10.2996 37.5214 0 40.1857 0 50C0 59.8143 3.99211 68.7893 10.4494 75.2536C16.9067 81.7178 25.8256 85.7143 35.6757 85.7143C45.5257 85.7143 54.4446 81.7178 60.9019 75.2536C67.3592 68.7893 71.3513 59.8607 71.3513 50C71.3513 40.1393 67.3592 31.2107 60.9019 24.7464ZM48.2906 62.6286C45.0619 65.8607 40.6025 67.8571 35.6757 67.8571C30.7489 67.8571 26.2894 65.8571 23.0608 62.6286C19.8321 59.3964 17.8378 54.9321 17.8378 50C17.8378 45.0678 19.8357 40.6036 23.0608 37.3714C26.2894 34.1393 30.7489 32.1428 35.6757 32.1428C40.6025 32.1428 45.0619 34.1428 48.2906 37.3714C51.5192 40.6036 53.5135 45.0678 53.5135 50C53.5135 54.9321 51.5157 59.3964 48.2906 62.6286Z" fill="url(%23paint0_linear_2079_3030)"/>%0A<path d="M106.735 74.8322H93.6274V24.8322H106.735V74.8322Z" fill="%23111111"/>%0A<path d="M113.495 24.8322H126.602V44.5143H145.022V24.8322H158.197V74.8322H145.022V55.15H126.602V74.8322H113.495V24.8322Z" fill="%23111111"/>%0A<path d="M163.027 74.8322L179.652 24.8322H197.519L214.076 74.8322H199.934L196.969 65.025H180.205L177.241 74.8322H163.031H163.027ZM193.933 55.0786L188.76 38.2964H188.346L183.241 55.0786H193.933Z" fill="%23111111"/>%0A<path d="M218.906 24.8322H240.29C251.674 24.8322 257.675 29.7357 257.675 37.4C257.675 42.925 253.743 47.1393 248.085 48.3107V48.7929C254.364 49 259.605 53.6286 259.605 60.7393C259.605 68.8893 252.983 74.8286 242.081 74.8286H218.902V24.8322H218.906ZM244.157 40.1643C244.157 36.9857 241.674 35.1929 238.085 35.1929H232.013V45.1393H237.878C241.535 45.1393 244.157 43.3429 244.157 40.1679V40.1643ZM245.741 59.0857C245.741 55.425 243.119 53.3536 238.913 53.3536H232.013V64.2643H238.706C243.397 64.2643 245.741 62.4679 245.741 59.0857Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2079_3030" x1="15.337" y1="29.6393" x2="60.9512" y2="75.2042" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2079_3030">%0A<rect width="264" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Gi={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Vg(){const e=it(Gi,hn,fn);return t.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${Mr}")`}})})}const Ki={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function zg(e={}){const n=it(Ki,hn,fn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),t.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${ma}")`}})]})}function Yi({keys:e,anchor:n="top-right",scale:a,className:r=""}){const o=Array.isArray(e)?e:[e];return t.jsx("span",{className:ve("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:o.map((i,l)=>t.jsxs("span",{className:"shortcut-badge__group",children:[l>0&&t.jsx("span",{className:"shortcut-badge__plus",children:"+"}),t.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${l}`))})}const ha=(e,n,a)=>e+(n-e)*a;function Wg({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:o,selectedId:i=null,answerId:l=null,showFeedback:c=!1,pulseSelected:u=!1,pulseSelectedDuration:d,pulseScale:p,clickable:m=!1,onSelectSpeaker:h,buttonSize:C=40,showIcon:y=!0,onCenterClick:f,centerLabel:v,centerDisabled:g=!1,centerAttention:x=!1,shortcutAnchor:_="top-right",shortcutScale:b,scaleShortcut:A=!1}){const{t:w}=de.useTranslation(),D=Math.max(0,Math.min(1,a)),B=n/2,k=110/300,N=.18,I=Y=>n*(k+(Y-1)*N),O=Y=>{const ge=I(Y.row??1),xe=Y.angleDeg*Math.PI/180;return{x:B+ge*Math.cos(xe),y:B+ge*Math.sin(xe)}},j=Math.max(...e.map(Y=>Y.row??1),1),H=n*.08,T=n*.1,K=n*.24,W=n-2*H,V=n-T-K,U=n-K/2,re=s.useMemo(()=>[...new Set(e.map(Y=>Y.deg))].sort((Y,ge)=>Y-ge),[e]),P=re.length,$=Math.max(68,P>1?W/(P-1):0),M=s.useMemo(()=>new Map(re.map((Y,ge)=>[Y,ge])),[re]),L=Y=>{const ge=M.get(Y.deg)??0,xe=B+(ge-(P-1)/2)*$,Te=j>1?Math.min(68,V/(j-1)):0,ue=Te*(j-1),be=T+(V-ue)/2,Ae=j===1?T+V*.4:be+(j-(Y.row??1))*Te;return{x:xe,y:Ae}},z=Y=>{const ge=O(Y),xe=L(Y);return{x:ha(ge.x,xe.x,D),y:ha(ge.y,xe.y,D)}},R={x:B,y:ha(B,U,D)},E=Math.round(C*1.2),F=Math.round(Math.max(16,Math.min(80,C*.7))),ae=[],le=new Map;for(const Y of e){const ge=Y.row??1;le.has(ge)||le.set(ge,[]),le.get(ge).push(Y)}for(const[Y,ge]of le.entries()){if(ge.length<2)continue;const xe=[...ge].sort((Re,et)=>Re.deg-et.deg),Te=xe.map(Re=>z(Re)),ue=xe.map(Re=>Re.deg),be=ue[ue.length-1]-ue[0],Ae=be/(ue.length-1),Q=360-be,ee=xe.length>=3&&Ae>0&&Q<=Ae*1.5,ke=Math.round(I(Y)*1e3)/1e3,De=(Re,et,Ke,Ge)=>{const ye=(et.angleDeg-Re.angleDeg+540)%360-180;if(ye===0)return`L ${Ge.x} ${Ge.y}`;if(D===0)return`A ${ke} ${ke} 0 0 ${ye>0?1:0} ${Ge.x} ${Ge.y}`;const He=(Re.angleDeg+ye/2)*Math.PI/180,Ee={x:B+ke*Math.cos(He),y:B+ke*Math.sin(He)},Pe={x:(Ke.x+Ge.x)/2,y:(Ke.y+Ge.y)/2},qe={x:ha(Ee.x,Pe.x,D),y:ha(Ee.y,Pe.y,D)},Ye={x:2*qe.x-Pe.x,y:2*qe.y-Pe.y};return`Q ${Ye.x} ${Ye.y} ${Ge.x} ${Ge.y}`},Oe=ee?[...xe,xe[0]]:xe,Le=ee?[...Te,Te[0]]:Te;let We=`M ${Le[0].x} ${Le[0].y}`;for(let Re=1;Re<Le.length;Re++)We+=" "+De(Oe[Re-1],Oe[Re],Le[Re-1],Le[Re]);ae.push({key:`arc-${Y}`,d:We})}const se=s.useMemo(()=>new Set(o??[]),[o]),oe=Y=>({idle:"",active:w("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:w("soundCompass.state.played","\uB4E4\uC74C"),correct:w("soundCompass.state.correct","\uC815\uB2F5"),wrong:w("soundCompass.state.wrong","\uC624\uB2F5")})[Y],Ce=Y=>{if(r===Y.id)return"active";if(c){if(Y.id===l)return"correct";if(Y.id===i&&i!==l)return"wrong"}return se.has(Y.id)?"played":"idle"},X=Y=>r===Y.id?"loop":c?Y.id===l?"loop":null:u&&Y.id===i?"once":null,te=(Y,ge)=>{switch(Y){case"played":case"correct":return t.jsx(Mo,{size:ge});case"wrong":return t.jsx(zo,{size:ge});default:return t.jsx(Vo,{size:ge})}};return t.jsx("div",{className:"sound-compass",children:t.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:n,height:n},children:[t.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,className:"sound-compass__svg",children:[D===0&&e.map(Y=>{const{x:ge,y:xe}=z(Y);return t.jsx("line",{x1:R.x,y1:R.y,x2:ge,y2:xe,stroke:"#dde3ec",strokeWidth:"1"},Y.id)}),ae.map(Y=>t.jsx("path",{d:Y.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},Y.key))]}),x&&!g&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:E,height:E,left:R.x-E/2,top:R.y-E/2}}),f?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${g?" sound-compass__center--disabled":""}`,style:{width:E,height:E,left:R.x,top:R.y},"aria-label":v,"aria-disabled":g||void 0,tabIndex:g?-1:0,onClick:g?void 0:f,children:t.jsx(ar,{size:F,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:E,height:E,left:R.x,top:R.y},children:t.jsx(ar,{size:F,color:"currentColor",strokeWidth:1.5})}),e.map((Y,ge)=>{const{x:xe,y:Te}=z(Y),ue=Ce(Y),be=X(Y),Ae={...b!==void 0||A?{"--shortcut-badge-scale":String(b??Math.max(.75,Math.min(3,C/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:ue!=="idle"?10:1},Q=C,ee=Math.round(Math.max(10,Math.min(56,Q*.38))),ke=Math.round(Math.max(7,Math.min(18,Q*.2))),De=Math.round(Math.max(10,Math.min(56,Q*.4))),Oe=y==="answered"&&(ue==="played"||ue==="correct"||ue==="wrong"),Le=y===!0||Oe,We=!Oe;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...Ae,left:xe-Q/2,top:Te-Q/2},children:[be&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ue}`+(be==="once"?" sound-compass__pulse--once":""),style:{width:Q,height:Q,...be==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),t.jsxs("button",{type:"button",tabIndex:m?0:-1,"aria-disabled":m?void 0:!0,onClick:m?()=>h?.(Y.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ue}`,style:{width:Q,height:Q},"aria-label":oe(ue)?`${Y.label}, ${oe(ue)}`:Y.label,"aria-pressed":i!=null?Y.id===i:void 0,children:[Le&&te(ue,ee),We&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?ke:De},children:ge+1})]}),Y.shortcut&&t.jsx(Yi,{keys:Y.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},Y.id)})]})})}function qg({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:ve("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function Ug({orientation:e="horizontal",label:n,className:a=""}){const r=ve("divider",`divider--${e}`,n&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?t.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):n?t.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[t.jsx("span",{className:"divider__line"}),t.jsx("span",{className:"divider__label caption-1",children:n}),t.jsx("span",{className:"divider__line"})]}):t.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function Zi({checked:e,onChange:n,name:a,value:r,disabled:o=!1,label:i,className:l=""}){const c=s.useId();return t.jsxs("label",{className:`radio${o?" radio--disabled":""} ${l}`.trim(),htmlFor:c,children:[t.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:o,onChange:u=>n?.(u.target.checked)}),t.jsx("span",{className:"radio__dot"}),i&&t.jsx("span",{className:"radio__label body-2",children:i})]})}function Gg({options:e,value:n,onChange:a,name:r,disabled:o=!1,direction:i="vertical",className:l="",ariaLabel:c}){const u=s.useId(),d=r??`radio-group-${u}`;return t.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":c,children:e.map(p=>t.jsx(Zi,{name:d,value:p.value,checked:n===p.value,disabled:o||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const Kg={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Yg({tone:e="info",title:n,message:a,children:r,dismissible:o=!1,onDismiss:i,className:l=""}){const{t:c}=de.useTranslation(),[u,d]=s.useState(!1),p=s.useCallback(()=>{d(!0),i?.()},[i]);if(u)return null;const m=ve("alert",`alert--${e}`,l),h=!!n,C=!!(a||r);return t.jsxs("div",{className:m,role:"alert",children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Ue,{icon:Kg[e],size:20,className:"alert__icon"}),h&&t.jsx("span",{className:"alert__title body-2",children:n}),!h&&C&&t.jsx("div",{className:"alert__message body-3",children:a||r})]}),h&&C&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),o&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const Zg={ready:"search",guide:"info",error:"circle-alert"};function Xg(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let o=0,i=0;for(const l of a){const c=e.indexOf(l,o);c<0||(c>o&&r.push(e.slice(o,c)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),o=c+l.length)}return o<e.length&&r.push(e.slice(o)),r}function Jg({status:e="guide",label:n,children:a,emphasis:r,icon:o,className:i=""}){const l=o===!1?null:o??Zg[e],c=ve("search-summary",`search-summary--${e}`,i),u=n??a,d=typeof u=="string"&&r&&r.length>0?Xg(u,r):u;return t.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Ue,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:d})]})}function fa({title:e,items:n}){const{t:a}=de.useTranslation(),{anchorRect:r,openAt:o,close:i}=Ma();return t.jsxs(t.Fragment,{children:[t.jsx(ie,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:l=>o(l.currentTarget),onPointerLeave:i,onFocus:l=>o(l.currentTarget),onBlur:i}),r&&t.jsx(Rn,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:i})]})}function Qg({items:e=[],value:n,onChange:a,className:r="",size:o=40}){const i=s.useId(),{t:l}=de.useTranslation(),c=s.useRef(null),u=e.find(f=>!f.disabled)?.key,d=e.some(f=>f.key===n)?n:u??e[0]?.key,p=e.find(f=>f.key===d&&!f.disabled)?.key??u,m=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(f,v=m())=>{if(v.length===0)return;const g=(f%v.length+v.length)%v.length;v[g]?.focus(),v[g]?.click()},C=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const v=m(),g=v.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?h(g+1,v):f.key==="ArrowLeft"||f.key==="ArrowUp"?h(g-1,v):f.key==="Home"?h(0,v):h(v.length-1,v)},y=e.find(f=>f.key===d);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:c,className:`tabs__list tabs__list--${o}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(f=>t.jsx("button",{id:`tabs__tab-${i}-${f.key}`,type:"button",role:"tab","aria-selected":f.key===d,"aria-controls":`tabs__panel-${i}-${f.key}`,disabled:f.disabled,tabIndex:f.key===p?0:-1,className:`tabs__tab body-2${f.key===d?" tabs__tab--active":""}`,onClick:()=>a?.(f.key),onKeyDown:C,children:f.label},f.key))}),y&&t.jsx("div",{id:`tabs__panel-${i}-${y.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${y.key}`,tabIndex:0,className:"tabs__panel",children:y.panel},y.key)]})}const e4={xs:12,sm:16,md:20,lg:28,xl:36};function t4(e){const n=e.trim().split(/\s+/).filter(Boolean);return n.length===0?"":n.length===1?[...n[0]].slice(0,2).join("").toUpperCase():([...n[0]][0]+[...n[n.length-1]][0]).toUpperCase()}function n4({src:e,name:n,size:a="md",shape:r="circle",className:o=""}){const{t:i}=de.useTranslation(),[l,c]=s.useState(null),u=!!e&&l===e,d=n?t4(n):"",p=!!e&&!u,m=!p&&!!d,h=n||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${o}`.trim(),role:"img","aria-label":h,children:[p&&t.jsx("img",{className:"avatar__image",src:e,alt:h,onError:()=>c(e??null)}),!p&&m&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!p&&!m&&t.jsx(Ue,{icon:"user-round",size:e4[a],className:"avatar__icon"})]})}function a4(e,n){if(!n)return!0;const a=n.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),o=e.type.toLowerCase();return a.some(i=>{const l=i.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?o.startsWith(l.slice(0,-1)):o===l})}function r4({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:o=!0,files:i,onRemove:l,className:c=""}){const{t:u}=de.useTranslation(),d=s.useRef(null),[p,m]=s.useState(!1),[h,C]=s.useState([]),y=i??h,f=w=>{if(!w||w.length===0)return;const D=Array.from(w).filter(k=>a4(k,n));if(D.length===0)return;const B=a?D:D.slice(0,1);if(i===void 0){const k=a?[...y,...B]:B;C(k),e?.(k)}else e?.(B)},v=w=>{w.preventDefault(),!r&&m(!0)},g=w=>{w.preventDefault(),m(!1)},x=w=>{w.preventDefault(),m(!1),!r&&f(w.dataTransfer.files)},_=w=>{f(w.target.files),w.target.value=""},b=()=>{r||d.current?.click()},A=w=>{if(!r&&(l?.(w),i===void 0)){const D=y.filter((B,k)=>k!==w);C(D),l||e?.(D)}};return t.jsxs("div",{className:`file-upload ${c}`.trim(),children:[t.jsxs("div",{className:ve("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:b,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),b())},onDragOver:v,onDragLeave:g,onDrop:x,children:[t.jsx(Ue,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:u("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:w=>{w.stopPropagation(),b()},children:u("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),o&&y.length>0&&t.jsx("ul",{className:"file-upload__list",children:y.map((w,D)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:w.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":u("fileUpload.removeAriaLabel",{name:w.name}),disabled:r,onClick:()=>A(D),children:t.jsx(Ue,{icon:"x",size:14})})]},`${w.name}-${D}`))})]})}function o4({items:e,className:n=""}){const{t:a}=de.useTranslation();return t.jsx("nav",{className:`breadcrumb ${n}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:t.jsx("ol",{className:"breadcrumb__list",children:e.map((r,o)=>{const i=o===e.length-1;return t.jsxs("li",{className:"breadcrumb__item",children:[i?t.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}),!i&&t.jsx(Ue,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},o)})})})}const s4={small:14,medium:20,large:28};function i4({value:e,onChange:n,max:a=5,readOnly:r=!1,size:o="medium",ariaLabel:i,className:l=""}){const{t:c}=de.useTranslation(),u=r||!n,[d,p]=s.useState(null),m=d??e,h=s4[o],C=b=>{u||n?.(b)},y=b=>{u||p(b)},f=s.useRef(null),v=b=>{const A=Math.min(a,Math.max(1,b));n?.(A),Array.from(f.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(A))?.focus()},g=b=>{if(!u){switch(b.key){case"ArrowRight":case"ArrowUp":v((e||0)+1);break;case"ArrowLeft":case"ArrowDown":v((e||1)-1);break;case"Home":v(1);break;case"End":v(a);break;default:return}b.preventDefault()}},x=e>=1&&e<=a?Math.round(e):1,_=()=>{u||p(null)};return t.jsx("div",{className:`rating rating--${o}${u?" rating--readOnly":""} ${l}`.trim(),ref:f,onKeyDown:g,role:u?"img":"radiogroup","aria-label":u?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:_,children:Array.from({length:a},(b,A)=>{const w=A+1,D=Math.max(0,Math.min(1,m-A)),B=D>0&&D<1,k=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Ue,{icon:"star",size:h,className:"rating__star rating__star--empty"}),D>0&&t.jsx("span",{className:`rating__star-fill${B?" rating__star-fill--half":""}`,style:B?{width:`${D*100}%`}:void 0,children:t.jsx(Ue,{icon:"star",size:h,className:"rating__star rating__star--filled"})})]});return u?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:k},w):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===w,"aria-label":c("rating.starLabel",{n:w}),"data-star":w,tabIndex:w===x?0:-1,onClick:()=>C(w),onMouseEnter:()=>y(w),children:k},w)})})}const l4=20,c4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function u4({value:e,onChange:n,palette:a=c4,size:r=40,className:o="",ariaLabel:i}){const{t:l}=de.useTranslation();return t.jsx("div",{className:`color-picker ${o}`.trim(),role:"group","aria-label":i,children:a.map(c=>{const u=e?.toLowerCase()===c.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:c},onClick:()=>n(c),"aria-pressed":u,"aria-label":u?`${c} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:c,children:u&&t.jsx(Ue,{icon:"check",size:l4,className:"color-picker__check"})},c)})})}function d4({icon:e,count:n,title:a,className:r="",onClick:o,onMouseEnter:i,onMouseLeave:l}){const c=ve("count-tile",o&&"count-tile--clickable",r);return t.jsxs("div",{className:c,onClick:o,onKeyDown:o?u=>{u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),u.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:l,role:o?"button":"img",tabIndex:o?0:void 0,"aria-label":a?`${a} ${n}`:String(n),children:[t.jsx(Ue,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]})}let Ca=0,Xi="",Ji="",ga=0;function Qi(){return el(!1)}function p4(){return el(!0)}function el(e){const n=typeof document<"u";Ca===0&&n&&(Xi=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(ga===0&&(Ji=document.body.style.paddingRight),ga++,document.body.style.paddingRight="0px"),Ca++;let a=!1;return()=>{a||(a=!0,Ca=Math.max(0,Ca-1),e&&n&&(ga=Math.max(0,ga-1),ga===0&&(document.body.style.paddingRight=Ji)),Ca===0&&n&&(document.body.style.overflow=Xi))}}const Lr=new WeakMap;function $r(e,n){e&&Lr.set(e,n)}function Rr(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!Lr.has(r);)r=r.parentElement;if(!r)return n;n=Lr.get(r)??null}return n}function m4(){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:t.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function h4({open:e,onClose:n,ariaLabel:a,title:r,children:o,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:u=!0,className:d,contentClassName:p}){const{t:m}=de.useTranslation(),h=s.useId(),C=s.useRef(null),y=s.useCallback(()=>n(),[n]);s.useEffect(()=>{if(!e)return;const x=document.activeElement,_=Qi(),b=C.current;return $r(b,x),b?.focus(),()=>{_();const A=document.activeElement;(!A||A===document.body||b&&b.contains(A))&&Rr(x)?.focus?.()}},[e]);const f=s.useRef(y),v=s.useRef(c);s.useEffect(()=>{f.current=y,v.current=c}),s.useEffect(()=>{if(e)return $n(()=>{v.current&&f.current()})},[e]);const g=s.useRef(!1);return wr(C,e),!e||typeof document>"u"?null:Ut.createPortal(t.jsx("div",{className:ve("dialog",d),onPointerDown:l?x=>{g.current=x.target===x.currentTarget}:void 0,onMouseDown:x=>{x.target===x.currentTarget&&x.preventDefault()},onClick:l?x=>{const _=g.current;g.current=!1,_&&x.target===x.currentTarget&&y()}:void 0,children:t.jsxs("div",{ref:C,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:ve("dialog__surface",`dialog__surface--${i}`,p),onClick:x=>x.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,u?t.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:y,children:t.jsx(m4,{})}):null,t.jsx("div",{className:"dialog__body",children:o})]})}),document.body)}function f4({columns:e,rows:n,rowKey:a,title:r,toolbar:o,empty:i="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:l,caption:c,className:u=""}){const d=!l&&n.length===0;return t.jsxs("div",{className:ve("board",u),children:[r||o?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),o?t.jsx("div",{className:"board__toolbar",children:o}):null]}):null,t.jsxs("table",{className:"board__table",children:[c?t.jsx("caption",{className:"board__caption",children:c}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(p=>t.jsx("th",{scope:"col",className:ve("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):d?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):n.map((p,m)=>t.jsx("tr",{className:"board__row",children:e.map(h=>t.jsx("td",{className:ve("board__td",`board__cell--${h.align??"left"}`),children:h.render(p,m)},h.key))},a(p,m)))})]})]})}function C4({name:e,role:n,photo:a,media:r,credentials:o,size:i=190,className:l=""}){return t.jsxs("div",{className:ve("person-card",l),children:[t.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?t.jsx("img",{src:a,alt:n?`${e} ${n}`:e}):null)}),t.jsx("h3",{className:"person-card__name",children:e}),n?t.jsx("p",{className:"person-card__role",children:n}):null,o?.length?t.jsx("ul",{className:"person-card__credentials",children:o.map(c=>t.jsx("li",{children:c},c))}):null]})}function g4({groups:e,className:n=""}){return t.jsx("div",{className:ve("timeline",n),children:e.map(a=>t.jsxs("section",{className:"timeline__group",children:[t.jsx("h3",{className:"timeline__title",children:a.title}),t.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,o)=>t.jsxs("li",{className:"timeline__row",children:[r.label?t.jsx("span",{className:"timeline__label",children:r.label}):null,t.jsx("div",{className:"timeline__items",children:r.items.map((i,l)=>t.jsx("p",{children:i},l))})]},`${r.label??""}-${o}`))})]},a.title))})}function b4({title:e,kind:n,body:a,badge:r,badgeSrc:o,footer:i,width:l,className:c=""}){const u=r??(o?t.jsx("img",{src:o,alt:""}):null);return t.jsxs("div",{className:ve("publication-card",c),style:l?{width:l,flexShrink:0}:void 0,children:[u?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:u}):null,t.jsx("h3",{className:"publication-card__title",children:e}),n?t.jsx("p",{className:"publication-card__kind",children:n}):null,t.jsx("p",{className:"publication-card__body",children:a}),i?t.jsx("div",{className:"publication-card__footer",children:i}):null]})}function y4({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const o=Nr(a);return s.useEffect(()=>{const i=setTimeout(()=>o.current?.(),r);return()=>clearTimeout(i)},[r,o]),t.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:t.jsx("img",{src:e,alt:n,className:"splash-logo__image"})})}function v4({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:o=2,tone:i="dark",className:l=""}){const c=o===1?"h1":"h2";return t.jsxs("div",{className:ve("section-header",`section-header--${i}`,l),children:[e?t.jsxs("p",{className:"section-header__eyebrow",children:[n?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"section-header__index",children:n}),t.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?t.jsx(c,{className:"section-header__title",children:a}):null,r?t.jsx("div",{className:"section-header__description",children:r}):null]})}function x4({items:e,className:n=""}){return t.jsx("ul",{className:ve("company-meta",n),children:e.map((a,r)=>t.jsxs("li",{className:"company-meta__item",children:[r>0?t.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function tl({value:e,onChange:n,suggestions:a,openOnFocus:r=!1}){const o=s.useId(),[i,l]=s.useState(!1),[c,u]=s.useState(-1),d=s.useRef(null),p=s.useMemo(()=>{if(!a.length)return[];const g=e??"";return g?a.filter(x=>x.toLowerCase().includes(g.toLowerCase())):r?a:[]},[a,e,r]);s.useEffect(()=>{i||u(-1)},[i]),s.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const m=c<p.length?c:-1,h=s.useCallback(g=>{n?.(g),l(!1)},[n]),C=s.useCallback(()=>l(!0),[]),y=s.useCallback(()=>{l(!0),u(-1)},[]),f=s.useCallback(()=>{d.current=setTimeout(()=>l(!1),120)},[]),v=s.useCallback(g=>{g.nativeEvent.isComposing||g.keyCode===229||(g.key==="ArrowDown"?(g.preventDefault(),l(!0),u(x=>Math.min(p.length-1,(x<p.length?x:-1)+1))):g.key==="ArrowUp"?(g.preventDefault(),u(x=>Math.max(-1,(x<p.length?x:p.length)-1))):g.key==="Enter"?m>=0&&h(p[m]):g.key==="Escape"&&i&&(g.preventDefault(),l(!1)))},[p,m,i,h]);return{listId:o,open:i,activeIdx:m,filtered:p,handleFocus:C,handleBlur:f,handleInput:y,handleKeyDown:v,handleSelect:h}}const _4=typeof window<"u"?s.useLayoutEffect:s.useEffect;function Fn(e){const{value:n,defaultValue:a,name:r,inputRef:o,onChange:i,label:l,ariaLabel:c,required:u,placeholder:d,type:p="text",disabled:m=!1,readOnly:h=!1,error:C,helperText:y,maxLength:f,size:v=48,variant:g="input",fullWidth:x=!1,newline:_=!1,multiline:b=!1,rows:A=3,leftIcon:w,rightIcon:D,clearable:B=!1,list:k,showCount:N=!0,className:I="",onFocus:O,onBlur:j,onKeyDown:H,onEnter:T,inputMode:K,autoComplete:W,autoFocus:V,suggestions:U,openOnFocus:re=!1}=e,P=h||m?void 0:U,{t:$}=de.useTranslation(),M=s.useId();!l&&!c&&ta(`TextField:unnamed:${M}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const L=`tf-${M}`,z=`tf-helper-${M}`,R=s.useRef(null),E=tl({value:n??"",onChange:i,suggestions:P??[],openOnFocus:re}),F=!!P&&E.open&&E.filtered.length>0,ae=s.useCallback(ee=>{R.current=ee,typeof o=="function"?o(ee):o&&(o.current=ee)},[o]),le=n!==void 0,se=le&&p==="password",[oe,Ce]=s.useState((a??"").length),X=le?(n??"").length:oe,te=s.useRef(n);_4(()=>{te.current=n}),s.useEffect(()=>{const ee=R.current;if(!se||!ee)return;const ke=n??"";ee.value!==ke&&(ee.value=ke)},[se,n]),s.useEffect(()=>{if(!_||!R.current)return;const ee=R.current;ee.style.height="",ee.scrollHeight>ee.clientHeight&&(ee.style.height=`${ee.scrollHeight}px`)},[n,oe,_]);const Y=f!=null&&X>f,ge=v===32?16:20,xe=ve("text-field",`text-field--s${v}`,g==="display"?"text-field--display":"",x?"text-field--full-width":"",m?"text-field--disabled":"",h?"text-field--readonly":"",C?"text-field--error":"",w?"text-field--has-left-icon":"",D||B?"text-field--has-right-icon":"",I),Te={id:L,...se?{}:le?{value:n}:{defaultValue:a},ref:ae,placeholder:d,name:r,disabled:m,readOnly:h,autoFocus:V,maxLength:f,list:k,inputMode:K,autoComplete:W,"aria-label":!l&&c?c:void 0,"aria-required":u,"aria-invalid":!!C,"aria-describedby":y||C?z:void 0,role:P?"combobox":void 0,"aria-autocomplete":P?"list":void 0,"aria-haspopup":P?"listbox":void 0,"aria-expanded":P?E.open:void 0,"aria-controls":F?E.listId:void 0,"aria-activedescendant":F&&E.activeIdx>=0?`${E.listId}-option-${E.activeIdx}`:void 0,onChange:ee=>{const ke=ee.target;le||Ce(ke.value.length),i?.(ke.value),P&&E.handleInput(),se&&queueMicrotask(()=>{const De=te.current??"";ke.value!==De&&(ke.value=De)})},onFocus:(ee=>{O?.(ee),P&&E.handleFocus()}),onBlur:(ee=>{j?.(ee),P&&E.handleBlur()}),onKeyDown:(ee=>{P&&ee.key==="Enter"&&!ee.nativeEvent.isComposing&&E.activeIdx>=0?ee.preventDefault():T&&ee.key==="Enter"&&!ee.nativeEvent.isComposing&&(ee.preventDefault(),T()),H?.(ee),P&&E.handleKeyDown(ee)})},ue=B&&!m&&!h&&X>0,be=()=>_?t.jsx("textarea",{...Te,className:"text-field__input text-field__input--auto body-2",rows:1}):b?t.jsx("textarea",{...Te,className:"text-field__input text-field__input--textarea body-2",rows:A}):t.jsx("input",{...Te,type:p,className:"text-field__input body-2"}),Ae=g==="display"&&!_&&!b&&!!d,Q=()=>t.jsxs(t.Fragment,{children:[be(),Ae&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return t.jsxs("div",{className:xe,children:[l&&t.jsxs("label",{htmlFor:L,className:"text-field__label caption-1",children:[l,u&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[w&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(Ue,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:ge})}),Q(),f!=null&&N&&t.jsxs("span",{className:`text-field__count caption-2${Y?" text-field__count--over":""}`,children:[X,"/",f]}),ue&&t.jsx(ie,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:$("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:ee=>{ee.preventDefault()},onClick:()=>{!le&&R.current&&(R.current.value="",Ce(0)),i?.("")},tabIndex:-1}),D&&!ue&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(Ue,{icon:D,label:"",className:"",svgClassName:"text-field__icon-svg",size:ge})})]}),P&&E.open&&E.filtered.length>0&&t.jsx("ul",{id:E.listId,className:"text-field__suggestions",role:"listbox",children:E.filtered.map((ee,ke)=>t.jsx("li",{id:`${E.listId}-option-${ke}`,role:"option","aria-selected":ke===E.activeIdx,className:`text-field__suggestion body-2${ke===E.activeIdx?" is-active":""}`,onMouseDown:De=>De.preventDefault(),onClick:()=>{E.handleSelect(ee),R.current?.focus()},children:ee},`${ee}-${ke}`))}),(y||C)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:z,className:"text-field__helper caption-1",role:C?"alert":void 0,children:C||y})})]})}function Jt({options:e,value:n,onChange:a,placeholder:r,disabled:o=!1,block:i=!1,size:l=48,error:c=!1,className:u="",ariaLabel:d,ariaDescribedBy:p}){const{t:m}=de.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),C=s.useId(),y=s.useId(),f=s.useRef(null),v=s.useCallback(T=>{const K=window.innerHeight-T.bottom<260&&T.top>260;return{position:"fixed",left:T.left,minWidth:T.width,...K?{bottom:window.innerHeight-T.top+6}:{top:T.bottom+6},zIndex:9999}},[]),{open:g,setOpen:x,toggle:_,style:b,triggerRef:A,menuRef:w}=pa({computeStyle:v}),[D,B]=s.useState(-1),k=s.useCallback(()=>B(-1),[]),N=e.find(T=>T.value===n);s.useEffect(()=>{if(g){const T=e.findIndex(K=>K.value===n);B(T>=0?T:e.length?0:-1),requestAnimationFrame(()=>{const K=w.current;if(!K)return;const W=K.querySelectorAll(".dropdown__option")[T];W&&(K.scrollTop=Math.max(0,W.offsetTop-K.clientHeight/2+W.clientHeight/2))})}},[g]),s.useEffect(()=>{g&&B(T=>{if(T>=0&&T<e.length)return T;const K=e.findIndex(W=>W.value===n);return K>=0?K:e.length?0:-1})},[g,e.length]);const I=s.useCallback(()=>{o||_()},[o,_]),O=s.useCallback(T=>{T.disabled||o||(a?.(T.value),x(!1))},[a,x,o]);s.useEffect(()=>{o&&x(!1)},[o,x]);const j=s.useCallback(T=>{if(!o){if(!g){(T.key==="Enter"||T.key===" "||T.key==="ArrowDown")&&(T.preventDefault(),x(!0));return}if(T.key==="Escape"){T.preventDefault(),x(!1);return}T.key==="ArrowDown"?(T.preventDefault(),B(K=>{let W=K+1;for(;W<e.length&&e[W].disabled;)W++;return W<e.length?W:K})):T.key==="ArrowUp"?(T.preventDefault(),B(K=>{let W=K-1;for(;W>=0&&e[W].disabled;)W--;return W>=0?W:K})):(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),e[D]?O(e[D]):x(!1))}},[o,g,e,D,O,x]),H=g?t.jsx("div",{ref:w,id:C,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:b,onMouseLeave:k,onMouseDown:T=>T.preventDefault(),children:e.map((T,K)=>t.jsxs("button",{id:`${C}-option-${K}`,type:"button",role:"option","aria-selected":T.value===n,className:ve("dropdown__option body-2",T.value===n?"dropdown__option--active":"",K===D?"dropdown__option--active":"",T.disabled?"dropdown__option--disabled":""),onMouseDown:W=>W.preventDefault(),onClick:()=>O(T),onMouseEnter:()=>B(K),disabled:T.disabled,children:[t.jsx("span",{className:"dropdown__option-check",children:T.value===n&&t.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),T.label]},T.value))}):null;return t.jsxs("div",{ref:f,className:ve("dropdown",`dropdown--s${l}`,g?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:j,children:[t.jsxs("button",{ref:A,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":g,"aria-controls":g?C:void 0,"aria-activedescendant":g&&D>=0?`${C}-option-${D}`:void 0,"aria-label":d,"aria-describedby":[d&&N?y:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":c||void 0,disabled:o,onClick:I,onBlur:T=>{g&&!w.current?.contains(T.relatedTarget)&&x(!1)},children:[t.jsx("span",{id:y,className:`dropdown__trigger-label body-2${N?"":" dropdown__trigger-label--placeholder"}`,children:N?N.label:h}),t.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&Ut.createPortal(H,f.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Ra({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:o,className:i=""}){const{t:l}=de.useTranslation(),c=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),u=o??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,n),p=()=>a(Math.max(1,Math.min(d,e-1))),m=()=>a(Math.min(d,e+1));return t.jsxs("div",{className:ve("pagination",i),children:[t.jsx(ie,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:p}),t.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),t.jsx(ie,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=n,onClick:m})]})}function On(e){const{t:n}=de.useTranslation(),{options:a=[],value:r=a.find(v=>!v.disabled)?.key??a[0]?.key,onChange:o=v=>{},className:i="",size:l=48,shape:c="pill",useBG:u=!0,fullWidth:d=!1,ariaLabel:p}=e||{},m=s.useRef(null),h=a.filter(v=>!v.disabled),C=v=>{if(!h.length)return;const g=Math.max(0,h.findIndex(_=>_.key===r)),x=v==="first"?h[0]:v==="last"?h[h.length-1]:h[(g+v+h.length)%h.length];x&&(o(x.key),Array.from(m.current?.querySelectorAll("[data-segkey]")??[]).find(_=>_.dataset.segkey===x.key)?.focus())},y=v=>{switch(v.key){case"ArrowRight":case"ArrowDown":C(1);break;case"ArrowLeft":case"ArrowUp":C(-1);break;case"Home":C("first");break;case"End":C("last");break;default:return}v.preventDefault()},f=h.some(v=>v.key===r)?r:h[0]?.key;return t.jsx("div",{ref:m,onKeyDown:y,className:ve("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,d&&"segmented-control--full",!u&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":p??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(v=>t.jsx(ie,{htmlType:"button",role:"radio","aria-checked":v.key===r,"data-segkey":v.key,tabIndex:v.key===f?0:-1,label:v.label,count:v.count,disabled:v.disabled,className:v.key===r?"is-selected":"",onClick:()=>{v.disabled||o(v.key)},size:l,shape:c,useBorder:!1,useBG:!1},v.key))})}function Pr({count:e,search:n,segment:a,filters:r,pageSize:o,pagination:i,actions:l,className:c}){const{t:u}=de.useTranslation(),d=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??u("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(n||r?.length||o||i||l);return t.jsxs("div",{className:ve("toolbar",c),children:[t.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((m,h)=>t.jsx(On,{size:40,...m},m.ariaLabel??h))]}),p&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(Fn,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??u("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??u("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((m,h)=>t.jsx(Jt,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},h)),o&&t.jsx(Jt,{size:40,options:o.options,value:o.value,onChange:o.onChange,ariaLabel:o.ariaLabel??u("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&t.jsx(Ra,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),l]})})]})}function nl(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(nl).join(""):""}function w4(e){let n=e.replace(/\r\n/g,`
833
833
  `).replace(/\r/g,`
834
834
  `);n=n.replace(/^\n+/,"").replace(/\n+$/,"");const a=n.split(`
835
835
  `).map(i=>i.replace(/\t/g," ")),r=a.filter(i=>i.trim().length>0),o=r.length>0?Math.min(...r.map(i=>i.match(/^ */)?.[0].length??0)):0;return a.map(i=>i.slice(o)).join(`
836
836
  `)}const k4=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),A4=/^(?:const|let|var|function|return|if|else|for|while|switch|case|break|import|from|export|class|new|try|catch|finally|throw|await|async|null|true|false|this|typeof|instanceof)\b/;function N4(e,n){let a=e;const r=[],o=/^(?:sh|bash|zsh|shell|console)$/.test(n.toLowerCase()),i=(l,c)=>r.push({type:l,content:c});for(;a.length>0;){const l=a.match(/^\s+/);if(l){i("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!o&&a.startsWith("//")){const y=a.indexOf(`
837
837
  `),f=y===-1?a:a.slice(0,y);i("comment",f),a=a.slice(f.length);continue}if(o&&a.startsWith("#")){const y=a.indexOf(`
838
- `),f=y===-1?a:a.slice(0,y);i("comment",f),a=a.slice(f.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const u=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){i("string",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),a=a.slice(d[0].length);continue}const p=a.match(A4);if(p){i("keyword",p[0]),a=a.slice(p[0].length);continue}const m=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(m){const y=m[0];i(o&&k4.has(y)?"command":"identifier",y),a=a.slice(y.length);continue}const h=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(h){i("operator",h[0]),a=a.slice(h[0].length);continue}const C=a.match(/^[()[\]{};.,]/);if(C){i("punctuation",C[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function B4({children:e,language:n="bash",title:a="",showCopy:r=!0,size:o="default",className:i=""}){const{t:l}=de.useTranslation(),[c,u]=s.useState(!1),d=w4(nl(e)),p=s.useRef(null);s.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await I0(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},h=N4(d,n),C=o==="small"?"caption-1":"body-3";return t.jsxs("div",{className:ve("code-box",o==="small"?"code-box--small":"",i),children:[(a||r)&&t.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[t.jsx("div",{className:"code-box__title caption-1",children:a}),r&&t.jsx(le,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:m,ariaLabel:c?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),t.jsx("pre",{className:"code-box__inner","data-lang":n,children:t.jsx("code",{children:h.map((y,f)=>t.jsx("span",{className:`code-token ${y.type} ${C}`,children:y.content},f))})})]})}const D4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function ba(e){const{t:n}=de.useTranslation(),{variant:a="spinner",size:r=24,progress:o=null,label:i}=e||{},l=i||n("loader.loading","Loading");if(a==="bar"){const u=Math.max(0,Math.min(100,Number(o)||0));return t.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u,"aria-label":l,children:t.jsx("div",{className:"loader-bar__inner",style:{width:`${u}%`}})})}const c=typeof r=="number"?`${r}px`:r;return t.jsxs("div",{className:"loader-spinner",style:{width:c,height:c},role:"status","aria-label":l,children:[t.jsx("span",{style:D4,children:l}),t.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[t.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),t.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}function al({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:o,labelPosition:i="right",className:l="",id:c}){const u=r&&t.jsx("span",{className:"toggle__label body-3",children:r});return t.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[i==="left"&&u,t.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>n?.(d.target.checked),"aria-label":!r&&o?o:void 0}),t.jsx("span",{className:"toggle__slider"}),i==="right"&&u]})}function rl({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:o,size:i="medium",className:l,title:c,ariaLabel:u}){const d=s.useRef(null),p=s.useId(),m=s.useRef(!!r);return m.current=!!r,s.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),t.jsxs("label",{className:ve("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:c,children:[t.jsx("input",{ref:d,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>{n?.(h.target.checked),d.current&&(d.current.indeterminate=m.current)},disabled:a,"aria-label":!o&&u?u:void 0}),t.jsx("span",{className:"checkbox__box"}),o&&t.jsx("span",{className:"checkbox__label body-3",children:o})]})}function S4({count:e,actions:n,onClear:a,clearLabel:r,visible:o,content:i,max:l}){const{t:c}=de.useTranslation(),u=o!==void 0?o:e>0,d=r??c("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=s.useRef(null),[m,h]=s.useState(!1),C=s.useRef(!1),y=s.useRef(null);return s.useEffect(()=>{const f=p.current;if(!f)return;const v=w=>{C.current=w,h(w)},g=()=>{const w=f.firstElementChild??f,D=Array.from(w.children);if(D.length<2){v(!1);return}const B=D[0].offsetTop,k=D.some(H=>H.offsetTop!==B);if(!C.current){y.current=f.clientWidth,k&&v(!0);return}if(k)return;const N=D[0],I=D[D.length-1],O=I.offsetLeft+I.offsetWidth-N.offsetLeft,E=y.current;(E==null||O<=E)&&v(!1)};if(g(),typeof ResizeObserver>"u")return;const x=new ResizeObserver(g);x.observe(f);const _=f.parentElement;let b=_?.clientWidth??0;const A=new ResizeObserver(()=>{const w=_?.clientWidth??0;w!==b&&(b=w,y.current=null,g())});return _&&A.observe(_),()=>{x.disconnect(),A.disconnect()}},[i,e]),t.jsxs("div",{className:`bulk-bar ${u?"bulk-bar--visible":""}`,inert:!u||void 0,"aria-hidden":u?void 0:!0,children:[t.jsx("span",{ref:p,className:"bulk-bar__count body-2",role:"status",children:i??t.jsx("b",{children:c("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(lt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${m?" bulk-bar__actions--stacked":""}`,children:[t.jsx(le,{htmlType:"button",size:40,label:d,onClick:a}),n.map((f,v)=>t.jsx(le,{htmlType:"button",size:40,variant:f.variant??"default",icon:f.icon,label:f.label,onClick:f.onClick},v))]})]})}function ol(e){const n=()=>{if(e){const[y,f]=e.split("-");return{y:+y,m:+f-1}}const[h,C]=Mn().split("-");return{y:+h,m:+C-1}},[a,r]=s.useState(()=>n().y),[o,i]=s.useState(()=>n().m),l=s.useRef(e);s.useEffect(()=>{if(e===l.current)return;l.current=e;const h=n();r(h.y),i(h.m)},[e]);const c=s.useRef({y:a,m:o});s.useEffect(()=>{c.current={y:a,m:o}},[a,o]);const u=s.useCallback(h=>{const C=c.current.y*12+c.current.m+h,y=Math.floor(C/12),f=C-y*12;c.current={y,m:f},r(y),i(f)},[]),d=s.useCallback(()=>u(-1),[u]),p=s.useCallback(()=>u(1),[u]),m=s.useCallback((h,C)=>{c.current={y:h,m:C},r(h),i(C)},[]);return{viewY:a,viewM:o,prevMonth:d,nextMonth:p,setViewYM:m}}function Pa(e,n){return new Date(e,n+1,0).getDate()}function T4(e,n){return new Date(e,n,1).getDay()}function Ia(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function j4(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function E4(e,n,a,r){const o=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let c=o;c<=i;c++)for(let u=0;u<12;u++){const d=`${c}-${String(u+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:n(c,u+1)})}return l}function M4({value:e,onChange:n,size:a=48,min:r,max:o,disabled:i,placeholder:l,className:c}){const{t:u}=de.useTranslation(),d=l??u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),p=s.useMemo(()=>u("calendar.dow",{returnObjects:!0}),[u]),m=Mn(),{viewY:h,viewM:C,prevMonth:y,nextMonth:f,setViewYM:v}=ol(e),g=s.useCallback(R=>{const M=window.innerHeight-R.bottom,L=300,z=M<L&&R.top>L;return{position:"fixed",left:R.left,width:R.width,minWidth:260,...z?{bottom:window.innerHeight-R.top+6}:{top:R.bottom+6},zIndex:9999}},[]),{open:x,setOpen:_,toggle:b,style:A,triggerRef:w,menuRef:D}=pa({computeStyle:g,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});s.useEffect(()=>{if(!x)return;const R=D.current;return(R?.querySelector(".date-picker__day--selected:not(:disabled)")??R?.querySelector(".date-picker__day--today:not(:disabled)")??R?.querySelector(".date-picker__day:not(:disabled)")??R?.querySelector(Ln)??R)?.focus?.(),()=>{const M=document.activeElement;(!M||M===document.body)&&w.current?.focus?.()}},[x,D,w]);const[B,k]=s.useState(1),N=s.useRef(null),I=s.useRef(null);s.useEffect(()=>{if(!x)return;const R=e&&e.slice(0,7)===`${h}-${String(C+1).padStart(2,"0")}`?+e.slice(8):m.slice(0,7)===`${h}-${String(C+1).padStart(2,"0")}`?+m.slice(8):1;k(R)},[x]),s.useEffect(()=>{if(I.current==null)return;const R=I.current;I.current=null,N.current?.querySelector(`[data-day="${R}"]`)?.focus()}),s.useEffect(()=>{k(R=>Math.min(R,Pa(h,C)))},[h,C]);const O=s.useCallback(R=>{let M=Ia(R.getFullYear(),R.getMonth(),R.getDate());r&&M<r&&(M=r),o&&M>o&&(M=o);const[L,z,$]=M.split("-").map(Number);(L!==h||z-1!==C)&&v(L,z-1),k($),I.current=$},[r,o,h,C,v]),E=s.useCallback(R=>{const M=new Date(h,C,B),L=$=>{M.setDate(M.getDate()+$),O(M)},z=$=>{const j=M.getFullYear()*12+M.getMonth()+$,F=Math.floor(j/12),se=j-F*12;O(new Date(F,se,Math.min(M.getDate(),Pa(F,se))))};switch(R.key){case"ArrowLeft":L(-1);break;case"ArrowRight":L(1);break;case"ArrowUp":L(-7);break;case"ArrowDown":L(7);break;case"Home":L(-M.getDay());break;case"End":L(6-M.getDay());break;case"PageUp":R.shiftKey?z(-12):z(-1);break;case"PageDown":R.shiftKey?z(12):z(1);break;default:return}R.preventDefault()},[h,C,B,O]),H=s.useCallback(R=>{i||(n(Ia(h,C,R)),_(!1))},[h,C,n,_,i]);s.useEffect(()=>{i&&_(!1)},[i,_]);const T=R=>{const M=Ia(h,C,R);return!!(r&&M<r||o&&M>o)},K=(()=>{const R=Pa(h,C);if(B>=1&&B<=R&&!T(B))return B;for(let M=1;M<=R;M++)if(!T(M))return M;return-1})(),W=[];for(let R=0;R<T4(h,C);R++)W.push(null);for(let R=1;R<=Pa(h,C);R++)W.push(R);const V=a===64?20:a===40?16:18,U=E4(h,(R,M)=>u("calendar.yearMonth",{year:R,month:M,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,o),re=`${h}-${String(C+1).padStart(2,"0")}`,P=x?Ut.createPortal(t.jsxs("div",{ref:D,className:"date-picker__dropdown",style:A,"data-tooltip-ignore":!0,role:"dialog","aria-label":u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[t.jsxs("div",{className:"date-picker__nav",children:[t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:y,"aria-label":u("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Lo,{size:16,strokeWidth:2})}),t.jsx(Jt,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:U,value:re,onChange:R=>{const[M,L]=R.split("-");v(+M,+L-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx($o,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:N,onKeyDown:E,children:[p.map(R=>t.jsx("div",{className:"date-picker__dow caption-1",children:R},R)),W.map((R,M)=>{if(R===null)return t.jsx("div",{},`e${M}`);const L=Ia(h,C,R),z=L===e,$=L===m,j=T(R),F=M%7;return t.jsx("button",{type:"button",disabled:j,"data-day":R,tabIndex:R===K?0:-1,"aria-current":$?"date":void 0,onClick:()=>!j&&H(R),className:ve("date-picker__day caption-1",z&&"date-picker__day--selected",$&&!z&&"date-picker__day--today",j&&"date-picker__day--disabled",F===0&&"date-picker__day--sun",F===6&&"date-picker__day--sat"),children:R},R)})]})]}),document.body):null;return t.jsxs("div",{className:ve("date-picker",`date-picker--s${a}`,x&&"date-picker--open",c),children:[t.jsxs("button",{ref:w,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&b(),disabled:i,"aria-haspopup":"true","aria-expanded":x,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?j4(e):d}),t.jsx(Wo,{size:V,className:"date-picker__icon",strokeWidth:1.5})]}),P]})}function Ir({items:e,className:n}){return t.jsx("div",{className:n?`manager-bar-chart-legend ${n}`:"manager-bar-chart-legend",children:e.map((a,r)=>t.jsxs("span",{className:"manager-bar-chart-legend-item",children:[t.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function Fa({label:e,children:n}){return e?t.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[t.jsx("span",{className:"barchart-total__label body-3",children:e}),t.jsx("span",{className:"barchart-total__value",children:n})]}):t.jsx("div",{className:"barchart-total",children:n})}function Fr({title:e,titleClassName:n="h3",headRight:a,subRow:r,className:o,inGrid:i=!1,children:l}){return t.jsxs("section",{className:["manager-section",i&&"manager-section--grid",o].filter(Boolean).join(" "),children:[t.jsxs("div",{className:"manager-section__head",children:[t.jsx("div",{className:n,children:e}),a]}),r&&t.jsx("div",{className:"barchart-sub-row",children:r}),l]})}function Cn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function L4(){const e=qn();let n=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<Cn(n,a)){const l=new Date(n,a,0);n=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const o=Math.floor((r-Cn(n,a))/7),i=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${o}`}}function $4(e){const n=qn(),a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(u,d)=>`${u}\uB144 ${d+1}\uC6D4`,o=new Map;o.set(a,[]);for(const u of e){if(isNaN(u.date.getTime()))continue;const d=r(u.date.getFullYear(),u.date.getMonth());o.has(d)||o.set(d,[]),o.get(d).push(u)}for(const[u,d]of[...o.entries()]){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,C=Cn(m,h);if(!(u===a&&n.getDate()<C)&&!d.some(v=>v.date.getDate()<C))continue;const y=new Date(m,h,0),f=r(y.getFullYear(),y.getMonth());o.has(f)||o.set(f,[])}const i=new Map;for(const[u,d]of o){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,C=new Date(m,h+1,0).getDate(),y=d.reduce((x,_)=>Math.max(x,_.parts?.length??0),0),f=new Array(C+1).fill(0),v=new Array(C+1).fill(0),g=Array.from({length:C+1},()=>new Array(y).fill(0));for(const x of d){const _=x.date.getDate();if(f[_]+=x.a,v[_]+=x.b,x.parts)for(let b=0;b<y;b++)g[_][b]+=x.parts[b]??0}i.set(u,{year:m,month:h,daysInMonth:C,partsLen:y,dayA:f,dayB:v,dayParts:g})}const l=(u,d,p)=>new Date(u,d,p).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),c={};for(const[u,d]of i){const{year:p,month:m,daysInMonth:h,dayA:C,dayB:y,dayParts:f}=d,v=p===n.getFullYear()&&m===n.getMonth(),g=n.getDate(),x=i.get(r(m===11?p+1:p,(m+1)%12)),_=d.partsLen,b=[];for(let w=1;w<=h;w++){const D=v&&w>g;b.push({label:String(w),a:D&&C[w]===0&&y[w]===0?-1:C[w],b:y[w],..._?{parts:f[w]}:{}})}const A=[];for(let w=Cn(p,m);w<=h;w+=7){const D=Math.max(0,w+6-h),B=D&&x?Math.max(_,x.partsLen):_;let k=0,N=0;const I=new Array(B).fill(0);for(let E=w;E<=Math.min(w+6,h);E++){k+=C[E],N+=y[E];for(let H=0;H<_;H++)I[H]+=f[E][H]}if(D&&x)for(let E=1;E<=D&&!l(x.year,x.month,E);E++){k+=x.dayA[E],N+=x.dayB[E];for(let H=0;H<x.partsLen;H++)I[H]+=x.dayParts[E][H]}const O=D?`${(m+1)%12+1}/${D}`:`${w+6}`;A.push({label:`${A.length+1}\uC8FC`,sublabel:`[${w}\uC77C~${O}\uC77C]`,a:k,b:N,...B?{parts:I}:{}})}c[u]={weekly:A,daily:b}}return c}function sl(){const e=qn(),n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let o=2024;o<=n;o++){const i=o===n?a:12;for(let l=1;l<=i;l++){const c=`${o}\uB144 ${l}\uC6D4`;r.push({value:c,label:c,year:o,month:l})}}return r.reverse()}sl();function R4(){return sl()}const il=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function ll(e){const{t:n,i18n:a}=de.useTranslation(),[r,o]=s.useState("week"),i=s.useMemo(()=>R4().filter(k=>k.value in e),[e]),l=s.useMemo(()=>{const k=[];for(const N of i){const I=new Date(N.year,N.month,0).getDate(),O=Cn(N.year,N.month-1),E=Math.ceil((I-O+1)/7);for(let H=E-1;H>=0;H--)k.push({value:`${N.value}#${H}`,monthKey:N.value,year:N.year,month:N.month,week:H})}return k},[i]),c=s.useCallback(k=>{const N=n("calendar.yearMonth",{year:k.year,month:k.month});return a.language?.startsWith("ko")?`${N} ${il[k.week]??`${k.week+1}`}\uC8FC`:`${N} Week ${k.week+1}`},[n,a.language]),u=s.useMemo(()=>i.map(k=>({value:k.value,label:n("calendar.yearMonth",{year:k.year,month:k.month})})),[n,i]),d=s.useMemo(()=>l.map(k=>({value:k.value,label:c(k)})),[l,c]),p=s.useMemo(()=>L4(),[e]),m=s.useMemo(()=>i.find(k=>k.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),h=s.useMemo(()=>l.find(k=>k.value===p.value)?.value??l[0]?.value??"",[l,p]),[C,y]=s.useState(""),[f,v]=s.useState("");s.useEffect(()=>{i.find(k=>k.value===C)||y(m)},[i,C,m]),s.useEffect(()=>{l.find(k=>k.value===f)||v(h)},[l,f,h]);const g=r==="month"?u:d,x=r==="month"?C:f,_=r==="month"?y:v,b=s.useMemo(()=>{const k=n("calendar.dow",{returnObjects:!0});return Array.isArray(k)?k:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),A=g.findIndex(k=>k.value===x),w=s.useCallback(()=>{const k=g.findIndex(N=>N.value===x);k<g.length-1&&_(g[k+1].value)},[g,x,_]),D=s.useCallback(()=>{const k=g.findIndex(N=>N.value===x);k>0&&_(g[k-1].value)},[g,x,_]),B=s.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:o,range:x,setRange:_,activeOptions:g,activeIdx:A,handlePrev:w,handleNext:D,periodOptions:B,monthRange:C,weekRange:f,weekRanges:l,DOW:b}}const Qt=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function P4({data:e,colorA:n,colorB:a,labelA:r,labelB:o,barWidth:i=10,height:l=140,maxOverride:c,tightMax:u,seriesColors:d,seriesLabels:p,rateLabels:m}){const h=!a,C=!!(d&&d.length>0),y=s.useMemo(()=>C?Math.max(0,...e.filter(B=>B.a!==-1).map(B=>(B.parts??[]).reduce((k,N)=>k+Math.max(0,Qt(N)),0))):Math.max(0,...e.filter(B=>B.a!==-1).flatMap(B=>h?[Qt(B.a)]:[Qt(B.a),Qt(B.b)])),[e,h,C]),f=s.useMemo(()=>c??(u?y>0?y:10:Math.ceil(y/10)*10||10),[y,c,u]),v=l,g=C||h?1:2,x={"--bar-width":`${s.useMemo(()=>{const B=Math.max(1,e.length);return Math.max(8,Math.min(i,Math.round(120/(B*g)+6)))},[e.length,g,i])}px`},_=s.useMemo(()=>{const B=Math.round(f/2);return B!==f?[f,B,0]:[f,0]},[f]),[b,A]=s.useState(null),w=s.useCallback(()=>A(null),[]),D=b!=null;return s.useEffect(()=>{if(!D)return;const B=()=>A(null),k=N=>{const I=N.target;I&&typeof I.closest=="function"&&I.closest(".manager-bar-chart-col")||A(null)};return window.addEventListener("scroll",B,!0),document.addEventListener("pointerdown",k,!0),()=>{window.removeEventListener("scroll",B,!0),document.removeEventListener("pointerdown",k,!0)}},[D]),t.jsxs("div",{className:"manager-bar-chart-wrap",children:[t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsx("div",{className:"manager-bar-chart-scroll",children:t.jsxs("div",{className:"manager-bar-chart-area",children:[t.jsxs("div",{className:"manager-bar-chart-plot",style:{height:v},children:[_.slice(0,-1).map((B,k)=>t.jsx("div",{className:"manager-bar-chart-gridline",style:{top:(1-B/f)*v},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:B})},k)),e.map((B,k)=>{const N=B.a===-1,I=T=>Math.min(v,Math.max(0,Qt(T)/f*v)),O=N?0:I(B.a),E=N?0:I(B.b),H=(B.parts??[]).map(Qt);return t.jsx("div",{className:"manager-bar-chart-col",style:{cursor:N?"default":"pointer"},onMouseEnter:N?void 0:T=>{const K=T.currentTarget.getBoundingClientRect(),W=[B.label,B.sublabel].filter(Boolean).join(" ");let V;if(C){const U=(p??[]).map((P,R)=>({text:`${P}: ${H[R]??0}`,color:(d??[])[R]})),re=U.filter((P,R)=>(H[R]??0)>0);V=re.length?re:U}else m&&!h?V=[{text:`${r} ${Qt(B.a)}%`,color:n},{text:`${o} ${Qt(B.b)}%`,color:a}]:m&&B.rawB!==void 0?V=[{text:`${m.total} ${B.rawB}`},{text:`${m.done} ${B.rawA??0}`,color:n}]:h?V=[{text:`${r}: ${Qt(B.a)}`,color:n}]:V=[{text:`${r}: ${Qt(B.a)}`,color:n},{text:`${o}: ${Qt(B.b)}`,color:a}];A({rect:{left:K.left,top:K.top,right:K.right,bottom:K.bottom,width:K.width,height:K.height},title:W,items:V})},onMouseLeave:w,children:!N&&(C?t.jsx("div",{className:"manager-bar-chart-stack",style:x,children:(()=>{const T=H.reduce((W,V,U)=>V>0?U:W,-1);let K=v;return H.map((W,V)=>{if(W<=0)return null;const U=Math.min(K,W/f*v);return K-=U,t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:U,background:(d??[])[V],borderRadius:V===T?"6px 6px 0 0":void 0}},V)})})()}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...x,height:O,background:n}}),!h&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...x,height:E,background:a}})]}))},k)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((B,k)=>{const N=B.a===-1;return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${N?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[B.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),B.label]}),B.sublabel&&t.jsx("span",{className:"caption-1",children:B.sublabel})]},k)})})]})})}),b&&t.jsx(Rn,{anchorRect:b.rect,title:b.title,items:b.items,showIndex:!1,closeOnOutsideClick:!1})]})}function cl({control:e}){const{t:n}=de.useTranslation(),{activeOptions:a,activeIdx:r,range:o,setRange:i,handlePrev:l,handleNext:c,periodOptions:u,period:d,setPeriod:p}=e,m=d==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),h=d==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),t.jsx(Jt,{value:o,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:h,showTooltipInfo:h,disabled:r<=0,onClick:c}),t.jsx(On,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:u,value:d,onChange:C=>p(C),size:32})]})}function ul(e,n,a){const r=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(o,i)=>{const l=new Date(n);l.setDate(n.getDate()+i);const c=(e[`${l.getFullYear()}\uB144 ${l.getMonth()+1}\uC6D4`]?.daily??[])[l.getDate()-1],u=c?.a===-1||l>r;return{dt:l,entry:c,isFuture:u}})}function I4(e,n,a,r){const{period:o,monthRange:i,weekRange:l,weekRanges:c,DOW:u}=n,d=r?.startsWith("ko"),p=qn(),m=p.getFullYear(),h=p.getMonth()+1,C=p.getDate();if(o==="month"){const v=e[i]??{weekly:[],daily:[]},g=i.match(/^(\d+)년 (\d+)월$/),x=g?Number(g[1]):null,_=g?Number(g[2]):null,b=x&&_?Cn(x,_-1):1;return v.weekly.map((A,w)=>{const D=w+1;let B=A.label,k=!1,N=!1;if(x&&_){const I=b+w*7,O=new Date(x,_-1,I+6),E=O.getMonth()+1,H=O.getDate(),T=E===_?`${H}`:`${E}/${H}`;B=a("manager.chart.weekRange",{start:I,end:T});const K=new Date(m,h-1,C).getTime();k=K>=new Date(x,_-1,I).getTime()&&K<=O.getTime(),N=x>m||x===m&&(_>h||_===h&&I>C)}return{...A,label:B,sublabel:d?`${il[D-1]??D}\uC8FC`:`Week ${D}`,isToday:k,a:N?-1:A.a,b:N?0:A.b}})}const y=c.find(v=>v.value===l);if(!y)return[];const f=new Date(y.year,y.month-1,Cn(y.year,y.month-1)+y.week*7);return ul(e,f,p).map(({dt:v,entry:g,isFuture:x})=>{const _=v.getMonth()+1,b=v.getDate(),A=v.getFullYear();return{label:_===y.month&&A===y.year?`${b}`:`${_}/${b}`,sublabel:u[v.getDay()]??"",a:x?-1:g&&g.a>0?g.a:0,b:x?0:g&&g.b>0?g.b:0,isToday:A===m&&_===h&&b===C,...g?.parts?{parts:x?g.parts.map(()=>0):g.parts}:{}}})}const F4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function O4({size:e="medium",barWidth:n,titleKey:a,data:r,colorA:o,colorB:i,labelAKey:l,labelBKey:c,showTotal:u=!1,totalUnitKey:d,totalLabelKey:p,control:m,hideControls:h=!1,rate:C=!1,tightMax:y=!1,avgMode:f=!1,totalFormat:v,series:g,loading:x=!1,onDetail:_,inGrid:b=!1}){const{t:A,i18n:w}=de.useTranslation(),D=F4[e],B=ll(r),k=m??B,N=s.useMemo(()=>I4(r,k,A,w.language),[r,k,A,w.language]),I=s.useMemo(()=>{if(!C)return N;const T=k.period==="month"?k.monthRange.match(/^(\d+)년 (\d+)월$/):null,K=qn();return N.map((W,V)=>{let U=W.a===-1?-1:W.b>0?Math.round(W.a/W.b*100):0;if(T&&W.a!==-1){const re=Number(T[1]),P=Number(T[2])-1,R=ul(r,new Date(re,P,Cn(re,P)+V*7),K).filter(M=>!M.isFuture);U=R.length?Math.round(R.reduce((M,{entry:L})=>M+(L&&L.b>0?L.a/L.b*100:0),0)/R.length):0}return{...W,a:U,b:W.a===-1?0:c&&W.parts&&W.parts[1]>0?Math.round(W.parts[0]/W.parts[1]*100):0,rawA:W.a===-1?-1:W.a,rawB:W.b}})},[N,C,c,k.period,k.monthRange,r]),O=s.useMemo(()=>{if(C||f){const T=(k.period==="week"?N:r[k.monthRange]?.daily??[]).filter(W=>W.a!==-1);if(T.length===0)return 0;const K=C?T.reduce((W,V)=>W+(V.b>0?V.a/V.b*100:0),0):T.reduce((W,V)=>W+(V.a>0?V.a:0),0);return Math.round(K/T.length)}return I.reduce((T,K)=>T+(K.a>0?K.a:0)+(c&&K.b>0?K.b:0),0)},[I,N,C,f,c,k.period,k.monthRange,r]),E=g&&g.length>0?g.map(T=>({color:T.color,label:T.label})):[{color:o,label:A(l)},...c?[{color:i,label:A(c)}]:[]],H=e==="small";return t.jsx(Fr,{className:H?"manager-section--compact":e==="large"?"manager-section--full":void 0,inGrid:b,title:A(a),titleClassName:H?"h5 chart-section-title--small":void 0,headRight:H?void 0:t.jsxs(t.Fragment,{children:[!h&&t.jsx(cl,{control:k}),_&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"list",ariaLabel:A("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:_})})]}),subRow:t.jsxs(t.Fragment,{children:[u?C||f||p&&v?t.jsx(Fa,{label:H?void 0:`${A(k.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${A(p??l)}`,children:v?(v(O).match(/(\d+|[^\d]+)/g)??[]).map((T,K)=>/\d/.test(T)?t.jsx("span",{className:"barchart-total__num h0",children:T},K):t.jsx("span",{className:"barchart-total__unit h5",children:T},K)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:O}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:A(d)})]})}):t.jsxs(Fa,{children:[t.jsx("span",{className:"barchart-total__num h0",children:O}),t.jsx("span",{className:"barchart-total__unit h5",children:A(l)}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:A(d)})]}):t.jsx("span",{}),t.jsx(Ir,{items:E,className:"caption-1"})]}),children:x?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ba,{size:32})}):t.jsx(P4,{data:I,colorA:o,colorB:c?i:void 0,labelA:A(l),labelB:c?A(c):void 0,barWidth:n??D.barWidth,height:D.height,maxOverride:C?100:void 0,tightMax:y,seriesColors:g?.map(T=>T.color),seriesLabels:g?.map(T=>T.label),rateLabels:C?{total:A("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:A("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}const dl=(e,n,a)=>{const r=new Date(Date.UTC(e,n,a));return`${r.getUTCFullYear()}-${String(r.getUTCMonth()+1).padStart(2,"0")}-${String(r.getUTCDate()).padStart(2,"0")}`},pl=(e,n,a,r)=>({from:Ls(e,n,a),to:new Date(Ls(e,n,a+r).getTime()-1),fromYmd:dl(e,n,a),toYmd:dl(e,n,a+r-1)});function H4(e,n=0){if(e.period==="month"){const o=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=qn(),l=o?Number(o[1]):i.getFullYear(),c=(o?Number(o[2]):i.getMonth()+1)-1+n,u=new Date(Date.UTC(l,c+1,0)).getUTCDate();return pl(l,c,1,u)}const a=e.weekRanges.find(o=>o.value===e.weekRange);if(!a){const o=new Date,i=Mn();return{from:o,to:o,fromYmd:i,toYmd:i}}const r=Cn(a.year,a.month-1);return pl(a.year,a.month-1,r+(a.week+n)*7,7)}const ml={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function hl(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function fl({done:e,total:n,segments:a,color:r="var(--color-main)",size:o="medium",strokeWidth:i,label:l="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof o=="number"?o:ml[o].diameter,p=i??(typeof o=="number"?12:ml[o].strokeWidth),m=d/2,h=(d-p)/2,C=2*Math.PI*h;if(a&&a.length>0){const g=a.reduce((x,_)=>{const b=x.length>0?x[x.length-1].acc:0,A=Number.isFinite(_.ratio)?_.ratio:0,w=Math.max(0,Math.min(A,1-b));return x.push({color:_.color,rotate:-90+b*360,dash:C*w,acc:b+w}),x},[]);return t.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),g.map((x,_)=>x.dash>0&&t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:x.color,strokeWidth:p,strokeDasharray:`${x.dash} ${C}`,strokeLinecap:"round",transform:`rotate(${x.rotate} ${m} ${m})`},_))]})})}const y=(n??0)>0?Math.min((e??0)/n,1):0,f=C*y,v=C-f;return t.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),y>0&&t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${f} ${v}`,strokeLinecap:y<.02||y>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!c&&t.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":o==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:hl(y)}),!u&&t.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||o==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function V4({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:o,legend:i,loading:l,className:c,inGrid:u=!1,...d}){const{t:p}=de.useTranslation();if(!e)return t.jsx(fl,{...d});const m=(d.total??0)>0?hl(Math.min((d.done??0)/d.total,1)):0,h=d.size==="small",C=d.size==="large",y=[c,h?"manager-section--compact":C?"manager-section--full":""].filter(Boolean).join(" ")||void 0,f=a&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(Ue,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(Fr,{className:y,inGrid:u,title:p(e),titleClassName:h?"h5 chart-section-title--small":void 0,headRight:f||(h?void 0:n),subRow:(r||i)&&t.jsxs(t.Fragment,{children:[r?t.jsxs(Fa,{label:!h&&o?p(o):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:m}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),i&&t.jsx(Ir,{items:i})]}),children:l?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ba,{size:32})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(fl,{...d,hideCenter:h||d.hideCenter})})})}function z4({label:e,value:n,change:a,changeType:r,icon:o,tooltip:i,onClick:l}){const c=s.useRef(null),{anchorRect:u,openAt:d,close:p}=Ma(),m=s.useCallback(()=>{i&&c.current&&d(c.current)},[i,d]),h=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),C=a===void 0?void 0:a>0?`+${a}`:`${a}`,y=s.useCallback(f=>{l&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),l())},[l]);return t.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?y:void 0,onPointerEnter:m,onPointerLeave:p,onFocus:m,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,n,C].filter(f=>f!==void 0&&f!=="").join(" "):void 0,children:[i&&u&&t.jsx(kn,{anchorRect:{left:u.left,top:u.top+21,right:u.right,bottom:u.bottom,width:u.width,height:u.height},text:i}),t.jsxs("div",{className:"manager-stat-card__label-row",children:[t.jsx("span",{className:"manager-stat-card__label h5",children:e}),o&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(Ue,{icon:o,className:"manager-stat-card__icon-inner"})})]}),t.jsx("div",{className:"manager-stat-card__content",children:t.jsxs("div",{className:"manager-stat-card__left",children:[t.jsx("div",{className:"manager-stat-card__value h2",children:n}),C&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${h??"neutral"} caption-1`,children:C})]})})]})}function Cl({value:e,onChange:n,min:a=0,max:r=100,step:o=1,orientation:i="horizontal",size:l=24,disabled:c=!1,ariaLabel:u,length:d,className:p,label:m,formatValue:h,labelPos:C,labelAlign:y="right",showMinMax:f=!1,minLabel:v,maxLabel:g,showBgTick:x=!1,showFillTick:_=!1,tickStep:b,tickShape:A="dot"}){n&&!u&&ta("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const w=Math.min(r,Math.max(a,e)),D=r>a?(w-a)/(r-a):0,B=i==="vertical",k=!n,N=L=>n?.(Number(L.target.value)),I=typeof d=="number"?`${d}px`:d,O={"--slider-ratio":String(D),"--slider-thumb":`${l}px`,...I?B?{height:I}:{width:I}:{}},E=b??o,H=(x||_)&&E>0&&r>a?Math.floor((r-a)/E+1e-6):0;if(H>0&&H<=100){const L=A!=="dash",z=ne=>L?`radial-gradient(circle, ${ne} 0.5px, transparent 1px)`:B?`linear-gradient(to bottom, transparent calc(50% - 2px), ${ne} calc(50% - 2px), ${ne} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${ne} calc(50% - 2px), ${ne} calc(50% + 2px), transparent calc(50% + 2px))`,$=L?"2px":"4px",j=[],F=[],se=[];for(let ne=0;ne<=H;ne++){const ee=ne*E/(r-a);if(ee>1+1e-6)break;const ie=`${((B?1-ee:ee)*100).toFixed(4)}%`,Ce=ee<=D+1e-6;if(Ce?!_:!x)continue;const Z=Ce?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";j.push(z(Z)),F.push(B?`${$} var(--slider-thumb)`:`var(--slider-thumb) ${$}`),se.push(B?`center ${ie}`:`${ie} center`)}j.push(B?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),F.push("100% 100%"),se.push("0 0"),O.backgroundImage=j.join(", "),O.backgroundSize=F.join(", "),O.backgroundPosition=se.join(", "),O.backgroundRepeat="no-repeat"}const T=h?h(w):m==="percent"?`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`:m==="count"?`${w} / ${r}`:w===a&&v?v:w===r&&g?g:void 0,K=t.jsx("input",{type:"range",className:ve("slider",`slider--${i}`,k&&"slider--static",!m&&!f&&p),min:a,max:r,step:o,value:w,disabled:c,readOnly:k,tabIndex:k?-1:void 0,"aria-label":u,"aria-valuetext":T,"aria-orientation":i,onChange:N,style:O});if(!m&&!f)return K;const W=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??a}),V=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:g??r}),U=f?t.jsxs("div",{className:ve("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[B?V:W,K,B?W:V]}):K;if(!m)return U;const re=C??(B?"bottom":"right"),P=`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`,R=h?h(w):m==="percent"?P:m==="count"?`${w} / ${r}`:String(w),M=t.jsx("span",{className:"slider-wrap__value body-3b",children:R});return t.jsxs("div",{className:ve("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${re}`,`slider-wrap--align-${y}`,p),children:[U,M]})}const W4=.86,q4=250,Or=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),Hr=(e,n,a,r)=>{const o=Or(e,n,a,r);return`${o<0?"-":"+"}${Math.abs(o)} dB`};function Vr({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:o,labelPos:i,labelAlign:l="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:p=25,className:m,ariaLabel:h}){const C=s.useRef(null),y=s.useRef(null),f=s.useRef(null),v=s.useRef(null),[g,x]=s.useState(null);s.useEffect(()=>{const w=K=>{const W=Hr(K,u,d,p);f.current&&(f.current.textContent=W);const V=C.current;V&&(V.setAttribute("aria-valuenow",String(Or(K,u,d,p))),V.setAttribute("aria-valuetext",W))},D=e??c0(n)??(g&&g.el===n?g.node:null),B=y.current;if(!D||!B){B?.style.setProperty("--meter-level","0"),w(c);let K=!1;return!e&&n&&Na(n).then(W=>{!K&&W&&x({el:n,node:W})}),()=>{K=!0}}Cr();const k=new Float32Array(D.fftSize);let N=0,I=0,O=0,E=0,H=null;const T=K=>{const W=u0(D,k);N=W>N?W:N*W4;const V=N>1e-5?20*Math.log10(N):-1/0,U=Math.max(c,V),re=U-u,P=Math.min(1,Math.max(0,(re-d)/(p-d)));if(B.style.setProperty("--meter-level",P.toFixed(3)),I+=U,O+=1,K-E>=q4){const R=I/O;H=H==null?R:H*.6+R*.4,w(H),I=0,O=0,E=K}v.current=requestAnimationFrame(T)};return v.current=requestAnimationFrame(T),()=>{v.current!=null&&cancelAnimationFrame(v.current),v.current=null}},[e,n,g,c,u,d,p]);const _=typeof r=="number"?`${r}px`:r,b=t.jsx("div",{className:"audio-meter__track",style:_?a==="vertical"?{height:_}:{width:_}:{},children:t.jsx("div",{ref:y,className:"audio-meter__fill"})}),A=i??(a==="vertical"?"bottom":"right");return t.jsxs("div",{ref:C,className:ve("audio-meter",`audio-meter--${a}`,o&&`audio-meter--label-${A}`,o&&`audio-meter--align-${l}`,m),role:"meter","aria-label":h,"aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":Or(c,u,d,p),"aria-valuetext":Hr(c,u,d,p),children:[b,o&&t.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:Hr(c,u,d,p)})]})}const gl=260;function bl({message:e,position:n,duration:a,onClose:r}){const[o,i]=s.useState(!1),[l,c]=s.useState(!1),u=s.useRef(l),d=s.useRef(o);s.useEffect(()=>{u.current=l},[l]),s.useEffect(()=>{d.current=o},[o]);const p=s.useRef(null),m=s.useRef(""),h=s.useRef(r);s.useEffect(()=>{h.current=r});const C=a,y=s.useRef(null),f=s.useRef(0),v=s.useRef(0),g=s.useRef(!1),x=s.useRef(null),_=s.useRef(null),b=s.useRef(null),A=s.useRef(null),w=s.useRef(()=>{});w.current=k=>{k<0||(f.current=Date.now(),v.current=k,y.current=setTimeout(()=>{y.current=null,i(!1),x.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},gl)},k))};const D=s.useCallback(()=>{g.current||!y.current||(g.current=!0,clearTimeout(y.current),y.current=null,v.current=Math.max(0,v.current-(Date.now()-f.current)))},[]),B=s.useCallback(()=>{g.current&&(g.current=!1,w.current(v.current))},[]);return s.useEffect(()=>{if(e!==m.current&&(y.current&&(clearTimeout(y.current),y.current=null),x.current&&(clearTimeout(x.current),x.current=null)),e){if(d.current)return C>0&&!y.current&&(g.current?v.current=C:w.current(C)),m.current=e,()=>{y.current&&(clearTimeout(y.current),y.current=null),x.current&&(clearTimeout(x.current),x.current=null)};const k=()=>{const N=p.current;if(N)try{N.classList.remove("is-visible"),N.style.transition="none",n==="top"?N.style.transform="translateX(-50%) translateY(-16px)":N.style.transform="translateX(-50%) translateY(16px)",N.style.opacity="0",N.offsetWidth,N.style.transition="",N.classList.add("is-visible"),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{A.current=null;try{N.style.opacity="",N.style.transform="",N.style.transition=""}catch{}},60)}catch{}};u.current?(k(),i(!0)):(c(!0),_.current=requestAnimationFrame(()=>{b.current=requestAnimationFrame(()=>{k(),i(!0)})})),C>0&&(g.current=!1,w.current(C))}else i(!1),x.current=setTimeout(()=>c(!1),gl);return m.current=e,()=>{y.current&&clearTimeout(y.current),x.current&&clearTimeout(x.current),_.current&&cancelAnimationFrame(_.current),b.current&&cancelAnimationFrame(b.current),A.current&&clearTimeout(A.current),y.current=null,x.current=null,_.current=null,b.current=null,A.current=null}},[e,C,n]),{mounted:l,showing:o,popupRef:p,pause:D,resume:B}}function Kn({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:o=2e3}){const{mounted:i,showing:l,popupRef:c,pause:u,resume:d}=bl({message:e,position:n,duration:o,onClose:r}),p=s.useRef(null);if(!i)return null;const m=a==="notice"||a==="warning"?a:"normal",h=t.jsx("div",{ref:c,className:`toast toast--${n} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:C=>{p.current=C.pointerType},onMouseEnter:()=>{p.current!=="touch"&&u()},onMouseLeave:d,onFocusCapture:u,onBlurCapture:d,children:t.jsx("div",{className:`toast__inner toast__inner--${m} body-2`,children:e})});return typeof document<"u"?Ut.createPortal(h,document.body):h}const U4=24;function G4({value:e,max:n=100,size:a=8,color:r,trackColor:o,label:i,formatValue:l,labelPos:c,labelAlign:u="right",ariaLabel:d,className:p}){const m=Number.isFinite(n)&&n>0?n:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),C=h/m*100,y=Number.isFinite(n)&&n>0?n:0,f=c??(a>=U4?"inside":"bottom"),v=f==="center"?"inside":f,g=v==="inside"&&(u==="left"?C>=15:u==="center"?C>=50:C>=85),x={};return r&&(x["--progress-bar-fill"]=r),o&&(x["--progress-bar-track"]=o),t.jsxs("div",{className:ve("progress-bar",`progress-bar--${a}`,`progress-bar--label-${v}`,i&&`progress-bar--align-${u}`,i&&g&&"progress-bar--label-on-fill",p),style:x,children:[t.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":y,"aria-valuetext":i?l?l(h):i==="percent"?void 0:i==="raw"?String(h):`${h} / ${y}`:void 0,"aria-label":d,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${C}%`}})}),i&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(h):i==="percent"?`${Math.round(C)}%`:i==="raw"?String(h):`${h} / ${y}`})]})}const K4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Y4="rgba(255, 255, 255, 0.16)";function yl({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:o,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=de.useTranslation(),d=on("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const p=Number.isInteger(n)?Math.max(0,Math.min(n,e-1)):0,m=c??u("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};return a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),o&&(a||(h["--pi-inactive-bg"]=Y4),r||(h["--pi-inactive-color"]="var(--color-white)")),i==="dot"?t.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:h,role:l?"status":"img","aria-label":l?void 0:m,children:[l&&t.jsx("span",{style:K4,children:m}),Array.from({length:e}).map((C,y)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${y<p?" done":y===p?" active":""}`},y))]}):d?t.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:h,role:"list","aria-label":m,children:t.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}):t.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":m,children:Array.from({length:e}).map((C,y)=>t.jsx("span",{role:"listitem","aria-current":y===p?"step":void 0,className:`progress-indicator-dot ${y<p?" done":y===p?" active":""} body-3`,children:y+1},y))})}function Z4(e){if(!e)return[];const n=[];let a=0,r="";for(const o of e.trim()){if(o==="("?a++:o===")"&&a--,/\s/.test(o)&&a===0){r&&(n.push(r),r="");continue}r+=o}return r&&n.push(r),n}function X4({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function zr({variant:e="default",children:n,className:a,draggable:r,onClick:o,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,expandedContent:d}){const p=s.useCallback(m=>{o&&m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),o())},[o]);return e==="loading"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--loading",children:t.jsx(ba,{size:28})})}):e==="empty"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--empty body-3",children:n})}):t.jsxs("div",{className:"table-row-wrap",children:[t.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:o,onKeyDown:o?p:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,role:o?"button":void 0,tabIndex:o?0:void 0,children:n}),d&&t.jsx("div",{className:"table-row-expand",children:d})]})}function J4({dir:e}){return t.jsx(e==="asc"?Uo:qo,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Q4({children:e,onClick:n,className:a,sortDir:r,onResizeStart:o}){const i=s.useCallback(l=>{n&&l.target===l.currentTarget&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),n())},[n]);return t.jsxs("div",{onClick:n,onKeyDown:n?i:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:ve("table-field body-3",a,r?"table-field--sorted":"",o?"table-field--resizable":""),children:[e,r&&t.jsx(J4,{dir:r}),o&&t.jsx("span",{className:"table-field__resizer",onPointerDown:o,onClick:l=>l.stopPropagation(),"aria-hidden":"true"})]})}function Wr({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:o,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:c,onRowDragStart:u,onRowDragEnd:d,draggingId:p,gridTemplateColumns:m,mobileGridTemplateColumns:h,resizable:C=!1,resizeMode:y="grow",resizeStorageKey:f,size:v="small",title:g,icon:x,count:_,collapsed:b=!1,onToggleCollapse:A,headerActions:w,empty:D,loading:B,dragOver:k=!1,onDragOver:N,onDragLeave:I,onDrop:O,renderExpandedRow:E,expandedId:H}){const{t:T}=de.useTranslation(),K=on("(max-width: 767px)"),W=h&&K?h:null,V=C&&!W,U=48,re=f?`table-cols:${f}`:null,P=s.useRef(null),R=s.useRef(()=>!1),M=s.useRef([]),L=s.useRef(null),z=Q=>{if(!Q||typeof window>"u")return null;try{const te=JSON.parse(window.localStorage.getItem(Q)??"null");return Array.isArray(te)&&te.length>0&&te.every(ke=>typeof ke=="number"&&Number.isFinite(ke)&&ke>0)?te:null}catch{return null}},[$,j]=s.useState(()=>z(re)),[F,se]=s.useState(re);F!==re&&(se(re),j(z(re)));const ne=s.useRef($);s.useEffect(()=>{ne.current=$},[$]);const ee=s.useCallback(Q=>{const te=L.current;if(!te)return;const ke=ne.current;if(ke){const Te=[...ke];if(te.next!=null&&te.startWNext!=null){const ze=Q.clientX-te.startX,Le=Math.max(U-te.startW,Math.min(te.startWNext-U,ze));Te[te.index]=te.startW+Le,Te[te.next]=te.startWNext-Le}else Te[te.index]=Math.max(U,te.startW+(Q.clientX-te.startX));ne.current=Te,j(Te)}},[]),ie=s.useCallback(()=>{if(L.current=null,window.removeEventListener("pointermove",ee),window.removeEventListener("pointerup",ie),window.removeEventListener("pointercancel",ie),document.body.style.cursor="",document.body.style.userSelect="",re&&ne.current)try{window.localStorage.setItem(re,JSON.stringify(ne.current))}catch{}},[ee,re]),Ce=s.useCallback((Q,te)=>{te.preventDefault(),te.stopPropagation();const ke=P.current;if(!ke)return;const Te=Array.from(ke.children).map(Le=>Le.getBoundingClientRect().width),ze=y==="fit"?e.findIndex((Le,We)=>We>Q&&Le.resizable!==!1):-1;L.current=ze>=0?{index:Q,startX:te.clientX,startW:Te[Q],next:ze,startWNext:Te[ze]}:{index:Q,startX:te.clientX,startW:Te[Q]},ne.current=Te,j(Te),window.addEventListener("pointermove",ee),window.addEventListener("pointerup",ie),window.addEventListener("pointercancel",ie),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[ee,ie,y,e]),Z=s.useCallback(()=>{const Q=P.current,te=Q?.closest(".table-wrap");if(!Q||!te)return;const ke=te.style.getPropertyValue("--table-grid-cols");te.style.setProperty("--table-grid-cols",e.map((ye,Oe)=>R.current(Oe)?M.current[Oe]:"max-content").join(" "));const Te=Array.from(te.querySelectorAll(".table-row")).filter(ye=>!ye.classList.contains("table-row--loading")&&!ye.classList.contains("table-row--empty")),ze=e.map((ye,Oe)=>{let Ee=Q.children[Oe]?.getBoundingClientRect().width??0;for(const qe of Te){const Ye=qe.children[Oe];Ye&&(Ee=Math.max(Ee,Ye.getBoundingClientRect().width))}const Pe=R.current(Oe)?parseFloat(M.current[Oe]):NaN;return Number.isFinite(Pe)?Pe:Math.max(U,Math.ceil(Ee))}),Le=window.getComputedStyle(Q),We=Q.clientWidth-(parseFloat(Le.paddingLeft)||0)-(parseFloat(Le.paddingRight)||0);ke?te.style.setProperty("--table-grid-cols",ke):te.style.removeProperty("--table-grid-cols");let Re=ze;const et=ze.reduce((ye,Oe,Ee)=>ye+(R.current(Ee)?Oe:0),0),Ke=ze.reduce((ye,Oe,Ee)=>ye+(R.current(Ee)?0:Oe),0),Ge=We-et;if(We>0&&Ke>0&&Ge>0){const ye=Ge/Ke;Re=ze.map((Ee,Pe)=>R.current(Pe)?Ee:Math.max(U,Math.round(Ee*ye)));const Oe=Math.round(Ge-Re.reduce((Ee,Pe,qe)=>Ee+(R.current(qe)?0:Pe),0));if(Oe!==0){let Ee=-1;Re.forEach((Pe,qe)=>{!R.current(qe)&&(Ee<0||Pe>Re[Ee])&&(Ee=qe)}),Ee>=0&&(Re[Ee]=Math.max(U,Re[Ee]+Oe))}}if(j(Re),re)try{window.localStorage.setItem(re,JSON.stringify(Re))}catch{}},[e,y,re]);s.useEffect(()=>()=>{L.current&&(window.removeEventListener("pointermove",ee),window.removeEventListener("pointerup",ie),window.removeEventListener("pointercancel",ie),document.body.style.cursor="",document.body.style.userSelect="")},[ee,ie]);const oe=Z4(m),X=oe.filter(Q=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(Q));X.length>0&&ta(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${X.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${m})`);const ge=Q=>/^\d+(\.\d+)?px$/.test(oe[Q]??"");R.current=ge,M.current=oe;const _e=Q=>y==="fit"&&!ge(Q)?"fr":"px",Se=$&&$.length===e.length&&(y==="fit"||a.length>0),ue=W??(Se?e.map((Q,te)=>Q.resizable===!1&&oe[te]?oe[te]:`${$[te]}${_e(te)}`).join(" "):m),be=ue?{"--table-grid-cols":ue}:void 0,Ae=g!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${v}${V?" table-wrap--resizable":""}${k?" table-wrap--dragover":""}${b?" table-wrap--collapsed":""}`,style:be,onDragOver:N,onDragLeave:I,onDrop:O,children:t.jsxs("div",{className:"table body-2",children:[Ae&&t.jsxs("div",{className:"table-header",onClick:A,role:A?"button":void 0,tabIndex:A?0:void 0,"aria-expanded":A?!b:void 0,onKeyDown:A?Q=>{Q.target===Q.currentTarget&&(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),A())}:void 0,children:[A&&t.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:b?"chevron-right":"chevron-down",ariaLabel:b?T("common.expand","\uD3BC\uCE58\uAE30"):T("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),x&&t.jsx(Ue,{icon:x,label:typeof g=="string"?g:void 0,className:"table-header__icon"}),t.jsx("span",{className:"table-header__title h5b",children:g}),_!==void 0&&t.jsx("span",{className:"table-header__count body-3b",children:_}),w&&t.jsx("span",{className:"table-header__actions",onClick:Q=>Q.stopPropagation(),children:w})]}),!b&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{className:"table-fields table-fields--groups",children:n.map((Q,te)=>t.jsx("div",{className:ve("table-field body-3",Q.className),style:{gridColumn:`span ${Q.span}`},children:Q.label},te))}),t.jsxs("div",{className:ve("table-fields-strip",V&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:P,children:e.map((Q,te)=>t.jsx(Q4,{onClick:Q.onClick,className:Q.className,sortDir:Q.sortDir,onResizeStart:V&&te<e.length-1&&Q.resizable!==!1&&(y!=="fit"||e.some((ke,Te)=>Te>te&&ke.resizable!==!1))?ke=>Ce(te,ke):void 0,children:Q.label},te))}),V&&t.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:T("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:T("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:Z})]}),t.jsx("div",{className:"table-body",children:B?t.jsx(zr,{variant:"loading"}):a.length===0&&D?t.jsx(zr,{variant:"empty",children:D}):a.map((Q,te)=>{const ke=p!=null&&Q.id===p,Te=!!o&&(i?i(Q):!0),ze=H!=null&&(H instanceof Set?H.has(Q.id):Q.id===H);return t.jsx(zr,{className:`${Te?" table-row--clickable":""}${u?" table-row--draggable":""}${ke?" table-row--dragging":""}`.trim(),draggable:!!u,onClick:Te?()=>o(Q):void 0,onMouseEnter:l?Le=>l(Q,Le):void 0,onMouseLeave:c?Le=>c(Q,Le):void 0,onDragStart:u?Le=>u(Q,Le):void 0,onDragEnd:d?Le=>d(Q,Le):void 0,expandedContent:ze&&E?E(Q):void 0,children:r(Q).map((Le,We)=>t.jsx(X4,{className:Le.className,style:Le.style,children:Le.content},We))},Q.id!=null?`${typeof Q.id}:${Q.id}`:`__idx:${te}`)})})]})]})})}function vl(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const eb={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function tb(e,n){const a=eb[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}function xl(e,n){return n!=="wornAt"?String(e[n]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function nb({rows:e,onSelect:n,onDelete:a,onWear:r,onRelease:o,onAdd:i}){const{t:l}=de.useTranslation(),c=y=>y==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=h2(),p=s.useMemo(()=>{if(!u)return e;const{key:y,asc:f}=u;return[...e].sort((v,g)=>{const x=y==="worn"?Number(g.worn)-Number(v.worn):xl(v,y).localeCompare(xl(g,y),"ko");return f?x:-x})},[e,u]),{pageRows:m,pageSizeProps:h,paginationProps:C}=m2(p,u);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(Pr,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:h,pagination:C,actions:i&&t.jsx(le,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),t.jsx(Wr,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...d(l("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},d(l("device.direction.label","\uBC29\uD5A5"),"side"),d(l("device.deviceType","\uC885\uB958"),"device"),d(l("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),d(l("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),d(l("device.productName","\uC81C\uD488\uBA85"),"productName"),d(l("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:m.map((y,f)=>({id:y.id??`${y.side}-${f}`,row:y})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:y})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:f=>f.stopPropagation(),children:t.jsx(rl,{checked:y.worn,disabled:y.worn?!o:!r,ariaLabel:y.worn?l("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):l("customers.device.wear","\uCC29\uC6A9"),onChange:f=>{f?r?.(y):o?.(y)}})})},{content:t.jsx("span",{children:c(y.side)})},{content:y.device?t.jsx(lt,{size:"small",variant:vl(y.device),fill:"soft",label:tb(y.device,l)}):t.jsx("span",{})},{content:t.jsx("span",{children:y.brand})},{content:t.jsx("span",{children:y.fitType||"-"})},{content:t.jsx("span",{children:y.productName||"-"})},{content:t.jsx("span",{className:"dlp-date",children:y.wornYear?`${y.wornYear}.${y.wornMonth}.${y.wornDay}`:"-"})},...a?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(le,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:l("common.delete","\uC0AD\uC81C"),onClick:f=>{f?.stopPropagation(),a(y)}})})}]:[]],onRowClick:({row:y})=>n(y),empty:l("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function _l(e,n){return e?{role:n?.role??"button",tabIndex:0,...n?.selected===void 0?{}:{"aria-selected":n.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function ab(e,n){return new Date(e,n+1,0).getDate()}function rb(e,n){return new Date(e,n,1).getDay()}function ob({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r}){const{t:o}=de.useTranslation(),i=s.useMemo(()=>o("calendar.dow",{returnObjects:!0}),[o]),l=Mn(),[c,u]=s.useState(()=>Number(l.slice(0,4))),[d,p]=s.useState(()=>Number(l.slice(5,7))-1),[m,h]=s.useState(null),C=s.useRef(null),y=s.useMemo(()=>{const b={};return e.forEach(A=>{b[A.date]||(b[A.date]=[]),b[A.date].push(A)}),b},[e]),f=s.useMemo(()=>{const b=ab(c,d),A=rb(c,d),w=[];for(let D=0;D<A;D++)w.push(null);for(let D=1;D<=b;D++)w.push(D);for(;w.length<35;)w.push(null);return w},[c,d]),v=s.useCallback(()=>{d===0?(u(b=>b-1),p(11)):p(b=>b-1)},[d]),g=s.useCallback(()=>{d===11?(u(b=>b+1),p(0)):p(b=>b+1)},[d]),x=b=>`${c}-${String(d+1).padStart(2,"0")}-${String(b).padStart(2,"0")}`,_=b=>x(b)===l;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:v,"aria-label":o("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Ue,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:o("calendar.yearMonth",{year:c,month:d+1})}),t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:g,"aria-label":o("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(Ue,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsxs("div",{className:"calendar-nav__legend",children:[t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.visited","\uBC29\uBB38")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.scheduled","\uC608\uC57D")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[i.map(b=>t.jsx("div",{className:"calendar-day-header body-3",children:b},b)),f.map((b,A)=>{if(b===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${A}`);const w=b,D=x(w),B=y[D]??[],k=m===D;return t.jsxs("div",{className:`calendar-cell${_(w)?" today":""}${k?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?o("calendar.addOnDate",{date:D}):void 0,"aria-current":_(w)?"date":void 0,onClick:r?()=>r(D):void 0,onKeyDown:r?N=>{N.target===N.currentTarget&&(N.key!=="Enter"&&N.key!==" "||(N.preventDefault(),r(D)))}:void 0,onDragOver:a?N=>{N.preventDefault(),h(D)}:void 0,onDragLeave:a?N=>{N.currentTarget.contains(N.relatedTarget)||h(null)}:void 0,onDrop:a?N=>{N.preventDefault(),C.current!=null&&(a(C.current,D),C.current=null),h(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:w}),t.jsx("div",{className:"calendar-cell__badges",children:B.map((N,I)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${N.status==="noVisit"?" calendar-visit-badge--no-visit":N.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?O=>{C.current=N.id,O.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{C.current=null,h(null)}:void 0,onClick:n?O=>{O.stopPropagation(),n(N)}:void 0,..._l(n?()=>n(N):void 0),"aria-label":[N.time?Ps(N.time,o):null,N.customer,o(N.status==="noVisit"?"calendar.legend.noVisit":N.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[N.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:Ps(N.time,o)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:N.customer}),N.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},N.id??I))})]},w)})]})]})}const sb={page:"h3",pagePopup:"h4",popup:"h5"};function Yn({type:e="page",title:n,headingLevel:a,icon:r,action:o,disc:i,children:l,className:c,style:u}){const d=sb[e],p=n||i||o||r,m=a?`h${a}`:"div";return t.jsxs("div",{className:ve("section",`section--${e}`,c),style:u,children:[p&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[r&&t.jsx(Ue,{icon:r,label:typeof n=="string"?n:void 0,className:"section__icon"}),t.jsxs("div",{className:"section__title-group",children:[n&&t.jsx(m,{className:`section__title ${d}`,children:n}),i&&t.jsx("div",{className:"section__disc body-3",children:i})]})]}),o&&t.jsx("div",{className:"section__action",children:o})]}),l]})}function wl({icon:e,label:n,tooltip:a,wrapperStyle:r,color:o,bgColor:i,useHover:l=!0,iconSize:c="medium"}){const u=c==="small",d=ve("category-icon",u?"category-icon--small":""),p=u?16:20,m=s.useRef(null),[h,C]=s.useState(!1),y=s.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!o&&!i?w:{...w,...o?{color:o,"--t-item-fg":o}:{},...i?{"--t-item-bg":i}:{}}},[r,o,i]),f=a||n,[v,g]=s.useState(null);s.useLayoutEffect(()=>{h&&g(m.current?.getBoundingClientRect()??null)},[h]),s.useEffect(()=>{if(!l&&h)try{C(!1)}catch{}},[l,h]),s.useEffect(()=>{if(!h)return;const w=D=>{const B=m.current;if(!B)return;const k=D.target;k&&!B.contains(k)&&C(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[h]);const x=s.useCallback(()=>{l&&C(!0)},[l]),_=s.useCallback(()=>{l&&C(!1)},[l]),b=s.useCallback(()=>C(!1),[]),A=s.useCallback(w=>{if(w.key==="Escape"){C(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),C(D=>!D))},[]);return t.jsxs("span",{ref:m,className:"category-icon__wrap",onPointerEnter:x,onPointerLeave:_,onFocus:x,onBlur:_,onKeyDown:A,role:"button",tabIndex:0,"aria-label":typeof f=="string"?f:void 0,"aria-haspopup":!!f,"aria-expanded":h,"data-tooltip-ignore":!0,children:[t.jsx(Ue,{icon:e,label:n,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:y,size:p}),h&&f&&t.jsx(kn,{anchorRect:v,text:typeof f=="string"?f:void 0,offset:8,onClose:b,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}let An=null;function qr(e){if(An&&An!==e)try{An()}catch{}return An=e,()=>{An===e&&(An=null)}}function Oa(e){if(An===e){An=null;try{e()}catch{}}}function ib(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const o=a.sentences||a.items||[],i=r(Array.isArray(o)?o:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function lb(e,n){const[a,r]=s.useState(!1),[o,i]=s.useState(-1),[l,c]=s.useState({key:"",urls:[]}),u=s.useRef(null),d=s.useRef(!1),p=s.useRef(null),m=s.useRef(null),[h,C]=s.useState(!1),y=s.useRef([]),{previewCodes:f,previewBucket:v}=ib(e,n),g=`${f.join(",")}|${v??""}`,x=s.useMemo(()=>l.key===g?l.urls:[],[l,g]);s.useEffect(()=>{if(!f.length)return;let b=!1;return(async()=>{const A=[],w=[];for(const D of f)try{const B=gs(D,v);if(!B){A.push("");continue}let k=null;try{k=await bs(B)}catch{}if(!k)try{const N=await ys(B);N&&(k=URL.createObjectURL(N),w.push(k))}catch{}A.push(k??"")}catch{A.push("")}b?w.forEach(D=>{try{URL.revokeObjectURL(D)}catch{}}):(y.current.forEach(D=>{try{URL.revokeObjectURL(D)}catch{}}),y.current=w,c({key:g,urls:A}))})(),()=>{b=!0}},[f.join(","),v]),s.useEffect(()=>()=>{y.current.forEach(b=>{try{URL.revokeObjectURL(b)}catch{}}),y.current=[]},[]);const _=s.useCallback(async b=>{if(b.stopPropagation(),b.preventDefault(),d.current){p.current&&Oa(p.current),d.current=!1;try{u.current?.pause()}catch{}r(!1),i(-1);return}if(!x.filter(Boolean).length)return;let A=null;const w=()=>{d.current=!1;try{u.current?.pause()}catch{}A?.()};p.current=w;const D=qr(w);d.current=!0,r(!0);for(let B=0;B<x.length&&d.current;B++){const k=x[B];if(k){i(B);try{await new Promise((N,I)=>{A=N;const O=new Audio(k);u.current=O,O.onended=()=>N(),O.onerror=()=>I(),O.play().catch(I)})}catch{break}}}D(),p.current===w&&(p.current=null,d.current=!1,r(!1),i(-1))},[x]);return s.useEffect(()=>()=>{p.current&&Oa(p.current),d.current=!1;try{u.current?.pause()}catch{}u.current=null},[]),{playing:a,playingIndex:o,previewUrls:x,previewHover:h,setPreviewHover:C,previewBtnRef:m,handlePreview:_}}const cb=e=>{if(!e)return[];const n=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(n)return[String(n)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const o=r;return o.sentence||o.text||o.context||o.question||o.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function Ur(e){const{index:n,type:a,trainingData:r,ariaLabel:o,depth:i,renderPopup:l,completed:c,completedIds:u,selectedIds:d,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:h,hideCheckBadge:C=!1,showTypeLabel:y=!1,onComplete:f,onSelect:v,onMore:g,countLabelOverride:x,size:_="square"}=e||{},{t:b}=de.useTranslation(),[A,w]=s.useState(!1),D=s.useRef(null),[B,k]=s.useState(!1);s.useEffect(()=>{D.current?.matches(":hover")&&k(!0)},[]);const{playing:N,playingIndex:I,previewUrls:O,previewHover:E,setPreviewHover:H,previewBtnRef:T,handlePreview:K}=lb(r,a?.key),W=s.useCallback(()=>{v?v():w(!0)},[v]),V=s.useCallback(()=>w(!1),[]),U=s.useCallback(()=>k(!0),[]),re=s.useCallback(()=>k(!1),[]),P=s.useCallback(()=>H(!0),[H]),R=s.useCallback(()=>H(!1),[H]),[M,L]=s.useState(null);s.useLayoutEffect(()=>{E&&L(T.current?.getBoundingClientRect()??null)},[E,T]);const[z,$]=s.useState(null);s.useLayoutEffect(()=>{B&&!A&&m&&$(D.current?.getBoundingClientRect()??null)},[B,A,m]);const j=s.useCallback(ye=>{ye.target===ye.currentTarget&&(ye.key==="Enter"||ye.key===" ")&&(ye.preventDefault(),W())},[W]),F=r||null,se=s.useMemo(()=>{if(!m)return null;const ye=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Oe=ye&&ye.length>0?ye:cb(F);return Oe&&Oe.length>0?Oe:null},[m,p,F]),ne=s.useCallback(ye=>{ye.stopPropagation(),h?.()},[h]),ee=s.useCallback(ye=>ye.stopPropagation(),[]),ie=s.useCallback(ye=>{typeof f=="function"&&f(ye)},[f]),Ce=c||(u&&r?.id!=null?u.has(String(r.id)):!1),Z=!Ce&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);xi("speechear.popup.close",V);const oe=Is(),X=`${a?.label||""} ${n+1}`,ge=F?.title||F?.name||X;let _e=a?.icon,Se,ue="",be="";try{const ye=F?.category_0||F?.category_main_code||F?.category_main,Oe=F?.category_1||F?.category_sub_code||F?.category_sub,Ee=oe.find(Pe=>Pe.key===ye);Ee?.icon&&(_e=Ee.icon),!Se&&Ee?.color&&(Se={"--t-item-fg":Ee.color}),!Se&&F?.iconColor&&(Se={"--t-item-fg":F.iconColor}),ue=Ee?b(`topic.${Ee.key}`,{defaultValue:Ee.label||""}):"";try{const Pe=Ee?.subs?.find(qe=>qe.key===Oe);be=Pe?b(`topic.sub.${Pe.key}`,{defaultValue:Pe.label||""}):""}catch{}}catch{}const Ae=be?`${ue} / ${be}`:ue||a?.label||ge,Q=ye=>b("training.countQuestions",{n:ye}),te=ye=>b("training.countSentences",{n:ye});let ke="";try{if(F)if(a?.key==="LISTEN_IN_NOISE"){let ye=0;Array.isArray(F.items)&&F.items.length>0?ye=F.items.length:Array.isArray(F.sentences)&&F.sentences.length>0?ye=F.sentences.length:F.sentences&&(ye=1),ke=te(ye)}else if(a?.key==="SHORT_STORY"){let ye=1;Array.isArray(r?.items)?ye=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?ye=r.raw.items.length:Array.isArray(F?.questions)?ye=F.questions.length:Array.isArray(F?.sentences)&&(ye=F.sentences.length),ke=Q(ye)}else if(a?.key==="LONG_STORY"){let ye=1;if(Array.isArray(F.items)&&F.items.length>0){const Oe=F.items.reduce((Ee,Pe)=>{const qe=Pe.questionItems;return Array.isArray(qe)?Ee+qe.length:Array.isArray(Pe.questions)?Ee+Pe.questions.length:Ee},0);ye=Oe>0?Oe:F.items.length}else Array.isArray(F.questions)&&F.questions.length>0?ye=F.questions.length:Array.isArray(F.sentences)&&F.sentences.length>0&&(ye=F.sentences.length);ke=Q(ye)}else if(a?.key==="ORDERING_SENTENCE"){let ye=1;Array.isArray(F.items)&&F.items.length>0?ye=F.items.length:Array.isArray(F.sentences)&&F.sentences.length>0&&(ye=F.sentences.length),ke=te(ye)}else Array.isArray(F.items)&&(ke=F.items.length>0?Q(F.items.length):"")}catch{}const Te=_==="row",ze=_==="list"||Te,Le=_==="compact",We=_==="small",Re=We&&a?.key?z0().find(ye=>ye.key===a.key):void 0,et=Re?Fs[Re.key]:void 0,Ke=Re?et?b(`trainingType.${et}.title`,{defaultValue:Re.label}):Re.label??"":"",Ge=!!y&&!!a?.label&&a.label!==String(ge)||We&&!!Ke&&Ke!==String(ge);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:D,className:`training-block-button${ze?" training-block-button--list":""}${Te?" training-block-button--row":""}${Le?" training-block-button--compact":""}${We?" training-block-button--small":""}${Ce?" training-block-button--completed":""}${Z?" training-block-button--selected":""}${Ge&&!We?" training-block-button--withType":""}${We&&!Ge?" training-block-button--no-type-label":""}`,onClick:W,onPointerEnter:U,onPointerLeave:re,role:"button",tabIndex:0,onKeyDown:j,"aria-label":typeof o=="string"?o:typeof ge=="string"?ge:void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[y&&a?.label&&a.label!==String(ge)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),We&&Ke&&Ke!==String(ge)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:Ke}),t.jsx(wl,{icon:_e,label:ge,tooltip:Ae,wrapperStyle:Se,iconSize:We||Le?"small":"medium"}),!C&&(Ce||Z)&&!(h&&B)&&t.jsx(lt,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":Ce?b("training.completed","\uD6C8\uB828 \uC644\uB8CC"):b("training.selected","\uC120\uD0DD\uB428")}),h&&B&&t.jsx(lt,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":b("common.remove","\uC81C\uAC70"),onClick:ne}),t.jsx("div",{className:`training-block-button__title ${Le?"body-3":We?"body-3b":"h3"}`,children:String(ge)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const ye=x!==void 0?x:ke;return ye?t.jsx("div",{className:`training-block-button__count ${We?"caption-2":"caption-1"}`,children:ye}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(Ue,{icon:"chevron-right",label:b("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:We?12:20})})]}),(ze&&!Te||We)&&O.length>0&&t.jsx("div",{ref:T,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ee,onPointerEnter:P,onPointerLeave:R,children:t.jsx(le,{htmlType:"button",size:We?28:32,type:"dot",icon:N?"pause":"play",variant:We?"transparent-lightGray":"default",useBorder:!1,selected:N,ariaLabel:N?b("training.stop","\uC815\uC9C0"):b("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:K})})]}),g&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:ye=>{ye.stopPropagation(),g(ye)},children:t.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:b("common.more","\uB354\uBCF4\uAE30")})})]}),E&&t.jsx(kn,{anchorRect:M,text:N?b("training.stop","\uC815\uC9C0"):b("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:R}),B&&!A&&m&&(se?t.jsx(Rn,{anchorRect:z,items:se,activeIndex:I,onClose:re}):F?.subTitle?t.jsx(kn,{anchorRect:z,text:F.subTitle,offset:8,onClose:re}):null),A&&l&&l({trainingData:F,typeKey:a?.key??"",onClose:V,onComplete:ie,popupTitle:String(ge),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:_e,popupIconTooltip:String(Ae),popupWrapperStyle:Se})]})}let Gr=null,kl=!1;function Al(){if(kl||typeof document>"u")return;kl=!0,document.addEventListener("keydown",n=>{n.metaKey||n.ctrlKey||n.altKey||(Gr="keyboard")},!0);const e=()=>{Gr="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}Al();function Ha(){return Al(),Gr==="keyboard"}const Va=20;function ub(e){const{t:n}=de.useTranslation(),{type:a,trainingDatas:r,depth:o,renderPopup:i,completedIds:l,selectedIds:c,onItemComplete:u,size:d,useDescriptionTooltip:p,onRemove:m,onMore:h,sectionType:C="page"}=e||{},[,y]=s.useState(0),f=typeof r<"u"?Array.isArray(r)?r:[]:[],v=f.length,[g,x]=s.useState(Math.min(v,Va)),_=s.useMemo(()=>Array.isArray(o)?[...o,a?.label].filter(Boolean).join(" \xB7 "):[o||"",a?.label].filter(Boolean).join(" \xB7 "),[o,a?.label]);s.useEffect(()=>{x(Math.min(v,Va))},[v]),xi("speechear.data.updated",()=>y(D=>D+1));const b=s.useRef(null),A=s.useRef(null);function w(){const D=document.activeElement;A.current=Ha()&&D&&D.closest?.(".training-block__more")?g:null,x(B=>Math.min(v,B+Va))}return s.useEffect(()=>{const D=A.current;if(D==null)return;A.current=null;const B=document.activeElement;B&&B!==document.body||b.current?.querySelectorAll(".training-block-button")[D]?.focus()},[g]),t.jsxs(Yn,{type:C,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",ref:b,children:(f||[]).slice(0,g).map((D,B)=>{const k=D;return t.jsx(Ur,{index:B,type:a,trainingData:k,depth:_,renderPopup:i,completedIds:l,selectedIds:c,size:d,useDescriptionTooltip:p,onRemove:typeof m=="function"&&c!=null&&k?.id!=null&&c.has(String(k.id))?()=>m(k):void 0,onComplete:typeof u=="function"&&k?.id!=null?()=>u(String(k.id)):void 0,onMore:typeof h=="function"?N=>h(k,N):void 0},k?.id!=null?`${a?.key||"t"}-${String(k.id)}`:`${a?.key||"t"}-${B}`)})}),v>Va&&g<v&&t.jsx("div",{className:"training-block__more",children:t.jsx(le,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:w,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function Kr(e){const n=s.useRef(null),[a,r]=s.useState(!!e),[o,i]=s.useState(!1);s.useEffect(()=>{i(!1);const u=n.current;r(!!e&&!(u?.complete&&u.naturalWidth>0))},[e]);const l=s.useCallback(()=>r(!1),[]),c=s.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:n,loading:a,failed:o,hasImage:!!e&&!o,onLoad:l,onError:c}}var db='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2256_7437)">%0A<g opacity="0.1">%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23111111"/>%0A</g>%0A<path d="M57.1426 17.8571H35.7141C25.8533 17.8571 17.8569 25.8536 17.8569 35.7143V44.0643L10.9926 51.6179C10.5819 52.0679 10.6283 52.775 11.0998 53.1643C13.1783 54.8929 15.4641 56.2214 17.8569 57.1679C17.8676 63.925 21.6283 69.8 27.1712 72.825C25.7855 70.2893 24.9998 67.3786 24.9998 64.2821V35.7107C24.9998 29.7929 29.7962 24.9964 35.7141 24.9964H64.2855C67.3783 24.9964 70.2891 25.7857 72.8283 27.1679C69.7998 21.6179 63.9105 17.8536 57.1426 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M72.8285 27.1714C74.2142 29.7072 75 32.6179 75 35.7143V64.2857C75 70.2036 70.2035 75 64.2857 75H35.7142C32.6214 75 29.7107 74.2107 27.1714 72.8286C30.2 78.3786 36.0892 82.1429 42.8571 82.1429H58.9678C59.9321 82.1429 60.7142 82.925 60.7142 83.8893C60.7142 84.9107 61.5892 85.7215 62.6071 85.6322C73.5535 84.675 82.1428 75.4822 82.1428 64.2857V42.8572C82.1428 36.0893 78.3785 30.2 72.8285 27.1714Z" fill="%23111111"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="%23111111"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2323 35.6679 46.2859 35.8464 45.4073 36.2679C44.518 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2037 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2256_7437">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const pb=db,Yr=s.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:o=!1,onSelect:i,flipDelay:l=0,hideLabel:c=!1,hideAudio:u=!1,orderRank:d=null},p){const{t:m}=de.useTranslation(),h=e.word||e.title||"",C=n||!h,y=e.audio??e.sound??e.audioKey,f=e.subLabel||e.pronunciation||"",v=e.colloquialLabel||"",[g,x]=s.useState({label:h,subLabel:f,colloquialLabel:v,homonum:e.homonum});h&&(g.label!==h||g.subLabel!==f||g.colloquialLabel!==v||!Object.is(g.homonum,e.homonum))&&x({label:h,subLabel:f,colloquialLabel:v,homonum:e.homonum});const _=s.useRef(null),b=on("(max-width: 767px)"),[A,w]=s.useState(!1),D=`${typeof y=="string"?y:y?.src??""}\0${h}`,[B,k]=s.useState({for:"",url:""}),N=B.for===D?B.url:"",I=Wn()?.(g.label,g.homonum)??e.image??"",{imgRef:O,loading:E,hasImage:H,onLoad:T,onError:K}=Kr(I);s.useEffect(()=>{let z=!1;return(async()=>{if(y){if(typeof y=="string"){if(y.startsWith("http")||y.includes("/")){k({for:D,url:y});return}}else if(typeof y=="object"&&!Array.isArray(y)){const j=y.src;if(j){k({for:D,url:j});return}}}const $=mr();if($&&h)try{const j=await Promise.resolve($(h));!z&&j&&k({for:D,url:j})}catch{}})(),()=>{z=!0}},[y,h,D]);const W=s.useRef(!0),V=s.useRef(null);s.useEffect(()=>(W.current=!0,()=>{W.current=!1,V.current&&Oa(V.current),V.current=null;try{_.current?.pause()}catch{}_.current=null}),[]);const U=s.useCallback(()=>new Promise(z=>{if(typeof window<"u"&&window.speechSynthesis&&h){w(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(h);$.lang="ko-KR",$.onend=()=>{w(!1);try{a?.()}catch{}z()},$.onerror=()=>{w(!1),z()},window.speechSynthesis.speak($)}else z()}),[h,a]),re=s.useCallback(z=>new Promise($=>{let j=!1;const F=()=>{j||(j=!0,w(!1),$(!1))};try{const se=new Audio(z);_.current=se,se.onended=()=>{if(!j){j=!0,w(!1);try{a?.()}catch{}$(!0)}},se.onerror=F,se.play().catch(F)}catch{F()}}),[a]),P=s.useCallback(async()=>{if(n||!W.current)return;const z=()=>{V.current===z&&(V.current=null);try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1)},$=qr(z);V.current=z;try{window.speechSynthesis?.cancel()}catch{}try{if(N&&(w(!0),await re(N)))return;const j=o0();if(j&&h)try{const F=await Promise.resolve(j(h));if(!W.current||V.current!==z||F&&(w(!0),await re(F)))return}catch{}if(!W.current||V.current!==z)return;await U()}finally{$(),V.current===z&&(V.current=null)}},[n,N,h,re,U]);s.useImperativeHandle(p,()=>({play:()=>P()}),[P]);const R=z=>z.stopPropagation(),M=s.useCallback(z=>{if(z.stopPropagation(),!n){if(A){try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1);return}P()}},[n,A,P]),L=ve("training-word-card",n?"training-word-card--disabled":"",C?"training-word-card--flipped":"",r?"training-word-card--selectable":"",o?"training-word-card--selected":"");return t.jsx("div",{className:L,onClick:r&&!n?i:void 0,role:r?"button":void 0,"aria-pressed":r?o:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?z=>{z.target===z.currentTarget&&(z.key==="Enter"||z.key===" "||z.key==="Spacebar")&&(z.preventDefault(),i?.())}:void 0,children:t.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:C?"0ms":`${l}ms`},children:[t.jsxs("div",{className:"training-word-card__front",children:[o&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:R,children:t.jsx(lt,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?m("training.nthSelected",{n:d}):m("training.selected","\uC120\uD0DD\uB428")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:H?t.jsxs(t.Fragment,{children:[E&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:O,className:"training-word-card__image",src:I,alt:g.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:E?0:1},onLoad:T,onError:K})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!c&&t.jsxs("div",{className:"training-word-card__body",children:[t.jsx("div",{className:"training-word-card__word",children:g.label}),g.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",g.subLabel,"]"]}),g.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",g.colloquialLabel,"]"]})]}),!u&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?R:void 0,children:t.jsx(le,{htmlType:"button",size:b?40:48,type:b?"dot":"bar",icon:A?"pause":"play",label:b?void 0:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:A,onClick:M,disabled:n,ariaLabel:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),t.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:t.jsx("img",{src:pb,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),mb=260;function Nn(e){const{t:n}=de.useTranslation(),{title:a,subtitle:r,headerActions:o,children:i,buttons:l,footer:c,footerClassName:u="",onClose:d,closeDisabled:p=!1,beforeClose:m,closeOnBackdrop:h=!0,className:C="",ariaLabel:y,useTitle:f=!0,inline:v=!1,size:g,layer:x="modal",height:_,fillBody:b=!1,resetScrollKey:A}=e||{},[w,D]=s.useState(!1),B=s.useRef(!1),k=s.useRef(null),N=s.useId(),I=s.useRef(null);s.useEffect(()=>{},[v,a,y,C]),s.useEffect(()=>{A!==void 0&&I.current&&(I.current.scrollTop=0)},[A]);const[O,E]=s.useState(!1);s.useEffect(()=>{const $=I.current;if(!$)return;const j=()=>E($.scrollHeight>$.clientHeight+1);if(j(),typeof ResizeObserver>"u")return;const F=new ResizeObserver(j);F.observe($);const se=$.firstElementChild;return se&&F.observe(se),()=>F.disconnect()},[i,A]),s.useEffect(()=>{if(!v)return Qi()},[v]),s.useEffect(()=>{if(v)return;const $=document.activeElement,j=k.current;return $r(j,$),j&&!j.contains(document.activeElement)&&(j.querySelector(Ln)??j).focus(),()=>{const F=document.activeElement;(!F||F===document.body||j&&j.contains(F))&&Rr($)?.focus?.()}},[v]),wr(k,!v);const H=s.useRef(!0),T=s.useRef(null);s.useEffect(()=>(H.current=!0,()=>{H.current=!1,T.current&&(clearTimeout(T.current),T.current=null)}),[]);const K=s.useCallback(()=>{!H.current||!B.current||(B.current=!1,D(!1))},[]),W=s.useCallback(($,j=!1)=>{if(j&&!H.current||B.current)return;B.current=!0,D(!0);const F=setTimeout(()=>{T.current===F&&(T.current=null);let se;try{se=$?$():void 0}catch{K();return}se&&typeof se.then=="function"&&se.then(()=>{setTimeout(K,120)},K)},mb);j&&(T.current=F)},[K]),V=s.useCallback(()=>{p||m&&m()===!1||W(d,!0)},[W,d,p,m]),U=s.useRef(V);s.useEffect(()=>{U.current=V});const re=!v&&!!d;s.useEffect(()=>{if(re)return $n(()=>U.current())},[re]);const P=re&&h,R=s.useRef(!1),M=$=>{R.current=$.target===$.currentTarget},L=$=>{const j=R.current;R.current=!1,j&&$.target===$.currentTarget&&V()},z=t.jsx("div",{className:`popup ${v?"popup--inline":""} ${x==="belowPagePopup"?"popup--below-page-popup":""} ${w?"popup--closing":""} ${C}`,onPointerDown:P?M:void 0,onClick:P?L:void 0,onMouseDown:v?void 0:$=>{$.target===$.currentTarget&&$.preventDefault()},children:t.jsxs("div",{ref:k,className:`popup-panel${g?` popup-panel--${g}`:""}${_!=null?" popup-panel--has-height":""}${b?" popup-panel--fill-body":""}`,style:_!=null?{"--popup-height":typeof _=="number"?`${_}px`:_}:void 0,tabIndex:-1,role:v?void 0:"dialog","aria-modal":v?void 0:!0,"aria-labelledby":!v&&f&&a?N:void 0,"aria-label":!v&&!(f&&a)?y??(typeof a=="string"?a:void 0):void 0,children:[!f&&(o||d)?t.jsxs("div",{className:"popup-close-float",children:[o,d&&t.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:V,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||o||d?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[t.jsx("span",{id:N,className:"popup-title popup-title--left h2",children:a}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),t.jsxs("div",{className:"popup-header-actions",children:[o,d&&t.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:V,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:I,tabIndex:O?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:W,closeWithAnimation:V}):i})}),l?.length?t.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map(($,j)=>t.jsx(le,{htmlType:"button",size:48,variant:$.variant??"default",label:$.label,disabled:$.disabled,onClick:()=>$.onClick?.({animateThen:W,closeWithAnimation:V})},j))}):c?t.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:W,closeWithAnimation:V}):c}):null]})});return v||typeof document>"u"?z:Ut.createPortal(z,document.body)}function za(e){return String(e)}const Nl=["o","triangle","x"];function Bl(e,n){return e===n?null:n}const Dl={o:"circle",triangle:"triangle",x:"x"},Sl={o:"main",triangle:"warn",x:"danger"};function hb(e){let n=0,a=0,r=0;for(const i of Object.values(e))i==="o"?n++:i==="triangle"?a++:i==="x"&&r++;const o=n+a+r;return{marked:o,o:n,triangle:a,x:r,rate:o===0?null:(n+a*.5)/o}}function Zr(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function Tl(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function fb(e,n){return!n&&e>0}const Zn={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function Cb(e="landscape"){const{printSize:n,printW:a,printH:r}=Zn[e],o=document.createElement("style");o.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(o);const i=()=>{document.head.removeChild(o),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function jl(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let o=0;o<e.length;o+=a)r.push(e.slice(o,o+a));return r}const gb={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function bb(e,n){const a=gb[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),o=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=o,i=Math.ceil(r/l)):(i=o,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}const yb={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},El={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},Ml={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Xr(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function Ll(e,n,a,r){if(r!=="\uC810\uC120")return{};const o=e%n,i=Math.floor(e/n),l=o<n-1,c=i<a-1;if(!l&&!c)return{};const u="#ddd",d=C=>`repeating-linear-gradient(to ${C}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,p=[],m=[],h=[];return l&&(p.push(d("bottom")),m.push("1px 100%"),h.push("right center")),c&&(p.push(d("right")),m.push("100% 1px"),h.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const vb=280,xb=240,_b=280,wb=400,kb=120,Ab=280;function $l(e,n){const a=s.useRef(null),[r,o]=s.useState(1),[i,l]=s.useState(0),c=s.useCallback((u,d)=>{const p=u/e,m=n?d/n:1/0,h=Math.min(1,p,m);o(h),l(Math.max(0,(u-e*h)/2))},[e,n]);return s.useEffect(()=>{const u=a.current;if(!u)return;const d=n?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>c(m.contentRect.width,m.contentRect.height));return p.observe(d),()=>p.disconnect()},[c,n]),{scalerRef:a,scale:r,offset:i}}let gn=null;function Rl({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:o=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:u=40,wordInfo:d}){const{t:p}=de.useTranslation(),m=s.useRef(null),h=s.useRef(null),C=s.useRef(null),[y,f]=s.useState(1),[v,g]=s.useState(!1),[x,_]=s.useState({for:"",url:""}),[b,A]=s.useState(null),w=n&&n.length>0?n:i0()?.(e,r)??"",D=Wn()?.(e,r)??"",{imgRef:B,loading:k,failed:N,onLoad:I,onError:O}=Kr(D),E=s.useCallback(()=>A(h.current?.getBoundingClientRect()??null),[]),H=s.useCallback(()=>A(null),[]),T=s.useMemo(()=>{if(!d)return null;const R=[];return d.grade&&R.push(p("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&R.push(p("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&R.push(p("wordTable.info.pos",{v:Xr(d.pos,Nb(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&R.push(p("wordTable.info.wordType",{v:Xr(d.wordType,Bb(p)),defaultValue:"\uC720\uD615: {{v}}"})),R.length?R:null},[d,p]),K=w||e,W=x.for===K?x.url:"";s.useEffect(()=>{const R=mr(),M=w||e;if(!R||!M)return;let L=!1;return Promise.resolve(R(M)).then(z=>{!L&&z&&_({for:M,url:z})}),()=>{L=!0}},[w,e]),s.useEffect(()=>()=>{C.current?.pause(),gn?.audio===C.current&&(gn=null)},[]);const V=s.useCallback(async R=>{if(R.stopPropagation(),v){C.current?.pause(),g(!1),gn=null;return}if(W){gn?.stop(),g(!0);try{const M=new Audio(W);C.current=M;const L=()=>{g(!1),gn?.audio===M&&(gn=null)};gn={audio:M,stop:()=>{M.pause(),L()}},M.onended=L,M.onerror=L,await M.play()}catch{g(!1),gn?.audio===C.current&&(gn=null)}}},[v,W]),U=i&&!!D&&!N,re=U&&o?vb:U?_b:xb,P=U&&o?wb:U?Ab:kb;return s.useEffect(()=>{const R=m.current;if(!R||typeof ResizeObserver>"u")return;const M=new ResizeObserver(([L])=>{const{width:z,height:$}=L.contentRect;f(Math.min(z/re,$/P))});return M.observe(R),()=>M.disconnect()},[re,P]),t.jsxs("div",{ref:m,className:"word-table-cell",children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${y})`},children:[U&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[k&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:B,className:"word-table-cell__image",src:D,alt:e,draggable:!1,style:{opacity:k?0:1},onLoad:I,onError:O})]}),o&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&w&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",w,"]"]}),c&&a&&t.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),t.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":W,children:[t.jsx("span",{"data-play-state":"play",style:{display:v?"none":void 0},children:t.jsx(le,{htmlType:"button",size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:V})}),t.jsx("span",{"data-play-state":"pause",style:{display:v?void 0:"none"},children:t.jsx(le,{htmlType:"button",size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:V})})]}),d&&t.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:E,onPointerLeave:H,onFocus:E,onBlur:H,children:[t.jsx(le,{htmlType:"button",size:u,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:R=>R.stopPropagation()}),b&&T&&t.jsx(Rn,{anchorRect:b,items:T,showIndex:!1})]})]})}const Pl={\uBA85:"noun",\uB3D9:"verb",\uD615:"adjective",\uBD80:"adverb",\uC218:"numeral",\uAD00:"determiner",\uAC10:"interjection",\uC870:"particle",\uC811:"affix",\uC758:"dependentNoun",\uB300:"pronoun",\uBCF4\uB3D9:"auxVerb",\uBCF4\uD615:"auxAdjective"},Il={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function Nb(e){return Object.fromEntries(Object.entries(El).map(([n,a])=>[n,Pl[n]?e(`wordTable.pos.${Pl[n]}`,{defaultValue:a}):a]))}function Bb(e){return Object.fromEntries(Object.entries(Ml).map(([n,a])=>[n,Il[n]?e(`wordSearch.filter.type.${Il[n]}`,{defaultValue:a}):a]))}function Xn({title:e,titleIcon:n,disc:a,className:r,orientation:o="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:c=!0,showDivLine:u=!0,items:d,editCells:p,count:m,activeCell:h=null,onActivateCell:C,onRemoveCell:y,onRemoveItem:f,onReorder:v,showFillerAdd:g=!1,contentRef:x,buttonSize:_=40,pageNumber:b,pageNumberPosition:A="right",fitHeight:w=!1,scoring:D=!1,marks:B,onMarkClick:k,scoreIndexOffset:N=0}){const I=s.useCallback((ie,Ce)=>{k?.(N+ie,Ce)},[k,N]),O=(ie,Ce)=>{const Z=B?.[za(N+ie)]??null;return t.jsx("div",{className:ve("word-table-cell__score",Z?"word-table-cell__score--marked":""),children:Nl.map(oe=>t.jsx("span",{className:ve("word-table-cell__score-slot",Z===oe?"word-table-cell__score-slot--on":""),children:t.jsx(le,{htmlType:"button",size:_,type:"dot",icon:Dl[oe],variant:Z===oe?Sl[oe]:"default",selected:Z===oe,useBorder:!1,showTooltipInfo:!1,ariaLabel:E(`wordTable.scoring.${oe}`,{word:Ce,defaultValue:`${Ce} ${oe}`}),onClick:X=>{X.stopPropagation(),I(ie,oe)}})},oe))})},{t:E}=de.useTranslation(),H=p!==void 0,T=s.useRef(null),[K,W]=s.useState(null),{width:V,height:U}=Zn[o],{scalerRef:re,scale:P,offset:R}=$l(V,w?U:void 0),M=H?p?.length??0:d?.length??0,L=Math.max(m??M,1),{cols:z,rows:$}=bb(o,L),j={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},F=H?(p??[]).some(ie=>ie!==null&&ie.length>1):(d??[]).some(ie=>ie.words.length>1),se=ve("word-table-block__content",yb[l],c&&"word-table-block__content--outline",u&&F&&"word-table-block__content--div-line"),ne={transform:`scale(${1/P})`,transformOrigin:"center center"},ee=t.jsx("div",{ref:re,className:"word-table__scaler",style:{height:U*P},children:t.jsx("div",{className:ve("word-table",r),style:{width:V,height:U,transform:`scale(${P})`,transformOrigin:"top left",marginLeft:R},children:t.jsxs("div",{ref:x,className:se,style:{gridTemplateColumns:`repeat(${z}, 1fr)`,gridTemplateRows:`repeat(${$}, 1fr)`},children:[H?t.jsx(t.Fragment,{children:(p??[]).map((ie,Ce)=>t.jsx("div",{className:ve("word-table-block__edit-cell",ie?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===Ce?"word-table-block__edit-cell--active":""),style:Ll(Ce,z,$,l),children:ie?t.jsxs(t.Fragment,{children:[ie.map((Z,oe)=>t.jsxs(s.Fragment,{children:[oe>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Rl,{label:Z.word,subLabel:Z.pronunciation,colloquialLabel:Z.colloquialPronunciation,homonum:Z.homonum,showWord:j.word,showImage:j.image,showPronunciation:j.pron,showColloquial:j.colloq,buttonSize:_})]},oe)),D&&O(Ce,ie.map(Z=>Z.word).join(" / ")),y&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(le,{htmlType:"button",size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ie.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ie.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>y(Ce)})})]}):C&&t.jsx("div",{style:ne,children:t.jsx(le,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C(Ce)})})},Ce))}):t.jsxs(t.Fragment,{children:[(d??[]).map((ie,Ce)=>t.jsxs("div",{className:`word-table-block__card${v?" word-table-block__card--draggable":""}${K===Ce?" word-table-block__card--drag-over":""}`,style:Ll(Ce,z,$,l),draggable:!!v,onDragStart:v?()=>{T.current=Ce}:void 0,onDragOver:v?Z=>{Z.preventDefault(),W(Ce)}:void 0,onDragLeave:v?()=>W(null):void 0,onDrop:v?Z=>{Z.preventDefault(),T.current!==null&&T.current!==Ce&&v(T.current,Ce),T.current=null,W(null)}:void 0,onDragEnd:v?()=>{T.current=null,W(null)}:void 0,children:[ie.words.map((Z,oe)=>t.jsxs(s.Fragment,{children:[oe>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Rl,{label:Z.label,subLabel:Z.subLabel,colloquialLabel:Z.colloquialLabel,homonum:Z.homonum,showWord:j.word,showImage:j.image,showPronunciation:j.pron,showColloquial:j.colloq,buttonSize:_,wordInfo:Z.grade||Z.syllables!=null||Z.pos||Z.wordType?{grade:Z.grade,syllables:Z.syllables,pos:Z.pos,wordType:Z.wordType}:void 0})]},oe)),D&&O(Ce,ie.words.map(Z=>Z.label).join(" / ")),f&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(le,{htmlType:"button",size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ie.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ie.words.length>1?E("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):E("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(ie.id)})})]},ie.id)),Array.from({length:Math.max(0,z*$-(d?.length??0))}).map((ie,Ce)=>{const Z=(d?.length??0)+Ce<L;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:g&&C&&Z&&t.jsx("div",{style:ne,children:t.jsx(le,{htmlType:"button",size:_,type:"bar",icon:"plus",label:E("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C((d?.length??0)+Ce)})})},`filler-${Ce}`)})]}),b&&A!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${A}`,children:E("wordTable.filter.pageIndicator",{current:b.current,total:b.total})})]})})});return e!=null||n||a?t.jsx(Yn,{type:"page",icon:n,title:e,disc:a,className:ve("word-table-block",r),children:ee}):ee}function bn({title:e,headerAction:n,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:o,onCollapsedChange:i,footer:l,sections:c,selected:u={},onSelect:d,align:p,sectionAlign:m,className:h}){const C=(p??(m==="vertical"?"newline":"inline"))==="inline",{t:y}=de.useTranslation(),[f,v]=s.useState(r),g=o??f,x=()=>{const b=!g;v(b),i?.(b)},_=e||n||a;return t.jsxs("div",{className:ve("filter-panel",a?"filter-panel--collapsible":"",g?"filter-panel--collapsed":"",h),children:[_&&t.jsxs("div",{className:"filter-panel__header",children:[t.jsxs("div",{className:"filter-panel__title-row",children:[a&&t.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:g?"chevron-down":"chevron-up",ariaLabel:g?y("common.expand","\uD3BC\uCE58\uAE30"):y("common.collapse","\uC811\uAE30"),"aria-expanded":!g,onClick:x}),e&&t.jsx("span",{className:"filter-panel__title h4",children:e})]}),t.jsx("div",{className:"filter-panel__header-actions",children:!g&&n})]}),!g&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:ve("filter-panel__sections",C?"filter-panel__sections--row":""),children:c.map(b=>{const A=u[b.label],w=A===void 0||(Array.isArray(A)?A.length===0:!1),D=(b.items??[]).filter(k=>k!=null);b.allOption&&D.some(k=>(typeof k=="string"?k:k.value)===sn)&&ta(`filter-panel-all-value:${b.label}`,`[FilterPanel] '${b.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${sn}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const B=k=>{const N=typeof k=="string"?k:k.value,I=typeof k!="string"&&!!k.disabled,O=typeof k!="string"?k.labels:void 0,E=typeof k!="string"?k.displayLabel:void 0,H=typeof k!="string"?k.tooltip:void 0,T=typeof k!="string"?k.descriptionTooltip:void 0,K=typeof k!="string"?k.shape:void 0,W=Array.isArray(A)?A.includes(N):A===N;return t.jsx(le,{htmlType:"button",size:"keyboard",label:O??E??N,type:b.itemType??(O?"bar":N.length===1?"dot":void 0),selected:W,disabled:I,shape:K,showTooltipInfo:!!H,tooltipInfoText:H,tooltipDescription:T,onClick:()=>d?.(N,b.label)},N)};return t.jsxs(s.Fragment,{children:[b.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:b.groupLabel}),b.groupAction]}),t.jsxs("div",{className:ve("filter-panel__section",b.layout==="row"?"filter-panel__section--row":"",b.block?"filter-panel__section--block":""),children:[t.jsxs("div",{className:"filter-panel__section-label-row",children:[t.jsx("span",{className:"filter-panel__section-label body-3",children:b.displayLabel??b.label}),b.labelAction??(b.labelInfo?t.jsx(fa,{...b.labelInfo}):null)]}),b.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:b.content}):b.type==="input"?t.jsx(Fn,{className:"filter-panel__textfield",placeholder:b.placeholder,ariaLabel:b.displayLabel??b.label,value:u[b.label]??"",onChange:k=>d?.(k,b.label),error:b.error}):!b.multiple&&b.display==="segmented"?t.jsx(On,{ariaLabel:b.displayLabel??b.label,options:[...b.allOption?[{key:sn,label:b.allLabel??y("common.all","\uC804\uCCB4"),disabled:b.allOptionDisabled}]:[],...D.map(k=>{const N=typeof k=="string"?k:k.value,I=typeof k!="string"?k.displayLabel:void 0,O=typeof k!="string"?k.disabled:void 0;return{key:N,label:I??N,disabled:O}})],value:w&&b.allOption?sn:u[b.label]??"",onChange:k=>d?.(k,b.label),size:32}):!b.multiple&&b.display==="dropdown"?t.jsx(Jt,{className:"filter-panel__dropdown",size:40,options:[...b.allOption?[{value:sn,label:b.allLabel??y("common.all","\uC804\uCCB4"),disabled:b.allOptionDisabled}]:[],...D.map(k=>{const N=typeof k=="string"?k:k.value,I=typeof k!="string"?k.displayLabel:void 0,O=typeof k!="string"?k.disabled:void 0;return{value:N,label:I??N,disabled:O}})],value:w&&b.allOption?sn:u[b.label],onChange:k=>d?.(k,b.label)}):t.jsxs("div",{className:b.groups?"filter-panel__item-groups":"filter-panel__items",children:[b.allOption&&!b.groups&&t.jsx(le,{htmlType:"button",size:"keyboard",label:b.allLabel??y("common.all","\uC804\uCCB4"),selected:w,disabled:b.allOptionDisabled,onClick:()=>d?.(sn,b.label)}),b.groups?b.groups.map((k,N)=>t.jsxs("div",{className:"filter-panel__item-group",children:[N===0&&b.allOption&&t.jsx(le,{htmlType:"button",size:"keyboard",label:b.allLabel??y("common.all","\uC804\uCCB4"),selected:w,disabled:b.allOptionDisabled,onClick:()=>d?.(sn,b.label)}),k.filter(I=>I!=null).map(B)]},N)):D.map(B)]})]})]},b.label)})}),l!=null&&l!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const Db=[1,2,3,4,5,6,7,8,9,10,11,12],Jr=[8,4,2,1];function Fl(e,n){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!n.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!n.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Ol(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function Hl(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Vl(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function zl(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Wl(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...Jr.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function ql(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const Ul={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Gl(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Kl(e,n){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:n.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:n.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:n.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:n.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:n.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function Yl(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===sn?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(o=>o.includes(n)?o.filter(i=>i!==n):[...o,n]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(n==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(n),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(n==="\uD45C\uC2DC"),!0):!1}function Sb(e){return"sections"in e}function Qr(e){const{t:n}=de.useTranslation(),{title:a,className:r}=e;if(Sb(e))return t.jsx(bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:o,hasColloquial:i,contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p,setters:m,showCutLine:h=!1,showDivLine2:C=!1,middleSections:y=[],extraSelected:f={},onExtraSelect:v}=e,g=[Fl(n,{hasImage:o,hasColloquial:i}),Ol(n),...y,Hl(n),...h?[Vl(n)]:[],...C?[zl(n)]:[]],x={...Kl(n,{contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...f},_=(b,A)=>{Yl(n,b,A,m)||v?.(b,A)};return t.jsx(bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:g,selected:x,onSelect:_,sectionAlign:"horizontal"})}function Zl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function eo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let Wa=null,Jn=null;function Tb(e,n,a,r="",o=""){if(e.length===0||Jn&&Jn.iframe.isConnected&&Date.now()-Jn.at<1e4)return;const i=r?eo(r):"";Wa?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,window.removeEventListener("afterprint",l),Wa===l&&(Wa=null)},Wa=l,window.addEventListener("afterprint",l)}const c=document.createElement("iframe");c.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(c);const u=c.contentDocument;if(!u){c.remove();return}Jn={iframe:c,at:Date.now()},u.open(),u.write(to(e,n,a,!0,i,o)),u.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{c.remove(),Jn?.iframe===c&&(Jn=null)},0)})}function to(e,n,a,r=!1,o="",i=""){o=o?eo(o):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
838
+ `),f=y===-1?a:a.slice(0,y);i("comment",f),a=a.slice(f.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const u=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){i("string",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),a=a.slice(d[0].length);continue}const p=a.match(A4);if(p){i("keyword",p[0]),a=a.slice(p[0].length);continue}const m=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(m){const y=m[0];i(o&&k4.has(y)?"command":"identifier",y),a=a.slice(y.length);continue}const h=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(h){i("operator",h[0]),a=a.slice(h[0].length);continue}const C=a.match(/^[()[\]{};.,]/);if(C){i("punctuation",C[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function B4({children:e,language:n="bash",title:a="",showCopy:r=!0,size:o="default",className:i=""}){const{t:l}=de.useTranslation(),[c,u]=s.useState(!1),d=w4(nl(e)),p=s.useRef(null);s.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await I0(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},h=N4(d,n),C=o==="small"?"caption-1":"body-3";return t.jsxs("div",{className:ve("code-box",o==="small"?"code-box--small":"",i),children:[(a||r)&&t.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[t.jsx("div",{className:"code-box__title caption-1",children:a}),r&&t.jsx(ie,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:m,ariaLabel:c?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),t.jsx("pre",{className:"code-box__inner","data-lang":n,children:t.jsx("code",{children:h.map((y,f)=>t.jsx("span",{className:`code-token ${y.type} ${C}`,children:y.content},f))})})]})}const D4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function ba(e){const{t:n}=de.useTranslation(),{variant:a="spinner",size:r=24,progress:o=null,label:i}=e||{},l=i||n("loader.loading","Loading");if(a==="bar"){const u=Math.max(0,Math.min(100,Number(o)||0));return t.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u,"aria-label":l,children:t.jsx("div",{className:"loader-bar__inner",style:{width:`${u}%`}})})}const c=typeof r=="number"?`${r}px`:r;return t.jsxs("div",{className:"loader-spinner",style:{width:c,height:c},role:"status","aria-label":l,children:[t.jsx("span",{style:D4,children:l}),t.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[t.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),t.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}function al({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:o,labelPosition:i="right",className:l="",id:c}){const u=r&&t.jsx("span",{className:"toggle__label body-3",children:r});return t.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[i==="left"&&u,t.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>n?.(d.target.checked),"aria-label":!r&&o?o:void 0}),t.jsx("span",{className:"toggle__slider"}),i==="right"&&u]})}function rl({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:o,size:i="medium",className:l,title:c,ariaLabel:u}){const d=s.useRef(null),p=s.useId(),m=s.useRef(!!r);return m.current=!!r,s.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),t.jsxs("label",{className:ve("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:c,children:[t.jsx("input",{ref:d,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>{n?.(h.target.checked),d.current&&(d.current.indeterminate=m.current)},disabled:a,"aria-label":!o&&u?u:void 0}),t.jsx("span",{className:"checkbox__box"}),o&&t.jsx("span",{className:"checkbox__label body-3",children:o})]})}function S4({count:e,actions:n,onClear:a,clearLabel:r,visible:o,content:i,max:l}){const{t:c}=de.useTranslation(),u=o!==void 0?o:e>0,d=r??c("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=s.useRef(null),[m,h]=s.useState(!1),C=s.useRef(!1),y=s.useRef(null);return s.useEffect(()=>{const f=p.current;if(!f)return;const v=w=>{C.current=w,h(w)},g=()=>{const w=f.firstElementChild??f,D=Array.from(w.children);if(D.length<2){v(!1);return}const B=D[0].offsetTop,k=D.some(H=>H.offsetTop!==B);if(!C.current){y.current=f.clientWidth,k&&v(!0);return}if(k)return;const N=D[0],I=D[D.length-1],O=I.offsetLeft+I.offsetWidth-N.offsetLeft,j=y.current;(j==null||O<=j)&&v(!1)};if(g(),typeof ResizeObserver>"u")return;const x=new ResizeObserver(g);x.observe(f);const _=f.parentElement;let b=_?.clientWidth??0;const A=new ResizeObserver(()=>{const w=_?.clientWidth??0;w!==b&&(b=w,y.current=null,g())});return _&&A.observe(_),()=>{x.disconnect(),A.disconnect()}},[i,e]),t.jsxs("div",{className:`bulk-bar ${u?"bulk-bar--visible":""}`,inert:!u||void 0,"aria-hidden":u?void 0:!0,children:[t.jsx("span",{ref:p,className:"bulk-bar__count body-2",role:"status",children:i??t.jsx("b",{children:c("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(lt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${m?" bulk-bar__actions--stacked":""}`,children:[t.jsx(ie,{htmlType:"button",size:40,label:d,onClick:a}),n.map((f,v)=>t.jsx(ie,{htmlType:"button",size:40,variant:f.variant??"default",icon:f.icon,label:f.label,onClick:f.onClick},v))]})]})}function ol(e){const n=()=>{if(e){const[y,f]=e.split("-");return{y:+y,m:+f-1}}const[h,C]=Mn().split("-");return{y:+h,m:+C-1}},[a,r]=s.useState(()=>n().y),[o,i]=s.useState(()=>n().m),l=s.useRef(e);s.useEffect(()=>{if(e===l.current)return;l.current=e;const h=n();r(h.y),i(h.m)},[e]);const c=s.useRef({y:a,m:o});s.useEffect(()=>{c.current={y:a,m:o}},[a,o]);const u=s.useCallback(h=>{const C=c.current.y*12+c.current.m+h,y=Math.floor(C/12),f=C-y*12;c.current={y,m:f},r(y),i(f)},[]),d=s.useCallback(()=>u(-1),[u]),p=s.useCallback(()=>u(1),[u]),m=s.useCallback((h,C)=>{c.current={y:h,m:C},r(h),i(C)},[]);return{viewY:a,viewM:o,prevMonth:d,nextMonth:p,setViewYM:m}}function Pa(e,n){return new Date(e,n+1,0).getDate()}function T4(e,n){return new Date(e,n,1).getDay()}function Ia(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function j4(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function E4(e,n,a,r){const o=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let c=o;c<=i;c++)for(let u=0;u<12;u++){const d=`${c}-${String(u+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:n(c,u+1)})}return l}function M4({value:e,onChange:n,size:a=48,min:r,max:o,disabled:i,placeholder:l,className:c}){const{t:u}=de.useTranslation(),d=l??u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),p=s.useMemo(()=>u("calendar.dow",{returnObjects:!0}),[u]),m=Mn(),{viewY:h,viewM:C,prevMonth:y,nextMonth:f,setViewYM:v}=ol(e),g=s.useCallback($=>{const M=window.innerHeight-$.bottom,L=300,z=M<L&&$.top>L;return{position:"fixed",left:$.left,width:$.width,minWidth:260,...z?{bottom:window.innerHeight-$.top+6}:{top:$.bottom+6},zIndex:9999}},[]),{open:x,setOpen:_,toggle:b,style:A,triggerRef:w,menuRef:D}=pa({computeStyle:g,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});s.useEffect(()=>{if(!x)return;const $=D.current;return($?.querySelector(".date-picker__day--selected:not(:disabled)")??$?.querySelector(".date-picker__day--today:not(:disabled)")??$?.querySelector(".date-picker__day:not(:disabled)")??$?.querySelector(Ln)??$)?.focus?.(),()=>{const M=document.activeElement;(!M||M===document.body)&&w.current?.focus?.()}},[x,D,w]);const[B,k]=s.useState(1),N=s.useRef(null),I=s.useRef(null);s.useEffect(()=>{if(!x)return;const $=e&&e.slice(0,7)===`${h}-${String(C+1).padStart(2,"0")}`?+e.slice(8):m.slice(0,7)===`${h}-${String(C+1).padStart(2,"0")}`?+m.slice(8):1;k($)},[x]),s.useEffect(()=>{if(I.current==null)return;const $=I.current;I.current=null,N.current?.querySelector(`[data-day="${$}"]`)?.focus()}),s.useEffect(()=>{k($=>Math.min($,Pa(h,C)))},[h,C]);const O=s.useCallback($=>{let M=Ia($.getFullYear(),$.getMonth(),$.getDate());r&&M<r&&(M=r),o&&M>o&&(M=o);const[L,z,R]=M.split("-").map(Number);(L!==h||z-1!==C)&&v(L,z-1),k(R),I.current=R},[r,o,h,C,v]),j=s.useCallback($=>{const M=new Date(h,C,B),L=R=>{M.setDate(M.getDate()+R),O(M)},z=R=>{const E=M.getFullYear()*12+M.getMonth()+R,F=Math.floor(E/12),ae=E-F*12;O(new Date(F,ae,Math.min(M.getDate(),Pa(F,ae))))};switch($.key){case"ArrowLeft":L(-1);break;case"ArrowRight":L(1);break;case"ArrowUp":L(-7);break;case"ArrowDown":L(7);break;case"Home":L(-M.getDay());break;case"End":L(6-M.getDay());break;case"PageUp":$.shiftKey?z(-12):z(-1);break;case"PageDown":$.shiftKey?z(12):z(1);break;default:return}$.preventDefault()},[h,C,B,O]),H=s.useCallback($=>{i||(n(Ia(h,C,$)),_(!1))},[h,C,n,_,i]);s.useEffect(()=>{i&&_(!1)},[i,_]);const T=$=>{const M=Ia(h,C,$);return!!(r&&M<r||o&&M>o)},K=(()=>{const $=Pa(h,C);if(B>=1&&B<=$&&!T(B))return B;for(let M=1;M<=$;M++)if(!T(M))return M;return-1})(),W=[];for(let $=0;$<T4(h,C);$++)W.push(null);for(let $=1;$<=Pa(h,C);$++)W.push($);const V=a===64?20:a===40?16:18,U=E4(h,($,M)=>u("calendar.yearMonth",{year:$,month:M,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,o),re=`${h}-${String(C+1).padStart(2,"0")}`,P=x?Ut.createPortal(t.jsxs("div",{ref:D,className:"date-picker__dropdown",style:A,"data-tooltip-ignore":!0,role:"dialog","aria-label":u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[t.jsxs("div",{className:"date-picker__nav",children:[t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:y,"aria-label":u("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Lo,{size:16,strokeWidth:2})}),t.jsx(Jt,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:U,value:re,onChange:$=>{const[M,L]=$.split("-");v(+M,+L-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx($o,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:N,onKeyDown:j,children:[p.map($=>t.jsx("div",{className:"date-picker__dow caption-1",children:$},$)),W.map(($,M)=>{if($===null)return t.jsx("div",{},`e${M}`);const L=Ia(h,C,$),z=L===e,R=L===m,E=T($),F=M%7;return t.jsx("button",{type:"button",disabled:E,"data-day":$,tabIndex:$===K?0:-1,"aria-current":R?"date":void 0,onClick:()=>!E&&H($),className:ve("date-picker__day caption-1",z&&"date-picker__day--selected",R&&!z&&"date-picker__day--today",E&&"date-picker__day--disabled",F===0&&"date-picker__day--sun",F===6&&"date-picker__day--sat"),children:$},$)})]})]}),document.body):null;return t.jsxs("div",{className:ve("date-picker",`date-picker--s${a}`,x&&"date-picker--open",c),children:[t.jsxs("button",{ref:w,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&b(),disabled:i,"aria-haspopup":"true","aria-expanded":x,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?j4(e):d}),t.jsx(Wo,{size:V,className:"date-picker__icon",strokeWidth:1.5})]}),P]})}function Ir({items:e,className:n}){return t.jsx("div",{className:n?`manager-bar-chart-legend ${n}`:"manager-bar-chart-legend",children:e.map((a,r)=>t.jsxs("span",{className:"manager-bar-chart-legend-item",children:[t.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function Fa({label:e,children:n}){return e?t.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[t.jsx("span",{className:"barchart-total__label body-3",children:e}),t.jsx("span",{className:"barchart-total__value",children:n})]}):t.jsx("div",{className:"barchart-total",children:n})}function Fr({title:e,titleClassName:n="h3",headRight:a,subRow:r,className:o,inGrid:i=!1,children:l}){return t.jsxs("section",{className:["manager-section",i&&"manager-section--grid",o].filter(Boolean).join(" "),children:[t.jsxs("div",{className:"manager-section__head",children:[t.jsx("div",{className:n,children:e}),a]}),r&&t.jsx("div",{className:"barchart-sub-row",children:r}),l]})}function Cn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function L4(){const e=qn();let n=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<Cn(n,a)){const l=new Date(n,a,0);n=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const o=Math.floor((r-Cn(n,a))/7),i=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${o}`}}function $4(e){const n=qn(),a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(u,d)=>`${u}\uB144 ${d+1}\uC6D4`,o=new Map;o.set(a,[]);for(const u of e){if(isNaN(u.date.getTime()))continue;const d=r(u.date.getFullYear(),u.date.getMonth());o.has(d)||o.set(d,[]),o.get(d).push(u)}for(const[u,d]of[...o.entries()]){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,C=Cn(m,h);if(!(u===a&&n.getDate()<C)&&!d.some(v=>v.date.getDate()<C))continue;const y=new Date(m,h,0),f=r(y.getFullYear(),y.getMonth());o.has(f)||o.set(f,[])}const i=new Map;for(const[u,d]of o){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),h=Number(p[2])-1,C=new Date(m,h+1,0).getDate(),y=d.reduce((x,_)=>Math.max(x,_.parts?.length??0),0),f=new Array(C+1).fill(0),v=new Array(C+1).fill(0),g=Array.from({length:C+1},()=>new Array(y).fill(0));for(const x of d){const _=x.date.getDate();if(f[_]+=x.a,v[_]+=x.b,x.parts)for(let b=0;b<y;b++)g[_][b]+=x.parts[b]??0}i.set(u,{year:m,month:h,daysInMonth:C,partsLen:y,dayA:f,dayB:v,dayParts:g})}const l=(u,d,p)=>new Date(u,d,p).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),c={};for(const[u,d]of i){const{year:p,month:m,daysInMonth:h,dayA:C,dayB:y,dayParts:f}=d,v=p===n.getFullYear()&&m===n.getMonth(),g=n.getDate(),x=i.get(r(m===11?p+1:p,(m+1)%12)),_=d.partsLen,b=[];for(let w=1;w<=h;w++){const D=v&&w>g;b.push({label:String(w),a:D&&C[w]===0&&y[w]===0?-1:C[w],b:y[w],..._?{parts:f[w]}:{}})}const A=[];for(let w=Cn(p,m);w<=h;w+=7){const D=Math.max(0,w+6-h),B=D&&x?Math.max(_,x.partsLen):_;let k=0,N=0;const I=new Array(B).fill(0);for(let j=w;j<=Math.min(w+6,h);j++){k+=C[j],N+=y[j];for(let H=0;H<_;H++)I[H]+=f[j][H]}if(D&&x)for(let j=1;j<=D&&!l(x.year,x.month,j);j++){k+=x.dayA[j],N+=x.dayB[j];for(let H=0;H<x.partsLen;H++)I[H]+=x.dayParts[j][H]}const O=D?`${(m+1)%12+1}/${D}`:`${w+6}`;A.push({label:`${A.length+1}\uC8FC`,sublabel:`[${w}\uC77C~${O}\uC77C]`,a:k,b:N,...B?{parts:I}:{}})}c[u]={weekly:A,daily:b}}return c}function sl(){const e=qn(),n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let o=2024;o<=n;o++){const i=o===n?a:12;for(let l=1;l<=i;l++){const c=`${o}\uB144 ${l}\uC6D4`;r.push({value:c,label:c,year:o,month:l})}}return r.reverse()}sl();function R4(){return sl()}const il=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function ll(e){const{t:n,i18n:a}=de.useTranslation(),[r,o]=s.useState("week"),i=s.useMemo(()=>R4().filter(k=>k.value in e),[e]),l=s.useMemo(()=>{const k=[];for(const N of i){const I=new Date(N.year,N.month,0).getDate(),O=Cn(N.year,N.month-1),j=Math.ceil((I-O+1)/7);for(let H=j-1;H>=0;H--)k.push({value:`${N.value}#${H}`,monthKey:N.value,year:N.year,month:N.month,week:H})}return k},[i]),c=s.useCallback(k=>{const N=n("calendar.yearMonth",{year:k.year,month:k.month});return a.language?.startsWith("ko")?`${N} ${il[k.week]??`${k.week+1}`}\uC8FC`:`${N} Week ${k.week+1}`},[n,a.language]),u=s.useMemo(()=>i.map(k=>({value:k.value,label:n("calendar.yearMonth",{year:k.year,month:k.month})})),[n,i]),d=s.useMemo(()=>l.map(k=>({value:k.value,label:c(k)})),[l,c]),p=s.useMemo(()=>L4(),[e]),m=s.useMemo(()=>i.find(k=>k.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),h=s.useMemo(()=>l.find(k=>k.value===p.value)?.value??l[0]?.value??"",[l,p]),[C,y]=s.useState(""),[f,v]=s.useState("");s.useEffect(()=>{i.find(k=>k.value===C)||y(m)},[i,C,m]),s.useEffect(()=>{l.find(k=>k.value===f)||v(h)},[l,f,h]);const g=r==="month"?u:d,x=r==="month"?C:f,_=r==="month"?y:v,b=s.useMemo(()=>{const k=n("calendar.dow",{returnObjects:!0});return Array.isArray(k)?k:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),A=g.findIndex(k=>k.value===x),w=s.useCallback(()=>{const k=g.findIndex(N=>N.value===x);k<g.length-1&&_(g[k+1].value)},[g,x,_]),D=s.useCallback(()=>{const k=g.findIndex(N=>N.value===x);k>0&&_(g[k-1].value)},[g,x,_]),B=s.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:o,range:x,setRange:_,activeOptions:g,activeIdx:A,handlePrev:w,handleNext:D,periodOptions:B,monthRange:C,weekRange:f,weekRanges:l,DOW:b}}const Qt=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function P4({data:e,colorA:n,colorB:a,labelA:r,labelB:o,barWidth:i=10,height:l=140,maxOverride:c,tightMax:u,seriesColors:d,seriesLabels:p,rateLabels:m}){const h=!a,C=!!(d&&d.length>0),y=s.useMemo(()=>C?Math.max(0,...e.filter(B=>B.a!==-1).map(B=>(B.parts??[]).reduce((k,N)=>k+Math.max(0,Qt(N)),0))):Math.max(0,...e.filter(B=>B.a!==-1).flatMap(B=>h?[Qt(B.a)]:[Qt(B.a),Qt(B.b)])),[e,h,C]),f=s.useMemo(()=>c??(u?y>0?y:10:Math.ceil(y/10)*10||10),[y,c,u]),v=l,g=C||h?1:2,x={"--bar-width":`${s.useMemo(()=>{const B=Math.max(1,e.length);return Math.max(8,Math.min(i,Math.round(120/(B*g)+6)))},[e.length,g,i])}px`},_=s.useMemo(()=>{const B=Math.round(f/2);return B!==f?[f,B,0]:[f,0]},[f]),[b,A]=s.useState(null),w=s.useCallback(()=>A(null),[]),D=b!=null;return s.useEffect(()=>{if(!D)return;const B=()=>A(null),k=N=>{const I=N.target;I&&typeof I.closest=="function"&&I.closest(".manager-bar-chart-col")||A(null)};return window.addEventListener("scroll",B,!0),document.addEventListener("pointerdown",k,!0),()=>{window.removeEventListener("scroll",B,!0),document.removeEventListener("pointerdown",k,!0)}},[D]),t.jsxs("div",{className:"manager-bar-chart-wrap",children:[t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsx("div",{className:"manager-bar-chart-scroll",children:t.jsxs("div",{className:"manager-bar-chart-area",children:[t.jsxs("div",{className:"manager-bar-chart-plot",style:{height:v},children:[_.slice(0,-1).map((B,k)=>t.jsx("div",{className:"manager-bar-chart-gridline",style:{top:(1-B/f)*v},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:B})},k)),e.map((B,k)=>{const N=B.a===-1,I=T=>Math.min(v,Math.max(0,Qt(T)/f*v)),O=N?0:I(B.a),j=N?0:I(B.b),H=(B.parts??[]).map(Qt);return t.jsx("div",{className:"manager-bar-chart-col",style:{cursor:N?"default":"pointer"},onMouseEnter:N?void 0:T=>{const K=T.currentTarget.getBoundingClientRect(),W=[B.label,B.sublabel].filter(Boolean).join(" ");let V;if(C){const U=(p??[]).map((P,$)=>({text:`${P}: ${H[$]??0}`,color:(d??[])[$]})),re=U.filter((P,$)=>(H[$]??0)>0);V=re.length?re:U}else m&&!h?V=[{text:`${r} ${Qt(B.a)}%`,color:n},{text:`${o} ${Qt(B.b)}%`,color:a}]:m&&B.rawB!==void 0?V=[{text:`${m.total} ${B.rawB}`},{text:`${m.done} ${B.rawA??0}`,color:n}]:h?V=[{text:`${r}: ${Qt(B.a)}`,color:n}]:V=[{text:`${r}: ${Qt(B.a)}`,color:n},{text:`${o}: ${Qt(B.b)}`,color:a}];A({rect:{left:K.left,top:K.top,right:K.right,bottom:K.bottom,width:K.width,height:K.height},title:W,items:V})},onMouseLeave:w,children:!N&&(C?t.jsx("div",{className:"manager-bar-chart-stack",style:x,children:(()=>{const T=H.reduce((W,V,U)=>V>0?U:W,-1);let K=v;return H.map((W,V)=>{if(W<=0)return null;const U=Math.min(K,W/f*v);return K-=U,t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:U,background:(d??[])[V],borderRadius:V===T?"6px 6px 0 0":void 0}},V)})})()}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...x,height:O,background:n}}),!h&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...x,height:j,background:a}})]}))},k)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((B,k)=>{const N=B.a===-1;return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${N?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[B.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),B.label]}),B.sublabel&&t.jsx("span",{className:"caption-1",children:B.sublabel})]},k)})})]})})}),b&&t.jsx(Rn,{anchorRect:b.rect,title:b.title,items:b.items,showIndex:!1,closeOnOutsideClick:!1})]})}function cl({control:e}){const{t:n}=de.useTranslation(),{activeOptions:a,activeIdx:r,range:o,setRange:i,handlePrev:l,handleNext:c,periodOptions:u,period:d,setPeriod:p}=e,m=d==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),h=d==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(ie,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),t.jsx(Jt,{value:o,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(ie,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:h,showTooltipInfo:h,disabled:r<=0,onClick:c}),t.jsx(On,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:u,value:d,onChange:C=>p(C),size:32})]})}function ul(e,n,a){const r=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(o,i)=>{const l=new Date(n);l.setDate(n.getDate()+i);const c=(e[`${l.getFullYear()}\uB144 ${l.getMonth()+1}\uC6D4`]?.daily??[])[l.getDate()-1],u=c?.a===-1||l>r;return{dt:l,entry:c,isFuture:u}})}function I4(e,n,a,r){const{period:o,monthRange:i,weekRange:l,weekRanges:c,DOW:u}=n,d=r?.startsWith("ko"),p=qn(),m=p.getFullYear(),h=p.getMonth()+1,C=p.getDate();if(o==="month"){const v=e[i]??{weekly:[],daily:[]},g=i.match(/^(\d+)년 (\d+)월$/),x=g?Number(g[1]):null,_=g?Number(g[2]):null,b=x&&_?Cn(x,_-1):1;return v.weekly.map((A,w)=>{const D=w+1;let B=A.label,k=!1,N=!1;if(x&&_){const I=b+w*7,O=new Date(x,_-1,I+6),j=O.getMonth()+1,H=O.getDate(),T=j===_?`${H}`:`${j}/${H}`;B=a("manager.chart.weekRange",{start:I,end:T});const K=new Date(m,h-1,C).getTime();k=K>=new Date(x,_-1,I).getTime()&&K<=O.getTime(),N=x>m||x===m&&(_>h||_===h&&I>C)}return{...A,label:B,sublabel:d?`${il[D-1]??D}\uC8FC`:`Week ${D}`,isToday:k,a:N?-1:A.a,b:N?0:A.b}})}const y=c.find(v=>v.value===l);if(!y)return[];const f=new Date(y.year,y.month-1,Cn(y.year,y.month-1)+y.week*7);return ul(e,f,p).map(({dt:v,entry:g,isFuture:x})=>{const _=v.getMonth()+1,b=v.getDate(),A=v.getFullYear();return{label:_===y.month&&A===y.year?`${b}`:`${_}/${b}`,sublabel:u[v.getDay()]??"",a:x?-1:g&&g.a>0?g.a:0,b:x?0:g&&g.b>0?g.b:0,isToday:A===m&&_===h&&b===C,...g?.parts?{parts:x?g.parts.map(()=>0):g.parts}:{}}})}const F4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function O4({size:e="medium",barWidth:n,titleKey:a,data:r,colorA:o,colorB:i,labelAKey:l,labelBKey:c,showTotal:u=!1,totalUnitKey:d,totalLabelKey:p,control:m,hideControls:h=!1,rate:C=!1,tightMax:y=!1,avgMode:f=!1,totalFormat:v,series:g,loading:x=!1,onDetail:_,inGrid:b=!1}){const{t:A,i18n:w}=de.useTranslation(),D=F4[e],B=ll(r),k=m??B,N=s.useMemo(()=>I4(r,k,A,w.language),[r,k,A,w.language]),I=s.useMemo(()=>{if(!C)return N;const T=k.period==="month"?k.monthRange.match(/^(\d+)년 (\d+)월$/):null,K=qn();return N.map((W,V)=>{let U=W.a===-1?-1:W.b>0?Math.round(W.a/W.b*100):0;if(T&&W.a!==-1){const re=Number(T[1]),P=Number(T[2])-1,$=ul(r,new Date(re,P,Cn(re,P)+V*7),K).filter(M=>!M.isFuture);U=$.length?Math.round($.reduce((M,{entry:L})=>M+(L&&L.b>0?L.a/L.b*100:0),0)/$.length):0}return{...W,a:U,b:W.a===-1?0:c&&W.parts&&W.parts[1]>0?Math.round(W.parts[0]/W.parts[1]*100):0,rawA:W.a===-1?-1:W.a,rawB:W.b}})},[N,C,c,k.period,k.monthRange,r]),O=s.useMemo(()=>{if(C||f){const T=(k.period==="week"?N:r[k.monthRange]?.daily??[]).filter(W=>W.a!==-1);if(T.length===0)return 0;const K=C?T.reduce((W,V)=>W+(V.b>0?V.a/V.b*100:0),0):T.reduce((W,V)=>W+(V.a>0?V.a:0),0);return Math.round(K/T.length)}return I.reduce((T,K)=>T+(K.a>0?K.a:0)+(c&&K.b>0?K.b:0),0)},[I,N,C,f,c,k.period,k.monthRange,r]),j=g&&g.length>0?g.map(T=>({color:T.color,label:T.label})):[{color:o,label:A(l)},...c?[{color:i,label:A(c)}]:[]],H=e==="small";return t.jsx(Fr,{className:H?"manager-section--compact":e==="large"?"manager-section--full":void 0,inGrid:b,title:A(a),titleClassName:H?"h5 chart-section-title--small":void 0,headRight:H?void 0:t.jsxs(t.Fragment,{children:[!h&&t.jsx(cl,{control:k}),_&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(ie,{htmlType:"button",size:32,type:"dot",icon:"list",ariaLabel:A("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:_})})]}),subRow:t.jsxs(t.Fragment,{children:[u?C||f||p&&v?t.jsx(Fa,{label:H?void 0:`${A(k.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${A(p??l)}`,children:v?(v(O).match(/(\d+|[^\d]+)/g)??[]).map((T,K)=>/\d/.test(T)?t.jsx("span",{className:"barchart-total__num h0",children:T},K):t.jsx("span",{className:"barchart-total__unit h5",children:T},K)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:O}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:A(d)})]})}):t.jsxs(Fa,{children:[t.jsx("span",{className:"barchart-total__num h0",children:O}),t.jsx("span",{className:"barchart-total__unit h5",children:A(l)}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:A(d)})]}):t.jsx("span",{}),t.jsx(Ir,{items:j,className:"caption-1"})]}),children:x?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ba,{size:32})}):t.jsx(P4,{data:I,colorA:o,colorB:c?i:void 0,labelA:A(l),labelB:c?A(c):void 0,barWidth:n??D.barWidth,height:D.height,maxOverride:C?100:void 0,tightMax:y,seriesColors:g?.map(T=>T.color),seriesLabels:g?.map(T=>T.label),rateLabels:C?{total:A("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:A("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}const dl=(e,n,a)=>{const r=new Date(Date.UTC(e,n,a));return`${r.getUTCFullYear()}-${String(r.getUTCMonth()+1).padStart(2,"0")}-${String(r.getUTCDate()).padStart(2,"0")}`},pl=(e,n,a,r)=>({from:Ls(e,n,a),to:new Date(Ls(e,n,a+r).getTime()-1),fromYmd:dl(e,n,a),toYmd:dl(e,n,a+r-1)});function H4(e,n=0){if(e.period==="month"){const o=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=qn(),l=o?Number(o[1]):i.getFullYear(),c=(o?Number(o[2]):i.getMonth()+1)-1+n,u=new Date(Date.UTC(l,c+1,0)).getUTCDate();return pl(l,c,1,u)}const a=e.weekRanges.find(o=>o.value===e.weekRange);if(!a){const o=new Date,i=Mn();return{from:o,to:o,fromYmd:i,toYmd:i}}const r=Cn(a.year,a.month-1);return pl(a.year,a.month-1,r+(a.week+n)*7,7)}const ml={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function hl(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function fl({done:e,total:n,segments:a,color:r="var(--color-main)",size:o="medium",strokeWidth:i,label:l="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof o=="number"?o:ml[o].diameter,p=i??(typeof o=="number"?12:ml[o].strokeWidth),m=d/2,h=(d-p)/2,C=2*Math.PI*h;if(a&&a.length>0){const g=a.reduce((x,_)=>{const b=x.length>0?x[x.length-1].acc:0,A=Number.isFinite(_.ratio)?_.ratio:0,w=Math.max(0,Math.min(A,1-b));return x.push({color:_.color,rotate:-90+b*360,dash:C*w,acc:b+w}),x},[]);return t.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),g.map((x,_)=>x.dash>0&&t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:x.color,strokeWidth:p,strokeDasharray:`${x.dash} ${C}`,strokeLinecap:"round",transform:`rotate(${x.rotate} ${m} ${m})`},_))]})})}const y=(n??0)>0?Math.min((e??0)/n,1):0,f=C*y,v=C-f;return t.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),y>0&&t.jsx("circle",{cx:m,cy:m,r:h,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${f} ${v}`,strokeLinecap:y<.02||y>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!c&&t.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":o==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:hl(y)}),!u&&t.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||o==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function V4({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:o,legend:i,loading:l,className:c,inGrid:u=!1,...d}){const{t:p}=de.useTranslation();if(!e)return t.jsx(fl,{...d});const m=(d.total??0)>0?hl(Math.min((d.done??0)/d.total,1)):0,h=d.size==="small",C=d.size==="large",y=[c,h?"manager-section--compact":C?"manager-section--full":""].filter(Boolean).join(" ")||void 0,f=a&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(Ue,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(Fr,{className:y,inGrid:u,title:p(e),titleClassName:h?"h5 chart-section-title--small":void 0,headRight:f||(h?void 0:n),subRow:(r||i)&&t.jsxs(t.Fragment,{children:[r?t.jsxs(Fa,{label:!h&&o?p(o):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:m}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),i&&t.jsx(Ir,{items:i})]}),children:l?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ba,{size:32})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(fl,{...d,hideCenter:h||d.hideCenter})})})}function z4({label:e,value:n,change:a,changeType:r,icon:o,tooltip:i,onClick:l}){const c=s.useRef(null),{anchorRect:u,openAt:d,close:p}=Ma(),m=s.useCallback(()=>{i&&c.current&&d(c.current)},[i,d]),h=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),C=a===void 0?void 0:a>0?`+${a}`:`${a}`,y=s.useCallback(f=>{l&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),l())},[l]);return t.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?y:void 0,onPointerEnter:m,onPointerLeave:p,onFocus:m,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,n,C].filter(f=>f!==void 0&&f!=="").join(" "):void 0,children:[i&&u&&t.jsx(kn,{anchorRect:{left:u.left,top:u.top+21,right:u.right,bottom:u.bottom,width:u.width,height:u.height},text:i}),t.jsxs("div",{className:"manager-stat-card__label-row",children:[t.jsx("span",{className:"manager-stat-card__label h5",children:e}),o&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(Ue,{icon:o,className:"manager-stat-card__icon-inner"})})]}),t.jsx("div",{className:"manager-stat-card__content",children:t.jsxs("div",{className:"manager-stat-card__left",children:[t.jsx("div",{className:"manager-stat-card__value h2",children:n}),C&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${h??"neutral"} caption-1`,children:C})]})})]})}function Cl({value:e,onChange:n,min:a=0,max:r=100,step:o=1,orientation:i="horizontal",size:l=24,disabled:c=!1,ariaLabel:u,length:d,className:p,label:m,formatValue:h,labelPos:C,labelAlign:y="right",showMinMax:f=!1,minLabel:v,maxLabel:g,showBgTick:x=!1,showFillTick:_=!1,tickStep:b,tickShape:A="dot"}){n&&!u&&ta("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const w=Math.min(r,Math.max(a,e)),D=r>a?(w-a)/(r-a):0,B=i==="vertical",k=!n,N=L=>n?.(Number(L.target.value)),I=typeof d=="number"?`${d}px`:d,O={"--slider-ratio":String(D),"--slider-thumb":`${l}px`,...I?B?{height:I}:{width:I}:{}},j=b??o,H=(x||_)&&j>0&&r>a?Math.floor((r-a)/j+1e-6):0;if(H>0&&H<=100){const L=A!=="dash",z=le=>L?`radial-gradient(circle, ${le} 0.5px, transparent 1px)`:B?`linear-gradient(to bottom, transparent calc(50% - 2px), ${le} calc(50% - 2px), ${le} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${le} calc(50% - 2px), ${le} calc(50% + 2px), transparent calc(50% + 2px))`,R=L?"2px":"4px",E=[],F=[],ae=[];for(let le=0;le<=H;le++){const se=le*j/(r-a);if(se>1+1e-6)break;const oe=`${((B?1-se:se)*100).toFixed(4)}%`,Ce=se<=D+1e-6;if(Ce?!_:!x)continue;const X=Ce?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";E.push(z(X)),F.push(B?`${R} var(--slider-thumb)`:`var(--slider-thumb) ${R}`),ae.push(B?`center ${oe}`:`${oe} center`)}E.push(B?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),F.push("100% 100%"),ae.push("0 0"),O.backgroundImage=E.join(", "),O.backgroundSize=F.join(", "),O.backgroundPosition=ae.join(", "),O.backgroundRepeat="no-repeat"}const T=h?h(w):m==="percent"?`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`:m==="count"?`${w} / ${r}`:w===a&&v?v:w===r&&g?g:void 0,K=t.jsx("input",{type:"range",className:ve("slider",`slider--${i}`,k&&"slider--static",!m&&!f&&p),min:a,max:r,step:o,value:w,disabled:c,readOnly:k,tabIndex:k?-1:void 0,"aria-label":u,"aria-valuetext":T,"aria-orientation":i,onChange:N,style:O});if(!m&&!f)return K;const W=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??a}),V=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:g??r}),U=f?t.jsxs("div",{className:ve("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[B?V:W,K,B?W:V]}):K;if(!m)return U;const re=C??(B?"bottom":"right"),P=`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`,$=h?h(w):m==="percent"?P:m==="count"?`${w} / ${r}`:String(w),M=t.jsx("span",{className:"slider-wrap__value body-3b",children:$});return t.jsxs("div",{className:ve("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${re}`,`slider-wrap--align-${y}`,p),children:[U,M]})}const W4=.86,q4=250,Or=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),Hr=(e,n,a,r)=>{const o=Or(e,n,a,r);return`${o<0?"-":"+"}${Math.abs(o)} dB`};function Vr({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:o,labelPos:i,labelAlign:l="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:p=25,className:m,ariaLabel:h}){const C=s.useRef(null),y=s.useRef(null),f=s.useRef(null),v=s.useRef(null),[g,x]=s.useState(null);s.useEffect(()=>{const w=K=>{const W=Hr(K,u,d,p);f.current&&(f.current.textContent=W);const V=C.current;V&&(V.setAttribute("aria-valuenow",String(Or(K,u,d,p))),V.setAttribute("aria-valuetext",W))},D=e??c0(n)??(g&&g.el===n?g.node:null),B=y.current;if(!D||!B){B?.style.setProperty("--meter-level","0"),w(c);let K=!1;return!e&&n&&Na(n).then(W=>{!K&&W&&x({el:n,node:W})}),()=>{K=!0}}Cr();const k=new Float32Array(D.fftSize);let N=0,I=0,O=0,j=0,H=null;const T=K=>{const W=u0(D,k);N=W>N?W:N*W4;const V=N>1e-5?20*Math.log10(N):-1/0,U=Math.max(c,V),re=U-u,P=Math.min(1,Math.max(0,(re-d)/(p-d)));if(B.style.setProperty("--meter-level",P.toFixed(3)),I+=U,O+=1,K-j>=q4){const $=I/O;H=H==null?$:H*.6+$*.4,w(H),I=0,O=0,j=K}v.current=requestAnimationFrame(T)};return v.current=requestAnimationFrame(T),()=>{v.current!=null&&cancelAnimationFrame(v.current),v.current=null}},[e,n,g,c,u,d,p]);const _=typeof r=="number"?`${r}px`:r,b=t.jsx("div",{className:"audio-meter__track",style:_?a==="vertical"?{height:_}:{width:_}:{},children:t.jsx("div",{ref:y,className:"audio-meter__fill"})}),A=i??(a==="vertical"?"bottom":"right");return t.jsxs("div",{ref:C,className:ve("audio-meter",`audio-meter--${a}`,o&&`audio-meter--label-${A}`,o&&`audio-meter--align-${l}`,m),role:"meter","aria-label":h,"aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":Or(c,u,d,p),"aria-valuetext":Hr(c,u,d,p),children:[b,o&&t.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:Hr(c,u,d,p)})]})}const gl=260;function bl({message:e,position:n,duration:a,onClose:r}){const[o,i]=s.useState(!1),[l,c]=s.useState(!1),u=s.useRef(l),d=s.useRef(o);s.useEffect(()=>{u.current=l},[l]),s.useEffect(()=>{d.current=o},[o]);const p=s.useRef(null),m=s.useRef(""),h=s.useRef(r);s.useEffect(()=>{h.current=r});const C=a,y=s.useRef(null),f=s.useRef(0),v=s.useRef(0),g=s.useRef(!1),x=s.useRef(null),_=s.useRef(null),b=s.useRef(null),A=s.useRef(null),w=s.useRef(()=>{});w.current=k=>{k<0||(f.current=Date.now(),v.current=k,y.current=setTimeout(()=>{y.current=null,i(!1),x.current=setTimeout(()=>{c(!1);try{h.current()}catch{}},gl)},k))};const D=s.useCallback(()=>{g.current||!y.current||(g.current=!0,clearTimeout(y.current),y.current=null,v.current=Math.max(0,v.current-(Date.now()-f.current)))},[]),B=s.useCallback(()=>{g.current&&(g.current=!1,w.current(v.current))},[]);return s.useEffect(()=>{if(e!==m.current&&(y.current&&(clearTimeout(y.current),y.current=null),x.current&&(clearTimeout(x.current),x.current=null)),e){if(d.current)return C>0&&!y.current&&(g.current?v.current=C:w.current(C)),m.current=e,()=>{y.current&&(clearTimeout(y.current),y.current=null),x.current&&(clearTimeout(x.current),x.current=null)};const k=()=>{const N=p.current;if(N)try{N.classList.remove("is-visible"),N.style.transition="none",n==="top"?N.style.transform="translateX(-50%) translateY(-16px)":N.style.transform="translateX(-50%) translateY(16px)",N.style.opacity="0",N.offsetWidth,N.style.transition="",N.classList.add("is-visible"),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{A.current=null;try{N.style.opacity="",N.style.transform="",N.style.transition=""}catch{}},60)}catch{}};u.current?(k(),i(!0)):(c(!0),_.current=requestAnimationFrame(()=>{b.current=requestAnimationFrame(()=>{k(),i(!0)})})),C>0&&(g.current=!1,w.current(C))}else i(!1),x.current=setTimeout(()=>c(!1),gl);return m.current=e,()=>{y.current&&clearTimeout(y.current),x.current&&clearTimeout(x.current),_.current&&cancelAnimationFrame(_.current),b.current&&cancelAnimationFrame(b.current),A.current&&clearTimeout(A.current),y.current=null,x.current=null,_.current=null,b.current=null,A.current=null}},[e,C,n]),{mounted:l,showing:o,popupRef:p,pause:D,resume:B}}function Kn({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:o=2e3}){const{mounted:i,showing:l,popupRef:c,pause:u,resume:d}=bl({message:e,position:n,duration:o,onClose:r}),p=s.useRef(null);if(!i)return null;const m=a==="notice"||a==="warning"?a:"normal",h=t.jsx("div",{ref:c,className:`toast toast--${n} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:C=>{p.current=C.pointerType},onMouseEnter:()=>{p.current!=="touch"&&u()},onMouseLeave:d,onFocusCapture:u,onBlurCapture:d,children:t.jsx("div",{className:`toast__inner toast__inner--${m} body-2`,children:e})});return typeof document<"u"?Ut.createPortal(h,document.body):h}const U4=24;function G4({value:e,max:n=100,size:a=8,color:r,trackColor:o,label:i,formatValue:l,labelPos:c,labelAlign:u="right",ariaLabel:d,className:p}){const m=Number.isFinite(n)&&n>0?n:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),C=h/m*100,y=Number.isFinite(n)&&n>0?n:0,f=c??(a>=U4?"inside":"bottom"),v=f==="center"?"inside":f,g=v==="inside"&&(u==="left"?C>=15:u==="center"?C>=50:C>=85),x={};return r&&(x["--progress-bar-fill"]=r),o&&(x["--progress-bar-track"]=o),t.jsxs("div",{className:ve("progress-bar",`progress-bar--${a}`,`progress-bar--label-${v}`,i&&`progress-bar--align-${u}`,i&&g&&"progress-bar--label-on-fill",p),style:x,children:[t.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":y,"aria-valuetext":i?l?l(h):i==="percent"?void 0:i==="raw"?String(h):`${h} / ${y}`:void 0,"aria-label":d,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${C}%`}})}),i&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(h):i==="percent"?`${Math.round(C)}%`:i==="raw"?String(h):`${h} / ${y}`})]})}const K4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Y4="rgba(255, 255, 255, 0.16)";function yl({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:o,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=de.useTranslation(),d=on("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const p=Number.isInteger(n)?Math.max(0,Math.min(n,e-1)):0,m=c??u("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};return a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),o&&(a||(h["--pi-inactive-bg"]=Y4),r||(h["--pi-inactive-color"]="var(--color-white)")),i==="dot"?t.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:h,role:l?"status":"img","aria-label":l?void 0:m,children:[l&&t.jsx("span",{style:K4,children:m}),Array.from({length:e}).map((C,y)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${y<p?" done":y===p?" active":""}`},y))]}):d?t.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:h,role:"list","aria-label":m,children:t.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}):t.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":m,children:Array.from({length:e}).map((C,y)=>t.jsx("span",{role:"listitem","aria-current":y===p?"step":void 0,className:`progress-indicator-dot ${y<p?" done":y===p?" active":""} body-3`,children:y+1},y))})}function Z4(e){if(!e)return[];const n=[];let a=0,r="";for(const o of e.trim()){if(o==="("?a++:o===")"&&a--,/\s/.test(o)&&a===0){r&&(n.push(r),r="");continue}r+=o}return r&&n.push(r),n}function X4({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function zr({variant:e="default",children:n,className:a,draggable:r,onClick:o,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,expandedContent:d}){const p=s.useCallback(m=>{o&&m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),o())},[o]);return e==="loading"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--loading",children:t.jsx(ba,{size:28})})}):e==="empty"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--empty body-3",children:n})}):t.jsxs("div",{className:"table-row-wrap",children:[t.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:o,onKeyDown:o?p:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,role:o?"button":void 0,tabIndex:o?0:void 0,children:n}),d&&t.jsx("div",{className:"table-row-expand",children:d})]})}function J4({dir:e}){return t.jsx(e==="asc"?Uo:qo,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Q4({children:e,onClick:n,className:a,sortDir:r,onResizeStart:o}){const i=s.useCallback(l=>{n&&l.target===l.currentTarget&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),n())},[n]);return t.jsxs("div",{onClick:n,onKeyDown:n?i:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:ve("table-field body-3",a,r?"table-field--sorted":"",o?"table-field--resizable":""),children:[e,r&&t.jsx(J4,{dir:r}),o&&t.jsx("span",{className:"table-field__resizer",onPointerDown:o,onClick:l=>l.stopPropagation(),"aria-hidden":"true"})]})}function Wr({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:o,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:c,onRowDragStart:u,onRowDragEnd:d,draggingId:p,gridTemplateColumns:m,mobileGridTemplateColumns:h,resizable:C=!1,resizeMode:y="grow",resizeStorageKey:f,size:v="small",title:g,icon:x,count:_,collapsed:b=!1,onToggleCollapse:A,headerActions:w,empty:D,loading:B,dragOver:k=!1,onDragOver:N,onDragLeave:I,onDrop:O,renderExpandedRow:j,expandedId:H}){const{t:T}=de.useTranslation(),K=on("(max-width: 767px)"),W=h&&K?h:null,V=C&&!W,U=48,re=f?`table-cols:${f}`:null,P=s.useRef(null),$=s.useRef(()=>!1),M=s.useRef([]),L=s.useRef(null),z=Q=>{if(!Q||typeof window>"u")return null;try{const ee=JSON.parse(window.localStorage.getItem(Q)??"null");return Array.isArray(ee)&&ee.length>0&&ee.every(ke=>typeof ke=="number"&&Number.isFinite(ke)&&ke>0)?ee:null}catch{return null}},[R,E]=s.useState(()=>z(re)),[F,ae]=s.useState(re);F!==re&&(ae(re),E(z(re)));const le=s.useRef(R);s.useEffect(()=>{le.current=R},[R]);const se=s.useCallback(Q=>{const ee=L.current;if(!ee)return;const ke=le.current;if(ke){const De=[...ke];if(ee.next!=null&&ee.startWNext!=null){const Oe=Q.clientX-ee.startX,Le=Math.max(U-ee.startW,Math.min(ee.startWNext-U,Oe));De[ee.index]=ee.startW+Le,De[ee.next]=ee.startWNext-Le}else De[ee.index]=Math.max(U,ee.startW+(Q.clientX-ee.startX));le.current=De,E(De)}},[]),oe=s.useCallback(()=>{if(L.current=null,window.removeEventListener("pointermove",se),window.removeEventListener("pointerup",oe),window.removeEventListener("pointercancel",oe),document.body.style.cursor="",document.body.style.userSelect="",re&&le.current)try{window.localStorage.setItem(re,JSON.stringify(le.current))}catch{}},[se,re]),Ce=s.useCallback((Q,ee)=>{ee.preventDefault(),ee.stopPropagation();const ke=P.current;if(!ke)return;const De=Array.from(ke.children).map(Le=>Le.getBoundingClientRect().width),Oe=y==="fit"?e.findIndex((Le,We)=>We>Q&&Le.resizable!==!1):-1;L.current=Oe>=0?{index:Q,startX:ee.clientX,startW:De[Q],next:Oe,startWNext:De[Oe]}:{index:Q,startX:ee.clientX,startW:De[Q]},le.current=De,E(De),window.addEventListener("pointermove",se),window.addEventListener("pointerup",oe),window.addEventListener("pointercancel",oe),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[se,oe,y,e]),X=s.useCallback(()=>{const Q=P.current,ee=Q?.closest(".table-wrap");if(!Q||!ee)return;const ke=ee.style.getPropertyValue("--table-grid-cols");ee.style.setProperty("--table-grid-cols",e.map((ye,He)=>$.current(He)?M.current[He]:"max-content").join(" "));const De=Array.from(ee.querySelectorAll(".table-row")).filter(ye=>!ye.classList.contains("table-row--loading")&&!ye.classList.contains("table-row--empty")),Oe=e.map((ye,He)=>{let Ee=Q.children[He]?.getBoundingClientRect().width??0;for(const qe of De){const Ye=qe.children[He];Ye&&(Ee=Math.max(Ee,Ye.getBoundingClientRect().width))}const Pe=$.current(He)?parseFloat(M.current[He]):NaN;return Number.isFinite(Pe)?Pe:Math.max(U,Math.ceil(Ee))}),Le=window.getComputedStyle(Q),We=Q.clientWidth-(parseFloat(Le.paddingLeft)||0)-(parseFloat(Le.paddingRight)||0);ke?ee.style.setProperty("--table-grid-cols",ke):ee.style.removeProperty("--table-grid-cols");let Re=Oe;const et=Oe.reduce((ye,He,Ee)=>ye+($.current(Ee)?He:0),0),Ke=Oe.reduce((ye,He,Ee)=>ye+($.current(Ee)?0:He),0),Ge=We-et;if(We>0&&Ke>0&&Ge>0){const ye=Ge/Ke;Re=Oe.map((Ee,Pe)=>$.current(Pe)?Ee:Math.max(U,Math.round(Ee*ye)));const He=Math.round(Ge-Re.reduce((Ee,Pe,qe)=>Ee+($.current(qe)?0:Pe),0));if(He!==0){let Ee=-1;Re.forEach((Pe,qe)=>{!$.current(qe)&&(Ee<0||Pe>Re[Ee])&&(Ee=qe)}),Ee>=0&&(Re[Ee]=Math.max(U,Re[Ee]+He))}}if(E(Re),re)try{window.localStorage.setItem(re,JSON.stringify(Re))}catch{}},[e,y,re]);s.useEffect(()=>()=>{L.current&&(window.removeEventListener("pointermove",se),window.removeEventListener("pointerup",oe),window.removeEventListener("pointercancel",oe),document.body.style.cursor="",document.body.style.userSelect="")},[se,oe]);const te=Z4(m),Y=te.filter(Q=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(Q));Y.length>0&&ta(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${Y.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${m})`);const ge=Q=>/^\d+(\.\d+)?px$/.test(te[Q]??"");$.current=ge,M.current=te;const xe=Q=>y==="fit"&&!ge(Q)?"fr":"px",Te=R&&R.length===e.length&&(y==="fit"||a.length>0),ue=W??(Te?e.map((Q,ee)=>Q.resizable===!1&&te[ee]?te[ee]:`${R[ee]}${xe(ee)}`).join(" "):m),be=ue?{"--table-grid-cols":ue}:void 0,Ae=g!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${v}${V?" table-wrap--resizable":""}${k?" table-wrap--dragover":""}${b?" table-wrap--collapsed":""}`,style:be,onDragOver:N,onDragLeave:I,onDrop:O,children:t.jsxs("div",{className:"table body-2",children:[Ae&&t.jsxs("div",{className:"table-header",onClick:A,role:A?"button":void 0,tabIndex:A?0:void 0,"aria-expanded":A?!b:void 0,onKeyDown:A?Q=>{Q.target===Q.currentTarget&&(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),A())}:void 0,children:[A&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:b?"chevron-right":"chevron-down",ariaLabel:b?T("common.expand","\uD3BC\uCE58\uAE30"):T("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),x&&t.jsx(Ue,{icon:x,label:typeof g=="string"?g:void 0,className:"table-header__icon"}),t.jsx("span",{className:"table-header__title h5b",children:g}),_!==void 0&&t.jsx("span",{className:"table-header__count body-3b",children:_}),w&&t.jsx("span",{className:"table-header__actions",onClick:Q=>Q.stopPropagation(),children:w})]}),!b&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{className:"table-fields table-fields--groups",children:n.map((Q,ee)=>t.jsx("div",{className:ve("table-field body-3",Q.className),style:{gridColumn:`span ${Q.span}`},children:Q.label},ee))}),t.jsxs("div",{className:ve("table-fields-strip",V&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:P,children:e.map((Q,ee)=>t.jsx(Q4,{onClick:Q.onClick,className:Q.className,sortDir:Q.sortDir,onResizeStart:V&&ee<e.length-1&&Q.resizable!==!1&&(y!=="fit"||e.some((ke,De)=>De>ee&&ke.resizable!==!1))?ke=>Ce(ee,ke):void 0,children:Q.label},ee))}),V&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:T("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:T("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:X})]}),t.jsx("div",{className:"table-body",children:B?t.jsx(zr,{variant:"loading"}):a.length===0&&D?t.jsx(zr,{variant:"empty",children:D}):a.map((Q,ee)=>{const ke=p!=null&&Q.id===p,De=!!o&&(i?i(Q):!0),Oe=H!=null&&(H instanceof Set?H.has(Q.id):Q.id===H);return t.jsx(zr,{className:`${De?" table-row--clickable":""}${u?" table-row--draggable":""}${ke?" table-row--dragging":""}`.trim(),draggable:!!u,onClick:De?()=>o(Q):void 0,onMouseEnter:l?Le=>l(Q,Le):void 0,onMouseLeave:c?Le=>c(Q,Le):void 0,onDragStart:u?Le=>u(Q,Le):void 0,onDragEnd:d?Le=>d(Q,Le):void 0,expandedContent:Oe&&j?j(Q):void 0,children:r(Q).map((Le,We)=>t.jsx(X4,{className:Le.className,style:Le.style,children:Le.content},We))},Q.id!=null?`${typeof Q.id}:${Q.id}`:`__idx:${ee}`)})})]})]})})}function vl(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const eb={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function tb(e,n){const a=eb[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}function xl(e,n){return n!=="wornAt"?String(e[n]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function nb({rows:e,onSelect:n,onDelete:a,onWear:r,onRelease:o,onAdd:i}){const{t:l}=de.useTranslation(),c=y=>y==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=h2(),p=s.useMemo(()=>{if(!u)return e;const{key:y,asc:f}=u;return[...e].sort((v,g)=>{const x=y==="worn"?Number(g.worn)-Number(v.worn):xl(v,y).localeCompare(xl(g,y),"ko");return f?x:-x})},[e,u]),{pageRows:m,pageSizeProps:h,paginationProps:C}=m2(p,u);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(Pr,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:h,pagination:C,actions:i&&t.jsx(ie,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),t.jsx(Wr,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...d(l("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},d(l("device.direction.label","\uBC29\uD5A5"),"side"),d(l("device.deviceType","\uC885\uB958"),"device"),d(l("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),d(l("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),d(l("device.productName","\uC81C\uD488\uBA85"),"productName"),d(l("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:m.map((y,f)=>({id:y.id??`${y.side}-${f}`,row:y})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:y})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:f=>f.stopPropagation(),children:t.jsx(rl,{checked:y.worn,disabled:y.worn?!o:!r,ariaLabel:y.worn?l("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):l("customers.device.wear","\uCC29\uC6A9"),onChange:f=>{f?r?.(y):o?.(y)}})})},{content:t.jsx("span",{children:c(y.side)})},{content:y.device?t.jsx(lt,{size:"small",variant:vl(y.device),fill:"soft",label:tb(y.device,l)}):t.jsx("span",{})},{content:t.jsx("span",{children:y.brand})},{content:t.jsx("span",{children:y.fitType||"-"})},{content:t.jsx("span",{children:y.productName||"-"})},{content:t.jsx("span",{className:"dlp-date",children:y.wornYear?`${y.wornYear}.${y.wornMonth}.${y.wornDay}`:"-"})},...a?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(ie,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:l("common.delete","\uC0AD\uC81C"),onClick:f=>{f?.stopPropagation(),a(y)}})})}]:[]],onRowClick:({row:y})=>n(y),empty:l("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function _l(e,n){return e?{role:n?.role??"button",tabIndex:0,...n?.selected===void 0?{}:{"aria-selected":n.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function ab(e,n){return new Date(e,n+1,0).getDate()}function rb(e,n){return new Date(e,n,1).getDay()}function ob({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r}){const{t:o}=de.useTranslation(),i=s.useMemo(()=>o("calendar.dow",{returnObjects:!0}),[o]),l=Mn(),[c,u]=s.useState(()=>Number(l.slice(0,4))),[d,p]=s.useState(()=>Number(l.slice(5,7))-1),[m,h]=s.useState(null),C=s.useRef(null),y=s.useMemo(()=>{const b={};return e.forEach(A=>{b[A.date]||(b[A.date]=[]),b[A.date].push(A)}),b},[e]),f=s.useMemo(()=>{const b=ab(c,d),A=rb(c,d),w=[];for(let D=0;D<A;D++)w.push(null);for(let D=1;D<=b;D++)w.push(D);for(;w.length<35;)w.push(null);return w},[c,d]),v=s.useCallback(()=>{d===0?(u(b=>b-1),p(11)):p(b=>b-1)},[d]),g=s.useCallback(()=>{d===11?(u(b=>b+1),p(0)):p(b=>b+1)},[d]),x=b=>`${c}-${String(d+1).padStart(2,"0")}-${String(b).padStart(2,"0")}`,_=b=>x(b)===l;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:v,"aria-label":o("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Ue,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:o("calendar.yearMonth",{year:c,month:d+1})}),t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:g,"aria-label":o("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(Ue,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsxs("div",{className:"calendar-nav__legend",children:[t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.visited","\uBC29\uBB38")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.scheduled","\uC608\uC57D")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[i.map(b=>t.jsx("div",{className:"calendar-day-header body-3",children:b},b)),f.map((b,A)=>{if(b===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${A}`);const w=b,D=x(w),B=y[D]??[],k=m===D;return t.jsxs("div",{className:`calendar-cell${_(w)?" today":""}${k?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?o("calendar.addOnDate",{date:D}):void 0,"aria-current":_(w)?"date":void 0,onClick:r?()=>r(D):void 0,onKeyDown:r?N=>{N.target===N.currentTarget&&(N.key!=="Enter"&&N.key!==" "||(N.preventDefault(),r(D)))}:void 0,onDragOver:a?N=>{N.preventDefault(),h(D)}:void 0,onDragLeave:a?N=>{N.currentTarget.contains(N.relatedTarget)||h(null)}:void 0,onDrop:a?N=>{N.preventDefault(),C.current!=null&&(a(C.current,D),C.current=null),h(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:w}),t.jsx("div",{className:"calendar-cell__badges",children:B.map((N,I)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${N.status==="noVisit"?" calendar-visit-badge--no-visit":N.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?O=>{C.current=N.id,O.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{C.current=null,h(null)}:void 0,onClick:n?O=>{O.stopPropagation(),n(N)}:void 0,..._l(n?()=>n(N):void 0),"aria-label":[N.time?Ps(N.time,o):null,N.customer,o(N.status==="noVisit"?"calendar.legend.noVisit":N.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[N.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:Ps(N.time,o)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:N.customer}),N.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},N.id??I))})]},w)})]})]})}const sb={page:"h3",pagePopup:"h4",popup:"h5"};function Yn({type:e="page",title:n,headingLevel:a,icon:r,action:o,disc:i,children:l,className:c,style:u}){const d=sb[e],p=n||i||o||r,m=a?`h${a}`:"div";return t.jsxs("div",{className:ve("section",`section--${e}`,c),style:u,children:[p&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[r&&t.jsx(Ue,{icon:r,label:typeof n=="string"?n:void 0,className:"section__icon"}),t.jsxs("div",{className:"section__title-group",children:[n&&t.jsx(m,{className:`section__title ${d}`,children:n}),i&&t.jsx("div",{className:"section__disc body-3",children:i})]})]}),o&&t.jsx("div",{className:"section__action",children:o})]}),l]})}function wl({icon:e,label:n,tooltip:a,wrapperStyle:r,color:o,bgColor:i,useHover:l=!0,iconSize:c="medium"}){const u=c==="small",d=ve("category-icon",u?"category-icon--small":""),p=u?16:20,m=s.useRef(null),[h,C]=s.useState(!1),y=s.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!o&&!i?w:{...w,...o?{color:o,"--t-item-fg":o}:{},...i?{"--t-item-bg":i}:{}}},[r,o,i]),f=a||n,[v,g]=s.useState(null);s.useLayoutEffect(()=>{h&&g(m.current?.getBoundingClientRect()??null)},[h]),s.useEffect(()=>{if(!l&&h)try{C(!1)}catch{}},[l,h]),s.useEffect(()=>{if(!h)return;const w=D=>{const B=m.current;if(!B)return;const k=D.target;k&&!B.contains(k)&&C(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[h]);const x=s.useCallback(()=>{l&&C(!0)},[l]),_=s.useCallback(()=>{l&&C(!1)},[l]),b=s.useCallback(()=>C(!1),[]),A=s.useCallback(w=>{if(w.key==="Escape"){C(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),C(D=>!D))},[]);return t.jsxs("span",{ref:m,className:"category-icon__wrap",onPointerEnter:x,onPointerLeave:_,onFocus:x,onBlur:_,onKeyDown:A,role:"button",tabIndex:0,"aria-label":typeof f=="string"?f:void 0,"aria-haspopup":!!f,"aria-expanded":h,"data-tooltip-ignore":!0,children:[t.jsx(Ue,{icon:e,label:n,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:y,size:p}),h&&f&&t.jsx(kn,{anchorRect:v,text:typeof f=="string"?f:void 0,offset:8,onClose:b,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}let An=null;function qr(e){if(An&&An!==e)try{An()}catch{}return An=e,()=>{An===e&&(An=null)}}function Oa(e){if(An===e){An=null;try{e()}catch{}}}function ib(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const o=a.sentences||a.items||[],i=r(Array.isArray(o)?o:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function lb(e,n){const[a,r]=s.useState(!1),[o,i]=s.useState(-1),[l,c]=s.useState({key:"",urls:[]}),u=s.useRef(null),d=s.useRef(!1),p=s.useRef(null),m=s.useRef(null),[h,C]=s.useState(!1),y=s.useRef([]),{previewCodes:f,previewBucket:v}=ib(e,n),g=`${f.join(",")}|${v??""}`,x=s.useMemo(()=>l.key===g?l.urls:[],[l,g]);s.useEffect(()=>{if(!f.length)return;let b=!1;return(async()=>{const A=[],w=[];for(const D of f)try{const B=gs(D,v);if(!B){A.push("");continue}let k=null;try{k=await bs(B)}catch{}if(!k)try{const N=await ys(B);N&&(k=URL.createObjectURL(N),w.push(k))}catch{}A.push(k??"")}catch{A.push("")}b?w.forEach(D=>{try{URL.revokeObjectURL(D)}catch{}}):(y.current.forEach(D=>{try{URL.revokeObjectURL(D)}catch{}}),y.current=w,c({key:g,urls:A}))})(),()=>{b=!0}},[f.join(","),v]),s.useEffect(()=>()=>{y.current.forEach(b=>{try{URL.revokeObjectURL(b)}catch{}}),y.current=[]},[]);const _=s.useCallback(async b=>{if(b.stopPropagation(),b.preventDefault(),d.current){p.current&&Oa(p.current),d.current=!1;try{u.current?.pause()}catch{}r(!1),i(-1);return}if(!x.filter(Boolean).length)return;let A=null;const w=()=>{d.current=!1;try{u.current?.pause()}catch{}A?.()};p.current=w;const D=qr(w);d.current=!0,r(!0);for(let B=0;B<x.length&&d.current;B++){const k=x[B];if(k){i(B);try{await new Promise((N,I)=>{A=N;const O=new Audio(k);u.current=O,O.onended=()=>N(),O.onerror=()=>I(),O.play().catch(I)})}catch{break}}}D(),p.current===w&&(p.current=null,d.current=!1,r(!1),i(-1))},[x]);return s.useEffect(()=>()=>{p.current&&Oa(p.current),d.current=!1;try{u.current?.pause()}catch{}u.current=null},[]),{playing:a,playingIndex:o,previewUrls:x,previewHover:h,setPreviewHover:C,previewBtnRef:m,handlePreview:_}}const cb=e=>{if(!e)return[];const n=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(n)return[String(n)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const o=r;return o.sentence||o.text||o.context||o.question||o.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function Ur(e){const{index:n,type:a,trainingData:r,ariaLabel:o,depth:i,renderPopup:l,completed:c,completedIds:u,selectedIds:d,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:h,hideCheckBadge:C=!1,showTypeLabel:y=!1,onComplete:f,onSelect:v,onMore:g,countLabelOverride:x,size:_="square"}=e||{},{t:b}=de.useTranslation(),[A,w]=s.useState(!1),D=s.useRef(null),[B,k]=s.useState(!1);s.useEffect(()=>{D.current?.matches(":hover")&&k(!0)},[]);const{playing:N,playingIndex:I,previewUrls:O,previewHover:j,setPreviewHover:H,previewBtnRef:T,handlePreview:K}=lb(r,a?.key),W=s.useCallback(()=>{v?v():w(!0)},[v]),V=s.useCallback(()=>w(!1),[]),U=s.useCallback(()=>k(!0),[]),re=s.useCallback(()=>k(!1),[]),P=s.useCallback(()=>H(!0),[H]),$=s.useCallback(()=>H(!1),[H]),[M,L]=s.useState(null);s.useLayoutEffect(()=>{j&&L(T.current?.getBoundingClientRect()??null)},[j,T]);const[z,R]=s.useState(null);s.useLayoutEffect(()=>{B&&!A&&m&&R(D.current?.getBoundingClientRect()??null)},[B,A,m]);const E=s.useCallback(ye=>{ye.target===ye.currentTarget&&(ye.key==="Enter"||ye.key===" ")&&(ye.preventDefault(),W())},[W]),F=r||null,ae=s.useMemo(()=>{if(!m)return null;const ye=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,He=ye&&ye.length>0?ye:cb(F);return He&&He.length>0?He:null},[m,p,F]),le=s.useCallback(ye=>{ye.stopPropagation(),h?.()},[h]),se=s.useCallback(ye=>ye.stopPropagation(),[]),oe=s.useCallback(ye=>{typeof f=="function"&&f(ye)},[f]),Ce=c||(u&&r?.id!=null?u.has(String(r.id)):!1),X=!Ce&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);xi("speechear.popup.close",V);const te=Is(),Y=`${a?.label||""} ${n+1}`,ge=F?.title||F?.name||Y;let xe=a?.icon,Te,ue="",be="";try{const ye=F?.category_0||F?.category_main_code||F?.category_main,He=F?.category_1||F?.category_sub_code||F?.category_sub,Ee=te.find(Pe=>Pe.key===ye);Ee?.icon&&(xe=Ee.icon),!Te&&Ee?.color&&(Te={"--t-item-fg":Ee.color}),!Te&&F?.iconColor&&(Te={"--t-item-fg":F.iconColor}),ue=Ee?b(`topic.${Ee.key}`,{defaultValue:Ee.label||""}):"";try{const Pe=Ee?.subs?.find(qe=>qe.key===He);be=Pe?b(`topic.sub.${Pe.key}`,{defaultValue:Pe.label||""}):""}catch{}}catch{}const Ae=be?`${ue} / ${be}`:ue||a?.label||ge,Q=ye=>b("training.countQuestions",{n:ye}),ee=ye=>b("training.countSentences",{n:ye});let ke="";try{if(F)if(a?.key==="LISTEN_IN_NOISE"){let ye=0;Array.isArray(F.items)&&F.items.length>0?ye=F.items.length:Array.isArray(F.sentences)&&F.sentences.length>0?ye=F.sentences.length:F.sentences&&(ye=1),ke=ee(ye)}else if(a?.key==="SHORT_STORY"){let ye=1;Array.isArray(r?.items)?ye=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?ye=r.raw.items.length:Array.isArray(F?.questions)?ye=F.questions.length:Array.isArray(F?.sentences)&&(ye=F.sentences.length),ke=Q(ye)}else if(a?.key==="LONG_STORY"){let ye=1;if(Array.isArray(F.items)&&F.items.length>0){const He=F.items.reduce((Ee,Pe)=>{const qe=Pe.questionItems;return Array.isArray(qe)?Ee+qe.length:Array.isArray(Pe.questions)?Ee+Pe.questions.length:Ee},0);ye=He>0?He:F.items.length}else Array.isArray(F.questions)&&F.questions.length>0?ye=F.questions.length:Array.isArray(F.sentences)&&F.sentences.length>0&&(ye=F.sentences.length);ke=Q(ye)}else if(a?.key==="ORDERING_SENTENCE"){let ye=1;Array.isArray(F.items)&&F.items.length>0?ye=F.items.length:Array.isArray(F.sentences)&&F.sentences.length>0&&(ye=F.sentences.length),ke=ee(ye)}else Array.isArray(F.items)&&(ke=F.items.length>0?Q(F.items.length):"")}catch{}const De=_==="row",Oe=_==="list"||De,Le=_==="compact",We=_==="small",Re=We&&a?.key?z0().find(ye=>ye.key===a.key):void 0,et=Re?Fs[Re.key]:void 0,Ke=Re?et?b(`trainingType.${et}.title`,{defaultValue:Re.label}):Re.label??"":"",Ge=!!y&&!!a?.label&&a.label!==String(ge)||We&&!!Ke&&Ke!==String(ge);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:D,className:`training-block-button${Oe?" training-block-button--list":""}${De?" training-block-button--row":""}${Le?" training-block-button--compact":""}${We?" training-block-button--small":""}${Ce?" training-block-button--completed":""}${X?" training-block-button--selected":""}${Ge&&!We?" training-block-button--withType":""}${We&&!Ge?" training-block-button--no-type-label":""}`,onClick:W,onPointerEnter:U,onPointerLeave:re,role:"button",tabIndex:0,onKeyDown:E,"aria-label":typeof o=="string"?o:typeof ge=="string"?ge:void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[y&&a?.label&&a.label!==String(ge)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),We&&Ke&&Ke!==String(ge)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:Ke}),t.jsx(wl,{icon:xe,label:ge,tooltip:Ae,wrapperStyle:Te,iconSize:We||Le?"small":"medium"}),!C&&(Ce||X)&&!(h&&B)&&t.jsx(lt,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":Ce?b("training.completed","\uD6C8\uB828 \uC644\uB8CC"):b("training.selected","\uC120\uD0DD\uB428")}),h&&B&&t.jsx(lt,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":b("common.remove","\uC81C\uAC70"),onClick:le}),t.jsx("div",{className:`training-block-button__title ${Le?"body-3":We?"body-3b":"h3"}`,children:String(ge)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const ye=x!==void 0?x:ke;return ye?t.jsx("div",{className:`training-block-button__count ${We?"caption-2":"caption-1"}`,children:ye}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(Ue,{icon:"chevron-right",label:b("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:We?12:20})})]}),(Oe&&!De||We)&&O.length>0&&t.jsx("div",{ref:T,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:se,onPointerEnter:P,onPointerLeave:$,children:t.jsx(ie,{htmlType:"button",size:We?28:32,type:"dot",icon:N?"pause":"play",variant:We?"transparent-lightGray":"default",useBorder:!1,selected:N,ariaLabel:N?b("training.stop","\uC815\uC9C0"):b("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:K})})]}),g&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:ye=>{ye.stopPropagation(),g(ye)},children:t.jsx(ie,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:b("common.more","\uB354\uBCF4\uAE30")})})]}),j&&t.jsx(kn,{anchorRect:M,text:N?b("training.stop","\uC815\uC9C0"):b("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:$}),B&&!A&&m&&(ae?t.jsx(Rn,{anchorRect:z,items:ae,activeIndex:I,onClose:re}):F?.subTitle?t.jsx(kn,{anchorRect:z,text:F.subTitle,offset:8,onClose:re}):null),A&&l&&l({trainingData:F,typeKey:a?.key??"",onClose:V,onComplete:oe,popupTitle:String(ge),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:xe,popupIconTooltip:String(Ae),popupWrapperStyle:Te})]})}let Gr=null,kl=!1;function Al(){if(kl||typeof document>"u")return;kl=!0,document.addEventListener("keydown",n=>{n.metaKey||n.ctrlKey||n.altKey||(Gr="keyboard")},!0);const e=()=>{Gr="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}Al();function Ha(){return Al(),Gr==="keyboard"}const Va=20;function ub(e){const{t:n}=de.useTranslation(),{type:a,trainingDatas:r,depth:o,renderPopup:i,completedIds:l,selectedIds:c,onItemComplete:u,size:d,useDescriptionTooltip:p,onRemove:m,onMore:h,sectionType:C="page"}=e||{},[,y]=s.useState(0),f=typeof r<"u"?Array.isArray(r)?r:[]:[],v=f.length,[g,x]=s.useState(Math.min(v,Va)),_=s.useMemo(()=>Array.isArray(o)?[...o,a?.label].filter(Boolean).join(" \xB7 "):[o||"",a?.label].filter(Boolean).join(" \xB7 "),[o,a?.label]);s.useEffect(()=>{x(Math.min(v,Va))},[v]),xi("speechear.data.updated",()=>y(D=>D+1));const b=s.useRef(null),A=s.useRef(null);function w(){const D=document.activeElement;A.current=Ha()&&D&&D.closest?.(".training-block__more")?g:null,x(B=>Math.min(v,B+Va))}return s.useEffect(()=>{const D=A.current;if(D==null)return;A.current=null;const B=document.activeElement;B&&B!==document.body||b.current?.querySelectorAll(".training-block-button")[D]?.focus()},[g]),t.jsxs(Yn,{type:C,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",ref:b,children:(f||[]).slice(0,g).map((D,B)=>{const k=D;return t.jsx(Ur,{index:B,type:a,trainingData:k,depth:_,renderPopup:i,completedIds:l,selectedIds:c,size:d,useDescriptionTooltip:p,onRemove:typeof m=="function"&&c!=null&&k?.id!=null&&c.has(String(k.id))?()=>m(k):void 0,onComplete:typeof u=="function"&&k?.id!=null?()=>u(String(k.id)):void 0,onMore:typeof h=="function"?N=>h(k,N):void 0},k?.id!=null?`${a?.key||"t"}-${String(k.id)}`:`${a?.key||"t"}-${B}`)})}),v>Va&&g<v&&t.jsx("div",{className:"training-block__more",children:t.jsx(ie,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:w,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function Kr(e){const n=s.useRef(null),[a,r]=s.useState(!!e),[o,i]=s.useState(!1);s.useEffect(()=>{i(!1);const u=n.current;r(!!e&&!(u?.complete&&u.naturalWidth>0))},[e]);const l=s.useCallback(()=>r(!1),[]),c=s.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:n,loading:a,failed:o,hasImage:!!e&&!o,onLoad:l,onError:c}}var db='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2256_7437)">%0A<g opacity="0.1">%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23111111"/>%0A</g>%0A<path d="M57.1426 17.8571H35.7141C25.8533 17.8571 17.8569 25.8536 17.8569 35.7143V44.0643L10.9926 51.6179C10.5819 52.0679 10.6283 52.775 11.0998 53.1643C13.1783 54.8929 15.4641 56.2214 17.8569 57.1679C17.8676 63.925 21.6283 69.8 27.1712 72.825C25.7855 70.2893 24.9998 67.3786 24.9998 64.2821V35.7107C24.9998 29.7929 29.7962 24.9964 35.7141 24.9964H64.2855C67.3783 24.9964 70.2891 25.7857 72.8283 27.1679C69.7998 21.6179 63.9105 17.8536 57.1426 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M72.8285 27.1714C74.2142 29.7072 75 32.6179 75 35.7143V64.2857C75 70.2036 70.2035 75 64.2857 75H35.7142C32.6214 75 29.7107 74.2107 27.1714 72.8286C30.2 78.3786 36.0892 82.1429 42.8571 82.1429H58.9678C59.9321 82.1429 60.7142 82.925 60.7142 83.8893C60.7142 84.9107 61.5892 85.7215 62.6071 85.6322C73.5535 84.675 82.1428 75.4822 82.1428 64.2857V42.8572C82.1428 36.0893 78.3785 30.2 72.8285 27.1714Z" fill="%23111111"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="%23111111"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2323 35.6679 46.2859 35.8464 45.4073 36.2679C44.518 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2037 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2256_7437">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const pb=db,Yr=s.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:o=!1,onSelect:i,flipDelay:l=0,hideLabel:c=!1,hideAudio:u=!1,orderRank:d=null},p){const{t:m}=de.useTranslation(),h=e.word||e.title||"",C=n||!h,y=e.audio??e.sound??e.audioKey,f=e.subLabel||e.pronunciation||"",v=e.colloquialLabel||"",[g,x]=s.useState({label:h,subLabel:f,colloquialLabel:v,homonum:e.homonum});h&&(g.label!==h||g.subLabel!==f||g.colloquialLabel!==v||!Object.is(g.homonum,e.homonum))&&x({label:h,subLabel:f,colloquialLabel:v,homonum:e.homonum});const _=s.useRef(null),b=on("(max-width: 767px)"),[A,w]=s.useState(!1),D=`${typeof y=="string"?y:y?.src??""}\0${h}`,[B,k]=s.useState({for:"",url:""}),N=B.for===D?B.url:"",I=Wn()?.(g.label,g.homonum)??e.image??"",{imgRef:O,loading:j,hasImage:H,onLoad:T,onError:K}=Kr(I);s.useEffect(()=>{let z=!1;return(async()=>{if(y){if(typeof y=="string"){if(y.startsWith("http")||y.includes("/")){k({for:D,url:y});return}}else if(typeof y=="object"&&!Array.isArray(y)){const E=y.src;if(E){k({for:D,url:E});return}}}const R=mr();if(R&&h)try{const E=await Promise.resolve(R(h));!z&&E&&k({for:D,url:E})}catch{}})(),()=>{z=!0}},[y,h,D]);const W=s.useRef(!0),V=s.useRef(null);s.useEffect(()=>(W.current=!0,()=>{W.current=!1,V.current&&Oa(V.current),V.current=null;try{_.current?.pause()}catch{}_.current=null}),[]);const U=s.useCallback(()=>new Promise(z=>{if(typeof window<"u"&&window.speechSynthesis&&h){w(!0),window.speechSynthesis.cancel();const R=new SpeechSynthesisUtterance(h);R.lang="ko-KR",R.onend=()=>{w(!1);try{a?.()}catch{}z()},R.onerror=()=>{w(!1),z()},window.speechSynthesis.speak(R)}else z()}),[h,a]),re=s.useCallback(z=>new Promise(R=>{let E=!1;const F=()=>{E||(E=!0,w(!1),R(!1))};try{const ae=new Audio(z);_.current=ae,ae.onended=()=>{if(!E){E=!0,w(!1);try{a?.()}catch{}R(!0)}},ae.onerror=F,ae.play().catch(F)}catch{F()}}),[a]),P=s.useCallback(async()=>{if(n||!W.current)return;const z=()=>{V.current===z&&(V.current=null);try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1)},R=qr(z);V.current=z;try{window.speechSynthesis?.cancel()}catch{}try{if(N&&(w(!0),await re(N)))return;const E=o0();if(E&&h)try{const F=await Promise.resolve(E(h));if(!W.current||V.current!==z||F&&(w(!0),await re(F)))return}catch{}if(!W.current||V.current!==z)return;await U()}finally{R(),V.current===z&&(V.current=null)}},[n,N,h,re,U]);s.useImperativeHandle(p,()=>({play:()=>P()}),[P]);const $=z=>z.stopPropagation(),M=s.useCallback(z=>{if(z.stopPropagation(),!n){if(A){try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1);return}P()}},[n,A,P]),L=ve("training-word-card",n?"training-word-card--disabled":"",C?"training-word-card--flipped":"",r?"training-word-card--selectable":"",o?"training-word-card--selected":"");return t.jsx("div",{className:L,onClick:r&&!n?i:void 0,role:r?"button":void 0,"aria-pressed":r?o:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?z=>{z.target===z.currentTarget&&(z.key==="Enter"||z.key===" "||z.key==="Spacebar")&&(z.preventDefault(),i?.())}:void 0,children:t.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:C?"0ms":`${l}ms`},children:[t.jsxs("div",{className:"training-word-card__front",children:[o&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:$,children:t.jsx(lt,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?m("training.nthSelected",{n:d}):m("training.selected","\uC120\uD0DD\uB428")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:H?t.jsxs(t.Fragment,{children:[j&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:O,className:"training-word-card__image",src:I,alt:g.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:j?0:1},onLoad:T,onError:K})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!c&&t.jsxs("div",{className:"training-word-card__body",children:[t.jsx("div",{className:"training-word-card__word",children:g.label}),g.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",g.subLabel,"]"]}),g.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",g.colloquialLabel,"]"]})]}),!u&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?$:void 0,children:t.jsx(ie,{htmlType:"button",size:b?40:48,type:b?"dot":"bar",icon:A?"pause":"play",label:b?void 0:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:A,onClick:M,disabled:n,ariaLabel:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),t.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:t.jsx("img",{src:pb,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),mb=260;function Nn(e){const{t:n}=de.useTranslation(),{title:a,subtitle:r,headerActions:o,children:i,buttons:l,footer:c,footerClassName:u="",onClose:d,closeDisabled:p=!1,beforeClose:m,closeOnBackdrop:h=!0,className:C="",ariaLabel:y,useTitle:f=!0,inline:v=!1,size:g,layer:x="modal",height:_,fillBody:b=!1,resetScrollKey:A}=e||{},[w,D]=s.useState(!1),B=s.useRef(!1),k=s.useRef(null),N=s.useId(),I=s.useRef(null);s.useEffect(()=>{},[v,a,y,C]),s.useEffect(()=>{A!==void 0&&I.current&&(I.current.scrollTop=0)},[A]);const[O,j]=s.useState(!1);s.useEffect(()=>{const R=I.current;if(!R)return;const E=()=>j(R.scrollHeight>R.clientHeight+1);if(E(),typeof ResizeObserver>"u")return;const F=new ResizeObserver(E);F.observe(R);const ae=R.firstElementChild;return ae&&F.observe(ae),()=>F.disconnect()},[i,A]),s.useEffect(()=>{if(!v)return Qi()},[v]),s.useEffect(()=>{if(v)return;const R=document.activeElement,E=k.current;return $r(E,R),E&&!E.contains(document.activeElement)&&(E.querySelector(Ln)??E).focus(),()=>{const F=document.activeElement;(!F||F===document.body||E&&E.contains(F))&&Rr(R)?.focus?.()}},[v]),wr(k,!v);const H=s.useRef(!0),T=s.useRef(null);s.useEffect(()=>(H.current=!0,()=>{H.current=!1,T.current&&(clearTimeout(T.current),T.current=null)}),[]);const K=s.useCallback(()=>{!H.current||!B.current||(B.current=!1,D(!1))},[]),W=s.useCallback((R,E=!1)=>{if(E&&!H.current||B.current)return;B.current=!0,D(!0);const F=setTimeout(()=>{T.current===F&&(T.current=null);let ae;try{ae=R?R():void 0}catch{K();return}ae&&typeof ae.then=="function"&&ae.then(()=>{setTimeout(K,120)},K)},mb);E&&(T.current=F)},[K]),V=s.useCallback(()=>{p||m&&m()===!1||W(d,!0)},[W,d,p,m]),U=s.useRef(V);s.useEffect(()=>{U.current=V});const re=!v&&!!d;s.useEffect(()=>{if(re)return $n(()=>U.current())},[re]);const P=re&&h,$=s.useRef(!1),M=R=>{$.current=R.target===R.currentTarget},L=R=>{const E=$.current;$.current=!1,E&&R.target===R.currentTarget&&V()},z=t.jsx("div",{className:`popup ${v?"popup--inline":""} ${x==="belowPagePopup"?"popup--below-page-popup":""} ${w?"popup--closing":""} ${C}`,onPointerDown:P?M:void 0,onClick:P?L:void 0,onMouseDown:v?void 0:R=>{R.target===R.currentTarget&&R.preventDefault()},children:t.jsxs("div",{ref:k,className:`popup-panel${g?` popup-panel--${g}`:""}${_!=null?" popup-panel--has-height":""}${b?" popup-panel--fill-body":""}`,style:_!=null?{"--popup-height":typeof _=="number"?`${_}px`:_}:void 0,tabIndex:-1,role:v?void 0:"dialog","aria-modal":v?void 0:!0,"aria-labelledby":!v&&f&&a?N:void 0,"aria-label":!v&&!(f&&a)?y??(typeof a=="string"?a:void 0):void 0,children:[!f&&(o||d)?t.jsxs("div",{className:"popup-close-float",children:[o,d&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:V,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||o||d?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[t.jsx("span",{id:N,className:"popup-title popup-title--left h2",children:a}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),t.jsxs("div",{className:"popup-header-actions",children:[o,d&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:V,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:I,tabIndex:O?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:W,closeWithAnimation:V}):i})}),l?.length?t.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map((R,E)=>t.jsx(ie,{htmlType:"button",size:48,variant:R.variant??"default",label:R.label,disabled:R.disabled,onClick:()=>R.onClick?.({animateThen:W,closeWithAnimation:V})},E))}):c?t.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:W,closeWithAnimation:V}):c}):null]})});return v||typeof document>"u"?z:Ut.createPortal(z,document.body)}function za(e){return String(e)}const Nl=["o","triangle","x"];function Bl(e,n){return e===n?null:n}const Dl={o:"circle",triangle:"triangle",x:"x"},Sl={o:"main",triangle:"warn",x:"danger"};function hb(e){let n=0,a=0,r=0;for(const i of Object.values(e))i==="o"?n++:i==="triangle"?a++:i==="x"&&r++;const o=n+a+r;return{marked:o,o:n,triangle:a,x:r,rate:o===0?null:(n+a*.5)/o}}function Zr(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function Tl(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function fb(e,n){return!n&&e>0}const Zn={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function Cb(e="landscape"){const{printSize:n,printW:a,printH:r}=Zn[e],o=document.createElement("style");o.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(o);const i=()=>{document.head.removeChild(o),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function jl(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let o=0;o<e.length;o+=a)r.push(e.slice(o,o+a));return r}const gb={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function bb(e,n){const a=gb[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),o=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=o,i=Math.ceil(r/l)):(i=o,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}const yb={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},El={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},Ml={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Xr(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function Ll(e,n,a,r){if(r!=="\uC810\uC120")return{};const o=e%n,i=Math.floor(e/n),l=o<n-1,c=i<a-1;if(!l&&!c)return{};const u="#ddd",d=C=>`repeating-linear-gradient(to ${C}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,p=[],m=[],h=[];return l&&(p.push(d("bottom")),m.push("1px 100%"),h.push("right center")),c&&(p.push(d("right")),m.push("100% 1px"),h.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const vb=280,xb=240,_b=280,wb=400,kb=120,Ab=280;function $l(e,n){const a=s.useRef(null),[r,o]=s.useState(1),[i,l]=s.useState(0),c=s.useCallback((u,d)=>{const p=u/e,m=n?d/n:1/0,h=Math.min(1,p,m);o(h),l(Math.max(0,(u-e*h)/2))},[e,n]);return s.useEffect(()=>{const u=a.current;if(!u)return;const d=n?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>c(m.contentRect.width,m.contentRect.height));return p.observe(d),()=>p.disconnect()},[c,n]),{scalerRef:a,scale:r,offset:i}}let gn=null;function Rl({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:o=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:u=40,wordInfo:d}){const{t:p}=de.useTranslation(),m=s.useRef(null),h=s.useRef(null),C=s.useRef(null),[y,f]=s.useState(1),[v,g]=s.useState(!1),[x,_]=s.useState({for:"",url:""}),[b,A]=s.useState(null),w=n&&n.length>0?n:i0()?.(e,r)??"",D=Wn()?.(e,r)??"",{imgRef:B,loading:k,failed:N,onLoad:I,onError:O}=Kr(D),j=s.useCallback(()=>A(h.current?.getBoundingClientRect()??null),[]),H=s.useCallback(()=>A(null),[]),T=s.useMemo(()=>{if(!d)return null;const $=[];return d.grade&&$.push(p("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&$.push(p("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&$.push(p("wordTable.info.pos",{v:Xr(d.pos,Nb(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&$.push(p("wordTable.info.wordType",{v:Xr(d.wordType,Bb(p)),defaultValue:"\uC720\uD615: {{v}}"})),$.length?$:null},[d,p]),K=w||e,W=x.for===K?x.url:"";s.useEffect(()=>{const $=mr(),M=w||e;if(!$||!M)return;let L=!1;return Promise.resolve($(M)).then(z=>{!L&&z&&_({for:M,url:z})}),()=>{L=!0}},[w,e]),s.useEffect(()=>()=>{C.current?.pause(),gn?.audio===C.current&&(gn=null)},[]);const V=s.useCallback(async $=>{if($.stopPropagation(),v){C.current?.pause(),g(!1),gn=null;return}if(W){gn?.stop(),g(!0);try{const M=new Audio(W);C.current=M;const L=()=>{g(!1),gn?.audio===M&&(gn=null)};gn={audio:M,stop:()=>{M.pause(),L()}},M.onended=L,M.onerror=L,await M.play()}catch{g(!1),gn?.audio===C.current&&(gn=null)}}},[v,W]),U=i&&!!D&&!N,re=U&&o?vb:U?_b:xb,P=U&&o?wb:U?Ab:kb;return s.useEffect(()=>{const $=m.current;if(!$||typeof ResizeObserver>"u")return;const M=new ResizeObserver(([L])=>{const{width:z,height:R}=L.contentRect;f(Math.min(z/re,R/P))});return M.observe($),()=>M.disconnect()},[re,P]),t.jsxs("div",{ref:m,className:"word-table-cell",children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${y})`},children:[U&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[k&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:B,className:"word-table-cell__image",src:D,alt:e,draggable:!1,style:{opacity:k?0:1},onLoad:I,onError:O})]}),o&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&w&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",w,"]"]}),c&&a&&t.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),t.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":W,children:[t.jsx("span",{"data-play-state":"play",style:{display:v?"none":void 0},children:t.jsx(ie,{htmlType:"button",size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:V})}),t.jsx("span",{"data-play-state":"pause",style:{display:v?void 0:"none"},children:t.jsx(ie,{htmlType:"button",size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:V})})]}),d&&t.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:j,onPointerLeave:H,onFocus:j,onBlur:H,children:[t.jsx(ie,{htmlType:"button",size:u,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:$=>$.stopPropagation()}),b&&T&&t.jsx(Rn,{anchorRect:b,items:T,showIndex:!1})]})]})}const Pl={\uBA85:"noun",\uB3D9:"verb",\uD615:"adjective",\uBD80:"adverb",\uC218:"numeral",\uAD00:"determiner",\uAC10:"interjection",\uC870:"particle",\uC811:"affix",\uC758:"dependentNoun",\uB300:"pronoun",\uBCF4\uB3D9:"auxVerb",\uBCF4\uD615:"auxAdjective"},Il={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function Nb(e){return Object.fromEntries(Object.entries(El).map(([n,a])=>[n,Pl[n]?e(`wordTable.pos.${Pl[n]}`,{defaultValue:a}):a]))}function Bb(e){return Object.fromEntries(Object.entries(Ml).map(([n,a])=>[n,Il[n]?e(`wordSearch.filter.type.${Il[n]}`,{defaultValue:a}):a]))}function Xn({title:e,titleIcon:n,disc:a,className:r,orientation:o="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:c=!0,showDivLine:u=!0,items:d,editCells:p,count:m,activeCell:h=null,onActivateCell:C,onRemoveCell:y,onRemoveItem:f,onReorder:v,showFillerAdd:g=!1,contentRef:x,buttonSize:_=40,pageNumber:b,pageNumberPosition:A="right",fitHeight:w=!1,scoring:D=!1,marks:B,onMarkClick:k,scoreIndexOffset:N=0}){const I=s.useCallback((oe,Ce)=>{k?.(N+oe,Ce)},[k,N]),O=(oe,Ce)=>{const X=B?.[za(N+oe)]??null;return t.jsx("div",{className:ve("word-table-cell__score",X?"word-table-cell__score--marked":""),children:Nl.map(te=>t.jsx("span",{className:ve("word-table-cell__score-slot",X===te?"word-table-cell__score-slot--on":""),children:t.jsx(ie,{htmlType:"button",size:_,type:"dot",icon:Dl[te],variant:X===te?Sl[te]:"default",selected:X===te,useBorder:!1,showTooltipInfo:!1,ariaLabel:j(`wordTable.scoring.${te}`,{word:Ce,defaultValue:`${Ce} ${te}`}),onClick:Y=>{Y.stopPropagation(),I(oe,te)}})},te))})},{t:j}=de.useTranslation(),H=p!==void 0,T=s.useRef(null),[K,W]=s.useState(null),{width:V,height:U}=Zn[o],{scalerRef:re,scale:P,offset:$}=$l(V,w?U:void 0),M=H?p?.length??0:d?.length??0,L=Math.max(m??M,1),{cols:z,rows:R}=bb(o,L),E={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},F=H?(p??[]).some(oe=>oe!==null&&oe.length>1):(d??[]).some(oe=>oe.words.length>1),ae=ve("word-table-block__content",yb[l],c&&"word-table-block__content--outline",u&&F&&"word-table-block__content--div-line"),le={transform:`scale(${1/P})`,transformOrigin:"center center"},se=t.jsx("div",{ref:re,className:"word-table__scaler",style:{height:U*P},children:t.jsx("div",{className:ve("word-table",r),style:{width:V,height:U,transform:`scale(${P})`,transformOrigin:"top left",marginLeft:$},children:t.jsxs("div",{ref:x,className:ae,style:{gridTemplateColumns:`repeat(${z}, 1fr)`,gridTemplateRows:`repeat(${R}, 1fr)`},children:[H?t.jsx(t.Fragment,{children:(p??[]).map((oe,Ce)=>t.jsx("div",{className:ve("word-table-block__edit-cell",oe?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===Ce?"word-table-block__edit-cell--active":""),style:Ll(Ce,z,R,l),children:oe?t.jsxs(t.Fragment,{children:[oe.map((X,te)=>t.jsxs(s.Fragment,{children:[te>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Rl,{label:X.word,subLabel:X.pronunciation,colloquialLabel:X.colloquialPronunciation,homonum:X.homonum,showWord:E.word,showImage:E.image,showPronunciation:E.pron,showColloquial:E.colloq,buttonSize:_})]},te)),D&&O(Ce,oe.map(X=>X.word).join(" / ")),y&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ie,{htmlType:"button",size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:oe.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:oe.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>y(Ce)})})]}):C&&t.jsx("div",{style:le,children:t.jsx(ie,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C(Ce)})})},Ce))}):t.jsxs(t.Fragment,{children:[(d??[]).map((oe,Ce)=>t.jsxs("div",{className:`word-table-block__card${v?" word-table-block__card--draggable":""}${K===Ce?" word-table-block__card--drag-over":""}`,style:Ll(Ce,z,R,l),draggable:!!v,onDragStart:v?()=>{T.current=Ce}:void 0,onDragOver:v?X=>{X.preventDefault(),W(Ce)}:void 0,onDragLeave:v?()=>W(null):void 0,onDrop:v?X=>{X.preventDefault(),T.current!==null&&T.current!==Ce&&v(T.current,Ce),T.current=null,W(null)}:void 0,onDragEnd:v?()=>{T.current=null,W(null)}:void 0,children:[oe.words.map((X,te)=>t.jsxs(s.Fragment,{children:[te>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Rl,{label:X.label,subLabel:X.subLabel,colloquialLabel:X.colloquialLabel,homonum:X.homonum,showWord:E.word,showImage:E.image,showPronunciation:E.pron,showColloquial:E.colloq,buttonSize:_,wordInfo:X.grade||X.syllables!=null||X.pos||X.wordType?{grade:X.grade,syllables:X.syllables,pos:X.pos,wordType:X.wordType}:void 0})]},te)),D&&O(Ce,oe.words.map(X=>X.label).join(" / ")),f&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ie,{htmlType:"button",size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:oe.words.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:oe.words.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(oe.id)})})]},oe.id)),Array.from({length:Math.max(0,z*R-(d?.length??0))}).map((oe,Ce)=>{const X=(d?.length??0)+Ce<L;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:g&&C&&X&&t.jsx("div",{style:le,children:t.jsx(ie,{htmlType:"button",size:_,type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C((d?.length??0)+Ce)})})},`filler-${Ce}`)})]}),b&&A!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${A}`,children:j("wordTable.filter.pageIndicator",{current:b.current,total:b.total})})]})})});return e!=null||n||a?t.jsx(Yn,{type:"page",icon:n,title:e,disc:a,className:ve("word-table-block",r),children:se}):se}function bn({title:e,headerAction:n,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:o,onCollapsedChange:i,footer:l,sections:c,selected:u={},onSelect:d,align:p,sectionAlign:m,className:h}){const C=(p??(m==="vertical"?"newline":"inline"))==="inline",{t:y}=de.useTranslation(),[f,v]=s.useState(r),g=o??f,x=()=>{const b=!g;v(b),i?.(b)},_=e||n||a;return t.jsxs("div",{className:ve("filter-panel",a?"filter-panel--collapsible":"",g?"filter-panel--collapsed":"",h),children:[_&&t.jsxs("div",{className:"filter-panel__header",children:[t.jsxs("div",{className:"filter-panel__title-row",children:[a&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:g?"chevron-down":"chevron-up",ariaLabel:g?y("common.expand","\uD3BC\uCE58\uAE30"):y("common.collapse","\uC811\uAE30"),"aria-expanded":!g,onClick:x}),e&&t.jsx("span",{className:"filter-panel__title h4",children:e})]}),t.jsx("div",{className:"filter-panel__header-actions",children:!g&&n})]}),!g&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:ve("filter-panel__sections",C?"filter-panel__sections--row":""),children:c.map(b=>{const A=u[b.label],w=A===void 0||(Array.isArray(A)?A.length===0:!1),D=(b.items??[]).filter(k=>k!=null);b.allOption&&D.some(k=>(typeof k=="string"?k:k.value)===sn)&&ta(`filter-panel-all-value:${b.label}`,`[FilterPanel] '${b.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${sn}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const B=k=>{const N=typeof k=="string"?k:k.value,I=typeof k!="string"&&!!k.disabled,O=typeof k!="string"?k.labels:void 0,j=typeof k!="string"?k.displayLabel:void 0,H=typeof k!="string"?k.tooltip:void 0,T=typeof k!="string"?k.descriptionTooltip:void 0,K=typeof k!="string"?k.shape:void 0,W=Array.isArray(A)?A.includes(N):A===N;return t.jsx(ie,{htmlType:"button",size:"keyboard",label:O??j??N,type:b.itemType??(O?"bar":N.length===1?"dot":void 0),selected:W,disabled:I,shape:K,showTooltipInfo:!!H,tooltipInfoText:H,tooltipDescription:T,onClick:()=>d?.(N,b.label)},N)};return t.jsxs(s.Fragment,{children:[b.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:b.groupLabel}),b.groupAction]}),t.jsxs("div",{className:ve("filter-panel__section",b.layout==="row"?"filter-panel__section--row":"",b.block?"filter-panel__section--block":""),children:[t.jsxs("div",{className:"filter-panel__section-label-row",children:[t.jsx("span",{className:"filter-panel__section-label body-3",children:b.displayLabel??b.label}),b.labelAction??(b.labelInfo?t.jsx(fa,{...b.labelInfo}):null)]}),b.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:b.content}):b.type==="input"?t.jsx(Fn,{className:"filter-panel__textfield",placeholder:b.placeholder,ariaLabel:b.displayLabel??b.label,value:u[b.label]??"",onChange:k=>d?.(k,b.label),error:b.error}):!b.multiple&&b.display==="segmented"?t.jsx(On,{ariaLabel:b.displayLabel??b.label,options:[...b.allOption?[{key:sn,label:b.allLabel??y("common.all","\uC804\uCCB4"),disabled:b.allOptionDisabled}]:[],...D.map(k=>{const N=typeof k=="string"?k:k.value,I=typeof k!="string"?k.displayLabel:void 0,O=typeof k!="string"?k.disabled:void 0;return{key:N,label:I??N,disabled:O}})],value:w&&b.allOption?sn:u[b.label]??"",onChange:k=>d?.(k,b.label),size:32}):!b.multiple&&b.display==="dropdown"?t.jsx(Jt,{className:"filter-panel__dropdown",size:40,options:[...b.allOption?[{value:sn,label:b.allLabel??y("common.all","\uC804\uCCB4"),disabled:b.allOptionDisabled}]:[],...D.map(k=>{const N=typeof k=="string"?k:k.value,I=typeof k!="string"?k.displayLabel:void 0,O=typeof k!="string"?k.disabled:void 0;return{value:N,label:I??N,disabled:O}})],value:w&&b.allOption?sn:u[b.label],onChange:k=>d?.(k,b.label)}):t.jsxs("div",{className:b.groups?"filter-panel__item-groups":"filter-panel__items",children:[b.allOption&&!b.groups&&t.jsx(ie,{htmlType:"button",size:"keyboard",label:b.allLabel??y("common.all","\uC804\uCCB4"),selected:w,disabled:b.allOptionDisabled,onClick:()=>d?.(sn,b.label)}),b.groups?b.groups.map((k,N)=>t.jsxs("div",{className:"filter-panel__item-group",children:[N===0&&b.allOption&&t.jsx(ie,{htmlType:"button",size:"keyboard",label:b.allLabel??y("common.all","\uC804\uCCB4"),selected:w,disabled:b.allOptionDisabled,onClick:()=>d?.(sn,b.label)}),k.filter(I=>I!=null).map(B)]},N)):D.map(B)]})]})]},b.label)})}),l!=null&&l!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const Db=[1,2,3,4,5,6,7,8,9,10,11,12],Jr=[8,4,2,1];function Fl(e,n){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!n.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!n.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Ol(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function Hl(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Vl(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function zl(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Wl(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...Jr.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function ql(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const Ul={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Gl(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Kl(e,n){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:n.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:n.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:n.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:n.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:n.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function Yl(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===sn?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(o=>o.includes(n)?o.filter(i=>i!==n):[...o,n]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(n==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(n),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(n==="\uD45C\uC2DC"),!0):!1}function Sb(e){return"sections"in e}function Qr(e){const{t:n}=de.useTranslation(),{title:a,className:r}=e;if(Sb(e))return t.jsx(bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:o,hasColloquial:i,contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p,setters:m,showCutLine:h=!1,showDivLine2:C=!1,middleSections:y=[],extraSelected:f={},onExtraSelect:v}=e,g=[Fl(n,{hasImage:o,hasColloquial:i}),Ol(n),...y,Hl(n),...h?[Vl(n)]:[],...C?[zl(n)]:[]],x={...Kl(n,{contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...f},_=(b,A)=>{Yl(n,b,A,m)||v?.(b,A)};return t.jsx(bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:g,selected:x,onSelect:_,sectionAlign:"horizontal"})}function Zl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function eo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let Wa=null,Jn=null;function Tb(e,n,a,r="",o=""){if(e.length===0||Jn&&Jn.iframe.isConnected&&Date.now()-Jn.at<1e4)return;const i=r?eo(r):"";Wa?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,window.removeEventListener("afterprint",l),Wa===l&&(Wa=null)},Wa=l,window.addEventListener("afterprint",l)}const c=document.createElement("iframe");c.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(c);const u=c.contentDocument;if(!u){c.remove();return}Jn={iframe:c,at:Date.now()},u.open(),u.write(to(e,n,a,!0,i,o)),u.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{c.remove(),Jn?.iframe===c&&(Jn=null)},0)})}function to(e,n,a,r=!1,o="",i=""){o=o?eo(o):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
839
839
  `),c="light",u=i?`<div class="paper-head">${Zl(i)}</div>`:"",d=e.map(p=>{const m=p.cloneNode(!0);return m.querySelectorAll('[data-play-state="play"]').forEach(h=>h.style.display=""),m.querySelectorAll('[data-play-state="pause"]').forEach(h=>h.style.display="none"),m.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(h=>h.remove()),m.querySelectorAll(".word-table-cell__spinner").forEach(h=>h.remove()),m.querySelectorAll("img").forEach(h=>{h.style.opacity==="0"&&(h.setAttribute("onload","this.style.opacity=''"),h.setAttribute("onerror","this.style.visibility='hidden'"))}),`<div class="paper-wrap">${u}${m.outerHTML}</div>`}).join(`
840
840
  `);return`<!DOCTYPE html>
841
841
  <html data-theme="${c}">
@@ -967,10 +967,10 @@ ${b.badge}`:b.badge:void 0;if(w&&u(b.code))return null;if(!b.badge&&!p)return m(
967
967
  `:""}
968
968
  <\/script>
969
969
  </body>
970
- </html>`}function no({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:o,header:i=""}){const l=s.useCallback(()=>{Tb(e(),n,a,r,i)},[e,n,a,r,i]),c=s.useCallback(()=>{const d=e();if(d.length===0)return;const p=window.open("","_blank");if(!p){o?.();return}p.document.write(to(d,n,a,!1,r,i)),p.document.close()},[e,n,a,r,o,i]),u=s.useCallback(()=>{const d=e();if(d.length===0)return;const p=to(d,n,a,!1,r,i),m=new Blob([p],{type:"text/html;charset=utf-8"}),h=URL.createObjectURL(m),C=r&&eo(r),y=Object.assign(document.createElement("a"),{href:h,download:`${C}.html`});document.body.appendChild(y),y.click(),document.body.removeChild(y),URL.revokeObjectURL(h)},[e,n,a,r,i]);return{print:l,openNewWindow:c,downloadHtml:u}}function Xl(e){const{t:n}=de.useTranslation(),[a,r]=s.useState("landscape"),[o,i]=s.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[l,c]=s.useState("\uD45C\uC2DC"),[u,d]=s.useState(!0),[p,m]=s.useState(!0),[h,C]=s.useState(8),[y,f]=s.useState("right"),v=e.length,g=e.some(O=>O.words.length>1),x=e.some(O=>O.words.some(E=>!!E.colloquialLabel)),_=Math.min(h,Math.max(v,1)),b=s.useMemo(()=>jl(e,_),[e,_]),A=b.length>1,w=_,[D,B]=s.useState(!1);s.useEffect(()=>{let O=!1;if(!Wn()){B(!1);return}return Promise.all(e.flatMap(E=>E.words.map(H=>Ns(H.label,H.homonum)))).then(E=>{O||B(E.some(Boolean))},()=>{}),()=>{O=!0}},[e]);const k=s.useMemo(()=>[Fl(n,{hasImage:D,hasColloquial:x}),Ol(n),...v>0?[Wl(n,{hasPairs:g,itemCount:v})]:[],...A?[ql(n)]:[],Hl(n),...w>1?[Vl(n)]:[],...g?[zl(n)]:[]],[n,D,x,v,g,A,w]),N={...Kl(n,{contentTypes:o,orientation:a,showOutline:u,cutLine:l,showDivLine:p}),...v>0?{[n(g?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${_}\uAC1C`}:{},...A?{[n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Ul[y]}:{}},I=s.useCallback((O,E)=>{if(!Yl(n,O,E,{setContentTypes:i,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:m}))if(E===n("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||E===n("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")){const H=parseInt(O);C(Jr.includes(H)?H:Number.POSITIVE_INFINITY)}else E===n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&f(Gl(O))},[n]);return{settings:{orientation:a,contentTypes:o,cutLine:l,showOutline:u,showDivLine:p,count:w},filterSections:k,filterSelected:N,handleSelect:I,pages:b,isPaginated:A,pageNumberPosition:y}}function jb({items:e,words:n,title:a,subtitle:r,emptyText:o,buttons:i,renderButtons:l,renderFooter:c,footerClassName:u,printFileName:d,showSettings:p,autoPrint:m,className:h,onClose:C,scoring:y=!1,onScoreChange:f,printHeader:v,beforeClose:g}){const{t:x}=de.useTranslation(),_=s.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(ee=>typeof ee=="string"&&ee.length>0).map((ee,ie)=>({id:`${ee}-${ie}`,words:[{label:ee}]})),[e,n]),{settings:b,filterSections:A,filterSelected:w,handleSelect:D,pages:B,isPaginated:k,pageNumberPosition:N}=Xl(_),I=s.useMemo(()=>Tl(B.map(ee=>ee.length)),[B]),[O,E]=s.useState({}),H=s.useCallback((ee,ie)=>{E(Ce=>({...Ce,[za(ee)]:Bl(Ce[za(ee)]??null,ie)}))},[]),T=s.useRef(f);s.useEffect(()=>{T.current=f});const K=s.useRef(O);s.useEffect(()=>{K.current!==O&&(K.current=O,T.current?.(Zr(O)))},[O]);const W=s.useMemo(()=>Zr(O),[O]),V=s.useRef(null),{toastMessage:U,toastKey:re,showWarning:P,clearToast:R}=Bi("warning"),M=s.useRef([]),L=s.useCallback(()=>k?M.current.filter(ee=>ee!==null):V.current?[V.current]:[],[k]),{print:z,openNewWindow:$}=no({getElements:L,paperW:Zn[b.orientation].width,paperH:Zn[b.orientation].height,fileName:d??"",header:v??"",onPopupBlocked:()=>P(x("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),j=s.useMemo(()=>c?void 0:l?l({print:z,openNewWindow:$}):d?[{label:x("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>$()},{label:x("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>z()},...i??[]]:i,[c,l,d,i,x,z,$]),F=s.useMemo(()=>c?c({print:z,openNewWindow:$}):void 0,[c,z,$]),se=s.useRef(!1),ne=s.useRef(z);return s.useEffect(()=>{ne.current=z},[z]),s.useEffect(()=>{if(!m||se.current)return;const ee=window.setTimeout(()=>{se.current=!0,ne.current()},100);return()=>window.clearTimeout(ee)},[m]),t.jsxs(Nn,{title:a??x("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:ve("word-table-popup",h),buttons:j,footer:F,footerClassName:u,beforeClose:g,onClose:C,children:[_.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[p&&t.jsx(Qr,{sections:A,selected:w,onSelect:D}),k?t.jsx("div",{className:"word-table-popup__pages",children:B.map((ee,ie)=>t.jsx(Xn,{items:ee,orientation:b.orientation,contentTypes:b.contentTypes,cutLine:b.cutLine,showOutline:b.showOutline,showDivLine:b.showDivLine,count:b.count,contentRef:Ce=>{M.current[ie]=Ce},pageNumber:{current:ie+1,total:B.length},pageNumberPosition:N,scoring:y,scoreIndexOffset:I[ie],marks:W,onMarkClick:H},ie))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(Xn,{items:_,orientation:b.orientation,contentTypes:b.contentTypes,cutLine:b.cutLine,showOutline:b.showOutline,showDivLine:b.showDivLine,count:b.count,contentRef:V,fitHeight:!0,scoring:y,marks:W,onMarkClick:H})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:o??x("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(Kn,{message:U,position:"top",onClose:R},re)]})}const Eb=new Set(["x","triangle"]);function Mb(e,n){const a=[];for(let r=0;r<e.length;r++){const o=n[String(r)];o&&Eb.has(o)&&a.push(e[r])}return a}function Lb(e,n){const[,a,r]=xr(n).split("-"),o=`${a}.${r}`,i=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let l=e.trim(),c=1;for(;;){const d=i.exec(l);if(!d)break;c=Math.max(c,(d[1]?Number(d[1]):1)+1),l=l.slice(0,d.index).trim()}const u=c>=2?`${c}\uCC28 `:"";return`${l||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${o}`}function $b(e,n){const a={};for(const[r,o]of Object.entries(n)){if(o!=="o"&&o!=="triangle"&&o!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function Rb(e){return e.map(n=>n.label).join(" / ")}function Pb(e,n,a){const r=Rs(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}const Ib=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function ya(e,n){return Ib().compare(e,n)}const qa=new Map;function Fb(e){const n=qa.get(e);if(n)return n;const a=[],r=/-?\d+(?:\.\d+)?/g;let o=0;for(let i=r.exec(e);i;i=r.exec(e)){let l=i.index,c=i[0];c[0]==="-"&&l>0&&!/\s/.test(e[l-1])&&(l+=1,c=c.slice(1)),l>o&&a.push(e.slice(o,l)),a.push(Number(c)),o=i.index+i[0].length}return o<e.length&&a.push(e.slice(o)),qa.size>5e3&&qa.clear(),qa.set(e,a),a}function Ob(e,n){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),o=a(n);if(r===o)return 0;const i=(d,p)=>typeof d=="number"&&!Number.isNaN(d)?[d]:Fb(p),l=i(e,r),c=i(n,o),u=Math.min(l.length,c.length);for(let d=0;d<u;d++){const p=l[d],m=c[d];if(typeof p=="number"&&typeof m=="number"){if(p!==m)return p-m;continue}if(typeof p=="number")return-1;if(typeof m=="number")return 1;const h=ya(p,m);if(h!==0)return h}return l.length!==c.length?l.length-c.length:ya(r,o)}function Jl(e,n,a){return a===0?0:(e+n*.5)/a}function Hb(e){const n=new Map,a=[...e].sort((o,i)=>o.scoredAt.localeCompare(i.scoredAt));for(const o of a)for(const[i,l]of Object.entries(o.marks)){const c=o.labels?.[i];if(!c)continue;const u=n.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:o.scoredAt};if(l==="o")u.o++;else if(l==="triangle")u.triangle++;else if(l==="x")u.x++;else continue;u.latest=l,u.latestAt=o.scoredAt,n.set(c,u)}const r=[];for(const[o,i]of n){const l=i.o+i.triangle+i.x;r.push({label:o,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Jl(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((o,i)=>o.rate-i.rate||i.tried-o.tried||ya(o.label,i.label)),r}function Vb(e){const n=new Map;for(const r of e){const o=r.tableId??`name:${r.tableName}`,i=n.get(o)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),n.set(o,i)}const a=[];for(const r of n.values()){const o=c=>Object.values(c.marks).filter(u=>u==="o"||u==="triangle"||u==="x").length,i=r.rows.filter(c=>o(c)>0).sort((c,u)=>c.scoredAt.localeCompare(u.scoredAt));if(i.length===0)continue;const l=i.map(c=>{const u=Object.values(c.marks),d=u.filter(m=>m==="o").length,p=u.filter(m=>m==="triangle").length;return Jl(d,p,o(c))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:i.map(c=>c.scoredAt),delta:l.length>=2?l[l.length-1]-l[0]:null})}return a.sort((r,o)=>(o.times[o.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function zb(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function Wb(e){const n=new Map;let a=0,r=0;const o=[...e].sort((l,c)=>l.answeredAt.localeCompare(c.answeredAt));for(const l of o){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const u=l.itemId?.trim()||c,d=`${l.trainingType}|${u}`,p=n.get(d)??{trainingType:l.trainingType,itemId:u,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(p.tried++,l.isCorrect||p.wrong++,p.title=c,p.latestCorrect=l.isCorrect,p.latestAt=l.answeredAt,p.lastSelected=l.selected,l.setId){const m=p.setIds.indexOf(l.setId);m>0&&p.setIds.splice(m,1),m!==0&&p.setIds.unshift(l.setId)}n.set(d,p)}const i=[...n.entries()].map(([l,c])=>({key:l,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return i.sort((l,c)=>l.rate-c.rate||c.tried-l.tried||ya(l.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function qb(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function Ub(e){const n=new Map;for(const r of e){const o=n.get(r.trainingType)??[];o.push(r),n.set(r.trainingType,o)}const a=[...n.entries()].map(([r,o])=>({trainingType:r,items:o,pending:o.filter(i=>!i.latestCorrect).length}));return a.sort((r,o)=>o.pending-r.pending||r.trainingType.localeCompare(o.trainingType)),a}const ao=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function Gb(e){const n=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const l=i.setIds[0];if(!l){a++;continue}const c=`${i.trainingType}|${l}`,u=n.get(c)??{setId:l,trainingType:i.trainingType,pending:0};u.pending++,n.set(c,u)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),o=[...n.values()];return{sentence:o.filter(i=>ao.includes(i.trainingType)).sort(r),word:o.filter(i=>!ao.includes(i.trainingType)).sort(r),noSet:a}}function Kb(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const o=[];for(const i of e){const l=new Set,c=[];for(const u of i.cellLabels)r.has(u)&&!l.has(u)&&(l.add(u),c.push(u));c.length!==0&&o.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return o.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||ya(i.name,l.name)),o.slice(0,Math.max(0,a))}function Yb(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function Zb(e,n){const a=new Map;for(const o of e)for(const i of o.cells){const l=o.labelOf(i);a.has(l)||a.set(l,i)}const r=[];for(const o of n){const i=a.get(o);i!==void 0&&r.push(i)}return r}function ro(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,o)=>String(a[o]))}function Xb(e,n){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),o=a%60;return n?n(r,o):r>0&&o>0?ro($t.t("customers.duration.minSec",{m:r,s:o,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s:o}):r>0?ro($t.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):ro($t.t("customers.duration.sec",{s:o,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s:o})}function Jb(e,n){const a=[],r=new Set;for(const o of e){const i=n(o);r.has(i)||(r.add(i),a.push({key:i,value:o,pinned:!1}))}return a}function Qb(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function ey(e,n){return e.filter(a=>a.key!==n)}function ty(e,n,a){const r=e.filter(d=>d.pinned),o=new Set(r.map(d=>d.key)),i=e.length-r.length,l=[],c=new Set(o);for(const d of n){if(l.length>=i)break;const p=a(d);c.has(p)||(c.add(p),l.push({key:p,value:d,pinned:!1}))}const u=[...l];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function ny(e){return e.map(n=>n.value)}function ay(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},o=n?.key?` icon-grid-menu__button--${n.key}`:"",i=s.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${o}`,children:[t.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":n?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,children:t.jsx(Ue,{icon:n.icon,label:n.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),t.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:n.label})]})}function ry(e){const{categories:n=[],selected:a,onSelect:r,size:o="medium"}=e||{},i=a!==void 0,[l,c]=s.useState(()=>i?null:(n&&n[0]?.key)??null),u=i?a:l,d=s.useRef(r);s.useEffect(()=>{d.current=r});const p=s.useRef(!1),m=(n&&n[0]?.key)??null;s.useEffect(()=>{if(i||p.current||!m)return;p.current=!0;const C=l??m;l==null&&c(C),d.current?.(C)},[i,m]);const h=s.useCallback(C=>{const y=u===C?null:C;p.current=!0,i||c(y),r?.(y)},[u,i,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${o}`,children:(n||[]).map(C=>t.jsx(ay,{category:C,isSelected:u===C.key,onClick:()=>h(C.key)},C.key))})}function oy({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const o=r==="small"?32:40;return t.jsx("div",{className:`choice-chips choice-chips--${r}`,children:t.jsx("div",{className:"choice-chips__list",children:e.map(i=>t.jsx(le,{htmlType:"button",size:o,type:"bar",label:i.label,selected:n===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function sy({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",o=a?.tel??"031-380-3724",{t:i}=de.useTranslation();return t.jsx("footer",{className:"site-footer",children:t.jsxs("div",{className:"safearea",children:[t.jsxs("div",{className:"site-footer__top",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
970
+ </html>`}function no({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:o,header:i=""}){const l=s.useCallback(()=>{Tb(e(),n,a,r,i)},[e,n,a,r,i]),c=s.useCallback(()=>{const d=e();if(d.length===0)return;const p=window.open("","_blank");if(!p){o?.();return}p.document.write(to(d,n,a,!1,r,i)),p.document.close()},[e,n,a,r,o,i]),u=s.useCallback(()=>{const d=e();if(d.length===0)return;const p=to(d,n,a,!1,r,i),m=new Blob([p],{type:"text/html;charset=utf-8"}),h=URL.createObjectURL(m),C=r&&eo(r),y=Object.assign(document.createElement("a"),{href:h,download:`${C}.html`});document.body.appendChild(y),y.click(),document.body.removeChild(y),URL.revokeObjectURL(h)},[e,n,a,r,i]);return{print:l,openNewWindow:c,downloadHtml:u}}function Xl(e){const{t:n}=de.useTranslation(),[a,r]=s.useState("landscape"),[o,i]=s.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[l,c]=s.useState("\uD45C\uC2DC"),[u,d]=s.useState(!0),[p,m]=s.useState(!0),[h,C]=s.useState(8),[y,f]=s.useState("right"),v=e.length,g=e.some(O=>O.words.length>1),x=e.some(O=>O.words.some(j=>!!j.colloquialLabel)),_=Math.min(h,Math.max(v,1)),b=s.useMemo(()=>jl(e,_),[e,_]),A=b.length>1,w=_,[D,B]=s.useState(!1);s.useEffect(()=>{let O=!1;if(!Wn()){B(!1);return}return Promise.all(e.flatMap(j=>j.words.map(H=>Ns(H.label,H.homonum)))).then(j=>{O||B(j.some(Boolean))},()=>{}),()=>{O=!0}},[e]);const k=s.useMemo(()=>[Fl(n,{hasImage:D,hasColloquial:x}),Ol(n),...v>0?[Wl(n,{hasPairs:g,itemCount:v})]:[],...A?[ql(n)]:[],Hl(n),...w>1?[Vl(n)]:[],...g?[zl(n)]:[]],[n,D,x,v,g,A,w]),N={...Kl(n,{contentTypes:o,orientation:a,showOutline:u,cutLine:l,showDivLine:p}),...v>0?{[n(g?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${_}\uAC1C`}:{},...A?{[n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Ul[y]}:{}},I=s.useCallback((O,j)=>{if(!Yl(n,O,j,{setContentTypes:i,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:m}))if(j===n("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||j===n("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")){const H=parseInt(O);C(Jr.includes(H)?H:Number.POSITIVE_INFINITY)}else j===n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&f(Gl(O))},[n]);return{settings:{orientation:a,contentTypes:o,cutLine:l,showOutline:u,showDivLine:p,count:w},filterSections:k,filterSelected:N,handleSelect:I,pages:b,isPaginated:A,pageNumberPosition:y}}function jb({items:e,words:n,title:a,subtitle:r,emptyText:o,buttons:i,renderButtons:l,renderFooter:c,footerClassName:u,printFileName:d,showSettings:p,autoPrint:m,className:h,onClose:C,scoring:y=!1,onScoreChange:f,printHeader:v,beforeClose:g}){const{t:x}=de.useTranslation(),_=s.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(se=>typeof se=="string"&&se.length>0).map((se,oe)=>({id:`${se}-${oe}`,words:[{label:se}]})),[e,n]),{settings:b,filterSections:A,filterSelected:w,handleSelect:D,pages:B,isPaginated:k,pageNumberPosition:N}=Xl(_),I=s.useMemo(()=>Tl(B.map(se=>se.length)),[B]),[O,j]=s.useState({}),H=s.useCallback((se,oe)=>{j(Ce=>({...Ce,[za(se)]:Bl(Ce[za(se)]??null,oe)}))},[]),T=s.useRef(f);s.useEffect(()=>{T.current=f});const K=s.useRef(O);s.useEffect(()=>{K.current!==O&&(K.current=O,T.current?.(Zr(O)))},[O]);const W=s.useMemo(()=>Zr(O),[O]),V=s.useRef(null),{toastMessage:U,toastKey:re,showWarning:P,clearToast:$}=Bi("warning"),M=s.useRef([]),L=s.useCallback(()=>k?M.current.filter(se=>se!==null):V.current?[V.current]:[],[k]),{print:z,openNewWindow:R}=no({getElements:L,paperW:Zn[b.orientation].width,paperH:Zn[b.orientation].height,fileName:d??"",header:v??"",onPopupBlocked:()=>P(x("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),E=s.useMemo(()=>c?void 0:l?l({print:z,openNewWindow:R}):d?[{label:x("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>R()},{label:x("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>z()},...i??[]]:i,[c,l,d,i,x,z,R]),F=s.useMemo(()=>c?c({print:z,openNewWindow:R}):void 0,[c,z,R]),ae=s.useRef(!1),le=s.useRef(z);return s.useEffect(()=>{le.current=z},[z]),s.useEffect(()=>{if(!m||ae.current)return;const se=window.setTimeout(()=>{ae.current=!0,le.current()},100);return()=>window.clearTimeout(se)},[m]),t.jsxs(Nn,{title:a??x("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:ve("word-table-popup",h),buttons:E,footer:F,footerClassName:u,beforeClose:g,onClose:C,children:[_.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[p&&t.jsx(Qr,{sections:A,selected:w,onSelect:D}),k?t.jsx("div",{className:"word-table-popup__pages",children:B.map((se,oe)=>t.jsx(Xn,{items:se,orientation:b.orientation,contentTypes:b.contentTypes,cutLine:b.cutLine,showOutline:b.showOutline,showDivLine:b.showDivLine,count:b.count,contentRef:Ce=>{M.current[oe]=Ce},pageNumber:{current:oe+1,total:B.length},pageNumberPosition:N,scoring:y,scoreIndexOffset:I[oe],marks:W,onMarkClick:H},oe))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(Xn,{items:_,orientation:b.orientation,contentTypes:b.contentTypes,cutLine:b.cutLine,showOutline:b.showOutline,showDivLine:b.showDivLine,count:b.count,contentRef:V,fitHeight:!0,scoring:y,marks:W,onMarkClick:H})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:o??x("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(Kn,{message:U,position:"top",onClose:$},re)]})}const Eb=new Set(["x","triangle"]);function Mb(e,n){const a=[];for(let r=0;r<e.length;r++){const o=n[String(r)];o&&Eb.has(o)&&a.push(e[r])}return a}function Lb(e,n){const[,a,r]=xr(n).split("-"),o=`${a}.${r}`,i=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let l=e.trim(),c=1;for(;;){const d=i.exec(l);if(!d)break;c=Math.max(c,(d[1]?Number(d[1]):1)+1),l=l.slice(0,d.index).trim()}const u=c>=2?`${c}\uCC28 `:"";return`${l||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${o}`}function $b(e,n){const a={};for(const[r,o]of Object.entries(n)){if(o!=="o"&&o!=="triangle"&&o!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function Rb(e){return e.map(n=>n.label).join(" / ")}function Pb(e,n,a){const r=Rs(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}const Ib=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function ya(e,n){return Ib().compare(e,n)}const qa=new Map;function Fb(e){const n=qa.get(e);if(n)return n;const a=[],r=/-?\d+(?:\.\d+)?/g;let o=0;for(let i=r.exec(e);i;i=r.exec(e)){let l=i.index,c=i[0];c[0]==="-"&&l>0&&!/\s/.test(e[l-1])&&(l+=1,c=c.slice(1)),l>o&&a.push(e.slice(o,l)),a.push(Number(c)),o=i.index+i[0].length}return o<e.length&&a.push(e.slice(o)),qa.size>5e3&&qa.clear(),qa.set(e,a),a}function Ob(e,n){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),o=a(n);if(r===o)return 0;const i=(d,p)=>typeof d=="number"&&!Number.isNaN(d)?[d]:Fb(p),l=i(e,r),c=i(n,o),u=Math.min(l.length,c.length);for(let d=0;d<u;d++){const p=l[d],m=c[d];if(typeof p=="number"&&typeof m=="number"){if(p!==m)return p-m;continue}if(typeof p=="number")return-1;if(typeof m=="number")return 1;const h=ya(p,m);if(h!==0)return h}return l.length!==c.length?l.length-c.length:ya(r,o)}function Jl(e,n,a){return a===0?0:(e+n*.5)/a}function Hb(e){const n=new Map,a=[...e].sort((o,i)=>o.scoredAt.localeCompare(i.scoredAt));for(const o of a)for(const[i,l]of Object.entries(o.marks)){const c=o.labels?.[i];if(!c)continue;const u=n.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:o.scoredAt};if(l==="o")u.o++;else if(l==="triangle")u.triangle++;else if(l==="x")u.x++;else continue;u.latest=l,u.latestAt=o.scoredAt,n.set(c,u)}const r=[];for(const[o,i]of n){const l=i.o+i.triangle+i.x;r.push({label:o,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Jl(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((o,i)=>o.rate-i.rate||i.tried-o.tried||ya(o.label,i.label)),r}function Vb(e){const n=new Map;for(const r of e){const o=r.tableId??`name:${r.tableName}`,i=n.get(o)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),n.set(o,i)}const a=[];for(const r of n.values()){const o=c=>Object.values(c.marks).filter(u=>u==="o"||u==="triangle"||u==="x").length,i=r.rows.filter(c=>o(c)>0).sort((c,u)=>c.scoredAt.localeCompare(u.scoredAt));if(i.length===0)continue;const l=i.map(c=>{const u=Object.values(c.marks),d=u.filter(m=>m==="o").length,p=u.filter(m=>m==="triangle").length;return Jl(d,p,o(c))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:i.map(c=>c.scoredAt),delta:l.length>=2?l[l.length-1]-l[0]:null})}return a.sort((r,o)=>(o.times[o.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function zb(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function Wb(e){const n=new Map;let a=0,r=0;const o=[...e].sort((l,c)=>l.answeredAt.localeCompare(c.answeredAt));for(const l of o){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const u=l.itemId?.trim()||c,d=`${l.trainingType}|${u}`,p=n.get(d)??{trainingType:l.trainingType,itemId:u,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(p.tried++,l.isCorrect||p.wrong++,p.title=c,p.latestCorrect=l.isCorrect,p.latestAt=l.answeredAt,p.lastSelected=l.selected,l.setId){const m=p.setIds.indexOf(l.setId);m>0&&p.setIds.splice(m,1),m!==0&&p.setIds.unshift(l.setId)}n.set(d,p)}const i=[...n.entries()].map(([l,c])=>({key:l,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return i.sort((l,c)=>l.rate-c.rate||c.tried-l.tried||ya(l.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function qb(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function Ub(e){const n=new Map;for(const r of e){const o=n.get(r.trainingType)??[];o.push(r),n.set(r.trainingType,o)}const a=[...n.entries()].map(([r,o])=>({trainingType:r,items:o,pending:o.filter(i=>!i.latestCorrect).length}));return a.sort((r,o)=>o.pending-r.pending||r.trainingType.localeCompare(o.trainingType)),a}const ao=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function Gb(e){const n=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const l=i.setIds[0];if(!l){a++;continue}const c=`${i.trainingType}|${l}`,u=n.get(c)??{setId:l,trainingType:i.trainingType,pending:0};u.pending++,n.set(c,u)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),o=[...n.values()];return{sentence:o.filter(i=>ao.includes(i.trainingType)).sort(r),word:o.filter(i=>!ao.includes(i.trainingType)).sort(r),noSet:a}}function Kb(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const o=[];for(const i of e){const l=new Set,c=[];for(const u of i.cellLabels)r.has(u)&&!l.has(u)&&(l.add(u),c.push(u));c.length!==0&&o.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return o.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||ya(i.name,l.name)),o.slice(0,Math.max(0,a))}function Yb(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function Zb(e,n){const a=new Map;for(const o of e)for(const i of o.cells){const l=o.labelOf(i);a.has(l)||a.set(l,i)}const r=[];for(const o of n){const i=a.get(o);i!==void 0&&r.push(i)}return r}function ro(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,o)=>String(a[o]))}function Xb(e,n){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),o=a%60;return n?n(r,o):r>0&&o>0?ro($t.t("customers.duration.minSec",{m:r,s:o,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s:o}):r>0?ro($t.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):ro($t.t("customers.duration.sec",{s:o,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s:o})}function Jb(e,n){const a=[],r=new Set;for(const o of e){const i=n(o);r.has(i)||(r.add(i),a.push({key:i,value:o,pinned:!1}))}return a}function Qb(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function ey(e,n){return e.filter(a=>a.key!==n)}function ty(e,n,a){const r=e.filter(d=>d.pinned),o=new Set(r.map(d=>d.key)),i=e.length-r.length,l=[],c=new Set(o);for(const d of n){if(l.length>=i)break;const p=a(d);c.has(p)||(c.add(p),l.push({key:p,value:d,pinned:!1}))}const u=[...l];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function ny(e){return e.map(n=>n.value)}function ay(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},o=n?.key?` icon-grid-menu__button--${n.key}`:"",i=s.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${o}`,children:[t.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":n?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,children:t.jsx(Ue,{icon:n.icon,label:n.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),t.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:n.label})]})}function ry(e){const{categories:n=[],selected:a,onSelect:r,size:o="medium"}=e||{},i=a!==void 0,[l,c]=s.useState(()=>i?null:(n&&n[0]?.key)??null),u=i?a:l,d=s.useRef(r);s.useEffect(()=>{d.current=r});const p=s.useRef(!1),m=(n&&n[0]?.key)??null;s.useEffect(()=>{if(i||p.current||!m)return;p.current=!0;const C=l??m;l==null&&c(C),d.current?.(C)},[i,m]);const h=s.useCallback(C=>{const y=u===C?null:C;p.current=!0,i||c(y),r?.(y)},[u,i,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${o}`,children:(n||[]).map(C=>t.jsx(ay,{category:C,isSelected:u===C.key,onClick:()=>h(C.key)},C.key))})}function oy({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const o=r==="small"?32:40;return t.jsx("div",{className:`choice-chips choice-chips--${r}`,children:t.jsx("div",{className:"choice-chips__list",children:e.map(i=>t.jsx(ie,{htmlType:"button",size:o,type:"bar",label:i.label,selected:n===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function sy({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",o=a?.tel??"031-380-3724",{t:i}=de.useTranslation();return t.jsx("footer",{className:"site-footer",children:t.jsxs("div",{className:"safearea",children:[t.jsxs("div",{className:"site-footer__top",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
971
971
  \uC2E0\uB8B0\uB97C \uC313\uACE0
972
972
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
973
- `).map((l,c,u)=>t.jsxs(s.Fragment,{children:[l,c<u.length-1&&t.jsx("br",{})]},c))})}),t.jsxs("div",{className:"site-footer__links",children:[t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:i("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{n&&(l.preventDefault(),n())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),t.jsx("hr",{className:"site-footer__rule"}),t.jsxs("div",{className:"site-footer__bottom",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("img",{src:Mr,alt:"IHAB",className:"site-footer__logo"})}),t.jsxs("div",{className:"site-footer__meta",children:[t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),t.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),t.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),t.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",o]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function iy({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:o,className:i,containerClassName:l,renderLink:c,menuLabel:u}){const{t:d}=de.useTranslation(),p=u??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,h]=s.useState(!1),C=s.useId(),y=s.useRef(null);s.useEffect(()=>{if(!m)return;const g=$n(()=>{const b=document.getElementById(C);b&&b.contains(document.activeElement)&&y.current?.focus(),h(!1)}),x=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,_=b=>{b.matches&&h(!1)};return x&&(x.matches&&h(!1),x.addEventListener?.("change",_)),()=>{g(),x?.removeEventListener?.("change",_)}},[m,C]);const f=l?`${l} landing-header__inner`:"landing-header__inner",v=(g,x)=>c?c(g,{onClick:x}):t.jsx("a",{href:g.href,onClick:x,"aria-current":g.current?"page":void 0,children:g.label});return t.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[t.jsxs("div",{className:f,children:[e!=null&&(()=>{const g=typeof e=="string"?t.jsx("img",{src:e,alt:n,className:"landing-header__logo"}):e;return a?t.jsx("a",{href:a,className:"landing-header__brand",children:g}):t.jsx("div",{className:"landing-header__brand",children:g})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map((g,x)=>t.jsx("span",{children:v(g)},`${x}:${g.href}`))}),t.jsxs("div",{className:"landing-header__actions",children:[o,r.length>0&&t.jsx("button",{ref:y,type:"button",onClick:()=>h(g=>!g),"aria-expanded":m,"aria-controls":C,"aria-label":m?p.close:p.open,className:m?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:t.jsxs("span",{className:"landing-header__burger",children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})})]})]}),r.length>0&&t.jsx("nav",{id:C,hidden:!m,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map((g,x)=>t.jsx("span",{className:"landing-header__drawer-item",children:v(g,()=>h(!1))},`${x}:${g.href}`))})})]})}function ly({children:e,action:n,onClick:a,className:r}){const o=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return t.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:t.jsxs("div",{className:o,onClick:a,..._l(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const Qn=9,cy=e=>Math.round(Math.min(Qn,Math.max(0,e))/Qn*100),uy=e=>e/100*Qn,Ua=2,Ql=.1,ec=e=>Math.min(Ua,Math.max(0,e)),dy=e=>Math.round(e*10)/10;function va(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return ec(n);const a=Math.min(Qn,Math.max(0,Number(e.level)||0))/Qn,r=Number(e.mainVolume);return r>0?dy(ec(a/r)):1}const tc=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function nc(e){return tc(e)}function oo(e){return tc(e)*va(e)}function so(e,n=vs()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,oo(e)/a)}function xa(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=va({level:a.level,mainVolume:a.mainVolume})),a}const _a={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},io=s.createContext(null);function Ga(){return s.useContext(io)}const lo=e=>`${a0()}/${e}`,ac=e=>Array.from({length:10},(n,a)=>lo(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),Ka={get defaultNoise(){return lo("noise1.mp3")},get street(){return ac("noise2")},get restaurant(){return ac("noise3")},get buzz(){return lo("noise4.mp3")}};function py(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return Ka.defaultNoise;case"street":return Ka.street[n];case"restaurant":return Ka.restaurant[n];case"buzz":return Ka.buzz;default:return null}}function my({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=s.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const o=s.useRef(null),[i,l]=s.useState(null),c=s.useRef(null),u=s.useRef(null),d=s.useRef(null),p=s.useRef(null),m=s.useRef(0),h=s.useRef(null),C=s.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),y=s.useCallback((_,b=250)=>{const A=o.current;if(!A)return;const w=u.current;if(w){u.current=null;try{A.pause()}catch{}A.src=w,A.load()}if(!A.src)return;m.current+=1,C();try{Cr(),Na(A).then(N=>{if(o.current===A)try{r.current?.("noise",N)}catch{}})}catch{}const D=A.paused?0:Ba(A);A.paused&&_n(A,0),A.play().catch(()=>{});const B=performance.now(),k=()=>{const N=Math.min(1,(performance.now()-B)/b);try{_n(A,D+(_-D)*N)}catch{}N<1?p.current=requestAnimationFrame(k):p.current=null};p.current=requestAnimationFrame(k)},[C]),f=s.useCallback((_=250,b)=>{const A=o.current;if(!A||A.paused){b?.();return}const w=++m.current;C();const D=performance.now(),B=Ba(A),k=()=>{const N=Math.min(1,(performance.now()-D)/_);try{_n(A,B*(1-N))}catch{}if(N<1)p.current=requestAnimationFrame(k);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{A.pause()}catch{}b?.()}};p.current=requestAnimationFrame(k),h.current=setTimeout(()=>{if(h.current=null,m.current===w){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{A.paused||(_n(A,0),A.pause(),b?.())}catch{}}},_+150)},[C]);s.useEffect(()=>{const _=document.createElement("audio");return _.loop=!0,_.crossOrigin="anonymous",o.current=_,()=>{C();try{_.pause(),_.src=""}catch{}o.current=null,c.current=null,u.current=null}},[C]);const v=e?so(e.settings):0,g=!!e?.settings.enabled&&v>0;s.useEffect(()=>{if(!g)return;let _=0;const b=setInterval(()=>{const A=o.current;if(!A||A.paused){_=0;return}const w=n.current;if(w&&!w.paused&&!w.ended||a.current==="playing"){_=0;return}_+=1,_>=2&&(_=0,f())},400);return()=>clearInterval(b)},[f,g,n,a]),s.useEffect(()=>{const _=()=>{if(!document.hidden)return;const b=o.current;if(b&&!b.paused){C();try{b.pause()}catch{}}};return document.addEventListener("visibilitychange",_),()=>document.removeEventListener("visibilitychange",_)},[C]),s.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:v,type:e.settings.type}:null},[e,e?.settings.enabled,v,e?.settings.type]);const x=s.useRef(null);return s.useEffect(()=>()=>{x.current?.(),x.current=null},[]),s.useEffect(()=>{const _=e?.settings,b=o.current;if(!b)return;const A=_?so(_):0;if(!_||!_.enabled||A===0){f();return}if(c.current!==_.type){const w=py(_.type);w&&(c.current=_.type,l(w),u.current=w,f(150,()=>{if(u.current!==w)return;u.current=null,b.src=w,b.load();const D=n.current;if(D&&!D.paused){x.current?.();const B=()=>{b.removeEventListener("canplay",B),x.current===k&&(x.current=null);const N=n.current,I=d.current;N&&!N.paused&&!N.ended&&I?.enabled&&I.volume>0&&y(I.volume)},k=()=>b.removeEventListener("canplay",B);x.current=k,b.addEventListener("canplay",B)}}))}else{const w=n.current,D=!!w&&!w.paused&&!w.ended||a.current==="playing";if(D&&u.current)y(A);else if(D&&b.paused&&b.src)y(A);else if(!b.paused)if(!D)f();else{C();const B=Ba(b),k=performance.now(),N=()=>{const I=Math.min(1,(performance.now()-k)/150);try{_n(b,B+(A-B)*I)}catch{}I<1?p.current=requestAnimationFrame(N):p.current=null};p.current=requestAnimationFrame(N)}}},[e?.settings,e?.settings.enabled,v,e?.settings.type,C,y,f,n,a,d]),s.useEffect(()=>{const _=o.current;if(_)try{_.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:o,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:C,fadeInNoise:y,fadeOutNoise:f}}function hy({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:o,setProgress:i,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const C=s.useRef(null),y=s.useRef(0),f=s.useRef(null),v=s.useRef(0),g=s.useRef(!1);s.useEffect(()=>()=>{v.current++;try{if(f.current&&(cancelAnimationFrame(f.current),f.current=null),g.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}g.current=!1}}catch{}},[]);const x=(A,w=1)=>{try{const D=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(D*300/Math.max(.25,w)))}catch{return 1200}},_=s.useCallback(A=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!0)}catch{}return}const w=window.speechSynthesis,D=++v.current;try{try{w.cancel()}catch{}const B=A??e,k=(Array.isArray(B)?B[0]??"":B)||"",N=new SpeechSynthesisUtterance(k);try{N.rate=Math.max(.3,Math.min(3,n))}catch{}try{N.volume=Math.max(0,Math.min(1,a))}catch{}y.current=x(k,N.rate||1),C.current=performance.now(),i(0),l("playing"),c("playMode");const I=p.current;I?.enabled&&(I?.volume??0)>0&&u(I.volume);const O=()=>{try{const E=C.current||performance.now(),H=performance.now()-E,T=y.current||1200,K=Math.min(1,H/T);try{r.current&&(r.current.style.left=`${K*100}%`),o.current&&o.current.style.setProperty("--progress",String(K))}catch{}K<1&&(f.current=requestAnimationFrame(O))}catch{}};N.onend=()=>{if(D===v.current)try{f.current&&(cancelAnimationFrame(f.current),f.current=null),i(1),l("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},N.onerror=()=>{N.onend?.(new Event("end"))},N.onstart=()=>{try{f.current&&(cancelAnimationFrame(f.current),f.current=null),f.current=requestAnimationFrame(O)}catch{}};try{g.current=!0,w.speak(N)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,n,a,u,r,o,i,l,c,p,m,h]),b=s.useCallback(()=>{v.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}f.current&&(cancelAnimationFrame(f.current),f.current=null),d(),C.current=null}catch{}l("stopped"),c("active"),i(0)},[d,l,c,i]);return{startTTS:_,stopTTS:b}}async function fy(e,n,a){let r=null;try{const o=window.AudioContext||window.webkitAudioContext;r=new o;const i=await r.decodeAudioData(e.slice(0)),l=i.numberOfChannels>0?i.getChannelData(0):null;if(!l)return null;const c=a&&a>0?Math.min(l.length,Math.floor(a*i.sampleRate)):l.length,u=Math.max(n,c),d=Math.floor(u/n)||1;return new Array(n).fill(0).map((p,m)=>{const h=m*d,C=Math.min(h+d,u);let y=0;for(let f=h;f<C;f++){const v=Math.abs(l[f]);v>y&&(y=v)}return y})}catch{return null}finally{try{r?.close?.()}catch{}}}async function rc(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const o=await r.arrayBuffer();return await fy(o,n,a)}catch(r){try{const o=Ts(r)}catch{}return null}}const oc=45,Cy=74,gy=2;function wa(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function co(e){return wa(e)/45}const sc=4;function by(e){const{src:n,segments:a,progress:r=0,waveProgressRef:o,noiseSrc:i,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=s.useRef(null),C=s.useRef(null),[y,f]=s.useState(null),[v,g]=s.useState(!1),[x,_]=s.useState(null),[b,A]=s.useState(2),[w,D]=s.useState(0),[B,k]=s.useState(null),[N,I]=s.useState(!1),O=3,E=3,H=1,T=300,K=s.useRef(0),W=s.useCallback(async(ne,ee)=>{const ie=++K.current,Ce=()=>K.current===ie;try{if(g(!1),!ne){Ce()&&f(null);return}let Z=ee;if(!Z)try{for(let te=0;te<4&&!(h.current||C.current);te++)await new Promise(ke=>requestAnimationFrame(ke));await new Promise(te=>requestAnimationFrame(te));const X=h.current,ge=C&&C.current?C.current:X?X.closest(".audio-player__wave"):null,_e=ge?ge.getBoundingClientRect():X?X.getBoundingClientRect():null,Se=_e?Math.max(100,_e.width):320,ue=_e?_e.height:0;ue>0&&D(ue),Z=Math.max(H,Math.min(T,Math.floor((Se+E)/(O+E))));const be=Z*O,Ae=Math.max(0,Z-1),Q=Ae>0?(Se-be)/Ae:E;A(Math.max(0,Q))}catch{Z=120}const oe=await rc(ne,Z);if(!Ce())return;if(!oe){f(null),g(!1);return}f(oe),_(Z),g(!0)}catch{if(!Ce())return;f(null),g(!1)}},[g,f,D,A,_]);s.useEffect(()=>{const ne=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;W(typeof ne=="string"?ne:void 0).catch(()=>{}),I(!1)},[n,a,W]),s.useEffect(()=>{let ne=!1;if(!i||!x){k(null);return}const ee=u>0?u*(c||1):void 0;return rc(i,x,ee).then(ie=>{ne||k(ie)}).catch(()=>{ne||k(null)}),()=>{ne=!0}},[i,x,u,c]);const V=Math.max(0,Math.min(1,d)),U=s.useMemo(()=>y&&y.length&&Math.max(...y)||1,[y]),re=x||40,P=s.useMemo(()=>Array.from({length:re}).map((ne,ee)=>{const ie=y&&y[ee]!=null?y[ee]:null,Ce=ie==null?null:Math.min(1,ie/U*V),Z=Ce!=null&&w>0&&wa(Ce)<=sc,oe=Ce==null?.15:Z?0:co(Ce),X=re>1?ee/(re-1):0;return t.jsx("div",{className:Z?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":oe,"--i":ee,"--mix":X}},ee)}),[re,y,U,V,w]),R={"--progress":String(Math.max(0,Math.min(1,r)))},M=i?Math.max(1,l):1,L={"--bar-gap":`${b}px`,"--wave-h":`${wa(M)}px`,"--wave-h1":`${oc}px`},z=V*Math.max(0,l)/vs(),$=v&&(i?!!B:!0);s.useEffect(()=>{$&&I(!0)},[$]);const j=N?v:$;s.useEffect(()=>{p?.(j)},[j,p]);const F=x||40,se=s.useMemo(()=>Array.from({length:F}).map((ne,ee)=>{const ie=B&&B[ee]!=null?B[ee]:null,Ce=ie==null?0:ie/U*z,Z=w>0&&wa(Ce)<=sc,oe=Z?0:co(Ce),X=F>1?ee/(F-1):0;return t.jsx("div",{className:Z?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":oe,"--i":ee,"--mix":X}},ee)}),[F,B,U,z,w]);return t.jsxs("div",{className:"audio-player__wave",ref:C,style:L,children:[i&&t.jsx("div",{className:`audio-player__wave-noise ${$?"is-ready":""}`,"aria-hidden":"true",children:se}),m&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${j?"is-ready":""}`,ref:h,children:P}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${j?"is-ready":""}`,ref:o,style:R,children:P})]})]})}const yy={idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"};function uo(e,n){return new Promise((a,r)=>{const o=document.createElement("audio");let i=!1;const l=()=>{try{o.src=""}catch{}},c=()=>{if(i)return;i=!0;const d=isFinite(o.duration)&&o.duration||0;l(),a(d)},u=d=>{i||(i=!0,l(),n.rejectOnError?r(new Error(d)):a(0))};o.addEventListener("loadedmetadata",c),o.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),n.timeoutMs),o.src=e})}const vy=2e3;function ic(e,n=vy){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.addEventListener("canplay",o,{once:!0}),e.addEventListener("error",o,{once:!0}),setTimeout(o,n)})}function xy({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=s.useRef(!1),o=s.useRef([]),i=s.useCallback(u=>{if(r.current=u,!u||!o.current.length)return;const d=o.current;o.current=[];for(const p of d)p()},[]),l=s.useCallback(()=>{r.current=!1},[]),c=s.useCallback(()=>!e&&!n||r.current?Promise.resolve():new Promise(u=>{const d=setTimeout(u,a);o.current.push(()=>{clearTimeout(d),u()})}),[e,n,a]);return s.useEffect(()=>()=>{const u=o.current;o.current=[];for(const d of u)d()},[]),{onReadyChange:i,waitForReady:c,markNotReady:l}}function _y(){const e=s.useRef([]),n=s.useCallback(o=>(e.current.push(o),o),[]),a=s.useCallback(o=>{const i=new Set([...o].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=s.useCallback(()=>{a([])},[a]);return s.useEffect(()=>()=>{for(const o of e.current)try{URL.revokeObjectURL(o)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function wy({offsetY:e=8}={}){const n=s.useRef(null),[a,r]=s.useState(null),o=s.useCallback(()=>r(null),[]),i=s.useCallback(()=>{try{const l=n.current?.getBoundingClientRect();if(!l)return;r({left:l.left,right:l.right,width:l.width,height:l.height,x:l.x,top:l.top+e,bottom:l.bottom+e,y:l.y+e,toJSON:l.toJSON.bind(l)})}catch{}},[e]);return s.useEffect(()=>{if(a)return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[a,o]),{ref:n,rect:a,show:i,hide:o}}function ky({currentTime:e,sources:n,index:a,audioDuration:r}){const o=a||0,i=Array.isArray(n)&&n.length>0?n[o]:void 0,l=i?i.duration||r||0:r||0;if(!(l>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/l))}function Ay(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function Ny({ended:e,completedByEnd:n}){return!!e||!!n}function By(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function Dy(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function Sy(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],o=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;o.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){o.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),c=a(l,n);c&&o.push({code:l,resolvedPath:c})}}return o}function Ty({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:o}){const i=s.useRef(null),l=s.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=s.useCallback(()=>{if(i.current!==null)return;const d=()=>{try{const p=e.current,m=ky({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:o.current,audioDuration:p&&p.duration?p.duration:0});try{n.current&&(n.current.style.left=`${m*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(m))}catch{}}catch{}i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)},[e,n,a,r,o]),u=s.useCallback(d=>{l();try{n.current&&(n.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,n,a]);return s.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:u}}function po({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:o=!1,ttsText:i=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=de.useTranslation(),p=e,m=Ga(),h=s.useRef(m?.registerAnalyser);s.useEffect(()=>{h.current=m?.registerAnalyser});const C=s.useRef(null),y=s.useRef(null),f=s.useRef(null),v=_y(),g=s.useRef(null),x=s.useRef(!1),_=s.useRef(0),b=s.useRef(null),{ref:A,rect:w,show:D,hide:B}=wy();s.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[k,N]=s.useState(!1),[I,O]=s.useState("idle"),[E,H]=s.useState("stopped"),T=s.useRef("stopped");s.useEffect(()=>{T.current=E},[E]);const[K,W]=s.useState(0),[V,U]=s.useState("active"),re=s.useRef(!1);s.useEffect(()=>{if(V!=="playMode"||!re.current)return;re.current=!1;const Y=typeof document<"u"?document.activeElement:null;if(Y&&Y!==document.body)return;const fe=f.current?.querySelectorAll("button")[1];try{fe?.focus()}catch{}},[V]);const[P,R]=s.useState(null),[M,L]=s.useState(null),[z,$]=s.useState(0),[j,F]=s.useState(!1),[se,ne]=s.useState(0),ee=m?.playbackRate??1,ie=m?.mainVolume??1,Ce=m?oo(m.settings):0,Z=m?nc(m.settings):ie,[oe,X]=s.useState("idle"),[ge,_e]=s.useState(""),[Se]=s.useState("top"),ue=s.useRef(null),be=s.useRef(0),Ae=s.useRef(null),{start:Q,stop:te,settleTo:ke}=Ty({audioRef:C,fillRef:y,waveProgressRef:Ae,sourcesRef:ue,currentIndexRef:be}),{onReadyChange:Te,waitForReady:ze,markNotReady:Le}=xy({showSoundWaveForm:c,showNoiseWaveForm:u}),We=s.useRef(null),Re=s.useRef(o),et=s.useRef(r),Ke=s.useRef(null),Ge=s.useRef(!1),[ye,Oe]=s.useState(!1),Ee=s.useCallback(Y=>{Ge.current=Y,Oe(Y)},[]),Pe=s.useRef(null),{activeNoiseUrl:qe,noiseSettingsRef:Ye,fadeInNoise:ct,fadeOutNoise:ut}=my({noisePlayer:m,audioRef:C,playbackStateRef:T}),{startTTS:dt,stopTTS:Xe}=hy({ttsText:i,playbackRate:ee,mainVolume:Z,fillRef:y,waveProgressRef:Ae,setProgress:W,setPlaybackState:H,setStateLocal:U,fadeInNoise:ct,fadeOutNoise:ut,noiseSettingsRef:Ye,onDoneRef:et,handleEndRef:Pe});s.useEffect(()=>{Gt.current=Xe});const tt=Y=>{Kt("tts"),dt(Y)},He=Array.isArray(n)?n.filter(Boolean):n?[n]:[],nt=(!He||He.length===0)&&!!i,Je=Array.isArray(P)&&P.length>0?P:Array.isArray(M)&&M.length>0?M:null,rt=Math.max(Array.isArray(Je)?Je.length:0,He.length),Me=s.useRef(!0);s.useEffect(()=>(Me.current=!0,()=>{Me.current=!1}),[]);const Qe=s.useRef(0),yt=()=>{Qe.current+=1,_.current+=1},Gt=s.useRef(null),mt=s.useRef(null),_t=s.useRef(null),zt=s.useRef(null);zt.current||(zt.current=()=>{_t.current=null;const Y=C.current;if(mt.current==="audio"&&Y&&!Y.paused){Qe.current+=1,_.current+=1;try{Y.pause()}catch{}Me.current&&H("paused")}else if(mt.current==="tts")try{Gt.current?.()}catch{}});const Kt=Y=>{mt.current=Y,_t.current=qr(zt.current)},wt=()=>{_t.current?.(),_t.current=null};s.useEffect(()=>()=>{zt.current&&Oa(zt.current)},[]);const ht=s.useCallback(async(Y,fe=3,Be=50)=>{const $e=Qe.current;for(let je=0;je<fe;je++){if(!Me.current||$e!==Qe.current)return!1;try{return Kt("audio"),await Y.play(),!0}catch(Ve){if((Ve instanceof Error||typeof Ve=="object"&&Ve&&"name"in Ve?Ve.name:void 0)==="AbortError"){if($e!==Qe.current)return!1;await new Promise(ft=>setTimeout(ft,Be));continue}try{_e(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{_e(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),Tt=s.useCallback(()=>{const Y=C.current;if(!Y)return;const fe=()=>{H("playing"),U("playMode"),F(!0),Q();try{Cr(),Na(Y).then(Ve=>{if(Me.current)try{h.current?.("main",Ve)}catch{}})}catch{}const je=Ye.current;je?.enabled&&(je?.volume??0)>0&&ct(je.volume)},Be=()=>{Ny({ended:!!Y?.ended,completedByEnd:Ge.current})||(H("paused"),te(),ut())},$e=()=>{try{const je=ue.current,Ve=Ay(je,be.current);if(Ve!==null){be.current=Ve,$(Ve),F(!0);const ft=je?.[Ve]&&je[Ve].src;if(ft&&Y){Y.src=ft,Y.load(),ht(Y).catch(()=>{});return}}}catch{}H("stopped"),W(1);try{if(Y)try{Y.currentTime=0}catch{}}catch{}te(),F(!1),ut();try{!Re.current&&Pe.current&&Pe.current()}catch{}};return Y.addEventListener("play",fe),Y.addEventListener("pause",Be),Y.addEventListener("ended",$e),()=>{try{Y.removeEventListener("play",fe),Y.removeEventListener("pause",Be),Y.removeEventListener("ended",$e),te()}catch{}}},[ct,ut,ht,Ye,Q,te]);s.useEffect(()=>Tt(),[Tt]),s.useEffect(()=>{Re.current=o},[o]),s.useEffect(()=>{et.current=r},[r]),s.useEffect(()=>{if(o||V!=="active")return;const Y=b.current;if(!Y)return;let fe=null;const Be=requestAnimationFrame(()=>{try{const $e=Y.getTotalLength();if(!$e)return;const je=$e*.2;Y.style.strokeDasharray=`${$e-je} ${je}`;const Ve="triFlow_"+Math.random().toString(36).slice(2);fe=document.createElement("style"),fe.textContent=`@keyframes ${Ve}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${$e}}}`,document.head.appendChild(fe),Y.style.animation=`${Ve} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(Be),fe?.remove()}},[V,o]),s.useEffect(()=>{ue.current=P},[P]),s.useEffect(()=>{be.current=z},[z]),s.useEffect(()=>{const Y=f.current,fe=g.current;if(!Y||!fe)return;let Be=null;const $e=32,je=60,Ve=()=>{try{const Nt=Array.from(Y.querySelectorAll(":scope > .button"));let kt=0;Nt.forEach(dn=>{if(dn===fe)return;const Qa=dn.getBoundingClientRect();kt+=Qa.width});const rn=Y.getBoundingClientRect().width,Zt=Math.max(0,Math.floor(rn-kt-8)),Et=rt;if(!Et||Zt<=0){Array.from(fe.children).forEach(dn=>{try{dn.style.width=""}catch{}});return}let un=Math.floor(Zt/Et);un>je&&(un=je),un<$e&&(un=Math.max($e,Math.floor(Zt/Et))),Array.from(fe.querySelectorAll(".button")).forEach(dn=>{try{dn.style.width=`${un}px`}catch{}})}catch{}},ft=requestAnimationFrame(Ve);try{Be=new ResizeObserver(()=>{requestAnimationFrame(Ve)}),Be.observe(Y),Be.observe(fe),window.addEventListener("resize",Ve)}catch{}return()=>{try{cancelAnimationFrame(ft)}catch{}try{Be&&(Be.disconnect(),Be=null)}catch{}try{window.removeEventListener("resize",Ve)}catch{}}},[P,M,rt]),s.useEffect(()=>()=>{try{We.current&&(clearTimeout(We.current),We.current=null),Ke.current&&(clearTimeout(Ke.current),Ke.current=null)}catch{}},[]);const It=(Y,fe)=>{R(Y),ne(fe),Le(),L(By(Y)),ue.current=Y},yn=async(Y,fe)=>{Ee(!1),x.current=!1,Y.src=fe,Y.load(),await ic(Y),await ze(),N(!1),await ht(Y),U("playMode"),$(0),F(!0)},Sn=async(Y,fe=!1)=>{const Be=C.current;N(!0),O("measuring_duration");try{const $e=await uo(Y,{timeoutMs:1e4,rejectOnError:!0});It([{src:Y,objectUrl:null,duration:$e}],$e),O("ready"),fe&&Be&&await yn(Be,Y)}finally{x.current=!1,N(!1)}},at=async(Y,fe=!1)=>{const Be=C.current;N(!0),O("measuring_duration");try{const $e=await Promise.all(Y.map(Ve=>uo(Ve,{timeoutMs:1e4})));if(!Me.current)return;const je=Y.map((Ve,ft)=>({src:Ve,objectUrl:null,duration:$e[ft]||0}));It(je,Dy(je)),O("ready"),fe&&Be&&je.length>0&&await yn(Be,je[0].src)}finally{x.current=!1,N(!1)}},Wt=async(Y=!1,fe=!0)=>{const Be=C.current,$e=n?Array.isArray(n)?n:[n]:[];if(!$e||$e.length===0||!$e.some(Boolean))return!1;if(x.current)return null;x.current=!0,fe&&N(!0),O("resolving");try{const je=Sy(n,a,gs),Ve=[];let ft=0;for(const Nt of je){let kt=Nt.src??null,rn=null;if(!kt&&Nt.resolvedPath){try{O("getting_signed_url"),kt=await bs(Nt.resolvedPath)}catch{kt=null}if(!Me.current)return!1;if(!kt)try{O("downloading");const Et=await ys(Nt.resolvedPath);if(!Me.current)return!1;if(Et){const un=Et instanceof Blob?Et:new Blob([Et]);rn=v.track(URL.createObjectURL(un)),kt=rn}}catch{O("error");try{_e(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),U("active")}catch{}}}if(!kt)continue;let Zt=0;try{O("measuring_duration"),Zt=await uo(kt,{timeoutMs:3e3})}catch{Zt=0}if(!Me.current){if(rn)try{URL.revokeObjectURL(rn)}catch{}for(const Et of Ve)if(Et.objectUrl)try{URL.revokeObjectURL(Et.objectUrl)}catch{}return!1}ft+=Zt||0,Ve.push({...Nt,src:kt,objectUrl:rn,duration:Zt})}if(It(Ve,ft),Ve.length>0&&Y&&Be){const Nt=Ve[0];Ee(!1);try{v.keepOnly(Ve.map(kt=>kt.objectUrl))}catch{}if(O("ready"),x.current=!1,Nt.src&&Be)try{Be.src=Nt.src,Be.load(),await ic(Be),await ze(),fe&&N(!1),Be&&await ht(Be)}catch{fe&&N(!1)}else fe&&N(!1);U("playMode"),$(0),F(!0)}return Ve.length>0}finally{x.current=!1,fe&&N(!1),O(je=>je==="ready"?"ready":"idle")}},en=async()=>{const Y=C.current;if(!(!Y&&!nt)){if(nt){const fe=window.speechSynthesis;if(V==="active"){const Be=mr(),$e=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(Be&&$e.length>0){U("load"),N(!0),O("resolving"),x.current=!0;try{const je=await Promise.all($e.map(Ve=>Promise.resolve(Be(Ve))));je.length>1?await at(je,!0):await Sn(je[0],!0)}catch{x.current=!1,N(!1),U("active"),tt($e[0]||void 0)}return}tt($e[0]||void 0);return}if(V==="playMode"){if(Y){if(Y.paused){if(Ge.current){await vt();return}await ht(Y),H("playing")}else yt(),Y.pause(),H("paused");return}try{if(fe&&fe.paused)try{Kt("tts"),fe.resume(),H("playing")}catch{}else try{fe.pause(),H("paused")}catch{}}catch{}}return}if(V==="active"){if(o&&Array.isArray(ue.current)&&ue.current.length>0){const Be=ue.current[0];try{if(Be.src&&Y)try{Y.src=Be.src,Y.load(),Y&&await ht(Y)}catch{}U("playMode"),$(0),F(!0);return}catch{}}U("load");let fe;try{fe=await Wt(!0)}catch{fe=!1}if(fe===!1&&Me.current){try{_e(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}U("active")}return}if(V!=="load"&&(V==="playMode"||V==="active"))try{if(Y&&Y.paused){if(Ge.current){await vt();return}Y&&await ht(Y),H("playing")}else Y&&(yt(),Y.pause(),H("paused"))}catch(fe){(fe instanceof Error||typeof fe=="object"&&fe&&"name"in fe)&&fe.name}}},vt=async()=>{const Y=C.current;if(Y)try{const fe=ue.current;if(Array.isArray(fe)&&fe.length>1){await qt(0);return}Ee(!1);try{Y.currentTime=0}catch{}Y&&await ht(Y),H("playing"),U("playMode")}catch{}},Ft=()=>{if(yt(),wt(),nt){Xe();return}const Y=C.current;try{if(Y){try{Y.pause()}catch{}try{Y.currentTime=0}catch{}}}catch{}ut(),H("stopped"),U("active"),W(0),F(!1)},tn=async(Y,{sameSegment:fe=!1}={})=>{const Be=++_.current,$e=C.current,je=ue.current?.[Y]?.src;try{if(Ee(!1),$(Y),F(!0),be.current=Y,!je||!$e||(fe||Le(),$e.src=je,$e.load(),fe||await ze(),Be!==_.current)||(await ht($e),Be!==_.current))return;H("playing"),U("playMode")}catch{}},nn=async()=>{const Y=ue.current,fe=be.current||0;if(!Y||fe<=0){await vt();return}await tn(fe-1)},ln=async()=>{const Y=ue.current,fe=be.current||0;if(!Y||fe>=Y.length-1){Ft();return}await tn(fe+1)},cn=()=>{if(Ge.current)return;const Y=200,fe=340;Ee(!0),yt(),wt();try{W(1)}catch{}ke(1);try{X("hold")}catch{}try{const Be=C.current,$e=nt&&!!Be?.src;if(!nt||$e){if(Be){Be.pause();try{Be.currentTime=0}catch{}}}else Xe();ut()}catch{}try{H("stopped")}catch{}if(F(!1),!Re.current)try{Ke.current&&(clearTimeout(Ke.current),Ke.current=null),Ke.current=setTimeout(()=>{try{X("out")}catch{}Ke.current=setTimeout(()=>{try{typeof et.current=="function"&&et.current(!0)}catch{}try{X("idle")}catch{}Ke.current=null},fe)},Y)}catch{}};s.useEffect(()=>{Pe.current=cn});const Yt=s.useCallback(()=>_e(""),[]),qt=async Y=>{(ue.current||[])[Y]&&await tn(Y,{sameSegment:Y===be.current})},gt=E==="playing",an=s.useMemo(()=>{if(!M||M.length<=1)return M;const Y=M[z];return Y?[Y]:M},[M,z]),Ot=o===!0;s.useEffect(()=>{try{const Y=C.current;Y&&typeof Y.playbackRate=="number"&&(Y.playbackRate=ee||1)}catch{}},[ee]);const jt=s.useRef({raf:null,timer:null});s.useEffect(()=>{const Y=C.current;if(!Y)return;const fe=Math.max(0,Math.min(1,Z)),Be=jt.current,$e=()=>{Be.raf!==null&&(cancelAnimationFrame(Be.raf),Be.raf=null),Be.timer!==null&&(clearTimeout(Be.timer),Be.timer=null)};$e();const je=Ba(Y);if(Y.paused||Math.abs(je-fe)<.001||typeof requestAnimationFrame!="function"){try{_n(Y,fe)}catch{}return}const Ve=performance.now(),ft=()=>{const Nt=Math.min(1,(performance.now()-Ve)/150);try{_n(Y,je+(fe-je)*Nt)}catch{}Be.raf=Nt<1?requestAnimationFrame(ft):null};return Be.raf=requestAnimationFrame(ft),Be.timer=setTimeout(()=>{$e();try{_n(Y,fe)}catch{}},200),$e},[Z]);const ae=oe==="hold",pe=oe==="out",J=V==="playMode"&&!k&&!ye||ae||pe,me=E!=="stopped"||ae||pe,xe=E==="paused",Ne=Math.max(0,Math.min(100,(K||0)*100)),Ie=ve("audio-player__fill",J?"is-visible":"",me?"is-expanded":"",xe?"is-paused":"",pe?"is-out":"");return t.jsxs("div",{className:`audio-player ${Ot?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${gt?"is-playing":""} ${k?"is-loading":""} ${V!=="default"?"is-revealed":""}`,children:[k?t.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[t.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),t.jsx("span",{className:"audio-player__loading-text",children:d(`training.audioStatus.${I}`,{defaultValue:yy[I]})})]}):null,V==="active"?t.jsx("button",{className:"audio-player__button",type:"button",disabled:Ot,onClick:()=>{re.current=Ha(),B(),en()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:D,onMouseLeave:B,onFocus:D,onBlur:B,children:t.jsx("span",{ref:A,className:"audio-player__button-triangle-wrap",children:t.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:t.jsx("path",{ref:b,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,w&&t.jsx(kn,{anchorRect:w,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${V==="playMode"||gt?"is-visible":""}`,inert:!(V==="playMode"||gt)||void 0,children:[t.jsxs("div",{ref:f,className:"audio-player__buttons",children:[t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:nn,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:V!=="playMode"}),t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:gt?"pause":"play",onClick:en,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":gt,width:"60px",variant:"transparent-white",disabled:V!=="playMode"}),t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Ft,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:V!=="playMode"}),rt>1?t.jsx("div",{ref:g,className:"audio-player__source-buttons",children:Array.from({length:rt}).map((Y,fe)=>t.jsx(le,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(fe+1),onClick:()=>{try{qt(fe)}catch{}},ariaLabel:d("training.sourcePlay",{n:fe+1}),variant:"transparent-white",selected:j&&z===fe,disabled:V!=="playMode"||!(Array.isArray(P)&&P[fe]),showTooltipInfo:!0},fe))}):null,!Array.isArray(P)||P.length<=1?t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:vt,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:V!=="playMode"}):null,t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:ln,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:V!=="playMode"}),t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:cn,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:V!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:Ie,ref:y,style:{left:`${Ne}%`},"aria-hidden":"true"}),(c||u)&&t.jsx(by,{segments:an,progress:K,totalDuration:se,onSegmentClick:qt,waveProgressRef:Ae,showSoundWaveForm:c,noiseSrc:u&&m?.settings.enabled&&Ce>0?qe:null,noiseRatio:m?va(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:ie,onReadyChange:Te})]})]}),t.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!c&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Ue,{icon:"triangle-alert",size:14}),d("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(Kn,{message:ge,position:Se,onClose:Yt})]})}function Ya(e){const{t:n}=de.useTranslation(),{text:a,label:r,anchorRect:o=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=s.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});s.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:m,canIncrease:h,canDecrease:C,fontSize:y,lineHeight:f}=bi({storageKey:"tooltip-fontScale"}),v=s.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),g=s.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),x=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${y}px`,lineHeight:`${f}px`,"--tt-line-height":`${f}px`,"--tt-marker-size":"28px"},b=t.jsxs("div",{className:`tooltip-textbox__root ${u==="dark"?"is-dark":""}`,children:[t.jsxs("div",{className:"tooltip-textbox__box",children:[r&&t.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),t.jsx("div",{className:"tooltip-textbox__text body-1",style:_,children:x.map((A,w)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[x.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},w))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:m,ariaLabel:n("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!C}),t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:p,ariaLabel:n("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!h}),t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:v,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:g,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return o?t.jsx(wn,{anchorRect:o,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:b}):t.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:b})}function lc({state:e="disabled"}){const{t:n}=de.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Ue,{icon:"chevron-right",label:n("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),t.jsx("div",{className:"ts-bullet__line"})]})}function cc({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:o=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:m}=de.useTranslation(),h=on("(max-width: 767px)"),C=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),y=`training-step__title-row training-step__title-row--${r}`.trim(),f=s.useRef(null),[v,g]=s.useState(!1),[x,_]=s.useState(null),[b,A]=s.useState(null),w=s.useRef(i);s.useEffect(()=>{w.current=i});const D=s.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(N=>typeof N=="string"||typeof N=="number")?l.join(""):"",[l]),B=s.useCallback(()=>{g(!1),_(null),A(null)},[]);s.useEffect(()=>{if(!v)return;let N;try{typeof w.current=="function"&&(N=w.current())}catch{}if(N===!1){B();return}A(typeof N<"u"&&N!==null?N:null)},[D]);const k=s.useCallback(()=>{let N;try{typeof i=="function"&&(N=i())}catch{}if(N!==!1){if(A(typeof N<"u"&&N!==null?N:l),!f.current){g(I=>!I);return}if(v)g(!1),_(null),A(null);else{const I=f.current.getBoundingClientRect();_(I),g(!0)}}},[i,l,v]);return t.jsxs("div",{className:y,children:[t.jsx("p",{className:C,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),o||u?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[u&&t.jsx(le,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),o&&t.jsx("div",{ref:f,children:t.jsx(le,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:v,onClick:k,variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),v&&t.jsx(Ya,{text:b??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:x,onClose:B,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function mo(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Hn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:o={},children:i,className:l="",onDone:c=void 0,useTitleFaded:u=void 0}){const{t:d}=de.useTranslation(),[p,m]=s.useState(()=>mo(e,n));s.useEffect(()=>{const A=mo(e,n);if(A!==p){const w=setTimeout(()=>m(A),0);return()=>clearTimeout(w)}},[e,n,p]);const h=s.useCallback((...A)=>{mo(e,n)==="done"||p==="done"||typeof c=="function"&&c(...A)},[e,n,p,c]),[C,y]=s.useState(!1),[f,v]=s.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),g=s.useCallback(A=>{if(!A)return null;try{const w=A;if(typeof A=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const k=w.currentTarget??w.target;if(k&&typeof k.getBoundingClientRect=="function")return k.getBoundingClientRect()}if(A instanceof DOMRect)return A;const D=A;if(D&&typeof D.getBoundingClientRect=="function")return D.getBoundingClientRect();const B=A?.current;return B&&typeof B.getBoundingClientRect=="function"?B.getBoundingClientRect():null}catch{return null}},[]),x=s.useCallback((A,{text:w="",label:D="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:B=!1,alignX:k="center",alignY:N="top"}={})=>{const I=g(A);v({text:w,label:D,anchorRect:I,backdrop:B,alignX:k,alignY:N}),y(!0)},[g]),_=s.useCallback(()=>{y(!1),v(A=>({...A,anchorRect:null}))},[]),b=s.Children.map(i,A=>{if(s.isValidElement(A)){const w=A;if(typeof w.type=="string")return w;const D=w.props??{},B=typeof D.onDone=="function"?D.onDone:h,k=typeof D.disabled=="boolean";let N=p==="disabled";return k&&(N=!!D.disabled),s.cloneElement(w,{onDone:B,disabled:N,showTooltip:x,hideTooltip:_})}return A});return t.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[t.jsx(lc,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(cc,{state:p,title:r,...o,useFaded:u}),b]}),C?t.jsx(wn,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:_,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(Ya,{text:f.text,onClose:_})}):null]})}function uc({context:e,state:n="disabled",theme:a="light"}){const{t:r}=de.useTranslation(),[o,i]=s.useState("disabled"),[l,c]=s.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});s.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const u=()=>c(E=>E==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:m,canDecrease:h,fontSize:C,lineHeight:y}=bi({storageKey:"textbox_fontScale"}),[f,v]=s.useState(""),g=s.useRef(null),x=s.useRef(!1),_=s.useCallback(()=>{x.current=Ha()&&!!g.current&&g.current.contains(document.activeElement),i("active")},[]),b=s.useCallback(()=>v(""),[]),A=E=>{try{v(E)}catch{}},w=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");s.useEffect(()=>{if(n!=="disabled"){const E=setTimeout(()=>i(n),0);return()=>clearTimeout(E)}},[n]);const D=s.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[B,k]=s.useState(D);B!==D&&(k(D),i("disabled"));const N=n==="disabled"?o:n,I=N==="disabled"?"training-text-box--disabled":N==="active"?"training-text-box--active":N==="done"?"training-text-box--done":"",O=s.useMemo(()=>({fontSize:`${C}px`,lineHeight:`${y}px`}),[C,y]);return s.useEffect(()=>{if(N==="disabled"||!x.current)return;x.current=!1;const E=document.activeElement;E&&E!==document.body||g.current?.querySelector(".training-text-box__buttons button")?.focus()},[N]),t.jsxs("div",{ref:g,className:`training-text-box ${I} ${N!=="disabled"&&l==="dark"?"is-dark":""}`,children:[N==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(le,{htmlType:"button",size:48,type:"bar",onClick:_,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),t.jsx("div",{className:"training-text-box__area","aria-hidden":N==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:O,children:D})}),N!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":N==="disabled",children:[t.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>A(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),t.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>A(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),t.jsx(le,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(Kn,{message:f,position:"top",onClose:b})]})}function ho({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:o,onDone:i,onChange:l,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:C,shuffleChoices:y=!0}){const{t:f}=de.useTranslation(),v=r??f("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),g=typeof e=="number"?e:-1,x=typeof n!="number"?"disabled":g<n?"done":g===n?"active":"disabled",_=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,b=u?u.join("||"):"",A=d?d.join("||"):"",[w,D]=s.useState(()=>Array.isArray(_)?y?ca(_):_.slice():void 0);s.useEffect(()=>{Array.isArray(_)&&_.length?D(y?ca(_):_.slice()):D(void 0)},[c,b,A,y]);const[B,k]=s.useState(null),[N,I]=s.useState(()=>new Set);s.useEffect(()=>{k(null),I(new Set)},[A,c,b]);const O=s.useRef(void 0);s.useEffect(()=>{const T=O.current;typeof T=="number"&&typeof n=="number"&&typeof e=="number"&&T>=e&&n<e&&(k(null),I(new Set)),O.current=n},[n,e]);const E=s.useCallback(T=>{if(x!=="active")return;const K=w?.[T];if(K==null)return;const W=K,V=x==="active"||x==="done";if(p){const U=new Set(N),re=U.has(W);re?U.delete(W):U.add(W),I(U),typeof l=="function"&&l({selectedValues:[...U],__ts:Date.now()}),V&&(typeof m=="number"&&m>0?U.size>=m:!re)&&typeof i=="function"&&x==="active"&&i({selectedValues:[...U],__ts:Date.now()})}else k(W),typeof l=="function"&&l({selectedIndex:T,selectedValue:W,__ts:Date.now()}),V&&typeof i=="function"&&x==="active"&&i({selectedIndex:T,selectedValue:W,__ts:Date.now()})},[w,x,p,l,i,m,N]),H=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:v,useTitleFaded:o,children:t.jsx("div",{className:H,children:Array.isArray(w)&&w.length>0?w.map((T,K)=>t.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:()=>E(K),ariaLabel:String(T),label:T,useLabel:!0,icon:C?C[String(T)]:void 0,variant:"default",disabled:x==="disabled",selected:p?N.has(T):B===T,useDisabledCovered:h,minWidth:0},String(T))):null})})}function fo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l,demoSelected:c}){const{t:u}=de.useTranslation(),d=r??u("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,m=typeof n!="number"?"disabled":p<n?"done":p===n?"active":"disabled",h=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",C=l&&typeof l=="object"?l.choices:void 0,[y,f]=s.useState(c??null),v=`${String(h)}\0${JSON.stringify(C??null)}`,[g,x]=s.useState(v);g!==v&&(x(v),c==null&&f(null));const[_,b]=s.useState(c);Object.is(_,c)||(b(c),f(c??null));const A=s.useRef(void 0);s.useEffect(()=>{const k=A.current;typeof k=="number"&&typeof n=="number"&&typeof e=="number"&&k>=e&&n<e&&c==null&&f(null),A.current=n},[n,e,c]);const w=s.useCallback(k=>{const N=typeof k=="object"&&k!==null?Object.assign({},k,{__ts:Date.now()}):{value:k,__ts:Date.now()};typeof i=="function"&&i(N),m==="active"&&typeof o=="function"&&o(N)},[i,m,o]),D=s.useCallback(()=>{m==="active"&&(f(!1),w(!1))},[w,m]),B=s.useCallback(()=>{m==="active"&&(f(!0),w(!0))},[w,m]);return t.jsxs(Hn,{index:e,stepIndex:n,isLast:a,title:d,onDone:o,useTitleFaded:!1,children:[t.jsx(uc,{context:l,state:m}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(C)&&C.length>0?C.slice(0,6).map((k,N)=>t.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(f(N),w&&w(N))},disabled:m==="disabled",ariaLabel:String(k),label:k,variant:m,selected:y===N},N)):t.jsxs(t.Fragment,{children:[t.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:D,disabled:m==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!1}),t.jsx(le,{htmlType:"button",size:56,type:"bar",onClick:B,disabled:m==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!0})]})})]})}function Co({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,btnLabel:i,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:C,showNoiseWaveForm:y}){const{t:f}=de.useTranslation(),v=r??f("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),g=m??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:v,onDone:o,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:t.jsx(po,{soundSrc:l,ttsText:l?null:d??v,bucketPath:c,btnLabel:i||f("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:g,className:"training-step__listen-sticky",showSoundWaveForm:C,showNoiseWaveForm:y},`audio-p${h??0}-s${e}`)})}const jy=[];function go({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l=jy}){const{t:c}=de.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=M=>typeof M=="string"?M:M&&(M.context||M.sentence||M.question||"")||"",[p,m]=s.useState(Array.isArray(l)?l:[]),[h,C]=s.useState(()=>(p||[]).map((M,L)=>({id:L,text:d(M)}))),y=s.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]),f=y!=="disabled",v=s.useRef(void 0);s.useEffect(()=>{if(v.current===l)return;v.current=l;const M=Array.isArray(l)?l:[];m(M);const L=(z=>{const $=(z||[]).map((ne,ee)=>({id:ee,text:d(ne)}));if($.length<=1)return $;const j=(ne,ee)=>{if(ne.length!==ee.length)return!1;for(let ie=0;ie<ne.length;ie++)if(ne[ie].text!==ee[ie].text)return!1;return!0};let F=ca($),se=0;for(;j(F,$)&&se<20;)F=ca($),se+=1;return F})(M);C(L);try{if(typeof i=="function"){const z=L.filter(($,j)=>$.text===d(M[j])).length;i({shuffled:L,score:z,total:(M||[]).length,initial:!0,__ts:Date.now()})}if(typeof o=="function"&&y==="active"){const z=L.filter(($,j)=>$.text===d(M[j])).length;o({shuffled:L,score:z,total:(M||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const g=(M,L)=>{const z=[...h],$=M+L;if($<0||$>=z.length)return;const j=z[$];z[$]=z[M],z[M]=j,K(z);try{if(typeof o=="function"&&y==="active"){const F=z.filter((se,ne)=>se.text===d(p[ne])).length;o({shuffled:z,score:F,total:(p||[]).length,__ts:Date.now()})}}catch{}},[x,_]=s.useState(null),b=s.useRef(null),A=s.useRef(null),w=s.useRef(null),D=s.useRef(null),B=s.useRef(null),k=s.useRef({x:0,y:0}),N=s.useRef(null),I=s.useRef({dx:0,dy:0}),O=()=>{if(N.current!==null)return;const M=()=>{if(!b.current){N.current=null;return}N.current=requestAnimationFrame(M);const L=k.current,z=I.current||{dx:0,dy:0};b.current&&(b.current.style.transform=`translate3d(${L.x-z.dx}px, ${L.y-z.dy}px, 0)`)};N.current=requestAnimationFrame(M)},E=s.useRef(new Map),H=s.useRef(new Map),T=()=>{const M=new Map;return E.current.forEach((L,z)=>{L&&L.getBoundingClientRect&&M.set(z,L.getBoundingClientRect())}),M},K=M=>{const L=T();C(M);try{if(typeof i=="function"){const z=M.filter(($,j)=>$.text===d(p[j])).length;i({shuffled:M,score:z,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const z=T();M.forEach($=>{const j=L.get($.id),F=z.get($.id),se=E.current.get($.id);if(!se||!j||!F)return;const ne=j.top-F.top;ne&&(se.style.transition="none",se.style.transform=`translateY(${ne}px)`,requestAnimationFrame(()=>{se.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",se.style.transform="";const ee=()=>{se.style.transition="",se.removeEventListener("transitionend",ee)};se.addEventListener("transitionend",ee)}))})})},W=(M,L)=>{try{try{L.dataTransfer?.setData("text/plain",String(M))}catch{}try{L.dataTransfer&&(L.dataTransfer.effectAllowed="move")}catch{}try{const z=document.createElement("div");z.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(z),L.dataTransfer?.setDragImage(z,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(z)}catch{}})}catch{}}catch{}_(M);try{const z=h[M],$=document.createElement("div");$.className="order-list__dragging-object order-list__dragging-object--visible",$.textContent=z&&z.text?z.text:"",document.body.appendChild($),b.current=$;const j=E.current.get(z.id);let F=L.clientX||0,se=L.clientY||0;try{if(j&&j.getBoundingClientRect){const oe=j.getBoundingClientRect();F=oe.left+oe.width/2,se=oe.top+oe.height/2}}catch{}const ne=$.getBoundingClientRect(),ee=ne.width/2,ie=ne.height/2;I.current={dx:ee,dy:ie},$.style.transition="none",k.current={x:F,y:se},$.style.transform=`translate3d(${F-ee}px, ${se-ie}px, 0)`,requestAnimationFrame(()=>{try{$.style.transition=""}catch{}O()});const Ce=oe=>{const X=oe;k.current={x:X.clientX,y:X.clientY},O()};w.current=Ce,document.addEventListener("mousemove",Ce);const Z=oe=>{const X=oe;k.current={x:X.clientX,y:X.clientY},O()};A.current=Z,document.addEventListener("dragover",Z);try{L.dataTransfer?.setData("text/plain",String(M));try{L.dataTransfer?.setData("application/json",JSON.stringify({idx:M}))}catch{}}catch{}}catch{}},V=(M,L)=>{L.preventDefault();try{L.dataTransfer&&(L.dataTransfer.dropEffect="move")}catch{}try{B.current!==null&&(clearTimeout(B.current),B.current=null);const z=L.currentTarget&&L.currentTarget.closest?L.currentTarget.closest(".order-list__item"):null;if(z&&D.current!==z){if(D.current)try{D.current.classList.remove("drag-over")}catch{}try{z.classList.add("drag-over")}catch{}D.current=z}}catch{}},U=(M,L)=>{L.preventDefault();const z=L.dataTransfer?.getData("text/plain")||"",$=z?parseInt(z,10):x,j=M;if(typeof $!="number"||isNaN($)||$===j){_(null),R(),re();return}const F=S0(h,$,j);K(F),_(null),re();try{if(typeof o=="function"&&y==="active"){const se=F.filter((ne,ee)=>ne.text===d(p[ee])).length;o({shuffled:F,score:se,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const se=document.querySelectorAll(".order-list .order-list__item")[j];if(!se)return;const ne=se.querySelector(".order-list__slot")||se;try{ne.classList.add("pulse"),ne.offsetHeight,ne.classList.add("to-dark");const ee=()=>{ne.classList.remove("pulse","to-dark"),ne.removeEventListener("transitionend",ee)};ne.addEventListener("transitionend",ee)}catch{}})}catch{}R()},re=()=>{if(b.current){try{document.body.removeChild(b.current)}catch{}b.current=null}A.current&&(document.removeEventListener("dragover",A.current),A.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),N.current!==null&&(cancelAnimationFrame(N.current),N.current=null)},P=()=>{_(null),R(),re()};s.useEffect(()=>()=>re(),[]);const R=()=>{try{if(B.current!==null&&(clearTimeout(B.current),B.current=null),D.current){try{D.current.classList.remove("drag-over")}catch{}D.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(M=>M.classList.remove("drag-over"))}catch{}};return s.useEffect(()=>{try{const M=Math.max(1,(h||[]).length);h.forEach((L,z)=>{const $=H.current.get(L.id);if(!$)return;let j=50;M>1&&(j=Math.round(z/(M-1)*100));try{$.style.setProperty("--marker-pos",j+"%")}catch{}})}catch{}},[h]),s.useEffect(()=>()=>{re(),B.current!==null&&(clearTimeout(B.current),B.current=null)},[]),t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:u,children:t.jsx("div",{className:"order-list",children:h.map((M,L)=>{const z=Math.max(1,(h||[]).length),$=z>1?Math.round(L/(z-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":y==="disabled","aria-disabled":y==="disabled",children:[y!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":$+"%"},ref:j=>{const F=H.current;j?F.set(M.id,j):F.delete(M.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:L+1})}):null,t.jsxs("div",{ref:j=>{const F=E.current;j?F.set(M.id,j):F.delete(M.id)},className:`order-list__draggable ${x===L?"dragging":""}`,"data-disabled":y==="disabled","aria-disabled":y==="disabled",tabIndex:y==="disabled"?-1:0,draggable:f,onDragStart:f?j=>W(L,j):void 0,onDragEnter:f?j=>V(L,j):void 0,onDragOver:f?j=>V(L,j):void 0,onDragLeave:f?()=>{try{B.current!==null&&clearTimeout(B.current),B.current=setTimeout(()=>{try{const j=document.querySelectorAll(".order-list .order-list__item");j&&j[L]&&(j[L].classList.remove("drag-over"),D.current===j[L]&&(D.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?j=>U(L,j):void 0,onDragEnd:f?P:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:M.text}),f?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:()=>g(L,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:L===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(le,{htmlType:"button",size:32,type:"dot",onClick:()=>g(L,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:L===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},M.id)})})})}const Ey=8e3;function My(e,n){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.then(o,o),setTimeout(o,n)})}function dc({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:m}=de.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),C=s.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),y=p??3,f=(C||[]).slice(0,y);(C||[]).length>y&&console.warn(`TrainingStepCard: ${C.length} items passed but only ${y} shown`);const v=typeof e=="number"?e:-1,g=typeof n!="number"?"disabled":v<n?"done":v===n?"active":"disabled",[x,_]=s.useState(null),b=s.useRef([]),[A,w]=s.useState(!1),D=s.useRef(!0);s.useEffect(()=>(D.current=!0,()=>{D.current=!1}),[]);const B=s.useMemo(()=>C.map(E=>E?.id??E?.word??"").join("|"),[C]);s.useEffect(()=>{_(null)},[B]);const k=s.useRef(void 0);s.useEffect(()=>{const E=k.current;typeof E=="number"&&typeof n=="number"&&typeof e=="number"&&E>=e&&n<e&&_(null),k.current=n},[n,e]);const N=s.useCallback((E,H)=>{if(c)return;const T={item:E,index:H,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(g==="active"&&typeof o=="function")try{o(T)}catch{}},[c,i,g,o]),I=s.useCallback(async()=>{if(!(A||g==="disabled")){w(!0);try{for(let E=0;E<f.length&&D.current;E++){const H=b.current[E];H&&await My(H.play(),Ey)}}finally{w(!1)}}},[A,g,f.length]),O=s.useCallback((E,H)=>{if(g!=="active")return;_(H);const T={selectedValue:E.word||E.title||"",selectedIndex:H,item:E,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(g==="active"&&typeof o=="function")try{o(T)}catch{}},[i,g,o]);return t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:h,onDone:o,titleProps:{usePlayAllBtn:!d&&f.length>0,onPlayAll:I,playAllActive:A},children:t.jsx("div",{className:"training-step__cards",children:f.length===0?t.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):f.map((E,H)=>t.jsx(Yr,{ref:T=>{b.current[H]=T},item:E,disabled:g==="disabled",onPlayDone:()=>N(E,H),selectable:c,selected:c&&x===H,onSelect:c?()=>O(E,H):void 0,flipDelay:H*120,hideLabel:u,hideAudio:d},E&&E.id||H))})})}const Ly=160,$y={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function Ry(e,n){const a=$y[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}const pc=()=>{};function Bn(e){const n=s.useId();if(!("variant"in e)){const{label:g,sub:x,onClick:_,children:b,align:A="horizontal",icon:w}=e,D=B=>{_&&B.target===B.currentTarget&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),_())};return t.jsxs("div",{className:ve("panel-row",A==="vertical"?"panel-row--vertical":"",_?"panel-row--clickable":""),onClick:_,onKeyDown:_?D:void 0,role:_?"button":void 0,tabIndex:_?0:void 0,children:[w!=null&&t.jsx("div",{className:"panel-row__icon",children:w}),g!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:g}),x&&t.jsx("div",{className:"panel-row__sub caption-1",children:x})]}),t.jsx("div",{className:"panel-row__right",children:b})]})}if(e.variant==="description")return t.jsx("div",{className:"panel-row panel-row--block",children:t.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return t.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return t.jsx("div",{className:"panel-row panel-row--loading",children:t.jsx(ba,{size:28})});if(e.variant==="custom"&&!e.label)return t.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:o,onClick:i,required:l,error:c,align:u="horizontal",useFullWidth:d=!1,icon:p}=e,m=a==="button"?void 0:i;let h=null;const C=a==="toggle"?`panel-toggle-${n}`:void 0,y=c?`panel-error-${n}`:void 0;if(a==="toggle"){const g=e;h=t.jsx(al,{checked:g.checked,onChange:g.onChange,id:C})}else if(a==="segmented"){const g=e;h=t.jsx(On,{options:g.options,value:g.value,onChange:g.onChange,size:g.size??40,ariaLabel:r})}else if(a==="dropdown"){const g=e,x=g.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:g.dropdowns.map((_,b)=>t.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:t.jsx(Jt,{options:_.options,value:_.value,onChange:_.onChange,placeholder:_.placeholder,block:d,error:!!c,ariaDescribedBy:y,ariaLabel:_.ariaLabel??([r,_.placeholder].filter(Boolean).join(" ")||void 0)})},b))}):t.jsx(Jt,{options:g.options??[],value:g.value??"",onChange:g.onChange??pc,block:d,error:!!c,ariaLabel:r,ariaDescribedBy:y});h=c?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[x,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:c})]}):x}else if(a==="button"){const g=e;g.buttons?.length?h=t.jsx("div",{className:"panel-row__button-group",children:g.buttons.map((x,_)=>t.jsx(le,{htmlType:"button",size:x.btnSize??40,variant:x.btnVariant??"default",disabled:x.disabled,onClick:x.onClick,children:x.label},_))}):h=t.jsx(le,{htmlType:"button",size:g.btnSize??40,variant:g.btnVariant??"default",disabled:g.disabled,onClick:g.onClick,children:g.buttonLabel})}else if(a==="text"){const g=e;h=t.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:g.valueColor?{color:g.valueColor}:void 0,children:g.value})}else if(a==="input"){const g=e;h=t.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[t.jsx(Fn,{value:g.value,onChange:g.onChange??pc,onKeyDown:g.onKeyDown,onEnter:g.onEnter,placeholder:g.placeholder,inputMode:g.inputMode,readOnly:g.readOnly,disabled:g.disabled,type:g.type,autoComplete:g.autoComplete,maxLength:g.maxLength,showCount:g.showCount,multiline:g.multiline,rows:g.rows,fullWidth:d,error:c,ariaLabel:r,required:l}),g.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:g.helperText})]})}else a==="custom"&&(h=e.children);c&&a!=="input"&&a!=="dropdown"&&(h=t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[h,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:c})]}));const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,v=g=>{m&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),m())};return t.jsxs("div",{className:ve("panel-row",u==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?v:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,children:[p!=null&&t.jsx("div",{className:"panel-row__icon",children:p}),t.jsxs("div",{className:"panel-row__left",children:[C?t.jsxs("label",{htmlFor:C,className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}):t.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}),o&&t.jsx("div",{className:"panel-row__sub caption-1",children:o})]}),t.jsx("div",{className:"panel-row__right",children:h})]})}function mc(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function Py({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=de.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(o=>{const i=e[o],l=o==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return t.jsxs("div",{className:"panel-row__device-column",children:[t.jsxs("div",{className:"panel-row__device-head",children:[t.jsx("span",{className:"panel-row__device-side body-2b",children:l}),i&&n&&t.jsx(le,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${l} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>n(o)})]}),i?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&t.jsx(lt,{size:"small",variant:vl(i.device),fill:"soft",label:Ry(i.device,r)}),mc(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:mc(i)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${i.wornYear}.${i.wornMonth}.${i.wornDay}`})})]}):t.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},o)})})}function Za({title:e,icon:n,disc:a,actions:r,size:o="medium",minHeight:i,maxWidth:l,className:c,scrollable:u,scrollbarGutter:d="auto",compactRows:p=!1,useBorder:m=!0,useBg:h=!0,useRowBorder:C=!0,labelWidth:y,form:f=!1,loading:v,empty:g,children:x}){const _=ve("panel",`panel--${o}`,f?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",h?"":"panel--no-bg",C?"":"panel--no-row-border",p?"panel--compact-rows":"",c),b={};return i!==void 0&&(b.minHeight=i),l!==void 0&&(b.maxWidth=typeof l=="number"?`${l}px`:l),y!==void 0&&(b["--panel-label-width"]=typeof y=="number"?`${y}px`:y),t.jsxs("div",{className:_,style:Object.keys(b).length?b:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:ve("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(Ue,{icon:n,label:typeof e=="string"?e:void 0,className:"panel__icon"}),t.jsxs("div",{className:"panel__title-group",children:[e!=null&&t.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&t.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&t.jsx("div",{className:"panel__actions",children:r})]}),v?t.jsx(Bn,{variant:"loading"}):g!=null&&s.Children.toArray(x).length===0?t.jsx(Bn,{variant:"empty",children:g}):u?t.jsx("div",{className:ve("panel__body--scroll",d==="stable"&&"panel__body--gutter-stable"),children:x}):x]})}function Iy({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function Fy(e){return[{label:e("training.noise.level.none","\uC5C6\uC74C"),value:0},{label:e("training.noise.level.weak","\uC57D\uD568"),value:1},{label:e("training.noise.level.medium","\uBCF4\uD1B5"),value:2},{label:e("training.noise.level.strong","\uAC15\uD568"),value:3},{label:e("training.noise.level.veryStrong","\uB9E4\uC6B0 \uAC15\uD568"),value:4}]}function hc(e){return[{label:e("training.noise.type.default","\uAE30\uBCF8"),value:"defaultNoise",icon:"party-popper"},{label:e("training.noise.type.street","\uAE38\uAC70\uB9AC"),value:"street",icon:"car"},{label:e("training.noise.type.buzz","\uC640\uAE00\uC640\uAE00"),value:"buzz",icon:"message-square-more"},{label:e("training.noise.type.restaurant","\uC2DD\uB2F9"),value:"restaurant",icon:"coffee"}]}Fy($t.t.bind($t)),hc($t.t.bind($t));const bo="none",Oy=.5,Hy=1.5,Vy=.25;function yo({title:e,valueLabel:n,value:a,min:r,max:o,step:i,tickStep:l,size:c,onChange:u}){return t.jsxs(Bn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(Cl,{value:a,onChange:u,min:r,max:o,step:i,size:c,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),t.jsx("div",{className:"noise-settings__value button-1",children:n})]})}function fc({anchorRect:e,onClose:n}){const{t:a}=de.useTranslation(),r=on("(max-width: 767px)")?40:24,o=Ga(),i=va(o?.settings??_a),l=o?.settings.type??"defaultNoise",c=o?.settings.enabled??!0,u=o?.playbackRate??1,d=o?.mainVolume??1,p=Math.round(d*100),m=s.useCallback(f=>{try{o?.setMainVolume(Math.max(0,Math.min(1,f/100)))}catch{}},[o]),h=s.useCallback(f=>{try{o?.setPlaybackRate(f)}catch{}},[o]),C=s.useCallback(f=>{const v=Math.min(Ua,Math.max(0,Math.round(f*10)/10));try{o?.setSettings({noiseRatio:v})}catch{}},[o]),y=s.useCallback(f=>{try{f===bo?o?.setSettings({enabled:!1}):o?.setSettings({type:f,enabled:!0})}catch{}},[o]);return t.jsx(wn,{anchorRect:e,offset:12,onClose:n,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:t.jsxs("div",{className:"noise-settings__header",children:[t.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),t.jsx(le,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(Za,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(yo,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),t.jsx(yo,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:Oy,max:Hy,step:Vy,size:r,onChange:h}),t.jsx(Bn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(On,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:bo,label:a("training.noise.type.none","\uC5C6\uC74C")},...hc(a).map(f=>({key:f.value,label:f.label}))],value:c?l:bo,onChange:y})}),t.jsx(yo,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Ua,step:Ql,size:r,onChange:C})]})})}function Cc({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:o=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=de.useTranslation(),[d,p]=s.useState(!1),[m,h]=s.useState(null),[C,y]=s.useState(!1),f=s.useRef(null),v=s.useRef(null),g=Ga(),x=l<c-1,_=l===c-1,b=o===Math.max(0,i);s.useEffect(()=>{e||(p(!1),h(null))},[e]);const A=s.useCallback(()=>{p(!1),h(null)},[]),w=s.useCallback(()=>{if(d){p(!1),h(null);return}const k=f?.current?.getBoundingClientRect();k&&h(k),n?.(),p(!0)},[d,n]),D=s.useCallback(()=>{if(d){p(!1),h(null);return}const k=v?.current?.getBoundingClientRect();k&&h(k),n?.(),p(!0)},[d,n]),B=s.useCallback(()=>y(k=>!k),[]);return t.jsxs("div",{className:"pp-bottom",children:[t.jsxs("div",{className:"pp-bottom__left",children:[e?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pp-bottom__settings--desktop",children:t.jsx("div",{ref:f,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(le,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:w,selected:d,ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:v,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(le,{htmlType:"button",size:56,type:"dot",icon:"settings",onClick:D,selected:d,ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&t.jsx(le,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:B,selected:C,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&C&&t.jsxs("div",{className:"pp-bottom__meters",children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(Vr,{analyser:g?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),t.jsx(Vr,{analyser:g?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),t.jsxs("div",{className:"pp-bottom__right",children:[_&&t.jsx(le,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!b}),x&&t.jsx(le,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!b})]}),e&&d&&t.jsx(fc,{anchorRect:m,onClose:A})]})}function gc({title:e,subtitle:n,desc:a,depth:r,icon:o,wrapperStyle:i,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:m,onClose:h}){const{t:C}=de.useTranslation(),y=on("(max-width: 767px)"),f=Number.isInteger(p)?p:c||0,v=Number.isInteger(d)?d:u||0,g=m||h,x=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,b=typeof n=="string"?n.trim():n,A=!!(_||b),w=A?_||b:C("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),D=x||(_?n:void 0),B=y&&typeof D=="string"&&(D.includes(" \xB7 ")||D.includes(" / "))?D.split(/\s[·/]\s/).pop():D,k=s.useMemo(()=>{const N=i&&typeof i=="object"?{...i}:{};return!("width"in N)&&!("height"in N)&&(N.width="40px",N.height="40px"),N},[i]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[g?t.jsx(le,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:C("common.back","\uB4A4\uB85C"),onClick:g,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:o?t.jsx(wl,{icon:o,label:e,tooltip:l,wrapperStyle:k}):null}),t.jsxs("div",{className:"pp-title__text",children:[B?t.jsx("span",{className:"pp-title__depth caption-1",children:B}):null,t.jsx("span",{className:`pp-title__title h2${A?"":" pp-title__title--empty"}`,children:w}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(yl,{max:Math.max(0,v??0),index:Math.max(0,f??0)})]})}function zy(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Wy(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(n=>typeof n=="string"?n.split("|").map(a=>a.trim()).filter(Boolean):n||n===0?[String(n)]:[]):typeof e=="string"?e.split("|").map(n=>n.trim()).filter(Boolean):[String(e)]}const bc=(e,n)=>{if(!n)return n;const a=typeof $t?.t=="function"?$t.t(e,{defaultValue:n}):void 0;return typeof a=="string"&&a?a:n};function yc(e,n,a){const r=e,o=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",i=Is().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:o,label:r?.title||o,depth:n,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?bc(`topic.${i.key}`,i.label):void 0,l?bc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function vo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function qy(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function Uy({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:o=[],emptyMessage:i,buildResults:l,metaPatch:c}){const u=yc(n,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=n?.id||n?.title||o.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:o,emptyMessage:i,buildResults:l}}function Gy(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function Ky(e){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return n.selectedValues;if(n.selectedValue!==void 0)return n.selectedValue;if(n.selectedIndex!==void 0)return n.selectedIndex;if(n.value!==void 0)return n.value}return e}function Yy(e,n=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(n))return String(n[e]??"");if(typeof e=="string")return e}function vc(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function Zy(e,n,a,r){return vc(e,n*a+r)}function Xy({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const o=e;if(Array.isArray(o.selectedValues))return r.every(i=>o.selectedValues.includes(i))&&o.selectedValues.every(i=>r.includes(i));if(typeof o.correct=="boolean")return o.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(o=>String(o)===String(a[n]));if(typeof n<"u")return r.some(o=>String(o)===String(n))}}function Jy(e){return e?Array.isArray(e.items)?e.items.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const xc=s.createContext(null);function Qy(){const e=s.useContext(xc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function e5({index:e,stepIndex:n,isLast:a=!1,title:r,choices:o=[],onDone:i,onChange:l}){const{t:c}=de.useTranslation(),u=typeof e=="number"?e:-1,d=typeof n!="number"?"disabled":u<n?"done":u===n?"active":"disabled",[p,m]=s.useState(()=>o.map(()=>null)),h=JSON.stringify(o),C=o.length;s.useEffect(()=>{m(Array.from({length:C},()=>null))},[h]);const y=s.useRef(void 0);s.useEffect(()=>{const x=y.current;typeof x=="number"&&typeof n=="number"&&typeof e=="number"&&x>=e&&n<e&&m(Array.from({length:C},()=>null)),y.current=n},[n,e,C]);const f=s.useMemo(()=>p.filter(x=>x!==null).length+1,[p]),v=s.useCallback(x=>{if(d!=="active")return;const _=p;let b;if(_[x]!=null){const w=_[x];b=_.map(D=>D!==null&&D>=w?null:D)}else b=[..._],b[x]=f;m(b);const A={selectedOrder:b,words:o,__ts:Date.now()};try{typeof l=="function"&&l(A)}catch{}if(_[x]==null&&b.length>0&&b.every(w=>w!==null))try{typeof i=="function"&&i(A)}catch{}},[d,p,f,l,i,o]),g=r??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:g,onDone:i,children:t.jsx("div",{className:"training-step__cards",children:o.map((x,_)=>t.jsx(Yr,{item:{word:x},disabled:d==="disabled",selectable:!0,selected:p[_]!==null,orderRank:p[_],onSelect:()=>v(_),flipDelay:_*120,hideLabel:!1,hideAudio:!0},`${x}-${_}`))})})}function Xa(e){return null}Xa.__isTrainingPage=!0;function ea(e,n){const a=Qy();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof n=="number"?e===n-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function _c({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l}=ea(e,n);return t.jsx(Co,{...a,index:r,stepIndex:o,isLast:i,onDone:l})}function wc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=ea(e,n);return t.jsx(ho,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function kc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=ea(e,n);return t.jsx(fo,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function Ac({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=ea(e,n);return t.jsx(go,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function Nc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=ea(e,n);return t.jsx(dc,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function t5({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=ea(e,n);return t.jsx(e5,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function xo(...e){for(const n of e)if(typeof n=="string"){const a=n.trim();if(a.length)return a}else{if(typeof n=="number"||typeof n=="boolean")return String(n);if(Array.isArray(n)&&n.length)return n.join(", ");if(n&&typeof n=="object"){const a=n,r=[a.text,a.label,a.value];for(const o of r){if(typeof o=="string"&&o.trim().length)return o.trim();if(typeof o=="number"||typeof o=="boolean")return String(o)}}}return null}function n5(e){return xo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Bc(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const n=xo(e?.status,e?.result,e?.judge,e?.note);if(n){const a=n.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function Dc(e){const{score:n,contextsLength:a,results:r=[],subtitle:o,onReplay:i,onClose:l,inline:c=!1}=e||{},{t:u}=de.useTranslation();s.useEffect(()=>{const f=a??0;if(n!=null&&f>0&&n/f>.5){const v=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(v)}},[n,a]);const d=s.useCallback(f=>{const v=Bc(f),g=xo(f?.wording,f?.label);return v===!0?{variant:"main",label:g??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:v===!1?{variant:"danger",label:g??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:g??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),p=a??0,m=n??0,h=s.useMemo(()=>Array.isArray(r)?r:[],[r]),C=s.useMemo(()=>h.map(f=>{const v=f??{},g=n5(v)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:x,label:_}=d(v),b=Array.isArray(v.corrects)?v.corrects:[],A=b.length?b.join(", "):v.answer!=null&&v.answer!==""?String(v.answer):null,w=typeof v.selectedText=="string"?v.selectedText:null,D=Bc(v)===!0;return{problem:g,variant:x,label:_,answer:A,selectedText:w,isCorrect:D}}),[h,d,u]),y=s.useMemo(()=>C.some(f=>f.answer!==null||f.selectedText!==null),[C]);return t.jsx(Nn,{onClose:l,closeOnBackdrop:!1,inline:c,ariaLabel:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:f,closeWithAnimation:v})=>t.jsxs("div",{className:"trp-actions",children:[t.jsx(le,{htmlType:"button",size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>f(i)}),t.jsx(le,{htmlType:"button",size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:v})]}),children:()=>t.jsxs("div",{className:"trp-result is-on",children:[t.jsxs("header",{className:"trp-result__head",children:[t.jsx("p",{className:"trp-result__eyebrow caption-1",children:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),o&&t.jsx("p",{className:"trp-result__subtitle body-3",children:o}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:m,total:p}),children:[t.jsx("span",{className:"trp-score__big",children:m}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:p})]})})]}),C.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${y?" result-table--answer":""}`,role:"table","aria-label":u("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[t.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[t.jsx("span",{role:"columnheader",children:u("common.col.problem","\uBB38\uC81C")}),y&&t.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),C.map((f,v)=>t.jsxs("div",{className:"result-table__row",role:"row",children:[t.jsxs("div",{className:"trp-row__problem",children:[t.jsx("span",{className:"trp-row__no caption-1",children:String(v+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:f.problem})]}),y&&t.jsxs("div",{className:"trp-row__answers",children:[f.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:f.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${f.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${f.isCorrect?"is-correct":"is-wrong"}`,children:f.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(lt,{variant:f.variant,label:f.label,fill:"soft",minWidth:80})})]},v))]})})]})})}function a5(e){s.useEffect(()=>{if(!e)return;const n=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,o=0,i=!1;const l=()=>{const p=Date.now();a==null&&(a=p),r==null&&(r=p)},c=()=>{r!=null&&(o+=Date.now()-r,r=null)};n()&&l();const u=()=>{i||(c(),!(a==null||o<5e3)&&(i=!0,M0({trainingType:e,startedAt:new Date(a).toISOString(),endedAt:new Date(a+o).toISOString()})))},d=()=>{n()?l():c()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",u),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",u),u()}},[e])}function _o(e,n){return e&&e.id||`page-${n??0}`}function wo(e,n){return e&&e.key||`step-${n??0}`}function Ja(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function r5(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const Sc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),o5=e=>t.jsx(Dc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function s5(e){const{scenario:n,title:a,subTitle:r,depth:o,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:m,onBack:h,onComplete:C,onNext:y,onSettings:f,useNoiseSetting:v=!0,children:g,ariaLabel:x,label:_,buildResults:b,onResult:A,typeKey:w,entryPoint:D,dailyTotal:B,itemRef:k,renderResultPopup:N,noiseOverride:I}=e;a5(w&&!Sc.has(w)?w:"");const O=s.useRef(0);s.useEffect(()=>{O.current=Date.now()},[]);const{t:E}=de.useTranslation(),H=A,T=!!n,K=n?.id||null,W=n?.meta||{},V=Array.isArray(n?.pages)?n.pages:[],U=Array.isArray(g)||s.isValidElement(g)&&typeof g!="function"?s.Children.toArray(g).filter(s.isValidElement):[],re=U.length>0,P=ae=>ae===Xa||ae?.__isTrainingPage===!0,R=re&&U.some(ae=>P(ae.type)),M=R?U.filter(ae=>P(ae.type)).map((ae,pe)=>{const J=ae.props||{};return{id:`children-page-${pe}`,steps:s.Children.toArray(J.children).filter(s.isValidElement),pageTop:J.pageTop||J.top||null,pageBottom:J.pageBottom||J.bottom||null}}):[{id:"children-page-0",steps:U}],L=re&&!T&&typeof g!="function",z=L?Math.max(1,M.length):0;s.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),s.useEffect(()=>{if(typeof document>"u"||!document.body)return;const ae=document.body;return ae.dataset.ihabTrainingPopupCount=String(Number(ae.dataset.ihabTrainingPopupCount||"0")+1),ae.classList.add("ihab-training-popup-open"),()=>{const pe=Number(ae.dataset.ihabTrainingPopupCount||"1")-1;pe>0?ae.dataset.ihabTrainingPopupCount=String(pe):(delete ae.dataset.ihabTrainingPopupCount,ae.classList.remove("ihab-training-popup-open"))}},[]),s.useEffect(()=>{if(!(typeof document>"u"||!document.body))return p4()},[]);const[$,j]=s.useState({..._a,enabled:!1}),F=s.useRef($);s.useEffect(()=>{F.current=$},[$]);const se=s.useRef(I),ne=s.useRef(!1),ee=s.useRef(null);s.useEffect(()=>{let ae=!1;const pe=J=>{if(ae)return;ne.current=!0;const me=J?xa({..._a,enabled:!1},J):{..._a},xe=ee.current;ee.current=null;const Ne=xe?xa(me,xe):me;F.current=Ne,j(Ne),xe&&!se.current&&Ms(Ne),Ta(Ne);const Ie=se.current;if(Ie){const Y=typeof Ie=="function"?Ie(Ne):Ie,fe=xa(Ne,Y);F.current=fe,j(fe),Ta(fe)}};return P0().then(pe),()=>{ae=!0}},[]);const[ie,Ce]=s.useState(null),[Z,oe]=s.useState(null),X=s.useCallback((ae,pe)=>{ae==="main"?Ce(pe):oe(pe)},[]),ge=s.useCallback(ae=>{const pe=xa(F.current,ae);if(F.current=pe,j(pe),!ne.current){ee.current={...ee.current??{},...ae},Ta(pe);return}se.current||Ms(pe),Ta(pe)},[]),_e=$.mainSpeed,Se=$.mainVolume,ue=s.useCallback(ae=>ge({mainSpeed:ae}),[ge]),be=s.useCallback(ae=>ge({mainVolume:ae}),[ge]),Ae=s.useMemo(()=>({settings:$,setSettings:ge,registerAnalyser:X,mainAnalyser:ie,noiseAnalyser:Z,playbackRate:_e,setPlaybackRate:ue,mainVolume:Se,setMainVolume:be}),[$,ge,X,ie,Z,_e,ue,Se,be]),Q=s.useRef(null),[te,ke]=s.useState(0),[Te,ze]=s.useState("center"),[Le,We]=s.useState(!1),Re=s.useRef(!1),et=s.useRef(null),Ke=s.useCallback(ae=>{Re.current||(Re.current=!0,We(!0),et.current=setTimeout(()=>{try{ae()}catch{Re.current=!1,We(!1)}},Ly))},[]);s.useEffect(()=>()=>{et.current&&clearTimeout(et.current)},[]);const Ge=s.useRef(h);s.useEffect(()=>{Ge.current=h}),s.useEffect(()=>{const ae=Q.current,pe=document.activeElement;if($r(ae,pe),ae){const J=Array.from(ae.querySelectorAll(Ln)).filter(me=>!me.closest('[aria-hidden="true"]'))[0];if(J)try{J.focus()}catch{}}return()=>{const J=document.activeElement;if(!J||J===document.body||ae&&ae.contains(J))try{Rr(pe)?.focus?.()}catch{}}},[]),s.useEffect(()=>$n(()=>Ke(()=>{const ae=Ge.current;typeof ae=="function"&&ae()})),[Ke]),wr(Q,!0);const[ye,Oe]=s.useState(!1),Ee=s.useRef(!1),[Pe,qe]=s.useState(null),Ye=s.useRef(0),ct=()=>{Ye.current+=1,qe(null)},[ut,dt]=s.useState(""),[Xe,tt]=s.useState(()=>Ja()),He=s.useRef(typeof u=="number"?u:null);s.useEffect(()=>{!T&&!L||(tt(Ja()),ct())},[T,K,L]),s.useEffect(()=>{L&&tt(ae=>{const pe=Math.max(0,Math.min(ae.pageIndex,Math.max(0,z-1)));return pe!==ae.pageIndex?{...ae,pageIndex:pe,stepIndex:0}:ae})},[L,z]);const nt=L?Math.max(0,Math.min(Xe.pageIndex,z-1)):0,Je=L?M[nt]:null,rt=L&&Je&&Array.isArray(Je.steps)?Je.steps:[],Me=T?Xe.pageIndex:L?nt:typeof u=="number"?u:0,Qe=T?V[Math.max(0,Math.min(Xe.pageIndex,Math.max(0,V.length-1)))]:null,yt=T&&Qe&&Array.isArray(Qe.steps)?Qe.steps:[],Gt=T?yt.length:L?rt.length:typeof m=="number"?m:0,mt=T||L?Math.max(0,Math.min(Xe.stepIndex,Math.max(0,Gt))):typeof p=="number"?p:0,_t=T?V.length:L?z:typeof d=="number"?d:0;s.useLayoutEffect(()=>{const ae=He.current;if(typeof Me=="number"&&ae!==null&&Me!==ae&&Me>ae)try{dt(E("training.problemNotice",{n:Me+1}))}catch{}He.current=typeof Me=="number"?Me:He.current},[Me,u,E]),s.useLayoutEffect(()=>{const ae=Q.current;if(!ae)return;const pe=()=>ae.querySelector(".page-popup__scroll");let J=null,me=null,xe=null;const Ne=$e=>{const je=pe();if(!je)return;const Ve=je.scrollHeight<=je.clientHeight;if(ze(Ve?"center":"top"),$e&&!Ee.current){Ee.current=!0;try{Oe(!0)}catch{}try{fe.disconnect()}catch{}}},Ie=()=>{J!==null&&cancelAnimationFrame(J),J=requestAnimationFrame(()=>{me!==null&&clearTimeout(me),me=setTimeout(()=>Ne(!0),60)})},Y=()=>{xe!==null&&cancelAnimationFrame(xe),xe=requestAnimationFrame(()=>Ne(!1))};Ie(),window.addEventListener("resize",Y);const fe=new MutationObserver(Ie);fe.observe(ae,{childList:!0,subtree:!0,attributes:!0});const Be=setTimeout(()=>{Ee.current||Ne(!0)},400);return()=>{window.removeEventListener("resize",Y),J!==null&&cancelAnimationFrame(J),me!==null&&clearTimeout(me),xe!==null&&cancelAnimationFrame(xe),clearTimeout(Be);try{fe.disconnect()}catch{}}},[Q]);const zt=s.useCallback(ae=>{Q.current&&(Q.current._childOnNext=ae)},[]),Kt=s.useCallback(ae=>{Q.current&&(Q.current._childOnResult=ae)},[]),wt=s.useCallback((ae,pe,J)=>{tt(me=>{const xe=me.answersByPage[ae]||{},Ne=xe[pe],Ie=vo(J),Y=vo(Ne);return Ne&&Y>Ie?me:{...me,answersByPage:{...me.answersByPage,[ae]:{...xe,[pe]:J}}}})},[tt]),ht=s.useCallback((ae,pe,J)=>{const me=_o(Qe,Me),xe=wo(ae,pe);wt(me,xe,J)},[Qe,Me,wt]),Tt=s.useCallback((ae,pe,J)=>{const me=_o(Qe,Me),xe=wo(ae,pe);wt(me,xe,J),!J?.allowChange&&ae?.autoAdvance!==!1&&tt(Ne=>({...Ne,stepIndex:Math.max(Ne.stepIndex,pe+1)}))},[Qe,Me,wt,tt]),It=s.useCallback((ae,pe)=>{const J=Je?.id||`children-page-${Me??0}`,me=typeof pe=="number"?pe:mt??0,xe=`step-${me}`;wt(J,xe,ae),ae?.allowChange||tt(Ne=>({...Ne,stepIndex:Math.max(Ne.stepIndex,me+1)}))},[Je,Me,mt,wt,tt]),yn=s.useCallback((ae,pe)=>{const J=Je?.id||`children-page-${Me??0}`,me=`step-${typeof pe=="number"?pe:mt??0}`;wt(J,me,ae)},[Je,Me,mt,wt]),Sn=L?{currentPageIndex:Me??0,currentStepIndex:mt??0,totalStepsInPage:rt.length,handleStepDone:It,handleStepChange:yn}:null,at=async()=>{const ae=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:V,flowState:Xe,answersByPage:Xe.answersByPage})):null;return typeof H=="function"&&await Promise.resolve(H(ae))||ae},Wt=async()=>{const ae=Je?.id||`children-page-${Xe.pageIndex}`,pe=Xe.answersByPage[ae]||{},J=R?(()=>{const Ne={};let Ie=0;return M.forEach(Y=>{const fe=Xe.answersByPage[Y.id]||{},Be=Array.isArray(Y.steps)?Y.steps.length:0;for(let $e=0;$e<Be;$e+=1){const je=fe[`step-${$e}`];typeof je<"u"&&(Ne[`step-${Ie+$e}`]=je)}Ie+=Be}),Ne})():pe;if(typeof b=="function"){const Ne=await Promise.resolve(b(J,{pageAnswers:pe,answersByPage:Xe.answersByPage,pages:M,currentPageId:ae}));return typeof H=="function"&&await Promise.resolve(H(Ne))||Ne}const me=Object.entries(pe).map(([Ne,Ie],Y)=>({index:Y,key:Ne,payload:Ie})),xe={results:me,answers:me,score:0};return typeof H=="function"&&await Promise.resolve(H(xe))||xe},en=()=>{const ae=++Ye.current,pe=()=>ae!==Ye.current;try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(T){const xe=at();qe({});const Ne=xe;Promise.resolve(Ne).then(Ie=>{pe()||qe(Ie||{isEmpty:!0})}).catch(Ie=>{!pe()&&qe({isEmpty:!0})});return}if(L){const xe=Wt();qe({});const Ne=xe;Promise.resolve(Ne).then(Ie=>{pe()||qe(Ie||{isEmpty:!0})}).catch(Ie=>{!pe()&&qe({isEmpty:!0})});return}const J=Q.current&&Q.current._childOnResult,me=xe=>{try{return xe?xe():void 0}catch{return}};if(typeof J=="function"){const xe=me(J);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:pn&&pn.tagName.toUpperCase()==="SCRIPT"&&pn.src||new URL("components.cjs.js",document.baseURI).href}catch{}xe&&typeof xe.then!="function"?qe(xe):qe(xe&&typeof xe.then=="function"?{}:{}),Promise.resolve(xe).then(Ne=>{Ne&&!pe()&&qe(Ne)}).catch(Ne=>{});return}if(typeof H=="function"){const xe=me(H);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:pn&&pn.tagName.toUpperCase()==="SCRIPT"&&pn.src||new URL("components.cjs.js",document.baseURI).href}catch{}xe&&typeof xe.then!="function"?qe(xe):qe(xe&&typeof xe.then=="function"?{}:{}),Promise.resolve(xe).then(Ne=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:pn&&pn.tagName.toUpperCase()==="SCRIPT"&&pn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ne&&!pe()&&qe(Ne)}).catch(Ne=>{console.error("viewResults external handler failed",Ne)});return}},vt=()=>{if(T){if(typeof Me=="number"&&typeof _t=="number"&&Me<_t-1){tt(pe=>({...pe,pageIndex:pe.pageIndex+1,stepIndex:0}));return}return en()}if(L){const pe=rt.length;if(typeof mt=="number"&&mt<pe-1){tt(J=>({...J,stepIndex:J.stepIndex+1}));return}if(typeof Me=="number"&&typeof _t=="number"&&Me<_t-1){tt(J=>({...J,pageIndex:J.pageIndex+1,stepIndex:0}));return}return en()}if(typeof y=="function"){try{y()}catch{}return}const ae=Q.current&&Q.current._childOnNext;if(typeof ae=="function"){try{ae()}catch{}return}},Ft=T?W.title||W.label||x||E("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(o)?o[o.length-1]:void 0)||x||E("common.popup","\uD31D\uC5C5"),tn=T?W.title??W.label??Ft:a??_??Ft,nn=(ae,pe)=>{const J=_o(Qe,Me),me=wo(ae,pe),xe=Xe.answersByPage[J]?.[me],Ne=r5(ae,{page:Qe,pageIndex:Me,step:ae,stepIndex:pe,storedPayload:xe,answersByPage:Xe.answersByPage,flowState:Xe}),Ie={key:me,index:pe,stepIndex:mt,isLast:pe===yt.length-1};switch(ae?.type){case"listen":return t.jsx(Co,{...Ie,...Ne,onDone:Y=>Tt(ae,pe,Y)});case"confirm":return t.jsx(ho,{...Ie,...Ne,onDone:Y=>Tt(ae,pe,Y),onChange:Y=>ht(ae,pe,Y)});case"confirmWithText":return t.jsx(fo,{...Ie,...Ne,onDone:Y=>Tt(ae,pe,Y),onChange:Y=>ht(ae,pe,Y)});case"orderList":return t.jsx(go,{...Ie,...Ne,onDone:Y=>Tt(ae,pe,Y),onChange:Y=>ht(ae,pe,Y)});default:return null}},ln=s.useRef(void 0);s.useEffect(()=>{const ae=ln.current;if(ln.current=Me,ae===void 0||ae===Me||!Ha())return;const pe=Q.current;if(!pe)return;const J=document.activeElement;if(!(!J||J===document.body||!pe.contains(J)||J.disabled===!0))return;const me=pe.querySelector(`.training-steps ${Ln.split(", ").join(", .training-steps ")}`)??Array.from(pe.querySelectorAll(Ln)).find(xe=>!xe.closest('[aria-hidden="true"]'));try{me?.focus()}catch{}},[Me]);const cn=T?V.length>0?t.jsx("div",{className:"training-steps",children:yt.map((ae,pe)=>nn(ae,pe))},`replay-${te}`):t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||E("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Yt=L?t.jsxs(xc.Provider,{value:Sn,children:[Je?.pageTop?t.jsx("div",{className:"training-page-top",children:Je.pageTop}):null,t.jsx("div",{className:"training-steps",children:rt.map((ae,pe)=>{const J=ae;return s.cloneElement(J,{...J.props,_stepIndex:pe,_totalSteps:rt.length,_stepKey:`step-${pe}`,_pageIndex:Me})})},`replay-${te}`),Je?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:Je.pageBottom}):null]}):null,qt=s.useCallback(()=>{let ae;if(w){const pe=Pe,J=pe?.results||pe?.answers||[],me=Array.isArray(J)&&J.length>0?J.length:null,xe=Array.isArray(J)?J.filter(Ie=>Ie?.correct===!0||Ie?.isCorrect===!0||Ie?.score===1||Ie?.heard===!0||Ie?.judgement===!0).length:null,Ne=me!=null?xe:null;L0({items:R0(J),category:Sc.has(w)?"sentence":"word",trainingType:w,entryPoint:D??"sentence",itemRef:k??null,correct:Ne,total:me,score:typeof pe?.score=="number"?pe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-O.current)/1e3)),dailyTotal:B??null}),ae={correct:Ne,total:me}}ct(),Ke(()=>{typeof C=="function"&&C(ae),typeof h=="function"&&h()})},[C,h,w,D,B,k,Pe,qe,Ke]),gt=s.useCallback(()=>dt(""),[dt]),an=s.useCallback(()=>{Ke(()=>{typeof h=="function"&&h()})},[h,Ke]),Ot=t.jsxs("div",{className:`page-popup${Le?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Ft,children:[t.jsxs("div",{ref:Q,className:`page-popup__panel ${ye?"":"page-popup__panel--measuring"} ${Te==="center"?"page-popup__panel--center":Te==="top"?"page-popup__panel--top":""}`,children:[t.jsx(gc,{title:tn,subtitle:T?W.subtitle||W.label:Array.isArray(o)?o.join(" / "):void 0,desc:T?void 0:r,depth:T?W.depth:o,icon:T?W.icon:i,wrapperStyle:T?W.wrapperStyle:l,iconTooltip:T?W.iconTooltip:c,progressMax:_t,progressIndex:Me,pageIndex:Me,pageCount:_t,onBack:an,onClose:an}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${Te==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:L?Yt:T?cn:typeof g=="function"?g({registerOnNext:zt,registerOnResult:Kt,panelRef:Q,setResultOverlay:qe}):g})}),t.jsx(Cc,{onSettings:f,onNext:vt,onResult:en,useNoiseSettingBtn:!!(T?W.useNoiseSetting??!0:v),stepIndex:mt,stepCount:Gt,pageIndex:Me,pageCount:_t})]}),Pe&&!Pe.isEmpty&&(N??o5)({score:Pe.score,results:Pe.results||Pe.answers||[],contextsLength:Pe.results?Pe.results.length:Pe.answers?Pe.answers.length:0,onReplay:()=>{if(O.current=Date.now(),ct(),ke(ae=>ae+1),T){if(tt(Ja()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(L){tt(Ja());return}try{const ae=Q.current&&Q.current._childOnResult;typeof ae=="function"&&ae({replay:!0})}catch{}},onClose:qt}),Pe?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:t.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"page-popup__empty",children:E("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(le,{htmlType:"button",variant:"main",size:48,onClick:qt,label:E("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(Kn,{message:ut,position:"top",onClose:gt})]}),jt=t.jsx(io.Provider,{value:Ae,children:Ot});return typeof document<"u"&&document.body?Ut.createPortal(jt,document.body):jt}const Dn=s5;Dn.Page=Xa,Dn.ListenStep=_c,Dn.ConfirmStep=wc,Dn.ConfirmWithTextStep=kc,Dn.OrderListStep=Ac,Dn.CardStep=Nc,Dn.CardOrderStep=t5;function i5({label:e,homonum:n}){const a=Wn()?.(e,n)??"",{imgRef:r,loading:o,hasImage:i,onLoad:l,onError:c}=Kr(a);return i?t.jsxs("div",{className:"tooltip-word-image__cell",children:[o&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:o?0:1},onLoad:l,onError:c})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function Tc({words:e,anchorRect:n}){const a=s.useRef(null),[r,o]=s.useState(null);return s.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,c=window.innerWidth;let u=n.left+n.width/2-i/2,d=n.top-l-8;d<8&&(d=n.bottom+8),u=Math.max(8,Math.min(u,c-i-8)),o({left:u,top:d})},[n]),!n||e.length===0?null:Ut.createPortal(t.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:t.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>t.jsx(i5,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const l5=new Intl.Collator("ko");function c5({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:o,groups:i,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:m,className:h,emptyHint:C,sectionType:y="page",disc:f,notice:v}){const{t:g,i18n:x}=de.useTranslation(),_=x.language?.startsWith("ko")??!1,{anchorRect:b,openAt:A,close:w}=Ma(),[D,B]=s.useState(null),k=s.useCallback(()=>{w(),B(null)},[w]);_2(k,!!D);const N=(r??"").trim(),I=/^[^,[\]\s]+$/.test(N)?N:"",O=I.length>0,[E,H]=s.useState(()=>O?"match":"ganada"),[T,K]=s.useState("50"),[W,V]=s.useState(1),[U,re]=s.useState(O);U!==O&&(re(O),H(O?"match":"ganada"));const P=E==="match"&&!O?"ganada":E,R=s.useMemo(()=>[...O?[{value:"match",label:g("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:g("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:g("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:g("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:g("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:g("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:g("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[g,O]),M=s.useMemo(()=>["10","25","50","100"].map(ue=>({value:ue,label:g("wordSearch.pageSize",{count:Number(ue),defaultValue:`${ue}\uAC1C\uC529 \uBCF4\uAE30`})})),[g]),L=ue=>ue.words[0],z=s.useMemo(()=>{const ue=[...I].length,be=g0(I),Ae=new Map;return Q=>{let te=Ae.get(Q);return te===void 0&&(te=be((Q.words[0]?.label??"").slice(0,ue))?0:1,Ae.set(Q,te)),te}},[I]),$=s.useCallback((ue,be)=>{const Ae=ke=>L(ke)?.label??"",Q=ke=>L(ke)?.syllables??[...Ae(ke)].length,te=ke=>{const Te=parseInt(L(ke)?.grade??"",10);return Number.isFinite(Te)?Te:999};switch(P){case"match":return z(ue)-z(be)||l5.compare(Ae(ue),Ae(be));case"ganada":return Ae(ue).localeCompare(Ae(be),"ko");case"ganada_desc":return Ae(be).localeCompare(Ae(ue),"ko");case"syllable":return Q(ue)-Q(be)||Ae(ue).localeCompare(Ae(be),"ko");case"syllable_desc":return Q(be)-Q(ue)||Ae(ue).localeCompare(Ae(be),"ko");case"grade":return te(ue)-te(be)||Ae(ue).localeCompare(Ae(be),"ko");case"grade_desc":return te(be)-te(ue)||Ae(ue).localeCompare(Ae(be),"ko");default:return 0}},[P,z]),j=s.useMemo(()=>o.slice().sort($),[o,$]),F=Number(T)||10,se=s.useMemo(()=>(i??[]).flatMap(ue=>ue.items.slice().sort($).map(be=>({item:be,label:ue.label}))),[i,$]),ne=i?se.length:j.length,ee=Math.max(1,Math.ceil(ne/F)),ie=Math.min(W,ee),Ce=s.useMemo(()=>j.slice((ie-1)*F,ie*F),[j,ie,F]),Z=s.useMemo(()=>{if(!i)return null;const ue=se.slice((ie-1)*F,ie*F),be=new Map;for(const{item:Ae,label:Q}of ue)be.has(Q)||be.set(Q,[]),be.get(Q).push(Ae);return[...be.entries()].map(([Ae,Q])=>({label:Ae,items:Q}))},[i,se,ie,F]);s.useEffect(()=>{V(1)},[E,T,ne,r]);const oe=ne>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(Jt,{size:40,options:R,value:P,onChange:H,ariaLabel:g("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(Jt,{size:40,options:M,value:T,onChange:K,ariaLabel:g("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(Ra,{page:ie,totalPages:ee,onChange:V})]}):void 0,X=ue=>{c&&c(ue)},ge=n!==void 0&&a?t.jsxs(t.Fragment,{children:[g("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),g("wordSearch.resultTitleSuffix",{unit:_?N0(a):a})]}):void 0,_e=n!==void 0&&n>0&&u!==void 0&&a?g("wordSearch.resultDisc",{unit:_?D0(a):a,max:u,selected:l.length}):void 0,Se=f??(v?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"word-search-result-block__notice",children:v}),_e?t.jsx("span",{className:"word-search-result-block__disc",children:_e}):null]}):_e);return t.jsxs(Yn,{type:y,icon:e,title:ge,action:oe,disc:Se,className:ve("word-search-result-block",h),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:o.length===0)&&t.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[t.jsx("p",{className:"word-search-result-block__empty body-3",children:g("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),C&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:C})]}),i?(Z??[]).map(ue=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:ue.items.map(be=>{const Ae=l.includes(be.id);return t.jsx("div",{onMouseEnter:Q=>{A(Q.currentTarget),B(be.words)},onMouseLeave:k,children:t.jsx(le,{htmlType:"button",size:"word",align:"grid",label:be.words.map(Q=>Q.label),subLabel:be.words.map(Q=>Q.subLabel).filter(Boolean).length>0?be.words.map(Q=>Q.subLabel):void 0,selected:Ae,onClick:()=>X(be.id),minWidth:200})},be.id)})})},ue.label)):t.jsx("div",{className:"word-search-result-block__items",children:Ce.map(ue=>{const be=l.includes(ue.id);return t.jsx("div",{onMouseEnter:Ae=>{A(Ae.currentTarget),B(ue.words)},onMouseLeave:k,children:t.jsx(le,{htmlType:"button",size:"word",align:"grid",label:ue.words.map(Ae=>Ae.label),subLabel:ue.words.map(Ae=>Ae.subLabel).filter(Boolean).length>0?ue.words.map(Ae=>Ae.subLabel):void 0,selected:be,onClick:()=>X(ue.id),minWidth:200})},ue.id)})}),D&&b&&t.jsx(Tc,{words:D,anchorRect:b})]}),ee>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(Ra,{page:ie,totalPages:ee,onChange:V})}),(d||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[d&&t.jsx(le,{htmlType:"button",size:"56",type:"bar",label:g("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),p&&t.jsx("div",{onClick:l.length===0?m:void 0,children:t.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",label:g("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function u5(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,o=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:o}})}function d5({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:o=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:m,titleIcon:h,disc:C,showInfoButton:y=!1,onClearPhoneme:f,onSearch:v,onSearchEmpty:g,searchDisabled:x=!1,searchLabel:_,searchChecking:b=!1,pairMode:A=!1,sectionType:w="page",beforeSearchContent:D,beforeContent:B,afterContent:k,hideCountControl:N=!1,ordinal:I=!1}){const{t:O}=de.useTranslation(),E=s.useMemo(()=>O("wordPairs.infoNotes",{returnObjects:!0}),[O]),H=s.useMemo(()=>Array.from({length:o-i+1},($,j)=>{const F=i+j;return{key:String(F),label:O("wordPairs.count",{n:F})}}),[O,o,i]),T=s.useMemo(()=>O("wordPairs.ordinals",{returnObjects:!0}),[O]),K=s.useCallback($=>I?O("wordPairs.phonemeOrdinalLabel",{ordinal:T[$-1]??$}):a===1?O("wordPairs.phonemeSingleLabel","\uC74C\uC808"):O("wordPairs.phonemeN",{n:$}),[I,T,a,O]),W=s.useCallback($=>I?O("wordPairs.phonemeContrastOrdinalLabel",{ordinal:T[$-1]??$}):a===1?O("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):O("wordPairs.phonemeContrast",{n:$}),[I,T,a,O]),V=s.useCallback(($,j)=>j?t.jsxs(t.Fragment,{children:[$,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):$,[]),{anchorRect:U,toggleAt:re,close:P}=Ma(),R=s.useCallback($=>r(Number($)),[r]),M=on("(max-width: 767px)"),L=s.useCallback($=>u5($,e).map(({label:j,value:F,displayLabel:se})=>{const ne=!!F&&F!=="\uC5C6\uC74C";return t.jsxs("span",{className:ve("phoneme-select-block__cell-jamo-part",F?"":"phoneme-select-block__cell-jamo-part--empty",ne?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${F==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:F==="\uC5C6\uC74C"?"x":F||d}),ne&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:se??j})]},j)}),[e,d]),z=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(le,{htmlType:"button",size:40,type:M?"dot":void 0,icon:"info",label:M?void 0:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!U,onClick:$=>re($.currentTarget)})}),U&&t.jsx(Rn,{title:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:E,anchorRect:U,onClose:P})]});return t.jsxs(Yn,{type:w,title:m,icon:h,disc:C,action:z,className:ve("phoneme-select-block",p),children:[B,(!N||y&&!(m||C))&&t.jsxs("div",{className:"phoneme-select-block__controls",children:[!N&&t.jsx(On,{options:H,value:String(a),onChange:R,size:40,className:"phoneme-select-block__count-control"}),y&&!(m||C)&&z]}),t.jsx("div",{className:"phoneme-select-block__cells",children:A?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map(($,j)=>{const F=n[j*2]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:L(F)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:K(j+1)})]},j)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:O("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map(($,j)=>{const F=n[j*2+1]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:L(F)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:W(j+1)})]},j)})})]}):n.map(($,j)=>t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:L($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:K(j+1)})]},j))}),(l||c)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:A?t.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map(($,j)=>{const F=n[j*2]??{};return t.jsx(bn,{title:V(K(j+1),j===0),sections:c?c(F,j*2):l,selected:F,onSelect:u?.(j*2),align:"newline"},j)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map(($,j)=>{const F=n[j*2+1]??{};return t.jsx(bn,{title:W(j+1),sections:c?c(F,j*2+1):l,selected:F,onSelect:u?.(j*2+1),align:"newline"},j)})})]}):n.map(($,j)=>t.jsx(bn,{title:V(K(j+1),j===0),sections:c?c($,j):l,selected:$,onSelect:u?.(j),align:"newline"},j))})}),D&&t.jsx("div",{className:"phoneme-select-block__before-search",children:D}),(f||v||b)&&(()=>{const $=n.every(j=>Object.entries(j).every(([F,se])=>!se||F==="\uC885\uC131"&&se==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:$?g:void 0,children:[f&&t.jsx(le,{htmlType:"button",size:"56",type:"bar",label:O("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:$,onClick:$?void 0:f}),b?t.jsxs("div",{className:"phoneme-select-block__checking",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??O("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):v&&t.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",label:_??O("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:$||x,onClick:$||x?void 0:v})]})})(),k]})}function p5({title:e,sections:n,selected:a,onSelect:r,className:o}){const{t:i}=de.useTranslation();return t.jsx(bn,{className:o,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,align:"inline"})}function m5({title:e,headerAction:n,sections:a,selected:r,onSelect:o,className:i}){const{t:l}=de.useTranslation();return a.length===0?null:t.jsx(bn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:o,align:"newline"})}function h5({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:o,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=de.useTranslation(),m={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=v=>p("wordPairs.count",{n:v}),C=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:t.jsx(fa,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),p("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),p("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:m.phonemeOrder,items:[m.orderAny,m.orderMatch],display:"segmented",labelAction:t.jsx(fa,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[h(1),h(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:t.jsx(fa,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),p("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],y={[m.searchMode]:n==="explicit"?m.explicit:n==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:h(i),[m.inputMode]:c==="phoneme"?m.pronInput:m.charInput},f=(v,g)=>{g===m.searchMode?a(v===m.explicit?"explicit":v===m.pick?"pick":"include"):g===m.phonemeOrder?o(v===m.orderMatch?"ordered":"unordered"):g===m.count?l(v===h(2)?2:1):g===m.inputMode&&u(v===m.pronInput?"phoneme":"word")};return t.jsx(bn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:C,selected:y,onSelect:f,align:"inline"})}function f5(e){const{title:n,items:a,columns:r,gridTemplateColumns:o,searchPlaceholder:i,searchFn:l,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:p,onSelect:m,onClose:h,pageSizeOptions:C=[10,25,50,100],initialPageSize:y,emptyText:f,countLabel:v,topContent:g,className:x=""}=e,{t:_}=de.useTranslation(),b=i??_("common.search","\uAC80\uC0C9"),A=f??_("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,D]=s.useState(""),[B,k]=s.useState(c??r[0]?.key??""),[N,I]=s.useState(u),[O,E]=s.useState(String(y??C[0]??10)),[H,T]=s.useState(1);s.useEffect(()=>{T(1)},[w,O]);const K=l!==null,W=s.useCallback((j,F)=>{if(!F)return!0;const se=F.toLowerCase();return r.some(ne=>{const ee=j[ne.key];return ee==null?!1:String(ee).toLowerCase().includes(se)})},[r]),V=l??W,U=s.useMemo(()=>{const j=K?a.filter(F=>V(F,w)):a;return B?[...j].sort((F,se)=>{const ne=F[B]??"",ee=se[B]??"";if(ne===ee)return 0;const ie=Ob(ne,ee);return N?ie:-ie}):j},[a,w,B,N,K,V]),re=Math.max(1,Math.ceil(U.length/Number(O)));H>re&&T(re);const P=Math.min(H,re),R=U.slice((P-1)*Number(O),P*Number(O)),M=s.useCallback(j=>{B===j?I(F=>!F):(k(j),I(!0)),T(1)},[B]),L=s.useMemo(()=>{if(typeof v=="function"){const j=U.length,F=v(j);if(typeof F=="string"){const se=F.lastIndexOf(String(j));if(se>=0)return{prefix:F.slice(0,se),suffix:F.slice(se+String(j).length)}}return{label:F}}if(typeof v=="string"&&v.includes("{n}")){const[j,F]=v.split("{n}");return{prefix:j,suffix:F}}return{prefix:_("common.totalCountPrefix","\uCD1D "),suffix:_("common.totalCountSuffix","\uAC1C")}},[v,U.length,_]),z=s.useMemo(()=>r.map(j=>({label:j.label,onClick:j.sortable!==!1?()=>M(j.key):void 0,className:j.className,sortDir:j.sortable!==!1&&B===j.key?N?"asc":"desc":null})),[r,B,N,M]),$=s.useMemo(()=>C.map(j=>({value:String(j),label:_("common.pageSizeLabel",{n:j})})),[C,_]);return t.jsxs(Nn,{className:`popup-list ${x}`,title:n,onClose:h,children:[g,"label"in L&&t.jsx("p",{className:"toolbar__count body-1",children:L.label}),t.jsx(Pr,{count:"label"in L?void 0:{value:U.length,prefix:L.prefix,suffix:L.suffix},search:K?{value:w,onChange:D,placeholder:b}:void 0,pageSize:{options:$,value:O,onChange:E},pagination:{page:P,total:re,onChange:T}}),t.jsx(Wr,{size:"medium",gridTemplateColumns:o,resizable:!0,fields:z,items:R,onRowClick:m,renderRow:j=>{const F=p!=null?j.id!=null&&p.has(j.id):d!=null&&j.id===d;return r.map(se=>({content:se.render?se.render(j):j[se.key]??"",className:ve(se.className,F&&"popup-list__row--selected")}))},empty:A})]})}function C5(e){const{title:n,message:a,topContent:r,details:o,children:i,confirmLabel:l,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:C=!0,onClose:y,inline:f,size:v="small",className:g}=e,{t:x}=de.useTranslation(),_=s.useRef(!1),[b,A]=s.useState(!1),w=B=>{let k=!1;return{close:()=>{k=!0,B()},\uB2EB\uC558\uB098:()=>k}},D=async B=>{if(_.current)return;_.current=!0;const k=typeof document<"u"?document.activeElement:null;A(!0);let N=!1;try{N=await B()}catch(I){typeof console<"u"&&console.error(I)}finally{N||(_.current=!1,A(!1),requestAnimationFrame(()=>{const I=document.activeElement;(!I||I===document.body)&&k?.isConnected&&k.focus()}))}};return t.jsxs(Nn,{title:n,onClose:y,closeDisabled:b,inline:f,size:v,className:ve("confirm-popup",g),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||b,onClick:async({closeWithAnimation:B})=>{await D(async()=>{const k=w(B);await d.onClick(k.close);const N=d.closeOnClick??!0;return N&&B(),N||k.\uB2EB\uC558\uB098()})}}]:[],...u?[]:[{label:c??x("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:b,onClick:({closeWithAnimation:B})=>B()}],{label:l??x("common.confirm","\uD655\uC778"),variant:p,disabled:m||b,onClick:async({closeWithAnimation:B})=>{await D(async()=>{const k=w(B);return await h(k.close),C&&B(),C||k.\uB2EB\uC558\uB098()})}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),o&&o.length>0&&t.jsx(Za,{children:o.map((B,k)=>t.jsx(Bn,{label:B.label,children:t.jsx("span",{className:"panel-row__text body-2",children:B.value})},k))}),t.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}function g5({onApply:e,onCancel:n}){const{t:a}=de.useTranslation(),[r,o]=s.useState(""),[i,l]=s.useState(!1),[c,u]=s.useState(null),d=s.useRef(null);s.useEffect(()=>{d.current?.focus()},[]);const p=s.useCallback(async C=>{const y=r.trim();if(y){l(!0),u(null);try{await e(y),C()}catch(f){u(Ts(f)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),m=s.useCallback((C,y)=>{C.key==="Enter"&&!C.nativeEvent.isComposing&&p(y)},[p]),h=C=>{o(C.target.value),u(null)};return t.jsx(Nn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:n,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:C})=>C()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:C})=>{p(C)}}],children:({closeWithAnimation:C})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:h,onKeyDown:y=>m(y,C),disabled:i,autoComplete:"off",spellCheck:!1}),c&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const b5=200;function y5(e){return e.itemId?(K0()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function v5({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:o}=de.useTranslation(),i=s.useMemo(()=>Z0(o).map(c=>({type:c,items:(e.items??[]).filter(u=>u.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items,o]);if(i.length===0)return null;const l=t.jsx("div",{className:"tooltip-training__box",children:t.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:c,items:u},d)=>[d>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,t.jsxs("div",{className:"tooltip-training__section",children:[t.jsx("div",{className:"tooltip-training__section-header",children:t.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),t.jsx("div",{className:"tooltip-training__items",children:u.map((p,m)=>{const h=y5(p);return h?t.jsx(Ur,{index:m,type:c,trainingData:h,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},c.key)])})});return n?t.jsx(wn,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:o("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const jc=["var(--color-main)","var(--color-sub)"],x5=2e3;function _5(e,n){if(!n.startsWith("var("))return n;try{const a=n.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function Ec({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:o,trigger:i=0}){const l=s.useMemo(()=>{const f=Math.floor(n/2),v=n-f,g=(x,_)=>Array.from({length:x}).map((b,A)=>{const w=6+Math.random()*12,D=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),B=jc[Math.floor(Math.random()*jc.length)],k=Math.random()*300,N=(360+Math.random()*260)*r*1.2,I=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,O=Math.cos(I)*N,E=Math.sin(I)*N*1.35,H=Math.random()*720-360,T=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),K=Math.random()>.7?"50%":"3px";return{id:`${_}-${A}`,side:_,size:D,color:B,delay:k,vx:O,vy:E,angularVel:H,life:T,borderRadius:K}});return[...g(f,"left"),...g(v,"right")]},[n,r]),c=s.useRef(null),u=s.useRef({}),d=s.useRef(null),p=s.useRef(o);s.useEffect(()=>{p.current=o},[o]);const m=s.useRef(null),h=s.useRef(null),C=()=>{if(typeof document>"u")return null;let f=document.querySelector("[data-ihab-effect-root]");return f||(f=document.createElement("div"),f.className="app-effect",f.dataset.ihabEffectRoot="",f.style.position="fixed",f.style.inset="0",f.style.pointerEvents="none",f.style.zIndex="99998",document.body.appendChild(f)),f};if(typeof document<"u"&&h.current==null&&(h.current=C()),s.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const P=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(P)}const f=1200,v=performance.now(),g=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,x=Math.max(60,(window.innerHeight||800)*.05),_=P=>Math.max(40,(P||window.innerWidth)*.02),b=g?.width||window.innerWidth||375,A=g?.height||window.innerHeight||812,w=P=>{const R=[...P].sort((M,L)=>M-L);return R[Math.floor(R.length/2)]||1},D=w(l.map(P=>Math.abs(P.vy))),B=w(l.map(P=>Math.abs(P.vx))),k=Math.sqrt(2*f*(A*.72+x))/D,N=D*k/f,I=b*.5/(B*N),O=(P,R,M)=>Math.min(M,Math.max(R,P)),E=O(k,.8,2.4),H=O(I,.7,2.2),T=a>0?a/x5:1,K=l.map(P=>({...P,life:P.life*T,vx:P.vx*H,vy:P.vy*E,startTime:v+P.delay,ended:!1})),W=g?{x:g.left-_(g.width),y:g.top+g.height+x}:{x:-_(window.innerWidth),y:window.innerHeight+x},V=g?{x:g.left+g.width+_(g.width),y:g.top+g.height+x}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+x},U=P=>{let R=!1;for(const M of K){const L=u.current[M.id];if(!L||!L)continue;if(P<M.startTime){L.style.display="none",R=!0;continue}if(!M._inited){const Z=M.side==="left"?W.x:V.x,oe=M.side==="left"?W.y:V.y;L.style.left=`${Z}px`,L.style.top=`${oe}px`,L.style.transform="translate3d(0px, 0px, 0)",L.style.display="block",L.style.zIndex="100000",typeof M.color=="string"&&M.color.startsWith("var(")&&(L.style.background=_5(L,M.color)??"#FF0060"),M._inited=!0}const z=(P-M.startTime)/1e3;if(z<0)continue;const $=M.life/1e3;if(z>=$){L.style.opacity="0",L.style.display="none",M.ended=!0;continue}R=!0;const j=M.side==="left"?W.x:V.x,F=M.side==="left"?W.y:V.y,se=j+M.vx*z,ne=F+M.vy*z+.5*f*z*z,ee=(M.angularVel||0)*z,ie=se-j,Ce=ne-F;L.style.transform=`translate3d(${ie}px, ${Ce}px, 0) rotate(${ee}deg)`,L.style.opacity=`${Math.max(0,1-z/$)}`}R?d.current=requestAnimationFrame(U):p.current?.()};d.current=requestAnimationFrame(U);const re=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const P=document.createElement("div");P.className="party-container",P.style.position="fixed",P.style.inset="0",P.style.pointerEvents="none",P.style.overflow="visible",P.style.zIndex="2147483647";for(const R of l){const M=document.createElement("span");M.className=`confetti confetti--${R.side}`,M.setAttribute("aria-hidden","true"),M.style.display="none",M.style.position="fixed",M.style.left="0px",M.style.top="0px",M.style.width=`${R.size}px`,M.style.height=`${Math.max(4,R.size*.6)}px`,M.style.background=R.color,M.style.borderRadius=R.borderRadius,M.style.transform="translate3d(0,0,0)",M.style.opacity="0",P.appendChild(M),u.current[R.id]=M}(document.body||h.current).appendChild(P),m.current=P}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(re),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const y=t.jsx("div",{className:"party-container",ref:c,children:l.map(f=>t.jsx("span",{"aria-hidden":!0,ref:v=>{u.current[f.id]=v},className:`confetti confetti--${f.side}`,style:{width:`${f.size}px`,height:`${Math.max(4,f.size*.6)}px`,background:f.color,borderRadius:f.borderRadius}},`${f.id}-${i}`))});return typeof document<"u"?Ut.createPortal(y,h.current||document.body):y}function w5({trigger:e=0,active:n=!1}){const a=s.useRef(0);return s.useEffect(()=>{a.current=e},[e]),t.jsx(Ec,{active:n,trigger:e})}function k5({title:e,sub:n,rightAction:a,titleAction:r,badge:o,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:u,wrap:d=!1}){const{t:p}=de.useTranslation();p2(typeof e=="string"?e:l??null);const m=u??p("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[t.jsxs("div",{className:"page-title__main",children:[t.jsxs("div",{className:"page-title__title-row",children:[c&&t.jsx(le,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),t.jsx("h1",{className:"page-title__title h1",children:e}),o&&t.jsx("div",{className:"page-title__badge",children:t.jsx(lt,{label:o,size:"small",variant:i,fill:"outline"})}),r?t.jsx("div",{className:"page-title__title-action",children:r}):null]}),n&&t.jsx("p",{className:"page-title__sub body-2",children:n})]}),a?t.jsx("div",{className:"page-title__action",children:a}):null]})}function A5(e){return e??""}const Mc=s.createContext({words:[],loading:!1});function N5(){return s.useContext(Mc)}function B5({words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return t.jsx(Mc.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function D5({items:e,actions:n,columns:a,flat:r=!1,className:o,style:i}){const l=a??e.length;return t.jsx("section",{className:ve("summary-strip",r&&"summary-strip--flat",o),style:{"--summary-strip-cols":String(l),...i},children:t.jsxs("div",{className:"summary-strip__row",children:[t.jsx("div",{className:"summary-strip__items",children:e.map((c,u)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),t.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},u))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const S5=(e,n)=>`${e} / ${n}`;function T5({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:o=S5,pageWidth:i,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=de.useTranslation(),m=s.useRef(null),h=s.useRef(null),C=s.useRef(null),y=s.useRef(null),[f,v]=s.useState(null),[g,x]=s.useState(!1);s.useEffect(()=>{const E=m.current;if(!E)return;const H=()=>x(E.scrollWidth>E.clientWidth+1);if(H(),typeof ResizeObserver>"u")return;const T=new ResizeObserver(H);return T.observe(E),()=>T.disconnect()},[f]);const _=e.map(E=>`${E.id}\0${E.section??""}\0${E.group??""}`).join(""),b=f&&f.shape===_?f.pages:null,[A,w]=s.useState(0);s.useEffect(()=>{const E=y.current;if(!E||typeof ResizeObserver>"u")return;const H=new ResizeObserver(()=>w(E.offsetHeight));return H.observe(E),()=>H.disconnect()},[]),s.useLayoutEffect(()=>{const E=h.current,H=y.current;if(!E||!H)return;const T=L=>L.getBoundingClientRect().height||L.offsetHeight,K=new Map;C.current?.querySelectorAll("[data-chrome-section]").forEach(L=>{K.set(L.dataset.chromeSection??"",T(L))});const W=L=>T(H)-(K.get(L??"")??0),V=Array.from(E.children).map(L=>T(L)),U=[];e.forEach((L,z)=>{const $=U[U.length-1],j=$?e[$[0]]:void 0;j&&L.group!=null&&j.group===L.group&&j.section===L.section?$.push(z):U.push([z])});const re=[];let P=[],R=0;const M=()=>{P.length&&re.push(P),P=[],R=0};U.forEach(L=>{const z=L.reduce((j,F)=>j+V[F],0),$=W(e[L[0]].section);P.length&&e[P[0]].section!==e[L[0]].section&&M(),P.length&&R+z>$+.01&&M(),z>$?L.forEach(j=>{P.length&&R+V[j]>$+.01&&M(),P.push(j),R+=V[j]}):(L.forEach(j=>P.push(j)),R+=z)}),M(),v({shape:_,pages:re})},[_,A,i,l,c]);const D=Mr,B=D,k=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:B,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),N=(E,H,T)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:T!=null&&n?.[T]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:k}),t.jsx("span",{className:"report-doc__page-no",children:o(E,H)})]})}),I=Array.from(new Set(e.map(E=>E.section??""))),O={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...d};return t.jsxs("div",{ref:m,className:ve("report-doc",u),style:O,tabIndex:g?0:void 0,role:g?"group":void 0,"aria-label":g?p("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[t.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[t.jsx("div",{ref:y,className:"report-doc__ruler"}),t.jsx("div",{ref:C,children:I.map(E=>{const H=N(1,1,E||void 0);return t.jsxs("div",{"data-chrome-section":E,children:[H.header,H.footer]},E)})}),t.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(E=>t.jsx("div",{children:E.content},E.id))})]}),b&&t.jsx("div",{className:"report-doc__pages",children:b.map((E,H)=>{const{header:T,footer:K}=N(H+1,b.length,e[E[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[T,E.map(W=>t.jsx("div",{children:e[W].content},e[W].id)),K]},H)})})]})}function j5({title:e,fields:n,columns:a=4,className:r,style:o}){return t.jsxs("div",{className:ve("report-info",r),style:{"--report-info-cols":String(a),...o},children:[e&&t.jsx("p",{className:"report-info__title h5b",children:e}),t.jsx("div",{className:"report-info__grid",children:n.map((i,l)=>t.jsxs("div",{className:"report-info__field body-2",children:[t.jsx("span",{className:"report-info__label body-3",children:i.label}),t.jsx("span",{className:"report-info__value",children:i.value})]},l))})]})}function E5({title:e,message:n,actionLabel:a,onAction:r,icon:o,onClose:i,className:l=""}){const{t:c}=de.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return t.jsxs("div",{className:ve("update-alert",l),role:"alert",children:[i&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:i,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),t.jsxs("div",{className:"update-alert__top",children:[t.jsx("div",{className:"update-alert__icon",children:o??t.jsx(Po,{size:20,strokeWidth:2})}),t.jsxs("div",{className:"update-alert__body",children:[t.jsx("div",{className:"update-alert__title h4",children:e}),t.jsx("div",{className:"update-alert__message body-3",children:n})]})]}),r&&t.jsx(le,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}function M5({title:e,description:n,topActions:a,children:r,footerLeft:o,footerRight:i,onClick:l,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const m=o!=null||i!=null,h=r!=null&&r!==!1,C=s.useCallback(y=>{l&&y.target===y.currentTarget&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),l())},[l]);return t.jsxs("div",{className:ve("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?C:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&t.jsx("div",{className:"training-card__top-actions",onClick:y=>y.stopPropagation(),children:a})]}),n!=null?typeof n=="string"?t.jsx("p",{className:"training-card__description body-3",children:n}):n:t.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),h&&t.jsx("div",{className:"training-card__body",children:r}),m&&t.jsxs("div",{className:"training-card__footer",children:[o!=null&&t.jsx("div",{className:"training-card__footer-left",children:o}),i!=null&&t.jsx("div",{className:"training-card__meta",children:i})]})]})}function L5({title:e,count:n,collapsed:a=!1,onToggle:r,sort:o,actions:i,empty:l=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:m,children:h,className:C}){const{t:y}=de.useTranslation(),f=r!=null,v=ve("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",f&&"training-card-group--collapsible",C);return t.jsxs("div",{className:v,onDragOver:d,onDragLeave:p,onDrop:m,children:[t.jsxs("header",{className:"training-card-group__header",children:[f&&t.jsx(le,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?y("common.expand","\uD3BC\uCE58\uAE30"):y("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!a,onClick:r}),typeof e=="string"?t.jsx("span",{className:"training-card-group__title h5b",children:e}):e,n!==void 0&&t.jsx("span",{className:"training-card-group__count body-3b",children:n}),(o||i!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:g=>g.stopPropagation(),children:[o&&t.jsx(Jt,{size:40,options:o.options,value:o.value,placeholder:o.placeholder,onChange:o.onChange}),i]})]}),!a&&(l?t.jsx("div",{className:"training-card-group__empty body-3",children:c}):t.jsx("div",{className:"training-card-group__grid",children:h}))]})}const $5="speechear:saved_word_tables";function R5(e){if(typeof e!="object"||e===null)return!1;const n=e;return typeof n.id=="string"&&typeof n.name=="string"&&Array.isArray(n.items)}function P5(){try{const e=localStorage.getItem($5);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(R5):[]}catch{return[]}}function Lc(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function ko(e){return e.map(n=>n.homonum!=null?`${n.word}#${n.homonum}`:n.word).join("|")}function I5(e){const n=new Set;return e.map(a=>{let r=a.id;for(let o=2;n.has(r);o++)r=`${a.id}~${o}`;return n.add(r),r===a.id?a:{...a,id:r}})}function F5({title:e,titleIcon:n,disc:a,items:r,onSaveComplete:o,onLoad:i,onRemoveItem:l,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:m,showCellCount:h,onAddItem:C,className:y,renderSavePopup:f,renderWordSearch:v,hideControls:g,saveOnly:x,tableName:_,nameValue:b,onNameChange:A,descriptionValue:w,onDescriptionChange:D,namePlaceholder:B,descriptionPlaceholder:k,existingNames:N,editingName:I,onCancel:O}){const{t:E}=de.useTranslation(),H=u??E("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),T=r===void 0,K=!!A,[W,V]=s.useState([]),U=(b??"").trim(),re=U||(B??"").trim(),P=(w??"").trim()||(k??"").trim(),R=(N??[]).map(J=>J.trim().toLowerCase()),M=[I?.trim().toLowerCase(),...W].filter(J=>!!J),L=[...R];for(const J of M){const me=L.indexOf(J);me!==-1&&L.splice(me,1)}const z=U!==""&&L.includes(U.toLowerCase()),[$,j]=s.useState(Array(4).fill(null)),[F,se]=s.useState(4),[ne,ee]=s.useState(null),ie=$.slice(0,F),[Ce,Z]=s.useState("landscape"),[oe,X]=s.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[ge,_e]=s.useState("\uD45C\uC2DC"),[Se,ue]=s.useState(!0),[be,Ae]=s.useState(!0),Q=s.useRef(null),te=s.useRef([]),[ke,Te]=s.useState(8),[ze,Le]=s.useState("right"),[We,Re]=s.useState(!1),[et,Ke]=s.useState(!1),{toastMessage:Ge,toastType:ye,showWarning:Oe,clearToast:Ee}=Bi("warning"),Pe=s.useCallback(()=>ee(null),[ee]);C&&!T&&!h&&ta("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.');const[qe,Ye]=s.useState(()=>Math.max(r?.length??1,1));s.useEffect(()=>{T||Ye(J=>Math.max(J,r?.length??1))},[r?.length,T]);const ct=T?F:h?Math.max(qe,r?.length??1):Math.max(r?.length??0,1),{width:ut,height:dt}=Zn[Ce],Xe=!T&&!h,tt=r?.length??0,He=Math.min(ke,Math.max(tt,1)),nt=Xe?He:ct,Je=Xe?jl(r??[],nt):null,rt=!!Je&&Je.length>1,Me=T?ie.some(J=>J!==null&&J.length>1):(r??[]).some(J=>J.words.length>1),Qe=_?.trim()||`${Rs(Mn())} ${Me?E("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):E("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,yt=s.useCallback(()=>rt?te.current.filter(J=>J!==null):Q.current?[Q.current]:[],[rt]),{print:Gt,openNewWindow:mt,downloadHtml:_t}=no({getElements:yt,paperW:ut,paperH:dt,fileName:Qe,onPopupBlocked:()=>{Oe(E("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),zt=J=>{se(J),j(me=>me.length>=J?me:[...me,...Array(J-me.length).fill(null)]),ee(null)},Kt=J=>{j(me=>{const xe=[...me];return xe[J]=null,xe}),ne===J&&ee(null)},wt=J=>{if(ne===null)return;const me=ne;j(Ne=>{const Ie=[...Ne];return Ie[me]=J.length>0?J:null,Ie});const xe=ie.findIndex((Ne,Ie)=>Ie>me&&Ne===null);ee(xe!==-1?xe:null)},ht=T?ie.some(J=>J?.some(me=>!!me.colloquialPronunciation)):(r??[]).some(J=>J.words.some(me=>!!me.colloquialLabel)),Tt=s.useMemo(()=>Wn()?T?$.slice(0,F).flatMap(J=>(J??[]).map(me=>[me.word,me.homonum])):(r??[]).flatMap(J=>J.words.map(me=>[me.label,me.homonum])):[],[T,$,F,r]),[It,yn]=s.useState(!1);s.useEffect(()=>{if(Tt.length===0)return;let J=!1;return Promise.all(Tt.map(([me,xe])=>Ns(me,xe))).then(me=>{J||yn(me.some(Boolean))},()=>{}),()=>{J=!0}},[Tt]);const Sn=Tt.length>0&&It,at=s.useMemo(()=>[...T||h?[{label:E("wordTable.filter.columns","\uCE78 \uC218"),items:Db.map(J=>({value:`${J}\uCE78`,displayLabel:E("wordTable.filter.column",{count:J})})),display:"segmented"}]:[],...Xe&&(r?.length??0)>0?[Wl(E,{hasPairs:Me,itemCount:tt})]:[],...rt?[ql(E)]:[]],[E,T,h,Xe,r?.length,Me,tt,rt]),Wt={...T||h?{[E("wordTable.filter.columns","\uCE78 \uC218")]:`${ct}\uCE78`}:{},...Xe&&(r?.length??0)>0?{[E(Me?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${He}\uAC1C`}:{},...rt?{[E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Ul[ze]}:{}},en=(J,me)=>{if(me===E("wordTable.filter.columns","\uCE78 \uC218"))T?zt(parseInt(J)):Ye(Math.max(parseInt(J),r?.length??1));else if(me===E(Me?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")){const xe=parseInt(J);Te(Jr.includes(xe)?xe:Number.POSITIVE_INFINITY)}else me===E("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Le(Gl(J))},vt=T?I5(ie.filter(J=>J!==null&&J.length>0).map(J=>({id:ko(J),words:J.map(Lc)}))):r??[],Ft=(J=!1)=>{if(Ke(J),K&&o){const me=re.trim().toLowerCase();me&&V(xe=>xe.includes(me)?xe:[...xe,me]),o(re,vt,P||void 0,J);return}if(x&&o){o("",vt,void 0,J);return}if(o){Re(!0);return}_t()},[tn,nn]=s.useState(!1),[ln,cn]=s.useState(""),Yt=ln.trim(),qt=Yt!==""&&R.includes(Yt.toLowerCase()),gt=()=>{cn(re?E("wordTable.save.copyName",{name:re,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),nn(!0)},an=()=>{!Yt||qt||!o||(o(Yt,vt,P||void 0,!0),nn(!1))},Ot=vt.length===0,jt=Ot||K&&(re===""||z),ae=()=>{if(Ot){Oe(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(K&&re===""){Oe(E("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}K&&z&&Oe(E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},pe=t.jsx(Xn,{items:vt,orientation:Ce,contentTypes:oe,cutLine:ge,showOutline:Se,showDivLine:be,count:ct});return t.jsxs(t.Fragment,{children:[t.jsxs(Yn,{type:"page",icon:n,title:e,disc:a,className:ve("word-table-block",y),children:[tn&&t.jsx(Nn,{size:"small",title:p??E("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>nn(!1),footer:({closeWithAnimation:J})=>t.jsxs(t.Fragment,{children:[t.jsx(le,{htmlType:"button",size:48,type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:J}),t.jsx(le,{htmlType:"button",size:48,type:"bar",variant:"main",label:E("common.save","\uC800\uC7A5"),disabled:!Yt||qt,onClick:an})]}),children:t.jsx(Fn,{label:E("wordTable.save.nameLabel","\uC774\uB984"),value:ln,onChange:cn,placeholder:E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:an,error:qt?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),We&&o&&f?.({defaultName:typeof e=="string"?e:E("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:pe,previewW:ut,previewH:dt,items:vt,existingNames:P5().map(J=>J.name),saveAsNew:et,onSave:(J,me)=>{o(J,vt,me,et),Re(!1)},onCancel:()=>Re(!1)}),(T||C)&&ne!==null&&v?.({cellIndex:ne,onConfirm:T?wt:J=>{if(C){const me=J[0];if(me){const xe=new Set((r??[]).map(Ie=>Ie.id));let Ne=ko([me]);for(let Ie=2;xe.has(Ne);Ie++)Ne=`${ko([me])}~${Ie}`;C({id:Ne,words:[Lc(me)]})}}ee(null)},onClose:Pe}),!g&&t.jsx(Qr,{hasImage:Sn,hasColloquial:ht,contentTypes:oe,orientation:Ce,showOutline:Se,cutLine:ge,showDivLine:be,setters:{setContentTypes:X,setOrientation:Z,setShowOutline:ue,setCutLine:_e,setShowDivLine:Ae},showCutLine:(Xe?nt:ct)>1,showDivLine2:Me,middleSections:at,extraSelected:Wt,onExtraSelect:en}),rt&&Je?t.jsx("div",{className:"word-table-block__pages",children:Je.map((J,me)=>t.jsx(Xn,{orientation:Ce,contentTypes:oe,cutLine:ge,showOutline:Se,showDivLine:be,count:nt,items:J,onRemoveItem:l,onReorder:m&&((xe,Ne)=>m(xe+me*nt,Ne+me*nt)),contentRef:xe=>{te.current[me]=xe},pageNumber:{current:me+1,total:Je.length},pageNumberPosition:ze},me))}):t.jsx(Xn,{orientation:Ce,contentTypes:oe,cutLine:ge,showOutline:Se,showDivLine:be,count:ct,items:T?void 0:r??[],editCells:T?ie:void 0,activeCell:ne,onActivateCell:T||C?ee:void 0,onRemoveCell:T?Kt:void 0,onRemoveItem:T?void 0:l,onReorder:T?void 0:m,showFillerAdd:!!C,contentRef:Q}),K&&!g&&t.jsxs(Za,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(Bn,{variant:"custom",label:E("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(Fn,{required:!0,value:b??"",onChange:A,placeholder:B?B+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:z?E("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:J=>{(J.key==="Tab"&&!J.shiftKey||J.key===" ")&&!(b??"").trim()&&(B??"").trim()&&(J.preventDefault(),A?.(B??""))}})}),t.jsx(Bn,{variant:"custom",label:E("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Fn,{value:w??"",onChange:D,placeholder:k?k+E("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):E("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:E("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:J=>{(J.key==="Tab"&&!J.shiftKey||J.key===" ")&&!(w??"").trim()&&(k??"").trim()&&(J.preventDefault(),D?.(k??""))}})})]})]}),!g&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!x&&c&&t.jsx(le,{htmlType:"button",size:40,type:"bar",label:H,onClick:c}),!x&&i&&t.jsx(le,{htmlType:"button",size:40,type:"bar",label:E("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!x&&t.jsx(le,{htmlType:"button",size:40,type:"bar",label:E("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:mt})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[O&&t.jsx(le,{htmlType:"button",size:"56",type:"bar",label:E("common.cancel","\uCDE8\uC18C"),onClick:O}),!x&&t.jsx(le,{htmlType:"button",size:"56",type:"bar",label:E("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:Gt}),p&&t.jsx(le,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>K?gt():Ft(!0),disabled:Ot,onDisabledClick:()=>{Oe(E("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(le,{htmlType:"button",size:"56",type:"bar",variant:"main",label:d??E("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Ft(!1),disabled:jt,onDisabledClick:ae})]})]}),t.jsx(Kn,{message:Ge,type:ye,onClose:Ee})]})}function $c({items:e,className:n}){const a=e.length,r=a<=3?1:2,o=Math.ceil(a/r)||1,i=r*o;return t.jsx("div",{className:ve("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,c)=>{const u=e[c];return u?t.jsx("div",{className:"word-table-thumb__cell",children:(u.words.length?u.words:[{label:u.id}]).map((d,p)=>t.jsxs(s.Fragment,{children:[p>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},p))},c):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function O5({items:e,name:n,description:a,createdAt:r,published:o,publishedLabel:i,shared:l,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:m,downloadCount:h,onPublisherClick:C,selected:y,onClick:f,onMore:v,titleNode:g,className:x}){const{t:_}=de.useTranslation(),b=g!=null,A=d!=null||p!=null||m!=null||h!=null,w=D=>{D.target===D.currentTarget&&!b&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),f?.())};return t.jsxs("div",{className:ve("word-table-button",y?"word-table-button--selected":"",A?"":"word-table-button--no-footer",x),role:"button",tabIndex:0,"aria-label":n,onClick:b?void 0:f,onKeyDown:w,children:[u&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":_("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx($c,{items:e,className:"word-table-button__thumb"}),t.jsxs("div",{className:"word-table-button__info",children:[t.jsxs("div",{className:"word-table-button__info-text",children:[g??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),v&&!b&&t.jsx(le,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:_("common.moreFor",{name:n}),onClick:D=>{D.stopPropagation(),v(D)}})]}),(r||o||l)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta caption-1",children:r?$s(r,_):""}),t.jsxs("span",{className:"word-table-button__badges",children:[o&&t.jsx(lt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??_("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&t.jsx(lt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??_("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]}),A&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[d&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:D=>{D.stopPropagation(),C?.()},children:d}),p&&t.jsx("span",{className:"training-card__date body-4",children:$s(p,_)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&t.jsx(lt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),h!=null&&t.jsx(lt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(h)})]})]})]})}/**
973
+ `).map((l,c,u)=>t.jsxs(s.Fragment,{children:[l,c<u.length-1&&t.jsx("br",{})]},c))})}),t.jsxs("div",{className:"site-footer__links",children:[t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:i("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{n&&(l.preventDefault(),n())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),t.jsx("hr",{className:"site-footer__rule"}),t.jsxs("div",{className:"site-footer__bottom",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("img",{src:Mr,alt:"IHAB",className:"site-footer__logo"})}),t.jsxs("div",{className:"site-footer__meta",children:[t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),t.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),t.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),t.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",o]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function iy({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:o,className:i,containerClassName:l,renderLink:c,menuLabel:u}){const{t:d}=de.useTranslation(),p=u??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,h]=s.useState(!1),C=s.useId(),y=s.useRef(null);s.useEffect(()=>{if(!m)return;const g=$n(()=>{const b=document.getElementById(C);b&&b.contains(document.activeElement)&&y.current?.focus(),h(!1)}),x=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,_=b=>{b.matches&&h(!1)};return x&&(x.matches&&h(!1),x.addEventListener?.("change",_)),()=>{g(),x?.removeEventListener?.("change",_)}},[m,C]);const f=l?`${l} landing-header__inner`:"landing-header__inner",v=(g,x)=>c?c(g,{onClick:x}):t.jsx("a",{href:g.href,onClick:x,"aria-current":g.current?"page":void 0,children:g.label});return t.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[t.jsxs("div",{className:f,children:[e!=null&&(()=>{const g=typeof e=="string"?t.jsx("img",{src:e,alt:n,className:"landing-header__logo"}):e;return a?t.jsx("a",{href:a,className:"landing-header__brand",children:g}):t.jsx("div",{className:"landing-header__brand",children:g})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map((g,x)=>t.jsx("span",{children:v(g)},`${x}:${g.href}`))}),t.jsxs("div",{className:"landing-header__actions",children:[o,r.length>0&&t.jsx("button",{ref:y,type:"button",onClick:()=>h(g=>!g),"aria-expanded":m,"aria-controls":C,"aria-label":m?p.close:p.open,className:m?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:t.jsxs("span",{className:"landing-header__burger",children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})})]})]}),r.length>0&&t.jsx("nav",{id:C,hidden:!m,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map((g,x)=>t.jsx("span",{className:"landing-header__drawer-item",children:v(g,()=>h(!1))},`${x}:${g.href}`))})})]})}function ly({children:e,action:n,onClick:a,className:r}){const o=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return t.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:t.jsxs("div",{className:o,onClick:a,..._l(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const Qn=9,cy=e=>Math.round(Math.min(Qn,Math.max(0,e))/Qn*100),uy=e=>e/100*Qn,Ua=2,Ql=.1,ec=e=>Math.min(Ua,Math.max(0,e)),dy=e=>Math.round(e*10)/10;function va(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return ec(n);const a=Math.min(Qn,Math.max(0,Number(e.level)||0))/Qn,r=Number(e.mainVolume);return r>0?dy(ec(a/r)):1}const tc=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function nc(e){return tc(e)}function oo(e){return tc(e)*va(e)}function so(e,n=vs()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,oo(e)/a)}function xa(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=va({level:a.level,mainVolume:a.mainVolume})),a}const _a={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},io=s.createContext(null);function Ga(){return s.useContext(io)}const lo=e=>`${a0()}/${e}`,ac=e=>Array.from({length:10},(n,a)=>lo(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),Ka={get defaultNoise(){return lo("noise1.mp3")},get street(){return ac("noise2")},get restaurant(){return ac("noise3")},get buzz(){return lo("noise4.mp3")}};function py(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return Ka.defaultNoise;case"street":return Ka.street[n];case"restaurant":return Ka.restaurant[n];case"buzz":return Ka.buzz;default:return null}}function my({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=s.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const o=s.useRef(null),[i,l]=s.useState(null),c=s.useRef(null),u=s.useRef(null),d=s.useRef(null),p=s.useRef(null),m=s.useRef(0),h=s.useRef(null),C=s.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),y=s.useCallback((_,b=250)=>{const A=o.current;if(!A)return;const w=u.current;if(w){u.current=null;try{A.pause()}catch{}A.src=w,A.load()}if(!A.src)return;m.current+=1,C();try{Cr(),Na(A).then(N=>{if(o.current===A)try{r.current?.("noise",N)}catch{}})}catch{}const D=A.paused?0:Ba(A);A.paused&&_n(A,0),A.play().catch(()=>{});const B=performance.now(),k=()=>{const N=Math.min(1,(performance.now()-B)/b);try{_n(A,D+(_-D)*N)}catch{}N<1?p.current=requestAnimationFrame(k):p.current=null};p.current=requestAnimationFrame(k)},[C]),f=s.useCallback((_=250,b)=>{const A=o.current;if(!A||A.paused){b?.();return}const w=++m.current;C();const D=performance.now(),B=Ba(A),k=()=>{const N=Math.min(1,(performance.now()-D)/_);try{_n(A,B*(1-N))}catch{}if(N<1)p.current=requestAnimationFrame(k);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{A.pause()}catch{}b?.()}};p.current=requestAnimationFrame(k),h.current=setTimeout(()=>{if(h.current=null,m.current===w){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{A.paused||(_n(A,0),A.pause(),b?.())}catch{}}},_+150)},[C]);s.useEffect(()=>{const _=document.createElement("audio");return _.loop=!0,_.crossOrigin="anonymous",o.current=_,()=>{C();try{_.pause(),_.src=""}catch{}o.current=null,c.current=null,u.current=null}},[C]);const v=e?so(e.settings):0,g=!!e?.settings.enabled&&v>0;s.useEffect(()=>{if(!g)return;let _=0;const b=setInterval(()=>{const A=o.current;if(!A||A.paused){_=0;return}const w=n.current;if(w&&!w.paused&&!w.ended||a.current==="playing"){_=0;return}_+=1,_>=2&&(_=0,f())},400);return()=>clearInterval(b)},[f,g,n,a]),s.useEffect(()=>{const _=()=>{if(!document.hidden)return;const b=o.current;if(b&&!b.paused){C();try{b.pause()}catch{}}};return document.addEventListener("visibilitychange",_),()=>document.removeEventListener("visibilitychange",_)},[C]),s.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:v,type:e.settings.type}:null},[e,e?.settings.enabled,v,e?.settings.type]);const x=s.useRef(null);return s.useEffect(()=>()=>{x.current?.(),x.current=null},[]),s.useEffect(()=>{const _=e?.settings,b=o.current;if(!b)return;const A=_?so(_):0;if(!_||!_.enabled||A===0){f();return}if(c.current!==_.type){const w=py(_.type);w&&(c.current=_.type,l(w),u.current=w,f(150,()=>{if(u.current!==w)return;u.current=null,b.src=w,b.load();const D=n.current;if(D&&!D.paused){x.current?.();const B=()=>{b.removeEventListener("canplay",B),x.current===k&&(x.current=null);const N=n.current,I=d.current;N&&!N.paused&&!N.ended&&I?.enabled&&I.volume>0&&y(I.volume)},k=()=>b.removeEventListener("canplay",B);x.current=k,b.addEventListener("canplay",B)}}))}else{const w=n.current,D=!!w&&!w.paused&&!w.ended||a.current==="playing";if(D&&u.current)y(A);else if(D&&b.paused&&b.src)y(A);else if(!b.paused)if(!D)f();else{C();const B=Ba(b),k=performance.now(),N=()=>{const I=Math.min(1,(performance.now()-k)/150);try{_n(b,B+(A-B)*I)}catch{}I<1?p.current=requestAnimationFrame(N):p.current=null};p.current=requestAnimationFrame(N)}}},[e?.settings,e?.settings.enabled,v,e?.settings.type,C,y,f,n,a,d]),s.useEffect(()=>{const _=o.current;if(_)try{_.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:o,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:C,fadeInNoise:y,fadeOutNoise:f}}function hy({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:o,setProgress:i,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const C=s.useRef(null),y=s.useRef(0),f=s.useRef(null),v=s.useRef(0),g=s.useRef(!1);s.useEffect(()=>()=>{v.current++;try{if(f.current&&(cancelAnimationFrame(f.current),f.current=null),g.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}g.current=!1}}catch{}},[]);const x=(A,w=1)=>{try{const D=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(D*300/Math.max(.25,w)))}catch{return 1200}},_=s.useCallback(A=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!0)}catch{}return}const w=window.speechSynthesis,D=++v.current;try{try{w.cancel()}catch{}const B=A??e,k=(Array.isArray(B)?B[0]??"":B)||"",N=new SpeechSynthesisUtterance(k);try{N.rate=Math.max(.3,Math.min(3,n))}catch{}try{N.volume=Math.max(0,Math.min(1,a))}catch{}y.current=x(k,N.rate||1),C.current=performance.now(),i(0),l("playing"),c("playMode");const I=p.current;I?.enabled&&(I?.volume??0)>0&&u(I.volume);const O=()=>{try{const j=C.current||performance.now(),H=performance.now()-j,T=y.current||1200,K=Math.min(1,H/T);try{r.current&&(r.current.style.left=`${K*100}%`),o.current&&o.current.style.setProperty("--progress",String(K))}catch{}K<1&&(f.current=requestAnimationFrame(O))}catch{}};N.onend=()=>{if(D===v.current)try{f.current&&(cancelAnimationFrame(f.current),f.current=null),i(1),l("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},N.onerror=()=>{N.onend?.(new Event("end"))},N.onstart=()=>{try{f.current&&(cancelAnimationFrame(f.current),f.current=null),f.current=requestAnimationFrame(O)}catch{}};try{g.current=!0,w.speak(N)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,n,a,u,r,o,i,l,c,p,m,h]),b=s.useCallback(()=>{v.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}f.current&&(cancelAnimationFrame(f.current),f.current=null),d(),C.current=null}catch{}l("stopped"),c("active"),i(0)},[d,l,c,i]);return{startTTS:_,stopTTS:b}}async function fy(e,n,a){let r=null;try{const o=window.AudioContext||window.webkitAudioContext;r=new o;const i=await r.decodeAudioData(e.slice(0)),l=i.numberOfChannels>0?i.getChannelData(0):null;if(!l)return null;const c=a&&a>0?Math.min(l.length,Math.floor(a*i.sampleRate)):l.length,u=Math.max(n,c),d=Math.floor(u/n)||1;return new Array(n).fill(0).map((p,m)=>{const h=m*d,C=Math.min(h+d,u);let y=0;for(let f=h;f<C;f++){const v=Math.abs(l[f]);v>y&&(y=v)}return y})}catch{return null}finally{try{r?.close?.()}catch{}}}async function rc(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const o=await r.arrayBuffer();return await fy(o,n,a)}catch(r){try{const o=Ts(r)}catch{}return null}}const oc=45,Cy=74,gy=2;function wa(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function co(e){return wa(e)/45}const sc=4;function by(e){const{src:n,segments:a,progress:r=0,waveProgressRef:o,noiseSrc:i,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=s.useRef(null),C=s.useRef(null),[y,f]=s.useState(null),[v,g]=s.useState(!1),[x,_]=s.useState(null),[b,A]=s.useState(2),[w,D]=s.useState(0),[B,k]=s.useState(null),[N,I]=s.useState(!1),[O,j]=s.useState(!1),H=3,T=3,K=1,W=300,V=s.useRef(0),U=s.useCallback(async(oe,Ce)=>{const X=++V.current,te=()=>V.current===X;try{if(g(!1),!oe){te()&&f(null);return}let Y=Ce;if(!Y)try{for(let De=0;De<4&&!(h.current||C.current);De++)await new Promise(Oe=>requestAnimationFrame(Oe));await new Promise(De=>requestAnimationFrame(De));const xe=h.current,Te=C&&C.current?C.current:xe?xe.closest(".audio-player__wave"):null,ue=Te?Te.getBoundingClientRect():xe?xe.getBoundingClientRect():null,be=ue?Math.max(100,ue.width):320,Ae=ue?ue.height:0;Ae>0&&D(Ae),Y=Math.max(K,Math.min(W,Math.floor((be+T)/(H+T))));const Q=Y*H,ee=Math.max(0,Y-1),ke=ee>0?(be-Q)/ee:T;A(Math.max(0,ke))}catch{Y=120}const ge=await rc(oe,Y);if(!te())return;if(!ge){f(null),g(!1);return}f(ge),_(Y),g(!0)}catch{if(!te())return;f(null),g(!1)}},[g,f,D,A,_]);s.useEffect(()=>{const oe=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;U(typeof oe=="string"?oe:void 0).catch(()=>{}),j(!1)},[n,a,U]),s.useEffect(()=>{let oe=!1;if(I(!1),!i||!x){k(null);return}const Ce=u>0?u*(c||1):void 0;return rc(i,x,Ce).then(X=>{oe||(k(X),X||I(!0))}).catch(()=>{oe||(k(null),I(!0))}),()=>{oe=!0}},[i,x,u,c]);const re=Math.max(0,Math.min(1,d)),P=s.useMemo(()=>y&&y.length&&Math.max(...y)||1,[y]),$=x||40,M=s.useMemo(()=>Array.from({length:$}).map((oe,Ce)=>{const X=y&&y[Ce]!=null?y[Ce]:null,te=X==null?null:Math.min(1,X/P*re),Y=te!=null&&w>0&&wa(te)<=sc,ge=te==null?.15:Y?0:co(te),xe=$>1?Ce/($-1):0;return t.jsx("div",{className:Y?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ge,"--i":Ce,"--mix":xe}},Ce)}),[$,y,P,re,w]),L={"--progress":String(Math.max(0,Math.min(1,r)))},z=i?Math.max(1,l):1,R={"--bar-gap":`${b}px`,"--wave-h":`${wa(z)}px`,"--wave-h1":`${oc}px`},E=re*Math.max(0,l)/vs(),F=v&&(i?!!B||N:!0);s.useEffect(()=>{F&&j(!0)},[F]);const ae=O?v:F;s.useEffect(()=>{p?.(ae)},[ae,p]);const le=x||40,se=s.useMemo(()=>Array.from({length:le}).map((oe,Ce)=>{const X=B&&B[Ce]!=null?B[Ce]:null,te=X==null?0:X/P*E,Y=w>0&&wa(te)<=sc,ge=Y?0:co(te),xe=le>1?Ce/(le-1):0;return t.jsx("div",{className:Y?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ge,"--i":Ce,"--mix":xe}},Ce)}),[le,B,P,E,w]);return t.jsxs("div",{className:"audio-player__wave",ref:C,style:R,children:[i&&t.jsx("div",{className:`audio-player__wave-noise ${F?"is-ready":""}`,"aria-hidden":"true",children:se}),m&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ae?"is-ready":""}`,ref:h,children:M}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ae?"is-ready":""}`,ref:o,style:L,children:M})]})]})}const yy={idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"};function uo(e,n){return new Promise((a,r)=>{const o=document.createElement("audio");let i=!1;const l=()=>{try{o.src=""}catch{}},c=()=>{if(i)return;i=!0;const d=isFinite(o.duration)&&o.duration||0;l(),a(d)},u=d=>{i||(i=!0,l(),n.rejectOnError?r(new Error(d)):a(0))};o.addEventListener("loadedmetadata",c),o.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),n.timeoutMs),o.src=e})}const vy=2e3;function ic(e,n=vy){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.addEventListener("canplay",o,{once:!0}),e.addEventListener("error",o,{once:!0}),setTimeout(o,n)})}function xy({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=s.useRef(!1),o=s.useRef([]),i=s.useCallback(u=>{if(r.current=u,!u||!o.current.length)return;const d=o.current;o.current=[];for(const p of d)p()},[]),l=s.useCallback(()=>{r.current=!1},[]),c=s.useCallback(()=>!e&&!n||r.current?Promise.resolve():new Promise(u=>{const d=setTimeout(u,a);o.current.push(()=>{clearTimeout(d),u()})}),[e,n,a]);return s.useEffect(()=>()=>{const u=o.current;o.current=[];for(const d of u)d()},[]),{onReadyChange:i,waitForReady:c,markNotReady:l}}function _y(){const e=s.useRef([]),n=s.useCallback(o=>(e.current.push(o),o),[]),a=s.useCallback(o=>{const i=new Set([...o].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=s.useCallback(()=>{a([])},[a]);return s.useEffect(()=>()=>{for(const o of e.current)try{URL.revokeObjectURL(o)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function wy({offsetY:e=8}={}){const n=s.useRef(null),[a,r]=s.useState(null),o=s.useCallback(()=>r(null),[]),i=s.useCallback(()=>{try{const l=n.current?.getBoundingClientRect();if(!l)return;r({left:l.left,right:l.right,width:l.width,height:l.height,x:l.x,top:l.top+e,bottom:l.bottom+e,y:l.y+e,toJSON:l.toJSON.bind(l)})}catch{}},[e]);return s.useEffect(()=>{if(a)return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[a,o]),{ref:n,rect:a,show:i,hide:o}}function ky({currentTime:e,sources:n,index:a,audioDuration:r}){const o=a||0,i=Array.isArray(n)&&n.length>0?n[o]:void 0,l=i?i.duration||r||0:r||0;if(!(l>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/l))}function Ay(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function Ny({ended:e,completedByEnd:n}){return!!e||!!n}function By(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function Dy(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function Sy(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],o=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;o.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){o.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),c=a(l,n);c&&o.push({code:l,resolvedPath:c})}}return o}function Ty({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:o}){const i=s.useRef(null),l=s.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=s.useCallback(()=>{if(i.current!==null)return;const d=()=>{try{const p=e.current,m=ky({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:o.current,audioDuration:p&&p.duration?p.duration:0});try{n.current&&(n.current.style.left=`${m*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(m))}catch{}}catch{}i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)},[e,n,a,r,o]),u=s.useCallback(d=>{l();try{n.current&&(n.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,n,a]);return s.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:u}}function po({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:o=!1,ttsText:i=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=de.useTranslation(),p=e,m=Ga(),h=s.useRef(m?.registerAnalyser);s.useEffect(()=>{h.current=m?.registerAnalyser});const C=s.useRef(null),y=s.useRef(null),f=s.useRef(null),v=_y(),g=s.useRef(null),x=s.useRef(!1),_=s.useRef(0),b=s.useRef(null),{ref:A,rect:w,show:D,hide:B}=wy();s.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[k,N]=s.useState(!1),[I,O]=s.useState("idle"),[j,H]=s.useState("stopped"),T=s.useRef("stopped");s.useEffect(()=>{T.current=j},[j]);const[K,W]=s.useState(0),[V,U]=s.useState("active"),re=s.useRef(!1);s.useEffect(()=>{if(V!=="playMode"||!re.current)return;re.current=!1;const Z=typeof document<"u"?document.activeElement:null;if(Z&&Z!==document.body)return;const fe=f.current?.querySelectorAll("button")[1];try{fe?.focus()}catch{}},[V]);const[P,$]=s.useState(null),[M,L]=s.useState(null),[z,R]=s.useState(0),[E,F]=s.useState(!1),[ae,le]=s.useState(0),se=m?.playbackRate??1,oe=m?.mainVolume??1,Ce=m?oo(m.settings):0,X=m?nc(m.settings):oe,[te,Y]=s.useState("idle"),[ge,xe]=s.useState(""),[Te]=s.useState("top"),ue=s.useRef(null),be=s.useRef(0),Ae=s.useRef(null),{start:Q,stop:ee,settleTo:ke}=Ty({audioRef:C,fillRef:y,waveProgressRef:Ae,sourcesRef:ue,currentIndexRef:be}),{onReadyChange:De,waitForReady:Oe,markNotReady:Le}=xy({showSoundWaveForm:c,showNoiseWaveForm:u}),We=s.useRef(null),Re=s.useRef(o),et=s.useRef(r),Ke=s.useRef(null),Ge=s.useRef(!1),[ye,He]=s.useState(!1),Ee=s.useCallback(Z=>{Ge.current=Z,He(Z)},[]),Pe=s.useRef(null),{activeNoiseUrl:qe,noiseSettingsRef:Ye,fadeInNoise:ct,fadeOutNoise:ut}=my({noisePlayer:m,audioRef:C,playbackStateRef:T}),{startTTS:dt,stopTTS:Xe}=hy({ttsText:i,playbackRate:se,mainVolume:X,fillRef:y,waveProgressRef:Ae,setProgress:W,setPlaybackState:H,setStateLocal:U,fadeInNoise:ct,fadeOutNoise:ut,noiseSettingsRef:Ye,onDoneRef:et,handleEndRef:Pe});s.useEffect(()=>{Gt.current=Xe});const tt=Z=>{Kt("tts"),dt(Z)},Ve=Array.isArray(n)?n.filter(Boolean):n?[n]:[],nt=(!Ve||Ve.length===0)&&!!i,Je=Array.isArray(P)&&P.length>0?P:Array.isArray(M)&&M.length>0?M:null,rt=Math.max(Array.isArray(Je)?Je.length:0,Ve.length),Me=s.useRef(!0);s.useEffect(()=>(Me.current=!0,()=>{Me.current=!1}),[]);const Qe=s.useRef(0),yt=()=>{Qe.current+=1,_.current+=1},Gt=s.useRef(null),mt=s.useRef(null),_t=s.useRef(null),zt=s.useRef(null);zt.current||(zt.current=()=>{_t.current=null;const Z=C.current;if(mt.current==="audio"&&Z&&!Z.paused){Qe.current+=1,_.current+=1;try{Z.pause()}catch{}Me.current&&H("paused")}else if(mt.current==="tts")try{Gt.current?.()}catch{}});const Kt=Z=>{mt.current=Z,_t.current=qr(zt.current)},wt=()=>{_t.current?.(),_t.current=null};s.useEffect(()=>()=>{zt.current&&Oa(zt.current)},[]);const ht=s.useCallback(async(Z,fe=3,Be=50)=>{const $e=Qe.current;for(let je=0;je<fe;je++){if(!Me.current||$e!==Qe.current)return!1;try{return Kt("audio"),await Z.play(),!0}catch(ze){if((ze instanceof Error||typeof ze=="object"&&ze&&"name"in ze?ze.name:void 0)==="AbortError"){if($e!==Qe.current)return!1;await new Promise(ft=>setTimeout(ft,Be));continue}try{xe(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{xe(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),Tt=s.useCallback(()=>{const Z=C.current;if(!Z)return;const fe=()=>{H("playing"),U("playMode"),F(!0),Q();try{Cr(),Na(Z).then(ze=>{if(Me.current)try{h.current?.("main",ze)}catch{}})}catch{}const je=Ye.current;je?.enabled&&(je?.volume??0)>0&&ct(je.volume)},Be=()=>{Ny({ended:!!Z?.ended,completedByEnd:Ge.current})||(H("paused"),ee(),ut())},$e=()=>{try{const je=ue.current,ze=Ay(je,be.current);if(ze!==null){be.current=ze,R(ze),F(!0);const ft=je?.[ze]&&je[ze].src;if(ft&&Z){Z.src=ft,Z.load(),ht(Z).catch(()=>{});return}}}catch{}H("stopped"),W(1);try{if(Z)try{Z.currentTime=0}catch{}}catch{}ee(),F(!1),ut();try{!Re.current&&Pe.current&&Pe.current()}catch{}};return Z.addEventListener("play",fe),Z.addEventListener("pause",Be),Z.addEventListener("ended",$e),()=>{try{Z.removeEventListener("play",fe),Z.removeEventListener("pause",Be),Z.removeEventListener("ended",$e),ee()}catch{}}},[ct,ut,ht,Ye,Q,ee]);s.useEffect(()=>Tt(),[Tt]),s.useEffect(()=>{Re.current=o},[o]),s.useEffect(()=>{et.current=r},[r]),s.useEffect(()=>{if(o||V!=="active")return;const Z=b.current;if(!Z)return;let fe=null;const Be=requestAnimationFrame(()=>{try{const $e=Z.getTotalLength();if(!$e)return;const je=$e*.2;Z.style.strokeDasharray=`${$e-je} ${je}`;const ze="triFlow_"+Math.random().toString(36).slice(2);fe=document.createElement("style"),fe.textContent=`@keyframes ${ze}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${$e}}}`,document.head.appendChild(fe),Z.style.animation=`${ze} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(Be),fe?.remove()}},[V,o]),s.useEffect(()=>{ue.current=P},[P]),s.useEffect(()=>{be.current=z},[z]),s.useEffect(()=>{const Z=f.current,fe=g.current;if(!Z||!fe)return;let Be=null;const $e=32,je=60,ze=()=>{try{const Nt=Array.from(Z.querySelectorAll(":scope > .button"));let kt=0;Nt.forEach(dn=>{if(dn===fe)return;const Qa=dn.getBoundingClientRect();kt+=Qa.width});const rn=Z.getBoundingClientRect().width,Zt=Math.max(0,Math.floor(rn-kt-8)),Et=rt;if(!Et||Zt<=0){Array.from(fe.children).forEach(dn=>{try{dn.style.width=""}catch{}});return}let un=Math.floor(Zt/Et);un>je&&(un=je),un<$e&&(un=Math.max($e,Math.floor(Zt/Et))),Array.from(fe.querySelectorAll(".button")).forEach(dn=>{try{dn.style.width=`${un}px`}catch{}})}catch{}},ft=requestAnimationFrame(ze);try{Be=new ResizeObserver(()=>{requestAnimationFrame(ze)}),Be.observe(Z),Be.observe(fe),window.addEventListener("resize",ze)}catch{}return()=>{try{cancelAnimationFrame(ft)}catch{}try{Be&&(Be.disconnect(),Be=null)}catch{}try{window.removeEventListener("resize",ze)}catch{}}},[P,M,rt]),s.useEffect(()=>()=>{try{We.current&&(clearTimeout(We.current),We.current=null),Ke.current&&(clearTimeout(Ke.current),Ke.current=null)}catch{}},[]);const It=(Z,fe)=>{$(Z),le(fe),Le(),L(By(Z)),ue.current=Z},yn=async(Z,fe)=>{Ee(!1),x.current=!1,Z.src=fe,Z.load(),await ic(Z),await Oe(),N(!1),await ht(Z),U("playMode"),R(0),F(!0)},Sn=async(Z,fe=!1)=>{const Be=C.current;N(!0),O("measuring_duration");try{const $e=await uo(Z,{timeoutMs:1e4,rejectOnError:!0});It([{src:Z,objectUrl:null,duration:$e}],$e),O("ready"),fe&&Be&&await yn(Be,Z)}finally{x.current=!1,N(!1)}},at=async(Z,fe=!1)=>{const Be=C.current;N(!0),O("measuring_duration");try{const $e=await Promise.all(Z.map(ze=>uo(ze,{timeoutMs:1e4})));if(!Me.current)return;const je=Z.map((ze,ft)=>({src:ze,objectUrl:null,duration:$e[ft]||0}));It(je,Dy(je)),O("ready"),fe&&Be&&je.length>0&&await yn(Be,je[0].src)}finally{x.current=!1,N(!1)}},Wt=async(Z=!1,fe=!0)=>{const Be=C.current,$e=n?Array.isArray(n)?n:[n]:[];if(!$e||$e.length===0||!$e.some(Boolean))return!1;if(x.current)return null;x.current=!0,fe&&N(!0),O("resolving");try{const je=Sy(n,a,gs),ze=[];let ft=0;for(const Nt of je){let kt=Nt.src??null,rn=null;if(!kt&&Nt.resolvedPath){try{O("getting_signed_url"),kt=await bs(Nt.resolvedPath)}catch{kt=null}if(!Me.current)return!1;if(!kt)try{O("downloading");const Et=await ys(Nt.resolvedPath);if(!Me.current)return!1;if(Et){const un=Et instanceof Blob?Et:new Blob([Et]);rn=v.track(URL.createObjectURL(un)),kt=rn}}catch{O("error");try{xe(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),U("active")}catch{}}}if(!kt)continue;let Zt=0;try{O("measuring_duration"),Zt=await uo(kt,{timeoutMs:3e3})}catch{Zt=0}if(!Me.current){if(rn)try{URL.revokeObjectURL(rn)}catch{}for(const Et of ze)if(Et.objectUrl)try{URL.revokeObjectURL(Et.objectUrl)}catch{}return!1}ft+=Zt||0,ze.push({...Nt,src:kt,objectUrl:rn,duration:Zt})}if(It(ze,ft),ze.length>0&&Z&&Be){const Nt=ze[0];Ee(!1);try{v.keepOnly(ze.map(kt=>kt.objectUrl))}catch{}if(O("ready"),x.current=!1,Nt.src&&Be)try{Be.src=Nt.src,Be.load(),await ic(Be),await Oe(),fe&&N(!1),Be&&await ht(Be)}catch{fe&&N(!1)}else fe&&N(!1);U("playMode"),R(0),F(!0)}return ze.length>0}finally{x.current=!1,fe&&N(!1),O(je=>je==="ready"?"ready":"idle")}},en=async()=>{const Z=C.current;if(!(!Z&&!nt)){if(nt){const fe=window.speechSynthesis;if(V==="active"){const Be=mr(),$e=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(Be&&$e.length>0){U("load"),N(!0),O("resolving"),x.current=!0;try{const je=await Promise.all($e.map(ze=>Promise.resolve(Be(ze))));je.length>1?await at(je,!0):await Sn(je[0],!0)}catch{x.current=!1,N(!1),U("active"),tt($e[0]||void 0)}return}tt($e[0]||void 0);return}if(V==="playMode"){if(Z){if(Z.paused){if(Ge.current){await vt();return}await ht(Z),H("playing")}else yt(),Z.pause(),H("paused");return}try{if(fe&&fe.paused)try{Kt("tts"),fe.resume(),H("playing")}catch{}else try{fe.pause(),H("paused")}catch{}}catch{}}return}if(V==="active"){if(o&&Array.isArray(ue.current)&&ue.current.length>0){const Be=ue.current[0];try{if(Be.src&&Z)try{Z.src=Be.src,Z.load(),Z&&await ht(Z)}catch{}U("playMode"),R(0),F(!0);return}catch{}}U("load");let fe;try{fe=await Wt(!0)}catch{fe=!1}if(fe===!1&&Me.current){try{xe(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}U("active")}return}if(V!=="load"&&(V==="playMode"||V==="active"))try{if(Z&&Z.paused){if(Ge.current){await vt();return}Z&&await ht(Z),H("playing")}else Z&&(yt(),Z.pause(),H("paused"))}catch(fe){(fe instanceof Error||typeof fe=="object"&&fe&&"name"in fe)&&fe.name}}},vt=async()=>{const Z=C.current;if(Z)try{const fe=ue.current;if(Array.isArray(fe)&&fe.length>1){await qt(0);return}Ee(!1);try{Z.currentTime=0}catch{}Z&&await ht(Z),H("playing"),U("playMode")}catch{}},Ft=()=>{if(yt(),wt(),nt){Xe();return}const Z=C.current;try{if(Z){try{Z.pause()}catch{}try{Z.currentTime=0}catch{}}}catch{}ut(),H("stopped"),U("active"),W(0),F(!1)},tn=async(Z,{sameSegment:fe=!1}={})=>{const Be=++_.current,$e=C.current,je=ue.current?.[Z]?.src;try{if(Ee(!1),R(Z),F(!0),be.current=Z,!je||!$e||(fe||Le(),$e.src=je,$e.load(),fe||await Oe(),Be!==_.current)||(await ht($e),Be!==_.current))return;H("playing"),U("playMode")}catch{}},nn=async()=>{const Z=ue.current,fe=be.current||0;if(!Z||fe<=0){await vt();return}await tn(fe-1)},ln=async()=>{const Z=ue.current,fe=be.current||0;if(!Z||fe>=Z.length-1){Ft();return}await tn(fe+1)},cn=()=>{if(Ge.current)return;const Z=200,fe=340;Ee(!0),yt(),wt();try{W(1)}catch{}ke(1);try{Y("hold")}catch{}try{const Be=C.current,$e=nt&&!!Be?.src;if(!nt||$e){if(Be){Be.pause();try{Be.currentTime=0}catch{}}}else Xe();ut()}catch{}try{H("stopped")}catch{}if(F(!1),!Re.current)try{Ke.current&&(clearTimeout(Ke.current),Ke.current=null),Ke.current=setTimeout(()=>{try{Y("out")}catch{}Ke.current=setTimeout(()=>{try{typeof et.current=="function"&&et.current(!0)}catch{}try{Y("idle")}catch{}Ke.current=null},fe)},Z)}catch{}};s.useEffect(()=>{Pe.current=cn});const Yt=s.useCallback(()=>xe(""),[]),qt=async Z=>{(ue.current||[])[Z]&&await tn(Z,{sameSegment:Z===be.current})},gt=j==="playing",an=s.useMemo(()=>{if(!M||M.length<=1)return M;const Z=M[z];return Z?[Z]:M},[M,z]),Ot=o===!0;s.useEffect(()=>{try{const Z=C.current;Z&&typeof Z.playbackRate=="number"&&(Z.playbackRate=se||1)}catch{}},[se]);const jt=s.useRef({raf:null,timer:null});s.useEffect(()=>{const Z=C.current;if(!Z)return;const fe=Math.max(0,Math.min(1,X)),Be=jt.current,$e=()=>{Be.raf!==null&&(cancelAnimationFrame(Be.raf),Be.raf=null),Be.timer!==null&&(clearTimeout(Be.timer),Be.timer=null)};$e();const je=Ba(Z);if(Z.paused||Math.abs(je-fe)<.001||typeof requestAnimationFrame!="function"){try{_n(Z,fe)}catch{}return}const ze=performance.now(),ft=()=>{const Nt=Math.min(1,(performance.now()-ze)/150);try{_n(Z,je+(fe-je)*Nt)}catch{}Be.raf=Nt<1?requestAnimationFrame(ft):null};return Be.raf=requestAnimationFrame(ft),Be.timer=setTimeout(()=>{$e();try{_n(Z,fe)}catch{}},200),$e},[X]);const ne=te==="hold",pe=te==="out",J=V==="playMode"&&!k&&!ye||ne||pe,me=j!=="stopped"||ne||pe,_e=j==="paused",Ne=Math.max(0,Math.min(100,(K||0)*100)),Ie=ve("audio-player__fill",J?"is-visible":"",me?"is-expanded":"",_e?"is-paused":"",pe?"is-out":"");return t.jsxs("div",{className:`audio-player ${Ot?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${gt?"is-playing":""} ${k?"is-loading":""} ${V!=="default"?"is-revealed":""}`,children:[k?t.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[t.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),t.jsx("span",{className:"audio-player__loading-text",children:d(`training.audioStatus.${I}`,{defaultValue:yy[I]})})]}):null,V==="active"?t.jsx("button",{className:"audio-player__button",type:"button",disabled:Ot,onClick:()=>{re.current=Ha(),B(),en()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:D,onMouseLeave:B,onFocus:D,onBlur:B,children:t.jsx("span",{ref:A,className:"audio-player__button-triangle-wrap",children:t.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:t.jsx("path",{ref:b,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,w&&t.jsx(kn,{anchorRect:w,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${V==="playMode"||gt?"is-visible":""}`,inert:!(V==="playMode"||gt)||void 0,children:[t.jsxs("div",{ref:f,className:"audio-player__buttons",children:[t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:nn,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:V!=="playMode"}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:gt?"pause":"play",onClick:en,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":gt,width:"60px",variant:"transparent-white",disabled:V!=="playMode"}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Ft,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:V!=="playMode"}),rt>1?t.jsx("div",{ref:g,className:"audio-player__source-buttons",children:Array.from({length:rt}).map((Z,fe)=>t.jsx(ie,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(fe+1),onClick:()=>{try{qt(fe)}catch{}},ariaLabel:d("training.sourcePlay",{n:fe+1}),variant:"transparent-white",selected:E&&z===fe,disabled:V!=="playMode"||!(Array.isArray(P)&&P[fe]),showTooltipInfo:!0},fe))}):null,!Array.isArray(P)||P.length<=1?t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:vt,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:V!=="playMode"}):null,t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:ln,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:V!=="playMode"}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:cn,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:V!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:Ie,ref:y,style:{left:`${Ne}%`},"aria-hidden":"true"}),(c||u)&&t.jsx(by,{segments:an,progress:K,totalDuration:ae,onSegmentClick:qt,waveProgressRef:Ae,showSoundWaveForm:c,noiseSrc:u&&m?.settings.enabled&&Ce>0?qe:null,noiseRatio:m?va(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:oe,onReadyChange:De})]})]}),t.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!c&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Ue,{icon:"triangle-alert",size:14}),d("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(Kn,{message:ge,position:Te,onClose:Yt})]})}function Ya(e){const{t:n}=de.useTranslation(),{text:a,label:r,anchorRect:o=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=s.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});s.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:m,canIncrease:h,canDecrease:C,fontSize:y,lineHeight:f}=bi({storageKey:"tooltip-fontScale"}),v=s.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),g=s.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),x=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${y}px`,lineHeight:`${f}px`,"--tt-line-height":`${f}px`,"--tt-marker-size":"28px"},b=t.jsxs("div",{className:`tooltip-textbox__root ${u==="dark"?"is-dark":""}`,children:[t.jsxs("div",{className:"tooltip-textbox__box",children:[r&&t.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),t.jsx("div",{className:"tooltip-textbox__text body-1",style:_,children:x.map((A,w)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[x.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},w))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:m,ariaLabel:n("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!C}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:p,ariaLabel:n("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!h}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:v,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:g,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return o?t.jsx(wn,{anchorRect:o,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:b}):t.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:b})}function lc({state:e="disabled"}){const{t:n}=de.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Ue,{icon:"chevron-right",label:n("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),t.jsx("div",{className:"ts-bullet__line"})]})}function cc({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:o=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:m}=de.useTranslation(),h=on("(max-width: 767px)"),C=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),y=`training-step__title-row training-step__title-row--${r}`.trim(),f=s.useRef(null),[v,g]=s.useState(!1),[x,_]=s.useState(null),[b,A]=s.useState(null),w=s.useRef(i);s.useEffect(()=>{w.current=i});const D=s.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(N=>typeof N=="string"||typeof N=="number")?l.join(""):"",[l]),B=s.useCallback(()=>{g(!1),_(null),A(null)},[]);s.useEffect(()=>{if(!v)return;let N;try{typeof w.current=="function"&&(N=w.current())}catch{}if(N===!1){B();return}A(typeof N<"u"&&N!==null?N:null)},[D]);const k=s.useCallback(()=>{let N;try{typeof i=="function"&&(N=i())}catch{}if(N!==!1){if(A(typeof N<"u"&&N!==null?N:l),!f.current){g(I=>!I);return}if(v)g(!1),_(null),A(null);else{const I=f.current.getBoundingClientRect();_(I),g(!0)}}},[i,l,v]);return t.jsxs("div",{className:y,children:[t.jsx("p",{className:C,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),o||u?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[u&&t.jsx(ie,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),o&&t.jsx("div",{ref:f,children:t.jsx(ie,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:v,onClick:k,variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),v&&t.jsx(Ya,{text:b??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:x,onClose:B,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function mo(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Hn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:o={},children:i,className:l="",onDone:c=void 0,useTitleFaded:u=void 0}){const{t:d}=de.useTranslation(),[p,m]=s.useState(()=>mo(e,n));s.useEffect(()=>{const A=mo(e,n);if(A!==p){const w=setTimeout(()=>m(A),0);return()=>clearTimeout(w)}},[e,n,p]);const h=s.useCallback((...A)=>{mo(e,n)==="done"||p==="done"||typeof c=="function"&&c(...A)},[e,n,p,c]),[C,y]=s.useState(!1),[f,v]=s.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),g=s.useCallback(A=>{if(!A)return null;try{const w=A;if(typeof A=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const k=w.currentTarget??w.target;if(k&&typeof k.getBoundingClientRect=="function")return k.getBoundingClientRect()}if(A instanceof DOMRect)return A;const D=A;if(D&&typeof D.getBoundingClientRect=="function")return D.getBoundingClientRect();const B=A?.current;return B&&typeof B.getBoundingClientRect=="function"?B.getBoundingClientRect():null}catch{return null}},[]),x=s.useCallback((A,{text:w="",label:D="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:B=!1,alignX:k="center",alignY:N="top"}={})=>{const I=g(A);v({text:w,label:D,anchorRect:I,backdrop:B,alignX:k,alignY:N}),y(!0)},[g]),_=s.useCallback(()=>{y(!1),v(A=>({...A,anchorRect:null}))},[]),b=s.Children.map(i,A=>{if(s.isValidElement(A)){const w=A;if(typeof w.type=="string")return w;const D=w.props??{},B=typeof D.onDone=="function"?D.onDone:h,k=typeof D.disabled=="boolean";let N=p==="disabled";return k&&(N=!!D.disabled),s.cloneElement(w,{onDone:B,disabled:N,showTooltip:x,hideTooltip:_})}return A});return t.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[t.jsx(lc,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(cc,{state:p,title:r,...o,useFaded:u}),b]}),C?t.jsx(wn,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:_,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(Ya,{text:f.text,onClose:_})}):null]})}function uc({context:e,state:n="disabled",theme:a="light"}){const{t:r}=de.useTranslation(),[o,i]=s.useState("disabled"),[l,c]=s.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});s.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const u=()=>c(j=>j==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:m,canDecrease:h,fontSize:C,lineHeight:y}=bi({storageKey:"textbox_fontScale"}),[f,v]=s.useState(""),g=s.useRef(null),x=s.useRef(!1),_=s.useCallback(()=>{x.current=Ha()&&!!g.current&&g.current.contains(document.activeElement),i("active")},[]),b=s.useCallback(()=>v(""),[]),A=j=>{try{v(j)}catch{}},w=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");s.useEffect(()=>{if(n!=="disabled"){const j=setTimeout(()=>i(n),0);return()=>clearTimeout(j)}},[n]);const D=s.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[B,k]=s.useState(D);B!==D&&(k(D),i("disabled"));const N=n==="disabled"?o:n,I=N==="disabled"?"training-text-box--disabled":N==="active"?"training-text-box--active":N==="done"?"training-text-box--done":"",O=s.useMemo(()=>({fontSize:`${C}px`,lineHeight:`${y}px`}),[C,y]);return s.useEffect(()=>{if(N==="disabled"||!x.current)return;x.current=!1;const j=document.activeElement;j&&j!==document.body||g.current?.querySelector(".training-text-box__buttons button")?.focus()},[N]),t.jsxs("div",{ref:g,className:`training-text-box ${I} ${N!=="disabled"&&l==="dark"?"is-dark":""}`,children:[N==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(ie,{htmlType:"button",size:48,type:"bar",onClick:_,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),t.jsx("div",{className:"training-text-box__area","aria-hidden":N==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:O,children:D})}),N!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":N==="disabled",children:[t.jsx(ie,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>A(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),t.jsx(ie,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>A(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(Kn,{message:f,position:"top",onClose:b})]})}function ho({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:o,onDone:i,onChange:l,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:C,shuffleChoices:y=!0}){const{t:f}=de.useTranslation(),v=r??f("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),g=typeof e=="number"?e:-1,x=typeof n!="number"?"disabled":g<n?"done":g===n?"active":"disabled",_=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,b=u?u.join("||"):"",A=d?d.join("||"):"",[w,D]=s.useState(()=>Array.isArray(_)?y?ca(_):_.slice():void 0);s.useEffect(()=>{Array.isArray(_)&&_.length?D(y?ca(_):_.slice()):D(void 0)},[c,b,A,y]);const[B,k]=s.useState(null),[N,I]=s.useState(()=>new Set);s.useEffect(()=>{k(null),I(new Set)},[A,c,b]);const O=s.useRef(void 0);s.useEffect(()=>{const T=O.current;typeof T=="number"&&typeof n=="number"&&typeof e=="number"&&T>=e&&n<e&&(k(null),I(new Set)),O.current=n},[n,e]);const j=s.useCallback(T=>{if(x!=="active")return;const K=w?.[T];if(K==null)return;const W=K,V=x==="active"||x==="done";if(p){const U=new Set(N),re=U.has(W);re?U.delete(W):U.add(W),I(U),typeof l=="function"&&l({selectedValues:[...U],__ts:Date.now()}),V&&(typeof m=="number"&&m>0?U.size>=m:!re)&&typeof i=="function"&&x==="active"&&i({selectedValues:[...U],__ts:Date.now()})}else k(W),typeof l=="function"&&l({selectedIndex:T,selectedValue:W,__ts:Date.now()}),V&&typeof i=="function"&&x==="active"&&i({selectedIndex:T,selectedValue:W,__ts:Date.now()})},[w,x,p,l,i,m,N]),H=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:v,useTitleFaded:o,children:t.jsx("div",{className:H,children:Array.isArray(w)&&w.length>0?w.map((T,K)=>t.jsx(ie,{htmlType:"button",size:56,type:"bar",onClick:()=>j(K),ariaLabel:String(T),label:T,useLabel:!0,icon:C?C[String(T)]:void 0,variant:"default",disabled:x==="disabled",selected:p?N.has(T):B===T,useDisabledCovered:h,minWidth:0},String(T))):null})})}function fo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l,demoSelected:c}){const{t:u}=de.useTranslation(),d=r??u("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,m=typeof n!="number"?"disabled":p<n?"done":p===n?"active":"disabled",h=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",C=l&&typeof l=="object"?l.choices:void 0,[y,f]=s.useState(c??null),v=`${String(h)}\0${JSON.stringify(C??null)}`,[g,x]=s.useState(v);g!==v&&(x(v),c==null&&f(null));const[_,b]=s.useState(c);Object.is(_,c)||(b(c),f(c??null));const A=s.useRef(void 0);s.useEffect(()=>{const k=A.current;typeof k=="number"&&typeof n=="number"&&typeof e=="number"&&k>=e&&n<e&&c==null&&f(null),A.current=n},[n,e,c]);const w=s.useCallback(k=>{const N=typeof k=="object"&&k!==null?Object.assign({},k,{__ts:Date.now()}):{value:k,__ts:Date.now()};typeof i=="function"&&i(N),m==="active"&&typeof o=="function"&&o(N)},[i,m,o]),D=s.useCallback(()=>{m==="active"&&(f(!1),w(!1))},[w,m]),B=s.useCallback(()=>{m==="active"&&(f(!0),w(!0))},[w,m]);return t.jsxs(Hn,{index:e,stepIndex:n,isLast:a,title:d,onDone:o,useTitleFaded:!1,children:[t.jsx(uc,{context:l,state:m}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(C)&&C.length>0?C.slice(0,6).map((k,N)=>t.jsx(ie,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(f(N),w&&w(N))},disabled:m==="disabled",ariaLabel:String(k),label:k,variant:m,selected:y===N},N)):t.jsxs(t.Fragment,{children:[t.jsx(ie,{htmlType:"button",size:56,type:"bar",onClick:D,disabled:m==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!1}),t.jsx(ie,{htmlType:"button",size:56,type:"bar",onClick:B,disabled:m==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!0})]})})]})}function Co({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,btnLabel:i,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:C,showNoiseWaveForm:y}){const{t:f}=de.useTranslation(),v=r??f("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),g=m??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:v,onDone:o,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:t.jsx(po,{soundSrc:l,ttsText:l?null:d??v,bucketPath:c,btnLabel:i||f("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:g,className:"training-step__listen-sticky",showSoundWaveForm:C,showNoiseWaveForm:y},`audio-p${h??0}-s${e}`)})}const jy=[];function go({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l=jy}){const{t:c}=de.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=M=>typeof M=="string"?M:M&&(M.context||M.sentence||M.question||"")||"",[p,m]=s.useState(Array.isArray(l)?l:[]),[h,C]=s.useState(()=>(p||[]).map((M,L)=>({id:L,text:d(M)}))),y=s.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]),f=y!=="disabled",v=s.useRef(void 0);s.useEffect(()=>{if(v.current===l)return;v.current=l;const M=Array.isArray(l)?l:[];m(M);const L=(z=>{const R=(z||[]).map((le,se)=>({id:se,text:d(le)}));if(R.length<=1)return R;const E=(le,se)=>{if(le.length!==se.length)return!1;for(let oe=0;oe<le.length;oe++)if(le[oe].text!==se[oe].text)return!1;return!0};let F=ca(R),ae=0;for(;E(F,R)&&ae<20;)F=ca(R),ae+=1;return F})(M);C(L);try{if(typeof i=="function"){const z=L.filter((R,E)=>R.text===d(M[E])).length;i({shuffled:L,score:z,total:(M||[]).length,initial:!0,__ts:Date.now()})}if(typeof o=="function"&&y==="active"){const z=L.filter((R,E)=>R.text===d(M[E])).length;o({shuffled:L,score:z,total:(M||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const g=(M,L)=>{const z=[...h],R=M+L;if(R<0||R>=z.length)return;const E=z[R];z[R]=z[M],z[M]=E,K(z);try{if(typeof o=="function"&&y==="active"){const F=z.filter((ae,le)=>ae.text===d(p[le])).length;o({shuffled:z,score:F,total:(p||[]).length,__ts:Date.now()})}}catch{}},[x,_]=s.useState(null),b=s.useRef(null),A=s.useRef(null),w=s.useRef(null),D=s.useRef(null),B=s.useRef(null),k=s.useRef({x:0,y:0}),N=s.useRef(null),I=s.useRef({dx:0,dy:0}),O=()=>{if(N.current!==null)return;const M=()=>{if(!b.current){N.current=null;return}N.current=requestAnimationFrame(M);const L=k.current,z=I.current||{dx:0,dy:0};b.current&&(b.current.style.transform=`translate3d(${L.x-z.dx}px, ${L.y-z.dy}px, 0)`)};N.current=requestAnimationFrame(M)},j=s.useRef(new Map),H=s.useRef(new Map),T=()=>{const M=new Map;return j.current.forEach((L,z)=>{L&&L.getBoundingClientRect&&M.set(z,L.getBoundingClientRect())}),M},K=M=>{const L=T();C(M);try{if(typeof i=="function"){const z=M.filter((R,E)=>R.text===d(p[E])).length;i({shuffled:M,score:z,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const z=T();M.forEach(R=>{const E=L.get(R.id),F=z.get(R.id),ae=j.current.get(R.id);if(!ae||!E||!F)return;const le=E.top-F.top;le&&(ae.style.transition="none",ae.style.transform=`translateY(${le}px)`,requestAnimationFrame(()=>{ae.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",ae.style.transform="";const se=()=>{ae.style.transition="",ae.removeEventListener("transitionend",se)};ae.addEventListener("transitionend",se)}))})})},W=(M,L)=>{try{try{L.dataTransfer?.setData("text/plain",String(M))}catch{}try{L.dataTransfer&&(L.dataTransfer.effectAllowed="move")}catch{}try{const z=document.createElement("div");z.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(z),L.dataTransfer?.setDragImage(z,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(z)}catch{}})}catch{}}catch{}_(M);try{const z=h[M],R=document.createElement("div");R.className="order-list__dragging-object order-list__dragging-object--visible",R.textContent=z&&z.text?z.text:"",document.body.appendChild(R),b.current=R;const E=j.current.get(z.id);let F=L.clientX||0,ae=L.clientY||0;try{if(E&&E.getBoundingClientRect){const te=E.getBoundingClientRect();F=te.left+te.width/2,ae=te.top+te.height/2}}catch{}const le=R.getBoundingClientRect(),se=le.width/2,oe=le.height/2;I.current={dx:se,dy:oe},R.style.transition="none",k.current={x:F,y:ae},R.style.transform=`translate3d(${F-se}px, ${ae-oe}px, 0)`,requestAnimationFrame(()=>{try{R.style.transition=""}catch{}O()});const Ce=te=>{const Y=te;k.current={x:Y.clientX,y:Y.clientY},O()};w.current=Ce,document.addEventListener("mousemove",Ce);const X=te=>{const Y=te;k.current={x:Y.clientX,y:Y.clientY},O()};A.current=X,document.addEventListener("dragover",X);try{L.dataTransfer?.setData("text/plain",String(M));try{L.dataTransfer?.setData("application/json",JSON.stringify({idx:M}))}catch{}}catch{}}catch{}},V=(M,L)=>{L.preventDefault();try{L.dataTransfer&&(L.dataTransfer.dropEffect="move")}catch{}try{B.current!==null&&(clearTimeout(B.current),B.current=null);const z=L.currentTarget&&L.currentTarget.closest?L.currentTarget.closest(".order-list__item"):null;if(z&&D.current!==z){if(D.current)try{D.current.classList.remove("drag-over")}catch{}try{z.classList.add("drag-over")}catch{}D.current=z}}catch{}},U=(M,L)=>{L.preventDefault();const z=L.dataTransfer?.getData("text/plain")||"",R=z?parseInt(z,10):x,E=M;if(typeof R!="number"||isNaN(R)||R===E){_(null),$(),re();return}const F=S0(h,R,E);K(F),_(null),re();try{if(typeof o=="function"&&y==="active"){const ae=F.filter((le,se)=>le.text===d(p[se])).length;o({shuffled:F,score:ae,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const ae=document.querySelectorAll(".order-list .order-list__item")[E];if(!ae)return;const le=ae.querySelector(".order-list__slot")||ae;try{le.classList.add("pulse"),le.offsetHeight,le.classList.add("to-dark");const se=()=>{le.classList.remove("pulse","to-dark"),le.removeEventListener("transitionend",se)};le.addEventListener("transitionend",se)}catch{}})}catch{}$()},re=()=>{if(b.current){try{document.body.removeChild(b.current)}catch{}b.current=null}A.current&&(document.removeEventListener("dragover",A.current),A.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),N.current!==null&&(cancelAnimationFrame(N.current),N.current=null)},P=()=>{_(null),$(),re()};s.useEffect(()=>()=>re(),[]);const $=()=>{try{if(B.current!==null&&(clearTimeout(B.current),B.current=null),D.current){try{D.current.classList.remove("drag-over")}catch{}D.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(M=>M.classList.remove("drag-over"))}catch{}};return s.useEffect(()=>{try{const M=Math.max(1,(h||[]).length);h.forEach((L,z)=>{const R=H.current.get(L.id);if(!R)return;let E=50;M>1&&(E=Math.round(z/(M-1)*100));try{R.style.setProperty("--marker-pos",E+"%")}catch{}})}catch{}},[h]),s.useEffect(()=>()=>{re(),B.current!==null&&(clearTimeout(B.current),B.current=null)},[]),t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:u,children:t.jsx("div",{className:"order-list",children:h.map((M,L)=>{const z=Math.max(1,(h||[]).length),R=z>1?Math.round(L/(z-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":y==="disabled","aria-disabled":y==="disabled",children:[y!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":R+"%"},ref:E=>{const F=H.current;E?F.set(M.id,E):F.delete(M.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:L+1})}):null,t.jsxs("div",{ref:E=>{const F=j.current;E?F.set(M.id,E):F.delete(M.id)},className:`order-list__draggable ${x===L?"dragging":""}`,"data-disabled":y==="disabled","aria-disabled":y==="disabled",tabIndex:y==="disabled"?-1:0,draggable:f,onDragStart:f?E=>W(L,E):void 0,onDragEnter:f?E=>V(L,E):void 0,onDragOver:f?E=>V(L,E):void 0,onDragLeave:f?()=>{try{B.current!==null&&clearTimeout(B.current),B.current=setTimeout(()=>{try{const E=document.querySelectorAll(".order-list .order-list__item");E&&E[L]&&(E[L].classList.remove("drag-over"),D.current===E[L]&&(D.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?E=>U(L,E):void 0,onDragEnd:f?P:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:M.text}),f?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(ie,{htmlType:"button",size:32,type:"dot",onClick:()=>g(L,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:L===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(ie,{htmlType:"button",size:32,type:"dot",onClick:()=>g(L,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:L===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},M.id)})})})}const Ey=8e3;function My(e,n){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.then(o,o),setTimeout(o,n)})}function dc({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:m}=de.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),C=s.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),y=p??3,f=(C||[]).slice(0,y);(C||[]).length>y&&console.warn(`TrainingStepCard: ${C.length} items passed but only ${y} shown`);const v=typeof e=="number"?e:-1,g=typeof n!="number"?"disabled":v<n?"done":v===n?"active":"disabled",[x,_]=s.useState(null),b=s.useRef([]),[A,w]=s.useState(!1),D=s.useRef(!0);s.useEffect(()=>(D.current=!0,()=>{D.current=!1}),[]);const B=s.useMemo(()=>C.map(j=>j?.id??j?.word??"").join("|"),[C]);s.useEffect(()=>{_(null)},[B]);const k=s.useRef(void 0);s.useEffect(()=>{const j=k.current;typeof j=="number"&&typeof n=="number"&&typeof e=="number"&&j>=e&&n<e&&_(null),k.current=n},[n,e]);const N=s.useCallback((j,H)=>{if(c)return;const T={item:j,index:H,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(g==="active"&&typeof o=="function")try{o(T)}catch{}},[c,i,g,o]),I=s.useCallback(async()=>{if(!(A||g==="disabled")){w(!0);try{for(let j=0;j<f.length&&D.current;j++){const H=b.current[j];H&&await My(H.play(),Ey)}}finally{w(!1)}}},[A,g,f.length]),O=s.useCallback((j,H)=>{if(g!=="active")return;_(H);const T={selectedValue:j.word||j.title||"",selectedIndex:H,item:j,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(g==="active"&&typeof o=="function")try{o(T)}catch{}},[i,g,o]);return t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:h,onDone:o,titleProps:{usePlayAllBtn:!d&&f.length>0,onPlayAll:I,playAllActive:A},children:t.jsx("div",{className:"training-step__cards",children:f.length===0?t.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):f.map((j,H)=>t.jsx(Yr,{ref:T=>{b.current[H]=T},item:j,disabled:g==="disabled",onPlayDone:()=>N(j,H),selectable:c,selected:c&&x===H,onSelect:c?()=>O(j,H):void 0,flipDelay:H*120,hideLabel:u,hideAudio:d},j&&j.id||H))})})}const Ly=160,$y={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function Ry(e,n){const a=$y[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}const pc=()=>{};function Bn(e){const n=s.useId();if(!("variant"in e)){const{label:g,sub:x,onClick:_,children:b,align:A="horizontal",icon:w}=e,D=B=>{_&&B.target===B.currentTarget&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),_())};return t.jsxs("div",{className:ve("panel-row",A==="vertical"?"panel-row--vertical":"",_?"panel-row--clickable":""),onClick:_,onKeyDown:_?D:void 0,role:_?"button":void 0,tabIndex:_?0:void 0,children:[w!=null&&t.jsx("div",{className:"panel-row__icon",children:w}),g!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:g}),x&&t.jsx("div",{className:"panel-row__sub caption-1",children:x})]}),t.jsx("div",{className:"panel-row__right",children:b})]})}if(e.variant==="description")return t.jsx("div",{className:"panel-row panel-row--block",children:t.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return t.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return t.jsx("div",{className:"panel-row panel-row--loading",children:t.jsx(ba,{size:28})});if(e.variant==="custom"&&!e.label)return t.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:o,onClick:i,required:l,error:c,align:u="horizontal",useFullWidth:d=!1,icon:p}=e,m=a==="button"?void 0:i;let h=null;const C=a==="toggle"?`panel-toggle-${n}`:void 0,y=c?`panel-error-${n}`:void 0;if(a==="toggle"){const g=e;h=t.jsx(al,{checked:g.checked,onChange:g.onChange,id:C})}else if(a==="segmented"){const g=e;h=t.jsx(On,{options:g.options,value:g.value,onChange:g.onChange,size:g.size??40,ariaLabel:r})}else if(a==="dropdown"){const g=e,x=g.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:g.dropdowns.map((_,b)=>t.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:t.jsx(Jt,{options:_.options,value:_.value,onChange:_.onChange,placeholder:_.placeholder,block:d,error:!!c,ariaDescribedBy:y,ariaLabel:_.ariaLabel??([r,_.placeholder].filter(Boolean).join(" ")||void 0)})},b))}):t.jsx(Jt,{options:g.options??[],value:g.value??"",onChange:g.onChange??pc,block:d,error:!!c,ariaLabel:r,ariaDescribedBy:y});h=c?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[x,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:c})]}):x}else if(a==="button"){const g=e;g.buttons?.length?h=t.jsx("div",{className:"panel-row__button-group",children:g.buttons.map((x,_)=>t.jsx(ie,{htmlType:"button",size:x.btnSize??40,variant:x.btnVariant??"default",disabled:x.disabled,onClick:x.onClick,children:x.label},_))}):h=t.jsx(ie,{htmlType:"button",size:g.btnSize??40,variant:g.btnVariant??"default",disabled:g.disabled,onClick:g.onClick,children:g.buttonLabel})}else if(a==="text"){const g=e;h=t.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:g.valueColor?{color:g.valueColor}:void 0,children:g.value})}else if(a==="input"){const g=e;h=t.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[t.jsx(Fn,{value:g.value,onChange:g.onChange??pc,onKeyDown:g.onKeyDown,onEnter:g.onEnter,placeholder:g.placeholder,inputMode:g.inputMode,readOnly:g.readOnly,disabled:g.disabled,type:g.type,autoComplete:g.autoComplete,maxLength:g.maxLength,showCount:g.showCount,multiline:g.multiline,rows:g.rows,fullWidth:d,error:c,ariaLabel:r,required:l}),g.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:g.helperText})]})}else a==="custom"&&(h=e.children);c&&a!=="input"&&a!=="dropdown"&&(h=t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[h,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:c})]}));const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,v=g=>{m&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),m())};return t.jsxs("div",{className:ve("panel-row",u==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?v:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,children:[p!=null&&t.jsx("div",{className:"panel-row__icon",children:p}),t.jsxs("div",{className:"panel-row__left",children:[C?t.jsxs("label",{htmlFor:C,className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}):t.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}),o&&t.jsx("div",{className:"panel-row__sub caption-1",children:o})]}),t.jsx("div",{className:"panel-row__right",children:h})]})}function mc(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function Py({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=de.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(o=>{const i=e[o],l=o==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return t.jsxs("div",{className:"panel-row__device-column",children:[t.jsxs("div",{className:"panel-row__device-head",children:[t.jsx("span",{className:"panel-row__device-side body-2b",children:l}),i&&n&&t.jsx(ie,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${l} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>n(o)})]}),i?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&t.jsx(lt,{size:"small",variant:vl(i.device),fill:"soft",label:Ry(i.device,r)}),mc(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:mc(i)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${i.wornYear}.${i.wornMonth}.${i.wornDay}`})})]}):t.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},o)})})}function Za({title:e,icon:n,disc:a,actions:r,size:o="medium",minHeight:i,maxWidth:l,className:c,scrollable:u,scrollbarGutter:d="auto",compactRows:p=!1,useBorder:m=!0,useBg:h=!0,useRowBorder:C=!0,labelWidth:y,form:f=!1,loading:v,empty:g,children:x}){const _=ve("panel",`panel--${o}`,f?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",h?"":"panel--no-bg",C?"":"panel--no-row-border",p?"panel--compact-rows":"",c),b={};return i!==void 0&&(b.minHeight=i),l!==void 0&&(b.maxWidth=typeof l=="number"?`${l}px`:l),y!==void 0&&(b["--panel-label-width"]=typeof y=="number"?`${y}px`:y),t.jsxs("div",{className:_,style:Object.keys(b).length?b:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:ve("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(Ue,{icon:n,label:typeof e=="string"?e:void 0,className:"panel__icon"}),t.jsxs("div",{className:"panel__title-group",children:[e!=null&&t.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&t.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&t.jsx("div",{className:"panel__actions",children:r})]}),v?t.jsx(Bn,{variant:"loading"}):g!=null&&s.Children.toArray(x).length===0?t.jsx(Bn,{variant:"empty",children:g}):u?t.jsx("div",{className:ve("panel__body--scroll",d==="stable"&&"panel__body--gutter-stable"),children:x}):x]})}function Iy({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function Fy(e){return[{label:e("training.noise.level.none","\uC5C6\uC74C"),value:0},{label:e("training.noise.level.weak","\uC57D\uD568"),value:1},{label:e("training.noise.level.medium","\uBCF4\uD1B5"),value:2},{label:e("training.noise.level.strong","\uAC15\uD568"),value:3},{label:e("training.noise.level.veryStrong","\uB9E4\uC6B0 \uAC15\uD568"),value:4}]}function hc(e){return[{label:e("training.noise.type.default","\uAE30\uBCF8"),value:"defaultNoise",icon:"party-popper"},{label:e("training.noise.type.street","\uAE38\uAC70\uB9AC"),value:"street",icon:"car"},{label:e("training.noise.type.buzz","\uC640\uAE00\uC640\uAE00"),value:"buzz",icon:"message-square-more"},{label:e("training.noise.type.restaurant","\uC2DD\uB2F9"),value:"restaurant",icon:"coffee"}]}Fy($t.t.bind($t)),hc($t.t.bind($t));const bo="none",Oy=.5,Hy=1.5,Vy=.25;function yo({title:e,valueLabel:n,value:a,min:r,max:o,step:i,tickStep:l,size:c,onChange:u}){return t.jsxs(Bn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(Cl,{value:a,onChange:u,min:r,max:o,step:i,size:c,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),t.jsx("div",{className:"noise-settings__value button-1",children:n})]})}function fc({anchorRect:e,onClose:n}){const{t:a}=de.useTranslation(),r=on("(max-width: 767px)")?40:24,o=Ga(),i=va(o?.settings??_a),l=o?.settings.type??"defaultNoise",c=o?.settings.enabled??!0,u=o?.playbackRate??1,d=o?.mainVolume??1,p=Math.round(d*100),m=s.useCallback(f=>{try{o?.setMainVolume(Math.max(0,Math.min(1,f/100)))}catch{}},[o]),h=s.useCallback(f=>{try{o?.setPlaybackRate(f)}catch{}},[o]),C=s.useCallback(f=>{const v=Math.min(Ua,Math.max(0,Math.round(f*10)/10));try{o?.setSettings({noiseRatio:v})}catch{}},[o]),y=s.useCallback(f=>{try{f===bo?o?.setSettings({enabled:!1}):o?.setSettings({type:f,enabled:!0})}catch{}},[o]);return t.jsx(wn,{anchorRect:e,offset:12,onClose:n,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:t.jsxs("div",{className:"noise-settings__header",children:[t.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),t.jsx(ie,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(Za,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(yo,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),t.jsx(yo,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:Oy,max:Hy,step:Vy,size:r,onChange:h}),t.jsx(Bn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(On,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:bo,label:a("training.noise.type.none","\uC5C6\uC74C")},...hc(a).map(f=>({key:f.value,label:f.label}))],value:c?l:bo,onChange:y})}),t.jsx(yo,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Ua,step:Ql,size:r,onChange:C})]})})}function Cc({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:o=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=de.useTranslation(),[d,p]=s.useState(!1),[m,h]=s.useState(null),[C,y]=s.useState(!1),f=s.useRef(null),v=s.useRef(null),g=Ga(),x=l<c-1,_=l===c-1,b=o===Math.max(0,i);s.useEffect(()=>{e||(p(!1),h(null))},[e]);const A=s.useCallback(()=>{p(!1),h(null)},[]),w=s.useCallback(()=>{if(d){p(!1),h(null);return}const k=f?.current?.getBoundingClientRect();k&&h(k),n?.(),p(!0)},[d,n]),D=s.useCallback(()=>{if(d){p(!1),h(null);return}const k=v?.current?.getBoundingClientRect();k&&h(k),n?.(),p(!0)},[d,n]),B=s.useCallback(()=>y(k=>!k),[]);return t.jsxs("div",{className:"pp-bottom",children:[t.jsxs("div",{className:"pp-bottom__left",children:[e?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pp-bottom__settings--desktop",children:t.jsx("div",{ref:f,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ie,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:w,selected:d,ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:v,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ie,{htmlType:"button",size:56,type:"dot",icon:"settings",onClick:D,selected:d,ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:B,selected:C,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&C&&t.jsxs("div",{className:"pp-bottom__meters",children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(Vr,{analyser:g?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),t.jsx(Vr,{analyser:g?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),t.jsxs("div",{className:"pp-bottom__right",children:[_&&t.jsx(ie,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!b}),x&&t.jsx(ie,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!b})]}),e&&d&&t.jsx(fc,{anchorRect:m,onClose:A})]})}function gc({title:e,subtitle:n,desc:a,depth:r,icon:o,wrapperStyle:i,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:m,onClose:h}){const{t:C}=de.useTranslation(),y=on("(max-width: 767px)"),f=Number.isInteger(p)?p:c||0,v=Number.isInteger(d)?d:u||0,g=m||h,x=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,b=typeof n=="string"?n.trim():n,A=!!(_||b),w=A?_||b:C("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),D=x||(_?n:void 0),B=y&&typeof D=="string"&&(D.includes(" \xB7 ")||D.includes(" / "))?D.split(/\s[·/]\s/).pop():D,k=s.useMemo(()=>{const N=i&&typeof i=="object"?{...i}:{};return!("width"in N)&&!("height"in N)&&(N.width="40px",N.height="40px"),N},[i]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[g?t.jsx(ie,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:C("common.back","\uB4A4\uB85C"),onClick:g,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:o?t.jsx(wl,{icon:o,label:e,tooltip:l,wrapperStyle:k}):null}),t.jsxs("div",{className:"pp-title__text",children:[B?t.jsx("span",{className:"pp-title__depth caption-1",children:B}):null,t.jsx("span",{className:`pp-title__title h2${A?"":" pp-title__title--empty"}`,children:w}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(yl,{max:Math.max(0,v??0),index:Math.max(0,f??0)})]})}function zy(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Wy(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(n=>typeof n=="string"?n.split("|").map(a=>a.trim()).filter(Boolean):n||n===0?[String(n)]:[]):typeof e=="string"?e.split("|").map(n=>n.trim()).filter(Boolean):[String(e)]}const bc=(e,n)=>{if(!n)return n;const a=typeof $t?.t=="function"?$t.t(e,{defaultValue:n}):void 0;return typeof a=="string"&&a?a:n};function yc(e,n,a){const r=e,o=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",i=Is().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:o,label:r?.title||o,depth:n,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?bc(`topic.${i.key}`,i.label):void 0,l?bc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function vo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function qy(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function Uy({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:o=[],emptyMessage:i,buildResults:l,metaPatch:c}){const u=yc(n,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=n?.id||n?.title||o.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:o,emptyMessage:i,buildResults:l}}function Gy(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function Ky(e){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return n.selectedValues;if(n.selectedValue!==void 0)return n.selectedValue;if(n.selectedIndex!==void 0)return n.selectedIndex;if(n.value!==void 0)return n.value}return e}function Yy(e,n=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(n))return String(n[e]??"");if(typeof e=="string")return e}function vc(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function Zy(e,n,a,r){return vc(e,n*a+r)}function Xy({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const o=e;if(Array.isArray(o.selectedValues))return r.every(i=>o.selectedValues.includes(i))&&o.selectedValues.every(i=>r.includes(i));if(typeof o.correct=="boolean")return o.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(o=>String(o)===String(a[n]));if(typeof n<"u")return r.some(o=>String(o)===String(n))}}function Jy(e){return e?Array.isArray(e.items)?e.items.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const xc=s.createContext(null);function Qy(){const e=s.useContext(xc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function e5({index:e,stepIndex:n,isLast:a=!1,title:r,choices:o=[],onDone:i,onChange:l}){const{t:c}=de.useTranslation(),u=typeof e=="number"?e:-1,d=typeof n!="number"?"disabled":u<n?"done":u===n?"active":"disabled",[p,m]=s.useState(()=>o.map(()=>null)),h=JSON.stringify(o),C=o.length;s.useEffect(()=>{m(Array.from({length:C},()=>null))},[h]);const y=s.useRef(void 0);s.useEffect(()=>{const x=y.current;typeof x=="number"&&typeof n=="number"&&typeof e=="number"&&x>=e&&n<e&&m(Array.from({length:C},()=>null)),y.current=n},[n,e,C]);const f=s.useMemo(()=>p.filter(x=>x!==null).length+1,[p]),v=s.useCallback(x=>{if(d!=="active")return;const _=p;let b;if(_[x]!=null){const w=_[x];b=_.map(D=>D!==null&&D>=w?null:D)}else b=[..._],b[x]=f;m(b);const A={selectedOrder:b,words:o,__ts:Date.now()};try{typeof l=="function"&&l(A)}catch{}if(_[x]==null&&b.length>0&&b.every(w=>w!==null))try{typeof i=="function"&&i(A)}catch{}},[d,p,f,l,i,o]),g=r??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:g,onDone:i,children:t.jsx("div",{className:"training-step__cards",children:o.map((x,_)=>t.jsx(Yr,{item:{word:x},disabled:d==="disabled",selectable:!0,selected:p[_]!==null,orderRank:p[_],onSelect:()=>v(_),flipDelay:_*120,hideLabel:!1,hideAudio:!0},`${x}-${_}`))})})}function Xa(e){return null}Xa.__isTrainingPage=!0;function ea(e,n){const a=Qy();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof n=="number"?e===n-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function _c({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l}=ea(e,n);return t.jsx(Co,{...a,index:r,stepIndex:o,isLast:i,onDone:l})}function wc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=ea(e,n);return t.jsx(ho,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function kc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=ea(e,n);return t.jsx(fo,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function Ac({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=ea(e,n);return t.jsx(go,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function Nc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=ea(e,n);return t.jsx(dc,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function t5({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=ea(e,n);return t.jsx(e5,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function xo(...e){for(const n of e)if(typeof n=="string"){const a=n.trim();if(a.length)return a}else{if(typeof n=="number"||typeof n=="boolean")return String(n);if(Array.isArray(n)&&n.length)return n.join(", ");if(n&&typeof n=="object"){const a=n,r=[a.text,a.label,a.value];for(const o of r){if(typeof o=="string"&&o.trim().length)return o.trim();if(typeof o=="number"||typeof o=="boolean")return String(o)}}}return null}function n5(e){return xo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Bc(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const n=xo(e?.status,e?.result,e?.judge,e?.note);if(n){const a=n.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function Dc(e){const{score:n,contextsLength:a,results:r=[],subtitle:o,onReplay:i,onClose:l,inline:c=!1}=e||{},{t:u}=de.useTranslation();s.useEffect(()=>{const f=a??0;if(n!=null&&f>0&&n/f>.5){const v=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(v)}},[n,a]);const d=s.useCallback(f=>{const v=Bc(f),g=xo(f?.wording,f?.label);return v===!0?{variant:"main",label:g??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:v===!1?{variant:"danger",label:g??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:g??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),p=a??0,m=n??0,h=s.useMemo(()=>Array.isArray(r)?r:[],[r]),C=s.useMemo(()=>h.map(f=>{const v=f??{},g=n5(v)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:x,label:_}=d(v),b=Array.isArray(v.corrects)?v.corrects:[],A=b.length?b.join(", "):v.answer!=null&&v.answer!==""?String(v.answer):null,w=typeof v.selectedText=="string"?v.selectedText:null,D=Bc(v)===!0;return{problem:g,variant:x,label:_,answer:A,selectedText:w,isCorrect:D}}),[h,d,u]),y=s.useMemo(()=>C.some(f=>f.answer!==null||f.selectedText!==null),[C]);return t.jsx(Nn,{onClose:l,closeOnBackdrop:!1,inline:c,ariaLabel:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:f,closeWithAnimation:v})=>t.jsxs("div",{className:"trp-actions",children:[t.jsx(ie,{htmlType:"button",size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>f(i)}),t.jsx(ie,{htmlType:"button",size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:v})]}),children:()=>t.jsxs("div",{className:"trp-result is-on",children:[t.jsxs("header",{className:"trp-result__head",children:[t.jsx("p",{className:"trp-result__eyebrow caption-1",children:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),o&&t.jsx("p",{className:"trp-result__subtitle body-3",children:o}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:m,total:p}),children:[t.jsx("span",{className:"trp-score__big",children:m}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:p})]})})]}),C.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${y?" result-table--answer":""}`,role:"table","aria-label":u("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[t.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[t.jsx("span",{role:"columnheader",children:u("common.col.problem","\uBB38\uC81C")}),y&&t.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),C.map((f,v)=>t.jsxs("div",{className:"result-table__row",role:"row",children:[t.jsxs("div",{className:"trp-row__problem",children:[t.jsx("span",{className:"trp-row__no caption-1",children:String(v+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:f.problem})]}),y&&t.jsxs("div",{className:"trp-row__answers",children:[f.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:f.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${f.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${f.isCorrect?"is-correct":"is-wrong"}`,children:f.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(lt,{variant:f.variant,label:f.label,fill:"soft",minWidth:80})})]},v))]})})]})})}function a5(e){s.useEffect(()=>{if(!e)return;const n=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,o=0,i=!1;const l=()=>{const p=Date.now();a==null&&(a=p),r==null&&(r=p)},c=()=>{r!=null&&(o+=Date.now()-r,r=null)};n()&&l();const u=()=>{i||(c(),!(a==null||o<5e3)&&(i=!0,M0({trainingType:e,startedAt:new Date(a).toISOString(),endedAt:new Date(a+o).toISOString()})))},d=()=>{n()?l():c()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",u),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",u),u()}},[e])}function _o(e,n){return e&&e.id||`page-${n??0}`}function wo(e,n){return e&&e.key||`step-${n??0}`}function Ja(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function r5(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const Sc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),o5=e=>t.jsx(Dc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function s5(e){const{scenario:n,title:a,subTitle:r,depth:o,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:m,onBack:h,onComplete:C,onNext:y,onSettings:f,useNoiseSetting:v=!0,children:g,ariaLabel:x,label:_,buildResults:b,onResult:A,typeKey:w,entryPoint:D,dailyTotal:B,itemRef:k,renderResultPopup:N,noiseOverride:I}=e;a5(w&&!Sc.has(w)?w:"");const O=s.useRef(0);s.useEffect(()=>{O.current=Date.now()},[]);const{t:j}=de.useTranslation(),H=A,T=!!n,K=n?.id||null,W=n?.meta||{},V=Array.isArray(n?.pages)?n.pages:[],U=Array.isArray(g)||s.isValidElement(g)&&typeof g!="function"?s.Children.toArray(g).filter(s.isValidElement):[],re=U.length>0,P=ne=>ne===Xa||ne?.__isTrainingPage===!0,$=re&&U.some(ne=>P(ne.type)),M=$?U.filter(ne=>P(ne.type)).map((ne,pe)=>{const J=ne.props||{};return{id:`children-page-${pe}`,steps:s.Children.toArray(J.children).filter(s.isValidElement),pageTop:J.pageTop||J.top||null,pageBottom:J.pageBottom||J.bottom||null}}):[{id:"children-page-0",steps:U}],L=re&&!T&&typeof g!="function",z=L?Math.max(1,M.length):0;s.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),s.useEffect(()=>{if(typeof document>"u"||!document.body)return;const ne=document.body;return ne.dataset.ihabTrainingPopupCount=String(Number(ne.dataset.ihabTrainingPopupCount||"0")+1),ne.classList.add("ihab-training-popup-open"),()=>{const pe=Number(ne.dataset.ihabTrainingPopupCount||"1")-1;pe>0?ne.dataset.ihabTrainingPopupCount=String(pe):(delete ne.dataset.ihabTrainingPopupCount,ne.classList.remove("ihab-training-popup-open"))}},[]),s.useEffect(()=>{if(!(typeof document>"u"||!document.body))return p4()},[]);const[R,E]=s.useState({..._a,enabled:!1}),F=s.useRef(R);s.useEffect(()=>{F.current=R},[R]);const ae=s.useRef(I),le=s.useRef(!1),se=s.useRef(null);s.useEffect(()=>{let ne=!1;const pe=J=>{if(ne)return;le.current=!0;const me=J?xa({..._a,enabled:!1},J):{..._a},_e=se.current;se.current=null;const Ne=_e?xa(me,_e):me;F.current=Ne,E(Ne),_e&&!ae.current&&Ms(Ne),Ta(Ne);const Ie=ae.current;if(Ie){const Z=typeof Ie=="function"?Ie(Ne):Ie,fe=xa(Ne,Z);F.current=fe,E(fe),Ta(fe)}};return P0().then(pe),()=>{ne=!0}},[]);const[oe,Ce]=s.useState(null),[X,te]=s.useState(null),Y=s.useCallback((ne,pe)=>{ne==="main"?Ce(pe):te(pe)},[]),ge=s.useCallback(ne=>{const pe=xa(F.current,ne);if(F.current=pe,E(pe),!le.current){se.current={...se.current??{},...ne},Ta(pe);return}ae.current||Ms(pe),Ta(pe)},[]),xe=R.mainSpeed,Te=R.mainVolume,ue=s.useCallback(ne=>ge({mainSpeed:ne}),[ge]),be=s.useCallback(ne=>ge({mainVolume:ne}),[ge]),Ae=s.useMemo(()=>({settings:R,setSettings:ge,registerAnalyser:Y,mainAnalyser:oe,noiseAnalyser:X,playbackRate:xe,setPlaybackRate:ue,mainVolume:Te,setMainVolume:be}),[R,ge,Y,oe,X,xe,ue,Te,be]),Q=s.useRef(null),[ee,ke]=s.useState(0),[De,Oe]=s.useState("center"),[Le,We]=s.useState(!1),Re=s.useRef(!1),et=s.useRef(null),Ke=s.useCallback(ne=>{Re.current||(Re.current=!0,We(!0),et.current=setTimeout(()=>{try{ne()}catch{Re.current=!1,We(!1)}},Ly))},[]);s.useEffect(()=>()=>{et.current&&clearTimeout(et.current)},[]);const Ge=s.useRef(h);s.useEffect(()=>{Ge.current=h}),s.useEffect(()=>{const ne=Q.current,pe=document.activeElement;if($r(ne,pe),ne){const J=Array.from(ne.querySelectorAll(Ln)).filter(me=>!me.closest('[aria-hidden="true"]'))[0];if(J)try{J.focus()}catch{}}return()=>{const J=document.activeElement;if(!J||J===document.body||ne&&ne.contains(J))try{Rr(pe)?.focus?.()}catch{}}},[]),s.useEffect(()=>$n(()=>Ke(()=>{const ne=Ge.current;typeof ne=="function"&&ne()})),[Ke]),wr(Q,!0);const[ye,He]=s.useState(!1),Ee=s.useRef(!1),[Pe,qe]=s.useState(null),Ye=s.useRef(0),ct=()=>{Ye.current+=1,qe(null)},[ut,dt]=s.useState(""),[Xe,tt]=s.useState(()=>Ja()),Ve=s.useRef(typeof u=="number"?u:null);s.useEffect(()=>{!T&&!L||(tt(Ja()),ct())},[T,K,L]),s.useEffect(()=>{L&&tt(ne=>{const pe=Math.max(0,Math.min(ne.pageIndex,Math.max(0,z-1)));return pe!==ne.pageIndex?{...ne,pageIndex:pe,stepIndex:0}:ne})},[L,z]);const nt=L?Math.max(0,Math.min(Xe.pageIndex,z-1)):0,Je=L?M[nt]:null,rt=L&&Je&&Array.isArray(Je.steps)?Je.steps:[],Me=T?Xe.pageIndex:L?nt:typeof u=="number"?u:0,Qe=T?V[Math.max(0,Math.min(Xe.pageIndex,Math.max(0,V.length-1)))]:null,yt=T&&Qe&&Array.isArray(Qe.steps)?Qe.steps:[],Gt=T?yt.length:L?rt.length:typeof m=="number"?m:0,mt=T||L?Math.max(0,Math.min(Xe.stepIndex,Math.max(0,Gt))):typeof p=="number"?p:0,_t=T?V.length:L?z:typeof d=="number"?d:0;s.useLayoutEffect(()=>{const ne=Ve.current;if(typeof Me=="number"&&ne!==null&&Me!==ne&&Me>ne)try{dt(j("training.problemNotice",{n:Me+1}))}catch{}Ve.current=typeof Me=="number"?Me:Ve.current},[Me,u,j]),s.useLayoutEffect(()=>{const ne=Q.current;if(!ne)return;const pe=()=>ne.querySelector(".page-popup__scroll");let J=null,me=null,_e=null;const Ne=$e=>{const je=pe();if(!je)return;const ze=je.scrollHeight<=je.clientHeight;if(Oe(ze?"center":"top"),$e&&!Ee.current){Ee.current=!0;try{He(!0)}catch{}try{fe.disconnect()}catch{}}},Ie=()=>{J!==null&&cancelAnimationFrame(J),J=requestAnimationFrame(()=>{me!==null&&clearTimeout(me),me=setTimeout(()=>Ne(!0),60)})},Z=()=>{_e!==null&&cancelAnimationFrame(_e),_e=requestAnimationFrame(()=>Ne(!1))};Ie(),window.addEventListener("resize",Z);const fe=new MutationObserver(Ie);fe.observe(ne,{childList:!0,subtree:!0,attributes:!0});const Be=setTimeout(()=>{Ee.current||Ne(!0)},400);return()=>{window.removeEventListener("resize",Z),J!==null&&cancelAnimationFrame(J),me!==null&&clearTimeout(me),_e!==null&&cancelAnimationFrame(_e),clearTimeout(Be);try{fe.disconnect()}catch{}}},[Q]);const zt=s.useCallback(ne=>{Q.current&&(Q.current._childOnNext=ne)},[]),Kt=s.useCallback(ne=>{Q.current&&(Q.current._childOnResult=ne)},[]),wt=s.useCallback((ne,pe,J)=>{tt(me=>{const _e=me.answersByPage[ne]||{},Ne=_e[pe],Ie=vo(J),Z=vo(Ne);return Ne&&Z>Ie?me:{...me,answersByPage:{...me.answersByPage,[ne]:{..._e,[pe]:J}}}})},[tt]),ht=s.useCallback((ne,pe,J)=>{const me=_o(Qe,Me),_e=wo(ne,pe);wt(me,_e,J)},[Qe,Me,wt]),Tt=s.useCallback((ne,pe,J)=>{const me=_o(Qe,Me),_e=wo(ne,pe);wt(me,_e,J),!J?.allowChange&&ne?.autoAdvance!==!1&&tt(Ne=>({...Ne,stepIndex:Math.max(Ne.stepIndex,pe+1)}))},[Qe,Me,wt,tt]),It=s.useCallback((ne,pe)=>{const J=Je?.id||`children-page-${Me??0}`,me=typeof pe=="number"?pe:mt??0,_e=`step-${me}`;wt(J,_e,ne),ne?.allowChange||tt(Ne=>({...Ne,stepIndex:Math.max(Ne.stepIndex,me+1)}))},[Je,Me,mt,wt,tt]),yn=s.useCallback((ne,pe)=>{const J=Je?.id||`children-page-${Me??0}`,me=`step-${typeof pe=="number"?pe:mt??0}`;wt(J,me,ne)},[Je,Me,mt,wt]),Sn=L?{currentPageIndex:Me??0,currentStepIndex:mt??0,totalStepsInPage:rt.length,handleStepDone:It,handleStepChange:yn}:null,at=async()=>{const ne=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:V,flowState:Xe,answersByPage:Xe.answersByPage})):null;return typeof H=="function"&&await Promise.resolve(H(ne))||ne},Wt=async()=>{const ne=Je?.id||`children-page-${Xe.pageIndex}`,pe=Xe.answersByPage[ne]||{},J=$?(()=>{const Ne={};let Ie=0;return M.forEach(Z=>{const fe=Xe.answersByPage[Z.id]||{},Be=Array.isArray(Z.steps)?Z.steps.length:0;for(let $e=0;$e<Be;$e+=1){const je=fe[`step-${$e}`];typeof je<"u"&&(Ne[`step-${Ie+$e}`]=je)}Ie+=Be}),Ne})():pe;if(typeof b=="function"){const Ne=await Promise.resolve(b(J,{pageAnswers:pe,answersByPage:Xe.answersByPage,pages:M,currentPageId:ne}));return typeof H=="function"&&await Promise.resolve(H(Ne))||Ne}const me=Object.entries(pe).map(([Ne,Ie],Z)=>({index:Z,key:Ne,payload:Ie})),_e={results:me,answers:me,score:0};return typeof H=="function"&&await Promise.resolve(H(_e))||_e},en=()=>{const ne=++Ye.current,pe=()=>ne!==Ye.current;try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(T){const _e=at();qe({});const Ne=_e;Promise.resolve(Ne).then(Ie=>{pe()||qe(Ie||{isEmpty:!0})}).catch(Ie=>{!pe()&&qe({isEmpty:!0})});return}if(L){const _e=Wt();qe({});const Ne=_e;Promise.resolve(Ne).then(Ie=>{pe()||qe(Ie||{isEmpty:!0})}).catch(Ie=>{!pe()&&qe({isEmpty:!0})});return}const J=Q.current&&Q.current._childOnResult,me=_e=>{try{return _e?_e():void 0}catch{return}};if(typeof J=="function"){const _e=me(J);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:pn&&pn.tagName.toUpperCase()==="SCRIPT"&&pn.src||new URL("components.cjs.js",document.baseURI).href}catch{}_e&&typeof _e.then!="function"?qe(_e):qe(_e&&typeof _e.then=="function"?{}:{}),Promise.resolve(_e).then(Ne=>{Ne&&!pe()&&qe(Ne)}).catch(Ne=>{});return}if(typeof H=="function"){const _e=me(H);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:pn&&pn.tagName.toUpperCase()==="SCRIPT"&&pn.src||new URL("components.cjs.js",document.baseURI).href}catch{}_e&&typeof _e.then!="function"?qe(_e):qe(_e&&typeof _e.then=="function"?{}:{}),Promise.resolve(_e).then(Ne=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:pn&&pn.tagName.toUpperCase()==="SCRIPT"&&pn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ne&&!pe()&&qe(Ne)}).catch(Ne=>{console.error("viewResults external handler failed",Ne)});return}},vt=()=>{if(T){if(typeof Me=="number"&&typeof _t=="number"&&Me<_t-1){tt(pe=>({...pe,pageIndex:pe.pageIndex+1,stepIndex:0}));return}return en()}if(L){const pe=rt.length;if(typeof mt=="number"&&mt<pe-1){tt(J=>({...J,stepIndex:J.stepIndex+1}));return}if(typeof Me=="number"&&typeof _t=="number"&&Me<_t-1){tt(J=>({...J,pageIndex:J.pageIndex+1,stepIndex:0}));return}return en()}if(typeof y=="function"){try{y()}catch{}return}const ne=Q.current&&Q.current._childOnNext;if(typeof ne=="function"){try{ne()}catch{}return}},Ft=T?W.title||W.label||x||j("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(o)?o[o.length-1]:void 0)||x||j("common.popup","\uD31D\uC5C5"),tn=T?W.title??W.label??Ft:a??_??Ft,nn=(ne,pe)=>{const J=_o(Qe,Me),me=wo(ne,pe),_e=Xe.answersByPage[J]?.[me],Ne=r5(ne,{page:Qe,pageIndex:Me,step:ne,stepIndex:pe,storedPayload:_e,answersByPage:Xe.answersByPage,flowState:Xe}),Ie={key:me,index:pe,stepIndex:mt,isLast:pe===yt.length-1};switch(ne?.type){case"listen":return t.jsx(Co,{...Ie,...Ne,onDone:Z=>Tt(ne,pe,Z)});case"confirm":return t.jsx(ho,{...Ie,...Ne,onDone:Z=>Tt(ne,pe,Z),onChange:Z=>ht(ne,pe,Z)});case"confirmWithText":return t.jsx(fo,{...Ie,...Ne,onDone:Z=>Tt(ne,pe,Z),onChange:Z=>ht(ne,pe,Z)});case"orderList":return t.jsx(go,{...Ie,...Ne,onDone:Z=>Tt(ne,pe,Z),onChange:Z=>ht(ne,pe,Z)});default:return null}},ln=s.useRef(void 0);s.useEffect(()=>{const ne=ln.current;if(ln.current=Me,ne===void 0||ne===Me||!Ha())return;const pe=Q.current;if(!pe)return;const J=document.activeElement;if(!(!J||J===document.body||!pe.contains(J)||J.disabled===!0))return;const me=pe.querySelector(`.training-steps ${Ln.split(", ").join(", .training-steps ")}`)??Array.from(pe.querySelectorAll(Ln)).find(_e=>!_e.closest('[aria-hidden="true"]'));try{me?.focus()}catch{}},[Me]);const cn=T?V.length>0?t.jsx("div",{className:"training-steps",children:yt.map((ne,pe)=>nn(ne,pe))},`replay-${ee}`):t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||j("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Yt=L?t.jsxs(xc.Provider,{value:Sn,children:[Je?.pageTop?t.jsx("div",{className:"training-page-top",children:Je.pageTop}):null,t.jsx("div",{className:"training-steps",children:rt.map((ne,pe)=>{const J=ne;return s.cloneElement(J,{...J.props,_stepIndex:pe,_totalSteps:rt.length,_stepKey:`step-${pe}`,_pageIndex:Me})})},`replay-${ee}`),Je?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:Je.pageBottom}):null]}):null,qt=s.useCallback(()=>{let ne;if(w){const pe=Pe,J=pe?.results||pe?.answers||[],me=Array.isArray(J)&&J.length>0?J.length:null,_e=Array.isArray(J)?J.filter(Ie=>Ie?.correct===!0||Ie?.isCorrect===!0||Ie?.score===1||Ie?.heard===!0||Ie?.judgement===!0).length:null,Ne=me!=null?_e:null;L0({items:R0(J),category:Sc.has(w)?"sentence":"word",trainingType:w,entryPoint:D??"sentence",itemRef:k??null,correct:Ne,total:me,score:typeof pe?.score=="number"?pe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-O.current)/1e3)),dailyTotal:B??null}),ne={correct:Ne,total:me}}ct(),Ke(()=>{typeof C=="function"&&C(ne),typeof h=="function"&&h()})},[C,h,w,D,B,k,Pe,qe,Ke]),gt=s.useCallback(()=>dt(""),[dt]),an=s.useCallback(()=>{Ke(()=>{typeof h=="function"&&h()})},[h,Ke]),Ot=t.jsxs("div",{className:`page-popup${Le?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Ft,children:[t.jsxs("div",{ref:Q,className:`page-popup__panel ${ye?"":"page-popup__panel--measuring"} ${De==="center"?"page-popup__panel--center":De==="top"?"page-popup__panel--top":""}`,children:[t.jsx(gc,{title:tn,subtitle:T?W.subtitle||W.label:Array.isArray(o)?o.join(" / "):void 0,desc:T?void 0:r,depth:T?W.depth:o,icon:T?W.icon:i,wrapperStyle:T?W.wrapperStyle:l,iconTooltip:T?W.iconTooltip:c,progressMax:_t,progressIndex:Me,pageIndex:Me,pageCount:_t,onBack:an,onClose:an}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${De==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:L?Yt:T?cn:typeof g=="function"?g({registerOnNext:zt,registerOnResult:Kt,panelRef:Q,setResultOverlay:qe}):g})}),t.jsx(Cc,{onSettings:f,onNext:vt,onResult:en,useNoiseSettingBtn:!!(T?W.useNoiseSetting??!0:v),stepIndex:mt,stepCount:Gt,pageIndex:Me,pageCount:_t})]}),Pe&&!Pe.isEmpty&&(N??o5)({score:Pe.score,results:Pe.results||Pe.answers||[],contextsLength:Pe.results?Pe.results.length:Pe.answers?Pe.answers.length:0,onReplay:()=>{if(O.current=Date.now(),ct(),ke(ne=>ne+1),T){if(tt(Ja()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(L){tt(Ja());return}try{const ne=Q.current&&Q.current._childOnResult;typeof ne=="function"&&ne({replay:!0})}catch{}},onClose:qt}),Pe?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:t.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"page-popup__empty",children:j("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(ie,{htmlType:"button",variant:"main",size:48,onClick:qt,label:j("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(Kn,{message:ut,position:"top",onClose:gt})]}),jt=t.jsx(io.Provider,{value:Ae,children:Ot});return typeof document<"u"&&document.body?Ut.createPortal(jt,document.body):jt}const Dn=s5;Dn.Page=Xa,Dn.ListenStep=_c,Dn.ConfirmStep=wc,Dn.ConfirmWithTextStep=kc,Dn.OrderListStep=Ac,Dn.CardStep=Nc,Dn.CardOrderStep=t5;function i5({label:e,homonum:n}){const a=Wn()?.(e,n)??"",{imgRef:r,loading:o,hasImage:i,onLoad:l,onError:c}=Kr(a);return i?t.jsxs("div",{className:"tooltip-word-image__cell",children:[o&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:o?0:1},onLoad:l,onError:c})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function Tc({words:e,anchorRect:n}){const a=s.useRef(null),[r,o]=s.useState(null);return s.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,c=window.innerWidth;let u=n.left+n.width/2-i/2,d=n.top-l-8;d<8&&(d=n.bottom+8),u=Math.max(8,Math.min(u,c-i-8)),o({left:u,top:d})},[n]),!n||e.length===0?null:Ut.createPortal(t.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:t.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>t.jsx(i5,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const l5=new Intl.Collator("ko");function c5({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:o,groups:i,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:m,className:h,emptyHint:C,sectionType:y="page",disc:f,notice:v}){const{t:g,i18n:x}=de.useTranslation(),_=x.language?.startsWith("ko")??!1,{anchorRect:b,openAt:A,close:w}=Ma(),[D,B]=s.useState(null),k=s.useCallback(()=>{w(),B(null)},[w]);_2(k,!!D);const N=(r??"").trim(),I=/^[^,[\]\s]+$/.test(N)?N:"",O=I.length>0,[j,H]=s.useState(()=>O?"match":"ganada"),[T,K]=s.useState("50"),[W,V]=s.useState(1),[U,re]=s.useState(O);U!==O&&(re(O),H(O?"match":"ganada"));const P=j==="match"&&!O?"ganada":j,$=s.useMemo(()=>[...O?[{value:"match",label:g("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:g("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:g("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:g("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:g("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:g("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:g("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[g,O]),M=s.useMemo(()=>["10","25","50","100"].map(ue=>({value:ue,label:g("wordSearch.pageSize",{count:Number(ue),defaultValue:`${ue}\uAC1C\uC529 \uBCF4\uAE30`})})),[g]),L=ue=>ue.words[0],z=s.useMemo(()=>{const ue=[...I].length,be=g0(I),Ae=new Map;return Q=>{let ee=Ae.get(Q);return ee===void 0&&(ee=be((Q.words[0]?.label??"").slice(0,ue))?0:1,Ae.set(Q,ee)),ee}},[I]),R=s.useCallback((ue,be)=>{const Ae=ke=>L(ke)?.label??"",Q=ke=>L(ke)?.syllables??[...Ae(ke)].length,ee=ke=>{const De=parseInt(L(ke)?.grade??"",10);return Number.isFinite(De)?De:999};switch(P){case"match":return z(ue)-z(be)||l5.compare(Ae(ue),Ae(be));case"ganada":return Ae(ue).localeCompare(Ae(be),"ko");case"ganada_desc":return Ae(be).localeCompare(Ae(ue),"ko");case"syllable":return Q(ue)-Q(be)||Ae(ue).localeCompare(Ae(be),"ko");case"syllable_desc":return Q(be)-Q(ue)||Ae(ue).localeCompare(Ae(be),"ko");case"grade":return ee(ue)-ee(be)||Ae(ue).localeCompare(Ae(be),"ko");case"grade_desc":return ee(be)-ee(ue)||Ae(ue).localeCompare(Ae(be),"ko");default:return 0}},[P,z]),E=s.useMemo(()=>o.slice().sort(R),[o,R]),F=Number(T)||10,ae=s.useMemo(()=>(i??[]).flatMap(ue=>ue.items.slice().sort(R).map(be=>({item:be,label:ue.label}))),[i,R]),le=i?ae.length:E.length,se=Math.max(1,Math.ceil(le/F)),oe=Math.min(W,se),Ce=s.useMemo(()=>E.slice((oe-1)*F,oe*F),[E,oe,F]),X=s.useMemo(()=>{if(!i)return null;const ue=ae.slice((oe-1)*F,oe*F),be=new Map;for(const{item:Ae,label:Q}of ue)be.has(Q)||be.set(Q,[]),be.get(Q).push(Ae);return[...be.entries()].map(([Ae,Q])=>({label:Ae,items:Q}))},[i,ae,oe,F]);s.useEffect(()=>{V(1)},[j,T,le,r]);const te=le>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(Jt,{size:40,options:$,value:P,onChange:H,ariaLabel:g("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(Jt,{size:40,options:M,value:T,onChange:K,ariaLabel:g("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(Ra,{page:oe,totalPages:se,onChange:V})]}):void 0,Y=ue=>{c&&c(ue)},ge=n!==void 0&&a?t.jsxs(t.Fragment,{children:[g("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),g("wordSearch.resultTitleSuffix",{unit:_?N0(a):a})]}):void 0,xe=n!==void 0&&n>0&&u!==void 0&&a?g("wordSearch.resultDisc",{unit:_?D0(a):a,max:u,selected:l.length}):void 0,Te=f??(v?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"word-search-result-block__notice",children:v}),xe?t.jsx("span",{className:"word-search-result-block__disc",children:xe}):null]}):xe);return t.jsxs(Yn,{type:y,icon:e,title:ge,action:te,disc:Te,className:ve("word-search-result-block",h),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:o.length===0)&&t.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[t.jsx("p",{className:"word-search-result-block__empty body-3",children:g("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),C&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:C})]}),i?(X??[]).map(ue=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:ue.items.map(be=>{const Ae=l.includes(be.id);return t.jsx("div",{onMouseEnter:Q=>{A(Q.currentTarget),B(be.words)},onMouseLeave:k,children:t.jsx(ie,{htmlType:"button",size:"word",align:"grid",label:be.words.map(Q=>Q.label),subLabel:be.words.map(Q=>Q.subLabel).filter(Boolean).length>0?be.words.map(Q=>Q.subLabel):void 0,selected:Ae,onClick:()=>Y(be.id),minWidth:200})},be.id)})})},ue.label)):t.jsx("div",{className:"word-search-result-block__items",children:Ce.map(ue=>{const be=l.includes(ue.id);return t.jsx("div",{onMouseEnter:Ae=>{A(Ae.currentTarget),B(ue.words)},onMouseLeave:k,children:t.jsx(ie,{htmlType:"button",size:"word",align:"grid",label:ue.words.map(Ae=>Ae.label),subLabel:ue.words.map(Ae=>Ae.subLabel).filter(Boolean).length>0?ue.words.map(Ae=>Ae.subLabel):void 0,selected:be,onClick:()=>Y(ue.id),minWidth:200})},ue.id)})}),D&&b&&t.jsx(Tc,{words:D,anchorRect:b})]}),se>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(Ra,{page:oe,totalPages:se,onChange:V})}),(d||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[d&&t.jsx(ie,{htmlType:"button",size:"56",type:"bar",label:g("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),p&&t.jsx("div",{onClick:l.length===0?m:void 0,children:t.jsx(ie,{htmlType:"button",size:"56",type:"bar",variant:"main",label:g("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function u5(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,o=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:o}})}function d5({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:o=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:m,titleIcon:h,disc:C,showInfoButton:y=!1,onClearPhoneme:f,onSearch:v,onSearchEmpty:g,searchDisabled:x=!1,searchLabel:_,searchChecking:b=!1,pairMode:A=!1,sectionType:w="page",beforeSearchContent:D,beforeContent:B,afterContent:k,hideCountControl:N=!1,ordinal:I=!1}){const{t:O}=de.useTranslation(),j=s.useMemo(()=>O("wordPairs.infoNotes",{returnObjects:!0}),[O]),H=s.useMemo(()=>Array.from({length:o-i+1},(R,E)=>{const F=i+E;return{key:String(F),label:O("wordPairs.count",{n:F})}}),[O,o,i]),T=s.useMemo(()=>O("wordPairs.ordinals",{returnObjects:!0}),[O]),K=s.useCallback(R=>I?O("wordPairs.phonemeOrdinalLabel",{ordinal:T[R-1]??R}):a===1?O("wordPairs.phonemeSingleLabel","\uC74C\uC808"):O("wordPairs.phonemeN",{n:R}),[I,T,a,O]),W=s.useCallback(R=>I?O("wordPairs.phonemeContrastOrdinalLabel",{ordinal:T[R-1]??R}):a===1?O("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):O("wordPairs.phonemeContrast",{n:R}),[I,T,a,O]),V=s.useCallback((R,E)=>E?t.jsxs(t.Fragment,{children:[R,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):R,[]),{anchorRect:U,toggleAt:re,close:P}=Ma(),$=s.useCallback(R=>r(Number(R)),[r]),M=on("(max-width: 767px)"),L=s.useCallback(R=>u5(R,e).map(({label:E,value:F,displayLabel:ae})=>{const le=!!F&&F!=="\uC5C6\uC74C";return t.jsxs("span",{className:ve("phoneme-select-block__cell-jamo-part",F?"":"phoneme-select-block__cell-jamo-part--empty",le?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${F==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:F==="\uC5C6\uC74C"?"x":F||d}),le&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:ae??E})]},E)}),[e,d]),z=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(ie,{htmlType:"button",size:40,type:M?"dot":void 0,icon:"info",label:M?void 0:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!U,onClick:R=>re(R.currentTarget)})}),U&&t.jsx(Rn,{title:O("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:j,anchorRect:U,onClose:P})]});return t.jsxs(Yn,{type:w,title:m,icon:h,disc:C,action:z,className:ve("phoneme-select-block",p),children:[B,(!N||y&&!(m||C))&&t.jsxs("div",{className:"phoneme-select-block__controls",children:[!N&&t.jsx(On,{options:H,value:String(a),onChange:$,size:40,className:"phoneme-select-block__count-control"}),y&&!(m||C)&&z]}),t.jsx("div",{className:"phoneme-select-block__cells",children:A?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,E)=>{const F=n[E*2]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:L(F)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:K(E+1)})]},E)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:O("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,E)=>{const F=n[E*2+1]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:L(F)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:W(E+1)})]},E)})})]}):n.map((R,E)=>t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:L(R)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:K(E+1)})]},E))}),(l||c)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:A?t.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((R,E)=>{const F=n[E*2]??{};return t.jsx(bn,{title:V(K(E+1),E===0),sections:c?c(F,E*2):l,selected:F,onSelect:u?.(E*2),align:"newline"},E)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((R,E)=>{const F=n[E*2+1]??{};return t.jsx(bn,{title:W(E+1),sections:c?c(F,E*2+1):l,selected:F,onSelect:u?.(E*2+1),align:"newline"},E)})})]}):n.map((R,E)=>t.jsx(bn,{title:V(K(E+1),E===0),sections:c?c(R,E):l,selected:R,onSelect:u?.(E),align:"newline"},E))})}),D&&t.jsx("div",{className:"phoneme-select-block__before-search",children:D}),(f||v||b)&&(()=>{const R=n.every(E=>Object.entries(E).every(([F,ae])=>!ae||F==="\uC885\uC131"&&ae==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:R?g:void 0,children:[f&&t.jsx(ie,{htmlType:"button",size:"56",type:"bar",label:O("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:R,onClick:R?void 0:f}),b?t.jsxs("div",{className:"phoneme-select-block__checking",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??O("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):v&&t.jsx(ie,{htmlType:"button",size:"56",type:"bar",variant:"main",label:_??O("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:R||x,onClick:R||x?void 0:v})]})})(),k]})}function p5({title:e,sections:n,selected:a,onSelect:r,className:o}){const{t:i}=de.useTranslation();return t.jsx(bn,{className:o,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,align:"inline"})}function m5({title:e,headerAction:n,sections:a,selected:r,onSelect:o,className:i}){const{t:l}=de.useTranslation();return a.length===0?null:t.jsx(bn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:o,align:"newline"})}function h5({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:o,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=de.useTranslation(),m={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=v=>p("wordPairs.count",{n:v}),C=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:t.jsx(fa,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),p("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),p("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:m.phonemeOrder,items:[m.orderAny,m.orderMatch],display:"segmented",labelAction:t.jsx(fa,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[h(1),h(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:t.jsx(fa,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),p("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],y={[m.searchMode]:n==="explicit"?m.explicit:n==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:h(i),[m.inputMode]:c==="phoneme"?m.pronInput:m.charInput},f=(v,g)=>{g===m.searchMode?a(v===m.explicit?"explicit":v===m.pick?"pick":"include"):g===m.phonemeOrder?o(v===m.orderMatch?"ordered":"unordered"):g===m.count?l(v===h(2)?2:1):g===m.inputMode&&u(v===m.pronInput?"phoneme":"word")};return t.jsx(bn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:C,selected:y,onSelect:f,align:"inline"})}function f5(e){const{title:n,items:a,columns:r,gridTemplateColumns:o,searchPlaceholder:i,searchFn:l,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:p,onSelect:m,onClose:h,pageSizeOptions:C=[10,25,50,100],initialPageSize:y,emptyText:f,countLabel:v,topContent:g,className:x=""}=e,{t:_}=de.useTranslation(),b=i??_("common.search","\uAC80\uC0C9"),A=f??_("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,D]=s.useState(""),[B,k]=s.useState(c??r[0]?.key??""),[N,I]=s.useState(u),[O,j]=s.useState(String(y??C[0]??10)),[H,T]=s.useState(1);s.useEffect(()=>{T(1)},[w,O]);const K=l!==null,W=s.useCallback((E,F)=>{if(!F)return!0;const ae=F.toLowerCase();return r.some(le=>{const se=E[le.key];return se==null?!1:String(se).toLowerCase().includes(ae)})},[r]),V=l??W,U=s.useMemo(()=>{const E=K?a.filter(F=>V(F,w)):a;return B?[...E].sort((F,ae)=>{const le=F[B]??"",se=ae[B]??"";if(le===se)return 0;const oe=Ob(le,se);return N?oe:-oe}):E},[a,w,B,N,K,V]),re=Math.max(1,Math.ceil(U.length/Number(O)));H>re&&T(re);const P=Math.min(H,re),$=U.slice((P-1)*Number(O),P*Number(O)),M=s.useCallback(E=>{B===E?I(F=>!F):(k(E),I(!0)),T(1)},[B]),L=s.useMemo(()=>{if(typeof v=="function"){const E=U.length,F=v(E);if(typeof F=="string"){const ae=F.lastIndexOf(String(E));if(ae>=0)return{prefix:F.slice(0,ae),suffix:F.slice(ae+String(E).length)}}return{label:F}}if(typeof v=="string"&&v.includes("{n}")){const[E,F]=v.split("{n}");return{prefix:E,suffix:F}}return{prefix:_("common.totalCountPrefix","\uCD1D "),suffix:_("common.totalCountSuffix","\uAC1C")}},[v,U.length,_]),z=s.useMemo(()=>r.map(E=>({label:E.label,onClick:E.sortable!==!1?()=>M(E.key):void 0,className:E.className,sortDir:E.sortable!==!1&&B===E.key?N?"asc":"desc":null})),[r,B,N,M]),R=s.useMemo(()=>C.map(E=>({value:String(E),label:_("common.pageSizeLabel",{n:E})})),[C,_]);return t.jsxs(Nn,{className:`popup-list ${x}`,title:n,onClose:h,children:[g,"label"in L&&t.jsx("p",{className:"toolbar__count body-1",children:L.label}),t.jsx(Pr,{count:"label"in L?void 0:{value:U.length,prefix:L.prefix,suffix:L.suffix},search:K?{value:w,onChange:D,placeholder:b}:void 0,pageSize:{options:R,value:O,onChange:j},pagination:{page:P,total:re,onChange:T}}),t.jsx(Wr,{size:"medium",gridTemplateColumns:o,resizable:!0,fields:z,items:$,onRowClick:m,renderRow:E=>{const F=p!=null?E.id!=null&&p.has(E.id):d!=null&&E.id===d;return r.map(ae=>({content:ae.render?ae.render(E):E[ae.key]??"",className:ve(ae.className,F&&"popup-list__row--selected")}))},empty:A})]})}function C5(e){const{title:n,message:a,topContent:r,details:o,children:i,confirmLabel:l,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:C=!0,onClose:y,inline:f,size:v="small",className:g}=e,{t:x}=de.useTranslation(),_=s.useRef(!1),[b,A]=s.useState(!1),w=B=>{let k=!1;return{close:()=>{k=!0,B()},\uB2EB\uC558\uB098:()=>k}},D=async B=>{if(_.current)return;_.current=!0;const k=typeof document<"u"?document.activeElement:null;A(!0);let N=!1;try{N=await B()}catch(I){typeof console<"u"&&console.error(I)}finally{N||(_.current=!1,A(!1),requestAnimationFrame(()=>{const I=document.activeElement;(!I||I===document.body)&&k?.isConnected&&k.focus()}))}};return t.jsxs(Nn,{title:n,onClose:y,closeDisabled:b,inline:f,size:v,className:ve("confirm-popup",g),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||b,onClick:async({closeWithAnimation:B})=>{await D(async()=>{const k=w(B);await d.onClick(k.close);const N=d.closeOnClick??!0;return N&&B(),N||k.\uB2EB\uC558\uB098()})}}]:[],...u?[]:[{label:c??x("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:b,onClick:({closeWithAnimation:B})=>B()}],{label:l??x("common.confirm","\uD655\uC778"),variant:p,disabled:m||b,onClick:async({closeWithAnimation:B})=>{await D(async()=>{const k=w(B);return await h(k.close),C&&B(),C||k.\uB2EB\uC558\uB098()})}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),o&&o.length>0&&t.jsx(Za,{children:o.map((B,k)=>t.jsx(Bn,{label:B.label,children:t.jsx("span",{className:"panel-row__text body-2",children:B.value})},k))}),t.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}function g5({onApply:e,onCancel:n}){const{t:a}=de.useTranslation(),[r,o]=s.useState(""),[i,l]=s.useState(!1),[c,u]=s.useState(null),d=s.useRef(null);s.useEffect(()=>{d.current?.focus()},[]);const p=s.useCallback(async C=>{const y=r.trim();if(y){l(!0),u(null);try{await e(y),C()}catch(f){u(Ts(f)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),m=s.useCallback((C,y)=>{C.key==="Enter"&&!C.nativeEvent.isComposing&&p(y)},[p]),h=C=>{o(C.target.value),u(null)};return t.jsx(Nn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:n,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:C})=>C()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:C})=>{p(C)}}],children:({closeWithAnimation:C})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:h,onKeyDown:y=>m(y,C),disabled:i,autoComplete:"off",spellCheck:!1}),c&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const b5=200;function y5(e){return e.itemId?(K0()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function v5({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:o}=de.useTranslation(),i=s.useMemo(()=>Z0(o).map(c=>({type:c,items:(e.items??[]).filter(u=>u.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items,o]);if(i.length===0)return null;const l=t.jsx("div",{className:"tooltip-training__box",children:t.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:c,items:u},d)=>[d>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,t.jsxs("div",{className:"tooltip-training__section",children:[t.jsx("div",{className:"tooltip-training__section-header",children:t.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),t.jsx("div",{className:"tooltip-training__items",children:u.map((p,m)=>{const h=y5(p);return h?t.jsx(Ur,{index:m,type:c,trainingData:h,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},c.key)])})});return n?t.jsx(wn,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:o("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const jc=["var(--color-main)","var(--color-sub)"],x5=2e3;function _5(e,n){if(!n.startsWith("var("))return n;try{const a=n.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function Ec({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:o,trigger:i=0}){const l=s.useMemo(()=>{const f=Math.floor(n/2),v=n-f,g=(x,_)=>Array.from({length:x}).map((b,A)=>{const w=6+Math.random()*12,D=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),B=jc[Math.floor(Math.random()*jc.length)],k=Math.random()*300,N=(360+Math.random()*260)*r*1.2,I=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,O=Math.cos(I)*N,j=Math.sin(I)*N*1.35,H=Math.random()*720-360,T=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),K=Math.random()>.7?"50%":"3px";return{id:`${_}-${A}`,side:_,size:D,color:B,delay:k,vx:O,vy:j,angularVel:H,life:T,borderRadius:K}});return[...g(f,"left"),...g(v,"right")]},[n,r]),c=s.useRef(null),u=s.useRef({}),d=s.useRef(null),p=s.useRef(o);s.useEffect(()=>{p.current=o},[o]);const m=s.useRef(null),h=s.useRef(null),C=()=>{if(typeof document>"u")return null;let f=document.querySelector("[data-ihab-effect-root]");return f||(f=document.createElement("div"),f.className="app-effect",f.dataset.ihabEffectRoot="",f.style.position="fixed",f.style.inset="0",f.style.pointerEvents="none",f.style.zIndex="99998",document.body.appendChild(f)),f};if(typeof document<"u"&&h.current==null&&(h.current=C()),s.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const P=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(P)}const f=1200,v=performance.now(),g=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,x=Math.max(60,(window.innerHeight||800)*.05),_=P=>Math.max(40,(P||window.innerWidth)*.02),b=g?.width||window.innerWidth||375,A=g?.height||window.innerHeight||812,w=P=>{const $=[...P].sort((M,L)=>M-L);return $[Math.floor($.length/2)]||1},D=w(l.map(P=>Math.abs(P.vy))),B=w(l.map(P=>Math.abs(P.vx))),k=Math.sqrt(2*f*(A*.72+x))/D,N=D*k/f,I=b*.5/(B*N),O=(P,$,M)=>Math.min(M,Math.max($,P)),j=O(k,.8,2.4),H=O(I,.7,2.2),T=a>0?a/x5:1,K=l.map(P=>({...P,life:P.life*T,vx:P.vx*H,vy:P.vy*j,startTime:v+P.delay,ended:!1})),W=g?{x:g.left-_(g.width),y:g.top+g.height+x}:{x:-_(window.innerWidth),y:window.innerHeight+x},V=g?{x:g.left+g.width+_(g.width),y:g.top+g.height+x}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+x},U=P=>{let $=!1;for(const M of K){const L=u.current[M.id];if(!L||!L)continue;if(P<M.startTime){L.style.display="none",$=!0;continue}if(!M._inited){const X=M.side==="left"?W.x:V.x,te=M.side==="left"?W.y:V.y;L.style.left=`${X}px`,L.style.top=`${te}px`,L.style.transform="translate3d(0px, 0px, 0)",L.style.display="block",L.style.zIndex="100000",typeof M.color=="string"&&M.color.startsWith("var(")&&(L.style.background=_5(L,M.color)??"#FF0060"),M._inited=!0}const z=(P-M.startTime)/1e3;if(z<0)continue;const R=M.life/1e3;if(z>=R){L.style.opacity="0",L.style.display="none",M.ended=!0;continue}$=!0;const E=M.side==="left"?W.x:V.x,F=M.side==="left"?W.y:V.y,ae=E+M.vx*z,le=F+M.vy*z+.5*f*z*z,se=(M.angularVel||0)*z,oe=ae-E,Ce=le-F;L.style.transform=`translate3d(${oe}px, ${Ce}px, 0) rotate(${se}deg)`,L.style.opacity=`${Math.max(0,1-z/R)}`}$?d.current=requestAnimationFrame(U):p.current?.()};d.current=requestAnimationFrame(U);const re=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const P=document.createElement("div");P.className="party-container",P.style.position="fixed",P.style.inset="0",P.style.pointerEvents="none",P.style.overflow="visible",P.style.zIndex="2147483647";for(const $ of l){const M=document.createElement("span");M.className=`confetti confetti--${$.side}`,M.setAttribute("aria-hidden","true"),M.style.display="none",M.style.position="fixed",M.style.left="0px",M.style.top="0px",M.style.width=`${$.size}px`,M.style.height=`${Math.max(4,$.size*.6)}px`,M.style.background=$.color,M.style.borderRadius=$.borderRadius,M.style.transform="translate3d(0,0,0)",M.style.opacity="0",P.appendChild(M),u.current[$.id]=M}(document.body||h.current).appendChild(P),m.current=P}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(re),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const y=t.jsx("div",{className:"party-container",ref:c,children:l.map(f=>t.jsx("span",{"aria-hidden":!0,ref:v=>{u.current[f.id]=v},className:`confetti confetti--${f.side}`,style:{width:`${f.size}px`,height:`${Math.max(4,f.size*.6)}px`,background:f.color,borderRadius:f.borderRadius}},`${f.id}-${i}`))});return typeof document<"u"?Ut.createPortal(y,h.current||document.body):y}function w5({trigger:e=0,active:n=!1}){const a=s.useRef(0);return s.useEffect(()=>{a.current=e},[e]),t.jsx(Ec,{active:n,trigger:e})}function k5({title:e,sub:n,rightAction:a,titleAction:r,badge:o,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:u,wrap:d=!1}){const{t:p}=de.useTranslation();p2(typeof e=="string"?e:l??null);const m=u??p("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[t.jsxs("div",{className:"page-title__main",children:[t.jsxs("div",{className:"page-title__title-row",children:[c&&t.jsx(ie,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),t.jsx("h1",{className:"page-title__title h1",children:e}),o&&t.jsx("div",{className:"page-title__badge",children:t.jsx(lt,{label:o,size:"small",variant:i,fill:"outline"})}),r?t.jsx("div",{className:"page-title__title-action",children:r}):null]}),n&&t.jsx("p",{className:"page-title__sub body-2",children:n})]}),a?t.jsx("div",{className:"page-title__action",children:a}):null]})}function A5(e){return e??""}const Mc=s.createContext({words:[],loading:!1});function N5(){return s.useContext(Mc)}function B5({words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return t.jsx(Mc.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function D5({items:e,actions:n,columns:a,flat:r=!1,className:o,style:i}){const l=a??e.length;return t.jsx("section",{className:ve("summary-strip",r&&"summary-strip--flat",o),style:{"--summary-strip-cols":String(l),...i},children:t.jsxs("div",{className:"summary-strip__row",children:[t.jsx("div",{className:"summary-strip__items",children:e.map((c,u)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),t.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},u))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const S5=(e,n)=>`${e} / ${n}`;function T5({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:o=S5,pageWidth:i,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=de.useTranslation(),m=s.useRef(null),h=s.useRef(null),C=s.useRef(null),y=s.useRef(null),[f,v]=s.useState(null),[g,x]=s.useState(!1);s.useEffect(()=>{const j=m.current;if(!j)return;const H=()=>x(j.scrollWidth>j.clientWidth+1);if(H(),typeof ResizeObserver>"u")return;const T=new ResizeObserver(H);return T.observe(j),()=>T.disconnect()},[f]);const _=e.map(j=>`${j.id}\0${j.section??""}\0${j.group??""}`).join(""),b=f&&f.shape===_?f.pages:null,[A,w]=s.useState(0);s.useEffect(()=>{const j=y.current;if(!j||typeof ResizeObserver>"u")return;const H=new ResizeObserver(()=>w(j.offsetHeight));return H.observe(j),()=>H.disconnect()},[]),s.useLayoutEffect(()=>{const j=h.current,H=y.current;if(!j||!H)return;const T=L=>L.getBoundingClientRect().height||L.offsetHeight,K=new Map;C.current?.querySelectorAll("[data-chrome-section]").forEach(L=>{K.set(L.dataset.chromeSection??"",T(L))});const W=L=>T(H)-(K.get(L??"")??0),V=Array.from(j.children).map(L=>T(L)),U=[];e.forEach((L,z)=>{const R=U[U.length-1],E=R?e[R[0]]:void 0;E&&L.group!=null&&E.group===L.group&&E.section===L.section?R.push(z):U.push([z])});const re=[];let P=[],$=0;const M=()=>{P.length&&re.push(P),P=[],$=0};U.forEach(L=>{const z=L.reduce((E,F)=>E+V[F],0),R=W(e[L[0]].section);P.length&&e[P[0]].section!==e[L[0]].section&&M(),P.length&&$+z>R+.01&&M(),z>R?L.forEach(E=>{P.length&&$+V[E]>R+.01&&M(),P.push(E),$+=V[E]}):(L.forEach(E=>P.push(E)),$+=z)}),M(),v({shape:_,pages:re})},[_,A,i,l,c]);const D=Mr,B=D,k=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:B,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),N=(j,H,T)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:T!=null&&n?.[T]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:k}),t.jsx("span",{className:"report-doc__page-no",children:o(j,H)})]})}),I=Array.from(new Set(e.map(j=>j.section??""))),O={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...d};return t.jsxs("div",{ref:m,className:ve("report-doc",u),style:O,tabIndex:g?0:void 0,role:g?"group":void 0,"aria-label":g?p("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[t.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[t.jsx("div",{ref:y,className:"report-doc__ruler"}),t.jsx("div",{ref:C,children:I.map(j=>{const H=N(1,1,j||void 0);return t.jsxs("div",{"data-chrome-section":j,children:[H.header,H.footer]},j)})}),t.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(j=>t.jsx("div",{children:j.content},j.id))})]}),b&&t.jsx("div",{className:"report-doc__pages",children:b.map((j,H)=>{const{header:T,footer:K}=N(H+1,b.length,e[j[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[T,j.map(W=>t.jsx("div",{children:e[W].content},e[W].id)),K]},H)})})]})}function j5({title:e,fields:n,columns:a=4,className:r,style:o}){return t.jsxs("div",{className:ve("report-info",r),style:{"--report-info-cols":String(a),...o},children:[e&&t.jsx("p",{className:"report-info__title h5b",children:e}),t.jsx("div",{className:"report-info__grid",children:n.map((i,l)=>t.jsxs("div",{className:"report-info__field body-2",children:[t.jsx("span",{className:"report-info__label body-3",children:i.label}),t.jsx("span",{className:"report-info__value",children:i.value})]},l))})]})}function E5({title:e,message:n,actionLabel:a,onAction:r,icon:o,onClose:i,className:l=""}){const{t:c}=de.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return t.jsxs("div",{className:ve("update-alert",l),role:"alert",children:[i&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:i,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),t.jsxs("div",{className:"update-alert__top",children:[t.jsx("div",{className:"update-alert__icon",children:o??t.jsx(Po,{size:20,strokeWidth:2})}),t.jsxs("div",{className:"update-alert__body",children:[t.jsx("div",{className:"update-alert__title h4",children:e}),t.jsx("div",{className:"update-alert__message body-3",children:n})]})]}),r&&t.jsx(ie,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}function M5({title:e,description:n,topActions:a,children:r,footerLeft:o,footerRight:i,onClick:l,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const m=o!=null||i!=null,h=r!=null&&r!==!1,C=s.useCallback(y=>{l&&y.target===y.currentTarget&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),l())},[l]);return t.jsxs("div",{className:ve("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?C:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&t.jsx("div",{className:"training-card__top-actions",onClick:y=>y.stopPropagation(),children:a})]}),n!=null?typeof n=="string"?t.jsx("p",{className:"training-card__description body-3",children:n}):n:t.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),h&&t.jsx("div",{className:"training-card__body",children:r}),m&&t.jsxs("div",{className:"training-card__footer",children:[o!=null&&t.jsx("div",{className:"training-card__footer-left",children:o}),i!=null&&t.jsx("div",{className:"training-card__meta",children:i})]})]})}function L5({title:e,count:n,collapsed:a=!1,onToggle:r,sort:o,actions:i,empty:l=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:m,children:h,className:C}){const{t:y}=de.useTranslation(),f=r!=null,v=ve("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",f&&"training-card-group--collapsible",C);return t.jsxs("div",{className:v,onDragOver:d,onDragLeave:p,onDrop:m,children:[t.jsxs("header",{className:"training-card-group__header",children:[f&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?y("common.expand","\uD3BC\uCE58\uAE30"):y("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!a,onClick:r}),typeof e=="string"?t.jsx("span",{className:"training-card-group__title h5b",children:e}):e,n!==void 0&&t.jsx("span",{className:"training-card-group__count body-3b",children:n}),(o||i!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:g=>g.stopPropagation(),children:[o&&t.jsx(Jt,{size:40,options:o.options,value:o.value,placeholder:o.placeholder,onChange:o.onChange}),i]})]}),!a&&(l?t.jsx("div",{className:"training-card-group__empty body-3",children:c}):t.jsx("div",{className:"training-card-group__grid",children:h}))]})}const $5="speechear:saved_word_tables";function R5(e){if(typeof e!="object"||e===null)return!1;const n=e;return typeof n.id=="string"&&typeof n.name=="string"&&Array.isArray(n.items)}function P5(){try{const e=localStorage.getItem($5);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(R5):[]}catch{return[]}}function Lc(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function ko(e){return e.map(n=>n.homonum!=null?`${n.word}#${n.homonum}`:n.word).join("|")}function I5(e){const n=new Set;return e.map(a=>{let r=a.id;for(let o=2;n.has(r);o++)r=`${a.id}~${o}`;return n.add(r),r===a.id?a:{...a,id:r}})}function F5({title:e,titleIcon:n,disc:a,items:r,onSaveComplete:o,onLoad:i,onRemoveItem:l,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:m,showCellCount:h,onAddItem:C,className:y,renderSavePopup:f,renderWordSearch:v,hideControls:g,saveOnly:x,tableName:_,nameValue:b,onNameChange:A,descriptionValue:w,onDescriptionChange:D,namePlaceholder:B,descriptionPlaceholder:k,existingNames:N,editingName:I,onCancel:O}){const{t:j}=de.useTranslation(),H=u??j("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),T=r===void 0,K=!!A,[W,V]=s.useState([]),U=(b??"").trim(),re=U||(B??"").trim(),P=(w??"").trim()||(k??"").trim(),$=(N??[]).map(J=>J.trim().toLowerCase()),M=[I?.trim().toLowerCase(),...W].filter(J=>!!J),L=[...$];for(const J of M){const me=L.indexOf(J);me!==-1&&L.splice(me,1)}const z=U!==""&&L.includes(U.toLowerCase()),[R,E]=s.useState(Array(4).fill(null)),[F,ae]=s.useState(4),[le,se]=s.useState(null),oe=R.slice(0,F),[Ce,X]=s.useState("landscape"),[te,Y]=s.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[ge,xe]=s.useState("\uD45C\uC2DC"),[Te,ue]=s.useState(!0),[be,Ae]=s.useState(!0),Q=s.useRef(null),ee=s.useRef([]),[ke,De]=s.useState(8),[Oe,Le]=s.useState("right"),[We,Re]=s.useState(!1),[et,Ke]=s.useState(!1),{toastMessage:Ge,toastType:ye,showWarning:He,clearToast:Ee}=Bi("warning"),Pe=s.useCallback(()=>se(null),[se]);C&&!T&&!h&&ta("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.');const[qe,Ye]=s.useState(()=>Math.max(r?.length??1,1));s.useEffect(()=>{T||Ye(J=>Math.max(J,r?.length??1))},[r?.length,T]);const ct=T?F:h?Math.max(qe,r?.length??1):Math.max(r?.length??0,1),{width:ut,height:dt}=Zn[Ce],Xe=!T&&!h,tt=r?.length??0,Ve=Math.min(ke,Math.max(tt,1)),nt=Xe?Ve:ct,Je=Xe?jl(r??[],nt):null,rt=!!Je&&Je.length>1,Me=T?oe.some(J=>J!==null&&J.length>1):(r??[]).some(J=>J.words.length>1),Qe=_?.trim()||`${Rs(Mn())} ${Me?j("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):j("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,yt=s.useCallback(()=>rt?ee.current.filter(J=>J!==null):Q.current?[Q.current]:[],[rt]),{print:Gt,openNewWindow:mt,downloadHtml:_t}=no({getElements:yt,paperW:ut,paperH:dt,fileName:Qe,onPopupBlocked:()=>{He(j("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),zt=J=>{ae(J),E(me=>me.length>=J?me:[...me,...Array(J-me.length).fill(null)]),se(null)},Kt=J=>{E(me=>{const _e=[...me];return _e[J]=null,_e}),le===J&&se(null)},wt=J=>{if(le===null)return;const me=le;E(Ne=>{const Ie=[...Ne];return Ie[me]=J.length>0?J:null,Ie});const _e=oe.findIndex((Ne,Ie)=>Ie>me&&Ne===null);se(_e!==-1?_e:null)},ht=T?oe.some(J=>J?.some(me=>!!me.colloquialPronunciation)):(r??[]).some(J=>J.words.some(me=>!!me.colloquialLabel)),Tt=s.useMemo(()=>Wn()?T?R.slice(0,F).flatMap(J=>(J??[]).map(me=>[me.word,me.homonum])):(r??[]).flatMap(J=>J.words.map(me=>[me.label,me.homonum])):[],[T,R,F,r]),[It,yn]=s.useState(!1);s.useEffect(()=>{if(Tt.length===0)return;let J=!1;return Promise.all(Tt.map(([me,_e])=>Ns(me,_e))).then(me=>{J||yn(me.some(Boolean))},()=>{}),()=>{J=!0}},[Tt]);const Sn=Tt.length>0&&It,at=s.useMemo(()=>[...T||h?[{label:j("wordTable.filter.columns","\uCE78 \uC218"),items:Db.map(J=>({value:`${J}\uCE78`,displayLabel:j("wordTable.filter.column",{count:J})})),display:"segmented"}]:[],...Xe&&(r?.length??0)>0?[Wl(j,{hasPairs:Me,itemCount:tt})]:[],...rt?[ql(j)]:[]],[j,T,h,Xe,r?.length,Me,tt,rt]),Wt={...T||h?{[j("wordTable.filter.columns","\uCE78 \uC218")]:`${ct}\uCE78`}:{},...Xe&&(r?.length??0)>0?{[j(Me?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Ve}\uAC1C`}:{},...rt?{[j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Ul[Oe]}:{}},en=(J,me)=>{if(me===j("wordTable.filter.columns","\uCE78 \uC218"))T?zt(parseInt(J)):Ye(Math.max(parseInt(J),r?.length??1));else if(me===j(Me?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")){const _e=parseInt(J);De(Jr.includes(_e)?_e:Number.POSITIVE_INFINITY)}else me===j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Le(Gl(J))},vt=T?I5(oe.filter(J=>J!==null&&J.length>0).map(J=>({id:ko(J),words:J.map(Lc)}))):r??[],Ft=(J=!1)=>{if(Ke(J),K&&o){const me=re.trim().toLowerCase();me&&V(_e=>_e.includes(me)?_e:[..._e,me]),o(re,vt,P||void 0,J);return}if(x&&o){o("",vt,void 0,J);return}if(o){Re(!0);return}_t()},[tn,nn]=s.useState(!1),[ln,cn]=s.useState(""),Yt=ln.trim(),qt=Yt!==""&&$.includes(Yt.toLowerCase()),gt=()=>{cn(re?j("wordTable.save.copyName",{name:re,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),nn(!0)},an=()=>{!Yt||qt||!o||(o(Yt,vt,P||void 0,!0),nn(!1))},Ot=vt.length===0,jt=Ot||K&&(re===""||z),ne=()=>{if(Ot){He(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(K&&re===""){He(j("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}K&&z&&He(j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},pe=t.jsx(Xn,{items:vt,orientation:Ce,contentTypes:te,cutLine:ge,showOutline:Te,showDivLine:be,count:ct});return t.jsxs(t.Fragment,{children:[t.jsxs(Yn,{type:"page",icon:n,title:e,disc:a,className:ve("word-table-block",y),children:[tn&&t.jsx(Nn,{size:"small",title:p??j("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>nn(!1),footer:({closeWithAnimation:J})=>t.jsxs(t.Fragment,{children:[t.jsx(ie,{htmlType:"button",size:48,type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:J}),t.jsx(ie,{htmlType:"button",size:48,type:"bar",variant:"main",label:j("common.save","\uC800\uC7A5"),disabled:!Yt||qt,onClick:an})]}),children:t.jsx(Fn,{label:j("wordTable.save.nameLabel","\uC774\uB984"),value:ln,onChange:cn,placeholder:j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:an,error:qt?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),We&&o&&f?.({defaultName:typeof e=="string"?e:j("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:pe,previewW:ut,previewH:dt,items:vt,existingNames:P5().map(J=>J.name),saveAsNew:et,onSave:(J,me)=>{o(J,vt,me,et),Re(!1)},onCancel:()=>Re(!1)}),(T||C)&&le!==null&&v?.({cellIndex:le,onConfirm:T?wt:J=>{if(C){const me=J[0];if(me){const _e=new Set((r??[]).map(Ie=>Ie.id));let Ne=ko([me]);for(let Ie=2;_e.has(Ne);Ie++)Ne=`${ko([me])}~${Ie}`;C({id:Ne,words:[Lc(me)]})}}se(null)},onClose:Pe}),!g&&t.jsx(Qr,{hasImage:Sn,hasColloquial:ht,contentTypes:te,orientation:Ce,showOutline:Te,cutLine:ge,showDivLine:be,setters:{setContentTypes:Y,setOrientation:X,setShowOutline:ue,setCutLine:xe,setShowDivLine:Ae},showCutLine:(Xe?nt:ct)>1,showDivLine2:Me,middleSections:at,extraSelected:Wt,onExtraSelect:en}),rt&&Je?t.jsx("div",{className:"word-table-block__pages",children:Je.map((J,me)=>t.jsx(Xn,{orientation:Ce,contentTypes:te,cutLine:ge,showOutline:Te,showDivLine:be,count:nt,items:J,onRemoveItem:l,onReorder:m&&((_e,Ne)=>m(_e+me*nt,Ne+me*nt)),contentRef:_e=>{ee.current[me]=_e},pageNumber:{current:me+1,total:Je.length},pageNumberPosition:Oe},me))}):t.jsx(Xn,{orientation:Ce,contentTypes:te,cutLine:ge,showOutline:Te,showDivLine:be,count:ct,items:T?void 0:r??[],editCells:T?oe:void 0,activeCell:le,onActivateCell:T||C?se:void 0,onRemoveCell:T?Kt:void 0,onRemoveItem:T?void 0:l,onReorder:T?void 0:m,showFillerAdd:!!C,contentRef:Q}),K&&!g&&t.jsxs(Za,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(Bn,{variant:"custom",label:j("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(Fn,{required:!0,value:b??"",onChange:A,placeholder:B?B+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:z?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:J=>{(J.key==="Tab"&&!J.shiftKey||J.key===" ")&&!(b??"").trim()&&(B??"").trim()&&(J.preventDefault(),A?.(B??""))}})}),t.jsx(Bn,{variant:"custom",label:j("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Fn,{value:w??"",onChange:D,placeholder:k?k+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:J=>{(J.key==="Tab"&&!J.shiftKey||J.key===" ")&&!(w??"").trim()&&(k??"").trim()&&(J.preventDefault(),D?.(k??""))}})})]})]}),!g&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!x&&c&&t.jsx(ie,{htmlType:"button",size:40,type:"bar",label:H,onClick:c}),!x&&i&&t.jsx(ie,{htmlType:"button",size:40,type:"bar",label:j("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!x&&t.jsx(ie,{htmlType:"button",size:40,type:"bar",label:j("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:mt})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[O&&t.jsx(ie,{htmlType:"button",size:"56",type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:O}),!x&&t.jsx(ie,{htmlType:"button",size:"56",type:"bar",label:j("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:Gt}),p&&t.jsx(ie,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>K?gt():Ft(!0),disabled:Ot,onDisabledClick:()=>{He(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(ie,{htmlType:"button",size:"56",type:"bar",variant:"main",label:d??j("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Ft(!1),disabled:jt,onDisabledClick:ne})]})]}),t.jsx(Kn,{message:Ge,type:ye,onClose:Ee})]})}function $c({items:e,className:n}){const a=e.length,r=a<=3?1:2,o=Math.ceil(a/r)||1,i=r*o;return t.jsx("div",{className:ve("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,c)=>{const u=e[c];return u?t.jsx("div",{className:"word-table-thumb__cell",children:(u.words.length?u.words:[{label:u.id}]).map((d,p)=>t.jsxs(s.Fragment,{children:[p>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},p))},c):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function O5({items:e,name:n,description:a,createdAt:r,published:o,publishedLabel:i,shared:l,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:m,downloadCount:h,onPublisherClick:C,selected:y,onClick:f,onMore:v,titleNode:g,className:x}){const{t:_}=de.useTranslation(),b=g!=null,A=d!=null||p!=null||m!=null||h!=null,w=D=>{D.target===D.currentTarget&&!b&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),f?.())};return t.jsxs("div",{className:ve("word-table-button",y?"word-table-button--selected":"",A?"":"word-table-button--no-footer",x),role:"button",tabIndex:0,"aria-label":n,onClick:b?void 0:f,onKeyDown:w,children:[u&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":_("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx($c,{items:e,className:"word-table-button__thumb"}),t.jsxs("div",{className:"word-table-button__info",children:[t.jsxs("div",{className:"word-table-button__info-text",children:[g??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),v&&!b&&t.jsx(ie,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:_("common.moreFor",{name:n}),onClick:D=>{D.stopPropagation(),v(D)}})]}),(r||o||l)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta caption-1",children:r?$s(r,_):""}),t.jsxs("span",{className:"word-table-button__badges",children:[o&&t.jsx(lt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??_("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&t.jsx(lt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??_("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]}),A&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[d&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:D=>{D.stopPropagation(),C?.()},children:d}),p&&t.jsx("span",{className:"training-card__date body-4",children:$s(p,_)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&t.jsx(lt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),h!=null&&t.jsx(lt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(h)})]})]})]})}/**
974
974
  * @license lucide-react v1.38.0 - ISC
975
975
  *
976
976
  * This source code is licensed under the ISC license.
@@ -980,4 +980,4 @@ ${b.badge}`:b.badge:void 0;if(w&&u(b.code))return null;if(!b.badge&&!p)return m(
980
980
  *
981
981
  * This source code is licensed under the ISC license.
982
982
  * See the LICENSE file in the root directory of this source tree.
983
- */const z5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],W5=G("circle-x",z5);function q5(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Ao({icon:e,label:n,state:a,pct:r,subText:o}){const{t:i}=de.useTranslation(),l=a==="done",c=a==="pending",u=a==="error",d=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":u?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(Ho,{size:22,color:"white",strokeWidth:2.5}):u?t.jsx(W5,{size:22,color:"white",strokeWidth:2.5}):t.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),t.jsxs("div",{className:"wdup-phase-card__body",children:[t.jsxs("div",{className:"wdup-phase-card__top",children:[t.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:n}),l?t.jsx(lt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):u?t.jsx(lt,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(o||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[o,o&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":u?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||u?`${u?100:d}%`:void 0}})})]})]})}function U5({title:e,progress:n,onDone:a,onRetry:r,onClose:o,inline:i}){const{t:l}=de.useTranslation(),{phase:c,error:u,wordCount:d,imagePage:p,imageDone:m,imageTotal:h,pairPercent:C}=n,y=q5(c),f=c==="done",v=!!u;function g(D){return v&&y===D?"error":y>D?"done":y===D?"active":"pending"}const x=g(1),_=g(2),b=g(3),A=c==="image-match"&&h?Math.round((m??0)/h*100):void 0,w=s.useMemo(()=>{if(_!=="done"){if(c==="image-list")return l("wordData.checkingPage",{page:p??1});if(c==="image-match"&&h)return l("wordData.imageCount",{done:_r(m),total:_r(h)})}},[_,c,p,h,m,l]);return t.jsx(Nn,{inline:i,className:"popup--word-data-update",title:e,footer:v&&r?t.jsx(le,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):v?t.jsx(le,{htmlType:"button",size:56,variant:"main",onClick:o??a,children:l("common.close","\uB2EB\uAE30")}):t.jsx(le,{htmlType:"button",size:56,variant:"main",disabled:!f,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(Ao,{icon:t.jsx(Ro,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:x,subText:x==="active"?l("wordData.downloadingCount",{n:_r(d)}):void 0}),t.jsx(Ao,{icon:t.jsx(V5,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:_,pct:A,subText:w}),t.jsx(Ao,{icon:t.jsx(Fo,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:b,pct:b==="active"?C??0:void 0,subText:void 0})]})})}function G5({enabled:e=!1,renderResultPopup:n}={}){const{t:a}=de.useTranslation(),[r,o]=s.useState(null),[i,l]=s.useState(null),c=C=>{let y=null;C==="noise"?y={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:C==="short"?y={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:C==="long"?y={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:C==="order"&&(y={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(y),o(C)},u=s.useCallback(()=>{o(null),l(null)},[]),d=s.useCallback(()=>c("noise"),[]),p=s.useCallback(()=>c("short"),[]),m=s.useCallback(()=>c("long"),[]),h=s.useCallback(()=>c("order"),[]);return e?t.jsxs("div",{className:"debug-result-launcher",children:[t.jsxs("div",{className:"debug-buttons",children:[t.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:h,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&i?n?.({score:i.score,contextsLength:i.contextsLength,results:i.results,onReplay:u,onClose:u}):null]}):null}exports.Accordion=B2,exports.ActionCard=a2,exports.Alert=Yg,exports.AppHeader=M2,exports.AudioMeter=Vr,exports.AudioPlayer=po,exports.Avatar=n4,exports.Badge=lt,exports.BarChart=O4,exports.BarChartControls=cl,exports.Board=f4,exports.BottomNav=Si,exports.BrandIdentity=Mi,exports.Breadcrumb=o4,exports.BulkBar=S4,exports.Button=le,exports.CORE_VERSION=J0,exports.Calendar=ob,exports.CardStep=Nc,exports.ChartLegend=Ir,exports.ChartSection=Fr,exports.ChartTotal=Fa,exports.Checkbox=rl,exports.ChoiceChips=oy,exports.CircleBadge=qg,exports.CodeBox=B4,exports.ColorPicker=u4,exports.CompanyMeta=x4,exports.ConfirmPopup=C5,exports.ConfirmStep=wc,exports.ConfirmWithTextStep=kc,exports.ContrastFilterPanel=h5,exports.CoreScope=r2,exports.CountTile=d4,exports.CouponInputPopup=g5,exports.DEFAULT_NOISE_SETTINGS=_a,exports.DatePicker=M4,exports.DebugResultLauncher=G5,exports.DescriptionTooltip=Rn,exports.DeviceSideTable=nb,exports.Dialog=h4,exports.Divider=Ug,exports.Dropdown=Jt,exports.EffectPartyPopper=Ec,exports.EffectPartyPopperHost=w5,exports.EmptyState=t2,exports.ErrorState=n2,exports.FILTER_ALL_VALUE=sn,exports.FileUpload=r4,exports.FilterPanel=bn,exports.FilterSectionInfo=fa,exports.Footer=sy,exports.Header=Li,exports.Icon=Ue,exports.IconGridMenu=ry,exports.IconRenderer=Ue,exports.InfoTooltip=kn,exports.LEVEL_MAX=Qn,exports.LandingBottomSticky=ly,exports.LandingHeader=iy,exports.ListPopup=f5,exports.ListenStep=_c,exports.Loader=ba,exports.MARKS=Nl,exports.MARK_ICON=Dl,exports.MARK_VARIANT=Sl,exports.MediaQueryOverrideContext=yi,exports.MenuTooltip=La,exports.NOISE_RATIO_MAX=Ua,exports.NOISE_RATIO_STEP=Ql,exports.NoisePlayerContext=io,exports.NoiseSettingsTooltip=fc,exports.NoticeBox=o2,exports.OrderListStep=Ac,exports.PASS_CARD_BG_VARS=In,exports.POS_LABEL=El,exports.PROMO_BANNER_BG_COMPONENTS=gi,exports.PROMO_BANNER_BG_OPTIONS=s2,exports.PROMO_BANNER_BG_VARS=da,exports.Page=Xa,exports.PageTitle=k5,exports.Pagination=Ra,exports.Panel=Za,exports.PanelGrid=Iy,exports.PanelRow=Bn,exports.PanelRowDevice=Py,exports.PassCard=Ui,exports.PassCardBg=Hg,exports.PassCardBgIHAB=Vg,exports.PassCardBgLeftColorGrid=zg,exports.PassCardBgTwoCircle=Vi,exports.PaymentPlan=Og,exports.PersonCard=C4,exports.PhonemeFilterPanel=m5,exports.PhonemeSelectBlock=d5,exports.Popup=Nn,exports.ProgressBar=G4,exports.ProgressIndicator=yl,exports.PromoBanner=k2,exports.PromoBannerBgDark=ni,exports.PromoBannerBgDeep=Zs,exports.PromoBannerBgDiagonal=si,exports.PromoBannerBgDots=li,exports.PromoBannerBgInstagram=Ci,exports.PromoBannerBgMain=Ws,exports.PromoBannerBgNaver=hi,exports.PromoBannerBgOutline=ui,exports.PromoBannerBgRadial=ri,exports.PromoBannerBgSoft=Us,exports.PromoBannerBgSoftSub=Js,exports.PromoBannerBgSub=Ks,exports.PromoBannerBgSuccess=pi,exports.PromoBannerBgWarm=ei,exports.PublicationCard=b4,exports.Radio=Zi,exports.RadioGroup=Gg,exports.Rating=i4,exports.ReportDocument=T5,exports.ReportInfoPanel=j5,exports.RingChart=V4,exports.SENTENCE_TRAINING_TYPES=ao,exports.SearchSummary=Jg,exports.Section=Yn,exports.SectionHeader=v4,exports.SegmentedControl=On,exports.ShortcutBadge=Yi,exports.SideNav=Ei,exports.Slider=Cl,exports.SoundCompass=Wg,exports.SplashLogo=y4,exports.StatChart=z4,exports.SummaryStrip=D5,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=b5,exports.Table=Wr,exports.TableFilterPanel=Qr,exports.Tabs=Qg,exports.TextBoxTooltip=Ya,exports.TextField=Fn,exports.Timeline=g4,exports.Toast=Kn,exports.Toggle=al,exports.Toolbar=Pr,exports.Tooltip=wn,exports.TooltipInfo=kn,exports.TooltipTextBox=Ya,exports.TopBanner=A2,exports.TrainingBlock=ub,exports.TrainingBlockButton=Ur,exports.TrainingCard=M5,exports.TrainingCardGroup=L5,exports.TrainingPagePopup=Dn,exports.TrainingPagePopupBottom=Cc,exports.TrainingPagePopupTitle=gc,exports.TrainingResultPopup=Dc,exports.TrainingStep=Hn,exports.TrainingStepAudioPlayer=po,exports.TrainingStepBullet=lc,exports.TrainingStepCard=dc,exports.TrainingStepConfirm=ho,exports.TrainingStepConfirmWithText=fo,exports.TrainingStepListen=Co,exports.TrainingStepOrderList=go,exports.TrainingStepTextBox=uc,exports.TrainingStepTitle=cc,exports.TrainingTooltip=v5,exports.TrainingWordCard=Yr,exports.UpdateAlert=E5,exports.WAVE_A_MAX=gy,exports.WAVE_H1_PX=oc,exports.WAVE_HMAX_PX=Cy,exports.WORD_TABLE_PAPER=Zn,exports.WORD_TYPE_LABEL=Ml,exports.WordDataProvider=B5,exports.WordDataUpdatePopup=U5,exports.WordImageTooltip=Tc,exports.WordSearchFilterPanel=p5,exports.WordSearchResultBlock=c5,exports.WordTable=Xn,exports.WordTableBlock=F5,exports.WordTableButton=O5,exports.WordTablePopup=jb,exports.WordTableThumbnail=$c,exports.buildMonthChartData=$4,exports.cellLabel=Rb,exports.cellsForLabels=Zb,exports.clearPassCardBgTheme=fn,exports.clearPromoBannerBgTheme=St,exports.closeTrainingPopup=zy,exports.companyTypeLabel=A5,exports.createTrainingScenario=Uy,exports.cx=ve,exports.deriveNoiseContexts=Jy,exports.derivePassCard=Fi,exports.draftValues=ny,exports.effectiveNoiseVolume=oo,exports.effectiveSpeechVolume=nc,exports.expandSlashLabel=Xr,exports.formatDuration=Xb,exports.getControlDateRange=H4,exports.getPayloadTimestamp=vo,exports.getPromoBannerBgTheme=Ar,exports.getSelectedFromPayload=Ky,exports.getSelectedText=Yy,exports.getStepPayload=vc,exports.getSteppedPayload=Zy,exports.injectPassCardBgTheme=hn,exports.injectPromoBannerBgTheme=Dt,exports.isSelectionCorrect=Xy,exports.labelsForSave=$b,exports.levelToPct=cy,exports.markAfterClick=Bl,exports.marksForSave=Zr,exports.mergeNoiseSettings=xa,exports.missesByType=Ub,exports.nextFocus=zb,exports.nextMisses=qb,exports.noiseElementVolume=so,exports.noiseRatioOf=va,exports.pageStartIndexes=Tl,exports.passCardBgIhabTheme=Gi,exports.passCardBgLeftColorGridTheme=Ki,exports.passCardBgTwoCircleTheme=Hi,exports.pctToLevel=uy,exports.printWordTable=Cb,exports.promoBannerBgDarkTheme=ti,exports.promoBannerBgDeepTheme=Ys,exports.promoBannerBgDiagonalTheme=oi,exports.promoBannerBgDotsTheme=ii,exports.promoBannerBgInstagramTheme=fi,exports.promoBannerBgMainTheme=zs,exports.promoBannerBgNaverTheme=mi,exports.promoBannerBgOutlineTheme=ci,exports.promoBannerBgRadialTheme=ai,exports.promoBannerBgSoftSubTheme=Xs,exports.promoBannerBgSoftTheme=qs,exports.promoBannerBgSubTheme=Gs,exports.promoBannerBgSuccessTheme=di,exports.promoBannerBgWarmTheme=Qs,exports.recommendTables=Kb,exports.regenerateUnpinned=ty,exports.removeItem=ey,exports.resolveTrainingItems=qy,exports.resolveTrainingPopupMeta=yc,exports.reviewCells=Mb,exports.reviewSetPlan=Gb,exports.reviewTableName=Lb,exports.scoreKey=za,exports.scoreSheetHeader=Pb,exports.shouldConfirmDiscard=fb,exports.splitTrainingVariants=Wy,exports.summarize=hb,exports.summarizeMisses=Wb,exports.tableTrends=Vb,exports.toDraft=Jb,exports.toTrainingText=Gy,exports.togglePin=Qb,exports.uncoveredLabels=Yb,exports.useAnchoredMenu=pa,exports.useBarChartControl=ll,exports.useCalendarMonth=ol,exports.useComboboxSuggestions=tl,exports.useFitScale=$l,exports.useNoisePlayer=Ga,exports.useSoundCompassExam=w2,exports.useToastLifecycle=bl,exports.useWordData=N5,exports.useWordTableDisplaySettings=Xl,exports.useWordTablePrint=no,exports.waveBarPx=wa,exports.waveBarVal=co,exports.weakItems=Hb;
983
+ */const z5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],W5=G("circle-x",z5);function q5(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Ao({icon:e,label:n,state:a,pct:r,subText:o}){const{t:i}=de.useTranslation(),l=a==="done",c=a==="pending",u=a==="error",d=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":u?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(Ho,{size:22,color:"white",strokeWidth:2.5}):u?t.jsx(W5,{size:22,color:"white",strokeWidth:2.5}):t.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),t.jsxs("div",{className:"wdup-phase-card__body",children:[t.jsxs("div",{className:"wdup-phase-card__top",children:[t.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:n}),l?t.jsx(lt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):u?t.jsx(lt,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(o||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[o,o&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":u?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||u?`${u?100:d}%`:void 0}})})]})]})}function U5({title:e,progress:n,onDone:a,onRetry:r,onClose:o,inline:i}){const{t:l}=de.useTranslation(),{phase:c,error:u,wordCount:d,imagePage:p,imageDone:m,imageTotal:h,pairPercent:C}=n,y=q5(c),f=c==="done",v=!!u;function g(D){return v&&y===D?"error":y>D?"done":y===D?"active":"pending"}const x=g(1),_=g(2),b=g(3),A=c==="image-match"&&h?Math.round((m??0)/h*100):void 0,w=s.useMemo(()=>{if(_!=="done"){if(c==="image-list")return l("wordData.checkingPage",{page:p??1});if(c==="image-match"&&h)return l("wordData.imageCount",{done:_r(m),total:_r(h)})}},[_,c,p,h,m,l]);return t.jsx(Nn,{inline:i,className:"popup--word-data-update",title:e,footer:v&&r?t.jsx(ie,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):v?t.jsx(ie,{htmlType:"button",size:56,variant:"main",onClick:o??a,children:l("common.close","\uB2EB\uAE30")}):t.jsx(ie,{htmlType:"button",size:56,variant:"main",disabled:!f,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(Ao,{icon:t.jsx(Ro,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:x,subText:x==="active"?l("wordData.downloadingCount",{n:_r(d)}):void 0}),t.jsx(Ao,{icon:t.jsx(V5,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:_,pct:A,subText:w}),t.jsx(Ao,{icon:t.jsx(Fo,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:b,pct:b==="active"?C??0:void 0,subText:void 0})]})})}function G5({enabled:e=!1,renderResultPopup:n}={}){const{t:a}=de.useTranslation(),[r,o]=s.useState(null),[i,l]=s.useState(null),c=C=>{let y=null;C==="noise"?y={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:C==="short"?y={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:C==="long"?y={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:C==="order"&&(y={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(y),o(C)},u=s.useCallback(()=>{o(null),l(null)},[]),d=s.useCallback(()=>c("noise"),[]),p=s.useCallback(()=>c("short"),[]),m=s.useCallback(()=>c("long"),[]),h=s.useCallback(()=>c("order"),[]);return e?t.jsxs("div",{className:"debug-result-launcher",children:[t.jsxs("div",{className:"debug-buttons",children:[t.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:h,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&i?n?.({score:i.score,contextsLength:i.contextsLength,results:i.results,onReplay:u,onClose:u}):null]}):null}exports.Accordion=B2,exports.ActionCard=a2,exports.Alert=Yg,exports.AppHeader=M2,exports.AudioMeter=Vr,exports.AudioPlayer=po,exports.Avatar=n4,exports.Badge=lt,exports.BarChart=O4,exports.BarChartControls=cl,exports.Board=f4,exports.BottomNav=Si,exports.BrandIdentity=Mi,exports.Breadcrumb=o4,exports.BulkBar=S4,exports.Button=ie,exports.CORE_VERSION=J0,exports.Calendar=ob,exports.CardStep=Nc,exports.ChartLegend=Ir,exports.ChartSection=Fr,exports.ChartTotal=Fa,exports.Checkbox=rl,exports.ChoiceChips=oy,exports.CircleBadge=qg,exports.CodeBox=B4,exports.ColorPicker=u4,exports.CompanyMeta=x4,exports.ConfirmPopup=C5,exports.ConfirmStep=wc,exports.ConfirmWithTextStep=kc,exports.ContrastFilterPanel=h5,exports.CoreScope=r2,exports.CountTile=d4,exports.CouponInputPopup=g5,exports.DEFAULT_NOISE_SETTINGS=_a,exports.DatePicker=M4,exports.DebugResultLauncher=G5,exports.DescriptionTooltip=Rn,exports.DeviceSideTable=nb,exports.Dialog=h4,exports.Divider=Ug,exports.Dropdown=Jt,exports.EffectPartyPopper=Ec,exports.EffectPartyPopperHost=w5,exports.EmptyState=t2,exports.ErrorState=n2,exports.FILTER_ALL_VALUE=sn,exports.FileUpload=r4,exports.FilterPanel=bn,exports.FilterSectionInfo=fa,exports.Footer=sy,exports.Header=Li,exports.Icon=Ue,exports.IconGridMenu=ry,exports.IconRenderer=Ue,exports.InfoTooltip=kn,exports.LEVEL_MAX=Qn,exports.LandingBottomSticky=ly,exports.LandingHeader=iy,exports.ListPopup=f5,exports.ListenStep=_c,exports.Loader=ba,exports.MARKS=Nl,exports.MARK_ICON=Dl,exports.MARK_VARIANT=Sl,exports.MediaQueryOverrideContext=yi,exports.MenuTooltip=La,exports.NOISE_RATIO_MAX=Ua,exports.NOISE_RATIO_STEP=Ql,exports.NoisePlayerContext=io,exports.NoiseSettingsTooltip=fc,exports.NoticeBox=o2,exports.OrderListStep=Ac,exports.PASS_CARD_BG_VARS=In,exports.POS_LABEL=El,exports.PROMO_BANNER_BG_COMPONENTS=gi,exports.PROMO_BANNER_BG_OPTIONS=s2,exports.PROMO_BANNER_BG_VARS=da,exports.Page=Xa,exports.PageTitle=k5,exports.Pagination=Ra,exports.Panel=Za,exports.PanelGrid=Iy,exports.PanelRow=Bn,exports.PanelRowDevice=Py,exports.PassCard=Ui,exports.PassCardBg=Hg,exports.PassCardBgIHAB=Vg,exports.PassCardBgLeftColorGrid=zg,exports.PassCardBgTwoCircle=Vi,exports.PaymentPlan=Og,exports.PersonCard=C4,exports.PhonemeFilterPanel=m5,exports.PhonemeSelectBlock=d5,exports.Popup=Nn,exports.ProgressBar=G4,exports.ProgressIndicator=yl,exports.PromoBanner=k2,exports.PromoBannerBgDark=ni,exports.PromoBannerBgDeep=Zs,exports.PromoBannerBgDiagonal=si,exports.PromoBannerBgDots=li,exports.PromoBannerBgInstagram=Ci,exports.PromoBannerBgMain=Ws,exports.PromoBannerBgNaver=hi,exports.PromoBannerBgOutline=ui,exports.PromoBannerBgRadial=ri,exports.PromoBannerBgSoft=Us,exports.PromoBannerBgSoftSub=Js,exports.PromoBannerBgSub=Ks,exports.PromoBannerBgSuccess=pi,exports.PromoBannerBgWarm=ei,exports.PublicationCard=b4,exports.Radio=Zi,exports.RadioGroup=Gg,exports.Rating=i4,exports.ReportDocument=T5,exports.ReportInfoPanel=j5,exports.RingChart=V4,exports.SENTENCE_TRAINING_TYPES=ao,exports.SearchSummary=Jg,exports.Section=Yn,exports.SectionHeader=v4,exports.SegmentedControl=On,exports.ShortcutBadge=Yi,exports.SideNav=Ei,exports.Slider=Cl,exports.SoundCompass=Wg,exports.SplashLogo=y4,exports.StatChart=z4,exports.SummaryStrip=D5,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=b5,exports.Table=Wr,exports.TableFilterPanel=Qr,exports.Tabs=Qg,exports.TextBoxTooltip=Ya,exports.TextField=Fn,exports.Timeline=g4,exports.Toast=Kn,exports.Toggle=al,exports.Toolbar=Pr,exports.Tooltip=wn,exports.TooltipInfo=kn,exports.TooltipTextBox=Ya,exports.TopBanner=A2,exports.TrainingBlock=ub,exports.TrainingBlockButton=Ur,exports.TrainingCard=M5,exports.TrainingCardGroup=L5,exports.TrainingPagePopup=Dn,exports.TrainingPagePopupBottom=Cc,exports.TrainingPagePopupTitle=gc,exports.TrainingResultPopup=Dc,exports.TrainingStep=Hn,exports.TrainingStepAudioPlayer=po,exports.TrainingStepBullet=lc,exports.TrainingStepCard=dc,exports.TrainingStepConfirm=ho,exports.TrainingStepConfirmWithText=fo,exports.TrainingStepListen=Co,exports.TrainingStepOrderList=go,exports.TrainingStepTextBox=uc,exports.TrainingStepTitle=cc,exports.TrainingTooltip=v5,exports.TrainingWordCard=Yr,exports.UpdateAlert=E5,exports.WAVE_A_MAX=gy,exports.WAVE_H1_PX=oc,exports.WAVE_HMAX_PX=Cy,exports.WORD_TABLE_PAPER=Zn,exports.WORD_TYPE_LABEL=Ml,exports.WordDataProvider=B5,exports.WordDataUpdatePopup=U5,exports.WordImageTooltip=Tc,exports.WordSearchFilterPanel=p5,exports.WordSearchResultBlock=c5,exports.WordTable=Xn,exports.WordTableBlock=F5,exports.WordTableButton=O5,exports.WordTablePopup=jb,exports.WordTableThumbnail=$c,exports.buildMonthChartData=$4,exports.cellLabel=Rb,exports.cellsForLabels=Zb,exports.clearPassCardBgTheme=fn,exports.clearPromoBannerBgTheme=St,exports.closeTrainingPopup=zy,exports.companyTypeLabel=A5,exports.createTrainingScenario=Uy,exports.cx=ve,exports.deriveNoiseContexts=Jy,exports.derivePassCard=Fi,exports.draftValues=ny,exports.effectiveNoiseVolume=oo,exports.effectiveSpeechVolume=nc,exports.expandSlashLabel=Xr,exports.formatDuration=Xb,exports.getControlDateRange=H4,exports.getPayloadTimestamp=vo,exports.getPromoBannerBgTheme=Ar,exports.getSelectedFromPayload=Ky,exports.getSelectedText=Yy,exports.getStepPayload=vc,exports.getSteppedPayload=Zy,exports.injectPassCardBgTheme=hn,exports.injectPromoBannerBgTheme=Dt,exports.isSelectionCorrect=Xy,exports.labelsForSave=$b,exports.levelToPct=cy,exports.markAfterClick=Bl,exports.marksForSave=Zr,exports.mergeNoiseSettings=xa,exports.missesByType=Ub,exports.nextFocus=zb,exports.nextMisses=qb,exports.noiseElementVolume=so,exports.noiseRatioOf=va,exports.pageStartIndexes=Tl,exports.passCardBgIhabTheme=Gi,exports.passCardBgLeftColorGridTheme=Ki,exports.passCardBgTwoCircleTheme=Hi,exports.pctToLevel=uy,exports.printWordTable=Cb,exports.promoBannerBgDarkTheme=ti,exports.promoBannerBgDeepTheme=Ys,exports.promoBannerBgDiagonalTheme=oi,exports.promoBannerBgDotsTheme=ii,exports.promoBannerBgInstagramTheme=fi,exports.promoBannerBgMainTheme=zs,exports.promoBannerBgNaverTheme=mi,exports.promoBannerBgOutlineTheme=ci,exports.promoBannerBgRadialTheme=ai,exports.promoBannerBgSoftSubTheme=Xs,exports.promoBannerBgSoftTheme=qs,exports.promoBannerBgSubTheme=Gs,exports.promoBannerBgSuccessTheme=di,exports.promoBannerBgWarmTheme=Qs,exports.recommendTables=Kb,exports.regenerateUnpinned=ty,exports.removeItem=ey,exports.resolveTrainingItems=qy,exports.resolveTrainingPopupMeta=yc,exports.reviewCells=Mb,exports.reviewSetPlan=Gb,exports.reviewTableName=Lb,exports.scoreKey=za,exports.scoreSheetHeader=Pb,exports.shouldConfirmDiscard=fb,exports.splitTrainingVariants=Wy,exports.summarize=hb,exports.summarizeMisses=Wb,exports.tableTrends=Vb,exports.toDraft=Jb,exports.toTrainingText=Gy,exports.togglePin=Qb,exports.uncoveredLabels=Yb,exports.useAnchoredMenu=pa,exports.useBarChartControl=ll,exports.useCalendarMonth=ol,exports.useComboboxSuggestions=tl,exports.useFitScale=$l,exports.useNoisePlayer=Ga,exports.useSoundCompassExam=w2,exports.useToastLifecycle=bl,exports.useWordData=N5,exports.useWordTableDisplaySettings=Xl,exports.useWordTablePrint=no,exports.waveBarPx=wa,exports.waveBarVal=co,exports.weakItems=Hb;