@ihabdevteam/core 0.144.0 → 0.145.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/components.cjs.js +8 -8
- package/dist/components.esm.css +2 -2
- package/dist/hooks.cjs.js +1 -1
- package/dist/i18n.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +16 -16
- package/dist/ihabdevteam-core.d.ts +1 -1
- package/dist/packages/core/src/components/Dropdown.js +22 -3
- package/dist/packages/core/src/components/Report/ReportDocument.css +11 -0
- package/dist/packages/core/src/components/Report/ReportDocument.js +11 -5
- package/dist/packages/core/src/components/Toast.css +5 -0
- package/dist/packages/core/src/components/useToastLifecycle.d.ts +1 -0
- package/dist/packages/core/src/components/useToastLifecycle.js +3 -1
- package/dist/packages/core/src/version.d.ts +1 -1
- package/dist/packages/core/src/version.js +1 -1
- package/dist/utils.cjs.js +1 -1
- package/package.json +1 -1
package/dist/components.cjs.js
CHANGED
|
@@ -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 sh=[["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"}]],ih=K("thumbs-up",sh),zo={"alert-triangle":So,"align-start-vertical":Vc,anchor:vm,armchair:_m,"arrow-down":Wc,"arrow-left":Uc,"arrow-right":Kc,"arrow-right-left":Zc,"arrow-up-a-z":km,"audio-lines":Jc,baby:eu,ban:nu,"bar-chart-2":Nm,bell:ru,"book-marked":su,"book-open":lu,"bow-arrow":uu,braces:pu,bug:hu,calendar:Oo,"calendar-check":Cu,"calendar-days":bu,camera:vu,car:Dm,"chart-column":_u,"chart-line":ku,"chart-pie":Nu,check:Do,"chevron-down":Ho,"chevron-left":To,"chevron-right":jo,"chevron-up":Vo,circle:Qm,"clipboard-list":ju,coffee:jm,combine:Mu,copy:$u,"chevrons-left-right-ellipsis":Pu,"credit-card":Fu,database:Eo,diff:Vu,download:Mo,ear:qu,edit:Gu,"edit-2":Yu,"edit-3":Xu,ellipsis:Lo,eraser:ed,"external-link":nd,eye:rd,"file-text":sd,"flip-horizontal":ld,"folder-open":ud,"folder-plus":pd,gamepad:hd,"gamepad-2":Mm,gavel:Cd,"git-merge":$o,globe:yd,headphones:xd,heart:wd,home:Ad,inbox:$m,info:Bd,"key-round":Dd,landmark:jd,layers:Md,"layout-dashboard":$d,leaf:Pd,lightbulb:Fd,link:Hd,"link-2":zd,"link-2-off":qd,list:Gd,"list-checks":Yd,"list-ordered":Xd,"list-tree":Pm,loader:Qd,lock:tp,"log-out":ap,mail:op,"map-pin":ip,menu:ah,"message-circle":cp,"message-circle-question-mark":dp,"message-square":mp,"message-square-more":Fm,"message-square-text":fp,minus:Hm,"minus-circle":gp,moon:oh,"more-horizontal":Lo,package:yp,palette:xp,"party-popper":wp,pause:Ap,pencil:Bp,phone:Dp,play:jp,"play-circle":Mp,plus:$p,printer:Pp,"refresh-cw":Fp,repeat:Hp,replace:zp,rocket:qp,"rotate-ccw":Gp,"rotate-cw":Yp,salad:Xp,"scan-search":Qp,search:a1,"circle-alert":Ro,"alert-circle":Ro,"check-circle":Po,scissors:o1,"search-x":i1,send:c1,settings:d1,"share-2":zm,"shield-check":m1,"shopping-cart":f1,shuffle:g1,"skip-back":y1,"skip-forward":x1,sparkles:qm,square:w1,star:A1,store:B1,"sun-medium":D1,table:j1,"table-2":M1,tag:$1,terminal:P1,"text-cursor-input":F1,"text-initial":H1,"thumbs-up":ih,ticket:z1,trash:G1,triangle:th,"trash-2":q1,"trending-up":Y1,"triangle-alert":So,trophy:X1,type:Gm,unlink:Q1,upload:tm,user:er,"user-plus":rm,"user-round":sm,"user-round-check":lm,users:um,"users-round":pm,volume:Ym,"volume-2":Io,wrench:fm,x:Fo,zap:bm};function lh(e){return zo[e]??null}const Wo=new Set;function ch(e){return Ao&&!(e in zo)&&!Wo.has(e)&&(Wo.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 uh=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 dh(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?uh(a):null}const qo=new Map;function ph(e){const n=typeof e=="string"?dh(e):null,a=n?lh(n)??qo.get(n)??null:null,[r,o]=s.useState(null);return s.useEffect(()=>{if(!n||a)return;let i=!1;return ch(n).then(l=>{qo.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 Uo(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 mh(e){if(Array.isArray(e))return e}function hh(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 fh(){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 Ch(e,n){return mh(e)||hh(e,n)||gh(e,n)||fh()}function gh(e,n){if(e){if(typeof e=="string")return Uo(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)?Uo(e,n):void 0}}const Go=Object.entries,Ko=Object.setPrototypeOf,bh=Object.isFrozen,yh=Object.getPrototypeOf,vh=Object.getOwnPropertyDescriptor;let Ct=Object.freeze,bt=Object.seal,Vn=Object.create,Yo=typeof Reflect<"u"&&Reflect,tr=Yo.apply,nr=Yo.construct;Ct||(Ct=function(n){return n}),bt||(bt=function(n){return n}),tr||(tr=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)}),nr||(nr=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),xh=pt(Array.prototype.lastIndexOf),Zo=pt(Array.prototype.pop),ta=pt(Array.prototype.push),_h=pt(Array.prototype.splice),zn=Array.isArray,na=pt(String.prototype.toLowerCase),ar=pt(String.prototype.toString),Xo=pt(String.prototype.match),aa=pt(String.prototype.replace),Jo=pt(String.prototype.indexOf),wh=pt(String.prototype.trim),kh=pt(Number.prototype.toString),Ah=pt(Boolean.prototype.toString),Qo=typeof BigInt>"u"?null:pt(BigInt.prototype.toString),es=typeof Symbol>"u"?null:pt(Symbol.prototype.toString),$t=pt(Object.prototype.hasOwnProperty),ra=pt(Object.prototype.toString),At=pt(RegExp.prototype.test),jn=Nh(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 tr(e,n,r)}}function Nh(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return nr(e,a)}}function Ze(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:na;if(Ko&&Ko(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&&(bh(n)||(n[r]=i),o=i)}e[o]=!0}return e}function Bh(e){for(let n=0;n<e.length;n++)$t(e,n)||(e[n]=null);return e}function Pt(e){const n=Vn(null);for(const r of Go(e)){var a=Ch(r,2);const o=a[0],i=a[1];$t(e,o)&&(zn(i)?n[o]=Bh(i):i&&typeof i=="object"&&i.constructor===Object?n[o]=Pt(i):n[o]=i)}return n}function Sh(e){switch(typeof e){case"string":return e;case"number":return kh(e);case"boolean":return Ah(e);case"bigint":return Qo?Qo(e):"0";case"symbol":return es?es(e):"Symbol()";case"undefined":return ra(e);case"function":case"object":{if(e===null)return ra(e);const n=e,a=Jt(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:ra(r)}return ra(e)}default:return ra(e)}}function Jt(e,n){for(;e!==null;){const r=vh(e,n);if(r){if(r.get)return pt(r.get);if(typeof r.value=="function")return pt(r.value)}e=yh(e)}function a(){return null}return a}function Dh(e){try{return At(e,""),!0}catch{return!1}}const ts=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"]),rr=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"]),or=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"]),Th=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"]),sr=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"]),jh=Ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ns=Ct(["#text"]),as=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"]),ir=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"]),rs=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"]),wa=Ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Eh=bt(/{{[\w\W]*|^[\w\W]*}}/g),Mh=bt(/<%[\w\W]*|^[\w\W]*%>/g),Lh=bt(/\${[\w\W]*/g),$h=bt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rh=bt(/^aria-[\-\w]+$/),os=bt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ph=bt(/^(?:\w+script|data):/i),Ih=bt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fh=bt(/^html$/i),Oh=bt(/^[a-z][.\w]*(-[.\w]+)+$/i),ss=bt(/<[/\w!]/g),is=bt(/<[/\w]/g),Hh=bt(/<\/no(script|embed|frames)/i),Vh=bt(/\/>/i),It={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ls=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],zh=Ct(Ze({},ls)),Wh=(function(){const e={};return Tn(ls,n=>{e[n]=bt(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),Ct(e)})(),qh=function(){return typeof window>"u"?null:window},Uh=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}},cs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},vn=function(n,a,r,o){return $t(n,a)&&zn(n[a])?Ze(o.base?Pt(o.base):{},n[a],o.transform):r},lr=function(n,a,r){const o=$t(n,a)?n[a]:void 0;return o&&typeof o=="object"?Pt(o):r()};function us(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qh();const n=me=>us(me);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==It.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=Jt(h,"cloneNode"),y=Jt(h,"remove"),f=Jt(h,"nextSibling"),v=Jt(h,"childNodes"),b=Jt(h,"parentNode"),x=Jt(h,"shadowRoot"),_=Jt(h,"attributes"),g=l&&l.prototype?Jt(l.prototype,"nodeType"):null,A=l&&l.prototype?Jt(l.prototype,"nodeName"):null,w=l&&l.prototype?Jt(l.prototype,"ownerDocument"):null,S=function(D){return g?g(D):D.nodeType},B=function(D){return A?A(D):D.nodeName};if(typeof i=="function"){const me=a.createElement("template");me.content&&me.content.ownerDocument&&(a=me.content.ownerDocument)}let k,N="",V,H=!1,T=0;const F=function(){if(T>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.')},j=function(D){F(),T++;try{return k.createHTML(D)}finally{T--}},Z=function(D){F(),T++;try{return k.createScriptURL(D)}finally{T--}},R=function(){return H||(V=Uh(m,o),H=!0),V},I=a,q=I.implementation,ae=I.createNodeIterator,U=I.createDocumentFragment,P=I.getElementsByTagName,M=r.importNode;let $=cs();n.isSupported=typeof Go=="function"&&typeof b=="function"&&q&&q.createHTMLDocument!==void 0;const z=Eh,L=Mh,E=Lh,O=$h,se=Rh,oe=Ph,ee=Ih,ie=Oh;let Ce=os,Y=null;const le=Ze({},[...ts,...rr,...or,...sr,...ns]);let J=null;const be=Ze({},[...as,...ir,...rs,...wa]);let ve=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,de=null;const ye=Object.seal(Vn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let we=!0,Q=!0,te=!1,_e=!0,je=!1,ze=!0,Me=!1,Oe=!1,Re=null,tt=null,Ke=!1,Ue=!1,fe=!1,Ge=!1,Ee=!0,$e=!1;const He="user-content-";let Ye=!0,gt=!1,dt={},st=null;const nt=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 at=null;const Fe=Ze({},["audio","video","img","source","image","track"]);let Qe=null;const Xe=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",Pe="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let yt=Je,Ut=!1,mt=null;const xt=Ze({},[rt,Pe,Je],ar),Ft=Ct(["mi","mo","mn","ms","mtext"]);let Gt=Ze({},Ft);const _t=Ct(["annotation-xml"]);let lt=Ze({},_t);const Kt=Ze({},["title","style","font","a","script"]);let Rt=null;const yn=["application/xhtml+xml","text/html"],Dn="text/html";let et=null,Ot=null;const wt=a.createElement("form"),Ht=function(D){return D instanceof RegExp||D instanceof Function},Vt=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ot&&Ot===D)return;(!D||typeof D!="object")&&(D={}),D=Pt(D),Rt=yn.indexOf(D.PARSER_MEDIA_TYPE)===-1?Dn:D.PARSER_MEDIA_TYPE,et=Rt==="application/xhtml+xml"?ar:na,Y=vn(D,"ALLOWED_TAGS",le,{transform:et}),J=vn(D,"ALLOWED_ATTR",be,{transform:et}),mt=vn(D,"ALLOWED_NAMESPACES",xt,{transform:ar}),Qe=vn(D,"ADD_URI_SAFE_ATTR",Xe,{transform:et,base:Xe}),at=vn(D,"ADD_DATA_URI_TAGS",Fe,{transform:et,base:Fe}),st=vn(D,"FORBID_CONTENTS",nt,{transform:et}),Te=vn(D,"FORBID_TAGS",Pt({}),{transform:et}),de=vn(D,"FORBID_ATTR",Pt({}),{transform:et}),dt=$t(D,"USE_PROFILES")?D.USE_PROFILES&&typeof D.USE_PROFILES=="object"?Pt(D.USE_PROFILES):D.USE_PROFILES:!1,we=D.ALLOW_ARIA_ATTR!==!1,Q=D.ALLOW_DATA_ATTR!==!1,te=D.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=D.SAFE_FOR_TEMPLATES||!1,ze=D.SAFE_FOR_XML!==!1,Me=D.WHOLE_DOCUMENT||!1,Ue=D.RETURN_DOM||!1,fe=D.RETURN_DOM_FRAGMENT||!1,Ge=D.RETURN_TRUSTED_TYPE||!1,Ke=D.FORCE_BODY||!1,Ee=D.SANITIZE_DOM!==!1,$e=D.SANITIZE_NAMED_PROPS||!1,Ye=D.KEEP_CONTENT!==!1,gt=D.IN_PLACE||!1,Ce=Dh(D.ALLOWED_URI_REGEXP)?D.ALLOWED_URI_REGEXP:os,yt=typeof D.NAMESPACE=="string"?D.NAMESPACE:Je,Gt=lr(D,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ze({},Ft)),lt=lr(D,"HTML_INTEGRATION_POINTS",()=>Ze({},_t));const W=lr(D,"CUSTOM_ELEMENT_HANDLING",()=>Vn(null));if(ve=Vn(null),$t(W,"tagNameCheck")&&Ht(W.tagNameCheck)&&(ve.tagNameCheck=W.tagNameCheck),$t(W,"attributeNameCheck")&&Ht(W.attributeNameCheck)&&(ve.attributeNameCheck=W.attributeNameCheck),$t(W,"allowCustomizedBuiltInElements")&&typeof W.allowCustomizedBuiltInElements=="boolean"&&(ve.allowCustomizedBuiltInElements=W.allowCustomizedBuiltInElements),bt(ve),je&&(Q=!1),fe&&(Ue=!0),dt&&(Y=Ze({},ns),J=Vn(null),dt.html===!0&&(Ze(Y,ts),Ze(J,as)),dt.svg===!0&&(Ze(Y,rr),Ze(J,ir),Ze(J,wa)),dt.svgFilters===!0&&(Ze(Y,or),Ze(J,ir),Ze(J,wa)),dt.mathMl===!0&&(Ze(Y,sr),Ze(J,rs),Ze(J,wa))),ye.tagCheck=null,ye.attributeCheck=null,$t(D,"ADD_TAGS")&&(typeof D.ADD_TAGS=="function"?ye.tagCheck=D.ADD_TAGS:zn(D.ADD_TAGS)&&(Y===le&&(Y=Pt(Y)),Ze(Y,D.ADD_TAGS,et))),$t(D,"ADD_ATTR")&&(typeof D.ADD_ATTR=="function"?ye.attributeCheck=D.ADD_ATTR:zn(D.ADD_ATTR)&&(J===be&&(J=Pt(J)),Ze(J,D.ADD_ATTR,et))),$t(D,"ADD_FORBID_CONTENTS")&&zn(D.ADD_FORBID_CONTENTS)&&(st===nt&&(st=Pt(st)),Ze(st,D.ADD_FORBID_CONTENTS,et)),Ye&&(Y["#text"]=!0),Me&&Ze(Y,["html","head","body"]),Y.table&&(Ze(Y,["tbody"]),delete Te.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ue=k;k=D.TRUSTED_TYPES_POLICY;try{N=j("")}catch(xe){throw k=ue,xe}}else D.TRUSTED_TYPES_POLICY===null?(k=void 0,N=""):(k===void 0&&(k=R()),k&&typeof N=="string"&&(N=j("")));Ct&&Ct(D),Ot=D},zt=Ze({},[...rr,...or,...Th]),sn=Ze({},[...sr,...jh]),ln=function(D,W,ue){return W.namespaceURI===Je?D==="svg":W.namespaceURI===rt?D==="svg"&&(ue==="annotation-xml"||Gt[ue]):!!zt[D]},Wt=function(D,W,ue){return W.namespaceURI===Je?D==="math":W.namespaceURI===Pe?D==="math"&<[ue]:!!sn[D]},cn=function(D,W,ue){return W.namespaceURI===Pe&&!lt[ue]||W.namespaceURI===rt&&!Gt[ue]?!1:!sn[D]&&(Kt[D]||!zt[D])},nn=function(D){let W=b(D);(!W||!W.tagName)&&(W={namespaceURI:yt,tagName:"template"});const ue=na(D.tagName),xe=na(W.tagName);return mt[D.namespaceURI]?D.namespaceURI===Pe?ln(ue,W,xe):D.namespaceURI===rt?Wt(ue,W,xe):D.namespaceURI===Je?cn(ue,W,xe):!!(Rt==="application/xhtml+xml"&&mt[D.namespaceURI]):!1},ht=function(D){ta(n.removed,{element:D});try{b(D).removeChild(D)}catch{if(y(D),!b(D))throw jn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Yt=function(D,W,ue){try{D.removeAttributeNode(W)}catch{try{D.removeAttribute(ue)}catch{}}},Zt=function(D){G(D);const W=v(D);if(W){const xe=[];Tn(W,Se=>{ta(xe,Se)}),Tn(xe,Se=>{try{y(Se)}catch{}})}const ue=_(D);if(ue)for(let xe=ue.length-1;xe>=0;--xe){const Se=ue[xe],Ie=Se&&Se.name;typeof Ie=="string"&&Yt(D,Se,Ie)}},Tt=function(D,W,ue){if(!ue)try{ue=W.getAttributeNode(D)}catch{ue=null}ta(n.removed,{attribute:ue||null,from:W});try{ue?W.removeAttributeNode(ue):W.removeAttribute(D)}catch{try{W.removeAttribute(D)}catch{}}if(D==="is")if(Ue||fe)try{ht(W)}catch{}else try{W.setAttribute(D,"")}catch{}},re=function(D){const W=_(D);if(W)for(let ue=W.length-1;ue>=0;--ue){const xe=W[ue],Se=xe&&xe.name;typeof Se!="string"||J[et(Se)]||Yt(D,xe,Se)}},G=function(D){const W=[D];for(;W.length>0;){const ue=W.pop();S(ue)===It.element&&re(ue);const Se=v(ue);if(Se)for(let Ie=Se.length-1;Ie>=0;--Ie)W.push(Se[Ie])}},ne=function(D,W){return ze?D==="patchsrc"?!0:D==="for"&&W!=="label"&&W!=="output":!1},ke=function(D){if(!ze)return;const W=[D];for(;W.length>0;){const ue=W.pop(),xe=S(ue);if(xe===It.processingInstruction||xe===It.comment&&At(is,ue.data)){try{y(ue)}catch{}continue}if(xe===It.element){const Ie=ue,ot=et(B(ue));try{Ie.hasAttribute&&Ie.hasAttribute("patchsrc")&&Ie.removeAttribute("patchsrc"),Ie.hasAttribute&&Ie.hasAttribute("for")&&ne("for",ot)&&Ie.removeAttribute("for")}catch{}}const Se=v(ue);if(Se)for(let Ie=Se.length-1;Ie>=0;--Ie)W.push(Se[Ie])}},Ne=function(D){let W=null,ue=null;if(Ke)D="<remove></remove>"+D;else{const Ie=Xo(D,/^[\r\n\t ]+/);ue=Ie&&Ie[0]}Rt==="application/xhtml+xml"&&yt===Je&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const xe=k?j(D):D;if(yt===Je)try{W=new p().parseFromString(xe,Rt)}catch{}if(!W||!W.documentElement){W=q.createDocument(yt,"template",null);try{W.documentElement.innerHTML=Ut?N:xe}catch{}}const Se=W.body||W.documentElement;return D&&ue&&Se.insertBefore(a.createTextNode(ue),Se.childNodes[0]||null),yt===Je?P.call(W,Me?"html":"body")[0]:Me?W.documentElement:Se},Be=function(D){const W=w?w(D):D.ownerDocument;return ae.call(W||D,D,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},qe=function(D){return D=aa(D,z," "),D=aa(D,L," "),D=aa(D,E," "),D},X=function(D){var W;D.normalize();const ue=w?w(D):D.ownerDocument,xe=ae.call(ue||D,D,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Se=xe.nextNode();for(;Se;)Se.data=qe(Se.data),Se=xe.nextNode();const Ie=(W=D.querySelectorAll)===null||W===void 0?void 0:W.call(D,"template");Ie&&Tn(Ie,ot=>{Ae(ot.content)&&X(ot.content)})},he=function(D){const W=A?A(D):null;return typeof W!="string"||et(W)!=="form"?!1:typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||D.attributes!==_(D)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function"||D.nodeType!==g(D)||D.childNodes!==v(D)},Ae=function(D){if(!g||typeof D!="object"||D===null)return!1;try{return g(D)===It.documentFragment}catch{return!1}},Le=function(D){if(!g||typeof D!="object"||D===null)return!1;try{return typeof g(D)=="number"}catch{return!1}};function De(me,D,W){me.length!==0&&Tn(me,ue=>{ue.call(n,D,W,Ot)})}const Ve=function(D,W){return!!(ze&&D.hasChildNodes()&&!Le(D.firstElementChild)&&At(ss,D.textContent)&&At(ss,D.innerHTML)||ze&&D.namespaceURI===Je&&zh[W]&&(Le(D.firstElementChild)||typeof D.textContent=="string"&&At(Wh[W],D.textContent))||D.nodeType===It.processingInstruction||ze&&D.nodeType===It.comment&&At(is,D.data))},ft=function(D,W){if(D instanceof RegExp)return At(D,W);if(D instanceof Function){for(var ue=arguments.length,xe=new Array(ue>2?ue-2:0),Se=2;Se<ue;Se++)xe[Se-2]=arguments[Se];return!!D(W,...xe)}return!1},Nt=function(D,W,ue){if(!Te[W]&&dn(W)&&ft(ve.tagNameCheck,W))return!1;if(Ye&&!st[W]){const xe=b(D),Se=v(D);if(Se&&xe){const Ie=Se.length;for(let ot=Ie-1;ot>=0;--ot){const it=D===ue?C(Se[ot],!0):Se[ot];xe.insertBefore(it,f(D))}}}return ht(D),!0},kt=function(D,W,ue,xe){return D.length===0?W:W===ue||W===xe?Pt(W):W},an=function(D,W){return D===W||b(D)!==null?!1:(gt&&G(D),!0)},Xt=function(D,W){if(De($.beforeSanitizeElements,D,null),an(D,W))return!0;if(he(D))return ht(D),!0;const ue=et(B(D));if(Y=kt($.uponSanitizeElement,Y,le,Re),De($.uponSanitizeElement,D,{tagName:ue,allowedTags:Y}),an(D,W))return!0;if(Ve(D,ue))return ht(D),!0;if(Te[ue]||!(ye.tagCheck instanceof Function&&ye.tagCheck(ue))&&!Y[ue]){const Se=Nt(D,ue,W);return Se===!1&&De($.afterSanitizeElements,D,null),Se}if(S(D)===It.element&&!nn(D)||(ue==="noscript"||ue==="noembed"||ue==="noframes")&&At(Hh,D.innerHTML))return ht(D),!0;if(je&&D.nodeType===It.text){const Se=qe(D.textContent);D.textContent!==Se&&(ta(n.removed,{element:D.cloneNode()}),D.textContent=Se)}return De($.afterSanitizeElements,D,null),!1},jt=function(D,W,ue){if(de[W]||ne(W,D)||Ee&&(W==="id"||W==="name")&&(ue in a||ue in wt))return!1;const xe=J[W]||ye.attributeCheck instanceof Function&&ye.attributeCheck(W,D);return Q&&At(O,W)||we&&At(se,W)?!0:xe?Qe[W]||At(Ce,aa(ue,ee,""))||(W==="src"||W==="xlink:href"||W==="href")&&D!=="script"&&Jo(ue,"data:")===0&&at[D]||te&&!At(oe,aa(ue,ee,""))?!0:!ue:dn(D)&&ft(ve.tagNameCheck,D)&&ft(ve.attributeNameCheck,W,D)||W==="is"&&ve.allowCustomizedBuiltInElements&&ft(ve.tagNameCheck,ue)},un=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),dn=function(D){return!un[na(D)]&&At(ie,D)},Za=function(D,W,ue,xe){if(k&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!ue)switch(m.getAttributeType(D,W)){case"TrustedHTML":return j(xe);case"TrustedScriptURL":return Z(xe)}return xe},Ec=function(D,W,ue,xe){try{ue?D.setAttributeNS(ue,W,xe):D.setAttribute(W,xe),he(D)?ht(D):Zo(n.removed)}catch{Tt(W,D)}},_o=function(D){De($.beforeSanitizeAttributes,D,null);const W=D.attributes;if(!W||he(D))return;J=kt($.uponSanitizeAttribute,J,be,tt);const ue={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J,forceKeepAttr:void 0};let xe=W.length;const Se=et(D.nodeName);for(;xe--;){const Ie=W[xe],ot=Ie.name,it=Ie.namespaceURI,Et=Ie.value,Mt=et(ot),Ja=Et;let Bt=ot==="value"?Ja:wh(Ja);if(ue.attrName=Mt,ue.attrValue=Bt,ue.keepAttr=!0,ue.forceKeepAttr=void 0,De($.uponSanitizeAttribute,D,ue),Bt=ue.attrValue,$e&&(Mt==="id"||Mt==="name")&&Jo(Bt,He)!==0&&(Tt(ot,D,Ie),Bt=He+Bt),ze&&At(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Bt)){Tt(ot,D,Ie);continue}if(Mt==="attributename"&&Xo(Bt,"href")){Tt(ot,D,Ie);continue}if(!ue.forceKeepAttr){if(!ue.keepAttr){Tt(ot,D,Ie);continue}if(!_e&&At(Vh,Bt)){Tt(ot,D,Ie);continue}if(je&&(Bt=qe(Bt)),!jt(Se,Mt,Bt)){Tt(ot,D,Ie);continue}Bt=Za(Se,Mt,it,Bt),Bt!==Ja&&Ec(D,ot,it,Bt)}}De($.afterSanitizeAttributes,D,null)},_a=function(D){let W=null;const ue=Be(D);for(De($.beforeSanitizeShadowDOM,D,null);W=ue.nextNode();)if(De($.uponSanitizeShadowNode,W,null),Xt(W,D),_o(W),Ae(W.content)&&_a(W.content),S(W)===It.element){const xe=x(W);Ae(xe)&&(Xa(xe),_a(xe))}De($.afterSanitizeShadowDOM,D,null)},Xa=function(D){const W=[{node:D,shadow:null}];for(;W.length>0;){const ue=W.pop();if(ue.shadow){_a(ue.shadow);continue}const xe=ue.node,Ie=S(xe)===It.element,ot=v(xe);if(ot)for(let it=ot.length-1;it>=0;--it)W.push({node:ot[it],shadow:null});if(Ie){const it=A?A(xe):null;if(typeof it=="string"&&et(it)==="template"){const Et=xe.content;Ae(Et)&&W.push({node:Et,shadow:null})}}if(Ie){const it=x(xe);Ae(it)&&W.push({node:null,shadow:it},{node:it,shadow:null})}}};return n.sanitize=function(me){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,ue=null,xe=null,Se=null;if(Ut=!me,Ut&&(me="<!-->"),typeof me!="string"&&!Le(me)&&(me=Sh(me),typeof me!="string"))throw jn("dirty is not a string, aborting");if(!n.isSupported)return me;Oe?(Y=Re,J=tt):Vt(D),($.uponSanitizeElement.length>0||$.uponSanitizeAttribute.length>0)&&(Y=Pt(Y)),$.uponSanitizeAttribute.length>0&&(J=Pt(J)),n.removed=[];const Ie=gt&&typeof me!="string"&&Le(me);if(Ie){ke(me);const Et=B(me);if(typeof Et=="string"){const Mt=et(Et);if(!Y[Mt]||Te[Mt])throw Zt(me),jn("root node is forbidden and cannot be sanitized in-place")}if(he(me))throw Zt(me),jn("root node is clobbered and cannot be sanitized in-place");try{Xa(me)}catch(Mt){throw Zt(me),Mt}}else if(Le(me))W=Ne("<!---->"),ue=W.ownerDocument.importNode(me,!0),ue.nodeType===It.element&&ue.nodeName==="BODY"||ue.nodeName==="HTML"?W=ue:W.appendChild(ue),Xa(ue);else{if(!Ue&&!je&&!Me&&me.indexOf("<")===-1)return k&&Ge?j(me):me;if(W=Ne(me),!W)return Ue?null:Ge?N:""}W&&Ke&&ht(W.firstChild);const ot=Ie?me:W;try{const Et=Be(ot);for(;xe=Et.nextNode();)Xt(xe,ot),_o(xe),Ae(xe.content)&&_a(xe.content)}catch(Et){throw Ie&&(Zt(me),Tn(n.removed,Mt=>{Mt.element&&G(Mt.element)})),Et}if(Ie)return Tn(n.removed,Et=>{Et.element&&G(Et.element)}),je&&X(me),me;if(Ue){if(je&&X(W),fe)for(Se=U.call(W.ownerDocument);W.firstChild;)Se.appendChild(W.firstChild);else Se=W;return(J.shadowroot||J.shadowrootmode)&&(Se=M.call(r,Se,!0)),Se}let it=Me?W.outerHTML:W.innerHTML;return Me&&Y["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&At(Fh,W.ownerDocument.doctype.name)&&(it="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
|
|
808
|
-
`+it),je&&(it=qe(it)),k&&Ge?
|
|
807
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ch(e,n){return mh(e)||hh(e,n)||gh(e,n)||fh()}function gh(e,n){if(e){if(typeof e=="string")return Uo(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)?Uo(e,n):void 0}}const Go=Object.entries,Ko=Object.setPrototypeOf,bh=Object.isFrozen,yh=Object.getPrototypeOf,vh=Object.getOwnPropertyDescriptor;let Ct=Object.freeze,bt=Object.seal,Vn=Object.create,Yo=typeof Reflect<"u"&&Reflect,tr=Yo.apply,nr=Yo.construct;Ct||(Ct=function(n){return n}),bt||(bt=function(n){return n}),tr||(tr=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)}),nr||(nr=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),xh=pt(Array.prototype.lastIndexOf),Zo=pt(Array.prototype.pop),ta=pt(Array.prototype.push),_h=pt(Array.prototype.splice),zn=Array.isArray,na=pt(String.prototype.toLowerCase),ar=pt(String.prototype.toString),Xo=pt(String.prototype.match),aa=pt(String.prototype.replace),Jo=pt(String.prototype.indexOf),wh=pt(String.prototype.trim),kh=pt(Number.prototype.toString),Ah=pt(Boolean.prototype.toString),Qo=typeof BigInt>"u"?null:pt(BigInt.prototype.toString),es=typeof Symbol>"u"?null:pt(Symbol.prototype.toString),$t=pt(Object.prototype.hasOwnProperty),ra=pt(Object.prototype.toString),At=pt(RegExp.prototype.test),jn=Nh(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 tr(e,n,r)}}function Nh(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return nr(e,a)}}function Ze(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:na;if(Ko&&Ko(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&&(bh(n)||(n[r]=i),o=i)}e[o]=!0}return e}function Bh(e){for(let n=0;n<e.length;n++)$t(e,n)||(e[n]=null);return e}function Pt(e){const n=Vn(null);for(const r of Go(e)){var a=Ch(r,2);const o=a[0],i=a[1];$t(e,o)&&(zn(i)?n[o]=Bh(i):i&&typeof i=="object"&&i.constructor===Object?n[o]=Pt(i):n[o]=i)}return n}function Sh(e){switch(typeof e){case"string":return e;case"number":return kh(e);case"boolean":return Ah(e);case"bigint":return Qo?Qo(e):"0";case"symbol":return es?es(e):"Symbol()";case"undefined":return ra(e);case"function":case"object":{if(e===null)return ra(e);const n=e,a=Jt(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:ra(r)}return ra(e)}default:return ra(e)}}function Jt(e,n){for(;e!==null;){const r=vh(e,n);if(r){if(r.get)return pt(r.get);if(typeof r.value=="function")return pt(r.value)}e=yh(e)}function a(){return null}return a}function Dh(e){try{return At(e,""),!0}catch{return!1}}const ts=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"]),rr=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"]),or=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"]),Th=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"]),sr=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"]),jh=Ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ns=Ct(["#text"]),as=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"]),ir=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"]),rs=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"]),wa=Ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Eh=bt(/{{[\w\W]*|^[\w\W]*}}/g),Mh=bt(/<%[\w\W]*|^[\w\W]*%>/g),Lh=bt(/\${[\w\W]*/g),$h=bt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rh=bt(/^aria-[\-\w]+$/),os=bt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ph=bt(/^(?:\w+script|data):/i),Ih=bt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fh=bt(/^html$/i),Oh=bt(/^[a-z][.\w]*(-[.\w]+)+$/i),ss=bt(/<[/\w!]/g),is=bt(/<[/\w]/g),Hh=bt(/<\/no(script|embed|frames)/i),Vh=bt(/\/>/i),It={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ls=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],zh=Ct(Ze({},ls)),Wh=(function(){const e={};return Tn(ls,n=>{e[n]=bt(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),Ct(e)})(),qh=function(){return typeof window>"u"?null:window},Uh=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}},cs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},vn=function(n,a,r,o){return $t(n,a)&&zn(n[a])?Ze(o.base?Pt(o.base):{},n[a],o.transform):r},lr=function(n,a,r){const o=$t(n,a)?n[a]:void 0;return o&&typeof o=="object"?Pt(o):r()};function us(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qh();const n=me=>us(me);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==It.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=Jt(h,"cloneNode"),y=Jt(h,"remove"),f=Jt(h,"nextSibling"),v=Jt(h,"childNodes"),b=Jt(h,"parentNode"),x=Jt(h,"shadowRoot"),_=Jt(h,"attributes"),g=l&&l.prototype?Jt(l.prototype,"nodeType"):null,A=l&&l.prototype?Jt(l.prototype,"nodeName"):null,w=l&&l.prototype?Jt(l.prototype,"ownerDocument"):null,S=function(D){return g?g(D):D.nodeType},N=function(D){return A?A(D):D.nodeName};if(typeof i=="function"){const me=a.createElement("template");me.content&&me.content.ownerDocument&&(a=me.content.ownerDocument)}let k,B="",V,H=!1,j=0;const F=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(D){F(),j++;try{return k.createHTML(D)}finally{j--}},Y=function(D){F(),j++;try{return k.createScriptURL(D)}finally{j--}},R=function(){return H||(V=Uh(m,o),H=!0),V},O=a,W=O.implementation,le=O.createNodeIterator,q=O.createDocumentFragment,P=O.getElementsByTagName,M=r.importNode;let L=cs();n.isSupported=typeof Go=="function"&&typeof b=="function"&&W&&W.createHTMLDocument!==void 0;const z=Eh,$=Mh,E=Lh,I=$h,oe=Rh,re=Ph,ee=Ih,se=Oh;let Ce=os,Z=null;const ie=Ze({},[...ts,...rr,...or,...sr,...ns]);let J=null;const be=Ze({},[...as,...ir,...rs,...wa]);let ve=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,de=null;const ye=Object.seal(Vn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let we=!0,Q=!0,te=!1,_e=!0,je=!1,ze=!0,Me=!1,Oe=!1,Re=null,tt=null,Ke=!1,Ue=!1,fe=!1,Ge=!1,Ee=!0,$e=!1;const He="user-content-";let Ye=!0,gt=!1,dt={},st=null;const nt=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 at=null;const Fe=Ze({},["audio","video","img","source","image","track"]);let Qe=null;const Xe=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",Pe="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let yt=Je,Ut=!1,mt=null;const xt=Ze({},[rt,Pe,Je],ar),Ft=Ct(["mi","mo","mn","ms","mtext"]);let Gt=Ze({},Ft);const _t=Ct(["annotation-xml"]);let lt=Ze({},_t);const Kt=Ze({},["title","style","font","a","script"]);let Rt=null;const yn=["application/xhtml+xml","text/html"],Dn="text/html";let et=null,Ot=null;const wt=a.createElement("form"),Ht=function(D){return D instanceof RegExp||D instanceof Function},Vt=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ot&&Ot===D)return;(!D||typeof D!="object")&&(D={}),D=Pt(D),Rt=yn.indexOf(D.PARSER_MEDIA_TYPE)===-1?Dn:D.PARSER_MEDIA_TYPE,et=Rt==="application/xhtml+xml"?ar:na,Z=vn(D,"ALLOWED_TAGS",ie,{transform:et}),J=vn(D,"ALLOWED_ATTR",be,{transform:et}),mt=vn(D,"ALLOWED_NAMESPACES",xt,{transform:ar}),Qe=vn(D,"ADD_URI_SAFE_ATTR",Xe,{transform:et,base:Xe}),at=vn(D,"ADD_DATA_URI_TAGS",Fe,{transform:et,base:Fe}),st=vn(D,"FORBID_CONTENTS",nt,{transform:et}),Te=vn(D,"FORBID_TAGS",Pt({}),{transform:et}),de=vn(D,"FORBID_ATTR",Pt({}),{transform:et}),dt=$t(D,"USE_PROFILES")?D.USE_PROFILES&&typeof D.USE_PROFILES=="object"?Pt(D.USE_PROFILES):D.USE_PROFILES:!1,we=D.ALLOW_ARIA_ATTR!==!1,Q=D.ALLOW_DATA_ATTR!==!1,te=D.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=D.SAFE_FOR_TEMPLATES||!1,ze=D.SAFE_FOR_XML!==!1,Me=D.WHOLE_DOCUMENT||!1,Ue=D.RETURN_DOM||!1,fe=D.RETURN_DOM_FRAGMENT||!1,Ge=D.RETURN_TRUSTED_TYPE||!1,Ke=D.FORCE_BODY||!1,Ee=D.SANITIZE_DOM!==!1,$e=D.SANITIZE_NAMED_PROPS||!1,Ye=D.KEEP_CONTENT!==!1,gt=D.IN_PLACE||!1,Ce=Dh(D.ALLOWED_URI_REGEXP)?D.ALLOWED_URI_REGEXP:os,yt=typeof D.NAMESPACE=="string"?D.NAMESPACE:Je,Gt=lr(D,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ze({},Ft)),lt=lr(D,"HTML_INTEGRATION_POINTS",()=>Ze({},_t));const U=lr(D,"CUSTOM_ELEMENT_HANDLING",()=>Vn(null));if(ve=Vn(null),$t(U,"tagNameCheck")&&Ht(U.tagNameCheck)&&(ve.tagNameCheck=U.tagNameCheck),$t(U,"attributeNameCheck")&&Ht(U.attributeNameCheck)&&(ve.attributeNameCheck=U.attributeNameCheck),$t(U,"allowCustomizedBuiltInElements")&&typeof U.allowCustomizedBuiltInElements=="boolean"&&(ve.allowCustomizedBuiltInElements=U.allowCustomizedBuiltInElements),bt(ve),je&&(Q=!1),fe&&(Ue=!0),dt&&(Z=Ze({},ns),J=Vn(null),dt.html===!0&&(Ze(Z,ts),Ze(J,as)),dt.svg===!0&&(Ze(Z,rr),Ze(J,ir),Ze(J,wa)),dt.svgFilters===!0&&(Ze(Z,or),Ze(J,ir),Ze(J,wa)),dt.mathMl===!0&&(Ze(Z,sr),Ze(J,rs),Ze(J,wa))),ye.tagCheck=null,ye.attributeCheck=null,$t(D,"ADD_TAGS")&&(typeof D.ADD_TAGS=="function"?ye.tagCheck=D.ADD_TAGS:zn(D.ADD_TAGS)&&(Z===ie&&(Z=Pt(Z)),Ze(Z,D.ADD_TAGS,et))),$t(D,"ADD_ATTR")&&(typeof D.ADD_ATTR=="function"?ye.attributeCheck=D.ADD_ATTR:zn(D.ADD_ATTR)&&(J===be&&(J=Pt(J)),Ze(J,D.ADD_ATTR,et))),$t(D,"ADD_FORBID_CONTENTS")&&zn(D.ADD_FORBID_CONTENTS)&&(st===nt&&(st=Pt(st)),Ze(st,D.ADD_FORBID_CONTENTS,et)),Ye&&(Z["#text"]=!0),Me&&Ze(Z,["html","head","body"]),Z.table&&(Ze(Z,["tbody"]),delete Te.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ue=k;k=D.TRUSTED_TYPES_POLICY;try{B=T("")}catch(xe){throw k=ue,xe}}else D.TRUSTED_TYPES_POLICY===null?(k=void 0,B=""):(k===void 0&&(k=R()),k&&typeof B=="string"&&(B=T("")));Ct&&Ct(D),Ot=D},zt=Ze({},[...rr,...or,...Th]),sn=Ze({},[...sr,...jh]),ln=function(D,U,ue){return U.namespaceURI===Je?D==="svg":U.namespaceURI===rt?D==="svg"&&(ue==="annotation-xml"||Gt[ue]):!!zt[D]},Wt=function(D,U,ue){return U.namespaceURI===Je?D==="math":U.namespaceURI===Pe?D==="math"&<[ue]:!!sn[D]},cn=function(D,U,ue){return U.namespaceURI===Pe&&!lt[ue]||U.namespaceURI===rt&&!Gt[ue]?!1:!sn[D]&&(Kt[D]||!zt[D])},nn=function(D){let U=b(D);(!U||!U.tagName)&&(U={namespaceURI:yt,tagName:"template"});const ue=na(D.tagName),xe=na(U.tagName);return mt[D.namespaceURI]?D.namespaceURI===Pe?ln(ue,U,xe):D.namespaceURI===rt?Wt(ue,U,xe):D.namespaceURI===Je?cn(ue,U,xe):!!(Rt==="application/xhtml+xml"&&mt[D.namespaceURI]):!1},ht=function(D){ta(n.removed,{element:D});try{b(D).removeChild(D)}catch{if(y(D),!b(D))throw jn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Yt=function(D,U,ue){try{D.removeAttributeNode(U)}catch{try{D.removeAttribute(ue)}catch{}}},Zt=function(D){G(D);const U=v(D);if(U){const xe=[];Tn(U,Se=>{ta(xe,Se)}),Tn(xe,Se=>{try{y(Se)}catch{}})}const ue=_(D);if(ue)for(let xe=ue.length-1;xe>=0;--xe){const Se=ue[xe],Ie=Se&&Se.name;typeof Ie=="string"&&Yt(D,Se,Ie)}},Tt=function(D,U,ue){if(!ue)try{ue=U.getAttributeNode(D)}catch{ue=null}ta(n.removed,{attribute:ue||null,from:U});try{ue?U.removeAttributeNode(ue):U.removeAttribute(D)}catch{try{U.removeAttribute(D)}catch{}}if(D==="is")if(Ue||fe)try{ht(U)}catch{}else try{U.setAttribute(D,"")}catch{}},ae=function(D){const U=_(D);if(U)for(let ue=U.length-1;ue>=0;--ue){const xe=U[ue],Se=xe&&xe.name;typeof Se!="string"||J[et(Se)]||Yt(D,xe,Se)}},G=function(D){const U=[D];for(;U.length>0;){const ue=U.pop();S(ue)===It.element&&ae(ue);const Se=v(ue);if(Se)for(let Ie=Se.length-1;Ie>=0;--Ie)U.push(Se[Ie])}},ne=function(D,U){return ze?D==="patchsrc"?!0:D==="for"&&U!=="label"&&U!=="output":!1},ke=function(D){if(!ze)return;const U=[D];for(;U.length>0;){const ue=U.pop(),xe=S(ue);if(xe===It.processingInstruction||xe===It.comment&&At(is,ue.data)){try{y(ue)}catch{}continue}if(xe===It.element){const Ie=ue,ot=et(N(ue));try{Ie.hasAttribute&&Ie.hasAttribute("patchsrc")&&Ie.removeAttribute("patchsrc"),Ie.hasAttribute&&Ie.hasAttribute("for")&&ne("for",ot)&&Ie.removeAttribute("for")}catch{}}const Se=v(ue);if(Se)for(let Ie=Se.length-1;Ie>=0;--Ie)U.push(Se[Ie])}},Ne=function(D){let U=null,ue=null;if(Ke)D="<remove></remove>"+D;else{const Ie=Xo(D,/^[\r\n\t ]+/);ue=Ie&&Ie[0]}Rt==="application/xhtml+xml"&&yt===Je&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const xe=k?T(D):D;if(yt===Je)try{U=new p().parseFromString(xe,Rt)}catch{}if(!U||!U.documentElement){U=W.createDocument(yt,"template",null);try{U.documentElement.innerHTML=Ut?B:xe}catch{}}const Se=U.body||U.documentElement;return D&&ue&&Se.insertBefore(a.createTextNode(ue),Se.childNodes[0]||null),yt===Je?P.call(U,Me?"html":"body")[0]:Me?U.documentElement:Se},Be=function(D){const U=w?w(D):D.ownerDocument;return le.call(U||D,D,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},qe=function(D){return D=aa(D,z," "),D=aa(D,$," "),D=aa(D,E," "),D},X=function(D){var U;D.normalize();const ue=w?w(D):D.ownerDocument,xe=le.call(ue||D,D,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Se=xe.nextNode();for(;Se;)Se.data=qe(Se.data),Se=xe.nextNode();const Ie=(U=D.querySelectorAll)===null||U===void 0?void 0:U.call(D,"template");Ie&&Tn(Ie,ot=>{Ae(ot.content)&&X(ot.content)})},he=function(D){const U=A?A(D):null;return typeof U!="string"||et(U)!=="form"?!1:typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||D.attributes!==_(D)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function"||D.nodeType!==g(D)||D.childNodes!==v(D)},Ae=function(D){if(!g||typeof D!="object"||D===null)return!1;try{return g(D)===It.documentFragment}catch{return!1}},Le=function(D){if(!g||typeof D!="object"||D===null)return!1;try{return typeof g(D)=="number"}catch{return!1}};function De(me,D,U){me.length!==0&&Tn(me,ue=>{ue.call(n,D,U,Ot)})}const Ve=function(D,U){return!!(ze&&D.hasChildNodes()&&!Le(D.firstElementChild)&&At(ss,D.textContent)&&At(ss,D.innerHTML)||ze&&D.namespaceURI===Je&&zh[U]&&(Le(D.firstElementChild)||typeof D.textContent=="string"&&At(Wh[U],D.textContent))||D.nodeType===It.processingInstruction||ze&&D.nodeType===It.comment&&At(is,D.data))},ft=function(D,U){if(D instanceof RegExp)return At(D,U);if(D instanceof Function){for(var ue=arguments.length,xe=new Array(ue>2?ue-2:0),Se=2;Se<ue;Se++)xe[Se-2]=arguments[Se];return!!D(U,...xe)}return!1},Nt=function(D,U,ue){if(!Te[U]&&dn(U)&&ft(ve.tagNameCheck,U))return!1;if(Ye&&!st[U]){const xe=b(D),Se=v(D);if(Se&&xe){const Ie=Se.length;for(let ot=Ie-1;ot>=0;--ot){const it=D===ue?C(Se[ot],!0):Se[ot];xe.insertBefore(it,f(D))}}}return ht(D),!0},kt=function(D,U,ue,xe){return D.length===0?U:U===ue||U===xe?Pt(U):U},an=function(D,U){return D===U||b(D)!==null?!1:(gt&&G(D),!0)},Xt=function(D,U){if(De(L.beforeSanitizeElements,D,null),an(D,U))return!0;if(he(D))return ht(D),!0;const ue=et(N(D));if(Z=kt(L.uponSanitizeElement,Z,ie,Re),De(L.uponSanitizeElement,D,{tagName:ue,allowedTags:Z}),an(D,U))return!0;if(Ve(D,ue))return ht(D),!0;if(Te[ue]||!(ye.tagCheck instanceof Function&&ye.tagCheck(ue))&&!Z[ue]){const Se=Nt(D,ue,U);return Se===!1&&De(L.afterSanitizeElements,D,null),Se}if(S(D)===It.element&&!nn(D)||(ue==="noscript"||ue==="noembed"||ue==="noframes")&&At(Hh,D.innerHTML))return ht(D),!0;if(je&&D.nodeType===It.text){const Se=qe(D.textContent);D.textContent!==Se&&(ta(n.removed,{element:D.cloneNode()}),D.textContent=Se)}return De(L.afterSanitizeElements,D,null),!1},jt=function(D,U,ue){if(de[U]||ne(U,D)||Ee&&(U==="id"||U==="name")&&(ue in a||ue in wt))return!1;const xe=J[U]||ye.attributeCheck instanceof Function&&ye.attributeCheck(U,D);return Q&&At(I,U)||we&&At(oe,U)?!0:xe?Qe[U]||At(Ce,aa(ue,ee,""))||(U==="src"||U==="xlink:href"||U==="href")&&D!=="script"&&Jo(ue,"data:")===0&&at[D]||te&&!At(re,aa(ue,ee,""))?!0:!ue:dn(D)&&ft(ve.tagNameCheck,D)&&ft(ve.attributeNameCheck,U,D)||U==="is"&&ve.allowCustomizedBuiltInElements&&ft(ve.tagNameCheck,ue)},un=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),dn=function(D){return!un[na(D)]&&At(se,D)},Za=function(D,U,ue,xe){if(k&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!ue)switch(m.getAttributeType(D,U)){case"TrustedHTML":return T(xe);case"TrustedScriptURL":return Y(xe)}return xe},Ec=function(D,U,ue,xe){try{ue?D.setAttributeNS(ue,U,xe):D.setAttribute(U,xe),he(D)?ht(D):Zo(n.removed)}catch{Tt(U,D)}},_o=function(D){De(L.beforeSanitizeAttributes,D,null);const U=D.attributes;if(!U||he(D))return;J=kt(L.uponSanitizeAttribute,J,be,tt);const ue={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J,forceKeepAttr:void 0};let xe=U.length;const Se=et(D.nodeName);for(;xe--;){const Ie=U[xe],ot=Ie.name,it=Ie.namespaceURI,Et=Ie.value,Mt=et(ot),Ja=Et;let Bt=ot==="value"?Ja:wh(Ja);if(ue.attrName=Mt,ue.attrValue=Bt,ue.keepAttr=!0,ue.forceKeepAttr=void 0,De(L.uponSanitizeAttribute,D,ue),Bt=ue.attrValue,$e&&(Mt==="id"||Mt==="name")&&Jo(Bt,He)!==0&&(Tt(ot,D,Ie),Bt=He+Bt),ze&&At(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Bt)){Tt(ot,D,Ie);continue}if(Mt==="attributename"&&Xo(Bt,"href")){Tt(ot,D,Ie);continue}if(!ue.forceKeepAttr){if(!ue.keepAttr){Tt(ot,D,Ie);continue}if(!_e&&At(Vh,Bt)){Tt(ot,D,Ie);continue}if(je&&(Bt=qe(Bt)),!jt(Se,Mt,Bt)){Tt(ot,D,Ie);continue}Bt=Za(Se,Mt,it,Bt),Bt!==Ja&&Ec(D,ot,it,Bt)}}De(L.afterSanitizeAttributes,D,null)},_a=function(D){let U=null;const ue=Be(D);for(De(L.beforeSanitizeShadowDOM,D,null);U=ue.nextNode();)if(De(L.uponSanitizeShadowNode,U,null),Xt(U,D),_o(U),Ae(U.content)&&_a(U.content),S(U)===It.element){const xe=x(U);Ae(xe)&&(Xa(xe),_a(xe))}De(L.afterSanitizeShadowDOM,D,null)},Xa=function(D){const U=[{node:D,shadow:null}];for(;U.length>0;){const ue=U.pop();if(ue.shadow){_a(ue.shadow);continue}const xe=ue.node,Ie=S(xe)===It.element,ot=v(xe);if(ot)for(let it=ot.length-1;it>=0;--it)U.push({node:ot[it],shadow:null});if(Ie){const it=A?A(xe):null;if(typeof it=="string"&&et(it)==="template"){const Et=xe.content;Ae(Et)&&U.push({node:Et,shadow:null})}}if(Ie){const it=x(xe);Ae(it)&&U.push({node:null,shadow:it},{node:it,shadow:null})}}};return n.sanitize=function(me){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,ue=null,xe=null,Se=null;if(Ut=!me,Ut&&(me="<!-->"),typeof me!="string"&&!Le(me)&&(me=Sh(me),typeof me!="string"))throw jn("dirty is not a string, aborting");if(!n.isSupported)return me;Oe?(Z=Re,J=tt):Vt(D),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(Z=Pt(Z)),L.uponSanitizeAttribute.length>0&&(J=Pt(J)),n.removed=[];const Ie=gt&&typeof me!="string"&&Le(me);if(Ie){ke(me);const Et=N(me);if(typeof Et=="string"){const Mt=et(Et);if(!Z[Mt]||Te[Mt])throw Zt(me),jn("root node is forbidden and cannot be sanitized in-place")}if(he(me))throw Zt(me),jn("root node is clobbered and cannot be sanitized in-place");try{Xa(me)}catch(Mt){throw Zt(me),Mt}}else if(Le(me))U=Ne("<!---->"),ue=U.ownerDocument.importNode(me,!0),ue.nodeType===It.element&&ue.nodeName==="BODY"||ue.nodeName==="HTML"?U=ue:U.appendChild(ue),Xa(ue);else{if(!Ue&&!je&&!Me&&me.indexOf("<")===-1)return k&&Ge?T(me):me;if(U=Ne(me),!U)return Ue?null:Ge?B:""}U&&Ke&&ht(U.firstChild);const ot=Ie?me:U;try{const Et=Be(ot);for(;xe=Et.nextNode();)Xt(xe,ot),_o(xe),Ae(xe.content)&&_a(xe.content)}catch(Et){throw Ie&&(Zt(me),Tn(n.removed,Mt=>{Mt.element&&G(Mt.element)})),Et}if(Ie)return Tn(n.removed,Et=>{Et.element&&G(Et.element)}),je&&X(me),me;if(Ue){if(je&&X(U),fe)for(Se=q.call(U.ownerDocument);U.firstChild;)Se.appendChild(U.firstChild);else Se=U;return(J.shadowroot||J.shadowrootmode)&&(Se=M.call(r,Se,!0)),Se}let it=Me?U.outerHTML:U.innerHTML;return Me&&Z["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&At(Fh,U.ownerDocument.doctype.name)&&(it="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
|
|
808
|
+
`+it),je&&(it=qe(it)),k&&Ge?T(it):it},n.setConfig=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vt(me),Oe=!0,Re=Z,tt=J},n.clearConfig=function(){Ot=null,Oe=!1,Re=null,tt=null,k=V,B=""},n.isValidAttribute=function(me,D,U){Ot||Vt({});const ue=et(me),xe=et(D);return jt(ue,xe,U)},n.addHook=function(me,D){typeof D=="function"&&$t(L,me)&&ta(L[me],D)},n.removeHook=function(me,D){if($t(L,me)){if(D!==void 0){const U=xh(L[me],D);return U===-1?void 0:_h(L[me],U,1)[0]}return Zo(L[me])}},n.removeHooks=function(me){$t(L,me)&&(L[me]=[])},n.removeAllHooks=function(){L=cs()},n}var Gh=us();const Kh=/^(?:[a-z]+:)?\/\//i,Yh="__ihab_core_asset_base_url__";function Zh(){return globalThis[Yh]??""}function cr(e){const n=String(e||"").trim();if(!n)return"";if(Kh.test(n)||n.startsWith("data:")||n.startsWith("blob:"))return n;const a=n.startsWith("/")?n:`/${n}`,r=Zh();return r?`${r}${a}`:a}const ds="__ihab_core_storage_resolvers__";function oa(){return globalThis[ds]??null}function Xh(e){globalThis[ds]=e}let ps=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 Jh(e){Xh(e)}function ms(e,n){if(!e)return null;const a=oa();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function hs(e){if(!e)return null;const n=oa();if(!n)throw new ps("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function fs(e){const n=oa();if(!n)throw new ps("downloadSound");return n.download(e)}function Qh(){return oa()?.noiseBaseUrl??"/sounds/noise"}function Cs(){const e=Number(oa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function e0(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 gs="__ihab_core_tts_config__";function ur(){return globalThis[gs]?.urlResolver??null}function t0(){return globalThis[gs]?.fallbackUrlResolver??null}const n0="__ihab_core_pronunciation_resolver__";function a0(){return globalThis[n0]??null}let xn=null;const sa=new WeakMap,dr=new WeakMap,pr=new WeakMap;let bs=!1;const ys=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function r0(){if(bs||typeof document>"u")return;bs=!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 vs(){if(xn)return xn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(xn=new e,r0(),xn):null}catch{return null}}function mr(){try{xn?.resume()}catch{}}function hr(e,n){const a=sa.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=ys(dr.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 sa.set(n,l),l}catch{return null}}function ka(e){if(!e)return Promise.resolve(null);const n=sa.get(e);if(n)return Promise.resolve(n.analyser);const a=vs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(hr(a,e)?.analyser??null);const r=pr.get(e);if(r)return r;const o=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?hr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{pr.delete(e)});return pr.set(e,o),o}function o0(e){if(!e)return null;const n=sa.get(e);if(n)return n.analyser;const a=vs();return a?a.state==="running"?hr(a,e)?.analyser??null:(ka(e),null):null}function _n(e,n){const a=ys(n);dr.set(e,a);const r=sa.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 Aa(e){return dr.get(e)??e.volume}function s0(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 i0="__ihab_core_image_config__";function Wn(){return globalThis[i0]??null}const xs="word_image_existence_map_v1";let En=null;const Na=new Map;function l0(){if(En)return En;try{const e=typeof localStorage<"u"?localStorage.getItem(xs):null,n=e?JSON.parse(e):null;En=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{En={}}return En}let fr=null;function c0(){fr||(fr=setTimeout(()=>{fr=null;try{typeof localStorage<"u"&&En&&localStorage.setItem(xs,JSON.stringify(En))}catch{}},200))}function u0(e,n){return`${e}_${n??1}`}async function _s(e,n){const a=l0(),r=u0(e,n);if(r in a)return a[r];if(Na.has(r))return Na.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:e0(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Na.delete(r),c===null?!1:(a[r]=c,c0(),c)));return Na.set(r,l),l}const ws=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ks=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],d0=["","\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 ia(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 p0(e){const n=ia(e[0]||"");return n?ws[n.cho]:""}function m0(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],a=l=>ws.includes(l),r=l=>ks.includes(l),o=n.map(l=>a(l)?"cho":r(l)?"jung":ia(l)?"syl":"other"),i=n.map(l=>ia(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(p0(m)!==n[p]){d=!1;break}}else if(h==="jung"){const C=ia(m);if(!C||ks[C.jung]!==n[p]){d=!1;break}}else{const C=i[p];if(C&&C.jong===0){const y=ia(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 h0={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(h0).map(([e,n])=>[n.join(""),d0[Number(e)]]));const f0="word_pair_index_v2",C0="word_pair_index_sig_v2";let Ba=null;function g0(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(f0),n=localStorage.getItem(C0);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function b0(){if(Ba)return Ba;const e=g0();return e?(Ba=e.index,e.sig,Ba):null}const y0={\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"}},Cr=/[ㄱ-ㅎ]/,v0=/[ㅏ-ㅣ]/;function As(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||Cr.test(a)||v0.test(a))return a}return null}function x0(e){const n=As(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Cr.test(n)?"\uC774":"\uAC00"}function _0(e){return`${e}${x0(e)}`}function w0(e){const n=As(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Cr.test(n)?"\uC744":"\uB97C"}function k0(e){return`${e}${w0(e)}`}function A0(e,n,a){const r=e.slice(),[o]=r.splice(n,1);return r.splice(a,0,o),r}function la(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 N0=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof Lt?.t=="function"?Lt.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function Ns(e,n){if(n===void 0&&(n=N0()),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 B0="__ihab_core_word_pool__";function S0(){return globalThis[B0]??null}const Bs=globalThis;function Ss(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function D0(e){Ss("time",()=>Bs.__ihabTrainingTimeLogger?.(e))}function T0(e){Ss("completion",()=>Bs.__ihabTrainingCompletionLogger?.(e))}function Qt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function j0(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 E0(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Qt(r.contextCode)??Qt(r.itemId)??Qt(r.itemCode)??Qt(r.id),question:Qt(r.question)??Qt(r.sentence)??Qt(r.word)??Qt(r.targetSyllable),answer:Qt(r.answer),selected:Qt(r.selectedText)??Qt(r.selected),correct:j0(r)}}):[]}const gr=globalThis;async function M0(){try{return await gr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function Ds(e){const n=a=>{};try{const a=gr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Sa(e){try{gr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function L0(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 br(new Date)}function qn(){return R0(Mn())}const $0=540*60*1e3;function Ts(e,n,a){return new Date(Date.UTC(e,n,a)-$0)}function R0(e){const[n,a,r]=e.split("-").map(Number);return new Date(n,(a||1)-1,r||1)}function br(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 js(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 Es(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:o=!1,fallback:i="\u2014"}=n;if(!e)return i;const l=br(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 ca(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function Ms(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 yr(e){return(e??0).toLocaleString("ko-KR")}const P0=[{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"}]}],I0=[{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 Ls(){return P0}function F0(){return I0}const O0=[],H0=[],V0=[],z0=[];function W0(){return{LISTEN_IN_NOISE:O0,SHORT_STORY:H0,LONG_STORY:V0,ORDERING_SENTENCE:z0}}const q0=[{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."}],$s={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function U0(e){return q0.map(n=>{const a=$s[n.key];return a?{...n,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:n})}let Da=null,Rs=null,Ps=null;function G0(){const e=S0();if(e&&e.entries.length>0){const n=b0();if(Da&&Rs===e&&Ps===n)return Da;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 Da=r,Rs=e,Ps=n,Da}return[]}new Proxy([],{get(e,n){const a=G0(),r=a[n];return typeof r=="function"?r.bind(a):r}});const K0="0.144.0";function Y0(e){return typeof window>"u"?"":Gh.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function Z0(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=cr(e):/^(Logo|Symbol)/i.test(d)?p=cr(`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=Y0(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 We(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=ph(C),{iconToUse:f,mode:v,svgText:b,blobUrl:x}=Z0(C),_=(S,B={})=>t.jsx("span",{className:d,style:c,...B,children:S}),g=(S,B={})=>t.jsx("img",{src:S,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 S={"--icon-url":x?`url(${x})`:`url(${f})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return _(t.jsx("span",{className:m,style:S}),{"aria-hidden":"true"})}return v==="img"?_(g(f,{onError:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="inline"?_(t.jsx("span",{className:h,dangerouslySetInnerHTML:b?{__html:b}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return g(cr(n),{style:c,onError:S=>{S.currentTarget.onerror=null,S.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 X0({icon:e,emoji:n,title:a,message:r,hint:o,action:i,compact:l,className:c}){return t.jsxs("div",{className:ge("empty-state",l&&"empty-state--compact",c),children:[n&&t.jsx("span",{className:"empty-state__emoji",children:n}),e&&t.jsx(We,{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(We,{icon:i.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:i.label})]})]})}function J0({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:o,className:i}){const{t:l}=pe.useTranslation();return t.jsxs("div",{className:ge("empty-state","error-state",i),role:"alert",children:[t.jsx(We,{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(We,{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 Q0({icon:e,title:n,description:a,cta:r,tone:o="main",disabled:i=!1,onClick:l,className:c=""}){const u=()=>{i||l?.()};return t.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":n,onClick:u,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),u())},className:ge("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(We,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{className:"action-card__title",children:n}),t.jsx("p",{className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(We,{icon:"arrow-right",size:18})})]})]})})}function e2({as:e="div",className:n="",children:a,storage:r,...o}){r&&Jh({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=ge("ihabdevteam-core-scope",n);return t.jsx(e,{className:i,...o,children:a})}function t2({title:e="",lines:n=[],notices:a=null,children:r,variant:o="default",dismissible:i=!1,className:l=""}){const{t:c}=pe.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 vr(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 Ta=!1;function Is(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),!Ta&&typeof document<"u"&&(document.addEventListener("keydown",Is),Ta=!0),()=>{const n=Un.lastIndexOf(e);n>=0&&Un.splice(n,1),Un.length===0&&Ta&&typeof document<"u"&&(document.removeEventListener("keydown",Is),Ta=!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,b]=s.useState({position:"fixed",left:0,top:-9999}),[x,_]=s.useState(!1),[g,A]=s.useState("bottom"),[w,S]=s.useState(!1),[B,k]=s.useState(!1),N=!n&&!a,V=s.useCallback((I=!1)=>{if(B&&h)return;const q=a?a.getBoundingClientRect():n;if(!q||!f.current)return;const ae=f.current,{offsetWidth:U,offsetHeight:P}=ae,M=window.innerWidth,$=window.innerHeight,z=M-q.right,L=q.left,E=q.top,O=$-q.bottom;let se=0,oe=0,ee="top";if(E>=P+r)ee="top",oe=q.top-r-P,se=q.left+q.width/2-U/2;else if(O>=P+r)ee="bottom",oe=q.bottom+r,se=q.left+q.width/2-U/2;else if(z>=U+r)ee="right",se=q.right+r,oe=q.top+q.height/2-P/2;else if(L>=U+r)ee="left",se=q.left-r-U,oe=q.top+q.height/2-P/2;else{const le=Math.max(E,O,z,L);le===E?(ee="top",oe=q.top-r-P,se=q.left+q.width/2-U/2):le===O?(ee="bottom",oe=q.bottom+r,se=q.left+q.width/2-U/2):le===z?(ee="right",se=q.right+r,oe=q.top+q.height/2-P/2):(ee="left",se=q.left-r-U,oe=q.top+q.height/2-P/2)}const ie=Number.isFinite(Number(o))?Number(o):8;se=Math.min(Math.max(se,ie),M-U-ie),oe=Math.min(Math.max(oe,ie),$-P-ie);const Ce=Math.round(se),Y=Math.round(oe);I&&f.current?(f.current.style.left=`${Ce}px`,f.current.style.top=`${Y}px`,f.current.dataset.placement=ee):(A(ee||g),b({position:"fixed",left:Ce,top:Y}),S(!0))},[B,h,a,n,r,o,g]);s.useLayoutEffect(()=>{if(N)return;if(B&&h){b({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),S(!0);return}V();const I=requestAnimationFrame(()=>V());return()=>cancelAnimationFrame(I)},[n,a,r,p,o,N,B,h,V]),s.useEffect(()=>{if(N||B&&h||!f.current||typeof ResizeObserver>"u")return;const I=new ResizeObserver(()=>{n&&V()});return I.observe(f.current),()=>I.disconnect()},[n,p,o,N,B,h,V]),s.useEffect(()=>{if(N||B&&h)return;const I=()=>V(!0),q=ae=>{if(!a&&i){const U=ae.target;if(U&&f.current&&f.current.contains(U))return;try{if(U&&U.closest&&U.closest("[data-tooltip-ignore]"))return}catch{}j.current(!0);return}I()};return window.addEventListener("resize",I),document.addEventListener("scroll",q,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",I),document.removeEventListener("scroll",q,{capture:!0})}},[n,a,i,r,p,o,N,B,h,V]),s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const I=window.matchMedia("(max-width: 768px)"),q=()=>k(!!I.matches);q();try{I.addEventListener?I.addEventListener("change",q):I.addListener(q)}catch{try{I.addListener(q)}catch{}}return()=>{try{I.removeEventListener?I.removeEventListener("change",q):I.removeListener(q)}catch{}}},[]);const H=s.useRef(!1),T=s.useRef(null),F=s.useCallback((I=!1)=>{if(i&&!(x||H.current)){if(H.current=!0,I){_(!0);try{i&&i()}catch{H.current=!1,_(!1)}return}_(!0),T.current=setTimeout(()=>{T.current=null;try{i&&i()}catch{H.current=!1,_(!1)}},200)}},[x,i,_]);s.useEffect(()=>()=>{T.current&&clearTimeout(T.current)},[]),s.useEffect(()=>{if(N)return;const I=U=>{const P=f.current;if(!P)return;const M=U.target;if(M&&!P.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&F(!0)}},q=U=>{const P=f.current;if(!P)return;const M=U.target;if(M&&!P.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&F(!0)}},ae=U=>{if(U.key==="Tab"){const P=f.current;if(!P)return;const M=P.querySelectorAll(Ln);if(!M||M.length===0)return;const $=M[0],z=M[M.length-1],L=document.activeElement;U.shiftKey?L===$&&(U.preventDefault(),z.focus()):L===z&&(U.preventDefault(),$.focus())}};return document.addEventListener("pointerdown",I,!0),document.addEventListener("click",q,!0),document.addEventListener("keydown",ae),()=>{document.removeEventListener("pointerdown",I,!0),document.removeEventListener("click",q,!0),document.removeEventListener("keydown",ae)}},[i,l,F,N]);const j=s.useRef(F);s.useEffect(()=>{j.current=F});const Z=!!i;s.useEffect(()=>{if(!(N||!Z))return $n(()=>j.current())},[N,Z]),s.useEffect(()=>{const I=()=>{F(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",I),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",I)}},[F]);const R=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":g,"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 R;if(m||B&&h){const I=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&F(!0)}}),R]});return qt.createPortal(I,document.body)}return qt.createPortal(R,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}=pe.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 ce(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:b=!1,disabled:x=!1,useLabel:_=!0,useBorder:g=!0,useBG:A=!0,useDisabledCovered:w=!1,useDisabledInvisible:S=!1,width:B,minWidth:k,onClick:N,onDisabledClick:V,showTooltipInfo:H=!1,tooltipInfoText:T=null,tooltipDescription:F=null,tooltipOnly:j=!1,iconSize:Z="medium",iconColor:R,shape:I="rounded",color:q,className:ae,...U}=e,P=typeof n=="string"&&isNaN(Number(n))?n.toLowerCase():String(Number(n)||48),M=P.match(/^\d+$/)?`button${P}`:`button-${P}`,$=Number(n),z=!isNaN($)&&$<40?"button-2":"button-1",L=d??h,E=x||!!U.disabled,O=E?w?"disabled-covered":S?"disabled-invisibled":"disabled":y,se=O?`button--variant-${O}`:"",oe=f?`button--align-${f}`:"",ee=I?`button--shape-${I}`:"",ie=typeof R=="string"&&R.startsWith("--")?`var(${R})`:R,Ce={...B?{width:typeof B=="number"?`${B}px`:B}:{},...k?{minWidth:typeof k=="number"?`${k}px`:k}:{},...g?{}:{"--button-border":E?"0":"1px solid transparent"},...ie?{"--button-icon-color":ie}:{},...q?{"--color-main":q}:{}},Y=_===!1?"":L,le=Array.isArray(Y)?Y.length>0:!!Y,J=!!u,be=a??(le||c||J?"bar":"dot"),ve=`${M}--${be}`,Te=s.useRef(null),de=s.useRef(E),[ye,we]=s.useState(!!v),[Q,te]=s.useState(!1),[_e,je]=s.useState(null),ze=s.useCallback(()=>te(!1),[]);s.useEffect(()=>{typeof v=="boolean"&&we(v)},[v]),s.useEffect(()=>{if(de.current&&!E&&Te.current){const Fe=Te.current;let Qe=!1;try{Qe=Fe.matches(":focus:not(:focus-visible)")}catch{Qe=!1}Qe&&Fe.blur(),Fe.style.pointerEvents="none";const Xe=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Te.current&&(Te.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Xe)}de.current=E},[E]);const Me=typeof v=="boolean"?!!v:ye,Oe=b||typeof v=="boolean"?Me?"true":"false":U["aria-pressed"],Re=ge("button",M,ve,se,oe,ee,Me?"is-selected":null,A?null:"button--no-bg",j?"button--tooltip-only":null,ae),tt=`button__icon button__icon--${Z}`,Ke=Array.isArray(m)?m:m!==void 0?[m]:[],Ue=()=>{if(Array.isArray(Y))return Y.map((Qe,Xe)=>{const rt=Ke[Xe];return t.jsxs("span",{className:`button__label-text${rt!==void 0?" button__label-text--has-sub":""}`,children:[Qe,rt!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:rt})]},Xe)});const Fe=m!==void 0;return t.jsxs("span",{className:`button__label-text${Fe?" button__label-text--has-sub":""}`,children:[Y,p!=null&&t.jsx("span",{className:"button__count",children:p}),Fe&&t.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},fe=Fe=>{typeof v!="boolean"&&!b&&we(!1),Fe.currentTarget.blur()},Ge=Fe=>{E||(typeof U.onMouseLeave=="function"&&U.onMouseLeave(Fe),fe(Fe))},Ee=Fe=>{if(E){V?.(Fe);return}typeof v!="boolean"&&b&&we(Qe=>!Qe),N?.(Fe)},$e=s.useCallback(()=>{(H||F)&&(te(!0),je(Te.current?.getBoundingClientRect()??null))},[H,F]),He=s.useCallback(()=>{(H||F)&&(te(!1),je(null))},[H,F]),Ye={...U};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(Fe=>{/^on[A-Z]/.test(Fe)&&typeof Ye[Fe]=="function"&&delete Ye[Fe]}),Ye["aria-disabled"]="true");const gt=(typeof H=="string"?H:null)??(typeof T=="string"?T:null)??(typeof C=="string"?C:null)??(typeof L=="string"?L:null)??void 0,dt=typeof C=="string"?C:typeof L=="string"?L:gt,st=(Fe,Qe)=>t.jsx(We,{icon:Fe,label:Qe??dt,className:tt,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),nt=()=>be==="dot"?t.jsxs(t.Fragment,{children:[st(c),le&&t.jsx("span",{className:`button__label ${z}`,children:Ue()})]}):f==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:st(c)}),le&&t.jsx("span",{className:`button__label ${z}`,children:Ue()})]}),J&&t.jsx("span",{className:"button__right",children:st(u)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:st(c,C??L)}),le&&t.jsx("span",{className:`button__label ${z}`,children:Ue()}),J&&t.jsx("span",{className:"button__right",children:st(u)})]}),at=!!o&&!E;return t.jsxs(t.Fragment,{children:[t.jsx(at?"a":"button",{...Ye,ref:Te,...at?{href:o,target:i,rel:l??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:E&&!V},className:Re,"aria-pressed":Oe,"aria-label":dt,"aria-disabled":E&&(at||V)?!0:void 0,style:Ce,onClick:Ee,onMouseLeave:Ge,onPointerEnter:Fe=>{$e(),!E&&typeof U.onPointerEnter=="function"&&U.onPointerEnter(Fe)},onPointerLeave:Fe=>{He(),!E&&typeof U.onPointerLeave=="function"&&U.onPointerLeave(Fe)},onFocus:Fe=>{$e(),!E&&typeof U.onFocus=="function"&&U.onFocus(Fe)},onBlur:Fe=>{E||fe(Fe),He(),!E&&typeof U.onBlur=="function"&&U.onBlur(Fe)},children:nt()}),Q&&F?t.jsx(Rn,{anchorRect:_e,title:F.title,items:F.items,onClose:ze}):Q&>?t.jsx(kn,{anchorRect:_e,text:gt,onClose:ze}):null]})}function ct(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 ua={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},xr=new WeakMap;function _r(e){if(e)return xr.get(e)}function St(e,n){e&&(e.style.setProperty(ua.title,n.title),e.style.setProperty(ua.description,n.description),xr.set(e,n))}function Dt(e){e&&(e.style.removeProperty(ua.title),e.style.removeProperty(ua.description),xr.delete(e))}const Fs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Os(){const e=ct(Fs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Hs={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Vs(){const e=ct(Hs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const zs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ws(){const e=ct(zs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const qs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Us(){const e=ct(qs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Gs={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ks(){const e=ct(Gs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Ys={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Zs(){const e=ct(Ys,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Xs={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Js(){const e=ct(Xs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Qs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ei(){const e=ct(Qs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const ti={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function ni(){const e=ct(ti,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const ai={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function ri(){const e=ct(ai,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const oi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function si(){const e=ct(oi,St,Dt);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 ii={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function li(){const e=ct(ii,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const ci={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function ui(){const e=ct(ci,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const di={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function pi(){const e=ct(di,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const n2=[{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"}],mi={main:Os,soft:Vs,sub:Ws,deep:Us,softSub:Ks,warm:Zs,dark:Js,radial:ei,diagonal:ni,dots:ri,outline:si,success:li,naver:ui,instagram:pi};function hi({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 g=localStorage.getItem(_),A=g?Number(g):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"?g=>l(_(g)):l(_))},C=()=>h(_=>+(_+o).toFixed(6)),y=()=>h(_=>+(_-o).toFixed(6)),f=u<r-Number.EPSILON,v=u>a+Number.EPSILON,b=Math.round(n*u),x=Math.round(b*i);return{scale:u,setScale:h,increase:C,decrease:y,canIncrease:f,canDecrease:v,fontSize:b,lineHeight:x}}const fi=s.createContext(null);function a2(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const Ci=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function r2(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 wo.useSyncExternalStore(n,()=>Ci(e),()=>!1)}function o2(e){const[n,a]=s.useState(Ci(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 s2=typeof wo.useSyncExternalStore=="function"?r2:o2;function rn(e){const n=s.useContext(fi),a=s2(e);return n&&typeof n.mobile=="boolean"&&a2(e)?n.mobile:a}function wr(e){const n=s.useRef(e);return s.useEffect(()=>{n.current=e}),n}function gi(e,n){const a=wr(n);s.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const kr=" \xB7 ",bi=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(kr)?e.split(kr).pop()??e:e})(),i2=s.createContext(!1),Pn=[];let yi=null;function l2(e){const n=s.useContext(i2);s.useEffect(()=>{if(n||typeof e!="string"||!e)return;Pn.length===0&&(yi=document.title);const a={text:bi?`${e}${kr}${bi}`: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:yi??document.title}},[e,n])}const vi=[{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 c2(e,n,a){const{t:r}=pe.useTranslation(),[o,i]=s.useState(()=>{const y=a?.initialPageSize;return y&&vi.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(()=>vi.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&&c(h);const C=Math.min(l,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 u2(){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 on="\uC804\uCCB4";Object.fromEntries(Object.entries(y0).map(([e,{nucleus:n}])=>[e,n]));const d2={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"})},p2={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"})},m2={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 h2(e,n){if("place"in n)return d2[n.place](e);const a=p2[n.vowel](e);return n.glide?`${a} \xB7 ${m2[n.glide](e)}`:a}const f2=(e,{defaultValue:n})=>n,xi=(e,n)=>({jamos:e,phonetic:n,tooltip:h2(f2,n)}),mn=(e,n)=>n.map(a=>xi([a],{place:e})),vt=(e,n,a)=>xi([...e],a?{vowel:n,glide:a}:{vowel:n}),Ar={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:[[vt("\u3163","frontHigh"),vt("\u315F","frontHigh","w"),vt("\u3162","frontHigh","velar")],[vt("\u3161","backHighUnrounded")],[vt("\u315C","backHighRounded"),vt("\u3160","backHighRounded","j")],[vt("\u3154\u3150","frontMid"),vt("\u3156\u3152","frontMid","j"),vt("\u3159\u315A\u315E","frontMid","w")],[vt("\u3153","backMidUnrounded"),vt("\u3155","backMidUnrounded","j"),vt("\u315D","backMidUnrounded","w")],[vt("\u3157","backMidRounded"),vt("\u315B","backMidRounded","j")],[vt("\u314F","low"),vt("\u3151","low","j"),vt("\u3158","low","w")]],jong:[mn("labial",["\u3142","\u3141"]),mn("alveolar",["\u3137","\u3134","\u3139"]),mn("velar",["\u3131","\u3147"])]},C2=e=>e===g2?[]:Array.from(e),g2="__NO_CODA__",Nr=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:o})=>({v:a.join(""),phonetic:r,tooltip:o}))),_i={cho:Nr(Ar.cho),jung:Nr(Ar.jung),jong:Nr(Ar.jong)};_i.jung.flat().forEach(({v:e})=>{for(const n of C2(e));}),new Set(_i.cho.flat().map(e=>e.v));function b2(e,n=!0){const a=wr(e);s.useEffect(()=>{if(n)return $n(()=>{a.current?.()})},[n,a])}function ja(){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 wi(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 da({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 b=v.target;r&&b.closest?.(r)||u.current?.contains(b)||d.current?.contains(b)||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 y2(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([]),[b,x]=s.useState(null),[_,g]=s.useState(0),A=s.useRef(0),w=s.useCallback(P=>{A.current=typeof P=="function"?P(A.current):P,g(A.current)},[]),S=s.useRef(r),B=s.useRef(o);s.useEffect(()=>{S.current=r,B.current=o},[r,o]);const k=s.useRef([]),N=()=>{k.current.forEach(clearTimeout),k.current=[]},V=(P,M)=>{k.current.push(setTimeout(M,P))};s.useEffect(()=>()=>N(),[]);const H=c[d]?.id??null,T=s.useRef(null),F=s.useCallback(()=>{N(),h("playing"),v([]),x(null),w(0);let P=0;e.forEach((M,$)=>{V(P,()=>{p($),y(M.id),S.current?.(M)}),V(P+1e3,()=>{y(null),v(z=>[...z,M.id])}),P+=1300}),V(P,()=>{h("done"),B.current?.({score:0,total:e.length})})},[e,w]),j=s.useCallback((P,M)=>{if(M>=P.length){h("done"),B.current?.({score:A.current,total:P.length});return}T.current=null,p(M),x(null),h("playing"),y(P[M].id),S.current?.(P[M]),V(i,()=>{y(null),h("waiting")})},[i]),Z=s.useCallback(()=>{N();const P=la(e);u(P),w(0),v([]),j(P,0)},[e,j,w]),R=s.useCallback(()=>{n==="playback"?(u(e),F()):Z()},[n,e,F,Z]),I=s.useCallback(()=>{N(),h("idle"),y(null),v([]),x(null),p(0),w(0),u([])},[w]),q=e.map(P=>P.id).join("|");s.useEffect(()=>(a?R():I(),()=>N()),[n,q,a]);const ae=s.useCallback(P=>{m!=="waiting"||n==="playback"||T.current===d||(T.current=d,x(P),P===c[d]?.id&&w(M=>M+1),n==="exam"?(h("playing"),V(400,()=>j(c,d+1))):(h("feedback"),V(l,()=>j(c,d+1))))},[m,n,c,d,j,l,w]),U=n==="playback"?e.length:c.length;return{bind:{activeSpeakerId:C,playedIds:f,selectedId:b,answerId:H,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:ae},index:d,total:U,score:_,phase:m,done:m==="done",start:R,reset:I}}function v2({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=rn("(max-width: 767px)"),v=s.useRef({title:!1,description:!1});s.useLayoutEffect(()=>{const _=h.current;if(!_)return;const g=_r(_),A=(w,S,B)=>{if(B!==void 0)_.style.setProperty(S,B),v.current[w]=!0;else if(v.current[w]){const k=g?.[w];k?_.style.setProperty(S,k):_.style.removeProperty(S),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 g=_r(_);y(g?.actionVariant??"main")},[m]);const b=ge("promo-banner",`promo-banner--${l}`,p),x=mi[m];return t.jsxs("div",{ref:h,className:b,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(ce,{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 x2({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":o}){const{t:i}=pe.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=u>0?d%u:0;return s.useEffect(()=>{if(u<2||n<=0||m)return;const y=window.setInterval(()=>p(f=>(f+1)%u),n);return()=>window.clearInterval(y)},[u,n,m]),u===0?null:t.jsxs("section",{className:ge("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>h(!0),onBlur:()=>h(!1),children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${C*100}%)`},children:c.map((y,f)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":f!==C,...f!==C?{inert:!0}:{},children:y},f))})}),u>1&&t.jsx("div",{className:`top-banner__dots${(a?.[C]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((y,f)=>t.jsx("button",{type:"button",className:`top-banner__dot${f===C?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:u,index:f+1,defaultValue:`${u}\uAC1C \uC911 ${f+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":f===C,onClick:()=>p(f)},f))})]})}function _2({title:e,body:n,open:a=!1,onToggle:r,avatar:o,titleClassName:i="body-2",bodyClassName:l="body-2",className:c=""}){const{t:u}=pe.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(We,{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 w2({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(_2,{title:c.title,body:c.body,avatar:c.avatar,open:u===i,onToggle:()=>l(u===i?-1:u),bodyClassName:o},u))})}function k2(){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 A2(){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 N2(){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 ut(e){const{t:n}=pe.useTranslation(),{type:a="bar",size:r,className:o="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:A,number:w,position:S="top-right",onClick:B,animate:k=!1}=e,N=A??"check",V=w!==void 0?"number":N,H=typeof r=="number"?r:32,T=ge("circle-badge",`circle-badge--${V}`,`circle-badge--${S}`,`circle-badge--${H}`,k?"circle-badge--animate":"",B?"circle-badge--clickable":"",o),F=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:T,onClick:B,onKeyDown:B?j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.currentTarget.click())}:void 0,"aria-label":l?void 0:i??F,"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(k2,{}),w===void 0&&N==="remove"&&t.jsx(A2,{}),w===void 0&&N==="minus"&&t.jsx(N2,{})]})}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",b={small:12,medium:14,large:16}[f]??14,x=ge("badge",`badge--${d}`,`badge--${f}`,p!=="filled"?`badge--${p}`:"",v,o),_=y?.startsWith("--")?`var(${y})`:y,g=m!==void 0||_?{...m!==void 0?{minWidth:typeof m=="number"?`${m}px`:m}:{},..._?{"--badge-color":_}:{}}:void 0;return t.jsxs("span",{className:x,style:g,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[h&&t.jsx(We,{icon:h,size:b,className:"badge__icon"}),c??u,C&&t.jsx(We,{icon:C,size:b,className:"badge__icon"})]})}function Ea({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:o}=pe.useTranslation(),i=r==="small"?40:48,[l,c]=s.useState([]),u=s.useMemo(()=>{const v=[{title:null,columns:e}];let b=e;for(const x of l){const _=b?.[x.ci]?.items?.[x.ii];if(!_||!Array.isArray(_.children)||!_.children.length)break;b=[{title:null,items:_.children}],v.push({title:_.label||null,columns:b})}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,b=0;const x=()=>{const _=h.current?.querySelector("button:not([disabled])");if(_&&_.offsetParent){_.focus({preventScroll:!0});return}b++<20&&(v=requestAnimationFrame(x))};return v=requestAnimationFrame(x),()=>cancelAnimationFrame(v)},[y]),s.useEffect(()=>()=>{C.current?.focus?.({preventScroll:!0})},[]);const f=s.useCallback((v,b,x)=>{if(v){if(Array.isArray(v.children)&&v.children.length){c(_=>[..._.slice(0,p),{ci:b,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(ce,{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,b)=>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(ce,{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(ut,{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,b,_),selected:x.selected,disabled:x.disabled,showTooltipInfo:x.tooltip||!1,useBorder:!1,align:"left"},_))})]},b))})]})}const B2=52,ki=10,Ai=e=>e&&e>0?e:0;function Ni({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:o,moreItems:i=[]}){const{t:l}=pe.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 R=p.current;if(!R||(h(R.clientWidth),typeof ResizeObserver>"u"))return;const I=new ResizeObserver(q=>h(q[0].contentRect.width));return I.observe(R),()=>I.disconnect()},[]);const y=m>0?Math.floor((m+ki)/(B2+ki)):C,f=m>0&&y<C,v=f?y:C,b=e.slice(0,v),x=e.slice(v),_=f||i.length>0,g=s.useCallback(R=>({position:"fixed",bottom:window.innerHeight-R.top+8,right:window.innerWidth-R.right,zIndex:1e4}),[]),A=s.useId(),{open:w,toggle:S,close:B,style:k,triggerRef:N,menuRef:V}=da({computeStyle:g,onScroll:"ignore",onResize:"ignore"}),H=s.useCallback((R,I)=>I>0?l("nav.badgeLabel",{label:R,count:I,defaultValue:"{{label}}, {{count}}\uAC1C"}):R,[l]),T=s.useCallback(()=>o?.(c),[o,c]),F=s.useMemo(()=>x.find(R=>R.key===n)??i.find(R=>R.selected||R.key&&R.key===n),[x,n,i]),j=s.useMemo(()=>[{items:[...x.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.key===n,closeOnSelect:!0,disabled:R.state==="disabled",onClick:()=>{R.state!=="disabled"&&(R.key&&a&&a(R.key),B())}})),...i.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.selected??(!!R.key&&R.key===n),closeOnSelect:!0,onClick:()=>{R.onClick?.(),B()}}))]}],[x,i,n,a,B]),Z=[...x,...i].reduce((R,I)=>R+Ai(I.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(ce,{htmlType:"button",size:52,type:"dot",icon:u,ariaLabel:d,className:"bottom-nav-item",onClick:T})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",ref:p,children:b.map((R,I)=>{const q=Ai(R.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(ce,{htmlType:"button",size:52,type:"dot",icon:R.icon,ariaLabel:H(R.label,q),selected:R.key===n,disabled:R.state==="disabled",className:"bottom-nav-item",onClick:()=>R.key&&a?.(R.key)}),q>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(ut,{type:"dot",position:"top-right",number:Math.min(q,99),size:24})})]},R.key??`__slot-${I}`)})}),_&&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:N,className:"bottom-nav__slot",children:[t.jsx(ce,{htmlType:"button",size:52,type:"dot",icon:F?.icon??"ellipsis",ariaLabel:H(F?.label??l("nav.more","\uB354\uBCF4\uAE30"),Z),selected:!!F,className:"bottom-nav-item",onClick:S,"aria-expanded":w,"aria-controls":w?A:void 0}),Z>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(ut,{type:"dot",position:"top-right",number:Math.min(Z,99),size:24})}),w&&qt.createPortal(t.jsx("div",{id:A,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:k,ref:V,children:t.jsx(Ea,{columns:j,onClose:B})}),document.body)]})})]})]})}function Bi(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function S2(e){const{t:n}=pe.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(ce,{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(ce,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"bell",ariaLabel:Bi(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&t.jsx(ut,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&t.jsx(ce,{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(ce,{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(ce,{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 Si(e){const{t:n}=pe.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(We,{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",b=`side-nav__item ${l?"active":""} ${d||""} ${v?"disabled":""} ${a?.child?"side-nav__item--child":""}`,x=s.useCallback(_=>{if(v)return;const g=_.detail>0;if(g)try{_.currentTarget.blur()}catch{}c?.(m,_.currentTarget,g)},[v,m,c]);return t.jsxs("button",{type:"button",className:b,onClick:x,"aria-label":typeof h=="string"?Bi(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(ut,{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 Di(e){const{t:n}=pe.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(Si,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(b,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 g=document.querySelector(".header");if(g&&!(typeof g.matches=="function"&&g.matches(":hover"))){g.classList.add("header--force-collapsed");const A=()=>{g.classList.remove("header--force-collapsed"),g.removeEventListener("mouseenter",A)};g.addEventListener("mouseenter",A)}}})]},f.key??`side-nav__item-${v}`)),h&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),h&&t.jsx(Si,{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(S2,{activeKey:r,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var Br='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',Sr='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',D2='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 Ti({appMode:e}){const{t:n}=pe.useTranslation(),a=e==="manager",r=a?Sr:Br,o=D2,i=rn("(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 ji({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}=pe.useTranslation(),y=rn("(max-width: 767px)"),f=s.useMemo(()=>(a??[]).filter(V=>!V.section&&(V.key||V.label)).map(V=>({key:V.key,label:typeof V.label=="string"?V.label:void 0,icon:V.icon,state:V.disabled?"disabled":void 0,badgeCount:V.badge})),[a]),v=s.useCallback(V=>{const H=a?.find(T=>T.key===V);if(!H?.disabled){if(H?.href){window.open(H.href,"_blank","noopener,noreferrer");return}n?.(V)}},[a,n]),b=s.useMemo(()=>{const V=[];return l&&V.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&V.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),d&&V.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),p&&V.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&V.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:u}),V},[C,l,c,d,p,u,i]),x=s.useCallback(V=>({position:"fixed",top:V.bottom+8,right:Math.max(8,window.innerWidth-V.right),zIndex:1e4}),[]),_=s.useId(),{open:g,toggle:A,close:w,style:S,triggerRef:B,menuRef:k}=da({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),N=s.useMemo(()=>[{items:b.map(V=>({label:V.label,icon:V.icon,badgeCount:V.badgeCount,selected:V.selected??(!!V.key&&V.key===e),closeOnSelect:!0,onClick:()=>{V.onClick?.(),w()}}))}],[b,e,w]);return t.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(Ti,{appMode:m}),t.jsxs("div",{className:"header__menu-button",ref:B,children:[t.jsx(ce,{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":g,"aria-controls":g?_:void 0}),!!c&&!!i&&i>0&&t.jsx(ut,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),g&&qt.createPortal(t.jsx("div",{id:_,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:S,ref:k,children:t.jsx(Ea,{columns:N,onClose:w})}),document.body)]})]}),t.jsx(Di,{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(Ni,{items:f,activeKey:e??void 0,onChange:v,appMode:m,onAppModeChange:h})]})}const T2=ji;var j2={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."},E2={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"},M2={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"}},L2={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},$2={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},R2={selected:"\uC120\uD0DD\uB428"},P2={placeholder:"\uC120\uD0DD"},I2={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},F2={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"},O2={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"},H2={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."}}},V2={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."}},z2={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"}}},W2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},q2={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"}},U2={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"},G2={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"}},K2={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"}}}},Y2={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"}},Z2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},X2={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"}},J2={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."}},Q2={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},ef={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"},tf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},nf={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"}},af={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"}},rf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},of={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"}},sf={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"}},lf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},cf={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},uf={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"}},df={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"}},pf={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."]},mf={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"}},hf={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
827
|
+
`),this.name="StorageNotConfiguredError"}};function Jh(e){Xh(e)}function ms(e,n){if(!e)return null;const a=oa();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function hs(e){if(!e)return null;const n=oa();if(!n)throw new ps("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function fs(e){const n=oa();if(!n)throw new ps("downloadSound");return n.download(e)}function Qh(){return oa()?.noiseBaseUrl??"/sounds/noise"}function Cs(){const e=Number(oa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function e0(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 gs="__ihab_core_tts_config__";function ur(){return globalThis[gs]?.urlResolver??null}function t0(){return globalThis[gs]?.fallbackUrlResolver??null}const n0="__ihab_core_pronunciation_resolver__";function a0(){return globalThis[n0]??null}let xn=null;const sa=new WeakMap,dr=new WeakMap,pr=new WeakMap;let bs=!1;const ys=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function r0(){if(bs||typeof document>"u")return;bs=!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 vs(){if(xn)return xn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(xn=new e,r0(),xn):null}catch{return null}}function mr(){try{xn?.resume()}catch{}}function hr(e,n){const a=sa.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=ys(dr.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 sa.set(n,l),l}catch{return null}}function ka(e){if(!e)return Promise.resolve(null);const n=sa.get(e);if(n)return Promise.resolve(n.analyser);const a=vs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(hr(a,e)?.analyser??null);const r=pr.get(e);if(r)return r;const o=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?hr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{pr.delete(e)});return pr.set(e,o),o}function o0(e){if(!e)return null;const n=sa.get(e);if(n)return n.analyser;const a=vs();return a?a.state==="running"?hr(a,e)?.analyser??null:(ka(e),null):null}function _n(e,n){const a=ys(n);dr.set(e,a);const r=sa.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 Aa(e){return dr.get(e)??e.volume}function s0(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 i0="__ihab_core_image_config__";function Wn(){return globalThis[i0]??null}const xs="word_image_existence_map_v1";let En=null;const Na=new Map;function l0(){if(En)return En;try{const e=typeof localStorage<"u"?localStorage.getItem(xs):null,n=e?JSON.parse(e):null;En=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{En={}}return En}let fr=null;function c0(){fr||(fr=setTimeout(()=>{fr=null;try{typeof localStorage<"u"&&En&&localStorage.setItem(xs,JSON.stringify(En))}catch{}},200))}function u0(e,n){return`${e}_${n??1}`}async function _s(e,n){const a=l0(),r=u0(e,n);if(r in a)return a[r];if(Na.has(r))return Na.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:e0(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Na.delete(r),c===null?!1:(a[r]=c,c0(),c)));return Na.set(r,l),l}const ws=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ks=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],d0=["","\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 ia(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 p0(e){const n=ia(e[0]||"");return n?ws[n.cho]:""}function m0(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],a=l=>ws.includes(l),r=l=>ks.includes(l),o=n.map(l=>a(l)?"cho":r(l)?"jung":ia(l)?"syl":"other"),i=n.map(l=>ia(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(p0(m)!==n[p]){d=!1;break}}else if(h==="jung"){const C=ia(m);if(!C||ks[C.jung]!==n[p]){d=!1;break}}else{const C=i[p];if(C&&C.jong===0){const y=ia(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 h0={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(h0).map(([e,n])=>[n.join(""),d0[Number(e)]]));const f0="word_pair_index_v2",C0="word_pair_index_sig_v2";let Ba=null;function g0(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(f0),n=localStorage.getItem(C0);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function b0(){if(Ba)return Ba;const e=g0();return e?(Ba=e.index,e.sig,Ba):null}const y0={\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"}},Cr=/[ㄱ-ㅎ]/,v0=/[ㅏ-ㅣ]/;function As(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||Cr.test(a)||v0.test(a))return a}return null}function x0(e){const n=As(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Cr.test(n)?"\uC774":"\uAC00"}function _0(e){return`${e}${x0(e)}`}function w0(e){const n=As(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Cr.test(n)?"\uC744":"\uB97C"}function k0(e){return`${e}${w0(e)}`}function A0(e,n,a){const r=e.slice(),[o]=r.splice(n,1);return r.splice(a,0,o),r}function la(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 N0=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof Lt?.t=="function"?Lt.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function Ns(e,n){if(n===void 0&&(n=N0()),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 B0="__ihab_core_word_pool__";function S0(){return globalThis[B0]??null}const Bs=globalThis;function Ss(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function D0(e){Ss("time",()=>Bs.__ihabTrainingTimeLogger?.(e))}function T0(e){Ss("completion",()=>Bs.__ihabTrainingCompletionLogger?.(e))}function Qt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function j0(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 E0(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Qt(r.contextCode)??Qt(r.itemId)??Qt(r.itemCode)??Qt(r.id),question:Qt(r.question)??Qt(r.sentence)??Qt(r.word)??Qt(r.targetSyllable),answer:Qt(r.answer),selected:Qt(r.selectedText)??Qt(r.selected),correct:j0(r)}}):[]}const gr=globalThis;async function M0(){try{return await gr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function Ds(e){const n=a=>{};try{const a=gr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Sa(e){try{gr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function L0(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 br(new Date)}function qn(){return R0(Mn())}const $0=540*60*1e3;function Ts(e,n,a){return new Date(Date.UTC(e,n,a)-$0)}function R0(e){const[n,a,r]=e.split("-").map(Number);return new Date(n,(a||1)-1,r||1)}function br(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 js(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 Es(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:o=!1,fallback:i="\u2014"}=n;if(!e)return i;const l=br(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 ca(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function Ms(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 yr(e){return(e??0).toLocaleString("ko-KR")}const P0=[{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"}]}],I0=[{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 Ls(){return P0}function F0(){return I0}const O0=[],H0=[],V0=[],z0=[];function W0(){return{LISTEN_IN_NOISE:O0,SHORT_STORY:H0,LONG_STORY:V0,ORDERING_SENTENCE:z0}}const q0=[{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."}],$s={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function U0(e){return q0.map(n=>{const a=$s[n.key];return a?{...n,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:n})}let Da=null,Rs=null,Ps=null;function G0(){const e=S0();if(e&&e.entries.length>0){const n=b0();if(Da&&Rs===e&&Ps===n)return Da;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 Da=r,Rs=e,Ps=n,Da}return[]}new Proxy([],{get(e,n){const a=G0(),r=a[n];return typeof r=="function"?r.bind(a):r}});const K0="0.145.0";function Y0(e){return typeof window>"u"?"":Gh.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function Z0(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=cr(e):/^(Logo|Symbol)/i.test(d)?p=cr(`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=Y0(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 We(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=ph(C),{iconToUse:f,mode:v,svgText:b,blobUrl:x}=Z0(C),_=(S,N={})=>t.jsx("span",{className:d,style:c,...N,children:S}),g=(S,N={})=>t.jsx("img",{src:S,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...N});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 S={"--icon-url":x?`url(${x})`:`url(${f})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return _(t.jsx("span",{className:m,style:S}),{"aria-hidden":"true"})}return v==="img"?_(g(f,{onError:S=>{S.currentTarget.onerror=null,S.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="inline"?_(t.jsx("span",{className:h,dangerouslySetInnerHTML:b?{__html:b}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return g(cr(n),{style:c,onError:S=>{S.currentTarget.onerror=null,S.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 X0({icon:e,emoji:n,title:a,message:r,hint:o,action:i,compact:l,className:c}){return t.jsxs("div",{className:ge("empty-state",l&&"empty-state--compact",c),children:[n&&t.jsx("span",{className:"empty-state__emoji",children:n}),e&&t.jsx(We,{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(We,{icon:i.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:i.label})]})]})}function J0({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:o,className:i}){const{t:l}=pe.useTranslation();return t.jsxs("div",{className:ge("empty-state","error-state",i),role:"alert",children:[t.jsx(We,{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(We,{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 Q0({icon:e,title:n,description:a,cta:r,tone:o="main",disabled:i=!1,onClick:l,className:c=""}){const u=()=>{i||l?.()};return t.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":n,onClick:u,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),u())},className:ge("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(We,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{className:"action-card__title",children:n}),t.jsx("p",{className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(We,{icon:"arrow-right",size:18})})]})]})})}function e2({as:e="div",className:n="",children:a,storage:r,...o}){r&&Jh({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=ge("ihabdevteam-core-scope",n);return t.jsx(e,{className:i,...o,children:a})}function t2({title:e="",lines:n=[],notices:a=null,children:r,variant:o="default",dismissible:i=!1,className:l=""}){const{t:c}=pe.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 vr(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 Ta=!1;function Is(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),!Ta&&typeof document<"u"&&(document.addEventListener("keydown",Is),Ta=!0),()=>{const n=Un.lastIndexOf(e);n>=0&&Un.splice(n,1),Un.length===0&&Ta&&typeof document<"u"&&(document.removeEventListener("keydown",Is),Ta=!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,b]=s.useState({position:"fixed",left:0,top:-9999}),[x,_]=s.useState(!1),[g,A]=s.useState("bottom"),[w,S]=s.useState(!1),[N,k]=s.useState(!1),B=!n&&!a,V=s.useCallback((O=!1)=>{if(N&&h)return;const W=a?a.getBoundingClientRect():n;if(!W||!f.current)return;const le=f.current,{offsetWidth:q,offsetHeight:P}=le,M=window.innerWidth,L=window.innerHeight,z=M-W.right,$=W.left,E=W.top,I=L-W.bottom;let oe=0,re=0,ee="top";if(E>=P+r)ee="top",re=W.top-r-P,oe=W.left+W.width/2-q/2;else if(I>=P+r)ee="bottom",re=W.bottom+r,oe=W.left+W.width/2-q/2;else if(z>=q+r)ee="right",oe=W.right+r,re=W.top+W.height/2-P/2;else if($>=q+r)ee="left",oe=W.left-r-q,re=W.top+W.height/2-P/2;else{const ie=Math.max(E,I,z,$);ie===E?(ee="top",re=W.top-r-P,oe=W.left+W.width/2-q/2):ie===I?(ee="bottom",re=W.bottom+r,oe=W.left+W.width/2-q/2):ie===z?(ee="right",oe=W.right+r,re=W.top+W.height/2-P/2):(ee="left",oe=W.left-r-q,re=W.top+W.height/2-P/2)}const se=Number.isFinite(Number(o))?Number(o):8;oe=Math.min(Math.max(oe,se),M-q-se),re=Math.min(Math.max(re,se),L-P-se);const Ce=Math.round(oe),Z=Math.round(re);O&&f.current?(f.current.style.left=`${Ce}px`,f.current.style.top=`${Z}px`,f.current.dataset.placement=ee):(A(ee||g),b({position:"fixed",left:Ce,top:Z}),S(!0))},[N,h,a,n,r,o,g]);s.useLayoutEffect(()=>{if(B)return;if(N&&h){b({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),S(!0);return}V();const O=requestAnimationFrame(()=>V());return()=>cancelAnimationFrame(O)},[n,a,r,p,o,B,N,h,V]),s.useEffect(()=>{if(B||N&&h||!f.current||typeof ResizeObserver>"u")return;const O=new ResizeObserver(()=>{n&&V()});return O.observe(f.current),()=>O.disconnect()},[n,p,o,B,N,h,V]),s.useEffect(()=>{if(B||N&&h)return;const O=()=>V(!0),W=le=>{if(!a&&i){const q=le.target;if(q&&f.current&&f.current.contains(q))return;try{if(q&&q.closest&&q.closest("[data-tooltip-ignore]"))return}catch{}T.current(!0);return}O()};return window.addEventListener("resize",O),document.addEventListener("scroll",W,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",O),document.removeEventListener("scroll",W,{capture:!0})}},[n,a,i,r,p,o,B,N,h,V]),s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const O=window.matchMedia("(max-width: 768px)"),W=()=>k(!!O.matches);W();try{O.addEventListener?O.addEventListener("change",W):O.addListener(W)}catch{try{O.addListener(W)}catch{}}return()=>{try{O.removeEventListener?O.removeEventListener("change",W):O.removeListener(W)}catch{}}},[]);const H=s.useRef(!1),j=s.useRef(null),F=s.useCallback((O=!1)=>{if(i&&!(x||H.current)){if(H.current=!0,O){_(!0);try{i&&i()}catch{H.current=!1,_(!1)}return}_(!0),j.current=setTimeout(()=>{j.current=null;try{i&&i()}catch{H.current=!1,_(!1)}},200)}},[x,i,_]);s.useEffect(()=>()=>{j.current&&clearTimeout(j.current)},[]),s.useEffect(()=>{if(B)return;const O=q=>{const P=f.current;if(!P)return;const M=q.target;if(M&&!P.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&F(!0)}},W=q=>{const P=f.current;if(!P)return;const M=q.target;if(M&&!P.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&F(!0)}},le=q=>{if(q.key==="Tab"){const P=f.current;if(!P)return;const M=P.querySelectorAll(Ln);if(!M||M.length===0)return;const L=M[0],z=M[M.length-1],$=document.activeElement;q.shiftKey?$===L&&(q.preventDefault(),z.focus()):$===z&&(q.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",O,!0),document.addEventListener("click",W,!0),document.addEventListener("keydown",le),()=>{document.removeEventListener("pointerdown",O,!0),document.removeEventListener("click",W,!0),document.removeEventListener("keydown",le)}},[i,l,F,B]);const T=s.useRef(F);s.useEffect(()=>{T.current=F});const Y=!!i;s.useEffect(()=>{if(!(B||!Y))return $n(()=>T.current())},[B,Y]),s.useEffect(()=>{const O=()=>{F(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",O),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",O)}},[F]);const R=t.jsxs("div",{ref:f,className:`tooltip-content ${B?"tooltip-content--inline":""} ${C?"tooltip-content--bordered":""} ${x?"is-closing":""} ${c} ${N&&h?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:B?{}:{...v,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":g,"data-left":B?"":v.left,"data-top":B?"":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(B||typeof document>"u")return R;if(m||N&&h){const O=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&F(!0)}}),R]});return qt.createPortal(O,document.body)}return qt.createPortal(R,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}=pe.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 ce(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:b=!1,disabled:x=!1,useLabel:_=!0,useBorder:g=!0,useBG:A=!0,useDisabledCovered:w=!1,useDisabledInvisible:S=!1,width:N,minWidth:k,onClick:B,onDisabledClick:V,showTooltipInfo:H=!1,tooltipInfoText:j=null,tooltipDescription:F=null,tooltipOnly:T=!1,iconSize:Y="medium",iconColor:R,shape:O="rounded",color:W,className:le,...q}=e,P=typeof n=="string"&&isNaN(Number(n))?n.toLowerCase():String(Number(n)||48),M=P.match(/^\d+$/)?`button${P}`:`button-${P}`,L=Number(n),z=!isNaN(L)&&L<40?"button-2":"button-1",$=d??h,E=x||!!q.disabled,I=E?w?"disabled-covered":S?"disabled-invisibled":"disabled":y,oe=I?`button--variant-${I}`:"",re=f?`button--align-${f}`:"",ee=O?`button--shape-${O}`:"",se=typeof R=="string"&&R.startsWith("--")?`var(${R})`:R,Ce={...N?{width:typeof N=="number"?`${N}px`:N}:{},...k?{minWidth:typeof k=="number"?`${k}px`:k}:{},...g?{}:{"--button-border":E?"0":"1px solid transparent"},...se?{"--button-icon-color":se}:{},...W?{"--color-main":W}:{}},Z=_===!1?"":$,ie=Array.isArray(Z)?Z.length>0:!!Z,J=!!u,be=a??(ie||c||J?"bar":"dot"),ve=`${M}--${be}`,Te=s.useRef(null),de=s.useRef(E),[ye,we]=s.useState(!!v),[Q,te]=s.useState(!1),[_e,je]=s.useState(null),ze=s.useCallback(()=>te(!1),[]);s.useEffect(()=>{typeof v=="boolean"&&we(v)},[v]),s.useEffect(()=>{if(de.current&&!E&&Te.current){const Fe=Te.current;let Qe=!1;try{Qe=Fe.matches(":focus:not(:focus-visible)")}catch{Qe=!1}Qe&&Fe.blur(),Fe.style.pointerEvents="none";const Xe=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Te.current&&(Te.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Xe)}de.current=E},[E]);const Me=typeof v=="boolean"?!!v:ye,Oe=b||typeof v=="boolean"?Me?"true":"false":q["aria-pressed"],Re=ge("button",M,ve,oe,re,ee,Me?"is-selected":null,A?null:"button--no-bg",T?"button--tooltip-only":null,le),tt=`button__icon button__icon--${Y}`,Ke=Array.isArray(m)?m:m!==void 0?[m]:[],Ue=()=>{if(Array.isArray(Z))return Z.map((Qe,Xe)=>{const rt=Ke[Xe];return t.jsxs("span",{className:`button__label-text${rt!==void 0?" button__label-text--has-sub":""}`,children:[Qe,rt!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:rt})]},Xe)});const Fe=m!==void 0;return t.jsxs("span",{className:`button__label-text${Fe?" button__label-text--has-sub":""}`,children:[Z,p!=null&&t.jsx("span",{className:"button__count",children:p}),Fe&&t.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},fe=Fe=>{typeof v!="boolean"&&!b&&we(!1),Fe.currentTarget.blur()},Ge=Fe=>{E||(typeof q.onMouseLeave=="function"&&q.onMouseLeave(Fe),fe(Fe))},Ee=Fe=>{if(E){V?.(Fe);return}typeof v!="boolean"&&b&&we(Qe=>!Qe),B?.(Fe)},$e=s.useCallback(()=>{(H||F)&&(te(!0),je(Te.current?.getBoundingClientRect()??null))},[H,F]),He=s.useCallback(()=>{(H||F)&&(te(!1),je(null))},[H,F]),Ye={...q};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(Fe=>{/^on[A-Z]/.test(Fe)&&typeof Ye[Fe]=="function"&&delete Ye[Fe]}),Ye["aria-disabled"]="true");const gt=(typeof H=="string"?H:null)??(typeof j=="string"?j:null)??(typeof C=="string"?C:null)??(typeof $=="string"?$:null)??void 0,dt=typeof C=="string"?C:typeof $=="string"?$:gt,st=(Fe,Qe)=>t.jsx(We,{icon:Fe,label:Qe??dt,className:tt,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),nt=()=>be==="dot"?t.jsxs(t.Fragment,{children:[st(c),ie&&t.jsx("span",{className:`button__label ${z}`,children:Ue()})]}):f==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:st(c)}),ie&&t.jsx("span",{className:`button__label ${z}`,children:Ue()})]}),J&&t.jsx("span",{className:"button__right",children:st(u)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:st(c,C??$)}),ie&&t.jsx("span",{className:`button__label ${z}`,children:Ue()}),J&&t.jsx("span",{className:"button__right",children:st(u)})]}),at=!!o&&!E;return t.jsxs(t.Fragment,{children:[t.jsx(at?"a":"button",{...Ye,ref:Te,...at?{href:o,target:i,rel:l??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:E&&!V},className:Re,"aria-pressed":Oe,"aria-label":dt,"aria-disabled":E&&(at||V)?!0:void 0,style:Ce,onClick:Ee,onMouseLeave:Ge,onPointerEnter:Fe=>{$e(),!E&&typeof q.onPointerEnter=="function"&&q.onPointerEnter(Fe)},onPointerLeave:Fe=>{He(),!E&&typeof q.onPointerLeave=="function"&&q.onPointerLeave(Fe)},onFocus:Fe=>{$e(),!E&&typeof q.onFocus=="function"&&q.onFocus(Fe)},onBlur:Fe=>{E||fe(Fe),He(),!E&&typeof q.onBlur=="function"&&q.onBlur(Fe)},children:nt()}),Q&&F?t.jsx(Rn,{anchorRect:_e,title:F.title,items:F.items,onClose:ze}):Q&>?t.jsx(kn,{anchorRect:_e,text:gt,onClose:ze}):null]})}function ct(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 ua={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},xr=new WeakMap;function _r(e){if(e)return xr.get(e)}function St(e,n){e&&(e.style.setProperty(ua.title,n.title),e.style.setProperty(ua.description,n.description),xr.set(e,n))}function Dt(e){e&&(e.style.removeProperty(ua.title),e.style.removeProperty(ua.description),xr.delete(e))}const Fs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Os(){const e=ct(Fs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Hs={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Vs(){const e=ct(Hs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const zs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ws(){const e=ct(zs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const qs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Us(){const e=ct(qs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Gs={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ks(){const e=ct(Gs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Ys={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Zs(){const e=ct(Ys,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Xs={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Js(){const e=ct(Xs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Qs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ei(){const e=ct(Qs,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const ti={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function ni(){const e=ct(ti,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const ai={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function ri(){const e=ct(ai,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const oi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function si(){const e=ct(oi,St,Dt);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 ii={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function li(){const e=ct(ii,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const ci={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function ui(){const e=ct(ci,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const di={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function pi(){const e=ct(di,St,Dt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const n2=[{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"}],mi={main:Os,soft:Vs,sub:Ws,deep:Us,softSub:Ks,warm:Zs,dark:Js,radial:ei,diagonal:ni,dots:ri,outline:si,success:li,naver:ui,instagram:pi};function hi({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 g=localStorage.getItem(_),A=g?Number(g):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"?g=>l(_(g)):l(_))},C=()=>h(_=>+(_+o).toFixed(6)),y=()=>h(_=>+(_-o).toFixed(6)),f=u<r-Number.EPSILON,v=u>a+Number.EPSILON,b=Math.round(n*u),x=Math.round(b*i);return{scale:u,setScale:h,increase:C,decrease:y,canIncrease:f,canDecrease:v,fontSize:b,lineHeight:x}}const fi=s.createContext(null);function a2(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const Ci=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function r2(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 wo.useSyncExternalStore(n,()=>Ci(e),()=>!1)}function o2(e){const[n,a]=s.useState(Ci(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 s2=typeof wo.useSyncExternalStore=="function"?r2:o2;function rn(e){const n=s.useContext(fi),a=s2(e);return n&&typeof n.mobile=="boolean"&&a2(e)?n.mobile:a}function wr(e){const n=s.useRef(e);return s.useEffect(()=>{n.current=e}),n}function gi(e,n){const a=wr(n);s.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const kr=" \xB7 ",bi=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(kr)?e.split(kr).pop()??e:e})(),i2=s.createContext(!1),Pn=[];let yi=null;function l2(e){const n=s.useContext(i2);s.useEffect(()=>{if(n||typeof e!="string"||!e)return;Pn.length===0&&(yi=document.title);const a={text:bi?`${e}${kr}${bi}`: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:yi??document.title}},[e,n])}const vi=[{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 c2(e,n,a){const{t:r}=pe.useTranslation(),[o,i]=s.useState(()=>{const y=a?.initialPageSize;return y&&vi.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(()=>vi.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&&c(h);const C=Math.min(l,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 u2(){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 on="\uC804\uCCB4";Object.fromEntries(Object.entries(y0).map(([e,{nucleus:n}])=>[e,n]));const d2={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"})},p2={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"})},m2={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 h2(e,n){if("place"in n)return d2[n.place](e);const a=p2[n.vowel](e);return n.glide?`${a} \xB7 ${m2[n.glide](e)}`:a}const f2=(e,{defaultValue:n})=>n,xi=(e,n)=>({jamos:e,phonetic:n,tooltip:h2(f2,n)}),mn=(e,n)=>n.map(a=>xi([a],{place:e})),vt=(e,n,a)=>xi([...e],a?{vowel:n,glide:a}:{vowel:n}),Ar={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:[[vt("\u3163","frontHigh"),vt("\u315F","frontHigh","w"),vt("\u3162","frontHigh","velar")],[vt("\u3161","backHighUnrounded")],[vt("\u315C","backHighRounded"),vt("\u3160","backHighRounded","j")],[vt("\u3154\u3150","frontMid"),vt("\u3156\u3152","frontMid","j"),vt("\u3159\u315A\u315E","frontMid","w")],[vt("\u3153","backMidUnrounded"),vt("\u3155","backMidUnrounded","j"),vt("\u315D","backMidUnrounded","w")],[vt("\u3157","backMidRounded"),vt("\u315B","backMidRounded","j")],[vt("\u314F","low"),vt("\u3151","low","j"),vt("\u3158","low","w")]],jong:[mn("labial",["\u3142","\u3141"]),mn("alveolar",["\u3137","\u3134","\u3139"]),mn("velar",["\u3131","\u3147"])]},C2=e=>e===g2?[]:Array.from(e),g2="__NO_CODA__",Nr=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:o})=>({v:a.join(""),phonetic:r,tooltip:o}))),_i={cho:Nr(Ar.cho),jung:Nr(Ar.jung),jong:Nr(Ar.jong)};_i.jung.flat().forEach(({v:e})=>{for(const n of C2(e));}),new Set(_i.cho.flat().map(e=>e.v));function b2(e,n=!0){const a=wr(e);s.useEffect(()=>{if(n)return $n(()=>{a.current?.()})},[n,a])}function ja(){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 wi(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 da({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 b=v.target;r&&b.closest?.(r)||u.current?.contains(b)||d.current?.contains(b)||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 y2(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([]),[b,x]=s.useState(null),[_,g]=s.useState(0),A=s.useRef(0),w=s.useCallback(P=>{A.current=typeof P=="function"?P(A.current):P,g(A.current)},[]),S=s.useRef(r),N=s.useRef(o);s.useEffect(()=>{S.current=r,N.current=o},[r,o]);const k=s.useRef([]),B=()=>{k.current.forEach(clearTimeout),k.current=[]},V=(P,M)=>{k.current.push(setTimeout(M,P))};s.useEffect(()=>()=>B(),[]);const H=c[d]?.id??null,j=s.useRef(null),F=s.useCallback(()=>{B(),h("playing"),v([]),x(null),w(0);let P=0;e.forEach((M,L)=>{V(P,()=>{p(L),y(M.id),S.current?.(M)}),V(P+1e3,()=>{y(null),v(z=>[...z,M.id])}),P+=1300}),V(P,()=>{h("done"),N.current?.({score:0,total:e.length})})},[e,w]),T=s.useCallback((P,M)=>{if(M>=P.length){h("done"),N.current?.({score:A.current,total:P.length});return}j.current=null,p(M),x(null),h("playing"),y(P[M].id),S.current?.(P[M]),V(i,()=>{y(null),h("waiting")})},[i]),Y=s.useCallback(()=>{B();const P=la(e);u(P),w(0),v([]),T(P,0)},[e,T,w]),R=s.useCallback(()=>{n==="playback"?(u(e),F()):Y()},[n,e,F,Y]),O=s.useCallback(()=>{B(),h("idle"),y(null),v([]),x(null),p(0),w(0),u([])},[w]),W=e.map(P=>P.id).join("|");s.useEffect(()=>(a?R():O(),()=>B()),[n,W,a]);const le=s.useCallback(P=>{m!=="waiting"||n==="playback"||j.current===d||(j.current=d,x(P),P===c[d]?.id&&w(M=>M+1),n==="exam"?(h("playing"),V(400,()=>T(c,d+1))):(h("feedback"),V(l,()=>T(c,d+1))))},[m,n,c,d,T,l,w]),q=n==="playback"?e.length:c.length;return{bind:{activeSpeakerId:C,playedIds:f,selectedId:b,answerId:H,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:le},index:d,total:q,score:_,phase:m,done:m==="done",start:R,reset:O}}function v2({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=rn("(max-width: 767px)"),v=s.useRef({title:!1,description:!1});s.useLayoutEffect(()=>{const _=h.current;if(!_)return;const g=_r(_),A=(w,S,N)=>{if(N!==void 0)_.style.setProperty(S,N),v.current[w]=!0;else if(v.current[w]){const k=g?.[w];k?_.style.setProperty(S,k):_.style.removeProperty(S),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 g=_r(_);y(g?.actionVariant??"main")},[m]);const b=ge("promo-banner",`promo-banner--${l}`,p),x=mi[m];return t.jsxs("div",{ref:h,className:b,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(ce,{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 x2({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":o}){const{t:i}=pe.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=u>0?d%u:0;return s.useEffect(()=>{if(u<2||n<=0||m)return;const y=window.setInterval(()=>p(f=>(f+1)%u),n);return()=>window.clearInterval(y)},[u,n,m]),u===0?null:t.jsxs("section",{className:ge("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onFocus:()=>h(!0),onBlur:()=>h(!1),children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${C*100}%)`},children:c.map((y,f)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":f!==C,...f!==C?{inert:!0}:{},children:y},f))})}),u>1&&t.jsx("div",{className:`top-banner__dots${(a?.[C]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((y,f)=>t.jsx("button",{type:"button",className:`top-banner__dot${f===C?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:u,index:f+1,defaultValue:`${u}\uAC1C \uC911 ${f+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":f===C,onClick:()=>p(f)},f))})]})}function _2({title:e,body:n,open:a=!1,onToggle:r,avatar:o,titleClassName:i="body-2",bodyClassName:l="body-2",className:c=""}){const{t:u}=pe.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(We,{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 w2({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(_2,{title:c.title,body:c.body,avatar:c.avatar,open:u===i,onToggle:()=>l(u===i?-1:u),bodyClassName:o},u))})}function k2(){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 A2(){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 N2(){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 ut(e){const{t:n}=pe.useTranslation(),{type:a="bar",size:r,className:o="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:A,number:w,position:S="top-right",onClick:N,animate:k=!1}=e,B=A??"check",V=w!==void 0?"number":B,H=typeof r=="number"?r:32,j=ge("circle-badge",`circle-badge--${V}`,`circle-badge--${S}`,`circle-badge--${H}`,k?"circle-badge--animate":"",N?"circle-badge--clickable":"",o),F=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")}[B];return t.jsxs("span",{className:j,onClick:N,onKeyDown:N?T=>{T.key!=="Enter"&&T.key!==" "||(T.preventDefault(),T.currentTarget.click())}:void 0,"aria-label":l?void 0:i??F,"aria-hidden":l||void 0,role:N?"button":l?void 0:"img",tabIndex:N?0:void 0,children:[w!==void 0&&w,w===void 0&&B==="check"&&t.jsx(k2,{}),w===void 0&&B==="remove"&&t.jsx(A2,{}),w===void 0&&B==="minus"&&t.jsx(N2,{})]})}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",b={small:12,medium:14,large:16}[f]??14,x=ge("badge",`badge--${d}`,`badge--${f}`,p!=="filled"?`badge--${p}`:"",v,o),_=y?.startsWith("--")?`var(${y})`:y,g=m!==void 0||_?{...m!==void 0?{minWidth:typeof m=="number"?`${m}px`:m}:{},..._?{"--badge-color":_}:{}}:void 0;return t.jsxs("span",{className:x,style:g,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[h&&t.jsx(We,{icon:h,size:b,className:"badge__icon"}),c??u,C&&t.jsx(We,{icon:C,size:b,className:"badge__icon"})]})}function Ea({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:o}=pe.useTranslation(),i=r==="small"?40:48,[l,c]=s.useState([]),u=s.useMemo(()=>{const v=[{title:null,columns:e}];let b=e;for(const x of l){const _=b?.[x.ci]?.items?.[x.ii];if(!_||!Array.isArray(_.children)||!_.children.length)break;b=[{title:null,items:_.children}],v.push({title:_.label||null,columns:b})}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,b=0;const x=()=>{const _=h.current?.querySelector("button:not([disabled])");if(_&&_.offsetParent){_.focus({preventScroll:!0});return}b++<20&&(v=requestAnimationFrame(x))};return v=requestAnimationFrame(x),()=>cancelAnimationFrame(v)},[y]),s.useEffect(()=>()=>{C.current?.focus?.({preventScroll:!0})},[]);const f=s.useCallback((v,b,x)=>{if(v){if(Array.isArray(v.children)&&v.children.length){c(_=>[..._.slice(0,p),{ci:b,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(ce,{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,b)=>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(ce,{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(ut,{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,b,_),selected:x.selected,disabled:x.disabled,showTooltipInfo:x.tooltip||!1,useBorder:!1,align:"left"},_))})]},b))})]})}const B2=52,ki=10,Ai=e=>e&&e>0?e:0;function Ni({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:o,moreItems:i=[]}){const{t:l}=pe.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 R=p.current;if(!R||(h(R.clientWidth),typeof ResizeObserver>"u"))return;const O=new ResizeObserver(W=>h(W[0].contentRect.width));return O.observe(R),()=>O.disconnect()},[]);const y=m>0?Math.floor((m+ki)/(B2+ki)):C,f=m>0&&y<C,v=f?y:C,b=e.slice(0,v),x=e.slice(v),_=f||i.length>0,g=s.useCallback(R=>({position:"fixed",bottom:window.innerHeight-R.top+8,right:window.innerWidth-R.right,zIndex:1e4}),[]),A=s.useId(),{open:w,toggle:S,close:N,style:k,triggerRef:B,menuRef:V}=da({computeStyle:g,onScroll:"ignore",onResize:"ignore"}),H=s.useCallback((R,O)=>O>0?l("nav.badgeLabel",{label:R,count:O,defaultValue:"{{label}}, {{count}}\uAC1C"}):R,[l]),j=s.useCallback(()=>o?.(c),[o,c]),F=s.useMemo(()=>x.find(R=>R.key===n)??i.find(R=>R.selected||R.key&&R.key===n),[x,n,i]),T=s.useMemo(()=>[{items:[...x.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.key===n,closeOnSelect:!0,disabled:R.state==="disabled",onClick:()=>{R.state!=="disabled"&&(R.key&&a&&a(R.key),N())}})),...i.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.selected??(!!R.key&&R.key===n),closeOnSelect:!0,onClick:()=>{R.onClick?.(),N()}}))]}],[x,i,n,a,N]),Y=[...x,...i].reduce((R,O)=>R+Ai(O.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(ce,{htmlType:"button",size:52,type:"dot",icon:u,ariaLabel:d,className:"bottom-nav-item",onClick:j})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",ref:p,children:b.map((R,O)=>{const W=Ai(R.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(ce,{htmlType:"button",size:52,type:"dot",icon:R.icon,ariaLabel:H(R.label,W),selected:R.key===n,disabled:R.state==="disabled",className:"bottom-nav-item",onClick:()=>R.key&&a?.(R.key)}),W>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(ut,{type:"dot",position:"top-right",number:Math.min(W,99),size:24})})]},R.key??`__slot-${O}`)})}),_&&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:B,className:"bottom-nav__slot",children:[t.jsx(ce,{htmlType:"button",size:52,type:"dot",icon:F?.icon??"ellipsis",ariaLabel:H(F?.label??l("nav.more","\uB354\uBCF4\uAE30"),Y),selected:!!F,className:"bottom-nav-item",onClick:S,"aria-expanded":w,"aria-controls":w?A:void 0}),Y>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(ut,{type:"dot",position:"top-right",number:Math.min(Y,99),size:24})}),w&&qt.createPortal(t.jsx("div",{id:A,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:k,ref:V,children:t.jsx(Ea,{columns:T,onClose:N})}),document.body)]})})]})]})}function Bi(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function S2(e){const{t:n}=pe.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(ce,{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(ce,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"bell",ariaLabel:Bi(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&t.jsx(ut,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&t.jsx(ce,{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(ce,{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(ce,{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 Si(e){const{t:n}=pe.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(We,{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",b=`side-nav__item ${l?"active":""} ${d||""} ${v?"disabled":""} ${a?.child?"side-nav__item--child":""}`,x=s.useCallback(_=>{if(v)return;const g=_.detail>0;if(g)try{_.currentTarget.blur()}catch{}c?.(m,_.currentTarget,g)},[v,m,c]);return t.jsxs("button",{type:"button",className:b,onClick:x,"aria-label":typeof h=="string"?Bi(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(ut,{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 Di(e){const{t:n}=pe.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(Si,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(b,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 g=document.querySelector(".header");if(g&&!(typeof g.matches=="function"&&g.matches(":hover"))){g.classList.add("header--force-collapsed");const A=()=>{g.classList.remove("header--force-collapsed"),g.removeEventListener("mouseenter",A)};g.addEventListener("mouseenter",A)}}})]},f.key??`side-nav__item-${v}`)),h&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),h&&t.jsx(Si,{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(S2,{activeKey:r,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var Br='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',Sr='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',D2='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 Ti({appMode:e}){const{t:n}=pe.useTranslation(),a=e==="manager",r=a?Sr:Br,o=D2,i=rn("(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 ji({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}=pe.useTranslation(),y=rn("(max-width: 767px)"),f=s.useMemo(()=>(a??[]).filter(V=>!V.section&&(V.key||V.label)).map(V=>({key:V.key,label:typeof V.label=="string"?V.label:void 0,icon:V.icon,state:V.disabled?"disabled":void 0,badgeCount:V.badge})),[a]),v=s.useCallback(V=>{const H=a?.find(j=>j.key===V);if(!H?.disabled){if(H?.href){window.open(H.href,"_blank","noopener,noreferrer");return}n?.(V)}},[a,n]),b=s.useMemo(()=>{const V=[];return l&&V.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&V.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),d&&V.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),p&&V.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&V.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:u}),V},[C,l,c,d,p,u,i]),x=s.useCallback(V=>({position:"fixed",top:V.bottom+8,right:Math.max(8,window.innerWidth-V.right),zIndex:1e4}),[]),_=s.useId(),{open:g,toggle:A,close:w,style:S,triggerRef:N,menuRef:k}=da({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),B=s.useMemo(()=>[{items:b.map(V=>({label:V.label,icon:V.icon,badgeCount:V.badgeCount,selected:V.selected??(!!V.key&&V.key===e),closeOnSelect:!0,onClick:()=>{V.onClick?.(),w()}}))}],[b,e,w]);return t.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(Ti,{appMode:m}),t.jsxs("div",{className:"header__menu-button",ref:N,children:[t.jsx(ce,{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":g,"aria-controls":g?_:void 0}),!!c&&!!i&&i>0&&t.jsx(ut,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),g&&qt.createPortal(t.jsx("div",{id:_,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:S,ref:k,children:t.jsx(Ea,{columns:B,onClose:w})}),document.body)]})]}),t.jsx(Di,{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(Ni,{items:f,activeKey:e??void 0,onChange:v,appMode:m,onAppModeChange:h})]})}const T2=ji;var j2={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."},E2={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"},M2={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"}},L2={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},$2={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},R2={selected:"\uC120\uD0DD\uB428"},P2={placeholder:"\uC120\uD0DD"},I2={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},F2={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"},O2={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"},H2={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."}}},V2={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."}},z2={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"}}},W2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},q2={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"}},U2={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"},G2={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"}},K2={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"}}}},Y2={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"}},Z2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},X2={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"}},J2={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."}},Q2={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},ef={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"},tf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},nf={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"}},af={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"}},rf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},of={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"}},sf={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"}},lf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},cf={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},uf={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"}},df={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"}},pf={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."]},mf={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"}},hf={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"},ff={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"}}},Cf={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},gf={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"}},bf={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},yf={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"},vf={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},xf={ariaLabel:"\uC120\uD0DD \uD0ED"},_f={ariaLabel:"\uD0ED"},wf={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},kf={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Af={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"}},Nf={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"}},Bf={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"}},Sf={manage:{unit:"\uAC74"}},Df={cancelLabel:"\uCDE8\uC18C"},Tf={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},jf={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"},Ef={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},Mf={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"},Lf={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},$f={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},Rf={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Pf={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},If={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"}},Ff={clearSelection:"\uC120\uD0DD \uD574\uC81C"},Of={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Hf={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},Vf={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},zf={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Wf={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},qf={common:j2,calendar:E2,passCard:M2,searchField:L2,rating:$2,colorPicker:R2,dropdown:P2,accordion:I2,header:F2,nav:O2,settings:H2,usage:V2,account:z2,help:W2,training:q2,trainingSettings:U2,customers:G2,payment:K2,coupons:Y2,visits:Z2,company:X2,trainingType:J2,myWordTraining:Q2,myWordTable:ef,keyWords:tf,wordTable:nf,wordSearch:af,wordPrint:rf,topic:of,accessLinkManager:sf,login:lf,trainingPlanRun:cf,device:uf,manager:df,wordPairs:pf,game:mf,footer:hf,landing:ff,date:Cf,trainingSetPage:gf,wordTrainingPreview:bf,wordData:yf,textField:vf,segmentedControl:xf,tabs:_f,fileUpload:wf,avatar:kf,myHomework:Af,trainingStatus:Nf,store:Bf,homework:Sf,inquiry:Df,progress:Tf,trainingMiss:jf,table:Ef,wordScore:Mf,topBanner:Lf,datePicker:$f,report:Rf,tooltip:Pf,phonemeProfile:If,bulkBar:Ff,debug:Of,badge:Hf,loader:Vf,soundCompass:zf,breadcrumb:Wf},Uf={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."},Gf={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"},Kf={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"}},Yf={clearAriaLabel:"Clear search"},Zf={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},Xf={selected:"selected"},Jf={placeholder:"Select"},Qf={collapse:"Collapse",expand:"Expand"},eC={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},tC={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}}"},nC={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."}}},aC={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"}},rC={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"}}},oC={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},sC={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"}},iC={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"},lC={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"}},cC={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},uC={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"}},dC={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},pC={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},mC={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."}},hC={comingSoon:"Word training is coming soon."},fC={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"},CC={title:"Key Words",empty:"No key words available."},gC={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"}},bC={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}}"}},yC={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},vC={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"}},xC={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"}},_C={passwordPlaceholder:"Enter password"},wC={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"}},kC={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"}},AC={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."]},NC={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"}},BC={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"},SC={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"}}},DC={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},TC={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},jC={answer:"Answer",distractor:"Distractor"},EC={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},MC={clearAriaLabel:"Clear input"},LC={ariaLabel:"Select tab"},$C={ariaLabel:"Tabs"},RC={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},PC={ariaLabel:"User avatar"},IC={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"}},FC={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"}},OC={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)"}},HC={manage:{unit:"item(s)"}},VC={cancelLabel:"Cancel"},zC={subtitle:"Select a topic to start listening practice."},WC={steps:"Step {{current}} of {{total}}"},qC={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"},UC={resetColumns:"Reset column widths"},GC={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}}"},KC={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},YC={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},ZC={previewRegion:"Report preview \u2014 scrollable sideways"},XC={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},JC={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},QC={clearSelection:"Clear selection"},eg={showResult:"Show {{type}} result"},tg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},ng={loading:"Loading"},ag={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},rg={ariaLabel:"Breadcrumb"},og={common:Uf,calendar:Gf,passCard:Kf,searchField:Yf,rating:Zf,colorPicker:Xf,dropdown:Jf,accordion:Qf,header:eC,nav:tC,settings:nC,usage:aC,account:rC,help:oC,training:sC,trainingSettings:iC,customers:lC,payment:cC,coupons:uC,visits:dC,company:pC,trainingType:mC,myWordTraining:hC,myWordTable:fC,keyWords:CC,wordTable:gC,wordSearch:bC,wordPrint:yC,topic:vC,accessLinkManager:xC,login:_C,device:wC,manager:kC,wordPairs:AC,game:NC,footer:BC,landing:SC,date:DC,trainingSetPage:TC,wordTrainingPreview:jC,wordData:EC,textField:MC,segmentedControl:LC,tabs:$C,fileUpload:RC,avatar:PC,myHomework:IC,trainingStatus:FC,store:OC,homework:HC,inquiry:VC,trainingPlanRun:zC,progress:WC,trainingMiss:qC,table:UC,wordScore:GC,topBanner:KC,datePicker:YC,report:ZC,tooltip:XC,phonemeProfile:JC,bulkBar:QC,debug:eg,badge:tg,loader:ng,soundCompass:ag,breadcrumb:rg};const sg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Ei="ko",ig="ihab_display_language";function Mi(){try{const e=localStorage.getItem(ig);if(e&&sg.some(n=>n.code===e))return e}catch{}return Ei}function Li(e){try{document.documentElement.lang=e}catch{}}Lt.on("languageChanged",Li),Li(Mi()),Lt.use(pe.initReactI18next).init({resources:{ko:{translation:qf},en:{translation:og}},lng:Mi(),fallbackLng:Ei,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function $i(e){if(!(e==null||e===""))return ca(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function lg(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function cg(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 ug(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 Ri(e){return{type:e.type??lg(e),plan:cg(e),label:e.label,price:$i(e.price),originalPrice:$i(e.originalPrice),discountLabel:e.discountLabel}}var dg='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',pg='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>',mg='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',hg='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',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 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>',Cg='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',Pi='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"},Dr=new WeakMap;function gg(e){if(e)return Dr.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),Dr.set(e,n))}function fn(e){e&&(e.style.removeProperty(In.text),e.style.removeProperty(In.sub),e.style.removeProperty(In.copyright),Dr.delete(e))}const Ii={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Fi(e={}){const n=ct(Ii,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("${Pi}")`}})]})}const Oi="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 pa='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 bg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},yg=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Hi(e={}){const n=ct(bg,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:yg.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:Oi,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("${pa}")`}})]})}const vg={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},xg=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function _g(e={}){const n=ct(vg,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:xg.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:Oi,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("${Pi}")`}})]})}const wg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function kg(e={}){const n=ct(wg,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("${pa}")`}})]})}const Ag={Logo_speechear_kr:{"":Br,_white:dg,_textWhite:pg,_black:mg},Logo_speechearManager_kr:{"":Sr,_white:hg,_textWhite:fg,_black:Cg}};function Ng(e,n){if(e)return Ag[e]?.[n??""]??void 0}const Bg={speechear:Br,manager:Sr},Sg={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Vi=10;function Dg(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 Tg(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===Lt.t("passCard.specialLabel");return r?t.jsx(kg,{}):o?t.jsx(_g,{}):t.jsx(Hi,{})}return t.jsx(Fi,{})}function zi({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:b,onRefund:x,onDelete:_}){const{t:g}=pe.useTranslation(),A=e?Ri(e):void 0,w=r??A?.type??"speechear",S=a??A?.plan??"\uC774\uC6A9\uAD8C",B=C??A?.label,k=y??(n?A?.price:void 0),N=f??(n?A?.originalPrice:void 0),V=v??A?.discountLabel,H=s.useMemo(()=>{if(k)return null;const Y=e?.durationDays??ug(e?.code);if(!Y||Y<=0)return null;const le=Y*86400;let J;if(i!=null)J=i;else if((l==="active"||l==="expired")&&o){const ve=new Date(o).getTime();if(Number.isNaN(ve))return null;const Te=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(o)),de=/^(\d{4})-(\d{2})-(\d{2})/.exec(Mn()),ye=Math.round(Te&&de?(Date.UTC(+Te[1],+Te[2]-1,+Te[3])-Date.UTC(+de[1],+de[2]-1,+de[3]))/864e5:(ve-Date.now())/864e5);J=Math.max(0,ye)*86400}else l==="expired"?J=0:J=le;const be=Math.max(0,Math.min(100,Math.floor(Math.min(J,le)/le*100)));return l==="pending"&&be>=100?null:{percent:be,remainingLabel:Dg(J,g)}},[k,l,o,i,e?.durationDays,e?.code,g]),T=s.useRef(null),[F,j]=s.useState({}),[Z,R]=s.useState(null),I=!!(b||x||_),q=s.useRef(!1),ae=s.useRef(void 0),[U,P]=s.useState(h);s.useLayoutEffect(()=>{P(h)},[h]),s.useLayoutEffect(()=>{const Y=T.current;Y&&(d!==void 0&&Y.style.setProperty("--pass-card-text",d),p!==void 0&&Y.style.setProperty("--pass-card-sub",p),m!==void 0&&Y.style.setProperty("--pass-card-copyright",m))},[d,p,m]),s.useLayoutEffect(()=>{const Y=T.current;if(!Y)return;const le=gg(Y);if(!h){const J=Sg[w],be=l==="expired"?"_black":le?.logoColor??"",ve=Ng(J,be);P(ve)}},[c,h,w,l]);const M=Y=>{const le=T.current;if(!le)return null;const{left:J,top:be,width:ve,height:Te}=le.getBoundingClientRect(),de=(Y.clientX-J)/ve-.5;return{rotateX:-((Y.clientY-be)/Te-.5)*Vi,rotateY:de*Vi}},$=(Y,le)=>{const J=le*-.7,be=Y*.7+10,ve=20+(Math.abs(Y)+Math.abs(le))*.4;return`${J}px ${be}px ${ve}px rgba(0, 0, 0, 0.18)`},z=s.useCallback(Y=>{q.current=!0,clearTimeout(ae.current),ae.current=setTimeout(()=>{q.current=!1},200);const le=M(Y);le&&j({transform:`perspective(800px) rotateX(${le.rotateX}deg) rotateY(${le.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:$(le.rotateX,le.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)"})},[]),L=s.useCallback(Y=>{const le=M(Y);if(!le)return;const J=q.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";j({transform:`perspective(800px) rotateX(${le.rotateX}deg) rotateY(${le.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:$(le.rotateX,le.rotateY),transition:J})},[]),E=s.useCallback(()=>{clearTimeout(ae.current),q.current=!1,j({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=s.useCallback(()=>R(null),[]),se=s.useMemo(()=>{const Y=S.replace("\uC774\uC6A9\uAD8C","").trim(),le=Y.match(/^(.*?)(일|년)$/);return le?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:le[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:le[2]==="\uB144"?g("passCard.unitYear","\uB144"):g("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:Y})},[S,g]),oe=s.useMemo(()=>{const Y=ca(k);if(!Y)return null;const le=Y.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!le)return t.jsx("span",{className:"h1",children:Y});const[,J,be,ve]=le;return t.jsxs(t.Fragment,{children:[J&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:J}),t.jsx("span",{className:"h1 pass-card__price-amount",children:be}),ve.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ve.trim()})]})},[k]),ee=s.useCallback(()=>{I&&R(Y=>{if(Y)return null;const le=T.current?.getBoundingClientRect();if(!le)return null;const J=50;return{left:le.left,right:le.right,width:le.width,height:le.height,x:le.x,y:le.y+J,top:le.top+J,bottom:le.bottom+J}})},[I]),ie=s.useCallback(Y=>{I&&(Y.key==="Enter"||Y.key===" ")&&(Y.preventDefault(),ee())},[I,ee]),Ce=[{items:[...b?[{label:g("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{b(),R(null)},closeOnSelect:!0}]:[],...x?[{label:g("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),R(null)},closeOnSelect:!0}]:[],..._?[{label:g("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{_(),R(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:T,className:`pass-card pass-card--${l}${I?" pass-card--clickable":""}`,style:F,onMouseEnter:z,onMouseMove:L,onMouseLeave:E,onClick:ee,onKeyDown:I?ie:void 0,role:I?"button":void 0,tabIndex:I?0:void 0,"aria-haspopup":I?"menu":void 0,"aria-expanded":I?!!Z:void 0,children:[c??Tg(w,S,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:U??Bg[w],className:"pass-card__logo",alt:w==="manager"?g("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):g("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?g("passCard.labeledPlan",{label:B}):g("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),k?t.jsxs("div",{className:"pass-card__price-area",children:[V&&t.jsx("span",{className:"pass-card__discount body-3",children:V}),t.jsxs("div",{className:"pass-card__price",children:[N&&t.jsx("span",{className:"pass-card__price-original body-3",children:ca(N)}),oe]})]}):H?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:H.remainingLabel}),t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:H.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."})]})]})}),Z&&t.jsx(wn,{anchorRect:Z,onClose:O,ariaLabel:g("tooltip.menu","\uBA54\uB274"),children:t.jsx(Ea,{columns:Ce,onClose:O,size:"small"})})]})}const jg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Eg(e={}){const n=`passcard-sound-line-grad-${s.useId()}`,a=ct(jg,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("${pa}")`}})]})}const Mg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Lg(e={}){const n=ct(Mg,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("${pa}")`}})]})}function $g(e,n){if(e){if(n==="manager_pro")return t.jsx(Lg,{});if(n==="manager_standard")return t.jsx(Eg,{});if(n==="manager_lite")return t.jsx(Hi,{})}}function Rg(e){const n=ca(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 Pg(e){const{t:n}=pe.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=g=>!!g&&!!c?.includes(g),d=g=>g.onceOnly??/오픈\s*특가/.test(g.label??""),p=(o.tiers||[]).some(g=>d(g)&&u(g.code)),m=g=>{const A=g.prices?g.prices[l]:g.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=g=>g.prices?g.prices[l]:g.price,v=(o.tiers||[]).length>0&&(o.tiers||[]).every(g=>{const A=f(g);return A==="\uBB34\uB8CC"||A===C||A==="0\uC6D0"||typeof A=="string"&&/\d/.test(A)&&!/[1-9]/.test(A)}),b=(o.tiers||[]).length>0&&(o.tiers||[]).every(g=>{const A=f(g);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(ut,{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((g,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(We,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),g]},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((g,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(We,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),g]},A))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:v?null:b?t.jsx(ce,{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(g=>{const A=g.label||a,w=d(g),S=w||g.openPromo===!0,B=A.replace(/^오픈\s*특가\s*/,"")||a,k=g.prices?g.prices[l]:g.price,N=g.badge?S?`${r}
|
|
832
|
-
${g.badge}`:g.badge:void 0;if(w&&u(g.code))return null;if(!g.badge&&!p)return m(g)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${g.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:g.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:Rg(k)})})]},g.id);const V=o.tier??(x?o.title:void 0),H=t.jsx(zi,{showPrice:!0,product:{type:_,code:g.code,name:B,label:V,price:k,originalPrice:g.originals?.[l]??void 0,discountLabel:N},bg:$g(x,o.id)}),T=()=>i?.({...g,productId:o.id,productTitle:o.title,preview:H});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:T,onKeyDown:i?F=>{F.target===F.currentTarget&&(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),T())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:H},g.id)})})})})]})}function Ig({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 Tr='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 Wi={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Fg(){const e=ct(Wi,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("${Tr}")`}})})}const qi={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Og(e={}){const n=ct(qi,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("${pa}")`}})]})}function Ui({keys:e,anchor:n="top-right",scale:a,className:r=""}){const o=Array.isArray(e)?e:[e];return t.jsx("span",{className:ge("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 ma=(e,n,a)=>e+(n-e)*a;function Hg({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:b=!1,centerAttention:x=!1,shortcutAnchor:_="top-right",shortcutScale:g,scaleShortcut:A=!1}){const{t:w}=pe.useTranslation(),S=Math.max(0,Math.min(1,a)),B=n/2,k=110/300,N=.18,V=J=>n*(k+(J-1)*N),H=J=>{const be=V(J.row??1),ve=J.angleDeg*Math.PI/180;return{x:B+be*Math.cos(ve),y:B+be*Math.sin(ve)}},T=Math.max(...e.map(J=>J.row??1),1),F=n*.08,j=n*.1,Z=n*.24,R=n-2*F,I=n-j-Z,q=n-Z/2,ae=s.useMemo(()=>[...new Set(e.map(J=>J.deg))].sort((J,be)=>J-be),[e]),U=ae.length,P=Math.max(68,U>1?R/(U-1):0),M=s.useMemo(()=>new Map(ae.map((J,be)=>[J,be])),[ae]),$=J=>{const be=M.get(J.deg)??0,ve=B+(be-(U-1)/2)*P,Te=T>1?Math.min(68,I/(T-1)):0,de=Te*(T-1),ye=j+(I-de)/2,we=T===1?j+I*.4:ye+(T-(J.row??1))*Te;return{x:ve,y:we}},z=J=>{const be=H(J),ve=$(J);return{x:ma(be.x,ve.x,S),y:ma(be.y,ve.y,S)}},L={x:B,y:ma(B,q,S)},E=Math.round(C*1.2),O=Math.round(Math.max(16,Math.min(80,C*.7))),se=[],oe=new Map;for(const J of e){const be=J.row??1;oe.has(be)||oe.set(be,[]),oe.get(be).push(J)}for(const[J,be]of oe.entries()){if(be.length<2)continue;const ve=[...be].sort((Re,tt)=>Re.deg-tt.deg),Te=ve.map(Re=>z(Re)),de=ve.map(Re=>Re.deg),ye=de[de.length-1]-de[0],we=ye/(de.length-1),Q=360-ye,te=ve.length>=3&&we>0&&Q<=we*1.5,_e=Math.round(V(J)*1e3)/1e3,je=(Re,tt,Ke,Ue)=>{const fe=(tt.angleDeg-Re.angleDeg+540)%360-180;if(fe===0)return`L ${Ue.x} ${Ue.y}`;if(S===0)return`A ${_e} ${_e} 0 0 ${fe>0?1:0} ${Ue.x} ${Ue.y}`;const Ge=(Re.angleDeg+fe/2)*Math.PI/180,Ee={x:B+_e*Math.cos(Ge),y:B+_e*Math.sin(Ge)},$e={x:(Ke.x+Ue.x)/2,y:(Ke.y+Ue.y)/2},He={x:ma(Ee.x,$e.x,S),y:ma(Ee.y,$e.y,S)},Ye={x:2*He.x-$e.x,y:2*He.y-$e.y};return`Q ${Ye.x} ${Ye.y} ${Ue.x} ${Ue.y}`},ze=te?[...ve,ve[0]]:ve,Me=te?[...Te,Te[0]]:Te;let Oe=`M ${Me[0].x} ${Me[0].y}`;for(let Re=1;Re<Me.length;Re++)Oe+=" "+je(ze[Re-1],ze[Re],Me[Re-1],Me[Re]);se.push({key:`arc-${J}`,d:Oe})}const ee=s.useMemo(()=>new Set(o??[]),[o]),ie=J=>({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")})[J],Ce=J=>{if(r===J.id)return"active";if(c){if(J.id===l)return"correct";if(J.id===i&&i!==l)return"wrong"}return ee.has(J.id)?"played":"idle"},Y=J=>r===J.id?"loop":c?J.id===l?"loop":null:u&&J.id===i?"once":null,le=(J,be)=>{switch(J){case"played":case"correct":return t.jsx(Do,{size:be});case"wrong":return t.jsx(Fo,{size:be});default:return t.jsx(Io,{size:be})}};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:[S===0&&e.map(J=>{const{x:be,y:ve}=z(J);return t.jsx("line",{x1:L.x,y1:L.y,x2:be,y2:ve,stroke:"#dde3ec",strokeWidth:"1"},J.id)}),se.map(J=>t.jsx("path",{d:J.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},J.key))]}),x&&!b&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:E,height:E,left:L.x-E/2,top:L.y-E/2}}),f?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${b?" sound-compass__center--disabled":""}`,style:{width:E,height:E,left:L.x,top:L.y},"aria-label":v,"aria-disabled":b||void 0,tabIndex:b?-1:0,onClick:b?void 0:f,children:t.jsx(er,{size:O,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:E,height:E,left:L.x,top:L.y},children:t.jsx(er,{size:O,color:"currentColor",strokeWidth:1.5})}),e.map((J,be)=>{const{x:ve,y:Te}=z(J),de=Ce(J),ye=Y(J),we={...g!==void 0||A?{"--shortcut-badge-scale":String(g??Math.max(.75,Math.min(3,C/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:de!=="idle"?10:1},Q=C,te=Math.round(Math.max(10,Math.min(56,Q*.38))),_e=Math.round(Math.max(7,Math.min(18,Q*.2))),je=Math.round(Math.max(10,Math.min(56,Q*.4))),ze=y==="answered"&&(de==="played"||de==="correct"||de==="wrong"),Me=y===!0||ze,Oe=!ze;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...we,left:ve-Q/2,top:Te-Q/2},children:[ye&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${de}`+(ye==="once"?" sound-compass__pulse--once":""),style:{width:Q,height:Q,...ye==="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?.(J.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${de}`,style:{width:Q,height:Q},"aria-label":ie(de)?`${J.label}, ${ie(de)}`:J.label,"aria-pressed":i!=null?J.id===i:void 0,children:[Me&&le(de,te),Oe&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?_e:je},children:be+1})]}),J.shortcut&&t.jsx(Ui,{keys:J.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},J.id)})]})})}function Vg({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:ge("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function zg({orientation:e="horizontal",label:n,className:a=""}){const r=ge("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 Gi({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 Wg({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(Gi,{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 qg={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Ug({tone:e="info",title:n,message:a,children:r,dismissible:o=!1,onDismiss:i,className:l=""}){const{t:c}=pe.useTranslation(),[u,d]=s.useState(!1),p=s.useCallback(()=>{d(!0),i?.()},[i]);if(u)return null;const m=ge("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(We,{icon:qg[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 Gg={ready:"search",guide:"info",error:"circle-alert"};function Kg(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 Yg({status:e="guide",label:n,children:a,emphasis:r,icon:o,className:i=""}){const l=o===!1?null:o??Gg[e],c=ge("search-summary",`search-summary--${e}`,i),u=n??a,d=typeof u=="string"&&r&&r.length>0?Kg(u,r):u;return t.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(We,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:d})]})}function ha({title:e,items:n}){const{t:a}=pe.useTranslation(),{anchorRect:r,openAt:o,close:i}=ja();return t.jsxs(t.Fragment,{children:[t.jsx(ce,{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 Zg({items:e=[],value:n,onChange:a,className:r="",size:o=40}){const i=s.useId(),{t:l}=pe.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 b=(f%v.length+v.length)%v.length;v[b]?.focus(),v[b]?.click()},C=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const v=m(),b=v.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?h(b+1,v):f.key==="ArrowLeft"||f.key==="ArrowUp"?h(b-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 Xg={xs:12,sm:16,md:20,lg:28,xl:36};function Jg(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 Qg({src:e,name:n,size:a="md",shape:r="circle",className:o=""}){const{t:i}=pe.useTranslation(),[l,c]=s.useState(null),u=!!e&&l===e,d=n?Jg(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(We,{icon:"user-round",size:Xg[a],className:"avatar__icon"})]})}function e4(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 t4({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:o=!0,files:i,onRemove:l,className:c=""}){const{t:u}=pe.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 S=Array.from(w).filter(k=>e4(k,n));if(S.length===0)return;const B=a?S:S.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)},b=w=>{w.preventDefault(),m(!1)},x=w=>{w.preventDefault(),m(!1),!r&&f(w.dataTransfer.files)},_=w=>{f(w.target.files),w.target.value=""},g=()=>{r||d.current?.click()},A=w=>{if(!r&&(l?.(w),i===void 0)){const S=y.filter((B,k)=>k!==w);C(S),l||e?.(S)}};return t.jsxs("div",{className:`file-upload ${c}`.trim(),children:[t.jsxs("div",{className:ge("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:g,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),g())},onDragOver:v,onDragLeave:b,onDrop:x,children:[t.jsx(We,{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(),g()},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,S)=>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(S),children:t.jsx(We,{icon:"x",size:14})})]},`${w.name}-${S}`))})]})}function n4({items:e,className:n=""}){const{t:a}=pe.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(We,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},o)})})})}const a4={small:14,medium:20,large:28};function r4({value:e,onChange:n,max:a=5,readOnly:r=!1,size:o="medium",ariaLabel:i,className:l=""}){const{t:c}=pe.useTranslation(),u=r||!n,[d,p]=s.useState(null),m=d??e,h=a4[o],C=g=>{u||n?.(g)},y=g=>{u||p(g)},f=s.useRef(null),v=g=>{const A=Math.min(a,Math.max(1,g));n?.(A),Array.from(f.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(A))?.focus()},b=g=>{if(!u){switch(g.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}g.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:b,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},(g,A)=>{const w=A+1,S=Math.max(0,Math.min(1,m-A)),B=S>0&&S<1,k=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(We,{icon:"star",size:h,className:"rating__star rating__star--empty"}),S>0&&t.jsx("span",{className:`rating__star-fill${B?" rating__star-fill--half":""}`,style:B?{width:`${S*100}%`}:void 0,children:t.jsx(We,{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 o4=20,s4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function i4({value:e,onChange:n,palette:a=s4,size:r=40,className:o="",ariaLabel:i}){const{t:l}=pe.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(We,{icon:"check",size:o4,className:"color-picker__check"})},c)})})}function l4({icon:e,count:n,title:a,className:r="",onClick:o,onMouseEnter:i,onMouseLeave:l}){const c=ge("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(We,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]})}let fa=0,Ki="",Yi="",Ca=0;function Zi(){return Xi(!1)}function c4(){return Xi(!0)}function Xi(e){const n=typeof document<"u";fa===0&&n&&(Ki=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(Ca===0&&(Yi=document.body.style.paddingRight),Ca++,document.body.style.paddingRight="0px"),fa++;let a=!1;return()=>{a||(a=!0,fa=Math.max(0,fa-1),e&&n&&(Ca=Math.max(0,Ca-1),Ca===0&&(document.body.style.paddingRight=Yi)),fa===0&&n&&(document.body.style.overflow=Ki))}}const jr=new WeakMap;function Er(e,n){e&&jr.set(e,n)}function Mr(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!jr.has(r);)r=r.parentElement;if(!r)return n;n=jr.get(r)??null}return n}function u4(){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 d4({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}=pe.useTranslation(),h=s.useId(),C=s.useRef(null),y=s.useCallback(()=>n(),[n]);s.useEffect(()=>{if(!e)return;const x=document.activeElement,_=Zi(),g=C.current;return Er(g,x),g?.focus(),()=>{_();const A=document.activeElement;(!A||A===document.body||g&&g.contains(A))&&Mr(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 b=s.useRef(!1);return vr(C,e),!e||typeof document>"u"?null:qt.createPortal(t.jsx("div",{className:ge("dialog",d),onPointerDown:l?x=>{b.current=x.target===x.currentTarget}:void 0,onMouseDown:x=>{x.target===x.currentTarget&&x.preventDefault()},onClick:l?x=>{const _=b.current;b.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:ge("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(u4,{})}):null,t.jsx("div",{className:"dialog__body",children:o})]})}),document.body)}function p4({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:ge("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:ge("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:ge("board__td",`board__cell--${h.align??"left"}`),children:h.render(p,m)},h.key))},a(p,m)))})]})]})}function m4({name:e,role:n,photo:a,media:r,credentials:o,size:i=190,className:l=""}){return t.jsxs("div",{className:ge("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 h4({groups:e,className:n=""}){return t.jsx("div",{className:ge("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 f4({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:ge("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 C4({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const o=wr(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 g4({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:ge("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 b4({items:e,className:n=""}){return t.jsx("ul",{className:ge("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 Ji({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 b=e??"";return b?a.filter(x=>x.toLowerCase().includes(b.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(b=>{n?.(b),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(b=>{b.nativeEvent.isComposing||b.keyCode===229||(b.key==="ArrowDown"?(b.preventDefault(),l(!0),u(x=>Math.min(p.length-1,(x<p.length?x:-1)+1))):b.key==="ArrowUp"?(b.preventDefault(),u(x=>Math.max(-1,(x<p.length?x:p.length)-1))):b.key==="Enter"?m>=0&&h(p[m]):b.key==="Escape"&&i&&(b.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 y4=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:b="input",fullWidth:x=!1,newline:_=!1,multiline:g=!1,rows:A=3,leftIcon:w,rightIcon:S,clearable:B=!1,list:k,showCount:N=!0,className:V="",onFocus:H,onBlur:T,onKeyDown:F,onEnter:j,inputMode:Z,autoComplete:R,autoFocus:I,suggestions:q,openOnFocus:ae=!1}=e,U=h||m?void 0:q,{t:P}=pe.useTranslation(),M=s.useId();!l&&!c&&ea(`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 $=`tf-${M}`,z=`tf-helper-${M}`,L=s.useRef(null),E=Ji({value:n??"",onChange:i,suggestions:U??[],openOnFocus:ae}),O=!!U&&E.open&&E.filtered.length>0,se=s.useCallback(te=>{L.current=te,typeof o=="function"?o(te):o&&(o.current=te)},[o]),oe=n!==void 0,ee=oe&&p==="password",[ie,Ce]=s.useState((a??"").length),Y=oe?(n??"").length:ie,le=s.useRef(n);y4(()=>{le.current=n}),s.useEffect(()=>{const te=L.current;if(!ee||!te)return;const _e=n??"";te.value!==_e&&(te.value=_e)},[ee,n]),s.useEffect(()=>{if(!_||!L.current)return;const te=L.current;te.style.height="",te.scrollHeight>te.clientHeight&&(te.style.height=`${te.scrollHeight}px`)},[n,ie,_]);const J=f!=null&&Y>f,be=v===32?16:20,ve=ge("text-field",`text-field--s${v}`,b==="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":"",S||B?"text-field--has-right-icon":"",V),Te={id:$,...ee?{}:oe?{value:n}:{defaultValue:a},ref:se,placeholder:d,name:r,disabled:m,readOnly:h,autoFocus:I,maxLength:f,list:k,inputMode:Z,autoComplete:R,"aria-label":!l&&c?c:void 0,"aria-required":u,"aria-invalid":!!C,"aria-describedby":y||C?z:void 0,role:U?"combobox":void 0,"aria-autocomplete":U?"list":void 0,"aria-haspopup":U?"listbox":void 0,"aria-expanded":U?E.open:void 0,"aria-controls":O?E.listId:void 0,"aria-activedescendant":O&&E.activeIdx>=0?`${E.listId}-option-${E.activeIdx}`:void 0,onChange:te=>{const _e=te.target;oe||Ce(_e.value.length),i?.(_e.value),U&&E.handleInput(),ee&&queueMicrotask(()=>{const je=le.current??"";_e.value!==je&&(_e.value=je)})},onFocus:(te=>{H?.(te),U&&E.handleFocus()}),onBlur:(te=>{T?.(te),U&&E.handleBlur()}),onKeyDown:(te=>{U&&te.key==="Enter"&&!te.nativeEvent.isComposing&&E.activeIdx>=0?te.preventDefault():j&&te.key==="Enter"&&!te.nativeEvent.isComposing&&(te.preventDefault(),j()),F?.(te),U&&E.handleKeyDown(te)})},de=B&&!m&&!h&&Y>0,ye=()=>_?t.jsx("textarea",{...Te,className:"text-field__input text-field__input--auto body-2",rows:1}):g?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"}),we=b==="display"&&!_&&!g&&!!d,Q=()=>t.jsxs(t.Fragment,{children:[ye(),we&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return t.jsxs("div",{className:ve,children:[l&&t.jsxs("label",{htmlFor:$,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(We,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})}),Q(),f!=null&&N&&t.jsxs("span",{className:`text-field__count caption-2${J?" text-field__count--over":""}`,children:[Y,"/",f]}),de&&t.jsx(ce,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:P("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:te=>{te.preventDefault()},onClick:()=>{!oe&&L.current&&(L.current.value="",Ce(0)),i?.("")},tabIndex:-1}),S&&!de&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(We,{icon:S,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})})]}),U&&E.open&&E.filtered.length>0&&t.jsx("ul",{id:E.listId,className:"text-field__suggestions",role:"listbox",children:E.filtered.map((te,_e)=>t.jsx("li",{id:`${E.listId}-option-${_e}`,role:"option","aria-selected":_e===E.activeIdx,className:`text-field__suggestion body-2${_e===E.activeIdx?" is-active":""}`,onMouseDown:je=>je.preventDefault(),onClick:()=>{E.handleSelect(te),L.current?.focus()},children:te},`${te}-${_e}`))}),(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 en({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}=pe.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),C=s.useId(),y=s.useId(),f=s.useRef(null),v=s.useCallback(j=>{const Z=window.innerHeight-j.bottom<260&&j.top>260;return{position:"fixed",left:j.left,minWidth:j.width,...Z?{bottom:window.innerHeight-j.top+6}:{top:j.bottom+6},zIndex:9999}},[]),{open:b,setOpen:x,toggle:_,style:g,triggerRef:A,menuRef:w}=da({computeStyle:v}),[S,B]=s.useState(-1),k=s.useCallback(()=>B(-1),[]),N=e.find(j=>j.value===n);s.useEffect(()=>{if(b){const j=e.findIndex(Z=>Z.value===n);B(j>=0?j:0),requestAnimationFrame(()=>{const Z=w.current;if(!Z)return;const R=Z.querySelectorAll(".dropdown__option")[j];R&&(Z.scrollTop=Math.max(0,R.offsetTop-Z.clientHeight/2+R.clientHeight/2))})}},[b]);const V=s.useCallback(()=>{o||_()},[o,_]),H=s.useCallback(j=>{j.disabled||o||(a?.(j.value),x(!1))},[a,x,o]);s.useEffect(()=>{o&&x(!1)},[o,x]);const T=s.useCallback(j=>{if(!o){if(!b){(j.key==="Enter"||j.key===" "||j.key==="ArrowDown")&&(j.preventDefault(),x(!0));return}if(j.key==="Escape"){j.preventDefault(),x(!1);return}j.key==="ArrowDown"?(j.preventDefault(),B(Z=>{let R=Z+1;for(;R<e.length&&e[R].disabled;)R++;return R<e.length?R:Z})):j.key==="ArrowUp"?(j.preventDefault(),B(Z=>{let R=Z-1;for(;R>=0&&e[R].disabled;)R--;return R>=0?R:Z})):j.key==="Enter"&&S>=0&&(j.preventDefault(),H(e[S]))}},[o,b,e,S,H,x]),F=b?t.jsx("div",{ref:w,id:C,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:g,onMouseLeave:k,onMouseDown:j=>j.preventDefault(),children:e.map((j,Z)=>t.jsxs("button",{id:`${C}-option-${Z}`,type:"button",role:"option","aria-selected":j.value===n,className:ge("dropdown__option body-2",j.value===n?"dropdown__option--active":"",Z===S?"dropdown__option--active":"",j.disabled?"dropdown__option--disabled":""),onMouseDown:R=>R.preventDefault(),onClick:()=>H(j),onMouseEnter:()=>B(Z),disabled:j.disabled,children:[t.jsx("span",{className:"dropdown__option-check",children:j.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"})})}),j.label]},j.value))}):null;return t.jsxs("div",{ref:f,className:ge("dropdown",`dropdown--s${l}`,b?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:T,children:[t.jsxs("button",{ref:A,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?C:void 0,"aria-activedescendant":b&&S>=0?`${C}-option-${S}`:void 0,"aria-label":d,"aria-describedby":[d&&N?y:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":c||void 0,disabled:o,onClick:V,onBlur:j=>{b&&!w.current?.contains(j.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"&&qt.createPortal(F,f.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Ma({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:o,className:i=""}){const{t:l}=pe.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:ge("pagination",i),children:[t.jsx(ce,{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(ce,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=n,onClick:m})]})}function On(e){const{t:n}=pe.useTranslation(),{options:a=[],value:r=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 b=Math.max(0,h.findIndex(_=>_.key===r)),x=v==="first"?h[0]:v==="last"?h[h.length-1]:h[(b+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:ge("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(ce,{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 Lr({count:e,search:n,segment:a,filters:r,pageSize:o,pagination:i,actions:l,className:c}){const{t:u}=pe.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:ge("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(en,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},h)),o&&t.jsx(en,{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(Ma,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),l]})})]})}function Qi(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Qi).join(""):""}function v4(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"},SC={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"}}},DC={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},TC={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},jC={answer:"Answer",distractor:"Distractor"},EC={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},MC={clearAriaLabel:"Clear input"},LC={ariaLabel:"Select tab"},$C={ariaLabel:"Tabs"},RC={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},PC={ariaLabel:"User avatar"},IC={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"}},FC={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"}},OC={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)"}},HC={manage:{unit:"item(s)"}},VC={cancelLabel:"Cancel"},zC={subtitle:"Select a topic to start listening practice."},WC={steps:"Step {{current}} of {{total}}"},qC={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"},UC={resetColumns:"Reset column widths"},GC={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}}"},KC={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},YC={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},ZC={previewRegion:"Report preview \u2014 scrollable sideways"},XC={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},JC={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},QC={clearSelection:"Clear selection"},eg={showResult:"Show {{type}} result"},tg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},ng={loading:"Loading"},ag={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},rg={ariaLabel:"Breadcrumb"},og={common:Uf,calendar:Gf,passCard:Kf,searchField:Yf,rating:Zf,colorPicker:Xf,dropdown:Jf,accordion:Qf,header:eC,nav:tC,settings:nC,usage:aC,account:rC,help:oC,training:sC,trainingSettings:iC,customers:lC,payment:cC,coupons:uC,visits:dC,company:pC,trainingType:mC,myWordTraining:hC,myWordTable:fC,keyWords:CC,wordTable:gC,wordSearch:bC,wordPrint:yC,topic:vC,accessLinkManager:xC,login:_C,device:wC,manager:kC,wordPairs:AC,game:NC,footer:BC,landing:SC,date:DC,trainingSetPage:TC,wordTrainingPreview:jC,wordData:EC,textField:MC,segmentedControl:LC,tabs:$C,fileUpload:RC,avatar:PC,myHomework:IC,trainingStatus:FC,store:OC,homework:HC,inquiry:VC,trainingPlanRun:zC,progress:WC,trainingMiss:qC,table:UC,wordScore:GC,topBanner:KC,datePicker:YC,report:ZC,tooltip:XC,phonemeProfile:JC,bulkBar:QC,debug:eg,badge:tg,loader:ng,soundCompass:ag,breadcrumb:rg};const sg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Ei="ko",ig="ihab_display_language";function Mi(){try{const e=localStorage.getItem(ig);if(e&&sg.some(n=>n.code===e))return e}catch{}return Ei}function Li(e){try{document.documentElement.lang=e}catch{}}Lt.on("languageChanged",Li),Li(Mi()),Lt.use(pe.initReactI18next).init({resources:{ko:{translation:qf},en:{translation:og}},lng:Mi(),fallbackLng:Ei,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function $i(e){if(!(e==null||e===""))return ca(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function lg(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function cg(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 ug(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 Ri(e){return{type:e.type??lg(e),plan:cg(e),label:e.label,price:$i(e.price),originalPrice:$i(e.originalPrice),discountLabel:e.discountLabel}}var dg='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',pg='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>',mg='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',hg='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',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 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>',Cg='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',Pi='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"},Dr=new WeakMap;function gg(e){if(e)return Dr.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),Dr.set(e,n))}function fn(e){e&&(e.style.removeProperty(In.text),e.style.removeProperty(In.sub),e.style.removeProperty(In.copyright),Dr.delete(e))}const Ii={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Fi(e={}){const n=ct(Ii,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("${Pi}")`}})]})}const Oi="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 pa='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 bg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},yg=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Hi(e={}){const n=ct(bg,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:yg.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:Oi,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("${pa}")`}})]})}const vg={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},xg=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function _g(e={}){const n=ct(vg,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:xg.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:Oi,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("${Pi}")`}})]})}const wg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function kg(e={}){const n=ct(wg,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("${pa}")`}})]})}const Ag={Logo_speechear_kr:{"":Br,_white:dg,_textWhite:pg,_black:mg},Logo_speechearManager_kr:{"":Sr,_white:hg,_textWhite:fg,_black:Cg}};function Ng(e,n){if(e)return Ag[e]?.[n??""]??void 0}const Bg={speechear:Br,manager:Sr},Sg={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Vi=10;function Dg(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 Tg(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===Lt.t("passCard.specialLabel");return r?t.jsx(kg,{}):o?t.jsx(_g,{}):t.jsx(Hi,{})}return t.jsx(Fi,{})}function zi({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:b,onRefund:x,onDelete:_}){const{t:g}=pe.useTranslation(),A=e?Ri(e):void 0,w=r??A?.type??"speechear",S=a??A?.plan??"\uC774\uC6A9\uAD8C",N=C??A?.label,k=y??(n?A?.price:void 0),B=f??(n?A?.originalPrice:void 0),V=v??A?.discountLabel,H=s.useMemo(()=>{if(k)return null;const Z=e?.durationDays??ug(e?.code);if(!Z||Z<=0)return null;const ie=Z*86400;let J;if(i!=null)J=i;else if((l==="active"||l==="expired")&&o){const ve=new Date(o).getTime();if(Number.isNaN(ve))return null;const Te=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(o)),de=/^(\d{4})-(\d{2})-(\d{2})/.exec(Mn()),ye=Math.round(Te&&de?(Date.UTC(+Te[1],+Te[2]-1,+Te[3])-Date.UTC(+de[1],+de[2]-1,+de[3]))/864e5:(ve-Date.now())/864e5);J=Math.max(0,ye)*86400}else l==="expired"?J=0:J=ie;const be=Math.max(0,Math.min(100,Math.floor(Math.min(J,ie)/ie*100)));return l==="pending"&&be>=100?null:{percent:be,remainingLabel:Dg(J,g)}},[k,l,o,i,e?.durationDays,e?.code,g]),j=s.useRef(null),[F,T]=s.useState({}),[Y,R]=s.useState(null),O=!!(b||x||_),W=s.useRef(!1),le=s.useRef(void 0),[q,P]=s.useState(h);s.useLayoutEffect(()=>{P(h)},[h]),s.useLayoutEffect(()=>{const Z=j.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=j.current;if(!Z)return;const ie=gg(Z);if(!h){const J=Sg[w],be=l==="expired"?"_black":ie?.logoColor??"",ve=Ng(J,be);P(ve)}},[c,h,w,l]);const M=Z=>{const ie=j.current;if(!ie)return null;const{left:J,top:be,width:ve,height:Te}=ie.getBoundingClientRect(),de=(Z.clientX-J)/ve-.5;return{rotateX:-((Z.clientY-be)/Te-.5)*Vi,rotateY:de*Vi}},L=(Z,ie)=>{const J=ie*-.7,be=Z*.7+10,ve=20+(Math.abs(Z)+Math.abs(ie))*.4;return`${J}px ${be}px ${ve}px rgba(0, 0, 0, 0.18)`},z=s.useCallback(Z=>{W.current=!0,clearTimeout(le.current),le.current=setTimeout(()=>{W.current=!1},200);const ie=M(Z);ie&&T({transform:`perspective(800px) rotateX(${ie.rotateX}deg) rotateY(${ie.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:L(ie.rotateX,ie.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 ie=M(Z);if(!ie)return;const J=W.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";T({transform:`perspective(800px) rotateX(${ie.rotateX}deg) rotateY(${ie.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:L(ie.rotateX,ie.rotateY),transition:J})},[]),E=s.useCallback(()=>{clearTimeout(le.current),W.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)"})},[]),I=s.useCallback(()=>R(null),[]),oe=s.useMemo(()=>{const Z=S.replace("\uC774\uC6A9\uAD8C","").trim(),ie=Z.match(/^(.*?)(일|년)$/);return ie?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:ie[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:ie[2]==="\uB144"?g("passCard.unitYear","\uB144"):g("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:Z})},[S,g]),re=s.useMemo(()=>{const Z=ca(k);if(!Z)return null;const ie=Z.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!ie)return t.jsx("span",{className:"h1",children:Z});const[,J,be,ve]=ie;return t.jsxs(t.Fragment,{children:[J&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:J}),t.jsx("span",{className:"h1 pass-card__price-amount",children:be}),ve.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ve.trim()})]})},[k]),ee=s.useCallback(()=>{O&&R(Z=>{if(Z)return null;const ie=j.current?.getBoundingClientRect();if(!ie)return null;const J=50;return{left:ie.left,right:ie.right,width:ie.width,height:ie.height,x:ie.x,y:ie.y+J,top:ie.top+J,bottom:ie.bottom+J}})},[O]),se=s.useCallback(Z=>{O&&(Z.key==="Enter"||Z.key===" ")&&(Z.preventDefault(),ee())},[O,ee]),Ce=[{items:[...b?[{label:g("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{b(),R(null)},closeOnSelect:!0}]:[],...x?[{label:g("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),R(null)},closeOnSelect:!0}]:[],..._?[{label:g("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{_(),R(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}${O?" pass-card--clickable":""}`,style:F,onMouseEnter:z,onMouseMove:$,onMouseLeave:E,onClick:ee,onKeyDown:O?se:void 0,role:O?"button":void 0,tabIndex:O?0:void 0,"aria-haspopup":O?"menu":void 0,"aria-expanded":O?!!Y:void 0,children:[c??Tg(w,S,N),!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:q??Bg[w],className:"pass-card__logo",alt:w==="manager"?g("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):g("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:oe}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:N?g("passCard.labeledPlan",{label:N}):g("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),k?t.jsxs("div",{className:"pass-card__price-area",children:[V&&t.jsx("span",{className:"pass-card__discount body-3",children:V}),t.jsxs("div",{className:"pass-card__price",children:[B&&t.jsx("span",{className:"pass-card__price-original body-3",children:ca(B)}),re]})]}):H?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:H.remainingLabel}),t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:H.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."})]})]})}),Y&&t.jsx(wn,{anchorRect:Y,onClose:I,ariaLabel:g("tooltip.menu","\uBA54\uB274"),children:t.jsx(Ea,{columns:Ce,onClose:I,size:"small"})})]})}const jg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Eg(e={}){const n=`passcard-sound-line-grad-${s.useId()}`,a=ct(jg,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("${pa}")`}})]})}const Mg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Lg(e={}){const n=ct(Mg,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("${pa}")`}})]})}function $g(e,n){if(e){if(n==="manager_pro")return t.jsx(Lg,{});if(n==="manager_standard")return t.jsx(Eg,{});if(n==="manager_lite")return t.jsx(Hi,{})}}function Rg(e){const n=ca(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 Pg(e){const{t:n}=pe.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=g=>!!g&&!!c?.includes(g),d=g=>g.onceOnly??/오픈\s*특가/.test(g.label??""),p=(o.tiers||[]).some(g=>d(g)&&u(g.code)),m=g=>{const A=g.prices?g.prices[l]:g.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=g=>g.prices?g.prices[l]:g.price,v=(o.tiers||[]).length>0&&(o.tiers||[]).every(g=>{const A=f(g);return A==="\uBB34\uB8CC"||A===C||A==="0\uC6D0"||typeof A=="string"&&/\d/.test(A)&&!/[1-9]/.test(A)}),b=(o.tiers||[]).length>0&&(o.tiers||[]).every(g=>{const A=f(g);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(ut,{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((g,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(We,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),g]},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((g,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(We,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),g]},A))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:v?null:b?t.jsx(ce,{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(g=>{const A=g.label||a,w=d(g),S=w||g.openPromo===!0,N=A.replace(/^오픈\s*특가\s*/,"")||a,k=g.prices?g.prices[l]:g.price,B=g.badge?S?`${r}
|
|
832
|
+
${g.badge}`:g.badge:void 0;if(w&&u(g.code))return null;if(!g.badge&&!p)return m(g)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${g.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:g.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:Rg(k)})})]},g.id);const V=o.tier??(x?o.title:void 0),H=t.jsx(zi,{showPrice:!0,product:{type:_,code:g.code,name:N,label:V,price:k,originalPrice:g.originals?.[l]??void 0,discountLabel:B},bg:$g(x,o.id)}),j=()=>i?.({...g,productId:o.id,productTitle:o.title,preview:H});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:j,onKeyDown:i?F=>{F.target===F.currentTarget&&(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),j())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:H},g.id)})})})})]})}function Ig({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 Tr='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 Wi={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Fg(){const e=ct(Wi,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("${Tr}")`}})})}const qi={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Og(e={}){const n=ct(qi,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("${pa}")`}})]})}function Ui({keys:e,anchor:n="top-right",scale:a,className:r=""}){const o=Array.isArray(e)?e:[e];return t.jsx("span",{className:ge("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 ma=(e,n,a)=>e+(n-e)*a;function Hg({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:b=!1,centerAttention:x=!1,shortcutAnchor:_="top-right",shortcutScale:g,scaleShortcut:A=!1}){const{t:w}=pe.useTranslation(),S=Math.max(0,Math.min(1,a)),N=n/2,k=110/300,B=.18,V=J=>n*(k+(J-1)*B),H=J=>{const be=V(J.row??1),ve=J.angleDeg*Math.PI/180;return{x:N+be*Math.cos(ve),y:N+be*Math.sin(ve)}},j=Math.max(...e.map(J=>J.row??1),1),F=n*.08,T=n*.1,Y=n*.24,R=n-2*F,O=n-T-Y,W=n-Y/2,le=s.useMemo(()=>[...new Set(e.map(J=>J.deg))].sort((J,be)=>J-be),[e]),q=le.length,P=Math.max(68,q>1?R/(q-1):0),M=s.useMemo(()=>new Map(le.map((J,be)=>[J,be])),[le]),L=J=>{const be=M.get(J.deg)??0,ve=N+(be-(q-1)/2)*P,Te=j>1?Math.min(68,O/(j-1)):0,de=Te*(j-1),ye=T+(O-de)/2,we=j===1?T+O*.4:ye+(j-(J.row??1))*Te;return{x:ve,y:we}},z=J=>{const be=H(J),ve=L(J);return{x:ma(be.x,ve.x,S),y:ma(be.y,ve.y,S)}},$={x:N,y:ma(N,W,S)},E=Math.round(C*1.2),I=Math.round(Math.max(16,Math.min(80,C*.7))),oe=[],re=new Map;for(const J of e){const be=J.row??1;re.has(be)||re.set(be,[]),re.get(be).push(J)}for(const[J,be]of re.entries()){if(be.length<2)continue;const ve=[...be].sort((Re,tt)=>Re.deg-tt.deg),Te=ve.map(Re=>z(Re)),de=ve.map(Re=>Re.deg),ye=de[de.length-1]-de[0],we=ye/(de.length-1),Q=360-ye,te=ve.length>=3&&we>0&&Q<=we*1.5,_e=Math.round(V(J)*1e3)/1e3,je=(Re,tt,Ke,Ue)=>{const fe=(tt.angleDeg-Re.angleDeg+540)%360-180;if(fe===0)return`L ${Ue.x} ${Ue.y}`;if(S===0)return`A ${_e} ${_e} 0 0 ${fe>0?1:0} ${Ue.x} ${Ue.y}`;const Ge=(Re.angleDeg+fe/2)*Math.PI/180,Ee={x:N+_e*Math.cos(Ge),y:N+_e*Math.sin(Ge)},$e={x:(Ke.x+Ue.x)/2,y:(Ke.y+Ue.y)/2},He={x:ma(Ee.x,$e.x,S),y:ma(Ee.y,$e.y,S)},Ye={x:2*He.x-$e.x,y:2*He.y-$e.y};return`Q ${Ye.x} ${Ye.y} ${Ue.x} ${Ue.y}`},ze=te?[...ve,ve[0]]:ve,Me=te?[...Te,Te[0]]:Te;let Oe=`M ${Me[0].x} ${Me[0].y}`;for(let Re=1;Re<Me.length;Re++)Oe+=" "+je(ze[Re-1],ze[Re],Me[Re-1],Me[Re]);oe.push({key:`arc-${J}`,d:Oe})}const ee=s.useMemo(()=>new Set(o??[]),[o]),se=J=>({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")})[J],Ce=J=>{if(r===J.id)return"active";if(c){if(J.id===l)return"correct";if(J.id===i&&i!==l)return"wrong"}return ee.has(J.id)?"played":"idle"},Z=J=>r===J.id?"loop":c?J.id===l?"loop":null:u&&J.id===i?"once":null,ie=(J,be)=>{switch(J){case"played":case"correct":return t.jsx(Do,{size:be});case"wrong":return t.jsx(Fo,{size:be});default:return t.jsx(Io,{size:be})}};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:[S===0&&e.map(J=>{const{x:be,y:ve}=z(J);return t.jsx("line",{x1:$.x,y1:$.y,x2:be,y2:ve,stroke:"#dde3ec",strokeWidth:"1"},J.id)}),oe.map(J=>t.jsx("path",{d:J.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},J.key))]}),x&&!b&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:E,height:E,left:$.x-E/2,top:$.y-E/2}}),f?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${b?" sound-compass__center--disabled":""}`,style:{width:E,height:E,left:$.x,top:$.y},"aria-label":v,"aria-disabled":b||void 0,tabIndex:b?-1:0,onClick:b?void 0:f,children:t.jsx(er,{size:I,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:E,height:E,left:$.x,top:$.y},children:t.jsx(er,{size:I,color:"currentColor",strokeWidth:1.5})}),e.map((J,be)=>{const{x:ve,y:Te}=z(J),de=Ce(J),ye=Z(J),we={...g!==void 0||A?{"--shortcut-badge-scale":String(g??Math.max(.75,Math.min(3,C/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:de!=="idle"?10:1},Q=C,te=Math.round(Math.max(10,Math.min(56,Q*.38))),_e=Math.round(Math.max(7,Math.min(18,Q*.2))),je=Math.round(Math.max(10,Math.min(56,Q*.4))),ze=y==="answered"&&(de==="played"||de==="correct"||de==="wrong"),Me=y===!0||ze,Oe=!ze;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...we,left:ve-Q/2,top:Te-Q/2},children:[ye&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${de}`+(ye==="once"?" sound-compass__pulse--once":""),style:{width:Q,height:Q,...ye==="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?.(J.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${de}`,style:{width:Q,height:Q},"aria-label":se(de)?`${J.label}, ${se(de)}`:J.label,"aria-pressed":i!=null?J.id===i:void 0,children:[Me&&ie(de,te),Oe&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?_e:je},children:be+1})]}),J.shortcut&&t.jsx(Ui,{keys:J.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},J.id)})]})})}function Vg({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:ge("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function zg({orientation:e="horizontal",label:n,className:a=""}){const r=ge("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 Gi({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 Wg({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(Gi,{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 qg={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Ug({tone:e="info",title:n,message:a,children:r,dismissible:o=!1,onDismiss:i,className:l=""}){const{t:c}=pe.useTranslation(),[u,d]=s.useState(!1),p=s.useCallback(()=>{d(!0),i?.()},[i]);if(u)return null;const m=ge("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(We,{icon:qg[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 Gg={ready:"search",guide:"info",error:"circle-alert"};function Kg(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 Yg({status:e="guide",label:n,children:a,emphasis:r,icon:o,className:i=""}){const l=o===!1?null:o??Gg[e],c=ge("search-summary",`search-summary--${e}`,i),u=n??a,d=typeof u=="string"&&r&&r.length>0?Kg(u,r):u;return t.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(We,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:d})]})}function ha({title:e,items:n}){const{t:a}=pe.useTranslation(),{anchorRect:r,openAt:o,close:i}=ja();return t.jsxs(t.Fragment,{children:[t.jsx(ce,{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 Zg({items:e=[],value:n,onChange:a,className:r="",size:o=40}){const i=s.useId(),{t:l}=pe.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 b=(f%v.length+v.length)%v.length;v[b]?.focus(),v[b]?.click()},C=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const v=m(),b=v.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?h(b+1,v):f.key==="ArrowLeft"||f.key==="ArrowUp"?h(b-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 Xg={xs:12,sm:16,md:20,lg:28,xl:36};function Jg(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 Qg({src:e,name:n,size:a="md",shape:r="circle",className:o=""}){const{t:i}=pe.useTranslation(),[l,c]=s.useState(null),u=!!e&&l===e,d=n?Jg(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(We,{icon:"user-round",size:Xg[a],className:"avatar__icon"})]})}function e4(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 t4({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:o=!0,files:i,onRemove:l,className:c=""}){const{t:u}=pe.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 S=Array.from(w).filter(k=>e4(k,n));if(S.length===0)return;const N=a?S:S.slice(0,1);if(i===void 0){const k=a?[...y,...N]:N;C(k),e?.(k)}else e?.(N)},v=w=>{w.preventDefault(),!r&&m(!0)},b=w=>{w.preventDefault(),m(!1)},x=w=>{w.preventDefault(),m(!1),!r&&f(w.dataTransfer.files)},_=w=>{f(w.target.files),w.target.value=""},g=()=>{r||d.current?.click()},A=w=>{if(!r&&(l?.(w),i===void 0)){const S=y.filter((N,k)=>k!==w);C(S),l||e?.(S)}};return t.jsxs("div",{className:`file-upload ${c}`.trim(),children:[t.jsxs("div",{className:ge("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:g,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),g())},onDragOver:v,onDragLeave:b,onDrop:x,children:[t.jsx(We,{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(),g()},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,S)=>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(S),children:t.jsx(We,{icon:"x",size:14})})]},`${w.name}-${S}`))})]})}function n4({items:e,className:n=""}){const{t:a}=pe.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(We,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},o)})})})}const a4={small:14,medium:20,large:28};function r4({value:e,onChange:n,max:a=5,readOnly:r=!1,size:o="medium",ariaLabel:i,className:l=""}){const{t:c}=pe.useTranslation(),u=r||!n,[d,p]=s.useState(null),m=d??e,h=a4[o],C=g=>{u||n?.(g)},y=g=>{u||p(g)},f=s.useRef(null),v=g=>{const A=Math.min(a,Math.max(1,g));n?.(A),Array.from(f.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(A))?.focus()},b=g=>{if(!u){switch(g.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}g.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:b,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},(g,A)=>{const w=A+1,S=Math.max(0,Math.min(1,m-A)),N=S>0&&S<1,k=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(We,{icon:"star",size:h,className:"rating__star rating__star--empty"}),S>0&&t.jsx("span",{className:`rating__star-fill${N?" rating__star-fill--half":""}`,style:N?{width:`${S*100}%`}:void 0,children:t.jsx(We,{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 o4=20,s4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function i4({value:e,onChange:n,palette:a=s4,size:r=40,className:o="",ariaLabel:i}){const{t:l}=pe.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(We,{icon:"check",size:o4,className:"color-picker__check"})},c)})})}function l4({icon:e,count:n,title:a,className:r="",onClick:o,onMouseEnter:i,onMouseLeave:l}){const c=ge("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(We,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]})}let fa=0,Ki="",Yi="",Ca=0;function Zi(){return Xi(!1)}function c4(){return Xi(!0)}function Xi(e){const n=typeof document<"u";fa===0&&n&&(Ki=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(Ca===0&&(Yi=document.body.style.paddingRight),Ca++,document.body.style.paddingRight="0px"),fa++;let a=!1;return()=>{a||(a=!0,fa=Math.max(0,fa-1),e&&n&&(Ca=Math.max(0,Ca-1),Ca===0&&(document.body.style.paddingRight=Yi)),fa===0&&n&&(document.body.style.overflow=Ki))}}const jr=new WeakMap;function Er(e,n){e&&jr.set(e,n)}function Mr(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!jr.has(r);)r=r.parentElement;if(!r)return n;n=jr.get(r)??null}return n}function u4(){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 d4({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}=pe.useTranslation(),h=s.useId(),C=s.useRef(null),y=s.useCallback(()=>n(),[n]);s.useEffect(()=>{if(!e)return;const x=document.activeElement,_=Zi(),g=C.current;return Er(g,x),g?.focus(),()=>{_();const A=document.activeElement;(!A||A===document.body||g&&g.contains(A))&&Mr(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 b=s.useRef(!1);return vr(C,e),!e||typeof document>"u"?null:qt.createPortal(t.jsx("div",{className:ge("dialog",d),onPointerDown:l?x=>{b.current=x.target===x.currentTarget}:void 0,onMouseDown:x=>{x.target===x.currentTarget&&x.preventDefault()},onClick:l?x=>{const _=b.current;b.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:ge("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(u4,{})}):null,t.jsx("div",{className:"dialog__body",children:o})]})}),document.body)}function p4({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:ge("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:ge("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:ge("board__td",`board__cell--${h.align??"left"}`),children:h.render(p,m)},h.key))},a(p,m)))})]})]})}function m4({name:e,role:n,photo:a,media:r,credentials:o,size:i=190,className:l=""}){return t.jsxs("div",{className:ge("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 h4({groups:e,className:n=""}){return t.jsx("div",{className:ge("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 f4({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:ge("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 C4({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const o=wr(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 g4({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:ge("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 b4({items:e,className:n=""}){return t.jsx("ul",{className:ge("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 Ji({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 b=e??"";return b?a.filter(x=>x.toLowerCase().includes(b.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(b=>{n?.(b),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(b=>{b.nativeEvent.isComposing||b.keyCode===229||(b.key==="ArrowDown"?(b.preventDefault(),l(!0),u(x=>Math.min(p.length-1,(x<p.length?x:-1)+1))):b.key==="ArrowUp"?(b.preventDefault(),u(x=>Math.max(-1,(x<p.length?x:p.length)-1))):b.key==="Enter"?m>=0&&h(p[m]):b.key==="Escape"&&i&&(b.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 y4=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:b="input",fullWidth:x=!1,newline:_=!1,multiline:g=!1,rows:A=3,leftIcon:w,rightIcon:S,clearable:N=!1,list:k,showCount:B=!0,className:V="",onFocus:H,onBlur:j,onKeyDown:F,onEnter:T,inputMode:Y,autoComplete:R,autoFocus:O,suggestions:W,openOnFocus:le=!1}=e,q=h||m?void 0:W,{t:P}=pe.useTranslation(),M=s.useId();!l&&!c&&ea(`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),E=Ji({value:n??"",onChange:i,suggestions:q??[],openOnFocus:le}),I=!!q&&E.open&&E.filtered.length>0,oe=s.useCallback(te=>{$.current=te,typeof o=="function"?o(te):o&&(o.current=te)},[o]),re=n!==void 0,ee=re&&p==="password",[se,Ce]=s.useState((a??"").length),Z=re?(n??"").length:se,ie=s.useRef(n);y4(()=>{ie.current=n}),s.useEffect(()=>{const te=$.current;if(!ee||!te)return;const _e=n??"";te.value!==_e&&(te.value=_e)},[ee,n]),s.useEffect(()=>{if(!_||!$.current)return;const te=$.current;te.style.height="",te.scrollHeight>te.clientHeight&&(te.style.height=`${te.scrollHeight}px`)},[n,se,_]);const J=f!=null&&Z>f,be=v===32?16:20,ve=ge("text-field",`text-field--s${v}`,b==="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":"",S||N?"text-field--has-right-icon":"",V),Te={id:L,...ee?{}:re?{value:n}:{defaultValue:a},ref:oe,placeholder:d,name:r,disabled:m,readOnly:h,autoFocus:O,maxLength:f,list:k,inputMode:Y,autoComplete:R,"aria-label":!l&&c?c:void 0,"aria-required":u,"aria-invalid":!!C,"aria-describedby":y||C?z:void 0,role:q?"combobox":void 0,"aria-autocomplete":q?"list":void 0,"aria-haspopup":q?"listbox":void 0,"aria-expanded":q?E.open:void 0,"aria-controls":I?E.listId:void 0,"aria-activedescendant":I&&E.activeIdx>=0?`${E.listId}-option-${E.activeIdx}`:void 0,onChange:te=>{const _e=te.target;re||Ce(_e.value.length),i?.(_e.value),q&&E.handleInput(),ee&&queueMicrotask(()=>{const je=ie.current??"";_e.value!==je&&(_e.value=je)})},onFocus:(te=>{H?.(te),q&&E.handleFocus()}),onBlur:(te=>{j?.(te),q&&E.handleBlur()}),onKeyDown:(te=>{q&&te.key==="Enter"&&!te.nativeEvent.isComposing&&E.activeIdx>=0?te.preventDefault():T&&te.key==="Enter"&&!te.nativeEvent.isComposing&&(te.preventDefault(),T()),F?.(te),q&&E.handleKeyDown(te)})},de=N&&!m&&!h&&Z>0,ye=()=>_?t.jsx("textarea",{...Te,className:"text-field__input text-field__input--auto body-2",rows:1}):g?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"}),we=b==="display"&&!_&&!g&&!!d,Q=()=>t.jsxs(t.Fragment,{children:[ye(),we&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return t.jsxs("div",{className:ve,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(We,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})}),Q(),f!=null&&B&&t.jsxs("span",{className:`text-field__count caption-2${J?" text-field__count--over":""}`,children:[Z,"/",f]}),de&&t.jsx(ce,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:P("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:te=>{te.preventDefault()},onClick:()=>{!re&&$.current&&($.current.value="",Ce(0)),i?.("")},tabIndex:-1}),S&&!de&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(We,{icon:S,label:"",className:"",svgClassName:"text-field__icon-svg",size:be})})]}),q&&E.open&&E.filtered.length>0&&t.jsx("ul",{id:E.listId,className:"text-field__suggestions",role:"listbox",children:E.filtered.map((te,_e)=>t.jsx("li",{id:`${E.listId}-option-${_e}`,role:"option","aria-selected":_e===E.activeIdx,className:`text-field__suggestion body-2${_e===E.activeIdx?" is-active":""}`,onMouseDown:je=>je.preventDefault(),onClick:()=>{E.handleSelect(te),$.current?.focus()},children:te},`${te}-${_e}`))}),(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 en({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}=pe.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),C=s.useId(),y=s.useId(),f=s.useRef(null),v=s.useCallback(T=>{const Y=window.innerHeight-T.bottom<260&&T.top>260;return{position:"fixed",left:T.left,minWidth:T.width,...Y?{bottom:window.innerHeight-T.top+6}:{top:T.bottom+6},zIndex:9999}},[]),{open:b,setOpen:x,toggle:_,style:g,triggerRef:A,menuRef:w}=da({computeStyle:v}),[S,N]=s.useState(-1),k=s.useCallback(()=>N(-1),[]),B=e.find(T=>T.value===n);s.useEffect(()=>{if(b){const T=e.findIndex(Y=>Y.value===n);N(T>=0?T:e.length?0:-1),requestAnimationFrame(()=>{const Y=w.current;if(!Y)return;const R=Y.querySelectorAll(".dropdown__option")[T];R&&(Y.scrollTop=Math.max(0,R.offsetTop-Y.clientHeight/2+R.clientHeight/2))})}},[b]),s.useEffect(()=>{b&&N(T=>{if(T>=0&&T<e.length)return T;const Y=e.findIndex(R=>R.value===n);return Y>=0?Y:e.length?0:-1})},[b,e.length]);const V=s.useCallback(()=>{o||_()},[o,_]),H=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(!b){(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(),N(Y=>{let R=Y+1;for(;R<e.length&&e[R].disabled;)R++;return R<e.length?R:Y})):T.key==="ArrowUp"?(T.preventDefault(),N(Y=>{let R=Y-1;for(;R>=0&&e[R].disabled;)R--;return R>=0?R:Y})):(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),e[S]?H(e[S]):T.key===" "&&x(!1))}},[o,b,e,S,H,x]),F=b?t.jsx("div",{ref:w,id:C,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:g,onMouseLeave:k,onMouseDown:T=>T.preventDefault(),children:e.map((T,Y)=>t.jsxs("button",{id:`${C}-option-${Y}`,type:"button",role:"option","aria-selected":T.value===n,className:ge("dropdown__option body-2",T.value===n?"dropdown__option--active":"",Y===S?"dropdown__option--active":"",T.disabled?"dropdown__option--disabled":""),onMouseDown:R=>R.preventDefault(),onClick:()=>H(T),onMouseEnter:()=>N(Y),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:ge("dropdown",`dropdown--s${l}`,b?"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":b,"aria-controls":b?C:void 0,"aria-activedescendant":b&&S>=0?`${C}-option-${S}`:void 0,"aria-label":d,"aria-describedby":[d&&B?y:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":c||void 0,disabled:o,onClick:V,onBlur:T=>{b&&!w.current?.contains(T.relatedTarget)&&x(!1)},children:[t.jsx("span",{id:y,className:`dropdown__trigger-label body-2${B?"":" dropdown__trigger-label--placeholder"}`,children:B?B.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"&&qt.createPortal(F,f.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Ma({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:o,className:i=""}){const{t:l}=pe.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:ge("pagination",i),children:[t.jsx(ce,{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(ce,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=n,onClick:m})]})}function On(e){const{t:n}=pe.useTranslation(),{options:a=[],value:r=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 b=Math.max(0,h.findIndex(_=>_.key===r)),x=v==="first"?h[0]:v==="last"?h[h.length-1]:h[(b+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:ge("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(ce,{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 Lr({count:e,search:n,segment:a,filters:r,pageSize:o,pagination:i,actions:l,className:c}){const{t:u}=pe.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:ge("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(en,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},h)),o&&t.jsx(en,{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(Ma,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),l]})})]})}function Qi(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Qi).join(""):""}function v4(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 x4=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),_4=/^(?: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 w4(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(_4);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&&x4.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 k4({children:e,language:n="bash",title:a="",showCopy:r=!0,size:o="default",className:i=""}){const{t:l}=pe.useTranslation(),[c,u]=s.useState(!1),d=v4(Qi(e)),p=s.useRef(null);s.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await L0(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},h=w4(d,n),C=o==="small"?"caption-1":"body-3";return t.jsxs("div",{className:ge("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(ce,{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 A4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function ga(e){const{t:n}=pe.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:A4,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 el({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 tl({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:ge("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 N4({count:e,actions:n,onClear:a,clearLabel:r,visible:o,content:i,max:l}){const{t:c}=pe.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)},b=()=>{const w=f.firstElementChild??f,S=Array.from(w.children);if(S.length<2){v(!1);return}const B=S[0].offsetTop,k=S.some(F=>F.offsetTop!==B);if(!C.current){y.current=f.clientWidth,k&&v(!0);return}if(k)return;const N=S[0],V=S[S.length-1],H=V.offsetLeft+V.offsetWidth-N.offsetLeft,T=y.current;(T==null||H<=T)&&v(!1)};if(b(),typeof ResizeObserver>"u")return;const x=new ResizeObserver(b);x.observe(f);const _=f.parentElement;let g=_?.clientWidth??0;const A=new ResizeObserver(()=>{const w=_?.clientWidth??0;w!==g&&(g=w,y.current=null,b())});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(ut,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${m?" bulk-bar__actions--stacked":""}`,children:[t.jsx(ce,{htmlType:"button",size:40,label:d,onClick:a}),n.map((f,v)=>t.jsx(ce,{htmlType:"button",size:40,variant:f.variant??"default",icon:f.icon,label:f.label,onClick:f.onClick},v))]})]})}function nl(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 La(e,n){return new Date(e,n+1,0).getDate()}function B4(e,n){return new Date(e,n,1).getDay()}function $a(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function S4(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function D4(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 T4({value:e,onChange:n,size:a=48,min:r,max:o,disabled:i,placeholder:l,className:c}){const{t:u}=pe.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}=nl(e),b=s.useCallback(P=>{const M=window.innerHeight-P.bottom,$=300,z=M<$&&P.top>$;return{position:"fixed",left:P.left,width:P.width,minWidth:260,...z?{bottom:window.innerHeight-P.top+6}:{top:P.bottom+6},zIndex:9999}},[]),{open:x,setOpen:_,toggle:g,style:A,triggerRef:w,menuRef:S}=da({computeStyle:b,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});s.useEffect(()=>{if(!x)return;const P=S.current;return(P?.querySelector(".date-picker__day--selected:not(:disabled)")??P?.querySelector(".date-picker__day--today:not(:disabled)")??P?.querySelector(".date-picker__day:not(:disabled)")??P?.querySelector(Ln)??P)?.focus?.(),()=>{const M=document.activeElement;(!M||M===document.body)&&w.current?.focus?.()}},[x,S,w]);const[B,k]=s.useState(1),N=s.useRef(null),V=s.useRef(null);s.useEffect(()=>{if(!x)return;const P=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(P)},[x]),s.useEffect(()=>{if(V.current==null)return;const P=V.current;V.current=null,N.current?.querySelector(`[data-day="${P}"]`)?.focus()}),s.useEffect(()=>{k(P=>Math.min(P,La(h,C)))},[h,C]);const H=s.useCallback(P=>{let M=$a(P.getFullYear(),P.getMonth(),P.getDate());r&&M<r&&(M=r),o&&M>o&&(M=o);const[$,z,L]=M.split("-").map(Number);($!==h||z-1!==C)&&v($,z-1),k(L),V.current=L},[r,o,h,C,v]),T=s.useCallback(P=>{const M=new Date(h,C,B),$=L=>{M.setDate(M.getDate()+L),H(M)},z=L=>{const E=M.getFullYear()*12+M.getMonth()+L,O=Math.floor(E/12),se=E-O*12;H(new Date(O,se,Math.min(M.getDate(),La(O,se))))};switch(P.key){case"ArrowLeft":$(-1);break;case"ArrowRight":$(1);break;case"ArrowUp":$(-7);break;case"ArrowDown":$(7);break;case"Home":$(-M.getDay());break;case"End":$(6-M.getDay());break;case"PageUp":P.shiftKey?z(-12):z(-1);break;case"PageDown":P.shiftKey?z(12):z(1);break;default:return}P.preventDefault()},[h,C,B,H]),F=s.useCallback(P=>{i||(n($a(h,C,P)),_(!1))},[h,C,n,_,i]);s.useEffect(()=>{i&&_(!1)},[i,_]);const j=P=>{const M=$a(h,C,P);return!!(r&&M<r||o&&M>o)},Z=(()=>{const P=La(h,C);if(B>=1&&B<=P&&!j(B))return B;for(let M=1;M<=P;M++)if(!j(M))return M;return-1})(),R=[];for(let P=0;P<B4(h,C);P++)R.push(null);for(let P=1;P<=La(h,C);P++)R.push(P);const I=a===64?20:a===40?16:18,q=D4(h,(P,M)=>u("calendar.yearMonth",{year:P,month:M,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,o),ae=`${h}-${String(C+1).padStart(2,"0")}`,U=x?qt.createPortal(t.jsxs("div",{ref:S,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(To,{size:16,strokeWidth:2})}),t.jsx(en,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:q,value:ae,onChange:P=>{const[M,$]=P.split("-");v(+M,+$-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(jo,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:N,onKeyDown:T,children:[p.map(P=>t.jsx("div",{className:"date-picker__dow caption-1",children:P},P)),R.map((P,M)=>{if(P===null)return t.jsx("div",{},`e${M}`);const $=$a(h,C,P),z=$===e,L=$===m,E=j(P),O=M%7;return t.jsx("button",{type:"button",disabled:E,"data-day":P,tabIndex:P===Z?0:-1,"aria-current":L?"date":void 0,onClick:()=>!E&&F(P),className:ge("date-picker__day caption-1",z&&"date-picker__day--selected",L&&!z&&"date-picker__day--today",E&&"date-picker__day--disabled",O===0&&"date-picker__day--sun",O===6&&"date-picker__day--sat"),children:P},P)})]})]}),document.body):null;return t.jsxs("div",{className:ge("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&&g(),disabled:i,"aria-haspopup":"true","aria-expanded":x,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?S4(e):d}),t.jsx(Oo,{size:I,className:"date-picker__icon",strokeWidth:1.5})]}),U]})}function $r({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 Ra({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 Rr({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 j4(){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 E4(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),b=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 g=0;g<y;g++)b[_][g]+=x.parts[g]??0}i.set(u,{year:m,month:h,daysInMonth:C,partsLen:y,dayA:f,dayB:v,dayParts:b})}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(),b=n.getDate(),x=i.get(r(m===11?p+1:p,(m+1)%12)),_=d.partsLen,g=[];for(let w=1;w<=h;w++){const S=v&&w>b;g.push({label:String(w),a:S&&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 S=Math.max(0,w+6-h),B=S&&x?Math.max(_,x.partsLen):_;let k=0,N=0;const V=new Array(B).fill(0);for(let T=w;T<=Math.min(w+6,h);T++){k+=C[T],N+=y[T];for(let F=0;F<_;F++)V[F]+=f[T][F]}if(S&&x)for(let T=1;T<=S&&!l(x.year,x.month,T);T++){k+=x.dayA[T],N+=x.dayB[T];for(let F=0;F<x.partsLen;F++)V[F]+=x.dayParts[T][F]}const H=S?`${(m+1)%12+1}/${S}`:`${w+6}`;A.push({label:`${A.length+1}\uC8FC`,sublabel:`[${w}\uC77C~${H}\uC77C]`,a:k,b:N,...B?{parts:V}:{}})}c[u]={weekly:A,daily:g}}return c}function al(){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()}al();function M4(){return al()}const rl=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function ol(e){const{t:n,i18n:a}=pe.useTranslation(),[r,o]=s.useState("week"),i=s.useMemo(()=>M4().filter(k=>k.value in e),[e]),l=s.useMemo(()=>{const k=[];for(const N of i){const V=new Date(N.year,N.month,0).getDate(),H=Cn(N.year,N.month-1),T=Math.ceil((V-H+1)/7);for(let F=T-1;F>=0;F--)k.push({value:`${N.value}#${F}`,monthKey:N.value,year:N.year,month:N.month,week:F})}return k},[i]),c=s.useCallback(k=>{const N=n("calendar.yearMonth",{year:k.year,month:k.month});return a.language?.startsWith("ko")?`${N} ${rl[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(()=>j4(),[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 b=r==="month"?u:d,x=r==="month"?C:f,_=r==="month"?y:v,g=s.useMemo(()=>{const k=n("calendar.dow",{returnObjects:!0});return Array.isArray(k)?k:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),A=b.findIndex(k=>k.value===x),w=s.useCallback(()=>{const k=b.findIndex(N=>N.value===x);k<b.length-1&&_(b[k+1].value)},[b,x,_]),S=s.useCallback(()=>{const k=b.findIndex(N=>N.value===x);k>0&&_(b[k-1].value)},[b,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:b,activeIdx:A,handlePrev:w,handleNext:S,periodOptions:B,monthRange:C,weekRange:f,weekRanges:l,DOW:g}}const tn=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function L4({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,tn(N)),0))):Math.max(0,...e.filter(B=>B.a!==-1).flatMap(B=>h?[tn(B.a)]:[tn(B.a),tn(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,b=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*b)+6)))},[e.length,b,i])}px`},_=s.useMemo(()=>{const B=Math.round(f/2);return B!==f?[f,B,0]:[f,0]},[f]),[g,A]=s.useState(null),w=s.useCallback(()=>A(null),[]),S=g!=null;return s.useEffect(()=>{if(!S)return;const B=()=>A(null),k=N=>{const V=N.target;V&&typeof V.closest=="function"&&V.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)}},[S]),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,V=j=>Math.min(v,Math.max(0,tn(j)/f*v)),H=N?0:V(B.a),T=N?0:V(B.b),F=(B.parts??[]).map(tn);return t.jsx("div",{className:"manager-bar-chart-col",style:{cursor:N?"default":"pointer"},onMouseEnter:N?void 0:j=>{const Z=j.currentTarget.getBoundingClientRect(),R=[B.label,B.sublabel].filter(Boolean).join(" ");let I;if(C){const q=(p??[]).map((U,P)=>({text:`${U}: ${F[P]??0}`,color:(d??[])[P]})),ae=q.filter((U,P)=>(F[P]??0)>0);I=ae.length?ae:q}else m&&!h?I=[{text:`${r} ${tn(B.a)}%`,color:n},{text:`${o} ${tn(B.b)}%`,color:a}]:m&&B.rawB!==void 0?I=[{text:`${m.total} ${B.rawB}`},{text:`${m.done} ${B.rawA??0}`,color:n}]:h?I=[{text:`${r}: ${tn(B.a)}`,color:n}]:I=[{text:`${r}: ${tn(B.a)}`,color:n},{text:`${o}: ${tn(B.b)}`,color:a}];A({rect:{left:Z.left,top:Z.top,right:Z.right,bottom:Z.bottom,width:Z.width,height:Z.height},title:R,items:I})},onMouseLeave:w,children:!N&&(C?t.jsx("div",{className:"manager-bar-chart-stack",style:x,children:(()=>{const j=F.reduce((R,I,q)=>I>0?q:R,-1);let Z=v;return F.map((R,I)=>{if(R<=0)return null;const q=Math.min(Z,R/f*v);return Z-=q,t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:q,background:(d??[])[I],borderRadius:I===j?"6px 6px 0 0":void 0}},I)})})()}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...x,height:H,background:n}}),!h&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...x,height:T,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)})})]})})}),g&&t.jsx(Rn,{anchorRect:g.rect,title:g.title,items:g.items,showIndex:!1,closeOnOutsideClick:!1})]})}function sl({control:e}){const{t:n}=pe.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(ce,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),t.jsx(en,{value:o,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(ce,{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 il(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 $4(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:[]},b=i.match(/^(\d+)년 (\d+)월$/),x=b?Number(b[1]):null,_=b?Number(b[2]):null,g=x&&_?Cn(x,_-1):1;return v.weekly.map((A,w)=>{const S=w+1;let B=A.label,k=!1,N=!1;if(x&&_){const V=g+w*7,H=new Date(x,_-1,V+6),T=H.getMonth()+1,F=H.getDate(),j=T===_?`${F}`:`${T}/${F}`;B=a("manager.chart.weekRange",{start:V,end:j});const Z=new Date(m,h-1,C).getTime();k=Z>=new Date(x,_-1,V).getTime()&&Z<=H.getTime(),N=x>m||x===m&&(_>h||_===h&&V>C)}return{...A,label:B,sublabel:d?`${rl[S-1]??S}\uC8FC`:`Week ${S}`,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 il(e,f,p).map(({dt:v,entry:b,isFuture:x})=>{const _=v.getMonth()+1,g=v.getDate(),A=v.getFullYear();return{label:_===y.month&&A===y.year?`${g}`:`${_}/${g}`,sublabel:u[v.getDay()]??"",a:x?-1:b&&b.a>0?b.a:0,b:x?0:b&&b.b>0?b.b:0,isToday:A===m&&_===h&&g===C,...b?.parts?{parts:x?b.parts.map(()=>0):b.parts}:{}}})}const R4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function P4({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:b,loading:x=!1,onDetail:_,inGrid:g=!1}){const{t:A,i18n:w}=pe.useTranslation(),S=R4[e],B=ol(r),k=m??B,N=s.useMemo(()=>$4(r,k,A,w.language),[r,k,A,w.language]),V=s.useMemo(()=>{if(!C)return N;const j=k.period==="month"?k.monthRange.match(/^(\d+)년 (\d+)월$/):null,Z=qn();return N.map((R,I)=>{let q=R.a===-1?-1:R.b>0?Math.round(R.a/R.b*100):0;if(j&&R.a!==-1){const ae=Number(j[1]),U=Number(j[2])-1,P=il(r,new Date(ae,U,Cn(ae,U)+I*7),Z).filter(M=>!M.isFuture);q=P.length?Math.round(P.reduce((M,{entry:$})=>M+($&&$.b>0?$.a/$.b*100:0),0)/P.length):0}return{...R,a:q,b:R.a===-1?0:c&&R.parts&&R.parts[1]>0?Math.round(R.parts[0]/R.parts[1]*100):0,rawA:R.a===-1?-1:R.a,rawB:R.b}})},[N,C,c,k.period,k.monthRange,r]),H=s.useMemo(()=>{if(C||f){const j=(k.period==="week"?N:r[k.monthRange]?.daily??[]).filter(R=>R.a!==-1);if(j.length===0)return 0;const Z=C?j.reduce((R,I)=>R+(I.b>0?I.a/I.b*100:0),0):j.reduce((R,I)=>R+(I.a>0?I.a:0),0);return Math.round(Z/j.length)}return V.reduce((j,Z)=>j+(Z.a>0?Z.a:0)+(c&&Z.b>0?Z.b:0),0)},[V,N,C,f,c,k.period,k.monthRange,r]),T=b&&b.length>0?b.map(j=>({color:j.color,label:j.label})):[{color:o,label:A(l)},...c?[{color:i,label:A(c)}]:[]],F=e==="small";return t.jsx(Rr,{className:F?"manager-section--compact":e==="large"?"manager-section--full":void 0,inGrid:g,title:A(a),titleClassName:F?"h5 chart-section-title--small":void 0,headRight:F?void 0:t.jsxs(t.Fragment,{children:[!h&&t.jsx(sl,{control:k}),_&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(ce,{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(Ra,{label:F?void 0:`${A(k.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${A(p??l)}`,children:v?(v(H).match(/(\d+|[^\d]+)/g)??[]).map((j,Z)=>/\d/.test(j)?t.jsx("span",{className:"barchart-total__num h0",children:j},Z):t.jsx("span",{className:"barchart-total__unit h5",children:j},Z)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:H}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:A(d)})]})}):t.jsxs(Ra,{children:[t.jsx("span",{className:"barchart-total__num h0",children:H}),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($r,{items:T,className:"caption-1"})]}),children:x?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ga,{size:32})}):t.jsx(L4,{data:V,colorA:o,colorB:c?i:void 0,labelA:A(l),labelB:c?A(c):void 0,barWidth:n??S.barWidth,height:S.height,maxOverride:C?100:void 0,tightMax:y,seriesColors:b?.map(j=>j.color),seriesLabels:b?.map(j=>j.label),rateLabels:C?{total:A("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:A("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}const ll=(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")}`},cl=(e,n,a,r)=>({from:Ts(e,n,a),to:new Date(Ts(e,n,a+r).getTime()-1),fromYmd:ll(e,n,a),toYmd:ll(e,n,a+r-1)});function I4(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 cl(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 cl(a.year,a.month-1,r+(a.week+n)*7,7)}const ul={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function dl(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function pl({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:ul[o].diameter,p=i??(typeof o=="number"?12:ul[o].strokeWidth),m=d/2,h=(d-p)/2,C=2*Math.PI*h;if(a&&a.length>0){const b=a.reduce((x,_)=>{const g=x.length>0?x[x.length-1].acc:0,A=Number.isFinite(_.ratio)?_.ratio:0,w=Math.max(0,Math.min(A,1-g));return x.push({color:_.color,rotate:-90+g*360,dash:C*w,acc:g+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}),b.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:dl(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 F4({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:o,legend:i,loading:l,className:c,inGrid:u=!1,...d}){const{t:p}=pe.useTranslation();if(!e)return t.jsx(pl,{...d});const m=(d.total??0)>0?dl(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(We,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(Rr,{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(Ra,{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($r,{items:i})]}),children:l?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ga,{size:32})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(pl,{...d,hideCenter:h||d.hideCenter})})})}function O4({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}=ja(),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(We,{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 ml({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:b,showBgTick:x=!1,showFillTick:_=!1,tickStep:g,tickShape:A="dot"}){n&&!u&&ea("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)),S=r>a?(w-a)/(r-a):0,B=i==="vertical",k=!n,N=$=>n?.(Number($.target.value)),V=typeof d=="number"?`${d}px`:d,H={"--slider-ratio":String(S),"--slider-thumb":`${l}px`,...V?B?{height:V}:{width:V}:{}},T=g??o,F=(x||_)&&T>0&&r>a?Math.floor((r-a)/T+1e-6):0;if(F>0&&F<=100){const $=A!=="dash",z=oe=>$?`radial-gradient(circle, ${oe} 0.5px, transparent 1px)`:B?`linear-gradient(to bottom, transparent calc(50% - 2px), ${oe} calc(50% - 2px), ${oe} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${oe} calc(50% - 2px), ${oe} calc(50% + 2px), transparent calc(50% + 2px))`,L=$?"2px":"4px",E=[],O=[],se=[];for(let oe=0;oe<=F;oe++){const ee=oe*T/(r-a);if(ee>1+1e-6)break;const ie=`${((B?1-ee:ee)*100).toFixed(4)}%`,Ce=ee<=S+1e-6;if(Ce?!_:!x)continue;const Y=Ce?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";E.push(z(Y)),O.push(B?`${L} var(--slider-thumb)`:`var(--slider-thumb) ${L}`),se.push(B?`center ${ie}`:`${ie} 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))"),O.push("100% 100%"),se.push("0 0"),H.backgroundImage=E.join(", "),H.backgroundSize=O.join(", "),H.backgroundPosition=se.join(", "),H.backgroundRepeat="no-repeat"}const j=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&&b?b:void 0,Z=t.jsx("input",{type:"range",className:ge("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":j,"aria-orientation":i,onChange:N,style:H});if(!m&&!f)return Z;const R=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??a}),I=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:b??r}),q=f?t.jsxs("div",{className:ge("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[B?I:R,Z,B?R:I]}):Z;if(!m)return q;const ae=C??(B?"bottom":"right"),U=`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`,P=h?h(w):m==="percent"?U:m==="count"?`${w} / ${r}`:String(w),M=t.jsx("span",{className:"slider-wrap__value body-3b",children:P});return t.jsxs("div",{className:ge("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${ae}`,`slider-wrap--align-${y}`,p),children:[q,M]})}const H4=.86,V4=250,Pr=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),Ir=(e,n,a,r)=>{const o=Pr(e,n,a,r);return`${o<0?"-":"+"}${Math.abs(o)} dB`};function Fr({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),[b,x]=s.useState(null);s.useEffect(()=>{const w=Z=>{const R=Ir(Z,u,d,p);f.current&&(f.current.textContent=R);const I=C.current;I&&(I.setAttribute("aria-valuenow",String(Pr(Z,u,d,p))),I.setAttribute("aria-valuetext",R))},S=e??o0(n)??(b&&b.el===n?b.node:null),B=y.current;if(!S||!B){B?.style.setProperty("--meter-level","0"),w(c);let Z=!1;return!e&&n&&ka(n).then(R=>{!Z&&R&&x({el:n,node:R})}),()=>{Z=!0}}mr();const k=new Float32Array(S.fftSize);let N=0,V=0,H=0,T=0,F=null;const j=Z=>{const R=s0(S,k);N=R>N?R:N*H4;const I=N>1e-5?20*Math.log10(N):-1/0,q=Math.max(c,I),ae=q-u,U=Math.min(1,Math.max(0,(ae-d)/(p-d)));if(B.style.setProperty("--meter-level",U.toFixed(3)),V+=q,H+=1,Z-T>=V4){const P=V/H;F=F==null?P:F*.6+P*.4,w(F),V=0,H=0,T=Z}v.current=requestAnimationFrame(j)};return v.current=requestAnimationFrame(j),()=>{v.current!=null&&cancelAnimationFrame(v.current),v.current=null}},[e,n,b,c,u,d,p]);const _=typeof r=="number"?`${r}px`:r,g=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:ge("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":Pr(c,u,d,p),"aria-valuetext":Ir(c,u,d,p),children:[g,o&&t.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:Ir(c,u,d,p)})]})}const hl=500;function fl({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),b=s.useRef(!1),x=s.useRef(null),_=s.useRef(null),g=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{}},hl)},k))};const S=s.useCallback(()=>{b.current||!y.current||(b.current=!0,clearTimeout(y.current),y.current=null,v.current=Math.max(0,v.current-(Date.now()-f.current)))},[]),B=s.useCallback(()=>{b.current&&(b.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&&(b.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(()=>{g.current=requestAnimationFrame(()=>{k(),i(!0)})})),C>0&&(b.current=!1,w.current(C))}else i(!1),x.current=setTimeout(()=>c(!1),hl);return m.current=e,()=>{y.current&&clearTimeout(y.current),x.current&&clearTimeout(x.current),_.current&&cancelAnimationFrame(_.current),g.current&&cancelAnimationFrame(g.current),A.current&&clearTimeout(A.current),y.current=null,x.current=null,_.current=null,g.current=null,A.current=null}},[e,C,n]),{mounted:l,showing:o,popupRef:p,pause:S,resume:B}}function Gn({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:o=2e3}){const{mounted:i,showing:l,popupRef:c,pause:u,resume:d}=fl({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"?qt.createPortal(h,document.body):h}const z4=24;function W4({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>=z4?"inside":"bottom"),v=f==="center"?"inside":f,b=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:ge("progress-bar",`progress-bar--${a}`,`progress-bar--label-${v}`,i&&`progress-bar--align-${u}`,i&&b&&"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 q4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},U4="rgba(255, 255, 255, 0.16)";function Cl({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:o,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=pe.useTranslation(),d=rn("(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"]=U4),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:q4,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 G4(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 K4({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function Or({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(ga,{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 Y4({dir:e}){return t.jsx(e==="asc"?Vo:Ho,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Z4({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:ge("table-field body-3",a,r?"table-field--sorted":"",o?"table-field--resizable":""),children:[e,r&&t.jsx(Y4,{dir:r}),o&&t.jsx("span",{className:"table-field__resizer",onPointerDown:o,onClick:l=>l.stopPropagation(),"aria-hidden":"true"})]})}function Hr({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:b,icon:x,count:_,collapsed:g=!1,onToggleCollapse:A,headerActions:w,empty:S,loading:B,dragOver:k=!1,onDragOver:N,onDragLeave:V,onDrop:H,renderExpandedRow:T,expandedId:F}){const{t:j}=pe.useTranslation(),Z=rn("(max-width: 767px)"),R=h&&Z?h:null,I=C&&!R,q=48,ae=f?`table-cols:${f}`:null,U=s.useRef(null),P=s.useRef(()=>!1),M=s.useRef([]),$=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(_e=>typeof _e=="number"&&Number.isFinite(_e)&&_e>0)?te:null}catch{return null}},[L,E]=s.useState(()=>z(ae)),[O,se]=s.useState(ae);O!==ae&&(se(ae),E(z(ae)));const oe=s.useRef(L);s.useEffect(()=>{oe.current=L},[L]);const ee=s.useCallback(Q=>{const te=$.current;te&&E(_e=>{if(!_e)return _e;const je=[..._e];if(te.next!=null&&te.startWNext!=null){const ze=Q.clientX-te.startX,Me=Math.max(q-te.startW,Math.min(te.startWNext-q,ze));je[te.index]=te.startW+Me,je[te.next]=te.startWNext-Me}else je[te.index]=Math.max(q,te.startW+(Q.clientX-te.startX));return je})},[]),ie=s.useCallback(()=>{if($.current=null,window.removeEventListener("pointermove",ee),window.removeEventListener("pointerup",ie),window.removeEventListener("pointercancel",ie),document.body.style.cursor="",document.body.style.userSelect="",ae&&oe.current)try{window.localStorage.setItem(ae,JSON.stringify(oe.current))}catch{}},[ee,ae]),Ce=s.useCallback((Q,te)=>{te.preventDefault(),te.stopPropagation();const _e=U.current;if(!_e)return;const je=Array.from(_e.children).map(Me=>Me.getBoundingClientRect().width),ze=y==="fit"?e.findIndex((Me,Oe)=>Oe>Q&&Me.resizable!==!1):-1;$.current=ze>=0?{index:Q,startX:te.clientX,startW:je[Q],next:ze,startWNext:je[ze]}:{index:Q,startX:te.clientX,startW:je[Q]},E(je),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]),Y=s.useCallback(()=>{const Q=U.current,te=Q?.closest(".table-wrap");if(!Q||!te)return;const _e=te.style.getPropertyValue("--table-grid-cols");te.style.setProperty("--table-grid-cols",e.map((fe,Ge)=>P.current(Ge)?M.current[Ge]:"max-content").join(" "));const je=Array.from(te.querySelectorAll(".table-row")).filter(fe=>!fe.classList.contains("table-row--loading")&&!fe.classList.contains("table-row--empty")),ze=e.map((fe,Ge)=>{let Ee=Q.children[Ge]?.getBoundingClientRect().width??0;for(const $e of je){const He=$e.children[Ge];He&&(Ee=Math.max(Ee,He.getBoundingClientRect().width))}return Math.max(q,Math.ceil(Ee))}),Me=window.getComputedStyle(Q),Oe=Q.clientWidth-(parseFloat(Me.paddingLeft)||0)-(parseFloat(Me.paddingRight)||0);_e?te.style.setProperty("--table-grid-cols",_e):te.style.removeProperty("--table-grid-cols");let Re=ze;const tt=ze.reduce((fe,Ge,Ee)=>fe+(P.current(Ee)?Ge:0),0),Ke=ze.reduce((fe,Ge,Ee)=>fe+(P.current(Ee)?0:Ge),0),Ue=Oe-tt;if(Oe>0&&Ke>0&&Ue>0){const fe=Ue/Ke;Re=ze.map((Ee,$e)=>P.current($e)?Ee:Math.max(q,Math.round(Ee*fe)));const Ge=Math.round(Ue-Re.reduce((Ee,$e,He)=>Ee+(P.current(He)?0:$e),0));if(Ge!==0){let Ee=-1;Re.forEach(($e,He)=>{!P.current(He)&&(Ee<0||$e>Re[Ee])&&(Ee=He)}),Ee>=0&&(Re[Ee]=Math.max(q,Re[Ee]+Ge))}}if(E(Re),ae)try{window.localStorage.setItem(ae,JSON.stringify(Re))}catch{}},[e,y,ae]);s.useEffect(()=>()=>{$.current&&(window.removeEventListener("pointermove",ee),window.removeEventListener("pointerup",ie),window.removeEventListener("pointercancel",ie),document.body.style.cursor="",document.body.style.userSelect="")},[ee,ie]);const le=G4(m),J=le.filter(Q=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(Q));J.length>0&&ea(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${J.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 be=Q=>/^\d+(\.\d+)?px$/.test(le[Q]??"");P.current=be,M.current=le;const ve=Q=>y==="fit"&&!be(Q)?"fr":"px",Te=L&&L.length===e.length&&(y==="fit"||a.length>0),de=R??(Te?e.map((Q,te)=>Q.resizable===!1&&le[te]?le[te]:`${L[te]}${ve(te)}`).join(" "):m),ye=de?{"--table-grid-cols":de}:void 0,we=b!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${v}${I?" table-wrap--resizable":""}${k?" table-wrap--dragover":""}${g?" table-wrap--collapsed":""}`,style:ye,onDragOver:N,onDragLeave:V,onDrop:H,children:t.jsxs("div",{className:"table body-2",children:[we&&t.jsxs("div",{className:"table-header",onClick:A,role:A?"button":void 0,tabIndex:A?0:void 0,"aria-expanded":A?!g:void 0,onKeyDown:A?Q=>{Q.target===Q.currentTarget&&(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),A())}:void 0,children:[A&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:g?"chevron-right":"chevron-down",ariaLabel:g?j("common.expand","\uD3BC\uCE58\uAE30"):j("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),x&&t.jsx(We,{icon:x,label:typeof b=="string"?b:void 0,className:"table-header__icon"}),t.jsx("span",{className:"table-header__title h5b",children:b}),_!==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})]}),!g&&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:ge("table-field body-3",Q.className),style:{gridColumn:`span ${Q.span}`},children:Q.label},te))}),t.jsxs("div",{className:ge("table-fields-strip",I&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:U,children:e.map((Q,te)=>t.jsx(Z4,{onClick:Q.onClick,className:Q.className,sortDir:Q.sortDir,onResizeStart:I&&te<e.length-1&&Q.resizable!==!1&&(y!=="fit"||e.some((_e,je)=>je>te&&_e.resizable!==!1))?_e=>Ce(te,_e):void 0,children:Q.label},te))}),I&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:j("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:j("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:Y})]}),t.jsx("div",{className:"table-body",children:B?t.jsx(Or,{variant:"loading"}):a.length===0&&S?t.jsx(Or,{variant:"empty",children:S}):a.map((Q,te)=>{const _e=p!=null&&Q.id===p,je=!!o&&(i?i(Q):!0),ze=F!=null&&(F instanceof Set?F.has(Q.id):Q.id===F);return t.jsx(Or,{className:`${je?" table-row--clickable":""}${u?" table-row--draggable":""}${_e?" table-row--dragging":""}`.trim(),draggable:!!u,onClick:je?()=>o(Q):void 0,onMouseEnter:l?Me=>l(Q,Me):void 0,onMouseLeave:c?Me=>c(Q,Me):void 0,onDragStart:u?Me=>u(Q,Me):void 0,onDragEnd:d?Me=>d(Q,Me):void 0,expandedContent:ze&&T?T(Q):void 0,children:r(Q).map((Me,Oe)=>t.jsx(K4,{className:Me.className,style:Me.style,children:Me.content},Oe))},String(Q.id??te))})})]})]})})}function gl(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const X4={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function J4(e,n){const a=X4[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}function bl(e,n){return n!=="wornAt"?String(e[n]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function Q4({rows:e,onSelect:n,onDelete:a,onWear:r,onRelease:o,onAdd:i}){const{t:l}=pe.useTranslation(),c=y=>y==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=u2(),p=s.useMemo(()=>{if(!u)return e;const{key:y,asc:f}=u;return[...e].sort((v,b)=>{const x=y==="worn"?Number(b.worn)-Number(v.worn):bl(v,y).localeCompare(bl(b,y),"ko");return f?x:-x})},[e,u]),{pageRows:m,pageSizeProps:h,paginationProps:C}=c2(p,u);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(Lr,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:h,pagination:C,actions:i&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),t.jsx(Hr,{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(tl,{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(ut,{size:"small",variant:gl(y.device),fill:"soft",label:J4(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(ce,{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 yl(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 eb(e,n){return new Date(e,n+1,0).getDate()}function tb(e,n){return new Date(e,n,1).getDay()}function nb({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r}){const{t:o}=pe.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 g={};return e.forEach(A=>{g[A.date]||(g[A.date]=[]),g[A.date].push(A)}),g},[e]),f=s.useMemo(()=>{const g=eb(c,d),A=tb(c,d),w=[];for(let S=0;S<A;S++)w.push(null);for(let S=1;S<=g;S++)w.push(S);for(;w.length<35;)w.push(null);return w},[c,d]),v=s.useCallback(()=>{d===0?(u(g=>g-1),p(11)):p(g=>g-1)},[d]),b=s.useCallback(()=>{d===11?(u(g=>g+1),p(0)):p(g=>g+1)},[d]),x=g=>`${c}-${String(d+1).padStart(2,"0")}-${String(g).padStart(2,"0")}`,_=g=>x(g)===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(We,{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:b,"aria-label":o("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(We,{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(g=>t.jsx("div",{className:"calendar-day-header body-3",children:g},g)),f.map((g,A)=>{if(g===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${A}`);const w=g,S=x(w),B=y[S]??[],k=m===S;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:S}):void 0,"aria-current":_(w)?"date":void 0,onClick:r?()=>r(S):void 0,onKeyDown:r?N=>{N.target===N.currentTarget&&(N.key!=="Enter"&&N.key!==" "||(N.preventDefault(),r(S)))}:void 0,onDragOver:a?N=>{N.preventDefault(),h(S)}: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,S),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,V)=>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?H=>{C.current=N.id,H.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{C.current=null,h(null)}:void 0,onClick:n?H=>{H.stopPropagation(),n(N)}:void 0,...yl(n?()=>n(N):void 0),"aria-label":[N.time?Ms(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:Ms(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??V))})]},w)})]})]})}const ab={page:"h3",pagePopup:"h4",popup:"h5"};function Kn({type:e="page",title:n,headingLevel:a,icon:r,action:o,disc:i,children:l,className:c,style:u}){const d=ab[e],p=n||i,m=a?`h${a}`:"div";return t.jsxs("div",{className:ge("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(We,{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 vl({icon:e,label:n,tooltip:a,wrapperStyle:r,color:o,bgColor:i,useHover:l=!0,iconSize:c="medium"}){const u=c==="small",d=ge("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,b]=s.useState(null);s.useLayoutEffect(()=>{h&&b(m.current?.getBoundingClientRect()??null)},[h]),s.useEffect(()=>{if(!l&&h)try{C(!1)}catch{}},[l,h]),s.useEffect(()=>{if(!h)return;const w=S=>{const B=m.current;if(!B)return;const k=S.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]),g=s.useCallback(()=>C(!1),[]),A=s.useCallback(w=>{if(w.key==="Escape"){C(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),C(S=>!S))},[]);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(We,{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:g,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}let An=null;function Vr(e){if(An&&An!==e)try{An()}catch{}return An=e,()=>{An===e&&(An=null)}}function Pa(e){if(An===e){An=null;try{e()}catch{}}}function rb(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 ob(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}=rb(e,n),b=`${f.join(",")}|${v??""}`,x=s.useMemo(()=>l.key===b?l.urls:[],[l,b]);s.useEffect(()=>{if(!f.length)return;let g=!1;return(async()=>{const A=[],w=[];for(const S of f)try{const B=ms(S,v);if(!B){A.push("");continue}let k=null;try{k=await hs(B)}catch{}if(!k)try{const N=await fs(B);N&&(k=URL.createObjectURL(N),w.push(k))}catch{}A.push(k??"")}catch{A.push("")}g?w.forEach(S=>{try{URL.revokeObjectURL(S)}catch{}}):(y.current.forEach(S=>{try{URL.revokeObjectURL(S)}catch{}}),y.current=w,c({key:b,urls:A}))})(),()=>{g=!0}},[f.join(","),v]),s.useEffect(()=>()=>{y.current.forEach(g=>{try{URL.revokeObjectURL(g)}catch{}}),y.current=[]},[]);const _=s.useCallback(async g=>{if(g.stopPropagation(),g.preventDefault(),d.current){p.current&&Pa(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 S=Vr(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,V)=>{A=N;const H=new Audio(k);u.current=H,H.onended=()=>N(),H.onerror=()=>V(),H.play().catch(V)})}catch{break}}}S(),p.current===w&&(p.current=null,d.current=!1,r(!1),i(-1))},[x]);return s.useEffect(()=>()=>{p.current&&Pa(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 sb=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 zr(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:b,countLabelOverride:x,size:_="square"}=e||{},{t:g}=pe.useTranslation(),[A,w]=s.useState(!1),S=s.useRef(null),[B,k]=s.useState(!1);s.useEffect(()=>{S.current?.matches(":hover")&&k(!0)},[]);const{playing:N,playingIndex:V,previewUrls:H,previewHover:T,setPreviewHover:F,previewBtnRef:j,handlePreview:Z}=ob(r,a?.key),R=s.useCallback(()=>{v?v():w(!0)},[v]),I=s.useCallback(()=>w(!1),[]),q=s.useCallback(()=>k(!0),[]),ae=s.useCallback(()=>k(!1),[]),U=s.useCallback(()=>F(!0),[F]),P=s.useCallback(()=>F(!1),[F]),[M,$]=s.useState(null);s.useLayoutEffect(()=>{T&&$(j.current?.getBoundingClientRect()??null)},[T,j]);const[z,L]=s.useState(null);s.useLayoutEffect(()=>{B&&!A&&m&&L(S.current?.getBoundingClientRect()??null)},[B,A,m]);const E=s.useCallback(fe=>{fe.target===fe.currentTarget&&(fe.key==="Enter"||fe.key===" ")&&(fe.preventDefault(),R())},[R]),O=r||null,se=s.useMemo(()=>{if(!m)return null;const fe=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Ge=fe&&fe.length>0?fe:sb(O);return Ge&&Ge.length>0?Ge:null},[m,p,O]),oe=s.useCallback(fe=>{fe.stopPropagation(),h?.()},[h]),ee=s.useCallback(fe=>fe.stopPropagation(),[]),ie=s.useCallback(fe=>{typeof f=="function"&&f(fe)},[f]),Ce=c||(u&&r?.id!=null?u.has(String(r.id)):!1),Y=!Ce&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);gi("speechear.popup.close",I);const le=Ls(),J=`${a?.label||""} ${n+1}`,be=O?.title||O?.name||J;let ve=a?.icon,Te,de="",ye="";try{const fe=O?.category_0||O?.category_main_code||O?.category_main,Ge=O?.category_1||O?.category_sub_code||O?.category_sub,Ee=le.find($e=>$e.key===fe);Ee?.icon&&(ve=Ee.icon),!Te&&Ee?.color&&(Te={"--t-item-fg":Ee.color}),!Te&&O?.iconColor&&(Te={"--t-item-fg":O.iconColor}),de=Ee?g(`topic.${Ee.key}`,{defaultValue:Ee.label||""}):"";try{const $e=Ee?.subs?.find(He=>He.key===Ge);ye=$e?g(`topic.sub.${$e.key}`,{defaultValue:$e.label||""}):""}catch{}}catch{}const we=ye?`${de} / ${ye}`:de||a?.label||be,Q=fe=>g("training.countQuestions",{n:fe}),te=fe=>g("training.countSentences",{n:fe});let _e="";try{if(O)if(a?.key==="LISTEN_IN_NOISE"){let fe=0;Array.isArray(O.items)&&O.items.length>0?fe=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0?fe=O.sentences.length:O.sentences&&(fe=1),_e=te(fe)}else if(a?.key==="SHORT_STORY"){let fe=1;Array.isArray(r?.items)?fe=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?fe=r.raw.items.length:Array.isArray(O?.questions)?fe=O.questions.length:Array.isArray(O?.sentences)&&(fe=O.sentences.length),_e=Q(fe)}else if(a?.key==="LONG_STORY"){let fe=1;if(Array.isArray(O.items)&&O.items.length>0){const Ge=O.items.reduce((Ee,$e)=>{const He=$e.questionItems;return Array.isArray(He)?Ee+He.length:Array.isArray($e.questions)?Ee+$e.questions.length:Ee},0);fe=Ge>0?Ge:O.items.length}else Array.isArray(O.questions)&&O.questions.length>0?fe=O.questions.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(fe=O.sentences.length);_e=Q(fe)}else if(a?.key==="ORDERING_SENTENCE"){let fe=1;Array.isArray(O.items)&&O.items.length>0?fe=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(fe=O.sentences.length),_e=te(fe)}else Array.isArray(O.items)&&(_e=O.items.length>0?Q(O.items.length):"")}catch{}const je=_==="row",ze=_==="list"||je,Me=_==="compact",Oe=_==="small",Re=Oe&&a?.key?F0().find(fe=>fe.key===a.key):void 0,tt=Re?$s[Re.key]:void 0,Ke=Re?tt?g(`trainingType.${tt}.title`,{defaultValue:Re.label}):Re.label??"":"",Ue=!!y&&!!a?.label&&a.label!==String(be)||Oe&&!!Ke&&Ke!==String(be);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:S,className:`training-block-button${ze?" training-block-button--list":""}${je?" training-block-button--row":""}${Me?" training-block-button--compact":""}${Oe?" training-block-button--small":""}${Ce?" training-block-button--completed":""}${Y?" training-block-button--selected":""}${Ue&&!Oe?" training-block-button--withType":""}${Oe&&!Ue?" training-block-button--no-type-label":""}`,onClick:R,onPointerEnter:q,onPointerLeave:ae,role:"button",tabIndex:0,onKeyDown:E,"aria-label":typeof o=="string"?o:typeof be=="string"?be:void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[y&&a?.label&&a.label!==String(be)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Oe&&Ke&&Ke!==String(be)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:Ke}),t.jsx(vl,{icon:ve,label:be,tooltip:we,wrapperStyle:Te,iconSize:Oe||Me?"small":"medium"}),!C&&(Ce||Y)&&!(h&&B)&&t.jsx(ut,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":Ce?g("training.completed","\uD6C8\uB828 \uC644\uB8CC"):g("training.selected","\uC120\uD0DD\uB428")}),h&&B&&t.jsx(ut,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":g("common.remove","\uC81C\uAC70"),onClick:oe}),t.jsx("div",{className:`training-block-button__title ${Me?"body-3":Oe?"body-3b":"h3"}`,children:String(be)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const fe=x!==void 0?x:_e;return fe?t.jsx("div",{className:`training-block-button__count ${Oe?"caption-2":"caption-1"}`,children:fe}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(We,{icon:"chevron-right",label:g("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:Oe?12:20})})]}),(ze&&!je||Oe)&&H.length>0&&t.jsx("div",{ref:j,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ee,onPointerEnter:U,onPointerLeave:P,children:t.jsx(ce,{htmlType:"button",size:Oe?28:32,type:"dot",icon:N?"pause":"play",variant:Oe?"transparent-lightGray":"default",useBorder:!1,selected:N,ariaLabel:N?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:Z})})]}),b&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:fe=>{fe.stopPropagation(),b(fe)},children:t.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:g("common.more","\uB354\uBCF4\uAE30")})})]}),T&&t.jsx(kn,{anchorRect:M,text:N?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),B&&!A&&m&&(se?t.jsx(Rn,{anchorRect:z,items:se,activeIndex:V,onClose:ae}):O?.subTitle?t.jsx(kn,{anchorRect:z,text:O.subTitle,offset:8,onClose:ae}):null),A&&l&&l({trainingData:O,typeKey:a?.key??"",onClose:I,onComplete:ie,popupTitle:String(be),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:ve,popupIconTooltip:String(we),popupWrapperStyle:Te})]})}let Wr=null,xl=!1;function _l(){if(xl||typeof document>"u")return;xl=!0,document.addEventListener("keydown",n=>{n.metaKey||n.ctrlKey||n.altKey||(Wr="keyboard")},!0);const e=()=>{Wr="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}_l();function Ia(){return _l(),Wr==="keyboard"}const Fa=20;function ib(e){const{t:n}=pe.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,[b,x]=s.useState(Math.min(v,Fa)),_=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,Fa))},[v]),gi("speechear.data.updated",()=>y(S=>S+1));const g=s.useRef(null),A=s.useRef(null);function w(){const S=document.activeElement;A.current=Ia()&&S&&S.closest?.(".training-block__more")?b:null,x(B=>Math.min(v,B+Fa))}return s.useEffect(()=>{const S=A.current;if(S==null)return;A.current=null;const B=document.activeElement;B&&B!==document.body||g.current?.querySelectorAll(".training-block-button")[S]?.focus()},[b]),t.jsxs(Kn,{type:C,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",ref:g,children:(f||[]).slice(0,b).map((S,B)=>{const k=S;return t.jsx(zr,{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>Fa&&b<v&&t.jsx("div",{className:"training-block__more",children:t.jsx(ce,{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 qr(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 lb='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 cb=lb,Ur=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}=pe.useTranslation(),h=e.word||e.title||"",C=n||!h,y=e.audio??e.sound??e.audioKey,f=e.subLabel||e.pronunciation||"",v=e.colloquialLabel||"",[b,x]=s.useState({label:h,subLabel:f,colloquialLabel:v,homonum:e.homonum});h&&(b.label!==h||b.subLabel!==f||b.colloquialLabel!==v||!Object.is(b.homonum,e.homonum))&&x({label:h,subLabel:f,colloquialLabel:v,homonum:e.homonum});const _=s.useRef(null),g=rn("(max-width: 767px)"),[A,w]=s.useState(!1),S=`${typeof y=="string"?y:y?.src??""}\0${h}`,[B,k]=s.useState({for:"",url:""}),N=B.for===S?B.url:"",V=Wn()?.(b.label,b.homonum)??e.image??"",{imgRef:H,loading:T,hasImage:F,onLoad:j,onError:Z}=qr(V);s.useEffect(()=>{let z=!1;return(async()=>{if(y){if(typeof y=="string"){if(y.startsWith("http")||y.includes("/")){k({for:S,url:y});return}}else if(typeof y=="object"&&!Array.isArray(y)){const E=y.src;if(E){k({for:S,url:E});return}}}const L=ur();if(L&&h)try{const E=await Promise.resolve(L(h));!z&&E&&k({for:S,url:E})}catch{}})(),()=>{z=!0}},[y,h,S]);const R=s.useRef(!0),I=s.useRef(null);s.useEffect(()=>(R.current=!0,()=>{R.current=!1,I.current&&Pa(I.current),I.current=null;try{_.current?.pause()}catch{}_.current=null}),[]);const q=s.useCallback(()=>new Promise(z=>{if(typeof window<"u"&&window.speechSynthesis&&h){w(!0),window.speechSynthesis.cancel();const L=new SpeechSynthesisUtterance(h);L.lang="ko-KR",L.onend=()=>{w(!1);try{a?.()}catch{}z()},L.onerror=()=>{w(!1),z()},window.speechSynthesis.speak(L)}else z()}),[h,a]),ae=s.useCallback(z=>new Promise(L=>{let E=!1;const O=()=>{E||(E=!0,w(!1),L(!1))};try{const se=new Audio(z);_.current=se,se.onended=()=>{if(!E){E=!0,w(!1);try{a?.()}catch{}L(!0)}},se.onerror=O,se.play().catch(O)}catch{O()}}),[a]),U=s.useCallback(async()=>{if(n||!R.current)return;const z=()=>{I.current===z&&(I.current=null);try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1)},L=Vr(z);I.current=z;try{window.speechSynthesis?.cancel()}catch{}try{if(N&&(w(!0),await ae(N)))return;const E=t0();if(E&&h)try{const O=await Promise.resolve(E(h));if(!R.current||I.current!==z||O&&(w(!0),await ae(O)))return}catch{}if(!R.current||I.current!==z)return;await q()}finally{L(),I.current===z&&(I.current=null)}},[n,N,h,ae,q]);s.useImperativeHandle(p,()=>({play:()=>U()}),[U]);const P=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}U()}},[n,A,U]),$=ge("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:$,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:P,children:t.jsx(ut,{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:F?t.jsxs(t.Fragment,{children:[T&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:H,className:"training-word-card__image",src:V,alt:b.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:T?0:1},onLoad:j,onError:Z})]}):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:b.label}),b.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",b.subLabel,"]"]}),b.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",b.colloquialLabel,"]"]})]}),!u&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?P:void 0,children:t.jsx(ce,{htmlType:"button",size:g?40:48,type:g?"dot":"bar",icon:A?"pause":"play",label:g?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:cb,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),ub=260;function Nn(e){const{t:n}=pe.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:b,layer:x="modal",height:_,fillBody:g=!1,resetScrollKey:A}=e||{},[w,S]=s.useState(!1),B=s.useRef(!1),k=s.useRef(null),N=s.useId(),V=s.useRef(null);s.useEffect(()=>{},[v,a,y,C]),s.useEffect(()=>{A!==void 0&&V.current&&(V.current.scrollTop=0)},[A]);const[H,T]=s.useState(!1);s.useEffect(()=>{const L=V.current;if(!L)return;const E=()=>T(L.scrollHeight>L.clientHeight+1);if(E(),typeof ResizeObserver>"u")return;const O=new ResizeObserver(E);O.observe(L);const se=L.firstElementChild;return se&&O.observe(se),()=>O.disconnect()},[i,A]),s.useEffect(()=>{if(!v)return Zi()},[v]),s.useEffect(()=>{if(v)return;const L=document.activeElement,E=k.current;return Er(E,L),E&&!E.contains(document.activeElement)&&(E.querySelector(Ln)??E).focus(),()=>{const O=document.activeElement;(!O||O===document.body||E&&E.contains(O))&&Mr(L)?.focus?.()}},[v]),vr(k,!v);const F=s.useRef(!0),j=s.useRef(null);s.useEffect(()=>(F.current=!0,()=>{F.current=!1,j.current&&(clearTimeout(j.current),j.current=null)}),[]);const Z=s.useCallback(()=>{!F.current||!B.current||(B.current=!1,S(!1))},[]),R=s.useCallback((L,E=!1)=>{if(B.current)return;B.current=!0,S(!0);const O=setTimeout(()=>{j.current===O&&(j.current=null);let se;try{se=L?L():void 0}catch{Z();return}se&&typeof se.then=="function"&&se.then(()=>{setTimeout(Z,120)},Z)},ub);E&&(j.current=O)},[Z]),I=s.useCallback(()=>{p||m&&m()===!1||R(d,!0)},[R,d,p,m]),q=s.useRef(I);s.useEffect(()=>{q.current=I});const ae=!v&&!!d;s.useEffect(()=>{if(ae)return $n(()=>q.current())},[ae]);const U=ae&&h,P=s.useRef(!1),M=L=>{P.current=L.target===L.currentTarget},$=L=>{const E=P.current;P.current=!1,E&&L.target===L.currentTarget&&I()},z=t.jsx("div",{className:`popup ${v?"popup--inline":""} ${x==="belowPagePopup"?"popup--below-page-popup":""} ${w?"popup--closing":""} ${C}`,onPointerDown:U?M:void 0,onClick:U?$:void 0,onMouseDown:v?void 0:L=>{L.target===L.currentTarget&&L.preventDefault()},children:t.jsxs("div",{ref:k,className:`popup-panel${b?` popup-panel--${b}`:""}${_!=null?" popup-panel--has-height":""}${g?" 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(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:I,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(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:I,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:V,tabIndex:H?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:R,closeWithAnimation:I}):i})}),l?.length?t.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map((L,E)=>t.jsx(ce,{htmlType:"button",size:48,variant:L.variant??"default",label:L.label,disabled:L.disabled,onClick:()=>L.onClick?.({animateThen:R,closeWithAnimation:I})},E))}):c?t.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:R,closeWithAnimation:I}):c}):null]})});return v||typeof document>"u"?z:qt.createPortal(z,document.body)}function Oa(e){return String(e)}const wl=["o","triangle","x"];function kl(e,n){return e===n?null:n}const Al={o:"circle",triangle:"triangle",x:"x"},Nl={o:"main",triangle:"warn",x:"danger"};function db(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 Gr(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function Bl(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function pb(e,n){return!n&&e>0}const Yn={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 mb(e="landscape"){const{printSize:n,printW:a,printH:r}=Yn[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 Sl(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 hb={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 fb(e,n){const a=hb[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 Cb={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},Dl={\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"},Tl={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Kr(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function jl(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 gb=280,bb=240,yb=280,vb=400,xb=120,_b=280;function El(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 Ml({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}=pe.useTranslation(),m=s.useRef(null),h=s.useRef(null),C=s.useRef(null),[y,f]=s.useState(1),[v,b]=s.useState(!1),[x,_]=s.useState({for:"",url:""}),[g,A]=s.useState(null),w=n&&n.length>0?n:a0()?.(e,r)??"",S=Wn()?.(e,r)??"",{imgRef:B,loading:k,failed:N,onLoad:V,onError:H}=qr(S),T=s.useCallback(()=>A(h.current?.getBoundingClientRect()??null),[]),F=s.useCallback(()=>A(null),[]),j=s.useMemo(()=>{if(!d)return null;const P=[];return d.grade&&P.push(p("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&P.push(p("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&P.push(p("wordTable.info.pos",{v:Kr(d.pos,wb(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&P.push(p("wordTable.info.wordType",{v:Kr(d.wordType,kb(p)),defaultValue:"\uC720\uD615: {{v}}"})),P.length?P:null},[d,p]),Z=w||e,R=x.for===Z?x.url:"";s.useEffect(()=>{const P=ur(),M=w||e;if(!P||!M)return;let $=!1;return Promise.resolve(P(M)).then(z=>{!$&&z&&_({for:M,url:z})}),()=>{$=!0}},[w,e]),s.useEffect(()=>()=>{C.current?.pause(),gn?.audio===C.current&&(gn=null)},[]);const I=s.useCallback(async P=>{if(P.stopPropagation(),v){C.current?.pause(),b(!1),gn=null;return}if(R){gn?.stop(),b(!0);try{const M=new Audio(R);C.current=M;const $=()=>{b(!1),gn?.audio===M&&(gn=null)};gn={audio:M,stop:()=>{M.pause(),$()}},M.onended=$,M.onerror=$,await M.play()}catch{b(!1),gn?.audio===C.current&&(gn=null)}}},[v,R]),q=i&&!!S&&!N,ae=q&&o?gb:q?yb:bb,U=q&&o?vb:q?_b:xb;return s.useEffect(()=>{const P=m.current;if(!P||typeof ResizeObserver>"u")return;const M=new ResizeObserver(([$])=>{const{width:z,height:L}=$.contentRect;f(Math.min(z/ae,L/U))});return M.observe(P),()=>M.disconnect()},[ae,U]),t.jsxs("div",{ref:m,className:"word-table-cell",children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${y})`},children:[q&&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:S,alt:e,draggable:!1,style:{opacity:k?0:1},onLoad:V,onError:H})]}),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":R,children:[t.jsx("span",{"data-play-state":"play",style:{display:v?"none":void 0},children:t.jsx(ce,{htmlType:"button",size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:I})}),t.jsx("span",{"data-play-state":"pause",style:{display:v?void 0:"none"},children:t.jsx(ce,{htmlType:"button",size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:I})})]}),d&&t.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:T,onPointerLeave:F,onFocus:T,onBlur:F,children:[t.jsx(ce,{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:P=>P.stopPropagation()}),g&&j&&t.jsx(Rn,{anchorRect:g,items:j,showIndex:!1})]})]})}const Ll={\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"},$l={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function wb(e){return Object.fromEntries(Object.entries(Dl).map(([n,a])=>[n,Ll[n]?e(`wordTable.pos.${Ll[n]}`,{defaultValue:a}):a]))}function kb(e){return Object.fromEntries(Object.entries(Tl).map(([n,a])=>[n,$l[n]?e(`wordSearch.filter.type.${$l[n]}`,{defaultValue:a}):a]))}function Zn({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:b=!1,contentRef:x,buttonSize:_=40,pageNumber:g,pageNumberPosition:A="right",fitHeight:w=!1,scoring:S=!1,marks:B,onMarkClick:k,scoreIndexOffset:N=0}){const V=s.useCallback((ie,Ce)=>{k?.(N+ie,Ce)},[k,N]),H=(ie,Ce)=>{const Y=B?.[Oa(N+ie)]??null;return t.jsx("div",{className:ge("word-table-cell__score",Y?"word-table-cell__score--marked":""),children:wl.map(le=>t.jsx("span",{className:ge("word-table-cell__score-slot",Y===le?"word-table-cell__score-slot--on":""),children:t.jsx(ce,{htmlType:"button",size:_,type:"dot",icon:Al[le],variant:Y===le?Nl[le]:"default",selected:Y===le,useBorder:!1,showTooltipInfo:!1,ariaLabel:T(`wordTable.scoring.${le}`,{word:Ce,defaultValue:`${Ce} ${le}`}),onClick:J=>{J.stopPropagation(),V(ie,le)}})},le))})},{t:T}=pe.useTranslation(),F=p!==void 0,j=s.useRef(null),[Z,R]=s.useState(null),{width:I,height:q}=Yn[o],{scalerRef:ae,scale:U,offset:P}=El(I,w?q:void 0),M=F?p?.length??0:d?.length??0,$=Math.max(m??M,1),{cols:z,rows:L}=fb(o,$),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")},O=F?(p??[]).some(ie=>ie!==null&&ie.length>1):(d??[]).some(ie=>ie.words.length>1),se=ge("word-table-block__content",Cb[l],c&&"word-table-block__content--outline",u&&O&&"word-table-block__content--div-line"),oe={transform:`scale(${1/U})`,transformOrigin:"center center"},ee=t.jsx("div",{ref:ae,className:"word-table__scaler",style:{height:q*U},children:t.jsx("div",{className:ge("word-table",r),style:{width:I,height:q,transform:`scale(${U})`,transformOrigin:"top left",marginLeft:P},children:t.jsxs("div",{ref:x,className:se,style:{gridTemplateColumns:`repeat(${z}, 1fr)`,gridTemplateRows:`repeat(${L}, 1fr)`},children:[F?t.jsx(t.Fragment,{children:(p??[]).map((ie,Ce)=>t.jsx("div",{className:ge("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:jl(Ce,z,L,l),children:ie?t.jsxs(t.Fragment,{children:[ie.map((Y,le)=>t.jsxs(s.Fragment,{children:[le>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Ml,{label:Y.word,subLabel:Y.pronunciation,colloquialLabel:Y.colloquialPronunciation,homonum:Y.homonum,showWord:E.word,showImage:E.image,showPronunciation:E.pron,showColloquial:E.colloq,buttonSize:_})]},le)),S&&H(Ce,ie.map(Y=>Y.word).join(" / ")),y&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ce,{htmlType:"button",size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ie.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ie.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>y(Ce)})})]}):C&&t.jsx("div",{style:oe,children:t.jsx(ce,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:T("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":""}${Z===Ce?" word-table-block__card--drag-over":""}`,style:jl(Ce,z,L,l),draggable:!!v,onDragStart:v?()=>{j.current=Ce}:void 0,onDragOver:v?Y=>{Y.preventDefault(),R(Ce)}:void 0,onDragLeave:v?()=>R(null):void 0,onDrop:v?Y=>{Y.preventDefault(),j.current!==null&&j.current!==Ce&&v(j.current,Ce),j.current=null,R(null)}:void 0,onDragEnd:v?()=>{j.current=null,R(null)}:void 0,children:[ie.words.map((Y,le)=>t.jsxs(s.Fragment,{children:[le>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Ml,{label:Y.label,subLabel:Y.subLabel,colloquialLabel:Y.colloquialLabel,homonum:Y.homonum,showWord:E.word,showImage:E.image,showPronunciation:E.pron,showColloquial:E.colloq,buttonSize:_,wordInfo:Y.grade||Y.syllables!=null||Y.pos||Y.wordType?{grade:Y.grade,syllables:Y.syllables,pos:Y.pos,wordType:Y.wordType}:void 0})]},le)),S&&H(Ce,ie.words.map(Y=>Y.label).join(" / ")),f&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ce,{htmlType:"button",size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ie.words.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ie.words.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(ie.id)})})]},ie.id)),Array.from({length:Math.max(0,z*L-(d?.length??0))}).map((ie,Ce)=>{const Y=(d?.length??0)+Ce<$;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:b&&C&&Y&&t.jsx("div",{style:oe,children:t.jsx(ce,{htmlType:"button",size:_,type:"bar",icon:"plus",label:T("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C((d?.length??0)+Ce)})})},`filler-${Ce}`)})]}),g&&A!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${A}`,children:T("wordTable.filter.pageIndicator",{current:g.current,total:g.total})})]})})});return e!=null||n||a?t.jsx(Kn,{type:"page",icon:n,title:e,disc:a,className:ge("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}=pe.useTranslation(),[f,v]=s.useState(r),b=o??f,x=()=>{const g=!b;v(g),i?.(g)},_=e||n||a;return t.jsxs("div",{className:ge("filter-panel",a?"filter-panel--collapsible":"",b?"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(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:b?"chevron-down":"chevron-up",ariaLabel:b?y("common.expand","\uD3BC\uCE58\uAE30"):y("common.collapse","\uC811\uAE30"),"aria-expanded":!b,onClick:x}),e&&t.jsx("span",{className:"filter-panel__title h4",children:e})]}),t.jsx("div",{className:"filter-panel__header-actions",children:!b&&n})]}),!b&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:ge("filter-panel__sections",C?"filter-panel__sections--row":""),children:c.map(g=>{const A=u[g.label],w=A===void 0||(Array.isArray(A)?A.length===0:!1),S=(g.items??[]).filter(k=>k!=null);g.allOption&&S.some(k=>(typeof k=="string"?k:k.value)===on)&&ea(`filter-panel-all-value:${g.label}`,`[FilterPanel] '${g.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${on}' \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,V=typeof k!="string"&&!!k.disabled,H=typeof k!="string"?k.labels:void 0,T=typeof k!="string"?k.displayLabel:void 0,F=typeof k!="string"?k.tooltip:void 0,j=typeof k!="string"?k.descriptionTooltip:void 0,Z=typeof k!="string"?k.shape:void 0,R=Array.isArray(A)?A.includes(N):A===N;return t.jsx(ce,{htmlType:"button",size:"keyboard",label:H??T??N,type:g.itemType??(H?"bar":N.length===1?"dot":void 0),selected:R,disabled:V,shape:Z,showTooltipInfo:!!F,tooltipInfoText:F,tooltipDescription:j,onClick:()=>d?.(N,g.label)},N)};return t.jsxs(s.Fragment,{children:[g.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:g.groupLabel}),g.groupAction]}),t.jsxs("div",{className:ge("filter-panel__section",g.layout==="row"?"filter-panel__section--row":"",g.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:g.displayLabel??g.label}),g.labelAction??(g.labelInfo?t.jsx(ha,{...g.labelInfo}):null)]}),g.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:g.content}):g.type==="input"?t.jsx(Fn,{className:"filter-panel__textfield",placeholder:g.placeholder,ariaLabel:g.displayLabel??g.label,value:u[g.label]??"",onChange:k=>d?.(k,g.label),error:g.error}):!g.multiple&&g.display==="segmented"?t.jsx(On,{ariaLabel:g.displayLabel??g.label,options:[...g.allOption?[{key:on,label:g.allLabel??y("common.all","\uC804\uCCB4"),disabled:g.allOptionDisabled}]:[],...S.map(k=>{const N=typeof k=="string"?k:k.value,V=typeof k!="string"?k.displayLabel:void 0,H=typeof k!="string"?k.disabled:void 0;return{key:N,label:V??N,disabled:H}})],value:w&&g.allOption?on:u[g.label]??"",onChange:k=>d?.(k,g.label),size:32}):!g.multiple&&g.display==="dropdown"?t.jsx(en,{className:"filter-panel__dropdown",size:40,options:[...g.allOption?[{value:on,label:g.allLabel??y("common.all","\uC804\uCCB4"),disabled:g.allOptionDisabled}]:[],...S.map(k=>{const N=typeof k=="string"?k:k.value,V=typeof k!="string"?k.displayLabel:void 0,H=typeof k!="string"?k.disabled:void 0;return{value:N,label:V??N,disabled:H}})],value:w&&g.allOption?on:u[g.label],onChange:k=>d?.(k,g.label)}):t.jsxs("div",{className:g.groups?"filter-panel__item-groups":"filter-panel__items",children:[g.allOption&&!g.groups&&t.jsx(ce,{htmlType:"button",size:"keyboard",label:g.allLabel??y("common.all","\uC804\uCCB4"),selected:w,disabled:g.allOptionDisabled,onClick:()=>d?.(on,g.label)}),g.groups?g.groups.map((k,N)=>t.jsxs("div",{className:"filter-panel__item-group",children:[N===0&&g.allOption&&t.jsx(ce,{htmlType:"button",size:"keyboard",label:g.allLabel??y("common.all","\uC804\uCCB4"),selected:w,disabled:g.allOptionDisabled,onClick:()=>d?.(on,g.label)}),k.filter(V=>V!=null).map(B)]},N)):S.map(B)]})]})]},g.label)})}),l!=null&&l!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const Ab=[1,2,3,4,5,6,7,8,9,10,11,12],Yr=[8,4,2,1];function Rl(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 Pl(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 Il(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 Fl(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 Ol(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 Hl(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...Yr.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Vl(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 zl={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Wl(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function ql(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 Ul(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===on?(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 Nb(e){return"sections"in e}function Zr(e){const{t:n}=pe.useTranslation(),{title:a,className:r}=e;if(Nb(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,b=[Rl(n,{hasImage:o,hasColloquial:i}),Pl(n),...y,Il(n),...h?[Fl(n)]:[],...C?[Ol(n)]:[]],x={...ql(n,{contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...f},_=(g,A)=>{Ul(n,g,A,m)||v?.(g,A)};return t.jsx(bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:b,selected:x,onSelect:_,sectionAlign:"horizontal"})}function Gl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Xr(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let Ha=null,Xn=null;function Bb(e,n,a,r="",o=""){if(e.length===0||Xn&&Xn.iframe.isConnected&&Date.now()-Xn.at<1e4)return;const i=r?Xr(r):"";Ha?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,window.removeEventListener("afterprint",l),Ha===l&&(Ha=null)},Ha=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}Xn={iframe:c,at:Date.now()},u.open(),u.write(Jr(e,n,a,!0,i,o)),u.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{c.remove(),Xn?.iframe===c&&(Xn=null)},0)})}function Jr(e,n,a,r=!1,o="",i=""){o=o?Xr(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(_4);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&&x4.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 k4({children:e,language:n="bash",title:a="",showCopy:r=!0,size:o="default",className:i=""}){const{t:l}=pe.useTranslation(),[c,u]=s.useState(!1),d=v4(Qi(e)),p=s.useRef(null);s.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await L0(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},h=w4(d,n),C=o==="small"?"caption-1":"body-3";return t.jsxs("div",{className:ge("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(ce,{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 A4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function ga(e){const{t:n}=pe.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:A4,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 el({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 tl({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:ge("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 N4({count:e,actions:n,onClear:a,clearLabel:r,visible:o,content:i,max:l}){const{t:c}=pe.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)},b=()=>{const w=f.firstElementChild??f,S=Array.from(w.children);if(S.length<2){v(!1);return}const N=S[0].offsetTop,k=S.some(F=>F.offsetTop!==N);if(!C.current){y.current=f.clientWidth,k&&v(!0);return}if(k)return;const B=S[0],V=S[S.length-1],H=V.offsetLeft+V.offsetWidth-B.offsetLeft,j=y.current;(j==null||H<=j)&&v(!1)};if(b(),typeof ResizeObserver>"u")return;const x=new ResizeObserver(b);x.observe(f);const _=f.parentElement;let g=_?.clientWidth??0;const A=new ResizeObserver(()=>{const w=_?.clientWidth??0;w!==g&&(g=w,y.current=null,b())});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(ut,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${m?" bulk-bar__actions--stacked":""}`,children:[t.jsx(ce,{htmlType:"button",size:40,label:d,onClick:a}),n.map((f,v)=>t.jsx(ce,{htmlType:"button",size:40,variant:f.variant??"default",icon:f.icon,label:f.label,onClick:f.onClick},v))]})]})}function nl(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 La(e,n){return new Date(e,n+1,0).getDate()}function B4(e,n){return new Date(e,n,1).getDay()}function $a(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function S4(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function D4(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 T4({value:e,onChange:n,size:a=48,min:r,max:o,disabled:i,placeholder:l,className:c}){const{t:u}=pe.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}=nl(e),b=s.useCallback(P=>{const M=window.innerHeight-P.bottom,L=300,z=M<L&&P.top>L;return{position:"fixed",left:P.left,width:P.width,minWidth:260,...z?{bottom:window.innerHeight-P.top+6}:{top:P.bottom+6},zIndex:9999}},[]),{open:x,setOpen:_,toggle:g,style:A,triggerRef:w,menuRef:S}=da({computeStyle:b,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});s.useEffect(()=>{if(!x)return;const P=S.current;return(P?.querySelector(".date-picker__day--selected:not(:disabled)")??P?.querySelector(".date-picker__day--today:not(:disabled)")??P?.querySelector(".date-picker__day:not(:disabled)")??P?.querySelector(Ln)??P)?.focus?.(),()=>{const M=document.activeElement;(!M||M===document.body)&&w.current?.focus?.()}},[x,S,w]);const[N,k]=s.useState(1),B=s.useRef(null),V=s.useRef(null);s.useEffect(()=>{if(!x)return;const P=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(P)},[x]),s.useEffect(()=>{if(V.current==null)return;const P=V.current;V.current=null,B.current?.querySelector(`[data-day="${P}"]`)?.focus()}),s.useEffect(()=>{k(P=>Math.min(P,La(h,C)))},[h,C]);const H=s.useCallback(P=>{let M=$a(P.getFullYear(),P.getMonth(),P.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($),V.current=$},[r,o,h,C,v]),j=s.useCallback(P=>{const M=new Date(h,C,N),L=$=>{M.setDate(M.getDate()+$),H(M)},z=$=>{const E=M.getFullYear()*12+M.getMonth()+$,I=Math.floor(E/12),oe=E-I*12;H(new Date(I,oe,Math.min(M.getDate(),La(I,oe))))};switch(P.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":P.shiftKey?z(-12):z(-1);break;case"PageDown":P.shiftKey?z(12):z(1);break;default:return}P.preventDefault()},[h,C,N,H]),F=s.useCallback(P=>{i||(n($a(h,C,P)),_(!1))},[h,C,n,_,i]);s.useEffect(()=>{i&&_(!1)},[i,_]);const T=P=>{const M=$a(h,C,P);return!!(r&&M<r||o&&M>o)},Y=(()=>{const P=La(h,C);if(N>=1&&N<=P&&!T(N))return N;for(let M=1;M<=P;M++)if(!T(M))return M;return-1})(),R=[];for(let P=0;P<B4(h,C);P++)R.push(null);for(let P=1;P<=La(h,C);P++)R.push(P);const O=a===64?20:a===40?16:18,W=D4(h,(P,M)=>u("calendar.yearMonth",{year:P,month:M,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,o),le=`${h}-${String(C+1).padStart(2,"0")}`,q=x?qt.createPortal(t.jsxs("div",{ref:S,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(To,{size:16,strokeWidth:2})}),t.jsx(en,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:W,value:le,onChange:P=>{const[M,L]=P.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(jo,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:B,onKeyDown:j,children:[p.map(P=>t.jsx("div",{className:"date-picker__dow caption-1",children:P},P)),R.map((P,M)=>{if(P===null)return t.jsx("div",{},`e${M}`);const L=$a(h,C,P),z=L===e,$=L===m,E=T(P),I=M%7;return t.jsx("button",{type:"button",disabled:E,"data-day":P,tabIndex:P===Y?0:-1,"aria-current":$?"date":void 0,onClick:()=>!E&&F(P),className:ge("date-picker__day caption-1",z&&"date-picker__day--selected",$&&!z&&"date-picker__day--today",E&&"date-picker__day--disabled",I===0&&"date-picker__day--sun",I===6&&"date-picker__day--sat"),children:P},P)})]})]}),document.body):null;return t.jsxs("div",{className:ge("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&&g(),disabled:i,"aria-haspopup":"true","aria-expanded":x,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?S4(e):d}),t.jsx(Oo,{size:O,className:"date-picker__icon",strokeWidth:1.5})]}),q]})}function $r({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 Ra({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 Rr({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 j4(){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 E4(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),b=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 g=0;g<y;g++)b[_][g]+=x.parts[g]??0}i.set(u,{year:m,month:h,daysInMonth:C,partsLen:y,dayA:f,dayB:v,dayParts:b})}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(),b=n.getDate(),x=i.get(r(m===11?p+1:p,(m+1)%12)),_=d.partsLen,g=[];for(let w=1;w<=h;w++){const S=v&&w>b;g.push({label:String(w),a:S&&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 S=Math.max(0,w+6-h),N=S&&x?Math.max(_,x.partsLen):_;let k=0,B=0;const V=new Array(N).fill(0);for(let j=w;j<=Math.min(w+6,h);j++){k+=C[j],B+=y[j];for(let F=0;F<_;F++)V[F]+=f[j][F]}if(S&&x)for(let j=1;j<=S&&!l(x.year,x.month,j);j++){k+=x.dayA[j],B+=x.dayB[j];for(let F=0;F<x.partsLen;F++)V[F]+=x.dayParts[j][F]}const H=S?`${(m+1)%12+1}/${S}`:`${w+6}`;A.push({label:`${A.length+1}\uC8FC`,sublabel:`[${w}\uC77C~${H}\uC77C]`,a:k,b:B,...N?{parts:V}:{}})}c[u]={weekly:A,daily:g}}return c}function al(){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()}al();function M4(){return al()}const rl=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function ol(e){const{t:n,i18n:a}=pe.useTranslation(),[r,o]=s.useState("week"),i=s.useMemo(()=>M4().filter(k=>k.value in e),[e]),l=s.useMemo(()=>{const k=[];for(const B of i){const V=new Date(B.year,B.month,0).getDate(),H=Cn(B.year,B.month-1),j=Math.ceil((V-H+1)/7);for(let F=j-1;F>=0;F--)k.push({value:`${B.value}#${F}`,monthKey:B.value,year:B.year,month:B.month,week:F})}return k},[i]),c=s.useCallback(k=>{const B=n("calendar.yearMonth",{year:k.year,month:k.month});return a.language?.startsWith("ko")?`${B} ${rl[k.week]??`${k.week+1}`}\uC8FC`:`${B} 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(()=>j4(),[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 b=r==="month"?u:d,x=r==="month"?C:f,_=r==="month"?y:v,g=s.useMemo(()=>{const k=n("calendar.dow",{returnObjects:!0});return Array.isArray(k)?k:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),A=b.findIndex(k=>k.value===x),w=s.useCallback(()=>{const k=b.findIndex(B=>B.value===x);k<b.length-1&&_(b[k+1].value)},[b,x,_]),S=s.useCallback(()=>{const k=b.findIndex(B=>B.value===x);k>0&&_(b[k-1].value)},[b,x,_]),N=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:b,activeIdx:A,handlePrev:w,handleNext:S,periodOptions:N,monthRange:C,weekRange:f,weekRanges:l,DOW:g}}const tn=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function L4({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(N=>N.a!==-1).map(N=>(N.parts??[]).reduce((k,B)=>k+Math.max(0,tn(B)),0))):Math.max(0,...e.filter(N=>N.a!==-1).flatMap(N=>h?[tn(N.a)]:[tn(N.a),tn(N.b)])),[e,h,C]),f=s.useMemo(()=>c??(u?y>0?y:10:Math.ceil(y/10)*10||10),[y,c,u]),v=l,b=C||h?1:2,x={"--bar-width":`${s.useMemo(()=>{const N=Math.max(1,e.length);return Math.max(8,Math.min(i,Math.round(120/(N*b)+6)))},[e.length,b,i])}px`},_=s.useMemo(()=>{const N=Math.round(f/2);return N!==f?[f,N,0]:[f,0]},[f]),[g,A]=s.useState(null),w=s.useCallback(()=>A(null),[]),S=g!=null;return s.useEffect(()=>{if(!S)return;const N=()=>A(null),k=B=>{const V=B.target;V&&typeof V.closest=="function"&&V.closest(".manager-bar-chart-col")||A(null)};return window.addEventListener("scroll",N,!0),document.addEventListener("pointerdown",k,!0),()=>{window.removeEventListener("scroll",N,!0),document.removeEventListener("pointerdown",k,!0)}},[S]),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((N,k)=>t.jsx("div",{className:"manager-bar-chart-gridline",style:{top:(1-N/f)*v},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:N})},k)),e.map((N,k)=>{const B=N.a===-1,V=T=>Math.min(v,Math.max(0,tn(T)/f*v)),H=B?0:V(N.a),j=B?0:V(N.b),F=(N.parts??[]).map(tn);return t.jsx("div",{className:"manager-bar-chart-col",style:{cursor:B?"default":"pointer"},onMouseEnter:B?void 0:T=>{const Y=T.currentTarget.getBoundingClientRect(),R=[N.label,N.sublabel].filter(Boolean).join(" ");let O;if(C){const W=(p??[]).map((q,P)=>({text:`${q}: ${F[P]??0}`,color:(d??[])[P]})),le=W.filter((q,P)=>(F[P]??0)>0);O=le.length?le:W}else m&&!h?O=[{text:`${r} ${tn(N.a)}%`,color:n},{text:`${o} ${tn(N.b)}%`,color:a}]:m&&N.rawB!==void 0?O=[{text:`${m.total} ${N.rawB}`},{text:`${m.done} ${N.rawA??0}`,color:n}]:h?O=[{text:`${r}: ${tn(N.a)}`,color:n}]:O=[{text:`${r}: ${tn(N.a)}`,color:n},{text:`${o}: ${tn(N.b)}`,color:a}];A({rect:{left:Y.left,top:Y.top,right:Y.right,bottom:Y.bottom,width:Y.width,height:Y.height},title:R,items:O})},onMouseLeave:w,children:!B&&(C?t.jsx("div",{className:"manager-bar-chart-stack",style:x,children:(()=>{const T=F.reduce((R,O,W)=>O>0?W:R,-1);let Y=v;return F.map((R,O)=>{if(R<=0)return null;const W=Math.min(Y,R/f*v);return Y-=W,t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:W,background:(d??[])[O],borderRadius:O===T?"6px 6px 0 0":void 0}},O)})})()}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...x,height:H,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((N,k)=>{const B=N.a===-1;return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${B?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[N.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),N.label]}),N.sublabel&&t.jsx("span",{className:"caption-1",children:N.sublabel})]},k)})})]})})}),g&&t.jsx(Rn,{anchorRect:g.rect,title:g.title,items:g.items,showIndex:!1,closeOnOutsideClick:!1})]})}function sl({control:e}){const{t:n}=pe.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(ce,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),t.jsx(en,{value:o,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(ce,{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 il(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 $4(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:[]},b=i.match(/^(\d+)년 (\d+)월$/),x=b?Number(b[1]):null,_=b?Number(b[2]):null,g=x&&_?Cn(x,_-1):1;return v.weekly.map((A,w)=>{const S=w+1;let N=A.label,k=!1,B=!1;if(x&&_){const V=g+w*7,H=new Date(x,_-1,V+6),j=H.getMonth()+1,F=H.getDate(),T=j===_?`${F}`:`${j}/${F}`;N=a("manager.chart.weekRange",{start:V,end:T});const Y=new Date(m,h-1,C).getTime();k=Y>=new Date(x,_-1,V).getTime()&&Y<=H.getTime(),B=x>m||x===m&&(_>h||_===h&&V>C)}return{...A,label:N,sublabel:d?`${rl[S-1]??S}\uC8FC`:`Week ${S}`,isToday:k,a:B?-1:A.a,b:B?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 il(e,f,p).map(({dt:v,entry:b,isFuture:x})=>{const _=v.getMonth()+1,g=v.getDate(),A=v.getFullYear();return{label:_===y.month&&A===y.year?`${g}`:`${_}/${g}`,sublabel:u[v.getDay()]??"",a:x?-1:b&&b.a>0?b.a:0,b:x?0:b&&b.b>0?b.b:0,isToday:A===m&&_===h&&g===C,...b?.parts?{parts:x?b.parts.map(()=>0):b.parts}:{}}})}const R4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function P4({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:b,loading:x=!1,onDetail:_,inGrid:g=!1}){const{t:A,i18n:w}=pe.useTranslation(),S=R4[e],N=ol(r),k=m??N,B=s.useMemo(()=>$4(r,k,A,w.language),[r,k,A,w.language]),V=s.useMemo(()=>{if(!C)return B;const T=k.period==="month"?k.monthRange.match(/^(\d+)년 (\d+)월$/):null,Y=qn();return B.map((R,O)=>{let W=R.a===-1?-1:R.b>0?Math.round(R.a/R.b*100):0;if(T&&R.a!==-1){const le=Number(T[1]),q=Number(T[2])-1,P=il(r,new Date(le,q,Cn(le,q)+O*7),Y).filter(M=>!M.isFuture);W=P.length?Math.round(P.reduce((M,{entry:L})=>M+(L&&L.b>0?L.a/L.b*100:0),0)/P.length):0}return{...R,a:W,b:R.a===-1?0:c&&R.parts&&R.parts[1]>0?Math.round(R.parts[0]/R.parts[1]*100):0,rawA:R.a===-1?-1:R.a,rawB:R.b}})},[B,C,c,k.period,k.monthRange,r]),H=s.useMemo(()=>{if(C||f){const T=(k.period==="week"?B:r[k.monthRange]?.daily??[]).filter(R=>R.a!==-1);if(T.length===0)return 0;const Y=C?T.reduce((R,O)=>R+(O.b>0?O.a/O.b*100:0),0):T.reduce((R,O)=>R+(O.a>0?O.a:0),0);return Math.round(Y/T.length)}return V.reduce((T,Y)=>T+(Y.a>0?Y.a:0)+(c&&Y.b>0?Y.b:0),0)},[V,B,C,f,c,k.period,k.monthRange,r]),j=b&&b.length>0?b.map(T=>({color:T.color,label:T.label})):[{color:o,label:A(l)},...c?[{color:i,label:A(c)}]:[]],F=e==="small";return t.jsx(Rr,{className:F?"manager-section--compact":e==="large"?"manager-section--full":void 0,inGrid:g,title:A(a),titleClassName:F?"h5 chart-section-title--small":void 0,headRight:F?void 0:t.jsxs(t.Fragment,{children:[!h&&t.jsx(sl,{control:k}),_&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(ce,{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(Ra,{label:F?void 0:`${A(k.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${A(p??l)}`,children:v?(v(H).match(/(\d+|[^\d]+)/g)??[]).map((T,Y)=>/\d/.test(T)?t.jsx("span",{className:"barchart-total__num h0",children:T},Y):t.jsx("span",{className:"barchart-total__unit h5",children:T},Y)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:H}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:A(d)})]})}):t.jsxs(Ra,{children:[t.jsx("span",{className:"barchart-total__num h0",children:H}),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($r,{items:j,className:"caption-1"})]}),children:x?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ga,{size:32})}):t.jsx(L4,{data:V,colorA:o,colorB:c?i:void 0,labelA:A(l),labelB:c?A(c):void 0,barWidth:n??S.barWidth,height:S.height,maxOverride:C?100:void 0,tightMax:y,seriesColors:b?.map(T=>T.color),seriesLabels:b?.map(T=>T.label),rateLabels:C?{total:A("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:A("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}const ll=(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")}`},cl=(e,n,a,r)=>({from:Ts(e,n,a),to:new Date(Ts(e,n,a+r).getTime()-1),fromYmd:ll(e,n,a),toYmd:ll(e,n,a+r-1)});function I4(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 cl(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 cl(a.year,a.month-1,r+(a.week+n)*7,7)}const ul={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function dl(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function pl({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:ul[o].diameter,p=i??(typeof o=="number"?12:ul[o].strokeWidth),m=d/2,h=(d-p)/2,C=2*Math.PI*h;if(a&&a.length>0){const b=a.reduce((x,_)=>{const g=x.length>0?x[x.length-1].acc:0,A=Number.isFinite(_.ratio)?_.ratio:0,w=Math.max(0,Math.min(A,1-g));return x.push({color:_.color,rotate:-90+g*360,dash:C*w,acc:g+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}),b.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:dl(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 F4({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:o,legend:i,loading:l,className:c,inGrid:u=!1,...d}){const{t:p}=pe.useTranslation();if(!e)return t.jsx(pl,{...d});const m=(d.total??0)>0?dl(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(We,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(Rr,{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(Ra,{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($r,{items:i})]}),children:l?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(ga,{size:32})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(pl,{...d,hideCenter:h||d.hideCenter})})})}function O4({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}=ja(),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(We,{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 ml({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:b,showBgTick:x=!1,showFillTick:_=!1,tickStep:g,tickShape:A="dot"}){n&&!u&&ea("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)),S=r>a?(w-a)/(r-a):0,N=i==="vertical",k=!n,B=L=>n?.(Number(L.target.value)),V=typeof d=="number"?`${d}px`:d,H={"--slider-ratio":String(S),"--slider-thumb":`${l}px`,...V?N?{height:V}:{width:V}:{}},j=g??o,F=(x||_)&&j>0&&r>a?Math.floor((r-a)/j+1e-6):0;if(F>0&&F<=100){const L=A!=="dash",z=re=>L?`radial-gradient(circle, ${re} 0.5px, transparent 1px)`:N?`linear-gradient(to bottom, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`,$=L?"2px":"4px",E=[],I=[],oe=[];for(let re=0;re<=F;re++){const ee=re*j/(r-a);if(ee>1+1e-6)break;const se=`${((N?1-ee:ee)*100).toFixed(4)}%`,Ce=ee<=S+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))";E.push(z(Z)),I.push(N?`${$} var(--slider-thumb)`:`var(--slider-thumb) ${$}`),oe.push(N?`center ${se}`:`${se} center`)}E.push(N?"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))"),I.push("100% 100%"),oe.push("0 0"),H.backgroundImage=E.join(", "),H.backgroundSize=I.join(", "),H.backgroundPosition=oe.join(", "),H.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&&b?b:void 0,Y=t.jsx("input",{type:"range",className:ge("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:B,style:H});if(!m&&!f)return Y;const R=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??a}),O=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:b??r}),W=f?t.jsxs("div",{className:ge("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[N?O:R,Y,N?R:O]}):Y;if(!m)return W;const le=C??(N?"bottom":"right"),q=`${Math.round(r>a?(w-a)/(r-a)*100:0)}%`,P=h?h(w):m==="percent"?q:m==="count"?`${w} / ${r}`:String(w),M=t.jsx("span",{className:"slider-wrap__value body-3b",children:P});return t.jsxs("div",{className:ge("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${le}`,`slider-wrap--align-${y}`,p),children:[W,M]})}const H4=.86,V4=250,Pr=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),Ir=(e,n,a,r)=>{const o=Pr(e,n,a,r);return`${o<0?"-":"+"}${Math.abs(o)} dB`};function Fr({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),[b,x]=s.useState(null);s.useEffect(()=>{const w=Y=>{const R=Ir(Y,u,d,p);f.current&&(f.current.textContent=R);const O=C.current;O&&(O.setAttribute("aria-valuenow",String(Pr(Y,u,d,p))),O.setAttribute("aria-valuetext",R))},S=e??o0(n)??(b&&b.el===n?b.node:null),N=y.current;if(!S||!N){N?.style.setProperty("--meter-level","0"),w(c);let Y=!1;return!e&&n&&ka(n).then(R=>{!Y&&R&&x({el:n,node:R})}),()=>{Y=!0}}mr();const k=new Float32Array(S.fftSize);let B=0,V=0,H=0,j=0,F=null;const T=Y=>{const R=s0(S,k);B=R>B?R:B*H4;const O=B>1e-5?20*Math.log10(B):-1/0,W=Math.max(c,O),le=W-u,q=Math.min(1,Math.max(0,(le-d)/(p-d)));if(N.style.setProperty("--meter-level",q.toFixed(3)),V+=W,H+=1,Y-j>=V4){const P=V/H;F=F==null?P:F*.6+P*.4,w(F),V=0,H=0,j=Y}v.current=requestAnimationFrame(T)};return v.current=requestAnimationFrame(T),()=>{v.current!=null&&cancelAnimationFrame(v.current),v.current=null}},[e,n,b,c,u,d,p]);const _=typeof r=="number"?`${r}px`:r,g=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:ge("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":Pr(c,u,d,p),"aria-valuetext":Ir(c,u,d,p),children:[g,o&&t.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:Ir(c,u,d,p)})]})}const hl=260;function fl({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),b=s.useRef(!1),x=s.useRef(null),_=s.useRef(null),g=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{}},hl)},k))};const S=s.useCallback(()=>{b.current||!y.current||(b.current=!0,clearTimeout(y.current),y.current=null,v.current=Math.max(0,v.current-(Date.now()-f.current)))},[]),N=s.useCallback(()=>{b.current&&(b.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&&(b.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 B=p.current;if(B)try{B.classList.remove("is-visible"),B.style.transition="none",n==="top"?B.style.transform="translateX(-50%) translateY(-16px)":B.style.transform="translateX(-50%) translateY(16px)",B.style.opacity="0",B.offsetWidth,B.style.transition="",B.classList.add("is-visible"),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{A.current=null;try{B.style.opacity="",B.style.transform="",B.style.transition=""}catch{}},60)}catch{}};u.current?(k(),i(!0)):(c(!0),_.current=requestAnimationFrame(()=>{g.current=requestAnimationFrame(()=>{k(),i(!0)})})),C>0&&(b.current=!1,w.current(C))}else i(!1),x.current=setTimeout(()=>c(!1),hl);return m.current=e,()=>{y.current&&clearTimeout(y.current),x.current&&clearTimeout(x.current),_.current&&cancelAnimationFrame(_.current),g.current&&cancelAnimationFrame(g.current),A.current&&clearTimeout(A.current),y.current=null,x.current=null,_.current=null,g.current=null,A.current=null}},[e,C,n]),{mounted:l,showing:o,popupRef:p,pause:S,resume:N}}function Gn({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:o=2e3}){const{mounted:i,showing:l,popupRef:c,pause:u,resume:d}=fl({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"?qt.createPortal(h,document.body):h}const z4=24;function W4({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>=z4?"inside":"bottom"),v=f==="center"?"inside":f,b=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:ge("progress-bar",`progress-bar--${a}`,`progress-bar--label-${v}`,i&&`progress-bar--align-${u}`,i&&b&&"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 q4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},U4="rgba(255, 255, 255, 0.16)";function Cl({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:o,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=pe.useTranslation(),d=rn("(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"]=U4),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:q4,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 G4(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 K4({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function Or({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(ga,{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 Y4({dir:e}){return t.jsx(e==="asc"?Vo:Ho,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Z4({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:ge("table-field body-3",a,r?"table-field--sorted":"",o?"table-field--resizable":""),children:[e,r&&t.jsx(Y4,{dir:r}),o&&t.jsx("span",{className:"table-field__resizer",onPointerDown:o,onClick:l=>l.stopPropagation(),"aria-hidden":"true"})]})}function Hr({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:b,icon:x,count:_,collapsed:g=!1,onToggleCollapse:A,headerActions:w,empty:S,loading:N,dragOver:k=!1,onDragOver:B,onDragLeave:V,onDrop:H,renderExpandedRow:j,expandedId:F}){const{t:T}=pe.useTranslation(),Y=rn("(max-width: 767px)"),R=h&&Y?h:null,O=C&&!R,W=48,le=f?`table-cols:${f}`:null,q=s.useRef(null),P=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(_e=>typeof _e=="number"&&Number.isFinite(_e)&&_e>0)?te:null}catch{return null}},[$,E]=s.useState(()=>z(le)),[I,oe]=s.useState(le);I!==le&&(oe(le),E(z(le)));const re=s.useRef($);s.useEffect(()=>{re.current=$},[$]);const ee=s.useCallback(Q=>{const te=L.current;te&&E(_e=>{if(!_e)return _e;const je=[..._e];if(te.next!=null&&te.startWNext!=null){const ze=Q.clientX-te.startX,Me=Math.max(W-te.startW,Math.min(te.startWNext-W,ze));je[te.index]=te.startW+Me,je[te.next]=te.startWNext-Me}else je[te.index]=Math.max(W,te.startW+(Q.clientX-te.startX));return je})},[]),se=s.useCallback(()=>{if(L.current=null,window.removeEventListener("pointermove",ee),window.removeEventListener("pointerup",se),window.removeEventListener("pointercancel",se),document.body.style.cursor="",document.body.style.userSelect="",le&&re.current)try{window.localStorage.setItem(le,JSON.stringify(re.current))}catch{}},[ee,le]),Ce=s.useCallback((Q,te)=>{te.preventDefault(),te.stopPropagation();const _e=q.current;if(!_e)return;const je=Array.from(_e.children).map(Me=>Me.getBoundingClientRect().width),ze=y==="fit"?e.findIndex((Me,Oe)=>Oe>Q&&Me.resizable!==!1):-1;L.current=ze>=0?{index:Q,startX:te.clientX,startW:je[Q],next:ze,startWNext:je[ze]}:{index:Q,startX:te.clientX,startW:je[Q]},E(je),window.addEventListener("pointermove",ee),window.addEventListener("pointerup",se),window.addEventListener("pointercancel",se),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[ee,se,y,e]),Z=s.useCallback(()=>{const Q=q.current,te=Q?.closest(".table-wrap");if(!Q||!te)return;const _e=te.style.getPropertyValue("--table-grid-cols");te.style.setProperty("--table-grid-cols",e.map((fe,Ge)=>P.current(Ge)?M.current[Ge]:"max-content").join(" "));const je=Array.from(te.querySelectorAll(".table-row")).filter(fe=>!fe.classList.contains("table-row--loading")&&!fe.classList.contains("table-row--empty")),ze=e.map((fe,Ge)=>{let Ee=Q.children[Ge]?.getBoundingClientRect().width??0;for(const $e of je){const He=$e.children[Ge];He&&(Ee=Math.max(Ee,He.getBoundingClientRect().width))}return Math.max(W,Math.ceil(Ee))}),Me=window.getComputedStyle(Q),Oe=Q.clientWidth-(parseFloat(Me.paddingLeft)||0)-(parseFloat(Me.paddingRight)||0);_e?te.style.setProperty("--table-grid-cols",_e):te.style.removeProperty("--table-grid-cols");let Re=ze;const tt=ze.reduce((fe,Ge,Ee)=>fe+(P.current(Ee)?Ge:0),0),Ke=ze.reduce((fe,Ge,Ee)=>fe+(P.current(Ee)?0:Ge),0),Ue=Oe-tt;if(Oe>0&&Ke>0&&Ue>0){const fe=Ue/Ke;Re=ze.map((Ee,$e)=>P.current($e)?Ee:Math.max(W,Math.round(Ee*fe)));const Ge=Math.round(Ue-Re.reduce((Ee,$e,He)=>Ee+(P.current(He)?0:$e),0));if(Ge!==0){let Ee=-1;Re.forEach(($e,He)=>{!P.current(He)&&(Ee<0||$e>Re[Ee])&&(Ee=He)}),Ee>=0&&(Re[Ee]=Math.max(W,Re[Ee]+Ge))}}if(E(Re),le)try{window.localStorage.setItem(le,JSON.stringify(Re))}catch{}},[e,y,le]);s.useEffect(()=>()=>{L.current&&(window.removeEventListener("pointermove",ee),window.removeEventListener("pointerup",se),window.removeEventListener("pointercancel",se),document.body.style.cursor="",document.body.style.userSelect="")},[ee,se]);const ie=G4(m),J=ie.filter(Q=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(Q));J.length>0&&ea(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${J.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 be=Q=>/^\d+(\.\d+)?px$/.test(ie[Q]??"");P.current=be,M.current=ie;const ve=Q=>y==="fit"&&!be(Q)?"fr":"px",Te=$&&$.length===e.length&&(y==="fit"||a.length>0),de=R??(Te?e.map((Q,te)=>Q.resizable===!1&&ie[te]?ie[te]:`${$[te]}${ve(te)}`).join(" "):m),ye=de?{"--table-grid-cols":de}:void 0,we=b!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${v}${O?" table-wrap--resizable":""}${k?" table-wrap--dragover":""}${g?" table-wrap--collapsed":""}`,style:ye,onDragOver:B,onDragLeave:V,onDrop:H,children:t.jsxs("div",{className:"table body-2",children:[we&&t.jsxs("div",{className:"table-header",onClick:A,role:A?"button":void 0,tabIndex:A?0:void 0,"aria-expanded":A?!g:void 0,onKeyDown:A?Q=>{Q.target===Q.currentTarget&&(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),A())}:void 0,children:[A&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:g?"chevron-right":"chevron-down",ariaLabel:g?T("common.expand","\uD3BC\uCE58\uAE30"):T("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),x&&t.jsx(We,{icon:x,label:typeof b=="string"?b:void 0,className:"table-header__icon"}),t.jsx("span",{className:"table-header__title h5b",children:b}),_!==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})]}),!g&&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:ge("table-field body-3",Q.className),style:{gridColumn:`span ${Q.span}`},children:Q.label},te))}),t.jsxs("div",{className:ge("table-fields-strip",O&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:q,children:e.map((Q,te)=>t.jsx(Z4,{onClick:Q.onClick,className:Q.className,sortDir:Q.sortDir,onResizeStart:O&&te<e.length-1&&Q.resizable!==!1&&(y!=="fit"||e.some((_e,je)=>je>te&&_e.resizable!==!1))?_e=>Ce(te,_e):void 0,children:Q.label},te))}),O&&t.jsx(ce,{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:N?t.jsx(Or,{variant:"loading"}):a.length===0&&S?t.jsx(Or,{variant:"empty",children:S}):a.map((Q,te)=>{const _e=p!=null&&Q.id===p,je=!!o&&(i?i(Q):!0),ze=F!=null&&(F instanceof Set?F.has(Q.id):Q.id===F);return t.jsx(Or,{className:`${je?" table-row--clickable":""}${u?" table-row--draggable":""}${_e?" table-row--dragging":""}`.trim(),draggable:!!u,onClick:je?()=>o(Q):void 0,onMouseEnter:l?Me=>l(Q,Me):void 0,onMouseLeave:c?Me=>c(Q,Me):void 0,onDragStart:u?Me=>u(Q,Me):void 0,onDragEnd:d?Me=>d(Q,Me):void 0,expandedContent:ze&&j?j(Q):void 0,children:r(Q).map((Me,Oe)=>t.jsx(K4,{className:Me.className,style:Me.style,children:Me.content},Oe))},String(Q.id??te))})})]})]})})}function gl(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const X4={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function J4(e,n){const a=X4[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}function bl(e,n){return n!=="wornAt"?String(e[n]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function Q4({rows:e,onSelect:n,onDelete:a,onWear:r,onRelease:o,onAdd:i}){const{t:l}=pe.useTranslation(),c=y=>y==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=u2(),p=s.useMemo(()=>{if(!u)return e;const{key:y,asc:f}=u;return[...e].sort((v,b)=>{const x=y==="worn"?Number(b.worn)-Number(v.worn):bl(v,y).localeCompare(bl(b,y),"ko");return f?x:-x})},[e,u]),{pageRows:m,pageSizeProps:h,paginationProps:C}=c2(p,u);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(Lr,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:h,pagination:C,actions:i&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),t.jsx(Hr,{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(tl,{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(ut,{size:"small",variant:gl(y.device),fill:"soft",label:J4(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(ce,{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 yl(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 eb(e,n){return new Date(e,n+1,0).getDate()}function tb(e,n){return new Date(e,n,1).getDay()}function nb({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r}){const{t:o}=pe.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 g={};return e.forEach(A=>{g[A.date]||(g[A.date]=[]),g[A.date].push(A)}),g},[e]),f=s.useMemo(()=>{const g=eb(c,d),A=tb(c,d),w=[];for(let S=0;S<A;S++)w.push(null);for(let S=1;S<=g;S++)w.push(S);for(;w.length<35;)w.push(null);return w},[c,d]),v=s.useCallback(()=>{d===0?(u(g=>g-1),p(11)):p(g=>g-1)},[d]),b=s.useCallback(()=>{d===11?(u(g=>g+1),p(0)):p(g=>g+1)},[d]),x=g=>`${c}-${String(d+1).padStart(2,"0")}-${String(g).padStart(2,"0")}`,_=g=>x(g)===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(We,{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:b,"aria-label":o("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(We,{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(g=>t.jsx("div",{className:"calendar-day-header body-3",children:g},g)),f.map((g,A)=>{if(g===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${A}`);const w=g,S=x(w),N=y[S]??[],k=m===S;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:S}):void 0,"aria-current":_(w)?"date":void 0,onClick:r?()=>r(S):void 0,onKeyDown:r?B=>{B.target===B.currentTarget&&(B.key!=="Enter"&&B.key!==" "||(B.preventDefault(),r(S)))}:void 0,onDragOver:a?B=>{B.preventDefault(),h(S)}:void 0,onDragLeave:a?B=>{B.currentTarget.contains(B.relatedTarget)||h(null)}:void 0,onDrop:a?B=>{B.preventDefault(),C.current!=null&&(a(C.current,S),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:N.map((B,V)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${B.status==="noVisit"?" calendar-visit-badge--no-visit":B.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?H=>{C.current=B.id,H.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{C.current=null,h(null)}:void 0,onClick:n?H=>{H.stopPropagation(),n(B)}:void 0,...yl(n?()=>n(B):void 0),"aria-label":[B.time?Ms(B.time,o):null,B.customer,o(B.status==="noVisit"?"calendar.legend.noVisit":B.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[B.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:Ms(B.time,o)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:B.customer}),B.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},B.id??V))})]},w)})]})]})}const ab={page:"h3",pagePopup:"h4",popup:"h5"};function Kn({type:e="page",title:n,headingLevel:a,icon:r,action:o,disc:i,children:l,className:c,style:u}){const d=ab[e],p=n||i,m=a?`h${a}`:"div";return t.jsxs("div",{className:ge("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(We,{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 vl({icon:e,label:n,tooltip:a,wrapperStyle:r,color:o,bgColor:i,useHover:l=!0,iconSize:c="medium"}){const u=c==="small",d=ge("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,b]=s.useState(null);s.useLayoutEffect(()=>{h&&b(m.current?.getBoundingClientRect()??null)},[h]),s.useEffect(()=>{if(!l&&h)try{C(!1)}catch{}},[l,h]),s.useEffect(()=>{if(!h)return;const w=S=>{const N=m.current;if(!N)return;const k=S.target;k&&!N.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]),g=s.useCallback(()=>C(!1),[]),A=s.useCallback(w=>{if(w.key==="Escape"){C(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),C(S=>!S))},[]);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(We,{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:g,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}let An=null;function Vr(e){if(An&&An!==e)try{An()}catch{}return An=e,()=>{An===e&&(An=null)}}function Pa(e){if(An===e){An=null;try{e()}catch{}}}function rb(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 ob(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}=rb(e,n),b=`${f.join(",")}|${v??""}`,x=s.useMemo(()=>l.key===b?l.urls:[],[l,b]);s.useEffect(()=>{if(!f.length)return;let g=!1;return(async()=>{const A=[],w=[];for(const S of f)try{const N=ms(S,v);if(!N){A.push("");continue}let k=null;try{k=await hs(N)}catch{}if(!k)try{const B=await fs(N);B&&(k=URL.createObjectURL(B),w.push(k))}catch{}A.push(k??"")}catch{A.push("")}g?w.forEach(S=>{try{URL.revokeObjectURL(S)}catch{}}):(y.current.forEach(S=>{try{URL.revokeObjectURL(S)}catch{}}),y.current=w,c({key:b,urls:A}))})(),()=>{g=!0}},[f.join(","),v]),s.useEffect(()=>()=>{y.current.forEach(g=>{try{URL.revokeObjectURL(g)}catch{}}),y.current=[]},[]);const _=s.useCallback(async g=>{if(g.stopPropagation(),g.preventDefault(),d.current){p.current&&Pa(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 S=Vr(w);d.current=!0,r(!0);for(let N=0;N<x.length&&d.current;N++){const k=x[N];if(k){i(N);try{await new Promise((B,V)=>{A=B;const H=new Audio(k);u.current=H,H.onended=()=>B(),H.onerror=()=>V(),H.play().catch(V)})}catch{break}}}S(),p.current===w&&(p.current=null,d.current=!1,r(!1),i(-1))},[x]);return s.useEffect(()=>()=>{p.current&&Pa(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 sb=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 zr(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:b,countLabelOverride:x,size:_="square"}=e||{},{t:g}=pe.useTranslation(),[A,w]=s.useState(!1),S=s.useRef(null),[N,k]=s.useState(!1);s.useEffect(()=>{S.current?.matches(":hover")&&k(!0)},[]);const{playing:B,playingIndex:V,previewUrls:H,previewHover:j,setPreviewHover:F,previewBtnRef:T,handlePreview:Y}=ob(r,a?.key),R=s.useCallback(()=>{v?v():w(!0)},[v]),O=s.useCallback(()=>w(!1),[]),W=s.useCallback(()=>k(!0),[]),le=s.useCallback(()=>k(!1),[]),q=s.useCallback(()=>F(!0),[F]),P=s.useCallback(()=>F(!1),[F]),[M,L]=s.useState(null);s.useLayoutEffect(()=>{j&&L(T.current?.getBoundingClientRect()??null)},[j,T]);const[z,$]=s.useState(null);s.useLayoutEffect(()=>{N&&!A&&m&&$(S.current?.getBoundingClientRect()??null)},[N,A,m]);const E=s.useCallback(fe=>{fe.target===fe.currentTarget&&(fe.key==="Enter"||fe.key===" ")&&(fe.preventDefault(),R())},[R]),I=r||null,oe=s.useMemo(()=>{if(!m)return null;const fe=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Ge=fe&&fe.length>0?fe:sb(I);return Ge&&Ge.length>0?Ge:null},[m,p,I]),re=s.useCallback(fe=>{fe.stopPropagation(),h?.()},[h]),ee=s.useCallback(fe=>fe.stopPropagation(),[]),se=s.useCallback(fe=>{typeof f=="function"&&f(fe)},[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);gi("speechear.popup.close",O);const ie=Ls(),J=`${a?.label||""} ${n+1}`,be=I?.title||I?.name||J;let ve=a?.icon,Te,de="",ye="";try{const fe=I?.category_0||I?.category_main_code||I?.category_main,Ge=I?.category_1||I?.category_sub_code||I?.category_sub,Ee=ie.find($e=>$e.key===fe);Ee?.icon&&(ve=Ee.icon),!Te&&Ee?.color&&(Te={"--t-item-fg":Ee.color}),!Te&&I?.iconColor&&(Te={"--t-item-fg":I.iconColor}),de=Ee?g(`topic.${Ee.key}`,{defaultValue:Ee.label||""}):"";try{const $e=Ee?.subs?.find(He=>He.key===Ge);ye=$e?g(`topic.sub.${$e.key}`,{defaultValue:$e.label||""}):""}catch{}}catch{}const we=ye?`${de} / ${ye}`:de||a?.label||be,Q=fe=>g("training.countQuestions",{n:fe}),te=fe=>g("training.countSentences",{n:fe});let _e="";try{if(I)if(a?.key==="LISTEN_IN_NOISE"){let fe=0;Array.isArray(I.items)&&I.items.length>0?fe=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0?fe=I.sentences.length:I.sentences&&(fe=1),_e=te(fe)}else if(a?.key==="SHORT_STORY"){let fe=1;Array.isArray(r?.items)?fe=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?fe=r.raw.items.length:Array.isArray(I?.questions)?fe=I.questions.length:Array.isArray(I?.sentences)&&(fe=I.sentences.length),_e=Q(fe)}else if(a?.key==="LONG_STORY"){let fe=1;if(Array.isArray(I.items)&&I.items.length>0){const Ge=I.items.reduce((Ee,$e)=>{const He=$e.questionItems;return Array.isArray(He)?Ee+He.length:Array.isArray($e.questions)?Ee+$e.questions.length:Ee},0);fe=Ge>0?Ge:I.items.length}else Array.isArray(I.questions)&&I.questions.length>0?fe=I.questions.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(fe=I.sentences.length);_e=Q(fe)}else if(a?.key==="ORDERING_SENTENCE"){let fe=1;Array.isArray(I.items)&&I.items.length>0?fe=I.items.length:Array.isArray(I.sentences)&&I.sentences.length>0&&(fe=I.sentences.length),_e=te(fe)}else Array.isArray(I.items)&&(_e=I.items.length>0?Q(I.items.length):"")}catch{}const je=_==="row",ze=_==="list"||je,Me=_==="compact",Oe=_==="small",Re=Oe&&a?.key?F0().find(fe=>fe.key===a.key):void 0,tt=Re?$s[Re.key]:void 0,Ke=Re?tt?g(`trainingType.${tt}.title`,{defaultValue:Re.label}):Re.label??"":"",Ue=!!y&&!!a?.label&&a.label!==String(be)||Oe&&!!Ke&&Ke!==String(be);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:S,className:`training-block-button${ze?" training-block-button--list":""}${je?" training-block-button--row":""}${Me?" training-block-button--compact":""}${Oe?" training-block-button--small":""}${Ce?" training-block-button--completed":""}${Z?" training-block-button--selected":""}${Ue&&!Oe?" training-block-button--withType":""}${Oe&&!Ue?" training-block-button--no-type-label":""}`,onClick:R,onPointerEnter:W,onPointerLeave:le,role:"button",tabIndex:0,onKeyDown:E,"aria-label":typeof o=="string"?o:typeof be=="string"?be:void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[y&&a?.label&&a.label!==String(be)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Oe&&Ke&&Ke!==String(be)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:Ke}),t.jsx(vl,{icon:ve,label:be,tooltip:we,wrapperStyle:Te,iconSize:Oe||Me?"small":"medium"}),!C&&(Ce||Z)&&!(h&&N)&&t.jsx(ut,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":Ce?g("training.completed","\uD6C8\uB828 \uC644\uB8CC"):g("training.selected","\uC120\uD0DD\uB428")}),h&&N&&t.jsx(ut,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":g("common.remove","\uC81C\uAC70"),onClick:re}),t.jsx("div",{className:`training-block-button__title ${Me?"body-3":Oe?"body-3b":"h3"}`,children:String(be)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const fe=x!==void 0?x:_e;return fe?t.jsx("div",{className:`training-block-button__count ${Oe?"caption-2":"caption-1"}`,children:fe}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(We,{icon:"chevron-right",label:g("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:Oe?12:20})})]}),(ze&&!je||Oe)&&H.length>0&&t.jsx("div",{ref:T,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ee,onPointerEnter:q,onPointerLeave:P,children:t.jsx(ce,{htmlType:"button",size:Oe?28:32,type:"dot",icon:B?"pause":"play",variant:Oe?"transparent-lightGray":"default",useBorder:!1,selected:B,ariaLabel:B?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:Y})})]}),b&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:fe=>{fe.stopPropagation(),b(fe)},children:t.jsx(ce,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:g("common.more","\uB354\uBCF4\uAE30")})})]}),j&&t.jsx(kn,{anchorRect:M,text:B?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),N&&!A&&m&&(oe?t.jsx(Rn,{anchorRect:z,items:oe,activeIndex:V,onClose:le}):I?.subTitle?t.jsx(kn,{anchorRect:z,text:I.subTitle,offset:8,onClose:le}):null),A&&l&&l({trainingData:I,typeKey:a?.key??"",onClose:O,onComplete:se,popupTitle:String(be),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:ve,popupIconTooltip:String(we),popupWrapperStyle:Te})]})}let Wr=null,xl=!1;function _l(){if(xl||typeof document>"u")return;xl=!0,document.addEventListener("keydown",n=>{n.metaKey||n.ctrlKey||n.altKey||(Wr="keyboard")},!0);const e=()=>{Wr="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}_l();function Ia(){return _l(),Wr==="keyboard"}const Fa=20;function ib(e){const{t:n}=pe.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,[b,x]=s.useState(Math.min(v,Fa)),_=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,Fa))},[v]),gi("speechear.data.updated",()=>y(S=>S+1));const g=s.useRef(null),A=s.useRef(null);function w(){const S=document.activeElement;A.current=Ia()&&S&&S.closest?.(".training-block__more")?b:null,x(N=>Math.min(v,N+Fa))}return s.useEffect(()=>{const S=A.current;if(S==null)return;A.current=null;const N=document.activeElement;N&&N!==document.body||g.current?.querySelectorAll(".training-block-button")[S]?.focus()},[b]),t.jsxs(Kn,{type:C,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",ref:g,children:(f||[]).slice(0,b).map((S,N)=>{const k=S;return t.jsx(zr,{index:N,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"?B=>h(k,B):void 0},k?.id!=null?`${a?.key||"t"}-${String(k.id)}`:`${a?.key||"t"}-${N}`)})}),v>Fa&&b<v&&t.jsx("div",{className:"training-block__more",children:t.jsx(ce,{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 qr(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 lb='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 cb=lb,Ur=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}=pe.useTranslation(),h=e.word||e.title||"",C=n||!h,y=e.audio??e.sound??e.audioKey,f=e.subLabel||e.pronunciation||"",v=e.colloquialLabel||"",[b,x]=s.useState({label:h,subLabel:f,colloquialLabel:v,homonum:e.homonum});h&&(b.label!==h||b.subLabel!==f||b.colloquialLabel!==v||!Object.is(b.homonum,e.homonum))&&x({label:h,subLabel:f,colloquialLabel:v,homonum:e.homonum});const _=s.useRef(null),g=rn("(max-width: 767px)"),[A,w]=s.useState(!1),S=`${typeof y=="string"?y:y?.src??""}\0${h}`,[N,k]=s.useState({for:"",url:""}),B=N.for===S?N.url:"",V=Wn()?.(b.label,b.homonum)??e.image??"",{imgRef:H,loading:j,hasImage:F,onLoad:T,onError:Y}=qr(V);s.useEffect(()=>{let z=!1;return(async()=>{if(y){if(typeof y=="string"){if(y.startsWith("http")||y.includes("/")){k({for:S,url:y});return}}else if(typeof y=="object"&&!Array.isArray(y)){const E=y.src;if(E){k({for:S,url:E});return}}}const $=ur();if($&&h)try{const E=await Promise.resolve($(h));!z&&E&&k({for:S,url:E})}catch{}})(),()=>{z=!0}},[y,h,S]);const R=s.useRef(!0),O=s.useRef(null);s.useEffect(()=>(R.current=!0,()=>{R.current=!1,O.current&&Pa(O.current),O.current=null;try{_.current?.pause()}catch{}_.current=null}),[]);const W=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]),le=s.useCallback(z=>new Promise($=>{let E=!1;const I=()=>{E||(E=!0,w(!1),$(!1))};try{const oe=new Audio(z);_.current=oe,oe.onended=()=>{if(!E){E=!0,w(!1);try{a?.()}catch{}$(!0)}},oe.onerror=I,oe.play().catch(I)}catch{I()}}),[a]),q=s.useCallback(async()=>{if(n||!R.current)return;const z=()=>{O.current===z&&(O.current=null);try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}w(!1)},$=Vr(z);O.current=z;try{window.speechSynthesis?.cancel()}catch{}try{if(B&&(w(!0),await le(B)))return;const E=t0();if(E&&h)try{const I=await Promise.resolve(E(h));if(!R.current||O.current!==z||I&&(w(!0),await le(I)))return}catch{}if(!R.current||O.current!==z)return;await W()}finally{$(),O.current===z&&(O.current=null)}},[n,B,h,le,W]);s.useImperativeHandle(p,()=>({play:()=>q()}),[q]);const P=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}q()}},[n,A,q]),L=ge("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:P,children:t.jsx(ut,{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:F?t.jsxs(t.Fragment,{children:[j&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:H,className:"training-word-card__image",src:V,alt:b.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:j?0:1},onLoad:T,onError:Y})]}):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:b.label}),b.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",b.subLabel,"]"]}),b.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",b.colloquialLabel,"]"]})]}),!u&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?P:void 0,children:t.jsx(ce,{htmlType:"button",size:g?40:48,type:g?"dot":"bar",icon:A?"pause":"play",label:g?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:cb,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),ub=260;function Nn(e){const{t:n}=pe.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:b,layer:x="modal",height:_,fillBody:g=!1,resetScrollKey:A}=e||{},[w,S]=s.useState(!1),N=s.useRef(!1),k=s.useRef(null),B=s.useId(),V=s.useRef(null);s.useEffect(()=>{},[v,a,y,C]),s.useEffect(()=>{A!==void 0&&V.current&&(V.current.scrollTop=0)},[A]);const[H,j]=s.useState(!1);s.useEffect(()=>{const $=V.current;if(!$)return;const E=()=>j($.scrollHeight>$.clientHeight+1);if(E(),typeof ResizeObserver>"u")return;const I=new ResizeObserver(E);I.observe($);const oe=$.firstElementChild;return oe&&I.observe(oe),()=>I.disconnect()},[i,A]),s.useEffect(()=>{if(!v)return Zi()},[v]),s.useEffect(()=>{if(v)return;const $=document.activeElement,E=k.current;return Er(E,$),E&&!E.contains(document.activeElement)&&(E.querySelector(Ln)??E).focus(),()=>{const I=document.activeElement;(!I||I===document.body||E&&E.contains(I))&&Mr($)?.focus?.()}},[v]),vr(k,!v);const F=s.useRef(!0),T=s.useRef(null);s.useEffect(()=>(F.current=!0,()=>{F.current=!1,T.current&&(clearTimeout(T.current),T.current=null)}),[]);const Y=s.useCallback(()=>{!F.current||!N.current||(N.current=!1,S(!1))},[]),R=s.useCallback(($,E=!1)=>{if(N.current)return;N.current=!0,S(!0);const I=setTimeout(()=>{T.current===I&&(T.current=null);let oe;try{oe=$?$():void 0}catch{Y();return}oe&&typeof oe.then=="function"&&oe.then(()=>{setTimeout(Y,120)},Y)},ub);E&&(T.current=I)},[Y]),O=s.useCallback(()=>{p||m&&m()===!1||R(d,!0)},[R,d,p,m]),W=s.useRef(O);s.useEffect(()=>{W.current=O});const le=!v&&!!d;s.useEffect(()=>{if(le)return $n(()=>W.current())},[le]);const q=le&&h,P=s.useRef(!1),M=$=>{P.current=$.target===$.currentTarget},L=$=>{const E=P.current;P.current=!1,E&&$.target===$.currentTarget&&O()},z=t.jsx("div",{className:`popup ${v?"popup--inline":""} ${x==="belowPagePopup"?"popup--below-page-popup":""} ${w?"popup--closing":""} ${C}`,onPointerDown:q?M:void 0,onClick:q?L:void 0,onMouseDown:v?void 0:$=>{$.target===$.currentTarget&&$.preventDefault()},children:t.jsxs("div",{ref:k,className:`popup-panel${b?` popup-panel--${b}`:""}${_!=null?" popup-panel--has-height":""}${g?" 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?B: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(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:O,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:B,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(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:O,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:V,tabIndex:H?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:R,closeWithAnimation:O}):i})}),l?.length?t.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map(($,E)=>t.jsx(ce,{htmlType:"button",size:48,variant:$.variant??"default",label:$.label,disabled:$.disabled,onClick:()=>$.onClick?.({animateThen:R,closeWithAnimation:O})},E))}):c?t.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:R,closeWithAnimation:O}):c}):null]})});return v||typeof document>"u"?z:qt.createPortal(z,document.body)}function Oa(e){return String(e)}const wl=["o","triangle","x"];function kl(e,n){return e===n?null:n}const Al={o:"circle",triangle:"triangle",x:"x"},Nl={o:"main",triangle:"warn",x:"danger"};function db(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 Gr(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function Bl(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function pb(e,n){return!n&&e>0}const Yn={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 mb(e="landscape"){const{printSize:n,printW:a,printH:r}=Yn[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 Sl(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 hb={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 fb(e,n){const a=hb[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 Cb={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},Dl={\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"},Tl={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Kr(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function jl(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 gb=280,bb=240,yb=280,vb=400,xb=120,_b=280;function El(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 Ml({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}=pe.useTranslation(),m=s.useRef(null),h=s.useRef(null),C=s.useRef(null),[y,f]=s.useState(1),[v,b]=s.useState(!1),[x,_]=s.useState({for:"",url:""}),[g,A]=s.useState(null),w=n&&n.length>0?n:a0()?.(e,r)??"",S=Wn()?.(e,r)??"",{imgRef:N,loading:k,failed:B,onLoad:V,onError:H}=qr(S),j=s.useCallback(()=>A(h.current?.getBoundingClientRect()??null),[]),F=s.useCallback(()=>A(null),[]),T=s.useMemo(()=>{if(!d)return null;const P=[];return d.grade&&P.push(p("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&P.push(p("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&P.push(p("wordTable.info.pos",{v:Kr(d.pos,wb(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&P.push(p("wordTable.info.wordType",{v:Kr(d.wordType,kb(p)),defaultValue:"\uC720\uD615: {{v}}"})),P.length?P:null},[d,p]),Y=w||e,R=x.for===Y?x.url:"";s.useEffect(()=>{const P=ur(),M=w||e;if(!P||!M)return;let L=!1;return Promise.resolve(P(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 O=s.useCallback(async P=>{if(P.stopPropagation(),v){C.current?.pause(),b(!1),gn=null;return}if(R){gn?.stop(),b(!0);try{const M=new Audio(R);C.current=M;const L=()=>{b(!1),gn?.audio===M&&(gn=null)};gn={audio:M,stop:()=>{M.pause(),L()}},M.onended=L,M.onerror=L,await M.play()}catch{b(!1),gn?.audio===C.current&&(gn=null)}}},[v,R]),W=i&&!!S&&!B,le=W&&o?gb:W?yb:bb,q=W&&o?vb:W?_b:xb;return s.useEffect(()=>{const P=m.current;if(!P||typeof ResizeObserver>"u")return;const M=new ResizeObserver(([L])=>{const{width:z,height:$}=L.contentRect;f(Math.min(z/le,$/q))});return M.observe(P),()=>M.disconnect()},[le,q]),t.jsxs("div",{ref:m,className:"word-table-cell",children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${y})`},children:[W&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[k&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:N,className:"word-table-cell__image",src:S,alt:e,draggable:!1,style:{opacity:k?0:1},onLoad:V,onError:H})]}),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":R,children:[t.jsx("span",{"data-play-state":"play",style:{display:v?"none":void 0},children:t.jsx(ce,{htmlType:"button",size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:O})}),t.jsx("span",{"data-play-state":"pause",style:{display:v?void 0:"none"},children:t.jsx(ce,{htmlType:"button",size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:O})})]}),d&&t.jsxs("div",{ref:h,className:"word-table-cell__info-button",onPointerEnter:j,onPointerLeave:F,onFocus:j,onBlur:F,children:[t.jsx(ce,{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:P=>P.stopPropagation()}),g&&T&&t.jsx(Rn,{anchorRect:g,items:T,showIndex:!1})]})]})}const Ll={\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"},$l={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function wb(e){return Object.fromEntries(Object.entries(Dl).map(([n,a])=>[n,Ll[n]?e(`wordTable.pos.${Ll[n]}`,{defaultValue:a}):a]))}function kb(e){return Object.fromEntries(Object.entries(Tl).map(([n,a])=>[n,$l[n]?e(`wordSearch.filter.type.${$l[n]}`,{defaultValue:a}):a]))}function Zn({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:b=!1,contentRef:x,buttonSize:_=40,pageNumber:g,pageNumberPosition:A="right",fitHeight:w=!1,scoring:S=!1,marks:N,onMarkClick:k,scoreIndexOffset:B=0}){const V=s.useCallback((se,Ce)=>{k?.(B+se,Ce)},[k,B]),H=(se,Ce)=>{const Z=N?.[Oa(B+se)]??null;return t.jsx("div",{className:ge("word-table-cell__score",Z?"word-table-cell__score--marked":""),children:wl.map(ie=>t.jsx("span",{className:ge("word-table-cell__score-slot",Z===ie?"word-table-cell__score-slot--on":""),children:t.jsx(ce,{htmlType:"button",size:_,type:"dot",icon:Al[ie],variant:Z===ie?Nl[ie]:"default",selected:Z===ie,useBorder:!1,showTooltipInfo:!1,ariaLabel:j(`wordTable.scoring.${ie}`,{word:Ce,defaultValue:`${Ce} ${ie}`}),onClick:J=>{J.stopPropagation(),V(se,ie)}})},ie))})},{t:j}=pe.useTranslation(),F=p!==void 0,T=s.useRef(null),[Y,R]=s.useState(null),{width:O,height:W}=Yn[o],{scalerRef:le,scale:q,offset:P}=El(O,w?W:void 0),M=F?p?.length??0:d?.length??0,L=Math.max(m??M,1),{cols:z,rows:$}=fb(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")},I=F?(p??[]).some(se=>se!==null&&se.length>1):(d??[]).some(se=>se.words.length>1),oe=ge("word-table-block__content",Cb[l],c&&"word-table-block__content--outline",u&&I&&"word-table-block__content--div-line"),re={transform:`scale(${1/q})`,transformOrigin:"center center"},ee=t.jsx("div",{ref:le,className:"word-table__scaler",style:{height:W*q},children:t.jsx("div",{className:ge("word-table",r),style:{width:O,height:W,transform:`scale(${q})`,transformOrigin:"top left",marginLeft:P},children:t.jsxs("div",{ref:x,className:oe,style:{gridTemplateColumns:`repeat(${z}, 1fr)`,gridTemplateRows:`repeat(${$}, 1fr)`},children:[F?t.jsx(t.Fragment,{children:(p??[]).map((se,Ce)=>t.jsx("div",{className:ge("word-table-block__edit-cell",se?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",h===Ce?"word-table-block__edit-cell--active":""),style:jl(Ce,z,$,l),children:se?t.jsxs(t.Fragment,{children:[se.map((Z,ie)=>t.jsxs(s.Fragment,{children:[ie>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Ml,{label:Z.word,subLabel:Z.pronunciation,colloquialLabel:Z.colloquialPronunciation,homonum:Z.homonum,showWord:E.word,showImage:E.image,showPronunciation:E.pron,showColloquial:E.colloq,buttonSize:_})]},ie)),S&&H(Ce,se.map(Z=>Z.word).join(" / ")),y&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ce,{htmlType:"button",size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:se.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:se.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:re,children:t.jsx(ce,{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((se,Ce)=>t.jsxs("div",{className:`word-table-block__card${v?" word-table-block__card--draggable":""}${Y===Ce?" word-table-block__card--drag-over":""}`,style:jl(Ce,z,$,l),draggable:!!v,onDragStart:v?()=>{T.current=Ce}:void 0,onDragOver:v?Z=>{Z.preventDefault(),R(Ce)}:void 0,onDragLeave:v?()=>R(null):void 0,onDrop:v?Z=>{Z.preventDefault(),T.current!==null&&T.current!==Ce&&v(T.current,Ce),T.current=null,R(null)}:void 0,onDragEnd:v?()=>{T.current=null,R(null)}:void 0,children:[se.words.map((Z,ie)=>t.jsxs(s.Fragment,{children:[ie>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(Ml,{label:Z.label,subLabel:Z.subLabel,colloquialLabel:Z.colloquialLabel,homonum:Z.homonum,showWord:E.word,showImage:E.image,showPronunciation:E.pron,showColloquial:E.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})]},ie)),S&&H(Ce,se.words.map(Z=>Z.label).join(" / ")),f&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ce,{htmlType:"button",size:_,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:se.words.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:se.words.length>1?j("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):j("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(se.id)})})]},se.id)),Array.from({length:Math.max(0,z*$-(d?.length??0))}).map((se,Ce)=>{const Z=(d?.length??0)+Ce<L;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:b&&C&&Z&&t.jsx("div",{style:re,children:t.jsx(ce,{htmlType:"button",size:_,type:"bar",icon:"plus",label:j("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C((d?.length??0)+Ce)})})},`filler-${Ce}`)})]}),g&&A!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${A}`,children:j("wordTable.filter.pageIndicator",{current:g.current,total:g.total})})]})})});return e!=null||n||a?t.jsx(Kn,{type:"page",icon:n,title:e,disc:a,className:ge("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}=pe.useTranslation(),[f,v]=s.useState(r),b=o??f,x=()=>{const g=!b;v(g),i?.(g)},_=e||n||a;return t.jsxs("div",{className:ge("filter-panel",a?"filter-panel--collapsible":"",b?"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(ce,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:b?"chevron-down":"chevron-up",ariaLabel:b?y("common.expand","\uD3BC\uCE58\uAE30"):y("common.collapse","\uC811\uAE30"),"aria-expanded":!b,onClick:x}),e&&t.jsx("span",{className:"filter-panel__title h4",children:e})]}),t.jsx("div",{className:"filter-panel__header-actions",children:!b&&n})]}),!b&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:ge("filter-panel__sections",C?"filter-panel__sections--row":""),children:c.map(g=>{const A=u[g.label],w=A===void 0||(Array.isArray(A)?A.length===0:!1),S=(g.items??[]).filter(k=>k!=null);g.allOption&&S.some(k=>(typeof k=="string"?k:k.value)===on)&&ea(`filter-panel-all-value:${g.label}`,`[FilterPanel] '${g.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${on}' \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 N=k=>{const B=typeof k=="string"?k:k.value,V=typeof k!="string"&&!!k.disabled,H=typeof k!="string"?k.labels:void 0,j=typeof k!="string"?k.displayLabel:void 0,F=typeof k!="string"?k.tooltip:void 0,T=typeof k!="string"?k.descriptionTooltip:void 0,Y=typeof k!="string"?k.shape:void 0,R=Array.isArray(A)?A.includes(B):A===B;return t.jsx(ce,{htmlType:"button",size:"keyboard",label:H??j??B,type:g.itemType??(H?"bar":B.length===1?"dot":void 0),selected:R,disabled:V,shape:Y,showTooltipInfo:!!F,tooltipInfoText:F,tooltipDescription:T,onClick:()=>d?.(B,g.label)},B)};return t.jsxs(s.Fragment,{children:[g.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:g.groupLabel}),g.groupAction]}),t.jsxs("div",{className:ge("filter-panel__section",g.layout==="row"?"filter-panel__section--row":"",g.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:g.displayLabel??g.label}),g.labelAction??(g.labelInfo?t.jsx(ha,{...g.labelInfo}):null)]}),g.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:g.content}):g.type==="input"?t.jsx(Fn,{className:"filter-panel__textfield",placeholder:g.placeholder,ariaLabel:g.displayLabel??g.label,value:u[g.label]??"",onChange:k=>d?.(k,g.label),error:g.error}):!g.multiple&&g.display==="segmented"?t.jsx(On,{ariaLabel:g.displayLabel??g.label,options:[...g.allOption?[{key:on,label:g.allLabel??y("common.all","\uC804\uCCB4"),disabled:g.allOptionDisabled}]:[],...S.map(k=>{const B=typeof k=="string"?k:k.value,V=typeof k!="string"?k.displayLabel:void 0,H=typeof k!="string"?k.disabled:void 0;return{key:B,label:V??B,disabled:H}})],value:w&&g.allOption?on:u[g.label]??"",onChange:k=>d?.(k,g.label),size:32}):!g.multiple&&g.display==="dropdown"?t.jsx(en,{className:"filter-panel__dropdown",size:40,options:[...g.allOption?[{value:on,label:g.allLabel??y("common.all","\uC804\uCCB4"),disabled:g.allOptionDisabled}]:[],...S.map(k=>{const B=typeof k=="string"?k:k.value,V=typeof k!="string"?k.displayLabel:void 0,H=typeof k!="string"?k.disabled:void 0;return{value:B,label:V??B,disabled:H}})],value:w&&g.allOption?on:u[g.label],onChange:k=>d?.(k,g.label)}):t.jsxs("div",{className:g.groups?"filter-panel__item-groups":"filter-panel__items",children:[g.allOption&&!g.groups&&t.jsx(ce,{htmlType:"button",size:"keyboard",label:g.allLabel??y("common.all","\uC804\uCCB4"),selected:w,disabled:g.allOptionDisabled,onClick:()=>d?.(on,g.label)}),g.groups?g.groups.map((k,B)=>t.jsxs("div",{className:"filter-panel__item-group",children:[B===0&&g.allOption&&t.jsx(ce,{htmlType:"button",size:"keyboard",label:g.allLabel??y("common.all","\uC804\uCCB4"),selected:w,disabled:g.allOptionDisabled,onClick:()=>d?.(on,g.label)}),k.filter(V=>V!=null).map(N)]},B)):S.map(N)]})]})]},g.label)})}),l!=null&&l!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const Ab=[1,2,3,4,5,6,7,8,9,10,11,12],Yr=[8,4,2,1];function Rl(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 Pl(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 Il(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 Fl(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 Ol(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 Hl(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...Yr.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Vl(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 zl={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Wl(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function ql(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 Ul(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===on?(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 Nb(e){return"sections"in e}function Zr(e){const{t:n}=pe.useTranslation(),{title:a,className:r}=e;if(Nb(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,b=[Rl(n,{hasImage:o,hasColloquial:i}),Pl(n),...y,Il(n),...h?[Fl(n)]:[],...C?[Ol(n)]:[]],x={...ql(n,{contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...f},_=(g,A)=>{Ul(n,g,A,m)||v?.(g,A)};return t.jsx(bn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:b,selected:x,onSelect:_,sectionAlign:"horizontal"})}function Gl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Xr(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let Ha=null,Xn=null;function Bb(e,n,a,r="",o=""){if(e.length===0||Xn&&Xn.iframe.isConnected&&Date.now()-Xn.at<1e4)return;const i=r?Xr(r):"";Ha?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,window.removeEventListener("afterprint",l),Ha===l&&(Ha=null)},Ha=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}Xn={iframe:c,at:Date.now()},u.open(),u.write(Jr(e,n,a,!0,i,o)),u.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{c.remove(),Xn?.iframe===c&&(Xn=null)},0)})}function Jr(e,n,a,r=!1,o="",i=""){o=o?Xr(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">${Gl(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.removeProperty("opacity")),`<div class="paper-wrap">${u}${m.outerHTML}</div>`}).join(`
|
|
840
840
|
`);return`<!DOCTYPE html>
|
|
841
841
|
<html data-theme="${c}">
|
|
@@ -967,10 +967,10 @@ ${g.badge}`:g.badge:void 0;if(w&&u(g.code))return null;if(!g.badge&&!p)return m(
|
|
|
967
967
|
`:""}
|
|
968
968
|
<\/script>
|
|
969
969
|
</body>
|
|
970
|
-
</html>`}function Qr({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:o,header:i=""}){const l=s.useCallback(()=>{Bb(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(Jr(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=Jr(d,n,a,!1,r,i),m=new Blob([p],{type:"text/html;charset=utf-8"}),h=URL.createObjectURL(m),C=r&&Xr(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 Kl(e){const{t:n}=pe.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,b=e.some(H=>H.words.length>1),x=e.some(H=>H.words.some(T=>!!T.colloquialLabel)),_=Math.min(h,Math.max(v,1)),g=s.useMemo(()=>Sl(e,_),[e,_]),A=g.length>1,w=_,[S,B]=s.useState(!1);s.useEffect(()=>{let H=!1;if(!Wn()){B(!1);return}return Promise.all(e.flatMap(T=>T.words.map(F=>_s(F.label,F.homonum)))).then(T=>{H||B(T.some(Boolean))},()=>{}),()=>{H=!0}},[e]);const k=s.useMemo(()=>[Rl(n,{hasImage:S,hasColloquial:x}),Pl(n),...v>0?[Hl(n,{hasPairs:b,itemCount:v})]:[],...A?[Vl(n)]:[],Il(n),...w>1?[Fl(n)]:[],...b?[Ol(n)]:[]],[n,S,x,v,b,A,w]),N={...ql(n,{contentTypes:o,orientation:a,showOutline:u,cutLine:l,showDivLine:p}),...v>0?{[n(b?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${_}\uAC1C`}:{},...A?{[n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:zl[y]}:{}},V=s.useCallback((H,T)=>{if(!Ul(n,H,T,{setContentTypes:i,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:m}))if(T===n("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||T===n("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")){const F=parseInt(H);C(Yr.includes(F)?F:Number.POSITIVE_INFINITY)}else T===n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&f(Wl(H))},[n]);return{settings:{orientation:a,contentTypes:o,cutLine:l,showOutline:u,showDivLine:p,count:w},filterSections:k,filterSelected:N,handleSelect:V,pages:g,isPaginated:A,pageNumberPosition:y}}function Sb({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:b}){const{t:x}=pe.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:g,filterSections:A,filterSelected:w,handleSelect:S,pages:B,isPaginated:k,pageNumberPosition:N}=Kl(_),V=s.useMemo(()=>Bl(B.map(ee=>ee.length)),[B]),[H,T]=s.useState({}),F=s.useCallback((ee,ie)=>{T(Ce=>({...Ce,[Oa(ee)]:kl(Ce[Oa(ee)]??null,ie)}))},[]),j=s.useRef(f);s.useEffect(()=>{j.current=f});const Z=s.useRef(!0);s.useEffect(()=>{if(Z.current){Z.current=!1;return}j.current?.(Gr(H))},[H]);const R=s.useMemo(()=>Gr(H),[H]),I=s.useRef(null),{toastMessage:q,toastKey:ae,showWarning:U,clearToast:P}=wi("warning"),M=s.useRef([]),$=s.useCallback(()=>k?M.current.filter(ee=>ee!==null):I.current?[I.current]:[],[k]),{print:z,openNewWindow:L}=Qr({getElements:$,paperW:Yn[g.orientation].width,paperH:Yn[g.orientation].height,fileName:d??"",header:v??"",onPopupBlocked:()=>U(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:L}):d?[{label:x("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>L()},{label:x("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>z()},...i??[]]:i,[c,l,d,i,x,z,L]),O=s.useMemo(()=>c?c({print:z,openNewWindow:L}):void 0,[c,z,L]),se=s.useRef(!1),oe=s.useRef(z);return s.useEffect(()=>{oe.current=z},[z]),s.useEffect(()=>{if(!m||se.current)return;const ee=window.setTimeout(()=>{se.current=!0,oe.current()},100);return()=>window.clearTimeout(ee)},[m]),t.jsxs(Nn,{title:a??x("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:ge("word-table-popup",h),buttons:E,footer:O,footerClassName:u,beforeClose:b,onClose:C,children:[_.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[p&&t.jsx(Zr,{sections:A,selected:w,onSelect:S}),k?t.jsx("div",{className:"word-table-popup__pages",children:B.map((ee,ie)=>t.jsx(Zn,{items:ee,orientation:g.orientation,contentTypes:g.contentTypes,cutLine:g.cutLine,showOutline:g.showOutline,showDivLine:g.showDivLine,count:g.count,contentRef:Ce=>{M.current[ie]=Ce},pageNumber:{current:ie+1,total:B.length},pageNumberPosition:N,scoring:y,scoreIndexOffset:V[ie],marks:R,onMarkClick:F},ie))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(Zn,{items:_,orientation:g.orientation,contentTypes:g.contentTypes,cutLine:g.cutLine,showOutline:g.showOutline,showDivLine:g.showDivLine,count:g.count,contentRef:I,fitHeight:!0,scoring:y,marks:R,onMarkClick:F})})]}):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(Gn,{message:q,position:"top",onClose:P},ae)]})}const Db=new Set(["x","triangle"]);function Tb(e,n){const a=[];for(let r=0;r<e.length;r++){const o=n[String(r)];o&&Db.has(o)&&a.push(e[r])}return a}function jb(e,n){const[,a,r]=br(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 Eb(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 Mb(e){return e.map(n=>n.label).join(" / ")}function Lb(e,n,a){const r=Es(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}const $b=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Va(e,n){return $b().compare(e,n)}const Rb=/^-?\d+(\.\d+)?$/,Pb=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko",{numeric:!0})),e)})();function Ib(e,n){const a=c=>typeof c=="number"&&!Number.isNaN(c)?c:typeof c=="string"&&Rb.test(c.trim())?Number(c):null,r=a(e),o=a(n);if(r!==null&&o!==null)return r-o;const i=e==null?"":String(e),l=n==null?"":String(n);return/\d\.\d|-\d|(^|\D)0\d/.test(i)||/\d\.\d|-\d|(^|\D)0\d/.test(l)?Va(i,l):Pb().compare(i,l)}function Yl(e,n,a){return a===0?0:(e+n*.5)/a}function Fb(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:Yl(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((o,i)=>o.rate-i.rate||i.tried-o.tried||Va(o.label,i.label)),r}function Ob(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 Yl(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 Hb(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function Vb(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||Va(l.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function zb(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function Wb(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 eo=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function qb(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=>eo.includes(i.trainingType)).sort(r),word:o.filter(i=>!eo.includes(i.trainingType)).sort(r),noSet:a}}function Ub(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||Va(i.name,l.name)),o.slice(0,Math.max(0,a))}function Gb(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function Kb(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 to(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,o)=>String(a[o]))}function Yb(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?to(Lt.t("customers.duration.minSec",{m:r,s:o,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s:o}):r>0?to(Lt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):to(Lt.t("customers.duration.sec",{s:o,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s:o})}function Zb(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 Xb(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function Jb(e,n){return e.filter(a=>a.key!==n)}function Qb(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 ey(e){return e.map(n=>n.value)}function ty(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(We,{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 ny(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(ty,{category:C,isSelected:u===C.key,onClick:()=>h(C.key)},C.key))})}function ay({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(ce,{htmlType:"button",size:o,type:"bar",label:i.label,selected:n===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function ry({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",o=a?.tel??"031-380-3724",{t:i}=pe.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 Qr({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:o,header:i=""}){const l=s.useCallback(()=>{Bb(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(Jr(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=Jr(d,n,a,!1,r,i),m=new Blob([p],{type:"text/html;charset=utf-8"}),h=URL.createObjectURL(m),C=r&&Xr(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 Kl(e){const{t:n}=pe.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,b=e.some(H=>H.words.length>1),x=e.some(H=>H.words.some(j=>!!j.colloquialLabel)),_=Math.min(h,Math.max(v,1)),g=s.useMemo(()=>Sl(e,_),[e,_]),A=g.length>1,w=_,[S,N]=s.useState(!1);s.useEffect(()=>{let H=!1;if(!Wn()){N(!1);return}return Promise.all(e.flatMap(j=>j.words.map(F=>_s(F.label,F.homonum)))).then(j=>{H||N(j.some(Boolean))},()=>{}),()=>{H=!0}},[e]);const k=s.useMemo(()=>[Rl(n,{hasImage:S,hasColloquial:x}),Pl(n),...v>0?[Hl(n,{hasPairs:b,itemCount:v})]:[],...A?[Vl(n)]:[],Il(n),...w>1?[Fl(n)]:[],...b?[Ol(n)]:[]],[n,S,x,v,b,A,w]),B={...ql(n,{contentTypes:o,orientation:a,showOutline:u,cutLine:l,showDivLine:p}),...v>0?{[n(b?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${_}\uAC1C`}:{},...A?{[n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:zl[y]}:{}},V=s.useCallback((H,j)=>{if(!Ul(n,H,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 F=parseInt(H);C(Yr.includes(F)?F:Number.POSITIVE_INFINITY)}else j===n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&f(Wl(H))},[n]);return{settings:{orientation:a,contentTypes:o,cutLine:l,showOutline:u,showDivLine:p,count:w},filterSections:k,filterSelected:B,handleSelect:V,pages:g,isPaginated:A,pageNumberPosition:y}}function Sb({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:b}){const{t:x}=pe.useTranslation(),_=s.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(ee=>typeof ee=="string"&&ee.length>0).map((ee,se)=>({id:`${ee}-${se}`,words:[{label:ee}]})),[e,n]),{settings:g,filterSections:A,filterSelected:w,handleSelect:S,pages:N,isPaginated:k,pageNumberPosition:B}=Kl(_),V=s.useMemo(()=>Bl(N.map(ee=>ee.length)),[N]),[H,j]=s.useState({}),F=s.useCallback((ee,se)=>{j(Ce=>({...Ce,[Oa(ee)]:kl(Ce[Oa(ee)]??null,se)}))},[]),T=s.useRef(f);s.useEffect(()=>{T.current=f});const Y=s.useRef(!0);s.useEffect(()=>{if(Y.current){Y.current=!1;return}T.current?.(Gr(H))},[H]);const R=s.useMemo(()=>Gr(H),[H]),O=s.useRef(null),{toastMessage:W,toastKey:le,showWarning:q,clearToast:P}=wi("warning"),M=s.useRef([]),L=s.useCallback(()=>k?M.current.filter(ee=>ee!==null):O.current?[O.current]:[],[k]),{print:z,openNewWindow:$}=Qr({getElements:L,paperW:Yn[g.orientation].width,paperH:Yn[g.orientation].height,fileName:d??"",header:v??"",onPopupBlocked:()=>q(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:$}):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,$]),I=s.useMemo(()=>c?c({print:z,openNewWindow:$}):void 0,[c,z,$]),oe=s.useRef(!1),re=s.useRef(z);return s.useEffect(()=>{re.current=z},[z]),s.useEffect(()=>{if(!m||oe.current)return;const ee=window.setTimeout(()=>{oe.current=!0,re.current()},100);return()=>window.clearTimeout(ee)},[m]),t.jsxs(Nn,{title:a??x("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:ge("word-table-popup",h),buttons:E,footer:I,footerClassName:u,beforeClose:b,onClose:C,children:[_.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[p&&t.jsx(Zr,{sections:A,selected:w,onSelect:S}),k?t.jsx("div",{className:"word-table-popup__pages",children:N.map((ee,se)=>t.jsx(Zn,{items:ee,orientation:g.orientation,contentTypes:g.contentTypes,cutLine:g.cutLine,showOutline:g.showOutline,showDivLine:g.showDivLine,count:g.count,contentRef:Ce=>{M.current[se]=Ce},pageNumber:{current:se+1,total:N.length},pageNumberPosition:B,scoring:y,scoreIndexOffset:V[se],marks:R,onMarkClick:F},se))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(Zn,{items:_,orientation:g.orientation,contentTypes:g.contentTypes,cutLine:g.cutLine,showOutline:g.showOutline,showDivLine:g.showDivLine,count:g.count,contentRef:O,fitHeight:!0,scoring:y,marks:R,onMarkClick:F})})]}):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(Gn,{message:W,position:"top",onClose:P},le)]})}const Db=new Set(["x","triangle"]);function Tb(e,n){const a=[];for(let r=0;r<e.length;r++){const o=n[String(r)];o&&Db.has(o)&&a.push(e[r])}return a}function jb(e,n){const[,a,r]=br(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 Eb(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 Mb(e){return e.map(n=>n.label).join(" / ")}function Lb(e,n,a){const r=Es(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}const $b=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Va(e,n){return $b().compare(e,n)}const Rb=/^-?\d+(\.\d+)?$/,Pb=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko",{numeric:!0})),e)})();function Ib(e,n){const a=c=>typeof c=="number"&&!Number.isNaN(c)?c:typeof c=="string"&&Rb.test(c.trim())?Number(c):null,r=a(e),o=a(n);if(r!==null&&o!==null)return r-o;const i=e==null?"":String(e),l=n==null?"":String(n);return/\d\.\d|-\d|(^|\D)0\d/.test(i)||/\d\.\d|-\d|(^|\D)0\d/.test(l)?Va(i,l):Pb().compare(i,l)}function Yl(e,n,a){return a===0?0:(e+n*.5)/a}function Fb(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:Yl(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((o,i)=>o.rate-i.rate||i.tried-o.tried||Va(o.label,i.label)),r}function Ob(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 Yl(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 Hb(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function Vb(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||Va(l.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function zb(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function Wb(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 eo=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function qb(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=>eo.includes(i.trainingType)).sort(r),word:o.filter(i=>!eo.includes(i.trainingType)).sort(r),noSet:a}}function Ub(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||Va(i.name,l.name)),o.slice(0,Math.max(0,a))}function Gb(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function Kb(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 to(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,o)=>String(a[o]))}function Yb(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?to(Lt.t("customers.duration.minSec",{m:r,s:o,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s:o}):r>0?to(Lt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):to(Lt.t("customers.duration.sec",{s:o,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s:o})}function Zb(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 Xb(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function Jb(e,n){return e.filter(a=>a.key!==n)}function Qb(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 ey(e){return e.map(n=>n.value)}function ty(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(We,{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 ny(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(ty,{category:C,isSelected:u===C.key,onClick:()=>h(C.key)},C.key))})}function ay({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(ce,{htmlType:"button",size:o,type:"bar",label:i.label,selected:n===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function ry({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",o=a?.tel??"031-380-3724",{t:i}=pe.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:Tr,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 oy({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:o,className:i,containerClassName:l,renderLink:c,menuLabel:u}){const{t:d}=pe.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();s.useEffect(()=>{if(!m)return;const v=$n(()=>h(!1)),b=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,x=_=>{_.matches&&h(!1)};return b&&(b.matches&&h(!1),b.addEventListener?.("change",x)),()=>{v(),b?.removeEventListener?.("change",x)}},[m]);const y=l?`${l} landing-header__inner`:"landing-header__inner",f=(v,b)=>c?c(v,{onClick:b}):t.jsx("a",{href:v.href,onClick:b,"aria-current":v.current?"page":void 0,children:v.label});return t.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[t.jsxs("div",{className:y,children:[e!=null&&(()=>{const v=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:v}):t.jsx("div",{className:"landing-header__brand",children:v})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map(v=>t.jsx("span",{children:f(v)},v.href))}),t.jsxs("div",{className:"landing-header__actions",children:[o,r.length>0&&t.jsx("button",{type:"button",onClick:()=>h(v=>!v),"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(v=>t.jsx("span",{className:"landing-header__drawer-item",children:f(v,()=>h(!1))},v.href))})})]})}function sy({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,...yl(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const Jn=9,iy=e=>Math.round(Math.min(Jn,Math.max(0,e))/Jn*100),ly=e=>e/100*Jn,za=2,Zl=.1,Xl=e=>Math.min(za,Math.max(0,e)),cy=e=>Math.round(e*10)/10;function ba(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return Xl(n);const a=Math.min(Jn,Math.max(0,Number(e.level)||0))/Jn,r=Number(e.mainVolume);return r>0?cy(Xl(a/r)):1}const Jl=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Ql(e){return Jl(e)}function no(e){return Jl(e)*ba(e)}function ao(e,n=Cs()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,no(e)/a)}function ya(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=ba({level:a.level,mainVolume:a.mainVolume})),a}const va={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},ro=s.createContext(null);function Wa(){return s.useContext(ro)}const oo=e=>`${Qh()}/${e}`,ec=e=>Array.from({length:10},(n,a)=>oo(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),qa={get defaultNoise(){return oo("noise1.mp3")},get street(){return ec("noise2")},get restaurant(){return ec("noise3")},get buzz(){return oo("noise4.mp3")}};function uy(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return qa.defaultNoise;case"street":return qa.street[n];case"restaurant":return qa.restaurant[n];case"buzz":return qa.buzz;default:return null}}function dy({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((x,_=250)=>{const g=o.current;if(!g)return;const A=u.current;if(A){u.current=null;try{g.pause()}catch{}g.src=A,g.load()}if(!g.src)return;m.current+=1,C();try{mr(),ka(g).then(k=>{if(o.current===g)try{r.current?.("noise",k)}catch{}})}catch{}const w=g.paused?0:Aa(g);g.paused&&_n(g,0),g.play().catch(()=>{});const S=performance.now(),B=()=>{const k=Math.min(1,(performance.now()-S)/_);try{_n(g,w+(x-w)*k)}catch{}k<1?p.current=requestAnimationFrame(B):p.current=null};p.current=requestAnimationFrame(B)},[C]),f=s.useCallback((x=250,_)=>{const g=o.current;if(!g||g.paused){_?.();return}const A=++m.current;C();const w=performance.now(),S=Aa(g),B=()=>{const k=Math.min(1,(performance.now()-w)/x);try{_n(g,S*(1-k))}catch{}if(k<1)p.current=requestAnimationFrame(B);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{g.pause()}catch{}_?.()}};p.current=requestAnimationFrame(B),h.current=setTimeout(()=>{if(h.current=null,m.current===A){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{g.paused||(_n(g,0),g.pause(),_?.())}catch{}}},x+150)},[C]);s.useEffect(()=>{const x=document.createElement("audio");return x.loop=!0,x.crossOrigin="anonymous",o.current=x,()=>{C();try{x.pause(),x.src=""}catch{}o.current=null,c.current=null,u.current=null}},[C]);const v=e?ao(e.settings):0,b=!!e?.settings.enabled&&v>0;return s.useEffect(()=>{if(!b)return;let x=0;const _=setInterval(()=>{const g=o.current;if(!g||g.paused){x=0;return}const A=n.current;if(A&&!A.paused&&!A.ended||a.current==="playing"){x=0;return}x+=1,x>=2&&(x=0,f())},400);return()=>clearInterval(_)},[f,b,n,a]),s.useEffect(()=>{const x=()=>{if(!document.hidden)return;const _=o.current;if(_&&!_.paused){C();try{_.pause()}catch{}}};return document.addEventListener("visibilitychange",x),()=>document.removeEventListener("visibilitychange",x)},[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]),s.useEffect(()=>{const x=e?.settings,_=o.current;if(!_)return;const g=x?ao(x):0;if(!x||!x.enabled||g===0){f();return}if(c.current!==x.type){const A=uy(x.type);A&&(c.current=x.type,l(A),u.current=A,f(150,()=>{if(u.current!==A)return;u.current=null,_.src=A,_.load();const w=n.current;w&&!w.paused&&_.addEventListener("canplay",function S(){_.removeEventListener("canplay",S);const B=n.current;B&&!B.paused&&!B.ended&&y(g)})}))}else{const A=n.current,w=!!A&&!A.paused&&!A.ended;if(w&&_.paused&&_.src)y(g);else if(!_.paused)if(!w)f();else{C();const S=Aa(_),B=performance.now(),k=()=>{const N=Math.min(1,(performance.now()-B)/150);try{_n(_,S+(g-S)*N)}catch{}N<1?p.current=requestAnimationFrame(k):p.current=null};p.current=requestAnimationFrame(k)}}},[e?.settings,e?.settings.enabled,v,e?.settings.type,C,y,f,n]),s.useEffect(()=>{const x=o.current;if(x)try{x.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 py({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),b=s.useRef(!1);s.useEffect(()=>()=>{v.current++;try{if(f.current&&(cancelAnimationFrame(f.current),f.current=null),b.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}b.current=!1}}catch{}},[]);const x=(A,w=1)=>{try{const S=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(S*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,S=++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 V=p.current;V?.enabled&&(V?.volume??0)>0&&u(V.volume);const H=()=>{try{const T=C.current||performance.now(),F=performance.now()-T,j=y.current||1200,Z=Math.min(1,F/j);try{r.current&&(r.current.style.left=`${Z*100}%`),o.current&&o.current.style.setProperty("--progress",String(Z))}catch{}Z<1&&(f.current=requestAnimationFrame(H))}catch{}};N.onend=()=>{if(S===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(H)}catch{}};try{b.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]),g=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:g}}async function my(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 tc(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const o=await r.arrayBuffer();return await my(o,n,a)}catch(r){try{const o=Ns(r)}catch{}return null}}const nc=45,hy=74,fy=2;function xa(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function so(e){return xa(e)/45}const ac=4;function Cy(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,b]=s.useState(!1),[x,_]=s.useState(null),[g,A]=s.useState(2),[w,S]=s.useState(0),[B,k]=s.useState(null),[N,V]=s.useState(!1),H=3,T=3,F=1,j=300,Z=s.useRef(0),R=s.useCallback(async(oe,ee)=>{const ie=++Z.current,Ce=()=>Z.current===ie;try{if(b(!1),!oe){Ce()&&f(null);return}let Y=ee;if(!Y)try{for(let te=0;te<4&&!(h.current||C.current);te++)await new Promise(_e=>requestAnimationFrame(_e));await new Promise(te=>requestAnimationFrame(te));const J=h.current,be=C&&C.current?C.current:J?J.closest(".audio-player__wave"):null,ve=be?be.getBoundingClientRect():J?J.getBoundingClientRect():null,Te=ve?Math.max(100,ve.width):320,de=ve?ve.height:0;de>0&&S(de),Y=Math.max(F,Math.min(j,Math.floor((Te+T)/(H+T))));const ye=Y*H,we=Math.max(0,Y-1),Q=we>0?(Te-ye)/we:T;A(Math.max(0,Q))}catch{Y=120}const le=await tc(oe,Y);if(!Ce())return;if(!le){f(null),b(!1);return}f(le),_(Y),b(!0)}catch{if(!Ce())return;f(null),b(!1)}},[b,f,S,A,_]);s.useEffect(()=>{const oe=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;R(typeof oe=="string"?oe:void 0).catch(()=>{}),V(!1)},[n,a,R]),s.useEffect(()=>{let oe=!1;if(!i||!x){k(null);return}const ee=u>0?u*(c||1):void 0;return tc(i,x,ee).then(ie=>{oe||k(ie)}).catch(()=>{oe||k(null)}),()=>{oe=!0}},[i,x,u,c]);const I=Math.max(0,Math.min(1,d)),q=s.useMemo(()=>y&&y.length&&Math.max(...y)||1,[y]),ae=x||40,U=s.useMemo(()=>Array.from({length:ae}).map((oe,ee)=>{const ie=y&&y[ee]!=null?y[ee]:null,Ce=ie==null?null:Math.min(1,ie/q*I),Y=Ce!=null&&w>0&&xa(Ce)<=ac,le=Ce==null?.15:Y?0:so(Ce),J=ae>1?ee/(ae-1):0;return t.jsx("div",{className:Y?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":le,"--i":ee,"--mix":J}},ee)}),[ae,y,q,I,w]),P={"--progress":String(Math.max(0,Math.min(1,r)))},M=i?Math.max(1,l):1,$={"--bar-gap":`${g}px`,"--wave-h":`${xa(M)}px`,"--wave-h1":`${nc}px`},z=I*Math.max(0,l)/Cs(),L=v&&(i?!!B:!0);s.useEffect(()=>{L&&V(!0)},[L]);const E=N?v:L;s.useEffect(()=>{p?.(E)},[E,p]);const O=x||40,se=s.useMemo(()=>Array.from({length:O}).map((oe,ee)=>{const ie=B&&B[ee]!=null?B[ee]:null,Ce=ie==null?0:ie/q*z,Y=w>0&&xa(Ce)<=ac,le=Y?0:so(Ce),J=O>1?ee/(O-1):0;return t.jsx("div",{className:Y?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":le,"--i":ee,"--mix":J}},ee)}),[O,B,q,z,w]);return t.jsxs("div",{className:"audio-player__wave",ref:C,style:$,children:[i&&t.jsx("div",{className:`audio-player__wave-noise ${L?"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 ${E?"is-ready":""}`,ref:h,children:U}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${E?"is-ready":""}`,ref:o,style:P,children:U})]})]})}const gy={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 io(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 by=2e3;function rc(e,n=by){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 yy({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 vy(){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 xy({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 _y({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 wy(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function ky({ended:e,completedByEnd:n}){return!!e||!!n}function Ay(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function Ny(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function By(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 Sy({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=_y({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 lo({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}=pe.useTranslation(),p=e,m=Wa(),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=vy(),b=s.useRef(null),x=s.useRef(!1),_=s.useRef(0),g=s.useRef(null),{ref:A,rect:w,show:S,hide:B}=xy();s.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[k,N]=s.useState(!1),[V,H]=s.useState("idle"),[T,F]=s.useState("stopped"),j=s.useRef("stopped");s.useEffect(()=>{j.current=T},[T]);const[Z,R]=s.useState(0),[I,q]=s.useState("active"),ae=s.useRef(!1);s.useEffect(()=>{if(I!=="playMode"||!ae.current)return;ae.current=!1;const X=typeof document<"u"?document.activeElement:null;if(X&&X!==document.body)return;const he=f.current?.querySelectorAll("button")[1];try{he?.focus()}catch{}},[I]);const[U,P]=s.useState(null),[M,$]=s.useState(null),[z,L]=s.useState(0),[E,O]=s.useState(!1),[se,oe]=s.useState(0),ee=m?.playbackRate??1,ie=m?.mainVolume??1,Ce=m?no(m.settings):0,Y=m?Ql(m.settings):ie,[le,J]=s.useState("idle"),[be,ve]=s.useState(""),[Te]=s.useState("top"),de=s.useRef(null),ye=s.useRef(0),we=s.useRef(null),{start:Q,stop:te,settleTo:_e}=Sy({audioRef:C,fillRef:y,waveProgressRef:we,sourcesRef:de,currentIndexRef:ye}),{onReadyChange:je,waitForReady:ze,markNotReady:Me}=yy({showSoundWaveForm:c,showNoiseWaveForm:u}),Oe=s.useRef(null),Re=s.useRef(o),tt=s.useRef(r),Ke=s.useRef(null),Ue=s.useRef(!1),[fe,Ge]=s.useState(!1),Ee=s.useCallback(X=>{Ue.current=X,Ge(X)},[]),$e=s.useRef(null),{activeNoiseUrl:He,noiseSettingsRef:Ye,fadeInNoise:gt,fadeOutNoise:dt}=dy({noisePlayer:m,audioRef:C,playbackStateRef:j}),{startTTS:st,stopTTS:nt}=py({ttsText:i,playbackRate:ee,mainVolume:Y,fillRef:y,waveProgressRef:we,setProgress:R,setPlaybackState:F,setStateLocal:q,fadeInNoise:gt,fadeOutNoise:dt,noiseSettingsRef:Ye,onDoneRef:tt,handleEndRef:$e});s.useEffect(()=>{Ut.current=nt});const at=X=>{Gt("tts"),st(X)},Fe=Array.isArray(n)?n.filter(Boolean):n?[n]:[],Qe=(!Fe||Fe.length===0)&&!!i,Xe=Array.isArray(U)&&U.length>0?U:Array.isArray(M)&&M.length>0?M:null,rt=Math.max(Array.isArray(Xe)?Xe.length:0,Fe.length),Pe=s.useRef(!0);s.useEffect(()=>(Pe.current=!0,()=>{Pe.current=!1}),[]);const Je=s.useRef(0),yt=()=>{Je.current+=1,_.current+=1},Ut=s.useRef(null),mt=s.useRef(null),xt=s.useRef(null),Ft=s.useRef(null);Ft.current||(Ft.current=()=>{xt.current=null;const X=C.current;if(mt.current==="audio"&&X&&!X.paused){Je.current+=1,_.current+=1;try{X.pause()}catch{}Pe.current&&F("paused")}else if(mt.current==="tts")try{Ut.current?.()}catch{}});const Gt=X=>{mt.current=X,xt.current=Vr(Ft.current)},_t=()=>{xt.current?.(),xt.current=null};s.useEffect(()=>()=>{Ft.current&&Pa(Ft.current)},[]);const lt=s.useCallback(async(X,he=3,Ae=50)=>{const Le=Je.current;for(let De=0;De<he;De++){if(!Pe.current||Le!==Je.current)return!1;try{return Gt("audio"),await X.play(),!0}catch(Ve){if((Ve instanceof Error||typeof Ve=="object"&&Ve&&"name"in Ve?Ve.name:void 0)==="AbortError"){if(Le!==Je.current)return!1;await new Promise(ft=>setTimeout(ft,Ae));continue}try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),Kt=s.useCallback(()=>{const X=C.current;if(!X)return;const he=()=>{F("playing"),q("playMode"),O(!0),Q();try{mr(),ka(X).then(Ve=>{if(Pe.current)try{h.current?.("main",Ve)}catch{}})}catch{}const De=Ye.current;De?.enabled&&(De?.volume??0)>0&>(De.volume)},Ae=()=>{ky({ended:!!X?.ended,completedByEnd:Ue.current})||(F("paused"),te(),dt())},Le=()=>{try{const De=de.current,Ve=wy(De,ye.current);if(Ve!==null){ye.current=Ve,L(Ve),O(!0);const ft=De?.[Ve]&&De[Ve].src;if(ft&&X){X.src=ft,X.load(),lt(X).catch(()=>{});return}}}catch{}F("stopped"),R(1);try{if(X)try{X.currentTime=0}catch{}}catch{}te(),O(!1),dt();try{!Re.current&&$e.current&&$e.current()}catch{}};return X.addEventListener("play",he),X.addEventListener("pause",Ae),X.addEventListener("ended",Le),()=>{try{X.removeEventListener("play",he),X.removeEventListener("pause",Ae),X.removeEventListener("ended",Le),te()}catch{}}},[gt,dt,lt,Ye,Q,te]);s.useEffect(()=>Kt(),[Kt]),s.useEffect(()=>{Re.current=o},[o]),s.useEffect(()=>{tt.current=r},[r]),s.useEffect(()=>{if(o||I!=="active")return;const X=g.current;if(!X)return;let he=null;const Ae=requestAnimationFrame(()=>{try{const Le=X.getTotalLength();if(!Le)return;const De=Le*.2;X.style.strokeDasharray=`${Le-De} ${De}`;const Ve="triFlow_"+Math.random().toString(36).slice(2);he=document.createElement("style"),he.textContent=`@keyframes ${Ve}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Le}}}`,document.head.appendChild(he),X.style.animation=`${Ve} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(Ae),he?.remove()}},[I,o]),s.useEffect(()=>{de.current=U},[U]),s.useEffect(()=>{ye.current=z},[z]),s.useEffect(()=>{const X=f.current,he=b.current;if(!X||!he)return;let Ae=null;const Le=32,De=60,Ve=()=>{try{const Nt=Array.from(X.querySelectorAll(":scope > .button"));let kt=0;Nt.forEach(dn=>{if(dn===he)return;const Za=dn.getBoundingClientRect();kt+=Za.width});const an=X.getBoundingClientRect().width,Xt=Math.max(0,Math.floor(an-kt-8)),jt=rt;if(!jt||Xt<=0){Array.from(he.children).forEach(dn=>{try{dn.style.width=""}catch{}});return}let un=Math.floor(Xt/jt);un>De&&(un=De),un<Le&&(un=Math.max(Le,Math.floor(Xt/jt))),Array.from(he.querySelectorAll(".button")).forEach(dn=>{try{dn.style.width=`${un}px`}catch{}})}catch{}},ft=requestAnimationFrame(Ve);try{Ae=new ResizeObserver(()=>{requestAnimationFrame(Ve)}),Ae.observe(X),Ae.observe(he),window.addEventListener("resize",Ve)}catch{}return()=>{try{cancelAnimationFrame(ft)}catch{}try{Ae&&(Ae.disconnect(),Ae=null)}catch{}try{window.removeEventListener("resize",Ve)}catch{}}},[U,M,rt]),s.useEffect(()=>()=>{try{Oe.current&&(clearTimeout(Oe.current),Oe.current=null),Ke.current&&(clearTimeout(Ke.current),Ke.current=null)}catch{}},[]);const Rt=(X,he)=>{P(X),oe(he),Me(),$(Ay(X)),de.current=X},yn=async(X,he)=>{Ee(!1),x.current=!1,X.src=he,X.load(),await rc(X),await ze(),N(!1),await lt(X),q("playMode"),L(0),O(!0)},Dn=async(X,he=!1)=>{const Ae=C.current;N(!0),H("measuring_duration");try{const Le=await io(X,{timeoutMs:1e4,rejectOnError:!0});Rt([{src:X,objectUrl:null,duration:Le}],Le),H("ready"),he&&Ae&&await yn(Ae,X)}finally{x.current=!1,N(!1)}},et=async(X,he=!1)=>{const Ae=C.current;N(!0),H("measuring_duration");try{const Le=await Promise.all(X.map(Ve=>io(Ve,{timeoutMs:1e4})));if(!Pe.current)return;const De=X.map((Ve,ft)=>({src:Ve,objectUrl:null,duration:Le[ft]||0}));Rt(De,Ny(De)),H("ready"),he&&Ae&&De.length>0&&await yn(Ae,De[0].src)}finally{x.current=!1,N(!1)}},Ot=async(X=!1,he=!0)=>{const Ae=C.current,Le=n?Array.isArray(n)?n:[n]:[];if(!Le||Le.length===0||!Le.some(Boolean))return!1;if(x.current)return null;x.current=!0,he&&N(!0),H("resolving");try{const De=By(n,a,ms),Ve=[];let ft=0;for(const Nt of De){let kt=Nt.src??null,an=null;if(!kt&&Nt.resolvedPath){try{H("getting_signed_url"),kt=await hs(Nt.resolvedPath)}catch{kt=null}if(!Pe.current)return!1;if(!kt)try{H("downloading");const jt=await fs(Nt.resolvedPath);if(!Pe.current)return!1;if(jt){const un=jt instanceof Blob?jt:new Blob([jt]);an=v.track(URL.createObjectURL(un)),kt=an}}catch{H("error");try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),q("active")}catch{}}}if(!kt)continue;let Xt=0;try{H("measuring_duration"),Xt=await io(kt,{timeoutMs:3e3})}catch{Xt=0}if(!Pe.current){if(an)try{URL.revokeObjectURL(an)}catch{}for(const jt of Ve)if(jt.objectUrl)try{URL.revokeObjectURL(jt.objectUrl)}catch{}return!1}ft+=Xt||0,Ve.push({...Nt,src:kt,objectUrl:an,duration:Xt})}if(Rt(Ve,ft),Ve.length>0&&X&&Ae){const Nt=Ve[0];Ee(!1);try{v.keepOnly(Ve.map(kt=>kt.objectUrl))}catch{}if(H("ready"),x.current=!1,Nt.src&&Ae)try{Ae.src=Nt.src,Ae.load(),await rc(Ae),await ze(),he&&N(!1),Ae&&await lt(Ae)}catch{he&&N(!1)}else he&&N(!1);q("playMode"),L(0),O(!0)}return Ve.length>0}finally{x.current=!1,he&&N(!1),H(De=>De==="ready"?"ready":"idle")}},wt=async()=>{const X=C.current;if(!(!X&&!Qe)){if(Qe){const he=window.speechSynthesis;if(I==="active"){const Ae=ur(),Le=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(Ae&&Le.length>0){q("load"),N(!0),H("resolving"),x.current=!0;try{const De=await Promise.all(Le.map(Ve=>Promise.resolve(Ae(Ve))));De.length>1?await et(De,!0):await Dn(De[0],!0)}catch{x.current=!1,N(!1),q("active"),at(Le[0]||void 0)}return}at(Le[0]||void 0);return}if(I==="playMode"){if(X){if(X.paused){if(Ue.current){await Ht();return}await lt(X),F("playing")}else yt(),X.pause(),F("paused");return}try{if(he&&he.paused)try{Gt("tts"),he.resume(),F("playing")}catch{}else try{he.pause(),F("paused")}catch{}}catch{}}return}if(I==="active"){if(o&&Array.isArray(de.current)&&de.current.length>0){const Ae=de.current[0];try{if(Ae.src&&X)try{X.src=Ae.src,X.load(),X&&await lt(X)}catch{}q("playMode"),L(0),O(!0);return}catch{}}q("load");let he;try{he=await Ot(!0)}catch{he=!1}if(he===!1&&Pe.current){try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}q("active")}return}if(I!=="load"&&(I==="playMode"||I==="active"))try{if(X&&X.paused){if(Ue.current){await Ht();return}X&&await lt(X),F("playing")}else X&&(yt(),X.pause(),F("paused"))}catch(he){(he instanceof Error||typeof he=="object"&&he&&"name"in he)&&he.name}}},Ht=async()=>{const X=C.current;if(X)try{const he=de.current;if(Array.isArray(he)&&he.length>1){await nn(0);return}Ee(!1);try{X.currentTime=0}catch{}X&&await lt(X),F("playing"),q("playMode")}catch{}},Vt=()=>{if(yt(),_t(),Qe){nt();return}const X=C.current;try{if(X){try{X.pause()}catch{}try{X.currentTime=0}catch{}}}catch{}dt(),F("stopped"),q("active"),R(0),O(!1)},zt=async(X,{sameSegment:he=!1}={})=>{const Ae=++_.current,Le=C.current,De=de.current?.[X]?.src;try{if(Ee(!1),L(X),O(!0),ye.current=X,!De||!Le||(he||Me(),Le.src=De,Le.load(),he||await ze(),Ae!==_.current)||(await lt(Le),Ae!==_.current))return;F("playing"),q("playMode")}catch{}},sn=async()=>{const X=de.current,he=ye.current||0;if(!X||he<=0){await Ht();return}await zt(he-1)},ln=async()=>{const X=de.current,he=ye.current||0;if(!X||he>=X.length-1){Vt();return}await zt(he+1)},Wt=()=>{if(Ue.current)return;const X=200,he=340;Ee(!0),yt(),_t();try{R(1)}catch{}_e(1);try{J("hold")}catch{}try{const Ae=C.current,Le=Qe&&!!Ae?.src;if(!Qe||Le){if(Ae){Ae.pause();try{Ae.currentTime=0}catch{}}}else nt();dt()}catch{}try{F("stopped")}catch{}if(O(!1),!Re.current)try{Ke.current&&(clearTimeout(Ke.current),Ke.current=null),Ke.current=setTimeout(()=>{try{J("out")}catch{}Ke.current=setTimeout(()=>{try{typeof tt.current=="function"&&tt.current(!0)}catch{}try{J("idle")}catch{}Ke.current=null},he)},X)}catch{}};s.useEffect(()=>{$e.current=Wt});const cn=s.useCallback(()=>ve(""),[]),nn=async X=>{(de.current||[])[X]&&await zt(X,{sameSegment:X===ye.current})},ht=T==="playing",Yt=s.useMemo(()=>{if(!M||M.length<=1)return M;const X=M[z];return X?[X]:M},[M,z]),Zt=o===!0;s.useEffect(()=>{try{const X=C.current;X&&typeof X.playbackRate=="number"&&(X.playbackRate=ee||1)}catch{}},[ee]);const Tt=s.useRef({raf:null,timer:null});s.useEffect(()=>{const X=C.current;if(!X)return;const he=Math.max(0,Math.min(1,Y)),Ae=Tt.current,Le=()=>{Ae.raf!==null&&(cancelAnimationFrame(Ae.raf),Ae.raf=null),Ae.timer!==null&&(clearTimeout(Ae.timer),Ae.timer=null)};Le();const De=Aa(X);if(X.paused||Math.abs(De-he)<.001||typeof requestAnimationFrame!="function"){try{_n(X,he)}catch{}return}const Ve=performance.now(),ft=()=>{const Nt=Math.min(1,(performance.now()-Ve)/150);try{_n(X,De+(he-De)*Nt)}catch{}Ae.raf=Nt<1?requestAnimationFrame(ft):null};return Ae.raf=requestAnimationFrame(ft),Ae.timer=setTimeout(()=>{Le();try{_n(X,he)}catch{}},200),Le},[Y]);const re=le==="hold",G=le==="out",ne=I==="playMode"&&!k&&!fe||re||G,ke=T!=="stopped"||re||G,Ne=T==="paused",Be=Math.max(0,Math.min(100,(Z||0)*100)),qe=ge("audio-player__fill",ne?"is-visible":"",ke?"is-expanded":"",Ne?"is-paused":"",G?"is-out":"");return t.jsxs("div",{className:`audio-player ${Zt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${ht?"is-playing":""} ${k?"is-loading":""} ${I!=="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.${V}`,{defaultValue:gy[V]})})]}):null,I==="active"?t.jsx("button",{className:"audio-player__button",type:"button",disabled:Zt,onClick:()=>{ae.current=Ia(),B(),wt()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:S,onMouseLeave:B,onFocus:S,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:g,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 ${I==="playMode"||ht?"is-visible":""}`,inert:!(I==="playMode"||ht)||void 0,children:[t.jsxs("div",{ref:f,className:"audio-player__buttons",children:[t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:sn,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:I!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:ht?"pause":"play",onClick:wt,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":ht,width:"60px",variant:"transparent-white",disabled:I!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Vt,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:I!=="playMode"}),rt>1?t.jsx("div",{ref:b,className:"audio-player__source-buttons",children:Array.from({length:rt}).map((X,he)=>t.jsx(ce,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(he+1),onClick:()=>{try{nn(he)}catch{}},ariaLabel:d("training.sourcePlay",{n:he+1}),variant:"transparent-white",selected:E&&z===he,disabled:I!=="playMode"||!(Array.isArray(U)&&U[he]),showTooltipInfo:!0},he))}):null,!Array.isArray(U)||U.length<=1?t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Ht,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:I!=="playMode"}):null,t.jsx(ce,{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:I!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:Wt,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:I!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:qe,ref:y,style:{left:`${Be}%`},"aria-hidden":"true"}),(c||u)&&t.jsx(Cy,{segments:Yt,progress:Z,totalDuration:se,onSegmentClick:nn,waveProgressRef:we,showSoundWaveForm:c,noiseSrc:u&&m?.settings.enabled&&Ce>0?He:null,noiseRatio:m?ba(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:ie,onReadyChange:je})]})]}),t.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!c&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(We,{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(Gn,{message:be,position:Te,onClose:cn})]})}function Ua(e){const{t:n}=pe.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}=hi({storageKey:"tooltip-fontScale"}),v=s.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),b=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"},g=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(ce,{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(ce,{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(ce,{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(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:b,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:g}):t.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:g})}function oc({state:e="disabled"}){const{t:n}=pe.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(We,{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 sc({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}=pe.useTranslation(),h=rn("(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,b]=s.useState(!1),[x,_]=s.useState(null),[g,A]=s.useState(null),w=s.useRef(i);s.useEffect(()=>{w.current=i});const S=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(()=>{b(!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)},[S]);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){b(V=>!V);return}if(v)b(!1),_(null),A(null);else{const V=f.current.getBoundingClientRect();_(V),b(!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(ce,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),o&&t.jsx("div",{ref:f,children:t.jsx(ce,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:v,onClick:k,variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),v&&t.jsx(Ua,{text:g??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:x,onClose:B,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function co(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}=pe.useTranslation(),[p,m]=s.useState(()=>co(e,n));s.useEffect(()=>{const A=co(e,n);if(A!==p){const w=setTimeout(()=>m(A),0);return()=>clearTimeout(w)}},[e,n,p]);const h=s.useCallback((...A)=>{co(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}),b=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 S=A;if(S&&typeof S.getBoundingClientRect=="function")return S.getBoundingClientRect();const B=A?.current;return B&&typeof B.getBoundingClientRect=="function"?B.getBoundingClientRect():null}catch{return null}},[]),x=s.useCallback((A,{text:w="",label:S="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:B=!1,alignX:k="center",alignY:N="top"}={})=>{const V=b(A);v({text:w,label:S,anchorRect:V,backdrop:B,alignX:k,alignY:N}),y(!0)},[b]),_=s.useCallback(()=>{y(!1),v(A=>({...A,anchorRect:null}))},[]),g=s.Children.map(i,A=>{if(s.isValidElement(A)){const w=A;if(typeof w.type=="string")return w;const S=w.props??{},B=typeof S.onDone=="function"?S.onDone:h,k=typeof S.disabled=="boolean";let N=p==="disabled";return k&&(N=!!S.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(oc,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(sc,{state:p,title:r,...o,useFaded:u}),g]}),C?t.jsx(wn,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:_,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(Ua,{text:f.text,onClose:_})}):null]})}function ic({context:e,state:n="disabled",theme:a="light"}){const{t:r}=pe.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(T=>T==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:m,canDecrease:h,fontSize:C,lineHeight:y}=hi({storageKey:"textbox_fontScale"}),[f,v]=s.useState(""),b=s.useRef(null),x=s.useRef(!1),_=s.useCallback(()=>{x.current=Ia()&&!!b.current&&b.current.contains(document.activeElement),i("active")},[]),g=s.useCallback(()=>v(""),[]),A=T=>{try{v(T)}catch{}},w=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");s.useEffect(()=>{if(n!=="disabled"){const T=setTimeout(()=>i(n),0);return()=>clearTimeout(T)}},[n]);const S=s.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[B,k]=s.useState(S);B!==S&&(k(S),i("disabled"));const N=n==="disabled"?o:n,V=N==="disabled"?"training-text-box--disabled":N==="active"?"training-text-box--active":N==="done"?"training-text-box--done":"",H=s.useMemo(()=>({fontSize:`${C}px`,lineHeight:`${y}px`}),[C,y]);return s.useEffect(()=>{if(N==="disabled"||!x.current)return;x.current=!1;const T=document.activeElement;T&&T!==document.body||b.current?.querySelector(".training-text-box__buttons button")?.focus()},[N]),t.jsxs("div",{ref:b,className:`training-text-box ${V} ${N!=="disabled"&&l==="dark"?"is-dark":""}`,children:[N==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(ce,{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:H,children:S})}),N!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":N==="disabled",children:[t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>A(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>A(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(Gn,{message:f,position:"top",onClose:g})]})}function uo({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}=pe.useTranslation(),v=r??f("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),b=typeof e=="number"?e:-1,x=typeof n!="number"?"disabled":b<n?"done":b===n?"active":"disabled",_=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,g=u?u.join("||"):"",A=d?d.join("||"):"",[w,S]=s.useState(()=>Array.isArray(_)?y?la(_):_.slice():void 0);s.useEffect(()=>{Array.isArray(_)&&_.length?S(y?la(_):_.slice()):S(void 0)},[c,g,A,y]);const[B,k]=s.useState(null),[N,V]=s.useState(()=>new Set);s.useEffect(()=>{k(null),V(new Set)},[A,c,g]);const H=s.useRef(void 0);s.useEffect(()=>{const j=H.current;typeof j=="number"&&typeof n=="number"&&typeof e=="number"&&j>=e&&n<e&&(k(null),V(new Set)),H.current=n},[n,e]);const T=s.useCallback(j=>{if(x!=="active")return;const Z=w?.[j];if(Z==null)return;const R=Z,I=x==="active"||x==="done";if(p){const q=new Set(N),ae=q.has(R);ae?q.delete(R):q.add(R),V(q),typeof l=="function"&&l({selectedValues:[...q],__ts:Date.now()}),I&&(typeof m=="number"&&m>0?q.size>=m:!ae)&&typeof i=="function"&&x==="active"&&i({selectedValues:[...q],__ts:Date.now()})}else k(R),typeof l=="function"&&l({selectedIndex:j,selectedValue:R,__ts:Date.now()}),I&&typeof i=="function"&&x==="active"&&i({selectedIndex:j,selectedValue:R,__ts:Date.now()})},[w,x,p,l,i,m,N]),F=`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:F,children:Array.isArray(w)&&w.length>0?w.map((j,Z)=>t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:()=>T(Z),ariaLabel:String(j),label:j,useLabel:!0,icon:C?C[String(j)]:void 0,variant:"default",disabled:x==="disabled",selected:p?N.has(j):B===j,useDisabledCovered:h,minWidth:0},String(j))):null})})}function po({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l,demoSelected:c}){const{t:u}=pe.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)}`,[b,x]=s.useState(v);b!==v&&(x(v),c==null&&f(null));const[_,g]=s.useState(c);Object.is(_,c)||(g(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]),S=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(ic,{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(ce,{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(ce,{htmlType:"button",size:56,type:"bar",onClick:S,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(ce,{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 mo({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}=pe.useTranslation(),v=r??f("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),b=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(lo,{soundSrc:l,ttsText:l?null:d??v,bucketPath:c,btnLabel:i||f("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:b,className:"training-step__listen-sticky",showSoundWaveForm:C,showNoiseWaveForm:y},`audio-p${h??0}-s${e}`)})}const Dy=[];function ho({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l=Dy}){const{t:c}=pe.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,$)=>({id:$,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 $=(z=>{const L=(z||[]).map((oe,ee)=>({id:ee,text:d(oe)}));if(L.length<=1)return L;const E=(oe,ee)=>{if(oe.length!==ee.length)return!1;for(let ie=0;ie<oe.length;ie++)if(oe[ie].text!==ee[ie].text)return!1;return!0};let O=la(L),se=0;for(;E(O,L)&&se<20;)O=la(L),se+=1;return O})(M);C($);try{if(typeof i=="function"){const z=$.filter((L,E)=>L.text===d(M[E])).length;i({shuffled:$,score:z,total:(M||[]).length,initial:!0,__ts:Date.now()})}if(typeof o=="function"&&y==="active"){const z=$.filter((L,E)=>L.text===d(M[E])).length;o({shuffled:$,score:z,total:(M||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const b=(M,$)=>{const z=[...h],L=M+$;if(L<0||L>=z.length)return;const E=z[L];z[L]=z[M],z[M]=E,Z(z);try{if(typeof o=="function"&&y==="active"){const O=z.filter((se,oe)=>se.text===d(p[oe])).length;o({shuffled:z,score:O,total:(p||[]).length,__ts:Date.now()})}}catch{}},[x,_]=s.useState(null),g=s.useRef(null),A=s.useRef(null),w=s.useRef(null),S=s.useRef(null),B=s.useRef(null),k=s.useRef({x:0,y:0}),N=s.useRef(null),V=s.useRef({dx:0,dy:0}),H=()=>{if(N.current!==null)return;const M=()=>{if(!g.current){N.current=null;return}N.current=requestAnimationFrame(M);const $=k.current,z=V.current||{dx:0,dy:0};g.current&&(g.current.style.transform=`translate3d(${$.x-z.dx}px, ${$.y-z.dy}px, 0)`)};N.current=requestAnimationFrame(M)},T=s.useRef(new Map),F=s.useRef(new Map),j=()=>{const M=new Map;return T.current.forEach(($,z)=>{$&&$.getBoundingClientRect&&M.set(z,$.getBoundingClientRect())}),M},Z=M=>{const $=j();C(M);try{if(typeof i=="function"){const z=M.filter((L,E)=>L.text===d(p[E])).length;i({shuffled:M,score:z,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const z=j();M.forEach(L=>{const E=$.get(L.id),O=z.get(L.id),se=T.current.get(L.id);if(!se||!E||!O)return;const oe=E.top-O.top;oe&&(se.style.transition="none",se.style.transform=`translateY(${oe}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)}))})})},R=(M,$)=>{try{try{$.dataTransfer?.setData("text/plain",String(M))}catch{}try{$.dataTransfer&&($.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),$.dataTransfer?.setDragImage(z,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(z)}catch{}})}catch{}}catch{}_(M);try{const z=h[M],L=document.createElement("div");L.className="order-list__dragging-object order-list__dragging-object--visible",L.textContent=z&&z.text?z.text:"",document.body.appendChild(L),g.current=L;const E=T.current.get(z.id);let O=$.clientX||0,se=$.clientY||0;try{if(E&&E.getBoundingClientRect){const le=E.getBoundingClientRect();O=le.left+le.width/2,se=le.top+le.height/2}}catch{}const oe=L.getBoundingClientRect(),ee=oe.width/2,ie=oe.height/2;V.current={dx:ee,dy:ie},L.style.transition="none",k.current={x:O,y:se},L.style.transform=`translate3d(${O-ee}px, ${se-ie}px, 0)`,requestAnimationFrame(()=>{try{L.style.transition=""}catch{}H()});const Ce=le=>{const J=le;k.current={x:J.clientX,y:J.clientY},H()};w.current=Ce,document.addEventListener("mousemove",Ce);const Y=le=>{const J=le;k.current={x:J.clientX,y:J.clientY},H()};A.current=Y,document.addEventListener("dragover",Y);try{$.dataTransfer?.setData("text/plain",String(M));try{$.dataTransfer?.setData("application/json",JSON.stringify({idx:M}))}catch{}}catch{}}catch{}},I=(M,$)=>{$.preventDefault();try{$.dataTransfer&&($.dataTransfer.dropEffect="move")}catch{}try{B.current!==null&&(clearTimeout(B.current),B.current=null);const z=$.currentTarget&&$.currentTarget.closest?$.currentTarget.closest(".order-list__item"):null;if(z&&S.current!==z){if(S.current)try{S.current.classList.remove("drag-over")}catch{}try{z.classList.add("drag-over")}catch{}S.current=z}}catch{}},q=(M,$)=>{$.preventDefault();const z=$.dataTransfer?.getData("text/plain")||"",L=z?parseInt(z,10):x,E=M;if(typeof L!="number"||isNaN(L)||L===E){_(null),P(),ae();return}const O=A0(h,L,E);Z(O),_(null),ae();try{if(typeof o=="function"&&y==="active"){const se=O.filter((oe,ee)=>oe.text===d(p[ee])).length;o({shuffled:O,score:se,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const se=document.querySelectorAll(".order-list .order-list__item")[E];if(!se)return;const oe=se.querySelector(".order-list__slot")||se;try{oe.classList.add("pulse"),oe.offsetHeight,oe.classList.add("to-dark");const ee=()=>{oe.classList.remove("pulse","to-dark"),oe.removeEventListener("transitionend",ee)};oe.addEventListener("transitionend",ee)}catch{}})}catch{}P()},ae=()=>{if(g.current){try{document.body.removeChild(g.current)}catch{}g.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)},U=()=>{_(null),P(),ae()};s.useEffect(()=>()=>ae(),[]);const P=()=>{try{if(B.current!==null&&(clearTimeout(B.current),B.current=null),S.current){try{S.current.classList.remove("drag-over")}catch{}S.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(($,z)=>{const L=F.current.get($.id);if(!L)return;let E=50;M>1&&(E=Math.round(z/(M-1)*100));try{L.style.setProperty("--marker-pos",E+"%")}catch{}})}catch{}},[h]),s.useEffect(()=>()=>{ae(),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,$)=>{const z=Math.max(1,(h||[]).length),L=z>1?Math.round($/(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":L+"%"},ref:E=>{const O=F.current;E?O.set(M.id,E):O.delete(M.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:$+1})}):null,t.jsxs("div",{ref:E=>{const O=T.current;E?O.set(M.id,E):O.delete(M.id)},className:`order-list__draggable ${x===$?"dragging":""}`,"data-disabled":y==="disabled","aria-disabled":y==="disabled",tabIndex:y==="disabled"?-1:0,draggable:f,onDragStart:f?E=>R($,E):void 0,onDragEnter:f?E=>I($,E):void 0,onDragOver:f?E=>I($,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[$]&&(E[$].classList.remove("drag-over"),S.current===E[$]&&(S.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?E=>q($,E):void 0,onDragEnd:f?U: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(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>b($,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:$===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>b($,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:$===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},M.id)})})})}const Ty=8e3;function jy(e,n){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.then(o,o),setTimeout(o,n)})}function lc({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}=pe.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,b=typeof n!="number"?"disabled":v<n?"done":v===n?"active":"disabled",[x,_]=s.useState(null),g=s.useRef([]),[A,w]=s.useState(!1),S=s.useRef(!0);s.useEffect(()=>(S.current=!0,()=>{S.current=!1}),[]);const B=s.useMemo(()=>C.map(T=>T?.id??T?.word??"").join("|"),[C]);s.useEffect(()=>{_(null)},[B]);const k=s.useRef(void 0);s.useEffect(()=>{const T=k.current;typeof T=="number"&&typeof n=="number"&&typeof e=="number"&&T>=e&&n<e&&_(null),k.current=n},[n,e]);const N=s.useCallback((T,F)=>{if(c)return;const j={item:T,index:F,__ts:Date.now()};try{typeof i=="function"&&i(j)}catch{}if(b==="active"&&typeof o=="function")try{o(j)}catch{}},[c,i,b,o]),V=s.useCallback(async()=>{if(!(A||b==="disabled")){w(!0);try{for(let T=0;T<f.length&&S.current;T++){const F=g.current[T];F&&await jy(F.play(),Ty)}}finally{w(!1)}}},[A,b,f.length]),H=s.useCallback((T,F)=>{if(b!=="active")return;_(F);const j={selectedValue:T.word||T.title||"",selectedIndex:F,item:T,__ts:Date.now()};try{typeof i=="function"&&i(j)}catch{}if(b==="active"&&typeof o=="function")try{o(j)}catch{}},[i,b,o]);return t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:h,onDone:o,titleProps:{usePlayAllBtn:!d&&f.length>0,onPlayAll:V,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((T,F)=>t.jsx(Ur,{ref:j=>{g.current[F]=j},item:T,disabled:b==="disabled",onPlayDone:()=>N(T,F),selectable:c,selected:c&&x===F,onSelect:c?()=>H(T,F):void 0,flipDelay:F*120,hideLabel:u,hideAudio:d},T&&T.id||F))})})}const Ey=160,My={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function Ly(e,n){const a=My[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}const cc=()=>{};function Bn(e){const n=s.useId();if(!("variant"in e)){const{label:b,sub:x,onClick:_,children:g,align:A="horizontal",icon:w}=e,S=B=>{_&&B.target===B.currentTarget&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),_())};return t.jsxs("div",{className:ge("panel-row",A==="vertical"?"panel-row--vertical":"",_?"panel-row--clickable":""),onClick:_,onKeyDown:_?S:void 0,role:_?"button":void 0,tabIndex:_?0:void 0,children:[w!=null&&t.jsx("div",{className:"panel-row__icon",children:w}),b!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:b}),x&&t.jsx("div",{className:"panel-row__sub caption-1",children:x})]}),t.jsx("div",{className:"panel-row__right",children:g})]})}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(ga,{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 b=e;h=t.jsx(el,{checked:b.checked,onChange:b.onChange,id:C})}else if(a==="segmented"){const b=e;h=t.jsx(On,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,x=b.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((_,g)=>t.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:t.jsx(en,{options:_.options,value:_.value,onChange:_.onChange,placeholder:_.placeholder,block:d,error:!!c,ariaDescribedBy:y,ariaLabel:_.ariaLabel??([r,_.placeholder].filter(Boolean).join(" ")||void 0)})},g))}):t.jsx(en,{options:b.options??[],value:b.value??"",onChange:b.onChange??cc,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 b=e;b.buttons?.length?h=t.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((x,_)=>t.jsx(ce,{htmlType:"button",size:x.btnSize??40,variant:x.btnVariant??"default",disabled:x.disabled,onClick:x.onClick,children:x.label},_))}):h=t.jsx(ce,{htmlType:"button",size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;h=t.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;h=t.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[t.jsx(Fn,{value:b.value,onChange:b.onChange??cc,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:d,error:c,ariaLabel:r,required:l}),b.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:b.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=b=>{m&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())};return t.jsxs("div",{className:ge("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 uc(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function $y({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=pe.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(ce,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${l} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>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(ut,{size:"small",variant:gl(i.device),fill:"soft",label:Ly(i.device,r)}),uc(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:uc(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 Ga({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:b,children:x}){const _=ge("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),g={};return i!==void 0&&(g.minHeight=i),l!==void 0&&(g.maxWidth=typeof l=="number"?`${l}px`:l),y!==void 0&&(g["--panel-label-width"]=typeof y=="number"?`${y}px`:y),t.jsxs("div",{className:_,style:Object.keys(g).length?g:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:ge("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(We,{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"}):b!=null&&s.Children.toArray(x).length===0?t.jsx(Bn,{variant:"empty",children:b}):u?t.jsx("div",{className:ge("panel__body--scroll",d==="stable"&&"panel__body--gutter-stable"),children:x}):x]})}function Ry({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function Py(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 dc(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"}]}Py(Lt.t.bind(Lt)),dc(Lt.t.bind(Lt));const fo="none",Iy=.5,Fy=1.5,Oy=.25;function Co({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(ml,{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 pc({anchorRect:e,onClose:n}){const{t:a}=pe.useTranslation(),r=rn("(max-width: 767px)")?40:24,o=Wa(),i=ba(o?.settings??va),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(za,Math.max(0,Math.round(f*10)/10));try{o?.setSettings({noiseRatio:v})}catch{}},[o]),y=s.useCallback(f=>{try{f===fo?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(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(Ga,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(Co,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),t.jsx(Co,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:Iy,max:Fy,step:Oy,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:fo,label:a("training.noise.type.none","\uC5C6\uC74C")},...dc(a).map(f=>({key:f.value,label:f.label}))],value:c?l:fo,onChange:y})}),t.jsx(Co,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:za,step:Zl,size:r,onChange:C})]})})}function mc({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:o=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=pe.useTranslation(),[d,p]=s.useState(!1),[m,h]=s.useState(null),[C,y]=s.useState(!1),f=s.useRef(null),v=s.useRef(null),b=Wa(),x=l<c-1,_=l===c-1,g=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]),S=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(ce,{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(ce,{htmlType:"button",size:56,type:"dot",icon:"settings",onClick:S,selected:d,ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&t.jsx(ce,{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(Fr,{analyser:b?.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(Fr,{analyser:b?.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(ce,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!g}),x&&t.jsx(ce,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!g})]}),e&&d&&t.jsx(pc,{anchorRect:m,onClose:A})]})}function hc({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}=pe.useTranslation(),y=rn("(max-width: 767px)"),f=Number.isInteger(p)?p:c||0,v=Number.isInteger(d)?d:u||0,b=m||h,x=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,g=typeof n=="string"?n.trim():n,A=!!(_||g),w=A?_||g:C("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),S=x||(_?n:void 0),B=y&&typeof S=="string"&&(S.includes(" \xB7 ")||S.includes(" / "))?S.split(/\s[·/]\s/).pop():S,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:[b?t.jsx(ce,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:C("common.back","\uB4A4\uB85C"),onClick:b,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:o?t.jsx(vl,{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(Cl,{max:Math.max(0,v??0),index:Math.max(0,f??0)})]})}function Hy(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Vy(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 fc=(e,n)=>{if(!n)return n;const a=typeof Lt?.t=="function"?Lt.t(e,{defaultValue:n}):void 0;return typeof a=="string"&&a?a:n};function Cc(e,n,a){const r=e,o=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",i=Ls().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?fc(`topic.${i.key}`,i.label):void 0,l?fc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function go(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function zy(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function Wy({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:o=[],emptyMessage:i,buildResults:l,metaPatch:c}){const u=Cc(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 qy(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function Uy(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 Gy(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 gc(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function Ky(e,n,a,r){return gc(e,n*a+r)}function Yy({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 Zy(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 bc=s.createContext(null);function Xy(){const e=s.useContext(bc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function Jy({index:e,stepIndex:n,isLast:a=!1,title:r,choices:o=[],onDone:i,onChange:l}){const{t:c}=pe.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.useMemo(()=>p.filter(b=>b!==null).length+1,[p]),f=s.useCallback(b=>{if(d!=="active")return;const x=p;let _;if(x[b]!=null){const A=x[b];_=x.map(w=>w!==null&&w>=A?null:w)}else _=[...x],_[b]=y;m(_);const g={selectedOrder:_,words:o,__ts:Date.now()};try{typeof l=="function"&&l(g)}catch{}if(x[b]==null&&_.length>0&&_.every(A=>A!==null))try{typeof i=="function"&&i(g)}catch{}},[d,p,y,l,i,o]),v=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:v,onDone:i,children:t.jsx("div",{className:"training-step__cards",children:o.map((b,x)=>t.jsx(Ur,{item:{word:b},disabled:d==="disabled",selectable:!0,selected:p[x]!==null,orderRank:p[x],onSelect:()=>f(x),flipDelay:x*120,hideLabel:!1,hideAudio:!0},`${b}-${x}`))})})}function Ka(e){return null}Ka.__isTrainingPage=!0;function Qn(e,n){const a=Xy();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 yc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l}=Qn(e,n);return t.jsx(mo,{...a,index:r,stepIndex:o,isLast:i,onDone:l})}function vc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(uo,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function xc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(po,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function _c({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(ho,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function wc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(lc,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function Qy({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(Jy,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function bo(...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 e5(e){return bo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function kc(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=bo(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 Ac(e){const{score:n,contextsLength:a,results:r=[],subtitle:o,onReplay:i,onClose:l,inline:c=!1}=e||{},{t:u}=pe.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=kc(f),b=bo(f?.wording,f?.label);return v===!0?{variant:"main",label:b??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:v===!1?{variant:"danger",label:b??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:b??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??{},b=e5(v)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:x,label:_}=d(v),g=Array.isArray(v.corrects)?v.corrects:[],A=g.length?g.join(", "):v.answer!=null&&v.answer!==""?String(v.answer):null,w=typeof v.selectedText=="string"?v.selectedText:null,S=kc(v)===!0;return{problem:b,variant:x,label:_,answer:A,selectedText:w,isCorrect:S}}),[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(ce,{htmlType:"button",size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>f(i)}),t.jsx(ce,{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(ut,{variant:f.variant,label:f.label,fill:"soft",minWidth:80})})]},v))]})})]})})}function t5(e){s.useEffect(()=>{if(!e)return;const n=new Date;return()=>{const a=new Date;a.getTime()-n.getTime()<5e3||D0({trainingType:e,startedAt:n.toISOString(),endedAt:a.toISOString()})}},[e])}function yo(e,n){return e&&e.id||`page-${n??0}`}function vo(e,n){return e&&e.key||`step-${n??0}`}function Ya(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function n5(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const Nc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),a5=e=>t.jsx(Ac,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function r5(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:b,ariaLabel:x,label:_,buildResults:g,onResult:A,typeKey:w,entryPoint:S,dailyTotal:B,itemRef:k,renderResultPopup:N,noiseOverride:V}=e;t5(w&&!Nc.has(w)?w:"");const H=s.useRef(0);s.useEffect(()=>{H.current=Date.now()},[]);const{t:T}=pe.useTranslation(),F=A,j=!!n,Z=n?.id||null,R=n?.meta||{},I=Array.isArray(n?.pages)?n.pages:[],q=Array.isArray(b)||s.isValidElement(b)&&typeof b!="function"?s.Children.toArray(b).filter(s.isValidElement):[],ae=q.length>0,U=re=>re===Ka||re?.__isTrainingPage===!0,P=ae&&q.some(re=>U(re.type)),M=P?q.filter(re=>U(re.type)).map((re,G)=>{const ne=re.props||{};return{id:`children-page-${G}`,steps:s.Children.toArray(ne.children).filter(s.isValidElement),pageTop:ne.pageTop||ne.top||null,pageBottom:ne.pageBottom||ne.bottom||null}}):[{id:"children-page-0",steps:q}],$=ae&&!j&&typeof b!="function",z=$?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 re=document.body;return re.dataset.ihabTrainingPopupCount=String(Number(re.dataset.ihabTrainingPopupCount||"0")+1),re.classList.add("ihab-training-popup-open"),()=>{const G=Number(re.dataset.ihabTrainingPopupCount||"1")-1;G>0?re.dataset.ihabTrainingPopupCount=String(G):(delete re.dataset.ihabTrainingPopupCount,re.classList.remove("ihab-training-popup-open"))}},[]),s.useEffect(()=>{if(!(typeof document>"u"||!document.body))return c4()},[]);const[L,E]=s.useState({...va,enabled:!1}),O=s.useRef(L);s.useEffect(()=>{O.current=L},[L]);const se=s.useRef(V),oe=s.useRef(!1),ee=s.useRef(null);s.useEffect(()=>{let re=!1;const G=ne=>{if(re)return;oe.current=!0;const ke=ne?ya({...va,enabled:!1},ne):{...va},Ne=ee.current;ee.current=null;const Be=Ne?ya(ke,Ne):ke;O.current=Be,E(Be),Ne&&!se.current&&Ds(Be),Sa(Be);const qe=se.current;if(qe){const X=typeof qe=="function"?qe(Be):qe,he=ya(Be,X);O.current=he,E(he),Sa(he)}};return M0().then(G),()=>{re=!0}},[]);const[ie,Ce]=s.useState(null),[Y,le]=s.useState(null),J=s.useCallback((re,G)=>{re==="main"?Ce(G):le(G)},[]),be=s.useCallback(re=>{const G=ya(O.current,re);if(O.current=G,E(G),!oe.current){ee.current={...ee.current??{},...re},Sa(G);return}se.current||Ds(G),Sa(G)},[]),ve=L.mainSpeed,Te=L.mainVolume,de=s.useCallback(re=>be({mainSpeed:re}),[be]),ye=s.useCallback(re=>be({mainVolume:re}),[be]),we=s.useMemo(()=>({settings:L,setSettings:be,registerAnalyser:J,mainAnalyser:ie,noiseAnalyser:Y,playbackRate:ve,setPlaybackRate:de,mainVolume:Te,setMainVolume:ye}),[L,be,J,ie,Y,ve,de,Te,ye]),Q=s.useRef(null),[te,_e]=s.useState(0),[je,ze]=s.useState("center"),[Me,Oe]=s.useState(!1),Re=s.useRef(!1),tt=s.useRef(null),Ke=s.useCallback(re=>{Re.current||(Re.current=!0,Oe(!0),tt.current=setTimeout(()=>{try{re()}catch{Re.current=!1,Oe(!1)}},Ey))},[]);s.useEffect(()=>()=>{tt.current&&clearTimeout(tt.current)},[]);const Ue=s.useRef(h);s.useEffect(()=>{Ue.current=h}),s.useEffect(()=>{const re=Q.current,G=document.activeElement;if(Er(re,G),re){const ne=Array.from(re.querySelectorAll(Ln)).filter(ke=>!ke.closest('[aria-hidden="true"]'))[0];if(ne)try{ne.focus()}catch{}}return()=>{const ne=document.activeElement;if(!ne||ne===document.body||re&&re.contains(ne))try{Mr(G)?.focus?.()}catch{}}},[]),s.useEffect(()=>$n(()=>Ke(()=>{const re=Ue.current;typeof re=="function"&&re()})),[Ke]),vr(Q,!0);const[fe,Ge]=s.useState(!1),Ee=s.useRef(!1),[$e,He]=s.useState(null),Ye=s.useRef(0),gt=()=>{Ye.current+=1,He(null)},[dt,st]=s.useState(""),[nt,at]=s.useState(()=>Ya()),Fe=s.useRef(typeof u=="number"?u:null);s.useEffect(()=>{!j&&!$||(at(Ya()),gt())},[j,Z,$]),s.useEffect(()=>{$&&at(re=>{const G=Math.max(0,Math.min(re.pageIndex,Math.max(0,z-1)));return G!==re.pageIndex?{...re,pageIndex:G,stepIndex:0}:re})},[$,z]);const Qe=$?Math.max(0,Math.min(nt.pageIndex,z-1)):0,Xe=$?M[Qe]:null,rt=$&&Xe&&Array.isArray(Xe.steps)?Xe.steps:[],Pe=j?nt.pageIndex:$?Qe:typeof u=="number"?u:0,Je=j?I[Math.max(0,Math.min(nt.pageIndex,Math.max(0,I.length-1)))]:null,yt=j&&Je&&Array.isArray(Je.steps)?Je.steps:[],Ut=j?yt.length:$?rt.length:typeof m=="number"?m:0,mt=j||$?Math.max(0,Math.min(nt.stepIndex,Math.max(0,Ut))):typeof p=="number"?p:0,xt=j?I.length:$?z:typeof d=="number"?d:0;s.useLayoutEffect(()=>{const re=Fe.current;if(typeof Pe=="number"&&re!==null&&Pe!==re&&Pe>re)try{st(T("training.problemNotice",{n:Pe+1}))}catch{}Fe.current=typeof Pe=="number"?Pe:Fe.current},[Pe,u,T]),s.useLayoutEffect(()=>{const re=Q.current;if(!re)return;const G=()=>re.querySelector(".page-popup__scroll");let ne=null,ke=null,Ne=null;const Be=Le=>{const De=G();if(!De)return;const Ve=De.scrollHeight<=De.clientHeight;if(ze(Ve?"center":"top"),Le&&!Ee.current){Ee.current=!0;try{Ge(!0)}catch{}try{he.disconnect()}catch{}}},qe=()=>{ne!==null&&cancelAnimationFrame(ne),ne=requestAnimationFrame(()=>{ke!==null&&clearTimeout(ke),ke=setTimeout(()=>Be(!0),60)})},X=()=>{Ne!==null&&cancelAnimationFrame(Ne),Ne=requestAnimationFrame(()=>Be(!1))};qe(),window.addEventListener("resize",X);const he=new MutationObserver(qe);he.observe(re,{childList:!0,subtree:!0,attributes:!0});const Ae=setTimeout(()=>{Ee.current||Be(!0)},400);return()=>{window.removeEventListener("resize",X),ne!==null&&cancelAnimationFrame(ne),ke!==null&&clearTimeout(ke),Ne!==null&&cancelAnimationFrame(Ne),clearTimeout(Ae);try{he.disconnect()}catch{}}},[Q]);const Ft=s.useCallback(re=>{Q.current&&(Q.current._childOnNext=re)},[]),Gt=s.useCallback(re=>{Q.current&&(Q.current._childOnResult=re)},[]),_t=s.useCallback((re,G,ne)=>{at(ke=>{const Ne=ke.answersByPage[re]||{},Be=Ne[G],qe=go(ne),X=go(Be);return Be&&X>qe?ke:{...ke,answersByPage:{...ke.answersByPage,[re]:{...Ne,[G]:ne}}}})},[at]),lt=s.useCallback((re,G,ne)=>{const ke=yo(Je,Pe),Ne=vo(re,G);_t(ke,Ne,ne)},[Je,Pe,_t]),Kt=s.useCallback((re,G,ne)=>{const ke=yo(Je,Pe),Ne=vo(re,G);_t(ke,Ne,ne),!ne?.allowChange&&re?.autoAdvance!==!1&&at(Be=>({...Be,stepIndex:Math.max(Be.stepIndex,G+1)}))},[Je,Pe,_t,at]),Rt=s.useCallback((re,G)=>{const ne=Xe?.id||`children-page-${Pe??0}`,ke=typeof G=="number"?G:mt??0,Ne=`step-${ke}`;_t(ne,Ne,re),re?.allowChange||at(Be=>({...Be,stepIndex:Math.max(Be.stepIndex,ke+1)}))},[Xe,Pe,mt,_t,at]),yn=s.useCallback((re,G)=>{const ne=Xe?.id||`children-page-${Pe??0}`,ke=`step-${typeof G=="number"?G:mt??0}`;_t(ne,ke,re)},[Xe,Pe,mt,_t]),Dn=$?{currentPageIndex:Pe??0,currentStepIndex:mt??0,totalStepsInPage:rt.length,handleStepDone:Rt,handleStepChange:yn}:null,et=async()=>{const re=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:I,flowState:nt,answersByPage:nt.answersByPage})):null;return typeof F=="function"&&await Promise.resolve(F(re))||re},Ot=async()=>{const re=Xe?.id||`children-page-${nt.pageIndex}`,G=nt.answersByPage[re]||{},ne=P?(()=>{const Be={};let qe=0;return M.forEach(X=>{const he=nt.answersByPage[X.id]||{},Ae=Array.isArray(X.steps)?X.steps.length:0;for(let Le=0;Le<Ae;Le+=1){const De=he[`step-${Le}`];typeof De<"u"&&(Be[`step-${qe+Le}`]=De)}qe+=Ae}),Be})():G;if(typeof g=="function"){const Be=await Promise.resolve(g(ne,{pageAnswers:G,answersByPage:nt.answersByPage,pages:M,currentPageId:re}));return typeof F=="function"&&await Promise.resolve(F(Be))||Be}const ke=Object.entries(G).map(([Be,qe],X)=>({index:X,key:Be,payload:qe})),Ne={results:ke,answers:ke,score:0};return typeof F=="function"&&await Promise.resolve(F(Ne))||Ne},wt=()=>{const re=++Ye.current,G=()=>re!==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(j){const Ne=et();He({});const Be=Ne;Promise.resolve(Be).then(qe=>{G()||He(qe||{isEmpty:!0})}).catch(qe=>{!G()&&He({isEmpty:!0})});return}if($){const Ne=Ot();He({});const Be=Ne;Promise.resolve(Be).then(qe=>{G()||He(qe||{isEmpty:!0})}).catch(qe=>{!G()&&He({isEmpty:!0})});return}const ne=Q.current&&Q.current._childOnResult,ke=Ne=>{try{return Ne?Ne():void 0}catch{return}};if(typeof ne=="function"){const Ne=ke(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&&typeof Ne.then!="function"?He(Ne):He(Ne&&typeof Ne.then=="function"?{}:{}),Promise.resolve(Ne).then(Be=>{Be&&!G()&&He(Be)}).catch(Be=>{});return}if(typeof F=="function"){const Ne=ke(F);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&&typeof Ne.then!="function"?He(Ne):He(Ne&&typeof Ne.then=="function"?{}:{}),Promise.resolve(Ne).then(Be=>{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{}Be&&!G()&&He(Be)}).catch(Be=>{console.error("viewResults external handler failed",Be)});return}},Ht=()=>{if(j){if(typeof Pe=="number"&&typeof xt=="number"&&Pe<xt-1){at(G=>({...G,pageIndex:G.pageIndex+1,stepIndex:0}));return}return wt()}if($){const G=rt.length;if(typeof mt=="number"&&mt<G-1){at(ne=>({...ne,stepIndex:ne.stepIndex+1}));return}if(typeof Pe=="number"&&typeof xt=="number"&&Pe<xt-1){at(ne=>({...ne,pageIndex:ne.pageIndex+1,stepIndex:0}));return}return wt()}if(typeof y=="function"){try{y()}catch{}return}const re=Q.current&&Q.current._childOnNext;if(typeof re=="function"){try{re()}catch{}return}},Vt=j?R.title||R.label||x||T("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(o)?o[o.length-1]:void 0)||x||T("common.popup","\uD31D\uC5C5"),zt=j?R.title??R.label??Vt:a??_??Vt,sn=(re,G)=>{const ne=yo(Je,Pe),ke=vo(re,G),Ne=nt.answersByPage[ne]?.[ke],Be=n5(re,{page:Je,pageIndex:Pe,step:re,stepIndex:G,storedPayload:Ne,answersByPage:nt.answersByPage,flowState:nt}),qe={key:ke,index:G,stepIndex:mt,isLast:G===yt.length-1};switch(re?.type){case"listen":return t.jsx(mo,{...qe,...Be,onDone:X=>Kt(re,G,X)});case"confirm":return t.jsx(uo,{...qe,...Be,onDone:X=>Kt(re,G,X),onChange:X=>lt(re,G,X)});case"confirmWithText":return t.jsx(po,{...qe,...Be,onDone:X=>Kt(re,G,X),onChange:X=>lt(re,G,X)});case"orderList":return t.jsx(ho,{...qe,...Be,onDone:X=>Kt(re,G,X),onChange:X=>lt(re,G,X)});default:return null}},ln=s.useRef(void 0);s.useEffect(()=>{const re=ln.current;if(ln.current=Pe,re===void 0||re===Pe||!Ia())return;const G=Q.current;if(!G)return;const ne=document.activeElement;if(!(!ne||ne===document.body||!G.contains(ne)||ne.disabled===!0))return;const ke=G.querySelector(`.training-steps ${Ln.split(", ").join(", .training-steps ")}`)??Array.from(G.querySelectorAll(Ln)).find(Ne=>!Ne.closest('[aria-hidden="true"]'));try{ke?.focus()}catch{}},[Pe]);const Wt=j?I.length>0?t.jsx("div",{className:"training-steps",children:yt.map((re,G)=>sn(re,G))},`replay-${te}`):t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||T("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,cn=$?t.jsxs(bc.Provider,{value:Dn,children:[Xe?.pageTop?t.jsx("div",{className:"training-page-top",children:Xe.pageTop}):null,t.jsx("div",{className:"training-steps",children:rt.map((re,G)=>{const ne=re;return s.cloneElement(ne,{...ne.props,_stepIndex:G,_totalSteps:rt.length,_stepKey:`step-${G}`,_pageIndex:Pe})})},`replay-${te}`),Xe?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:Xe.pageBottom}):null]}):null,nn=s.useCallback(()=>{let re;if(w){const G=$e,ne=G?.results||G?.answers||[],ke=Array.isArray(ne)&&ne.length>0?ne.length:null,Ne=Array.isArray(ne)?ne.filter(qe=>qe?.correct===!0||qe?.isCorrect===!0||qe?.score===1||qe?.heard===!0||qe?.judgement===!0).length:null,Be=ke!=null?Ne:null;T0({items:E0(ne),category:Nc.has(w)?"sentence":"word",trainingType:w,entryPoint:S??"sentence",itemRef:k??null,correct:Be,total:ke,score:typeof G?.score=="number"?G.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-H.current)/1e3)),dailyTotal:B??null}),re={correct:Be,total:ke}}gt(),Ke(()=>{typeof C=="function"&&C(re),typeof h=="function"&&h()})},[C,h,w,S,B,k,$e,He,Ke]),ht=s.useCallback(()=>st(""),[st]),Yt=s.useCallback(()=>{Ke(()=>{typeof h=="function"&&h()})},[h,Ke]),Zt=t.jsxs("div",{className:`page-popup${Me?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Vt,children:[t.jsxs("div",{ref:Q,className:`page-popup__panel ${fe?"":"page-popup__panel--measuring"} ${je==="center"?"page-popup__panel--center":je==="top"?"page-popup__panel--top":""}`,children:[t.jsx(hc,{title:zt,subtitle:j?R.subtitle||R.label:Array.isArray(o)?o.join(" / "):void 0,desc:j?void 0:r,depth:j?R.depth:o,icon:j?R.icon:i,wrapperStyle:j?R.wrapperStyle:l,iconTooltip:j?R.iconTooltip:c,progressMax:xt,progressIndex:Pe,pageIndex:Pe,pageCount:xt,onBack:Yt,onClose:Yt}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${je==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:$?cn:j?Wt:typeof b=="function"?b({registerOnNext:Ft,registerOnResult:Gt,panelRef:Q,setResultOverlay:He}):b})}),t.jsx(mc,{onSettings:f,onNext:Ht,onResult:wt,useNoiseSettingBtn:!!(j?R.useNoiseSetting??!0:v),stepIndex:mt,stepCount:Ut,pageIndex:Pe,pageCount:xt})]}),$e&&!$e.isEmpty&&(N??a5)({score:$e.score,results:$e.results||$e.answers||[],contextsLength:$e.results?$e.results.length:$e.answers?$e.answers.length:0,onReplay:()=>{if(gt(),_e(re=>re+1),j){if(at(Ya()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if($){at(Ya());return}try{const re=Q.current&&Q.current._childOnResult;typeof re=="function"&&re({replay:!0})}catch{}},onClose:nn}),$e?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":T("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:T("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(ce,{htmlType:"button",variant:"main",size:48,onClick:nn,label:T("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(Gn,{message:dt,position:"top",onClose:ht})]}),Tt=t.jsx(ro.Provider,{value:we,children:Zt});return typeof document<"u"&&document.body?qt.createPortal(Tt,document.body):Tt}const Sn=r5;Sn.Page=Ka,Sn.ListenStep=yc,Sn.ConfirmStep=vc,Sn.ConfirmWithTextStep=xc,Sn.OrderListStep=_c,Sn.CardStep=wc,Sn.CardOrderStep=Qy;function o5({label:e,homonum:n}){const a=Wn()?.(e,n)??"",{imgRef:r,loading:o,hasImage:i,onLoad:l,onError:c}=qr(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 Bc({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:qt.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(o5,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const s5=new Intl.Collator("ko");function i5({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:b,i18n:x}=pe.useTranslation(),_=x.language?.startsWith("ko")??!1,{anchorRect:g,openAt:A,close:w}=ja(),[S,B]=s.useState(null),k=s.useCallback(()=>{w(),B(null)},[w]);b2(k,!!S);const N=(r??"").trim(),V=/^[^,[\]\s]+$/.test(N)?N:"",H=V.length>0,[T,F]=s.useState(()=>H?"match":"ganada"),[j,Z]=s.useState("50"),[R,I]=s.useState(1),[q,ae]=s.useState(H);q!==H&&(ae(H),F(H?"match":"ganada"));const U=T==="match"&&!H?"ganada":T,P=s.useMemo(()=>[...H?[{value:"match",label:b("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:b("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:b("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:b("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:b("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:b("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:b("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[b,H]),M=s.useMemo(()=>["10","25","50","100"].map(de=>({value:de,label:b("wordSearch.pageSize",{count:Number(de),defaultValue:`${de}\uAC1C\uC529 \uBCF4\uAE30`})})),[b]),$=de=>de.words[0],z=s.useMemo(()=>{const de=[...V].length,ye=m0(V),we=new Map;return Q=>{let te=we.get(Q);return te===void 0&&(te=ye((Q.words[0]?.label??"").slice(0,de))?0:1,we.set(Q,te)),te}},[V]),L=s.useCallback((de,ye)=>{const we=_e=>$(_e)?.label??"",Q=_e=>$(_e)?.syllables??[...we(_e)].length,te=_e=>{const je=parseInt($(_e)?.grade??"",10);return Number.isFinite(je)?je:999};switch(U){case"match":return z(de)-z(ye)||s5.compare(we(de),we(ye));case"ganada":return we(de).localeCompare(we(ye),"ko");case"ganada_desc":return we(ye).localeCompare(we(de),"ko");case"syllable":return Q(de)-Q(ye)||we(de).localeCompare(we(ye),"ko");case"syllable_desc":return Q(ye)-Q(de)||we(de).localeCompare(we(ye),"ko");case"grade":return te(de)-te(ye)||we(de).localeCompare(we(ye),"ko");case"grade_desc":return te(ye)-te(de)||we(de).localeCompare(we(ye),"ko");default:return 0}},[U,z]),E=s.useMemo(()=>o.slice().sort(L),[o,L]),O=Number(j)||10,se=s.useMemo(()=>(i??[]).flatMap(de=>de.items.slice().sort(L).map(ye=>({item:ye,label:de.label}))),[i,L]),oe=i?se.length:E.length,ee=Math.max(1,Math.ceil(oe/O)),ie=Math.min(R,ee),Ce=s.useMemo(()=>E.slice((ie-1)*O,ie*O),[E,ie,O]),Y=s.useMemo(()=>{if(!i)return null;const de=se.slice((ie-1)*O,ie*O),ye=new Map;for(const{item:we,label:Q}of de)ye.has(Q)||ye.set(Q,[]),ye.get(Q).push(we);return[...ye.entries()].map(([we,Q])=>({label:we,items:Q}))},[i,se,ie,O]);s.useEffect(()=>{I(1)},[T,j,oe,r]);const le=oe>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(en,{size:40,options:P,value:U,onChange:F,ariaLabel:b("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(en,{size:40,options:M,value:j,onChange:Z,ariaLabel:b("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(Ma,{page:ie,totalPages:ee,onChange:I})]}):void 0,J=de=>{c&&c(de)},be=n!==void 0&&a?t.jsxs(t.Fragment,{children:[b("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),b("wordSearch.resultTitleSuffix",{unit:_?_0(a):a})]}):void 0,ve=n!==void 0&&n>0&&u!==void 0&&a?b("wordSearch.resultDisc",{unit:_?k0(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}),ve?t.jsx("span",{className:"word-search-result-block__disc",children:ve}):null]}):ve);return t.jsxs(Kn,{type:y,icon:e,title:be,action:le,disc:Te,className:ge("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:b("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?(Y??[]).map(de=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:de.items.map(ye=>{const we=l.includes(ye.id);return t.jsx("div",{onMouseEnter:Q=>{A(Q.currentTarget),B(ye.words)},onMouseLeave:k,children:t.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:ye.words.map(Q=>Q.label),subLabel:ye.words.map(Q=>Q.subLabel).filter(Boolean).length>0?ye.words.map(Q=>Q.subLabel):void 0,selected:we,onClick:()=>J(ye.id),minWidth:200})},ye.id)})})},de.label)):t.jsx("div",{className:"word-search-result-block__items",children:Ce.map(de=>{const ye=l.includes(de.id);return t.jsx("div",{onMouseEnter:we=>{A(we.currentTarget),B(de.words)},onMouseLeave:k,children:t.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:de.words.map(we=>we.label),subLabel:de.words.map(we=>we.subLabel).filter(Boolean).length>0?de.words.map(we=>we.subLabel):void 0,selected:ye,onClick:()=>J(de.id),minWidth:200})},de.id)})}),S&&g&&t.jsx(Bc,{words:S,anchorRect:g})]}),ee>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(Ma,{page:ie,totalPages:ee,onChange:I})}),(d||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[d&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:b("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(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:b("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function l5(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 c5({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:b,searchDisabled:x=!1,searchLabel:_,searchChecking:g=!1,pairMode:A=!1,sectionType:w="page",beforeSearchContent:S,beforeContent:B,afterContent:k,hideCountControl:N=!1,ordinal:V=!1}){const{t:H}=pe.useTranslation(),T=s.useMemo(()=>H("wordPairs.infoNotes",{returnObjects:!0}),[H]),F=s.useMemo(()=>Array.from({length:o-i+1},(L,E)=>{const O=i+E;return{key:String(O),label:H("wordPairs.count",{n:O})}}),[H,o,i]),j=s.useMemo(()=>H("wordPairs.ordinals",{returnObjects:!0}),[H]),Z=s.useCallback(L=>V?H("wordPairs.phonemeOrdinalLabel",{ordinal:j[L-1]??L}):a===1?H("wordPairs.phonemeSingleLabel","\uC74C\uC808"):H("wordPairs.phonemeN",{n:L}),[V,j,a,H]),R=s.useCallback(L=>V?H("wordPairs.phonemeContrastOrdinalLabel",{ordinal:j[L-1]??L}):a===1?H("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):H("wordPairs.phonemeContrast",{n:L}),[V,j,a,H]),I=s.useCallback((L,E)=>E?t.jsxs(t.Fragment,{children:[L,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):L,[]),{anchorRect:q,toggleAt:ae,close:U}=ja(),P=s.useCallback(L=>r(Number(L)),[r]),M=rn("(max-width: 767px)"),$=s.useCallback(L=>l5(L,e).map(({label:E,value:O,displayLabel:se})=>{const oe=!!O&&O!=="\uC5C6\uC74C";return t.jsxs("span",{className:ge("phoneme-select-block__cell-jamo-part",O?"":"phoneme-select-block__cell-jamo-part--empty",oe?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${O==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:O==="\uC5C6\uC74C"?"x":O||d}),oe&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:se??E})]},E)}),[e,d]),z=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(ce,{htmlType:"button",size:40,type:M?"dot":void 0,icon:"info",label:M?void 0:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!q,onClick:L=>ae(L.currentTarget)})}),q&&t.jsx(Rn,{title:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:T,anchorRect:q,onClose:U})]});return t.jsxs(Kn,{type:w,title:m,icon:h,disc:C,action:z,className:ge("phoneme-select-block",p),children:[B,(!N||y&&!(m||C))&&t.jsxs("div",{className:"phoneme-select-block__controls",children:[!N&&t.jsx(On,{options:F,value:String(a),onChange:P,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((L,E)=>{const O=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:$(O)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Z(E+1)})]},E)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:H("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((L,E)=>{const O=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:$(O)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:R(E+1)})]},E)})})]}):n.map((L,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)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Z(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((L,E)=>{const O=n[E*2]??{};return t.jsx(bn,{title:I(Z(E+1),E===0),sections:c?c(O,E*2):l,selected:O,onSelect:u?.(E*2),align:"newline"},E)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((L,E)=>{const O=n[E*2+1]??{};return t.jsx(bn,{title:R(E+1),sections:c?c(O,E*2+1):l,selected:O,onSelect:u?.(E*2+1),align:"newline"},E)})})]}):n.map((L,E)=>t.jsx(bn,{title:I(Z(E+1),E===0),sections:c?c(L,E):l,selected:L,onSelect:u?.(E),align:"newline"},E))})}),S&&t.jsx("div",{className:"phoneme-select-block__before-search",children:S}),(f||v||g)&&(()=>{const L=n.every(E=>Object.entries(E).every(([O,se])=>!se||O==="\uC885\uC131"&&se==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:L?b:void 0,children:[f&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:H("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:L,onClick:L?void 0:f}),g?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:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):v&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:L||x,onClick:L||x?void 0:v})]})})(),k]})}function u5({title:e,sections:n,selected:a,onSelect:r,className:o}){const{t:i}=pe.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 d5({title:e,headerAction:n,sections:a,selected:r,onSelect:o,className:i}){const{t:l}=pe.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 p5({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:o,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=pe.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(ha,{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(ha,{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(ha,{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,b)=>{b===m.searchMode?a(v===m.explicit?"explicit":v===m.pick?"pick":"include"):b===m.phonemeOrder?o(v===m.orderMatch?"ordered":"unordered"):b===m.count?l(v===h(2)?2:1):b===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 m5(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:b,className:x=""}=e,{t:_}=pe.useTranslation(),g=i??_("common.search","\uAC80\uC0C9"),A=f??_("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,S]=s.useState(""),[B,k]=s.useState(c??r[0]?.key??""),[N,V]=s.useState(u),[H,T]=s.useState(String(y??C[0]??10)),[F,j]=s.useState(1);s.useEffect(()=>{j(1)},[w,H]);const Z=l!==null,R=s.useCallback((E,O)=>{if(!O)return!0;const se=O.toLowerCase();return r.some(oe=>{const ee=E[oe.key];return ee==null?!1:String(ee).toLowerCase().includes(se)})},[r]),I=l??R,q=s.useMemo(()=>{const E=Z?a.filter(O=>I(O,w)):a;return B?[...E].sort((O,se)=>{const oe=O[B]??"",ee=se[B]??"";if(oe===ee)return 0;const ie=Ib(oe,ee);return N?ie:-ie}):E},[a,w,B,N,Z,I]),ae=Math.max(1,Math.ceil(q.length/Number(H)));F>ae&&j(ae);const U=Math.min(F,ae),P=q.slice((U-1)*Number(H),U*Number(H)),M=s.useCallback(E=>{B===E?V(O=>!O):(k(E),V(!0))},[B]),$=s.useMemo(()=>{if(typeof v=="function"){const E=q.length,O=v(E);if(typeof O=="string"){const se=O.lastIndexOf(String(E));if(se>=0)return{prefix:O.slice(0,se),suffix:O.slice(se+String(E).length)}}return{label:O}}if(typeof v=="string"&&v.includes("{n}")){const[E,O]=v.split("{n}");return{prefix:E,suffix:O}}return{prefix:_("common.totalCountPrefix","\uCD1D "),suffix:_("common.totalCountSuffix","\uAC1C")}},[v,q.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]),L=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:[b,"label"in $&&t.jsx("p",{className:"toolbar__count body-1",children:$.label}),t.jsx(Lr,{count:"label"in $?void 0:{value:q.length,prefix:$.prefix,suffix:$.suffix},search:Z?{value:w,onChange:S,placeholder:g}:void 0,pageSize:{options:L,value:H,onChange:T},pagination:{page:U,total:ae,onChange:j}}),t.jsx(Hr,{size:"medium",gridTemplateColumns:o,resizable:!0,fields:z,items:P,onRowClick:m,renderRow:E=>{const O=p!=null?E.id!=null&&p.has(E.id):d!=null&&E.id===d;return r.map(se=>({content:se.render?se.render(E):E[se.key]??"",className:ge(se.className,O&&"popup-list__row--selected")}))},empty:A})]})}function h5(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:b}=e,{t:x}=pe.useTranslation(),_=s.useRef(!1),[g,A]=s.useState(!1),w=async S=>{if(_.current)return;_.current=!0;const B=typeof document<"u"?document.activeElement:null;A(!0);let k=!1;try{k=await S()}finally{k||(_.current=!1,A(!1),requestAnimationFrame(()=>{const N=document.activeElement;(!N||N===document.body)&&B?.isConnected&&B.focus()}))}};return t.jsxs(Nn,{title:n,onClose:y,closeDisabled:g,inline:f,size:v,className:ge("confirm-popup",b),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||g,onClick:async({closeWithAnimation:S})=>{await w(async()=>{await d.onClick(S);const B=d.closeOnClick??!0;return B&&S(),B})}}]:[],...u?[]:[{label:c??x("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:g,onClick:({closeWithAnimation:S})=>S()}],{label:l??x("common.confirm","\uD655\uC778"),variant:p,disabled:m||g,onClick:async({closeWithAnimation:S})=>{await w(async()=>(await h(S),C&&S(),C))}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),o&&o.length>0&&t.jsx(Ga,{children:o.map((S,B)=>t.jsx(Bn,{label:S.label,children:t.jsx("span",{className:"panel-row__text body-2",children:S.value})},B))}),t.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}function f5({onApply:e,onCancel:n}){const{t:a}=pe.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(Ns(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 C5=200;function g5(e){return e.itemId?(W0()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function b5({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:o}=pe.useTranslation(),i=s.useMemo(()=>U0(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=g5(p);return h?t.jsx(zr,{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 Sc=["var(--color-main)","var(--color-sub)"],y5=2e3;function v5(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 Dc({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,b=(x,_)=>Array.from({length:x}).map((g,A)=>{const w=6+Math.random()*12,S=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),B=Sc[Math.floor(Math.random()*Sc.length)],k=Math.random()*300,N=(360+Math.random()*260)*r*1.2,V=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,H=Math.cos(V)*N,T=Math.sin(V)*N*1.35,F=Math.random()*720-360,j=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),Z=Math.random()>.7?"50%":"3px";return{id:`${_}-${A}`,side:_,size:S,color:B,delay:k,vx:H,vy:T,angularVel:F,life:j,borderRadius:Z}});return[...b(f,"left"),...b(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 U=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(U)}const f=1200,v=performance.now(),b=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,x=Math.max(60,(window.innerHeight||800)*.05),_=U=>Math.max(40,(U||window.innerWidth)*.02),g=b?.width||window.innerWidth||375,A=b?.height||window.innerHeight||812,w=U=>{const P=[...U].sort((M,$)=>M-$);return P[Math.floor(P.length/2)]||1},S=w(l.map(U=>Math.abs(U.vy))),B=w(l.map(U=>Math.abs(U.vx))),k=Math.sqrt(2*f*(A*.72+x))/S,N=S*k/f,V=g*.5/(B*N),H=(U,P,M)=>Math.min(M,Math.max(P,U)),T=H(k,.8,2.4),F=H(V,.7,2.2),j=a>0?a/y5:1,Z=l.map(U=>({...U,life:U.life*j,vx:U.vx*F,vy:U.vy*T,startTime:v+U.delay,ended:!1})),R=b?{x:b.left-_(b.width),y:b.top+b.height+x}:{x:-_(window.innerWidth),y:window.innerHeight+x},I=b?{x:b.left+b.width+_(b.width),y:b.top+b.height+x}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+x},q=U=>{let P=!1;for(const M of Z){const $=u.current[M.id];if(!$||!$)continue;if(U<M.startTime){$.style.display="none",P=!0;continue}if(!M._inited){const Y=M.side==="left"?R.x:I.x,le=M.side==="left"?R.y:I.y;$.style.left=`${Y}px`,$.style.top=`${le}px`,$.style.transform="translate3d(0px, 0px, 0)",$.style.display="block",$.style.zIndex="100000",typeof M.color=="string"&&M.color.startsWith("var(")&&($.style.background=v5($,M.color)??"#FF0060"),M._inited=!0}const z=(U-M.startTime)/1e3;if(z<0)continue;const L=M.life/1e3;if(z>=L){$.style.opacity="0",$.style.display="none",M.ended=!0;continue}P=!0;const E=M.side==="left"?R.x:I.x,O=M.side==="left"?R.y:I.y,se=E+M.vx*z,oe=O+M.vy*z+.5*f*z*z,ee=(M.angularVel||0)*z,ie=se-E,Ce=oe-O;$.style.transform=`translate3d(${ie}px, ${Ce}px, 0) rotate(${ee}deg)`,$.style.opacity=`${Math.max(0,1-z/L)}`}P?d.current=requestAnimationFrame(q):p.current?.()};d.current=requestAnimationFrame(q);const ae=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const U=document.createElement("div");U.className="party-container",U.style.position="fixed",U.style.inset="0",U.style.pointerEvents="none",U.style.overflow="visible",U.style.zIndex="2147483647";for(const P of l){const M=document.createElement("span");M.className=`confetti confetti--${P.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=`${P.size}px`,M.style.height=`${Math.max(4,P.size*.6)}px`,M.style.background=P.color,M.style.borderRadius=P.borderRadius,M.style.transform="translate3d(0,0,0)",M.style.opacity="0",U.appendChild(M),u.current[P.id]=M}(document.body||h.current).appendChild(U),m.current=U}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(ae),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"?qt.createPortal(y,h.current||document.body):y}function x5({trigger:e=0,active:n=!1}){const a=s.useRef(0);return s.useEffect(()=>{a.current=e},[e]),t.jsx(Dc,{active:n,trigger:e})}function _5({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}=pe.useTranslation();l2(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(ce,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),t.jsx("h1",{className:"page-title__title h1",children:e}),o&&t.jsx("div",{className:"page-title__badge",children:t.jsx(ut,{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 w5(e){return e??""}const Tc=s.createContext({words:[],loading:!1});function k5(){return s.useContext(Tc)}function A5({words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return t.jsx(Tc.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function N5({items:e,actions:n,columns:a,flat:r=!1,className:o,style:i}){const l=a??e.length;return t.jsx("section",{className:ge("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 B5=(e,n)=>`${e} / ${n}`;function S5({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:o=B5,pageWidth:i,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=pe.useTranslation(),m=s.useRef(null),h=s.useRef(null),C=s.useRef(null),y=s.useRef(null),[f,v]=s.useState(null),[b,x]=s.useState(!1);s.useEffect(()=>{const T=m.current;if(!T)return;const F=()=>x(T.scrollWidth>T.clientWidth+1);if(F(),typeof ResizeObserver>"u")return;const j=new ResizeObserver(F);return j.observe(T),()=>j.disconnect()},[f]);const _=e.map(T=>`${T.id}\0${T.section??""}\0${T.group??""}`).join(""),g=f&&f.shape===_?f.pages:null,[A,w]=s.useState(0);s.useEffect(()=>{const T=y.current;if(!T||typeof ResizeObserver>"u")return;const F=new ResizeObserver(()=>w(T.offsetHeight));return F.observe(T),()=>F.disconnect()},[]),s.useLayoutEffect(()=>{const T=h.current,F=y.current;if(!T||!F)return;const j=new Map;C.current?.querySelectorAll("[data-chrome-section]").forEach(M=>{j.set(M.dataset.chromeSection??"",M.offsetHeight)});const Z=M=>F.offsetHeight-(j.get(M??"")??0),R=Array.from(T.children).map(M=>M.offsetHeight),I=[];e.forEach((M,$)=>{const z=I[I.length-1],L=z?e[z[0]]:void 0;L&&M.group!=null&&L.group===M.group?z.push($):I.push([$])});const q=[];let ae=[],U=0;const P=()=>{ae.length&&q.push(ae),ae=[],U=0};I.forEach(M=>{const $=M.reduce((L,E)=>L+R[E],0),z=Z(e[M[0]].section);ae.length&&e[ae[0]].section!==e[M[0]].section&&P(),ae.length&&U+$>z&&P(),$>z?M.forEach(L=>{ae.length&&U+R[L]>z&&P(),ae.push(L),U+=R[L]}):(M.forEach(L=>ae.push(L)),U+=$)}),P(),v({shape:_,pages:q})},[_,A]);const S=Tr,B=S,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=(T,F,j)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:j!=null&&n?.[j]||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(T,F)})]})}),V=Array.from(new Set(e.map(T=>T.section??""))),H={...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:ge("report-doc",u),style:H,tabIndex:b?0:void 0,role:b?"group":void 0,"aria-label":b?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:V.map(T=>{const F=N(1,1,T||void 0);return t.jsxs("div",{"data-chrome-section":T,children:[F.header,F.footer]},T)})}),t.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(T=>t.jsx("div",{children:T.content},T.id))})]}),g&&t.jsx("div",{className:"report-doc__pages",children:g.map((T,F)=>{const{header:j,footer:Z}=N(F+1,g.length,e[T[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[j,T.map(R=>t.jsx("div",{children:e[R].content},e[R].id)),Z]},F)})})]})}function D5({title:e,fields:n,columns:a=4,className:r,style:o}){return t.jsxs("div",{className:ge("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 T5({title:e,message:n,actionLabel:a,onAction:r,icon:o,onClose:i,className:l=""}){const{t:c}=pe.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return t.jsxs("div",{className:ge("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(Mo,{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(ce,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}function j5({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:ge("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 E5({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}=pe.useTranslation(),f=r!=null,v=ge("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(ce,{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:b=>b.stopPropagation(),children:[o&&t.jsx(en,{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 M5="speechear:saved_word_tables";function L5(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 $5(){try{const e=localStorage.getItem(M5);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(L5):[]}catch{return[]}}function R5({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:b,saveOnly:x,tableName:_,nameValue:g,onNameChange:A,descriptionValue:w,onDescriptionChange:S,namePlaceholder:B,descriptionPlaceholder:k,existingNames:N,editingName:V,onCancel:H}){const{t:T}=pe.useTranslation(),F=u??T("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),j=r===void 0,Z=!!A,[R,I]=s.useState([]),q=(g??"").trim(),ae=q||(B??"").trim(),U=(w??"").trim()||(k??"").trim(),P=(N??[]).map(G=>G.trim().toLowerCase()),M=[V?.trim().toLowerCase(),...R].filter(G=>!!G),$=[...P];for(const G of M){const ne=$.indexOf(G);ne!==-1&&$.splice(ne,1)}const z=q!==""&&$.includes(q.toLowerCase()),[L,E]=s.useState(Array(4).fill(null)),[O,se]=s.useState(4),[oe,ee]=s.useState(null),[ie,Ce]=s.useState("landscape"),[Y,le]=s.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[J,be]=s.useState("\uD45C\uC2DC"),[ve,Te]=s.useState(!0),[de,ye]=s.useState(!0),we=s.useRef(null),Q=s.useRef([]),[te,_e]=s.useState(8),[je,ze]=s.useState("right"),[Me,Oe]=s.useState(!1),[Re,tt]=s.useState(!1),{toastMessage:Ke,toastType:Ue,showWarning:fe,clearToast:Ge}=wi("warning"),Ee=s.useCallback(()=>ee(null),[ee]);C&&!j&&!h&&ea("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[$e,He]=s.useState(()=>Math.max(r?.length??1,1));s.useEffect(()=>{j||He(G=>Math.max(G,r?.length??1))},[r?.length,j]);const Ye=j?O:h?Math.max($e,r?.length??1):Math.max(r?.length??0,1),{width:gt,height:dt}=Yn[ie],st=!j&&!h,nt=r?.length??0,at=Math.min(te,Math.max(nt,1)),Fe=st?at:Ye,Qe=st?Sl(r??[],Fe):null,Xe=!!Qe&&Qe.length>1,rt=j?L.some(G=>G!==null&&G.length>1):(r??[]).some(G=>G.words.length>1),Pe=_?.trim()||`${Es(Mn())} ${rt?T("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):T("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Je=s.useCallback(()=>Xe?Q.current.filter(G=>G!==null):we.current?[we.current]:[],[Xe]),{print:yt,openNewWindow:Ut,downloadHtml:mt}=Qr({getElements:Je,paperW:gt,paperH:dt,fileName:Pe,onPopupBlocked:()=>{fe(T("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),xt=G=>{se(G),E(ne=>{const ke=Array(G).fill(null);return ne.slice(0,G).forEach((Ne,Be)=>{ke[Be]=Ne}),ke}),ee(null)},Ft=G=>{E(ne=>{const ke=[...ne];return ke[G]=null,ke}),oe===G&&ee(null)},Gt=G=>{if(oe===null)return;const ne=oe;E(Ne=>{const Be=[...Ne];return Be[ne]=G,Be});const ke=L.findIndex((Ne,Be)=>Be>ne&&Ne===null);ee(ke!==-1?ke:null)},_t=j?L.some(G=>G?.some(ne=>!!ne.colloquialPronunciation)):(r??[]).some(G=>G.words.some(ne=>!!ne.colloquialLabel)),lt=s.useMemo(()=>Wn()?j?L.flatMap(G=>(G??[]).map(ne=>[ne.word,ne.homonum])):(r??[]).flatMap(G=>G.words.map(ne=>[ne.label,ne.homonum])):[],[j,L,r]),[Kt,Rt]=s.useState(!1);s.useEffect(()=>{if(lt.length===0)return;let G=!1;return Promise.all(lt.map(([ne,ke])=>_s(ne,ke))).then(ne=>{G||Rt(ne.some(Boolean))},()=>{}),()=>{G=!0}},[lt]);const yn=lt.length>0&&Kt,Dn=s.useMemo(()=>[...j||h?[{label:T("wordTable.filter.columns","\uCE78 \uC218"),items:Ab.map(G=>({value:`${G}\uCE78`,displayLabel:T("wordTable.filter.column",{count:G})})),display:"segmented"}]:[],...st&&(r?.length??0)>0?[Hl(T,{hasPairs:rt,itemCount:nt})]:[],...Xe?[Vl(T)]:[]],[T,j,h,st,r?.length,rt,nt,Xe]),et={...j||h?{[T("wordTable.filter.columns","\uCE78 \uC218")]:`${j?O:$e}\uCE78`}:{},...st&&(r?.length??0)>0?{[T(rt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${at}\uAC1C`}:{},...Xe?{[T("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:zl[je]}:{}},Ot=(G,ne)=>{if(ne===T("wordTable.filter.columns","\uCE78 \uC218"))j?xt(parseInt(G)):He(parseInt(G));else if(ne===T(rt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")){const ke=parseInt(G);_e(Yr.includes(ke)?ke:Number.POSITIVE_INFINITY)}else ne===T("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&ze(Wl(G))},wt=j?L.filter(G=>G!==null).map(G=>({id:G[0].word,words:G.map(ne=>({label:ne.word,subLabel:ne.pronunciation,homonum:ne.homonum}))})):r??[],Ht=(G=!1)=>{if(tt(G),Z&&o){const ne=ae.trim().toLowerCase();ne&&I(ke=>ke.includes(ne)?ke:[...ke,ne]),o(ae,wt,U||void 0,G);return}if(x&&o){o("",wt,void 0,G);return}if(o){Oe(!0);return}mt()},[Vt,zt]=s.useState(!1),[sn,ln]=s.useState(""),Wt=sn.trim(),cn=Wt!==""&&P.includes(Wt.toLowerCase()),nn=()=>{ln(ae?T("wordTable.save.copyName",{name:ae,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),zt(!0)},ht=()=>{!Wt||cn||!o||(o(Wt,wt,U||void 0,!0),zt(!1))},Yt=wt.length===0,Zt=Yt||Z&&(ae===""||z),Tt=()=>{if(Yt){fe(T("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(Z&&ae===""){fe(T("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}Z&&z&&fe(T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},re=t.jsx(Zn,{items:wt,orientation:ie,contentTypes:Y,cutLine:J,showOutline:ve,showDivLine:de,count:Ye});return t.jsxs(t.Fragment,{children:[t.jsxs(Kn,{type:"page",icon:n,title:e,disc:a,className:ge("word-table-block",y),children:[Vt&&t.jsx(Nn,{size:"small",title:p??T("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>zt(!1),footer:({closeWithAnimation:G})=>t.jsxs(t.Fragment,{children:[t.jsx(ce,{htmlType:"button",size:48,type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:G}),t.jsx(ce,{htmlType:"button",size:48,type:"bar",variant:"main",label:T("common.save","\uC800\uC7A5"),disabled:!Wt||cn,onClick:ht})]}),children:t.jsx(Fn,{label:T("wordTable.save.nameLabel","\uC774\uB984"),value:sn,onChange:ln,placeholder:T("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:ht,error:cn?T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Me&&o&&f?.({defaultName:typeof e=="string"?e:T("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:re,previewW:gt,previewH:dt,items:wt,existingNames:$5().map(G=>G.name),saveAsNew:Re,onSave:(G,ne)=>{o(G,wt,ne,Re),Oe(!1)},onCancel:()=>Oe(!1)}),(j||C)&&oe!==null&&v?.({cellIndex:oe,onConfirm:j?Gt:G=>{if(C){const ne=G[0];ne&&C({id:ne.word,words:[{label:ne.word,subLabel:ne.pronunciation,homonum:ne.homonum}]})}ee(null)},onClose:Ee}),!b&&t.jsx(Zr,{hasImage:yn,hasColloquial:_t,contentTypes:Y,orientation:ie,showOutline:ve,cutLine:J,showDivLine:de,setters:{setContentTypes:le,setOrientation:Ce,setShowOutline:Te,setCutLine:be,setShowDivLine:ye},showCutLine:(st?Fe:Ye)>1,showDivLine2:rt,middleSections:Dn,extraSelected:et,onExtraSelect:Ot}),Xe&&Qe?t.jsx("div",{className:"word-table-block__pages",children:Qe.map((G,ne)=>t.jsx(Zn,{orientation:ie,contentTypes:Y,cutLine:J,showOutline:ve,showDivLine:de,count:Fe,items:G,onRemoveItem:l,onReorder:m&&((ke,Ne)=>m(ke+ne*Fe,Ne+ne*Fe)),contentRef:ke=>{Q.current[ne]=ke},pageNumber:{current:ne+1,total:Qe.length},pageNumberPosition:je},ne))}):t.jsx(Zn,{orientation:ie,contentTypes:Y,cutLine:J,showOutline:ve,showDivLine:de,count:Ye,items:j?void 0:r??[],editCells:j?L:void 0,activeCell:oe,onActivateCell:j||C?ee:void 0,onRemoveCell:j?Ft:void 0,onRemoveItem:j?void 0:l,onReorder:j?void 0:m,showFillerAdd:!!C,contentRef:we}),Z&&!b&&t.jsxs(Ga,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(Bn,{variant:"custom",label:T("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(Fn,{required:!0,value:g??"",onChange:A,placeholder:B?B+T("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):T("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:T("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:z?T("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:G=>{(G.key==="Tab"&&!G.shiftKey||G.key===" ")&&!(g??"").trim()&&(B??"").trim()&&(G.preventDefault(),A?.(B??""))}})}),t.jsx(Bn,{variant:"custom",label:T("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Fn,{value:w??"",onChange:S,placeholder:k?k+T("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):T("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:T("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:G=>{(G.key==="Tab"&&!G.shiftKey||G.key===" ")&&!(w??"").trim()&&(k??"").trim()&&(G.preventDefault(),S?.(k??""))}})})]})]}),!b&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!x&&c&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:F,onClick:c}),!x&&i&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:T("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!x&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:T("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Ut})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[H&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:T("common.cancel","\uCDE8\uC18C"),onClick:H}),!x&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:T("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:yt}),p&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>Z?nn():Ht(!0),disabled:Yt,onDisabledClick:()=>{fe(T("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:d??T("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Ht(!1),disabled:Zt,onDisabledClick:Tt})]})]}),t.jsx(Gn,{message:Ke,type:Ue,onClose:Ge})]})}function jc({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:ge("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 P5({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:b,className:x}){const{t:_}=pe.useTranslation(),g=b!=null,A=d!=null||p!=null||m!=null||h!=null,w=S=>{S.target===S.currentTarget&&!g&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),f?.())};return t.jsxs("div",{className:ge("word-table-button",y?"word-table-button--selected":"",A?"":"word-table-button--no-footer",x),role:"button",tabIndex:0,"aria-label":n,onClick:g?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(jc,{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:[b??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&&!g&&t.jsx(ce,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:_("common.moreFor",{name:n}),onClick:S=>{S.stopPropagation(),v(S)}})]}),(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?js(r,_):""}),t.jsxs("span",{className:"word-table-button__badges",children:[o&&t.jsx(ut,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??_("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&t.jsx(ut,{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:S=>{S.stopPropagation(),C?.()},children:d}),p&&t.jsx("span",{className:"training-card__date body-4",children:js(p,_)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&t.jsx(ut,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),h!=null&&t.jsx(ut,{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:Tr,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 oy({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:o,className:i,containerClassName:l,renderLink:c,menuLabel:u}){const{t:d}=pe.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();s.useEffect(()=>{if(!m)return;const v=$n(()=>h(!1)),b=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,x=_=>{_.matches&&h(!1)};return b&&(b.matches&&h(!1),b.addEventListener?.("change",x)),()=>{v(),b?.removeEventListener?.("change",x)}},[m]);const y=l?`${l} landing-header__inner`:"landing-header__inner",f=(v,b)=>c?c(v,{onClick:b}):t.jsx("a",{href:v.href,onClick:b,"aria-current":v.current?"page":void 0,children:v.label});return t.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[t.jsxs("div",{className:y,children:[e!=null&&(()=>{const v=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:v}):t.jsx("div",{className:"landing-header__brand",children:v})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map(v=>t.jsx("span",{children:f(v)},v.href))}),t.jsxs("div",{className:"landing-header__actions",children:[o,r.length>0&&t.jsx("button",{type:"button",onClick:()=>h(v=>!v),"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(v=>t.jsx("span",{className:"landing-header__drawer-item",children:f(v,()=>h(!1))},v.href))})})]})}function sy({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,...yl(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const Jn=9,iy=e=>Math.round(Math.min(Jn,Math.max(0,e))/Jn*100),ly=e=>e/100*Jn,za=2,Zl=.1,Xl=e=>Math.min(za,Math.max(0,e)),cy=e=>Math.round(e*10)/10;function ba(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return Xl(n);const a=Math.min(Jn,Math.max(0,Number(e.level)||0))/Jn,r=Number(e.mainVolume);return r>0?cy(Xl(a/r)):1}const Jl=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Ql(e){return Jl(e)}function no(e){return Jl(e)*ba(e)}function ao(e,n=Cs()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,no(e)/a)}function ya(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=ba({level:a.level,mainVolume:a.mainVolume})),a}const va={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},ro=s.createContext(null);function Wa(){return s.useContext(ro)}const oo=e=>`${Qh()}/${e}`,ec=e=>Array.from({length:10},(n,a)=>oo(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),qa={get defaultNoise(){return oo("noise1.mp3")},get street(){return ec("noise2")},get restaurant(){return ec("noise3")},get buzz(){return oo("noise4.mp3")}};function uy(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return qa.defaultNoise;case"street":return qa.street[n];case"restaurant":return qa.restaurant[n];case"buzz":return qa.buzz;default:return null}}function dy({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((x,_=250)=>{const g=o.current;if(!g)return;const A=u.current;if(A){u.current=null;try{g.pause()}catch{}g.src=A,g.load()}if(!g.src)return;m.current+=1,C();try{mr(),ka(g).then(k=>{if(o.current===g)try{r.current?.("noise",k)}catch{}})}catch{}const w=g.paused?0:Aa(g);g.paused&&_n(g,0),g.play().catch(()=>{});const S=performance.now(),N=()=>{const k=Math.min(1,(performance.now()-S)/_);try{_n(g,w+(x-w)*k)}catch{}k<1?p.current=requestAnimationFrame(N):p.current=null};p.current=requestAnimationFrame(N)},[C]),f=s.useCallback((x=250,_)=>{const g=o.current;if(!g||g.paused){_?.();return}const A=++m.current;C();const w=performance.now(),S=Aa(g),N=()=>{const k=Math.min(1,(performance.now()-w)/x);try{_n(g,S*(1-k))}catch{}if(k<1)p.current=requestAnimationFrame(N);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{g.pause()}catch{}_?.()}};p.current=requestAnimationFrame(N),h.current=setTimeout(()=>{if(h.current=null,m.current===A){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{g.paused||(_n(g,0),g.pause(),_?.())}catch{}}},x+150)},[C]);s.useEffect(()=>{const x=document.createElement("audio");return x.loop=!0,x.crossOrigin="anonymous",o.current=x,()=>{C();try{x.pause(),x.src=""}catch{}o.current=null,c.current=null,u.current=null}},[C]);const v=e?ao(e.settings):0,b=!!e?.settings.enabled&&v>0;return s.useEffect(()=>{if(!b)return;let x=0;const _=setInterval(()=>{const g=o.current;if(!g||g.paused){x=0;return}const A=n.current;if(A&&!A.paused&&!A.ended||a.current==="playing"){x=0;return}x+=1,x>=2&&(x=0,f())},400);return()=>clearInterval(_)},[f,b,n,a]),s.useEffect(()=>{const x=()=>{if(!document.hidden)return;const _=o.current;if(_&&!_.paused){C();try{_.pause()}catch{}}};return document.addEventListener("visibilitychange",x),()=>document.removeEventListener("visibilitychange",x)},[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]),s.useEffect(()=>{const x=e?.settings,_=o.current;if(!_)return;const g=x?ao(x):0;if(!x||!x.enabled||g===0){f();return}if(c.current!==x.type){const A=uy(x.type);A&&(c.current=x.type,l(A),u.current=A,f(150,()=>{if(u.current!==A)return;u.current=null,_.src=A,_.load();const w=n.current;w&&!w.paused&&_.addEventListener("canplay",function S(){_.removeEventListener("canplay",S);const N=n.current;N&&!N.paused&&!N.ended&&y(g)})}))}else{const A=n.current,w=!!A&&!A.paused&&!A.ended;if(w&&_.paused&&_.src)y(g);else if(!_.paused)if(!w)f();else{C();const S=Aa(_),N=performance.now(),k=()=>{const B=Math.min(1,(performance.now()-N)/150);try{_n(_,S+(g-S)*B)}catch{}B<1?p.current=requestAnimationFrame(k):p.current=null};p.current=requestAnimationFrame(k)}}},[e?.settings,e?.settings.enabled,v,e?.settings.type,C,y,f,n]),s.useEffect(()=>{const x=o.current;if(x)try{x.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 py({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),b=s.useRef(!1);s.useEffect(()=>()=>{v.current++;try{if(f.current&&(cancelAnimationFrame(f.current),f.current=null),b.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}b.current=!1}}catch{}},[]);const x=(A,w=1)=>{try{const S=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(S*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,S=++v.current;try{try{w.cancel()}catch{}const N=A??e,k=(Array.isArray(N)?N[0]??"":N)||"",B=new SpeechSynthesisUtterance(k);try{B.rate=Math.max(.3,Math.min(3,n))}catch{}try{B.volume=Math.max(0,Math.min(1,a))}catch{}y.current=x(k,B.rate||1),C.current=performance.now(),i(0),l("playing"),c("playMode");const V=p.current;V?.enabled&&(V?.volume??0)>0&&u(V.volume);const H=()=>{try{const j=C.current||performance.now(),F=performance.now()-j,T=y.current||1200,Y=Math.min(1,F/T);try{r.current&&(r.current.style.left=`${Y*100}%`),o.current&&o.current.style.setProperty("--progress",String(Y))}catch{}Y<1&&(f.current=requestAnimationFrame(H))}catch{}};B.onend=()=>{if(S===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{}},B.onerror=()=>{B.onend?.(new Event("end"))},B.onstart=()=>{try{f.current&&(cancelAnimationFrame(f.current),f.current=null),f.current=requestAnimationFrame(H)}catch{}};try{b.current=!0,w.speak(B)}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]),g=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:g}}async function my(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 tc(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const o=await r.arrayBuffer();return await my(o,n,a)}catch(r){try{const o=Ns(r)}catch{}return null}}const nc=45,hy=74,fy=2;function xa(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function so(e){return xa(e)/45}const ac=4;function Cy(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,b]=s.useState(!1),[x,_]=s.useState(null),[g,A]=s.useState(2),[w,S]=s.useState(0),[N,k]=s.useState(null),[B,V]=s.useState(!1),H=3,j=3,F=1,T=300,Y=s.useRef(0),R=s.useCallback(async(re,ee)=>{const se=++Y.current,Ce=()=>Y.current===se;try{if(b(!1),!re){Ce()&&f(null);return}let Z=ee;if(!Z)try{for(let te=0;te<4&&!(h.current||C.current);te++)await new Promise(_e=>requestAnimationFrame(_e));await new Promise(te=>requestAnimationFrame(te));const J=h.current,be=C&&C.current?C.current:J?J.closest(".audio-player__wave"):null,ve=be?be.getBoundingClientRect():J?J.getBoundingClientRect():null,Te=ve?Math.max(100,ve.width):320,de=ve?ve.height:0;de>0&&S(de),Z=Math.max(F,Math.min(T,Math.floor((Te+j)/(H+j))));const ye=Z*H,we=Math.max(0,Z-1),Q=we>0?(Te-ye)/we:j;A(Math.max(0,Q))}catch{Z=120}const ie=await tc(re,Z);if(!Ce())return;if(!ie){f(null),b(!1);return}f(ie),_(Z),b(!0)}catch{if(!Ce())return;f(null),b(!1)}},[b,f,S,A,_]);s.useEffect(()=>{const re=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;R(typeof re=="string"?re:void 0).catch(()=>{}),V(!1)},[n,a,R]),s.useEffect(()=>{let re=!1;if(!i||!x){k(null);return}const ee=u>0?u*(c||1):void 0;return tc(i,x,ee).then(se=>{re||k(se)}).catch(()=>{re||k(null)}),()=>{re=!0}},[i,x,u,c]);const O=Math.max(0,Math.min(1,d)),W=s.useMemo(()=>y&&y.length&&Math.max(...y)||1,[y]),le=x||40,q=s.useMemo(()=>Array.from({length:le}).map((re,ee)=>{const se=y&&y[ee]!=null?y[ee]:null,Ce=se==null?null:Math.min(1,se/W*O),Z=Ce!=null&&w>0&&xa(Ce)<=ac,ie=Ce==null?.15:Z?0:so(Ce),J=le>1?ee/(le-1):0;return t.jsx("div",{className:Z?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ie,"--i":ee,"--mix":J}},ee)}),[le,y,W,O,w]),P={"--progress":String(Math.max(0,Math.min(1,r)))},M=i?Math.max(1,l):1,L={"--bar-gap":`${g}px`,"--wave-h":`${xa(M)}px`,"--wave-h1":`${nc}px`},z=O*Math.max(0,l)/Cs(),$=v&&(i?!!N:!0);s.useEffect(()=>{$&&V(!0)},[$]);const E=B?v:$;s.useEffect(()=>{p?.(E)},[E,p]);const I=x||40,oe=s.useMemo(()=>Array.from({length:I}).map((re,ee)=>{const se=N&&N[ee]!=null?N[ee]:null,Ce=se==null?0:se/W*z,Z=w>0&&xa(Ce)<=ac,ie=Z?0:so(Ce),J=I>1?ee/(I-1):0;return t.jsx("div",{className:Z?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ie,"--i":ee,"--mix":J}},ee)}),[I,N,W,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:oe}),m&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${E?"is-ready":""}`,ref:h,children:q}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${E?"is-ready":""}`,ref:o,style:P,children:q})]})]})}const gy={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 io(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 by=2e3;function rc(e,n=by){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 yy({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 vy(){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 xy({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 _y({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 wy(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function ky({ended:e,completedByEnd:n}){return!!e||!!n}function Ay(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function Ny(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function By(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 Sy({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=_y({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 lo({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}=pe.useTranslation(),p=e,m=Wa(),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=vy(),b=s.useRef(null),x=s.useRef(!1),_=s.useRef(0),g=s.useRef(null),{ref:A,rect:w,show:S,hide:N}=xy();s.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[k,B]=s.useState(!1),[V,H]=s.useState("idle"),[j,F]=s.useState("stopped"),T=s.useRef("stopped");s.useEffect(()=>{T.current=j},[j]);const[Y,R]=s.useState(0),[O,W]=s.useState("active"),le=s.useRef(!1);s.useEffect(()=>{if(O!=="playMode"||!le.current)return;le.current=!1;const X=typeof document<"u"?document.activeElement:null;if(X&&X!==document.body)return;const he=f.current?.querySelectorAll("button")[1];try{he?.focus()}catch{}},[O]);const[q,P]=s.useState(null),[M,L]=s.useState(null),[z,$]=s.useState(0),[E,I]=s.useState(!1),[oe,re]=s.useState(0),ee=m?.playbackRate??1,se=m?.mainVolume??1,Ce=m?no(m.settings):0,Z=m?Ql(m.settings):se,[ie,J]=s.useState("idle"),[be,ve]=s.useState(""),[Te]=s.useState("top"),de=s.useRef(null),ye=s.useRef(0),we=s.useRef(null),{start:Q,stop:te,settleTo:_e}=Sy({audioRef:C,fillRef:y,waveProgressRef:we,sourcesRef:de,currentIndexRef:ye}),{onReadyChange:je,waitForReady:ze,markNotReady:Me}=yy({showSoundWaveForm:c,showNoiseWaveForm:u}),Oe=s.useRef(null),Re=s.useRef(o),tt=s.useRef(r),Ke=s.useRef(null),Ue=s.useRef(!1),[fe,Ge]=s.useState(!1),Ee=s.useCallback(X=>{Ue.current=X,Ge(X)},[]),$e=s.useRef(null),{activeNoiseUrl:He,noiseSettingsRef:Ye,fadeInNoise:gt,fadeOutNoise:dt}=dy({noisePlayer:m,audioRef:C,playbackStateRef:T}),{startTTS:st,stopTTS:nt}=py({ttsText:i,playbackRate:ee,mainVolume:Z,fillRef:y,waveProgressRef:we,setProgress:R,setPlaybackState:F,setStateLocal:W,fadeInNoise:gt,fadeOutNoise:dt,noiseSettingsRef:Ye,onDoneRef:tt,handleEndRef:$e});s.useEffect(()=>{Ut.current=nt});const at=X=>{Gt("tts"),st(X)},Fe=Array.isArray(n)?n.filter(Boolean):n?[n]:[],Qe=(!Fe||Fe.length===0)&&!!i,Xe=Array.isArray(q)&&q.length>0?q:Array.isArray(M)&&M.length>0?M:null,rt=Math.max(Array.isArray(Xe)?Xe.length:0,Fe.length),Pe=s.useRef(!0);s.useEffect(()=>(Pe.current=!0,()=>{Pe.current=!1}),[]);const Je=s.useRef(0),yt=()=>{Je.current+=1,_.current+=1},Ut=s.useRef(null),mt=s.useRef(null),xt=s.useRef(null),Ft=s.useRef(null);Ft.current||(Ft.current=()=>{xt.current=null;const X=C.current;if(mt.current==="audio"&&X&&!X.paused){Je.current+=1,_.current+=1;try{X.pause()}catch{}Pe.current&&F("paused")}else if(mt.current==="tts")try{Ut.current?.()}catch{}});const Gt=X=>{mt.current=X,xt.current=Vr(Ft.current)},_t=()=>{xt.current?.(),xt.current=null};s.useEffect(()=>()=>{Ft.current&&Pa(Ft.current)},[]);const lt=s.useCallback(async(X,he=3,Ae=50)=>{const Le=Je.current;for(let De=0;De<he;De++){if(!Pe.current||Le!==Je.current)return!1;try{return Gt("audio"),await X.play(),!0}catch(Ve){if((Ve instanceof Error||typeof Ve=="object"&&Ve&&"name"in Ve?Ve.name:void 0)==="AbortError"){if(Le!==Je.current)return!1;await new Promise(ft=>setTimeout(ft,Ae));continue}try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),Kt=s.useCallback(()=>{const X=C.current;if(!X)return;const he=()=>{F("playing"),W("playMode"),I(!0),Q();try{mr(),ka(X).then(Ve=>{if(Pe.current)try{h.current?.("main",Ve)}catch{}})}catch{}const De=Ye.current;De?.enabled&&(De?.volume??0)>0&>(De.volume)},Ae=()=>{ky({ended:!!X?.ended,completedByEnd:Ue.current})||(F("paused"),te(),dt())},Le=()=>{try{const De=de.current,Ve=wy(De,ye.current);if(Ve!==null){ye.current=Ve,$(Ve),I(!0);const ft=De?.[Ve]&&De[Ve].src;if(ft&&X){X.src=ft,X.load(),lt(X).catch(()=>{});return}}}catch{}F("stopped"),R(1);try{if(X)try{X.currentTime=0}catch{}}catch{}te(),I(!1),dt();try{!Re.current&&$e.current&&$e.current()}catch{}};return X.addEventListener("play",he),X.addEventListener("pause",Ae),X.addEventListener("ended",Le),()=>{try{X.removeEventListener("play",he),X.removeEventListener("pause",Ae),X.removeEventListener("ended",Le),te()}catch{}}},[gt,dt,lt,Ye,Q,te]);s.useEffect(()=>Kt(),[Kt]),s.useEffect(()=>{Re.current=o},[o]),s.useEffect(()=>{tt.current=r},[r]),s.useEffect(()=>{if(o||O!=="active")return;const X=g.current;if(!X)return;let he=null;const Ae=requestAnimationFrame(()=>{try{const Le=X.getTotalLength();if(!Le)return;const De=Le*.2;X.style.strokeDasharray=`${Le-De} ${De}`;const Ve="triFlow_"+Math.random().toString(36).slice(2);he=document.createElement("style"),he.textContent=`@keyframes ${Ve}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Le}}}`,document.head.appendChild(he),X.style.animation=`${Ve} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(Ae),he?.remove()}},[O,o]),s.useEffect(()=>{de.current=q},[q]),s.useEffect(()=>{ye.current=z},[z]),s.useEffect(()=>{const X=f.current,he=b.current;if(!X||!he)return;let Ae=null;const Le=32,De=60,Ve=()=>{try{const Nt=Array.from(X.querySelectorAll(":scope > .button"));let kt=0;Nt.forEach(dn=>{if(dn===he)return;const Za=dn.getBoundingClientRect();kt+=Za.width});const an=X.getBoundingClientRect().width,Xt=Math.max(0,Math.floor(an-kt-8)),jt=rt;if(!jt||Xt<=0){Array.from(he.children).forEach(dn=>{try{dn.style.width=""}catch{}});return}let un=Math.floor(Xt/jt);un>De&&(un=De),un<Le&&(un=Math.max(Le,Math.floor(Xt/jt))),Array.from(he.querySelectorAll(".button")).forEach(dn=>{try{dn.style.width=`${un}px`}catch{}})}catch{}},ft=requestAnimationFrame(Ve);try{Ae=new ResizeObserver(()=>{requestAnimationFrame(Ve)}),Ae.observe(X),Ae.observe(he),window.addEventListener("resize",Ve)}catch{}return()=>{try{cancelAnimationFrame(ft)}catch{}try{Ae&&(Ae.disconnect(),Ae=null)}catch{}try{window.removeEventListener("resize",Ve)}catch{}}},[q,M,rt]),s.useEffect(()=>()=>{try{Oe.current&&(clearTimeout(Oe.current),Oe.current=null),Ke.current&&(clearTimeout(Ke.current),Ke.current=null)}catch{}},[]);const Rt=(X,he)=>{P(X),re(he),Me(),L(Ay(X)),de.current=X},yn=async(X,he)=>{Ee(!1),x.current=!1,X.src=he,X.load(),await rc(X),await ze(),B(!1),await lt(X),W("playMode"),$(0),I(!0)},Dn=async(X,he=!1)=>{const Ae=C.current;B(!0),H("measuring_duration");try{const Le=await io(X,{timeoutMs:1e4,rejectOnError:!0});Rt([{src:X,objectUrl:null,duration:Le}],Le),H("ready"),he&&Ae&&await yn(Ae,X)}finally{x.current=!1,B(!1)}},et=async(X,he=!1)=>{const Ae=C.current;B(!0),H("measuring_duration");try{const Le=await Promise.all(X.map(Ve=>io(Ve,{timeoutMs:1e4})));if(!Pe.current)return;const De=X.map((Ve,ft)=>({src:Ve,objectUrl:null,duration:Le[ft]||0}));Rt(De,Ny(De)),H("ready"),he&&Ae&&De.length>0&&await yn(Ae,De[0].src)}finally{x.current=!1,B(!1)}},Ot=async(X=!1,he=!0)=>{const Ae=C.current,Le=n?Array.isArray(n)?n:[n]:[];if(!Le||Le.length===0||!Le.some(Boolean))return!1;if(x.current)return null;x.current=!0,he&&B(!0),H("resolving");try{const De=By(n,a,ms),Ve=[];let ft=0;for(const Nt of De){let kt=Nt.src??null,an=null;if(!kt&&Nt.resolvedPath){try{H("getting_signed_url"),kt=await hs(Nt.resolvedPath)}catch{kt=null}if(!Pe.current)return!1;if(!kt)try{H("downloading");const jt=await fs(Nt.resolvedPath);if(!Pe.current)return!1;if(jt){const un=jt instanceof Blob?jt:new Blob([jt]);an=v.track(URL.createObjectURL(un)),kt=an}}catch{H("error");try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),W("active")}catch{}}}if(!kt)continue;let Xt=0;try{H("measuring_duration"),Xt=await io(kt,{timeoutMs:3e3})}catch{Xt=0}if(!Pe.current){if(an)try{URL.revokeObjectURL(an)}catch{}for(const jt of Ve)if(jt.objectUrl)try{URL.revokeObjectURL(jt.objectUrl)}catch{}return!1}ft+=Xt||0,Ve.push({...Nt,src:kt,objectUrl:an,duration:Xt})}if(Rt(Ve,ft),Ve.length>0&&X&&Ae){const Nt=Ve[0];Ee(!1);try{v.keepOnly(Ve.map(kt=>kt.objectUrl))}catch{}if(H("ready"),x.current=!1,Nt.src&&Ae)try{Ae.src=Nt.src,Ae.load(),await rc(Ae),await ze(),he&&B(!1),Ae&&await lt(Ae)}catch{he&&B(!1)}else he&&B(!1);W("playMode"),$(0),I(!0)}return Ve.length>0}finally{x.current=!1,he&&B(!1),H(De=>De==="ready"?"ready":"idle")}},wt=async()=>{const X=C.current;if(!(!X&&!Qe)){if(Qe){const he=window.speechSynthesis;if(O==="active"){const Ae=ur(),Le=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(Ae&&Le.length>0){W("load"),B(!0),H("resolving"),x.current=!0;try{const De=await Promise.all(Le.map(Ve=>Promise.resolve(Ae(Ve))));De.length>1?await et(De,!0):await Dn(De[0],!0)}catch{x.current=!1,B(!1),W("active"),at(Le[0]||void 0)}return}at(Le[0]||void 0);return}if(O==="playMode"){if(X){if(X.paused){if(Ue.current){await Ht();return}await lt(X),F("playing")}else yt(),X.pause(),F("paused");return}try{if(he&&he.paused)try{Gt("tts"),he.resume(),F("playing")}catch{}else try{he.pause(),F("paused")}catch{}}catch{}}return}if(O==="active"){if(o&&Array.isArray(de.current)&&de.current.length>0){const Ae=de.current[0];try{if(Ae.src&&X)try{X.src=Ae.src,X.load(),X&&await lt(X)}catch{}W("playMode"),$(0),I(!0);return}catch{}}W("load");let he;try{he=await Ot(!0)}catch{he=!1}if(he===!1&&Pe.current){try{ve(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}W("active")}return}if(O!=="load"&&(O==="playMode"||O==="active"))try{if(X&&X.paused){if(Ue.current){await Ht();return}X&&await lt(X),F("playing")}else X&&(yt(),X.pause(),F("paused"))}catch(he){(he instanceof Error||typeof he=="object"&&he&&"name"in he)&&he.name}}},Ht=async()=>{const X=C.current;if(X)try{const he=de.current;if(Array.isArray(he)&&he.length>1){await nn(0);return}Ee(!1);try{X.currentTime=0}catch{}X&&await lt(X),F("playing"),W("playMode")}catch{}},Vt=()=>{if(yt(),_t(),Qe){nt();return}const X=C.current;try{if(X){try{X.pause()}catch{}try{X.currentTime=0}catch{}}}catch{}dt(),F("stopped"),W("active"),R(0),I(!1)},zt=async(X,{sameSegment:he=!1}={})=>{const Ae=++_.current,Le=C.current,De=de.current?.[X]?.src;try{if(Ee(!1),$(X),I(!0),ye.current=X,!De||!Le||(he||Me(),Le.src=De,Le.load(),he||await ze(),Ae!==_.current)||(await lt(Le),Ae!==_.current))return;F("playing"),W("playMode")}catch{}},sn=async()=>{const X=de.current,he=ye.current||0;if(!X||he<=0){await Ht();return}await zt(he-1)},ln=async()=>{const X=de.current,he=ye.current||0;if(!X||he>=X.length-1){Vt();return}await zt(he+1)},Wt=()=>{if(Ue.current)return;const X=200,he=340;Ee(!0),yt(),_t();try{R(1)}catch{}_e(1);try{J("hold")}catch{}try{const Ae=C.current,Le=Qe&&!!Ae?.src;if(!Qe||Le){if(Ae){Ae.pause();try{Ae.currentTime=0}catch{}}}else nt();dt()}catch{}try{F("stopped")}catch{}if(I(!1),!Re.current)try{Ke.current&&(clearTimeout(Ke.current),Ke.current=null),Ke.current=setTimeout(()=>{try{J("out")}catch{}Ke.current=setTimeout(()=>{try{typeof tt.current=="function"&&tt.current(!0)}catch{}try{J("idle")}catch{}Ke.current=null},he)},X)}catch{}};s.useEffect(()=>{$e.current=Wt});const cn=s.useCallback(()=>ve(""),[]),nn=async X=>{(de.current||[])[X]&&await zt(X,{sameSegment:X===ye.current})},ht=j==="playing",Yt=s.useMemo(()=>{if(!M||M.length<=1)return M;const X=M[z];return X?[X]:M},[M,z]),Zt=o===!0;s.useEffect(()=>{try{const X=C.current;X&&typeof X.playbackRate=="number"&&(X.playbackRate=ee||1)}catch{}},[ee]);const Tt=s.useRef({raf:null,timer:null});s.useEffect(()=>{const X=C.current;if(!X)return;const he=Math.max(0,Math.min(1,Z)),Ae=Tt.current,Le=()=>{Ae.raf!==null&&(cancelAnimationFrame(Ae.raf),Ae.raf=null),Ae.timer!==null&&(clearTimeout(Ae.timer),Ae.timer=null)};Le();const De=Aa(X);if(X.paused||Math.abs(De-he)<.001||typeof requestAnimationFrame!="function"){try{_n(X,he)}catch{}return}const Ve=performance.now(),ft=()=>{const Nt=Math.min(1,(performance.now()-Ve)/150);try{_n(X,De+(he-De)*Nt)}catch{}Ae.raf=Nt<1?requestAnimationFrame(ft):null};return Ae.raf=requestAnimationFrame(ft),Ae.timer=setTimeout(()=>{Le();try{_n(X,he)}catch{}},200),Le},[Z]);const ae=ie==="hold",G=ie==="out",ne=O==="playMode"&&!k&&!fe||ae||G,ke=j!=="stopped"||ae||G,Ne=j==="paused",Be=Math.max(0,Math.min(100,(Y||0)*100)),qe=ge("audio-player__fill",ne?"is-visible":"",ke?"is-expanded":"",Ne?"is-paused":"",G?"is-out":"");return t.jsxs("div",{className:`audio-player ${Zt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${ht?"is-playing":""} ${k?"is-loading":""} ${O!=="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.${V}`,{defaultValue:gy[V]})})]}):null,O==="active"?t.jsx("button",{className:"audio-player__button",type:"button",disabled:Zt,onClick:()=>{le.current=Ia(),N(),wt()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:S,onMouseLeave:N,onFocus:S,onBlur:N,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:g,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 ${O==="playMode"||ht?"is-visible":""}`,inert:!(O==="playMode"||ht)||void 0,children:[t.jsxs("div",{ref:f,className:"audio-player__buttons",children:[t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:sn,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:O!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:ht?"pause":"play",onClick:wt,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":ht,width:"60px",variant:"transparent-white",disabled:O!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Vt,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:O!=="playMode"}),rt>1?t.jsx("div",{ref:b,className:"audio-player__source-buttons",children:Array.from({length:rt}).map((X,he)=>t.jsx(ce,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(he+1),onClick:()=>{try{nn(he)}catch{}},ariaLabel:d("training.sourcePlay",{n:he+1}),variant:"transparent-white",selected:E&&z===he,disabled:O!=="playMode"||!(Array.isArray(q)&&q[he]),showTooltipInfo:!0},he))}):null,!Array.isArray(q)||q.length<=1?t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Ht,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:O!=="playMode"}):null,t.jsx(ce,{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:O!=="playMode"}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:Wt,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:O!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:qe,ref:y,style:{left:`${Be}%`},"aria-hidden":"true"}),(c||u)&&t.jsx(Cy,{segments:Yt,progress:Y,totalDuration:oe,onSegmentClick:nn,waveProgressRef:we,showSoundWaveForm:c,noiseSrc:u&&m?.settings.enabled&&Ce>0?He:null,noiseRatio:m?ba(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:se,onReadyChange:je})]})]}),t.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!c&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(We,{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(Gn,{message:be,position:Te,onClose:cn})]})}function Ua(e){const{t:n}=pe.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}=hi({storageKey:"tooltip-fontScale"}),v=s.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),b=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"},g=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(ce,{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(ce,{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(ce,{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(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:b,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:g}):t.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:g})}function oc({state:e="disabled"}){const{t:n}=pe.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(We,{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 sc({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}=pe.useTranslation(),h=rn("(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,b]=s.useState(!1),[x,_]=s.useState(null),[g,A]=s.useState(null),w=s.useRef(i);s.useEffect(()=>{w.current=i});const S=s.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(B=>typeof B=="string"||typeof B=="number")?l.join(""):"",[l]),N=s.useCallback(()=>{b(!1),_(null),A(null)},[]);s.useEffect(()=>{if(!v)return;let B;try{typeof w.current=="function"&&(B=w.current())}catch{}if(B===!1){N();return}A(typeof B<"u"&&B!==null?B:null)},[S]);const k=s.useCallback(()=>{let B;try{typeof i=="function"&&(B=i())}catch{}if(B!==!1){if(A(typeof B<"u"&&B!==null?B:l),!f.current){b(V=>!V);return}if(v)b(!1),_(null),A(null);else{const V=f.current.getBoundingClientRect();_(V),b(!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(ce,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),o&&t.jsx("div",{ref:f,children:t.jsx(ce,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:v,onClick:k,variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),v&&t.jsx(Ua,{text:g??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:x,onClose:N,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function co(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}=pe.useTranslation(),[p,m]=s.useState(()=>co(e,n));s.useEffect(()=>{const A=co(e,n);if(A!==p){const w=setTimeout(()=>m(A),0);return()=>clearTimeout(w)}},[e,n,p]);const h=s.useCallback((...A)=>{co(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}),b=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 S=A;if(S&&typeof S.getBoundingClientRect=="function")return S.getBoundingClientRect();const N=A?.current;return N&&typeof N.getBoundingClientRect=="function"?N.getBoundingClientRect():null}catch{return null}},[]),x=s.useCallback((A,{text:w="",label:S="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:N=!1,alignX:k="center",alignY:B="top"}={})=>{const V=b(A);v({text:w,label:S,anchorRect:V,backdrop:N,alignX:k,alignY:B}),y(!0)},[b]),_=s.useCallback(()=>{y(!1),v(A=>({...A,anchorRect:null}))},[]),g=s.Children.map(i,A=>{if(s.isValidElement(A)){const w=A;if(typeof w.type=="string")return w;const S=w.props??{},N=typeof S.onDone=="function"?S.onDone:h,k=typeof S.disabled=="boolean";let B=p==="disabled";return k&&(B=!!S.disabled),s.cloneElement(w,{onDone:N,disabled:B,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(oc,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(sc,{state:p,title:r,...o,useFaded:u}),g]}),C?t.jsx(wn,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:_,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(Ua,{text:f.text,onClose:_})}):null]})}function ic({context:e,state:n="disabled",theme:a="light"}){const{t:r}=pe.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}=hi({storageKey:"textbox_fontScale"}),[f,v]=s.useState(""),b=s.useRef(null),x=s.useRef(!1),_=s.useCallback(()=>{x.current=Ia()&&!!b.current&&b.current.contains(document.activeElement),i("active")},[]),g=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 S=s.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[N,k]=s.useState(S);N!==S&&(k(S),i("disabled"));const B=n==="disabled"?o:n,V=B==="disabled"?"training-text-box--disabled":B==="active"?"training-text-box--active":B==="done"?"training-text-box--done":"",H=s.useMemo(()=>({fontSize:`${C}px`,lineHeight:`${y}px`}),[C,y]);return s.useEffect(()=>{if(B==="disabled"||!x.current)return;x.current=!1;const j=document.activeElement;j&&j!==document.body||b.current?.querySelector(".training-text-box__buttons button")?.focus()},[B]),t.jsxs("div",{ref:b,className:`training-text-box ${V} ${B!=="disabled"&&l==="dark"?"is-dark":""}`,children:[B==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(ce,{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":B==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:H,children:S})}),B!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":B==="disabled",children:[t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>A(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),t.jsx(ce,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>A(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),t.jsx(ce,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(Gn,{message:f,position:"top",onClose:g})]})}function uo({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}=pe.useTranslation(),v=r??f("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),b=typeof e=="number"?e:-1,x=typeof n!="number"?"disabled":b<n?"done":b===n?"active":"disabled",_=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,g=u?u.join("||"):"",A=d?d.join("||"):"",[w,S]=s.useState(()=>Array.isArray(_)?y?la(_):_.slice():void 0);s.useEffect(()=>{Array.isArray(_)&&_.length?S(y?la(_):_.slice()):S(void 0)},[c,g,A,y]);const[N,k]=s.useState(null),[B,V]=s.useState(()=>new Set);s.useEffect(()=>{k(null),V(new Set)},[A,c,g]);const H=s.useRef(void 0);s.useEffect(()=>{const T=H.current;typeof T=="number"&&typeof n=="number"&&typeof e=="number"&&T>=e&&n<e&&(k(null),V(new Set)),H.current=n},[n,e]);const j=s.useCallback(T=>{if(x!=="active")return;const Y=w?.[T];if(Y==null)return;const R=Y,O=x==="active"||x==="done";if(p){const W=new Set(B),le=W.has(R);le?W.delete(R):W.add(R),V(W),typeof l=="function"&&l({selectedValues:[...W],__ts:Date.now()}),O&&(typeof m=="number"&&m>0?W.size>=m:!le)&&typeof i=="function"&&x==="active"&&i({selectedValues:[...W],__ts:Date.now()})}else k(R),typeof l=="function"&&l({selectedIndex:T,selectedValue:R,__ts:Date.now()}),O&&typeof i=="function"&&x==="active"&&i({selectedIndex:T,selectedValue:R,__ts:Date.now()})},[w,x,p,l,i,m,B]),F=`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:F,children:Array.isArray(w)&&w.length>0?w.map((T,Y)=>t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:()=>j(Y),ariaLabel:String(T),label:T,useLabel:!0,icon:C?C[String(T)]:void 0,variant:"default",disabled:x==="disabled",selected:p?B.has(T):N===T,useDisabledCovered:h,minWidth:0},String(T))):null})})}function po({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l,demoSelected:c}){const{t:u}=pe.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)}`,[b,x]=s.useState(v);b!==v&&(x(v),c==null&&f(null));const[_,g]=s.useState(c);Object.is(_,c)||(g(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 B=typeof k=="object"&&k!==null?Object.assign({},k,{__ts:Date.now()}):{value:k,__ts:Date.now()};typeof i=="function"&&i(B),m==="active"&&typeof o=="function"&&o(B)},[i,m,o]),S=s.useCallback(()=>{m==="active"&&(f(!1),w(!1))},[w,m]),N=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(ic,{context:l,state:m}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(C)&&C.length>0?C.slice(0,6).map((k,B)=>t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(f(B),w&&w(B))},disabled:m==="disabled",ariaLabel:String(k),label:k,variant:m,selected:y===B},B)):t.jsxs(t.Fragment,{children:[t.jsx(ce,{htmlType:"button",size:56,type:"bar",onClick:S,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(ce,{htmlType:"button",size:56,type:"bar",onClick:N,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 mo({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}=pe.useTranslation(),v=r??f("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),b=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(lo,{soundSrc:l,ttsText:l?null:d??v,bucketPath:c,btnLabel:i||f("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:b,className:"training-step__listen-sticky",showSoundWaveForm:C,showNoiseWaveForm:y},`audio-p${h??0}-s${e}`)})}const Dy=[];function ho({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l=Dy}){const{t:c}=pe.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((re,ee)=>({id:ee,text:d(re)}));if($.length<=1)return $;const E=(re,ee)=>{if(re.length!==ee.length)return!1;for(let se=0;se<re.length;se++)if(re[se].text!==ee[se].text)return!1;return!0};let I=la($),oe=0;for(;E(I,$)&&oe<20;)I=la($),oe+=1;return I})(M);C(L);try{if(typeof i=="function"){const z=L.filter(($,E)=>$.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(($,E)=>$.text===d(M[E])).length;o({shuffled:L,score:z,total:(M||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const b=(M,L)=>{const z=[...h],$=M+L;if($<0||$>=z.length)return;const E=z[$];z[$]=z[M],z[M]=E,Y(z);try{if(typeof o=="function"&&y==="active"){const I=z.filter((oe,re)=>oe.text===d(p[re])).length;o({shuffled:z,score:I,total:(p||[]).length,__ts:Date.now()})}}catch{}},[x,_]=s.useState(null),g=s.useRef(null),A=s.useRef(null),w=s.useRef(null),S=s.useRef(null),N=s.useRef(null),k=s.useRef({x:0,y:0}),B=s.useRef(null),V=s.useRef({dx:0,dy:0}),H=()=>{if(B.current!==null)return;const M=()=>{if(!g.current){B.current=null;return}B.current=requestAnimationFrame(M);const L=k.current,z=V.current||{dx:0,dy:0};g.current&&(g.current.style.transform=`translate3d(${L.x-z.dx}px, ${L.y-z.dy}px, 0)`)};B.current=requestAnimationFrame(M)},j=s.useRef(new Map),F=s.useRef(new Map),T=()=>{const M=new Map;return j.current.forEach((L,z)=>{L&&L.getBoundingClientRect&&M.set(z,L.getBoundingClientRect())}),M},Y=M=>{const L=T();C(M);try{if(typeof i=="function"){const z=M.filter(($,E)=>$.text===d(p[E])).length;i({shuffled:M,score:z,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const z=T();M.forEach($=>{const E=L.get($.id),I=z.get($.id),oe=j.current.get($.id);if(!oe||!E||!I)return;const re=E.top-I.top;re&&(oe.style.transition="none",oe.style.transform=`translateY(${re}px)`,requestAnimationFrame(()=>{oe.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",oe.style.transform="";const ee=()=>{oe.style.transition="",oe.removeEventListener("transitionend",ee)};oe.addEventListener("transitionend",ee)}))})})},R=(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($),g.current=$;const E=j.current.get(z.id);let I=L.clientX||0,oe=L.clientY||0;try{if(E&&E.getBoundingClientRect){const ie=E.getBoundingClientRect();I=ie.left+ie.width/2,oe=ie.top+ie.height/2}}catch{}const re=$.getBoundingClientRect(),ee=re.width/2,se=re.height/2;V.current={dx:ee,dy:se},$.style.transition="none",k.current={x:I,y:oe},$.style.transform=`translate3d(${I-ee}px, ${oe-se}px, 0)`,requestAnimationFrame(()=>{try{$.style.transition=""}catch{}H()});const Ce=ie=>{const J=ie;k.current={x:J.clientX,y:J.clientY},H()};w.current=Ce,document.addEventListener("mousemove",Ce);const Z=ie=>{const J=ie;k.current={x:J.clientX,y:J.clientY},H()};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{}},O=(M,L)=>{L.preventDefault();try{L.dataTransfer&&(L.dataTransfer.dropEffect="move")}catch{}try{N.current!==null&&(clearTimeout(N.current),N.current=null);const z=L.currentTarget&&L.currentTarget.closest?L.currentTarget.closest(".order-list__item"):null;if(z&&S.current!==z){if(S.current)try{S.current.classList.remove("drag-over")}catch{}try{z.classList.add("drag-over")}catch{}S.current=z}}catch{}},W=(M,L)=>{L.preventDefault();const z=L.dataTransfer?.getData("text/plain")||"",$=z?parseInt(z,10):x,E=M;if(typeof $!="number"||isNaN($)||$===E){_(null),P(),le();return}const I=A0(h,$,E);Y(I),_(null),le();try{if(typeof o=="function"&&y==="active"){const oe=I.filter((re,ee)=>re.text===d(p[ee])).length;o({shuffled:I,score:oe,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const oe=document.querySelectorAll(".order-list .order-list__item")[E];if(!oe)return;const re=oe.querySelector(".order-list__slot")||oe;try{re.classList.add("pulse"),re.offsetHeight,re.classList.add("to-dark");const ee=()=>{re.classList.remove("pulse","to-dark"),re.removeEventListener("transitionend",ee)};re.addEventListener("transitionend",ee)}catch{}})}catch{}P()},le=()=>{if(g.current){try{document.body.removeChild(g.current)}catch{}g.current=null}A.current&&(document.removeEventListener("dragover",A.current),A.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),B.current!==null&&(cancelAnimationFrame(B.current),B.current=null)},q=()=>{_(null),P(),le()};s.useEffect(()=>()=>le(),[]);const P=()=>{try{if(N.current!==null&&(clearTimeout(N.current),N.current=null),S.current){try{S.current.classList.remove("drag-over")}catch{}S.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 $=F.current.get(L.id);if(!$)return;let E=50;M>1&&(E=Math.round(z/(M-1)*100));try{$.style.setProperty("--marker-pos",E+"%")}catch{}})}catch{}},[h]),s.useEffect(()=>()=>{le(),N.current!==null&&(clearTimeout(N.current),N.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:E=>{const I=F.current;E?I.set(M.id,E):I.delete(M.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:L+1})}):null,t.jsxs("div",{ref:E=>{const I=j.current;E?I.set(M.id,E):I.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=>R(L,E):void 0,onDragEnter:f?E=>O(L,E):void 0,onDragOver:f?E=>O(L,E):void 0,onDragLeave:f?()=>{try{N.current!==null&&clearTimeout(N.current),N.current=setTimeout(()=>{try{const E=document.querySelectorAll(".order-list .order-list__item");E&&E[L]&&(E[L].classList.remove("drag-over"),S.current===E[L]&&(S.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?E=>W(L,E):void 0,onDragEnd:f?q: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(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>b(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(ce,{htmlType:"button",size:32,type:"dot",onClick:()=>b(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 Ty=8e3;function jy(e,n){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.then(o,o),setTimeout(o,n)})}function lc({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}=pe.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,b=typeof n!="number"?"disabled":v<n?"done":v===n?"active":"disabled",[x,_]=s.useState(null),g=s.useRef([]),[A,w]=s.useState(!1),S=s.useRef(!0);s.useEffect(()=>(S.current=!0,()=>{S.current=!1}),[]);const N=s.useMemo(()=>C.map(j=>j?.id??j?.word??"").join("|"),[C]);s.useEffect(()=>{_(null)},[N]);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 B=s.useCallback((j,F)=>{if(c)return;const T={item:j,index:F,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(b==="active"&&typeof o=="function")try{o(T)}catch{}},[c,i,b,o]),V=s.useCallback(async()=>{if(!(A||b==="disabled")){w(!0);try{for(let j=0;j<f.length&&S.current;j++){const F=g.current[j];F&&await jy(F.play(),Ty)}}finally{w(!1)}}},[A,b,f.length]),H=s.useCallback((j,F)=>{if(b!=="active")return;_(F);const T={selectedValue:j.word||j.title||"",selectedIndex:F,item:j,__ts:Date.now()};try{typeof i=="function"&&i(T)}catch{}if(b==="active"&&typeof o=="function")try{o(T)}catch{}},[i,b,o]);return t.jsx(Hn,{index:e,stepIndex:n,isLast:a,title:h,onDone:o,titleProps:{usePlayAllBtn:!d&&f.length>0,onPlayAll:V,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,F)=>t.jsx(Ur,{ref:T=>{g.current[F]=T},item:j,disabled:b==="disabled",onPlayDone:()=>B(j,F),selectable:c,selected:c&&x===F,onSelect:c?()=>H(j,F):void 0,flipDelay:F*120,hideLabel:u,hideAudio:d},j&&j.id||F))})})}const Ey=160,My={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function Ly(e,n){const a=My[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}const cc=()=>{};function Bn(e){const n=s.useId();if(!("variant"in e)){const{label:b,sub:x,onClick:_,children:g,align:A="horizontal",icon:w}=e,S=N=>{_&&N.target===N.currentTarget&&(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),_())};return t.jsxs("div",{className:ge("panel-row",A==="vertical"?"panel-row--vertical":"",_?"panel-row--clickable":""),onClick:_,onKeyDown:_?S:void 0,role:_?"button":void 0,tabIndex:_?0:void 0,children:[w!=null&&t.jsx("div",{className:"panel-row__icon",children:w}),b!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:b}),x&&t.jsx("div",{className:"panel-row__sub caption-1",children:x})]}),t.jsx("div",{className:"panel-row__right",children:g})]})}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(ga,{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 b=e;h=t.jsx(el,{checked:b.checked,onChange:b.onChange,id:C})}else if(a==="segmented"){const b=e;h=t.jsx(On,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,x=b.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((_,g)=>t.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:t.jsx(en,{options:_.options,value:_.value,onChange:_.onChange,placeholder:_.placeholder,block:d,error:!!c,ariaDescribedBy:y,ariaLabel:_.ariaLabel??([r,_.placeholder].filter(Boolean).join(" ")||void 0)})},g))}):t.jsx(en,{options:b.options??[],value:b.value??"",onChange:b.onChange??cc,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 b=e;b.buttons?.length?h=t.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((x,_)=>t.jsx(ce,{htmlType:"button",size:x.btnSize??40,variant:x.btnVariant??"default",disabled:x.disabled,onClick:x.onClick,children:x.label},_))}):h=t.jsx(ce,{htmlType:"button",size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;h=t.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;h=t.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[t.jsx(Fn,{value:b.value,onChange:b.onChange??cc,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:d,error:c,ariaLabel:r,required:l}),b.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:b.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=b=>{m&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())};return t.jsxs("div",{className:ge("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 uc(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function $y({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=pe.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(ce,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${l} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>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(ut,{size:"small",variant:gl(i.device),fill:"soft",label:Ly(i.device,r)}),uc(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:uc(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 Ga({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:b,children:x}){const _=ge("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),g={};return i!==void 0&&(g.minHeight=i),l!==void 0&&(g.maxWidth=typeof l=="number"?`${l}px`:l),y!==void 0&&(g["--panel-label-width"]=typeof y=="number"?`${y}px`:y),t.jsxs("div",{className:_,style:Object.keys(g).length?g:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:ge("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(We,{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"}):b!=null&&s.Children.toArray(x).length===0?t.jsx(Bn,{variant:"empty",children:b}):u?t.jsx("div",{className:ge("panel__body--scroll",d==="stable"&&"panel__body--gutter-stable"),children:x}):x]})}function Ry({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function Py(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 dc(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"}]}Py(Lt.t.bind(Lt)),dc(Lt.t.bind(Lt));const fo="none",Iy=.5,Fy=1.5,Oy=.25;function Co({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(ml,{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 pc({anchorRect:e,onClose:n}){const{t:a}=pe.useTranslation(),r=rn("(max-width: 767px)")?40:24,o=Wa(),i=ba(o?.settings??va),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(za,Math.max(0,Math.round(f*10)/10));try{o?.setSettings({noiseRatio:v})}catch{}},[o]),y=s.useCallback(f=>{try{f===fo?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(ce,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(Ga,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(Co,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),t.jsx(Co,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:Iy,max:Fy,step:Oy,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:fo,label:a("training.noise.type.none","\uC5C6\uC74C")},...dc(a).map(f=>({key:f.value,label:f.label}))],value:c?l:fo,onChange:y})}),t.jsx(Co,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:za,step:Zl,size:r,onChange:C})]})})}function mc({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:o=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=pe.useTranslation(),[d,p]=s.useState(!1),[m,h]=s.useState(null),[C,y]=s.useState(!1),f=s.useRef(null),v=s.useRef(null),b=Wa(),x=l<c-1,_=l===c-1,g=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]),S=s.useCallback(()=>{if(d){p(!1),h(null);return}const k=v?.current?.getBoundingClientRect();k&&h(k),n?.(),p(!0)},[d,n]),N=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(ce,{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(ce,{htmlType:"button",size:56,type:"dot",icon:"settings",onClick:S,selected:d,ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&t.jsx(ce,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:N,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(Fr,{analyser:b?.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(Fr,{analyser:b?.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(ce,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!g}),x&&t.jsx(ce,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!g})]}),e&&d&&t.jsx(pc,{anchorRect:m,onClose:A})]})}function hc({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}=pe.useTranslation(),y=rn("(max-width: 767px)"),f=Number.isInteger(p)?p:c||0,v=Number.isInteger(d)?d:u||0,b=m||h,x=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,g=typeof n=="string"?n.trim():n,A=!!(_||g),w=A?_||g:C("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),S=x||(_?n:void 0),N=y&&typeof S=="string"&&(S.includes(" \xB7 ")||S.includes(" / "))?S.split(/\s[·/]\s/).pop():S,k=s.useMemo(()=>{const B=i&&typeof i=="object"?{...i}:{};return!("width"in B)&&!("height"in B)&&(B.width="40px",B.height="40px"),B},[i]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[b?t.jsx(ce,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:C("common.back","\uB4A4\uB85C"),onClick:b,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:o?t.jsx(vl,{icon:o,label:e,tooltip:l,wrapperStyle:k}):null}),t.jsxs("div",{className:"pp-title__text",children:[N?t.jsx("span",{className:"pp-title__depth caption-1",children:N}):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(Cl,{max:Math.max(0,v??0),index:Math.max(0,f??0)})]})}function Hy(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Vy(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 fc=(e,n)=>{if(!n)return n;const a=typeof Lt?.t=="function"?Lt.t(e,{defaultValue:n}):void 0;return typeof a=="string"&&a?a:n};function Cc(e,n,a){const r=e,o=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",i=Ls().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?fc(`topic.${i.key}`,i.label):void 0,l?fc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function go(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function zy(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function Wy({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:o=[],emptyMessage:i,buildResults:l,metaPatch:c}){const u=Cc(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 qy(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function Uy(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 Gy(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 gc(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function Ky(e,n,a,r){return gc(e,n*a+r)}function Yy({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 Zy(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 bc=s.createContext(null);function Xy(){const e=s.useContext(bc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function Jy({index:e,stepIndex:n,isLast:a=!1,title:r,choices:o=[],onDone:i,onChange:l}){const{t:c}=pe.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.useMemo(()=>p.filter(b=>b!==null).length+1,[p]),f=s.useCallback(b=>{if(d!=="active")return;const x=p;let _;if(x[b]!=null){const A=x[b];_=x.map(w=>w!==null&&w>=A?null:w)}else _=[...x],_[b]=y;m(_);const g={selectedOrder:_,words:o,__ts:Date.now()};try{typeof l=="function"&&l(g)}catch{}if(x[b]==null&&_.length>0&&_.every(A=>A!==null))try{typeof i=="function"&&i(g)}catch{}},[d,p,y,l,i,o]),v=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:v,onDone:i,children:t.jsx("div",{className:"training-step__cards",children:o.map((b,x)=>t.jsx(Ur,{item:{word:b},disabled:d==="disabled",selectable:!0,selected:p[x]!==null,orderRank:p[x],onSelect:()=>f(x),flipDelay:x*120,hideLabel:!1,hideAudio:!0},`${b}-${x}`))})})}function Ka(e){return null}Ka.__isTrainingPage=!0;function Qn(e,n){const a=Xy();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 yc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l}=Qn(e,n);return t.jsx(mo,{...a,index:r,stepIndex:o,isLast:i,onDone:l})}function vc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(uo,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function xc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(po,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function _c({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(ho,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function wc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(lc,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function Qy({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Qn(e,n);return t.jsx(Jy,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function bo(...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 e5(e){return bo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function kc(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=bo(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 Ac(e){const{score:n,contextsLength:a,results:r=[],subtitle:o,onReplay:i,onClose:l,inline:c=!1}=e||{},{t:u}=pe.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=kc(f),b=bo(f?.wording,f?.label);return v===!0?{variant:"main",label:b??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:v===!1?{variant:"danger",label:b??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:b??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??{},b=e5(v)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:x,label:_}=d(v),g=Array.isArray(v.corrects)?v.corrects:[],A=g.length?g.join(", "):v.answer!=null&&v.answer!==""?String(v.answer):null,w=typeof v.selectedText=="string"?v.selectedText:null,S=kc(v)===!0;return{problem:b,variant:x,label:_,answer:A,selectedText:w,isCorrect:S}}),[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(ce,{htmlType:"button",size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>f(i)}),t.jsx(ce,{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(ut,{variant:f.variant,label:f.label,fill:"soft",minWidth:80})})]},v))]})})]})})}function t5(e){s.useEffect(()=>{if(!e)return;const n=new Date;return()=>{const a=new Date;a.getTime()-n.getTime()<5e3||D0({trainingType:e,startedAt:n.toISOString(),endedAt:a.toISOString()})}},[e])}function yo(e,n){return e&&e.id||`page-${n??0}`}function vo(e,n){return e&&e.key||`step-${n??0}`}function Ya(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function n5(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const Nc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),a5=e=>t.jsx(Ac,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function r5(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:b,ariaLabel:x,label:_,buildResults:g,onResult:A,typeKey:w,entryPoint:S,dailyTotal:N,itemRef:k,renderResultPopup:B,noiseOverride:V}=e;t5(w&&!Nc.has(w)?w:"");const H=s.useRef(0);s.useEffect(()=>{H.current=Date.now()},[]);const{t:j}=pe.useTranslation(),F=A,T=!!n,Y=n?.id||null,R=n?.meta||{},O=Array.isArray(n?.pages)?n.pages:[],W=Array.isArray(b)||s.isValidElement(b)&&typeof b!="function"?s.Children.toArray(b).filter(s.isValidElement):[],le=W.length>0,q=ae=>ae===Ka||ae?.__isTrainingPage===!0,P=le&&W.some(ae=>q(ae.type)),M=P?W.filter(ae=>q(ae.type)).map((ae,G)=>{const ne=ae.props||{};return{id:`children-page-${G}`,steps:s.Children.toArray(ne.children).filter(s.isValidElement),pageTop:ne.pageTop||ne.top||null,pageBottom:ne.pageBottom||ne.bottom||null}}):[{id:"children-page-0",steps:W}],L=le&&!T&&typeof b!="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 G=Number(ae.dataset.ihabTrainingPopupCount||"1")-1;G>0?ae.dataset.ihabTrainingPopupCount=String(G):(delete ae.dataset.ihabTrainingPopupCount,ae.classList.remove("ihab-training-popup-open"))}},[]),s.useEffect(()=>{if(!(typeof document>"u"||!document.body))return c4()},[]);const[$,E]=s.useState({...va,enabled:!1}),I=s.useRef($);s.useEffect(()=>{I.current=$},[$]);const oe=s.useRef(V),re=s.useRef(!1),ee=s.useRef(null);s.useEffect(()=>{let ae=!1;const G=ne=>{if(ae)return;re.current=!0;const ke=ne?ya({...va,enabled:!1},ne):{...va},Ne=ee.current;ee.current=null;const Be=Ne?ya(ke,Ne):ke;I.current=Be,E(Be),Ne&&!oe.current&&Ds(Be),Sa(Be);const qe=oe.current;if(qe){const X=typeof qe=="function"?qe(Be):qe,he=ya(Be,X);I.current=he,E(he),Sa(he)}};return M0().then(G),()=>{ae=!0}},[]);const[se,Ce]=s.useState(null),[Z,ie]=s.useState(null),J=s.useCallback((ae,G)=>{ae==="main"?Ce(G):ie(G)},[]),be=s.useCallback(ae=>{const G=ya(I.current,ae);if(I.current=G,E(G),!re.current){ee.current={...ee.current??{},...ae},Sa(G);return}oe.current||Ds(G),Sa(G)},[]),ve=$.mainSpeed,Te=$.mainVolume,de=s.useCallback(ae=>be({mainSpeed:ae}),[be]),ye=s.useCallback(ae=>be({mainVolume:ae}),[be]),we=s.useMemo(()=>({settings:$,setSettings:be,registerAnalyser:J,mainAnalyser:se,noiseAnalyser:Z,playbackRate:ve,setPlaybackRate:de,mainVolume:Te,setMainVolume:ye}),[$,be,J,se,Z,ve,de,Te,ye]),Q=s.useRef(null),[te,_e]=s.useState(0),[je,ze]=s.useState("center"),[Me,Oe]=s.useState(!1),Re=s.useRef(!1),tt=s.useRef(null),Ke=s.useCallback(ae=>{Re.current||(Re.current=!0,Oe(!0),tt.current=setTimeout(()=>{try{ae()}catch{Re.current=!1,Oe(!1)}},Ey))},[]);s.useEffect(()=>()=>{tt.current&&clearTimeout(tt.current)},[]);const Ue=s.useRef(h);s.useEffect(()=>{Ue.current=h}),s.useEffect(()=>{const ae=Q.current,G=document.activeElement;if(Er(ae,G),ae){const ne=Array.from(ae.querySelectorAll(Ln)).filter(ke=>!ke.closest('[aria-hidden="true"]'))[0];if(ne)try{ne.focus()}catch{}}return()=>{const ne=document.activeElement;if(!ne||ne===document.body||ae&&ae.contains(ne))try{Mr(G)?.focus?.()}catch{}}},[]),s.useEffect(()=>$n(()=>Ke(()=>{const ae=Ue.current;typeof ae=="function"&&ae()})),[Ke]),vr(Q,!0);const[fe,Ge]=s.useState(!1),Ee=s.useRef(!1),[$e,He]=s.useState(null),Ye=s.useRef(0),gt=()=>{Ye.current+=1,He(null)},[dt,st]=s.useState(""),[nt,at]=s.useState(()=>Ya()),Fe=s.useRef(typeof u=="number"?u:null);s.useEffect(()=>{!T&&!L||(at(Ya()),gt())},[T,Y,L]),s.useEffect(()=>{L&&at(ae=>{const G=Math.max(0,Math.min(ae.pageIndex,Math.max(0,z-1)));return G!==ae.pageIndex?{...ae,pageIndex:G,stepIndex:0}:ae})},[L,z]);const Qe=L?Math.max(0,Math.min(nt.pageIndex,z-1)):0,Xe=L?M[Qe]:null,rt=L&&Xe&&Array.isArray(Xe.steps)?Xe.steps:[],Pe=T?nt.pageIndex:L?Qe:typeof u=="number"?u:0,Je=T?O[Math.max(0,Math.min(nt.pageIndex,Math.max(0,O.length-1)))]:null,yt=T&&Je&&Array.isArray(Je.steps)?Je.steps:[],Ut=T?yt.length:L?rt.length:typeof m=="number"?m:0,mt=T||L?Math.max(0,Math.min(nt.stepIndex,Math.max(0,Ut))):typeof p=="number"?p:0,xt=T?O.length:L?z:typeof d=="number"?d:0;s.useLayoutEffect(()=>{const ae=Fe.current;if(typeof Pe=="number"&&ae!==null&&Pe!==ae&&Pe>ae)try{st(j("training.problemNotice",{n:Pe+1}))}catch{}Fe.current=typeof Pe=="number"?Pe:Fe.current},[Pe,u,j]),s.useLayoutEffect(()=>{const ae=Q.current;if(!ae)return;const G=()=>ae.querySelector(".page-popup__scroll");let ne=null,ke=null,Ne=null;const Be=Le=>{const De=G();if(!De)return;const Ve=De.scrollHeight<=De.clientHeight;if(ze(Ve?"center":"top"),Le&&!Ee.current){Ee.current=!0;try{Ge(!0)}catch{}try{he.disconnect()}catch{}}},qe=()=>{ne!==null&&cancelAnimationFrame(ne),ne=requestAnimationFrame(()=>{ke!==null&&clearTimeout(ke),ke=setTimeout(()=>Be(!0),60)})},X=()=>{Ne!==null&&cancelAnimationFrame(Ne),Ne=requestAnimationFrame(()=>Be(!1))};qe(),window.addEventListener("resize",X);const he=new MutationObserver(qe);he.observe(ae,{childList:!0,subtree:!0,attributes:!0});const Ae=setTimeout(()=>{Ee.current||Be(!0)},400);return()=>{window.removeEventListener("resize",X),ne!==null&&cancelAnimationFrame(ne),ke!==null&&clearTimeout(ke),Ne!==null&&cancelAnimationFrame(Ne),clearTimeout(Ae);try{he.disconnect()}catch{}}},[Q]);const Ft=s.useCallback(ae=>{Q.current&&(Q.current._childOnNext=ae)},[]),Gt=s.useCallback(ae=>{Q.current&&(Q.current._childOnResult=ae)},[]),_t=s.useCallback((ae,G,ne)=>{at(ke=>{const Ne=ke.answersByPage[ae]||{},Be=Ne[G],qe=go(ne),X=go(Be);return Be&&X>qe?ke:{...ke,answersByPage:{...ke.answersByPage,[ae]:{...Ne,[G]:ne}}}})},[at]),lt=s.useCallback((ae,G,ne)=>{const ke=yo(Je,Pe),Ne=vo(ae,G);_t(ke,Ne,ne)},[Je,Pe,_t]),Kt=s.useCallback((ae,G,ne)=>{const ke=yo(Je,Pe),Ne=vo(ae,G);_t(ke,Ne,ne),!ne?.allowChange&&ae?.autoAdvance!==!1&&at(Be=>({...Be,stepIndex:Math.max(Be.stepIndex,G+1)}))},[Je,Pe,_t,at]),Rt=s.useCallback((ae,G)=>{const ne=Xe?.id||`children-page-${Pe??0}`,ke=typeof G=="number"?G:mt??0,Ne=`step-${ke}`;_t(ne,Ne,ae),ae?.allowChange||at(Be=>({...Be,stepIndex:Math.max(Be.stepIndex,ke+1)}))},[Xe,Pe,mt,_t,at]),yn=s.useCallback((ae,G)=>{const ne=Xe?.id||`children-page-${Pe??0}`,ke=`step-${typeof G=="number"?G:mt??0}`;_t(ne,ke,ae)},[Xe,Pe,mt,_t]),Dn=L?{currentPageIndex:Pe??0,currentStepIndex:mt??0,totalStepsInPage:rt.length,handleStepDone:Rt,handleStepChange:yn}:null,et=async()=>{const ae=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:O,flowState:nt,answersByPage:nt.answersByPage})):null;return typeof F=="function"&&await Promise.resolve(F(ae))||ae},Ot=async()=>{const ae=Xe?.id||`children-page-${nt.pageIndex}`,G=nt.answersByPage[ae]||{},ne=P?(()=>{const Be={};let qe=0;return M.forEach(X=>{const he=nt.answersByPage[X.id]||{},Ae=Array.isArray(X.steps)?X.steps.length:0;for(let Le=0;Le<Ae;Le+=1){const De=he[`step-${Le}`];typeof De<"u"&&(Be[`step-${qe+Le}`]=De)}qe+=Ae}),Be})():G;if(typeof g=="function"){const Be=await Promise.resolve(g(ne,{pageAnswers:G,answersByPage:nt.answersByPage,pages:M,currentPageId:ae}));return typeof F=="function"&&await Promise.resolve(F(Be))||Be}const ke=Object.entries(G).map(([Be,qe],X)=>({index:X,key:Be,payload:qe})),Ne={results:ke,answers:ke,score:0};return typeof F=="function"&&await Promise.resolve(F(Ne))||Ne},wt=()=>{const ae=++Ye.current,G=()=>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 Ne=et();He({});const Be=Ne;Promise.resolve(Be).then(qe=>{G()||He(qe||{isEmpty:!0})}).catch(qe=>{!G()&&He({isEmpty:!0})});return}if(L){const Ne=Ot();He({});const Be=Ne;Promise.resolve(Be).then(qe=>{G()||He(qe||{isEmpty:!0})}).catch(qe=>{!G()&&He({isEmpty:!0})});return}const ne=Q.current&&Q.current._childOnResult,ke=Ne=>{try{return Ne?Ne():void 0}catch{return}};if(typeof ne=="function"){const Ne=ke(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&&typeof Ne.then!="function"?He(Ne):He(Ne&&typeof Ne.then=="function"?{}:{}),Promise.resolve(Ne).then(Be=>{Be&&!G()&&He(Be)}).catch(Be=>{});return}if(typeof F=="function"){const Ne=ke(F);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&&typeof Ne.then!="function"?He(Ne):He(Ne&&typeof Ne.then=="function"?{}:{}),Promise.resolve(Ne).then(Be=>{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{}Be&&!G()&&He(Be)}).catch(Be=>{console.error("viewResults external handler failed",Be)});return}},Ht=()=>{if(T){if(typeof Pe=="number"&&typeof xt=="number"&&Pe<xt-1){at(G=>({...G,pageIndex:G.pageIndex+1,stepIndex:0}));return}return wt()}if(L){const G=rt.length;if(typeof mt=="number"&&mt<G-1){at(ne=>({...ne,stepIndex:ne.stepIndex+1}));return}if(typeof Pe=="number"&&typeof xt=="number"&&Pe<xt-1){at(ne=>({...ne,pageIndex:ne.pageIndex+1,stepIndex:0}));return}return wt()}if(typeof y=="function"){try{y()}catch{}return}const ae=Q.current&&Q.current._childOnNext;if(typeof ae=="function"){try{ae()}catch{}return}},Vt=T?R.title||R.label||x||j("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(o)?o[o.length-1]:void 0)||x||j("common.popup","\uD31D\uC5C5"),zt=T?R.title??R.label??Vt:a??_??Vt,sn=(ae,G)=>{const ne=yo(Je,Pe),ke=vo(ae,G),Ne=nt.answersByPage[ne]?.[ke],Be=n5(ae,{page:Je,pageIndex:Pe,step:ae,stepIndex:G,storedPayload:Ne,answersByPage:nt.answersByPage,flowState:nt}),qe={key:ke,index:G,stepIndex:mt,isLast:G===yt.length-1};switch(ae?.type){case"listen":return t.jsx(mo,{...qe,...Be,onDone:X=>Kt(ae,G,X)});case"confirm":return t.jsx(uo,{...qe,...Be,onDone:X=>Kt(ae,G,X),onChange:X=>lt(ae,G,X)});case"confirmWithText":return t.jsx(po,{...qe,...Be,onDone:X=>Kt(ae,G,X),onChange:X=>lt(ae,G,X)});case"orderList":return t.jsx(ho,{...qe,...Be,onDone:X=>Kt(ae,G,X),onChange:X=>lt(ae,G,X)});default:return null}},ln=s.useRef(void 0);s.useEffect(()=>{const ae=ln.current;if(ln.current=Pe,ae===void 0||ae===Pe||!Ia())return;const G=Q.current;if(!G)return;const ne=document.activeElement;if(!(!ne||ne===document.body||!G.contains(ne)||ne.disabled===!0))return;const ke=G.querySelector(`.training-steps ${Ln.split(", ").join(", .training-steps ")}`)??Array.from(G.querySelectorAll(Ln)).find(Ne=>!Ne.closest('[aria-hidden="true"]'));try{ke?.focus()}catch{}},[Pe]);const Wt=T?O.length>0?t.jsx("div",{className:"training-steps",children:yt.map((ae,G)=>sn(ae,G))},`replay-${te}`):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,cn=L?t.jsxs(bc.Provider,{value:Dn,children:[Xe?.pageTop?t.jsx("div",{className:"training-page-top",children:Xe.pageTop}):null,t.jsx("div",{className:"training-steps",children:rt.map((ae,G)=>{const ne=ae;return s.cloneElement(ne,{...ne.props,_stepIndex:G,_totalSteps:rt.length,_stepKey:`step-${G}`,_pageIndex:Pe})})},`replay-${te}`),Xe?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:Xe.pageBottom}):null]}):null,nn=s.useCallback(()=>{let ae;if(w){const G=$e,ne=G?.results||G?.answers||[],ke=Array.isArray(ne)&&ne.length>0?ne.length:null,Ne=Array.isArray(ne)?ne.filter(qe=>qe?.correct===!0||qe?.isCorrect===!0||qe?.score===1||qe?.heard===!0||qe?.judgement===!0).length:null,Be=ke!=null?Ne:null;T0({items:E0(ne),category:Nc.has(w)?"sentence":"word",trainingType:w,entryPoint:S??"sentence",itemRef:k??null,correct:Be,total:ke,score:typeof G?.score=="number"?G.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-H.current)/1e3)),dailyTotal:N??null}),ae={correct:Be,total:ke}}gt(),Ke(()=>{typeof C=="function"&&C(ae),typeof h=="function"&&h()})},[C,h,w,S,N,k,$e,He,Ke]),ht=s.useCallback(()=>st(""),[st]),Yt=s.useCallback(()=>{Ke(()=>{typeof h=="function"&&h()})},[h,Ke]),Zt=t.jsxs("div",{className:`page-popup${Me?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Vt,children:[t.jsxs("div",{ref:Q,className:`page-popup__panel ${fe?"":"page-popup__panel--measuring"} ${je==="center"?"page-popup__panel--center":je==="top"?"page-popup__panel--top":""}`,children:[t.jsx(hc,{title:zt,subtitle:T?R.subtitle||R.label:Array.isArray(o)?o.join(" / "):void 0,desc:T?void 0:r,depth:T?R.depth:o,icon:T?R.icon:i,wrapperStyle:T?R.wrapperStyle:l,iconTooltip:T?R.iconTooltip:c,progressMax:xt,progressIndex:Pe,pageIndex:Pe,pageCount:xt,onBack:Yt,onClose:Yt}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${je==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:L?cn:T?Wt:typeof b=="function"?b({registerOnNext:Ft,registerOnResult:Gt,panelRef:Q,setResultOverlay:He}):b})}),t.jsx(mc,{onSettings:f,onNext:Ht,onResult:wt,useNoiseSettingBtn:!!(T?R.useNoiseSetting??!0:v),stepIndex:mt,stepCount:Ut,pageIndex:Pe,pageCount:xt})]}),$e&&!$e.isEmpty&&(B??a5)({score:$e.score,results:$e.results||$e.answers||[],contextsLength:$e.results?$e.results.length:$e.answers?$e.answers.length:0,onReplay:()=>{if(gt(),_e(ae=>ae+1),T){if(at(Ya()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(L){at(Ya());return}try{const ae=Q.current&&Q.current._childOnResult;typeof ae=="function"&&ae({replay:!0})}catch{}},onClose:nn}),$e?.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(ce,{htmlType:"button",variant:"main",size:48,onClick:nn,label:j("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(Gn,{message:dt,position:"top",onClose:ht})]}),Tt=t.jsx(ro.Provider,{value:we,children:Zt});return typeof document<"u"&&document.body?qt.createPortal(Tt,document.body):Tt}const Sn=r5;Sn.Page=Ka,Sn.ListenStep=yc,Sn.ConfirmStep=vc,Sn.ConfirmWithTextStep=xc,Sn.OrderListStep=_c,Sn.CardStep=wc,Sn.CardOrderStep=Qy;function o5({label:e,homonum:n}){const a=Wn()?.(e,n)??"",{imgRef:r,loading:o,hasImage:i,onLoad:l,onError:c}=qr(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 Bc({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:qt.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(o5,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const s5=new Intl.Collator("ko");function i5({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:b,i18n:x}=pe.useTranslation(),_=x.language?.startsWith("ko")??!1,{anchorRect:g,openAt:A,close:w}=ja(),[S,N]=s.useState(null),k=s.useCallback(()=>{w(),N(null)},[w]);b2(k,!!S);const B=(r??"").trim(),V=/^[^,[\]\s]+$/.test(B)?B:"",H=V.length>0,[j,F]=s.useState(()=>H?"match":"ganada"),[T,Y]=s.useState("50"),[R,O]=s.useState(1),[W,le]=s.useState(H);W!==H&&(le(H),F(H?"match":"ganada"));const q=j==="match"&&!H?"ganada":j,P=s.useMemo(()=>[...H?[{value:"match",label:b("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:b("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:b("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:b("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:b("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:b("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:b("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[b,H]),M=s.useMemo(()=>["10","25","50","100"].map(de=>({value:de,label:b("wordSearch.pageSize",{count:Number(de),defaultValue:`${de}\uAC1C\uC529 \uBCF4\uAE30`})})),[b]),L=de=>de.words[0],z=s.useMemo(()=>{const de=[...V].length,ye=m0(V),we=new Map;return Q=>{let te=we.get(Q);return te===void 0&&(te=ye((Q.words[0]?.label??"").slice(0,de))?0:1,we.set(Q,te)),te}},[V]),$=s.useCallback((de,ye)=>{const we=_e=>L(_e)?.label??"",Q=_e=>L(_e)?.syllables??[...we(_e)].length,te=_e=>{const je=parseInt(L(_e)?.grade??"",10);return Number.isFinite(je)?je:999};switch(q){case"match":return z(de)-z(ye)||s5.compare(we(de),we(ye));case"ganada":return we(de).localeCompare(we(ye),"ko");case"ganada_desc":return we(ye).localeCompare(we(de),"ko");case"syllable":return Q(de)-Q(ye)||we(de).localeCompare(we(ye),"ko");case"syllable_desc":return Q(ye)-Q(de)||we(de).localeCompare(we(ye),"ko");case"grade":return te(de)-te(ye)||we(de).localeCompare(we(ye),"ko");case"grade_desc":return te(ye)-te(de)||we(de).localeCompare(we(ye),"ko");default:return 0}},[q,z]),E=s.useMemo(()=>o.slice().sort($),[o,$]),I=Number(T)||10,oe=s.useMemo(()=>(i??[]).flatMap(de=>de.items.slice().sort($).map(ye=>({item:ye,label:de.label}))),[i,$]),re=i?oe.length:E.length,ee=Math.max(1,Math.ceil(re/I)),se=Math.min(R,ee),Ce=s.useMemo(()=>E.slice((se-1)*I,se*I),[E,se,I]),Z=s.useMemo(()=>{if(!i)return null;const de=oe.slice((se-1)*I,se*I),ye=new Map;for(const{item:we,label:Q}of de)ye.has(Q)||ye.set(Q,[]),ye.get(Q).push(we);return[...ye.entries()].map(([we,Q])=>({label:we,items:Q}))},[i,oe,se,I]);s.useEffect(()=>{O(1)},[j,T,re,r]);const ie=re>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(en,{size:40,options:P,value:q,onChange:F,ariaLabel:b("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(en,{size:40,options:M,value:T,onChange:Y,ariaLabel:b("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(Ma,{page:se,totalPages:ee,onChange:O})]}):void 0,J=de=>{c&&c(de)},be=n!==void 0&&a?t.jsxs(t.Fragment,{children:[b("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),b("wordSearch.resultTitleSuffix",{unit:_?_0(a):a})]}):void 0,ve=n!==void 0&&n>0&&u!==void 0&&a?b("wordSearch.resultDisc",{unit:_?k0(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}),ve?t.jsx("span",{className:"word-search-result-block__disc",children:ve}):null]}):ve);return t.jsxs(Kn,{type:y,icon:e,title:be,action:ie,disc:Te,className:ge("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:b("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(de=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:de.items.map(ye=>{const we=l.includes(ye.id);return t.jsx("div",{onMouseEnter:Q=>{A(Q.currentTarget),N(ye.words)},onMouseLeave:k,children:t.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:ye.words.map(Q=>Q.label),subLabel:ye.words.map(Q=>Q.subLabel).filter(Boolean).length>0?ye.words.map(Q=>Q.subLabel):void 0,selected:we,onClick:()=>J(ye.id),minWidth:200})},ye.id)})})},de.label)):t.jsx("div",{className:"word-search-result-block__items",children:Ce.map(de=>{const ye=l.includes(de.id);return t.jsx("div",{onMouseEnter:we=>{A(we.currentTarget),N(de.words)},onMouseLeave:k,children:t.jsx(ce,{htmlType:"button",size:"word",align:"grid",label:de.words.map(we=>we.label),subLabel:de.words.map(we=>we.subLabel).filter(Boolean).length>0?de.words.map(we=>we.subLabel):void 0,selected:ye,onClick:()=>J(de.id),minWidth:200})},de.id)})}),S&&g&&t.jsx(Bc,{words:S,anchorRect:g})]}),ee>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(Ma,{page:se,totalPages:ee,onChange:O})}),(d||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[d&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:b("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(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:b("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function l5(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 c5({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:b,searchDisabled:x=!1,searchLabel:_,searchChecking:g=!1,pairMode:A=!1,sectionType:w="page",beforeSearchContent:S,beforeContent:N,afterContent:k,hideCountControl:B=!1,ordinal:V=!1}){const{t:H}=pe.useTranslation(),j=s.useMemo(()=>H("wordPairs.infoNotes",{returnObjects:!0}),[H]),F=s.useMemo(()=>Array.from({length:o-i+1},($,E)=>{const I=i+E;return{key:String(I),label:H("wordPairs.count",{n:I})}}),[H,o,i]),T=s.useMemo(()=>H("wordPairs.ordinals",{returnObjects:!0}),[H]),Y=s.useCallback($=>V?H("wordPairs.phonemeOrdinalLabel",{ordinal:T[$-1]??$}):a===1?H("wordPairs.phonemeSingleLabel","\uC74C\uC808"):H("wordPairs.phonemeN",{n:$}),[V,T,a,H]),R=s.useCallback($=>V?H("wordPairs.phonemeContrastOrdinalLabel",{ordinal:T[$-1]??$}):a===1?H("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):H("wordPairs.phonemeContrast",{n:$}),[V,T,a,H]),O=s.useCallback(($,E)=>E?t.jsxs(t.Fragment,{children:[$,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):$,[]),{anchorRect:W,toggleAt:le,close:q}=ja(),P=s.useCallback($=>r(Number($)),[r]),M=rn("(max-width: 767px)"),L=s.useCallback($=>l5($,e).map(({label:E,value:I,displayLabel:oe})=>{const re=!!I&&I!=="\uC5C6\uC74C";return t.jsxs("span",{className:ge("phoneme-select-block__cell-jamo-part",I?"":"phoneme-select-block__cell-jamo-part--empty",re?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${I==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:I==="\uC5C6\uC74C"?"x":I||d}),re&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:oe??E})]},E)}),[e,d]),z=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(ce,{htmlType:"button",size:40,type:M?"dot":void 0,icon:"info",label:M?void 0:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!W,onClick:$=>le($.currentTarget)})}),W&&t.jsx(Rn,{title:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:j,anchorRect:W,onClose:q})]});return t.jsxs(Kn,{type:w,title:m,icon:h,disc:C,action:z,className:ge("phoneme-select-block",p),children:[N,(!B||y&&!(m||C))&&t.jsxs("div",{className:"phoneme-select-block__controls",children:[!B&&t.jsx(On,{options:F,value:String(a),onChange:P,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(($,E)=>{const I=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(I)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Y(E+1)})]},E)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:H("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map(($,E)=>{const I=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(I)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:R(E+1)})]},E)})})]}):n.map(($,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($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:Y(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(($,E)=>{const I=n[E*2]??{};return t.jsx(bn,{title:O(Y(E+1),E===0),sections:c?c(I,E*2):l,selected:I,onSelect:u?.(E*2),align:"newline"},E)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map(($,E)=>{const I=n[E*2+1]??{};return t.jsx(bn,{title:R(E+1),sections:c?c(I,E*2+1):l,selected:I,onSelect:u?.(E*2+1),align:"newline"},E)})})]}):n.map(($,E)=>t.jsx(bn,{title:O(Y(E+1),E===0),sections:c?c($,E):l,selected:$,onSelect:u?.(E),align:"newline"},E))})}),S&&t.jsx("div",{className:"phoneme-select-block__before-search",children:S}),(f||v||g)&&(()=>{const $=n.every(E=>Object.entries(E).every(([I,oe])=>!oe||I==="\uC885\uC131"&&oe==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:$?b:void 0,children:[f&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:H("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:$,onClick:$?void 0:f}),g?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:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):v&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:$||x,onClick:$||x?void 0:v})]})})(),k]})}function u5({title:e,sections:n,selected:a,onSelect:r,className:o}){const{t:i}=pe.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 d5({title:e,headerAction:n,sections:a,selected:r,onSelect:o,className:i}){const{t:l}=pe.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 p5({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:o,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=pe.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(ha,{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(ha,{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(ha,{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,b)=>{b===m.searchMode?a(v===m.explicit?"explicit":v===m.pick?"pick":"include"):b===m.phonemeOrder?o(v===m.orderMatch?"ordered":"unordered"):b===m.count?l(v===h(2)?2:1):b===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 m5(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:b,className:x=""}=e,{t:_}=pe.useTranslation(),g=i??_("common.search","\uAC80\uC0C9"),A=f??_("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[w,S]=s.useState(""),[N,k]=s.useState(c??r[0]?.key??""),[B,V]=s.useState(u),[H,j]=s.useState(String(y??C[0]??10)),[F,T]=s.useState(1);s.useEffect(()=>{T(1)},[w,H]);const Y=l!==null,R=s.useCallback((E,I)=>{if(!I)return!0;const oe=I.toLowerCase();return r.some(re=>{const ee=E[re.key];return ee==null?!1:String(ee).toLowerCase().includes(oe)})},[r]),O=l??R,W=s.useMemo(()=>{const E=Y?a.filter(I=>O(I,w)):a;return N?[...E].sort((I,oe)=>{const re=I[N]??"",ee=oe[N]??"";if(re===ee)return 0;const se=Ib(re,ee);return B?se:-se}):E},[a,w,N,B,Y,O]),le=Math.max(1,Math.ceil(W.length/Number(H)));F>le&&T(le);const q=Math.min(F,le),P=W.slice((q-1)*Number(H),q*Number(H)),M=s.useCallback(E=>{N===E?V(I=>!I):(k(E),V(!0))},[N]),L=s.useMemo(()=>{if(typeof v=="function"){const E=W.length,I=v(E);if(typeof I=="string"){const oe=I.lastIndexOf(String(E));if(oe>=0)return{prefix:I.slice(0,oe),suffix:I.slice(oe+String(E).length)}}return{label:I}}if(typeof v=="string"&&v.includes("{n}")){const[E,I]=v.split("{n}");return{prefix:E,suffix:I}}return{prefix:_("common.totalCountPrefix","\uCD1D "),suffix:_("common.totalCountSuffix","\uAC1C")}},[v,W.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&&N===E.key?B?"asc":"desc":null})),[r,N,B,M]),$=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:[b,"label"in L&&t.jsx("p",{className:"toolbar__count body-1",children:L.label}),t.jsx(Lr,{count:"label"in L?void 0:{value:W.length,prefix:L.prefix,suffix:L.suffix},search:Y?{value:w,onChange:S,placeholder:g}:void 0,pageSize:{options:$,value:H,onChange:j},pagination:{page:q,total:le,onChange:T}}),t.jsx(Hr,{size:"medium",gridTemplateColumns:o,resizable:!0,fields:z,items:P,onRowClick:m,renderRow:E=>{const I=p!=null?E.id!=null&&p.has(E.id):d!=null&&E.id===d;return r.map(oe=>({content:oe.render?oe.render(E):E[oe.key]??"",className:ge(oe.className,I&&"popup-list__row--selected")}))},empty:A})]})}function h5(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:b}=e,{t:x}=pe.useTranslation(),_=s.useRef(!1),[g,A]=s.useState(!1),w=async S=>{if(_.current)return;_.current=!0;const N=typeof document<"u"?document.activeElement:null;A(!0);let k=!1;try{k=await S()}finally{k||(_.current=!1,A(!1),requestAnimationFrame(()=>{const B=document.activeElement;(!B||B===document.body)&&N?.isConnected&&N.focus()}))}};return t.jsxs(Nn,{title:n,onClose:y,closeDisabled:g,inline:f,size:v,className:ge("confirm-popup",b),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||g,onClick:async({closeWithAnimation:S})=>{await w(async()=>{await d.onClick(S);const N=d.closeOnClick??!0;return N&&S(),N})}}]:[],...u?[]:[{label:c??x("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:g,onClick:({closeWithAnimation:S})=>S()}],{label:l??x("common.confirm","\uD655\uC778"),variant:p,disabled:m||g,onClick:async({closeWithAnimation:S})=>{await w(async()=>(await h(S),C&&S(),C))}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),o&&o.length>0&&t.jsx(Ga,{children:o.map((S,N)=>t.jsx(Bn,{label:S.label,children:t.jsx("span",{className:"panel-row__text body-2",children:S.value})},N))}),t.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}function f5({onApply:e,onCancel:n}){const{t:a}=pe.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(Ns(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 C5=200;function g5(e){return e.itemId?(W0()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function b5({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:o}=pe.useTranslation(),i=s.useMemo(()=>U0(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=g5(p);return h?t.jsx(zr,{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 Sc=["var(--color-main)","var(--color-sub)"],y5=2e3;function v5(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 Dc({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,b=(x,_)=>Array.from({length:x}).map((g,A)=>{const w=6+Math.random()*12,S=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),N=Sc[Math.floor(Math.random()*Sc.length)],k=Math.random()*300,B=(360+Math.random()*260)*r*1.2,V=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,H=Math.cos(V)*B,j=Math.sin(V)*B*1.35,F=Math.random()*720-360,T=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),Y=Math.random()>.7?"50%":"3px";return{id:`${_}-${A}`,side:_,size:S,color:N,delay:k,vx:H,vy:j,angularVel:F,life:T,borderRadius:Y}});return[...b(f,"left"),...b(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 q=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(q)}const f=1200,v=performance.now(),b=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,x=Math.max(60,(window.innerHeight||800)*.05),_=q=>Math.max(40,(q||window.innerWidth)*.02),g=b?.width||window.innerWidth||375,A=b?.height||window.innerHeight||812,w=q=>{const P=[...q].sort((M,L)=>M-L);return P[Math.floor(P.length/2)]||1},S=w(l.map(q=>Math.abs(q.vy))),N=w(l.map(q=>Math.abs(q.vx))),k=Math.sqrt(2*f*(A*.72+x))/S,B=S*k/f,V=g*.5/(N*B),H=(q,P,M)=>Math.min(M,Math.max(P,q)),j=H(k,.8,2.4),F=H(V,.7,2.2),T=a>0?a/y5:1,Y=l.map(q=>({...q,life:q.life*T,vx:q.vx*F,vy:q.vy*j,startTime:v+q.delay,ended:!1})),R=b?{x:b.left-_(b.width),y:b.top+b.height+x}:{x:-_(window.innerWidth),y:window.innerHeight+x},O=b?{x:b.left+b.width+_(b.width),y:b.top+b.height+x}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+x},W=q=>{let P=!1;for(const M of Y){const L=u.current[M.id];if(!L||!L)continue;if(q<M.startTime){L.style.display="none",P=!0;continue}if(!M._inited){const Z=M.side==="left"?R.x:O.x,ie=M.side==="left"?R.y:O.y;L.style.left=`${Z}px`,L.style.top=`${ie}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=v5(L,M.color)??"#FF0060"),M._inited=!0}const z=(q-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}P=!0;const E=M.side==="left"?R.x:O.x,I=M.side==="left"?R.y:O.y,oe=E+M.vx*z,re=I+M.vy*z+.5*f*z*z,ee=(M.angularVel||0)*z,se=oe-E,Ce=re-I;L.style.transform=`translate3d(${se}px, ${Ce}px, 0) rotate(${ee}deg)`,L.style.opacity=`${Math.max(0,1-z/$)}`}P?d.current=requestAnimationFrame(W):p.current?.()};d.current=requestAnimationFrame(W);const le=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const q=document.createElement("div");q.className="party-container",q.style.position="fixed",q.style.inset="0",q.style.pointerEvents="none",q.style.overflow="visible",q.style.zIndex="2147483647";for(const P of l){const M=document.createElement("span");M.className=`confetti confetti--${P.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=`${P.size}px`,M.style.height=`${Math.max(4,P.size*.6)}px`,M.style.background=P.color,M.style.borderRadius=P.borderRadius,M.style.transform="translate3d(0,0,0)",M.style.opacity="0",q.appendChild(M),u.current[P.id]=M}(document.body||h.current).appendChild(q),m.current=q}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(le),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"?qt.createPortal(y,h.current||document.body):y}function x5({trigger:e=0,active:n=!1}){const a=s.useRef(0);return s.useEffect(()=>{a.current=e},[e]),t.jsx(Dc,{active:n,trigger:e})}function _5({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}=pe.useTranslation();l2(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(ce,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:c}),t.jsx("h1",{className:"page-title__title h1",children:e}),o&&t.jsx("div",{className:"page-title__badge",children:t.jsx(ut,{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 w5(e){return e??""}const Tc=s.createContext({words:[],loading:!1});function k5(){return s.useContext(Tc)}function A5({words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return t.jsx(Tc.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function N5({items:e,actions:n,columns:a,flat:r=!1,className:o,style:i}){const l=a??e.length;return t.jsx("section",{className:ge("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 B5=(e,n)=>`${e} / ${n}`;function S5({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:o=B5,pageWidth:i,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=pe.useTranslation(),m=s.useRef(null),h=s.useRef(null),C=s.useRef(null),y=s.useRef(null),[f,v]=s.useState(null),[b,x]=s.useState(!1);s.useEffect(()=>{const j=m.current;if(!j)return;const F=()=>x(j.scrollWidth>j.clientWidth+1);if(F(),typeof ResizeObserver>"u")return;const T=new ResizeObserver(F);return T.observe(j),()=>T.disconnect()},[f]);const _=e.map(j=>`${j.id}\0${j.section??""}\0${j.group??""}`).join(""),g=f&&f.shape===_?f.pages:null,[A,w]=s.useState(0);s.useEffect(()=>{const j=y.current;if(!j||typeof ResizeObserver>"u")return;const F=new ResizeObserver(()=>w(j.offsetHeight));return F.observe(j),()=>F.disconnect()},[]),s.useLayoutEffect(()=>{const j=h.current,F=y.current;if(!j||!F)return;const T=L=>L.getBoundingClientRect().height||L.offsetHeight,Y=new Map;C.current?.querySelectorAll("[data-chrome-section]").forEach(L=>{Y.set(L.dataset.chromeSection??"",T(L))});const R=L=>T(F)-(Y.get(L??"")??0),O=Array.from(j.children).map(L=>T(L)),W=[];e.forEach((L,z)=>{const $=W[W.length-1],E=$?e[$[0]]:void 0;E&&L.group!=null&&E.group===L.group&&E.section===L.section?$.push(z):W.push([z])});const le=[];let q=[],P=0;const M=()=>{q.length&&le.push(q),q=[],P=0};W.forEach(L=>{const z=L.reduce((E,I)=>E+O[I],0),$=R(e[L[0]].section);q.length&&e[q[0]].section!==e[L[0]].section&&M(),q.length&&P+z>$&&M(),z>$?L.forEach(E=>{q.length&&P+O[E]>$&&M(),q.push(E),P+=O[E]}):(L.forEach(E=>q.push(E)),P+=z)}),M(),v({shape:_,pages:le})},[_,A,i,l,c]);const S=Tr,N=S,k=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:N,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),B=(j,F,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,F)})]})}),V=Array.from(new Set(e.map(j=>j.section??""))),H={...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:ge("report-doc",u),style:H,tabIndex:b?0:void 0,role:b?"group":void 0,"aria-label":b?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:V.map(j=>{const F=B(1,1,j||void 0);return t.jsxs("div",{"data-chrome-section":j,children:[F.header,F.footer]},j)})}),t.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(j=>t.jsx("div",{children:j.content},j.id))})]}),g&&t.jsx("div",{className:"report-doc__pages",children:g.map((j,F)=>{const{header:T,footer:Y}=B(F+1,g.length,e[j[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[T,j.map(R=>t.jsx("div",{children:e[R].content},e[R].id)),Y]},F)})})]})}function D5({title:e,fields:n,columns:a=4,className:r,style:o}){return t.jsxs("div",{className:ge("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 T5({title:e,message:n,actionLabel:a,onAction:r,icon:o,onClose:i,className:l=""}){const{t:c}=pe.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return t.jsxs("div",{className:ge("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(Mo,{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(ce,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}function j5({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:ge("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 E5({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}=pe.useTranslation(),f=r!=null,v=ge("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(ce,{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:b=>b.stopPropagation(),children:[o&&t.jsx(en,{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 M5="speechear:saved_word_tables";function L5(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 $5(){try{const e=localStorage.getItem(M5);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(L5):[]}catch{return[]}}function R5({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:b,saveOnly:x,tableName:_,nameValue:g,onNameChange:A,descriptionValue:w,onDescriptionChange:S,namePlaceholder:N,descriptionPlaceholder:k,existingNames:B,editingName:V,onCancel:H}){const{t:j}=pe.useTranslation(),F=u??j("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),T=r===void 0,Y=!!A,[R,O]=s.useState([]),W=(g??"").trim(),le=W||(N??"").trim(),q=(w??"").trim()||(k??"").trim(),P=(B??[]).map(G=>G.trim().toLowerCase()),M=[V?.trim().toLowerCase(),...R].filter(G=>!!G),L=[...P];for(const G of M){const ne=L.indexOf(G);ne!==-1&&L.splice(ne,1)}const z=W!==""&&L.includes(W.toLowerCase()),[$,E]=s.useState(Array(4).fill(null)),[I,oe]=s.useState(4),[re,ee]=s.useState(null),[se,Ce]=s.useState("landscape"),[Z,ie]=s.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[J,be]=s.useState("\uD45C\uC2DC"),[ve,Te]=s.useState(!0),[de,ye]=s.useState(!0),we=s.useRef(null),Q=s.useRef([]),[te,_e]=s.useState(8),[je,ze]=s.useState("right"),[Me,Oe]=s.useState(!1),[Re,tt]=s.useState(!1),{toastMessage:Ke,toastType:Ue,showWarning:fe,clearToast:Ge}=wi("warning"),Ee=s.useCallback(()=>ee(null),[ee]);C&&!T&&!h&&ea("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[$e,He]=s.useState(()=>Math.max(r?.length??1,1));s.useEffect(()=>{T||He(G=>Math.max(G,r?.length??1))},[r?.length,T]);const Ye=T?I:h?Math.max($e,r?.length??1):Math.max(r?.length??0,1),{width:gt,height:dt}=Yn[se],st=!T&&!h,nt=r?.length??0,at=Math.min(te,Math.max(nt,1)),Fe=st?at:Ye,Qe=st?Sl(r??[],Fe):null,Xe=!!Qe&&Qe.length>1,rt=T?$.some(G=>G!==null&&G.length>1):(r??[]).some(G=>G.words.length>1),Pe=_?.trim()||`${Es(Mn())} ${rt?j("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):j("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Je=s.useCallback(()=>Xe?Q.current.filter(G=>G!==null):we.current?[we.current]:[],[Xe]),{print:yt,openNewWindow:Ut,downloadHtml:mt}=Qr({getElements:Je,paperW:gt,paperH:dt,fileName:Pe,onPopupBlocked:()=>{fe(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."))}}),xt=G=>{oe(G),E(ne=>{const ke=Array(G).fill(null);return ne.slice(0,G).forEach((Ne,Be)=>{ke[Be]=Ne}),ke}),ee(null)},Ft=G=>{E(ne=>{const ke=[...ne];return ke[G]=null,ke}),re===G&&ee(null)},Gt=G=>{if(re===null)return;const ne=re;E(Ne=>{const Be=[...Ne];return Be[ne]=G,Be});const ke=$.findIndex((Ne,Be)=>Be>ne&&Ne===null);ee(ke!==-1?ke:null)},_t=T?$.some(G=>G?.some(ne=>!!ne.colloquialPronunciation)):(r??[]).some(G=>G.words.some(ne=>!!ne.colloquialLabel)),lt=s.useMemo(()=>Wn()?T?$.flatMap(G=>(G??[]).map(ne=>[ne.word,ne.homonum])):(r??[]).flatMap(G=>G.words.map(ne=>[ne.label,ne.homonum])):[],[T,$,r]),[Kt,Rt]=s.useState(!1);s.useEffect(()=>{if(lt.length===0)return;let G=!1;return Promise.all(lt.map(([ne,ke])=>_s(ne,ke))).then(ne=>{G||Rt(ne.some(Boolean))},()=>{}),()=>{G=!0}},[lt]);const yn=lt.length>0&&Kt,Dn=s.useMemo(()=>[...T||h?[{label:j("wordTable.filter.columns","\uCE78 \uC218"),items:Ab.map(G=>({value:`${G}\uCE78`,displayLabel:j("wordTable.filter.column",{count:G})})),display:"segmented"}]:[],...st&&(r?.length??0)>0?[Hl(j,{hasPairs:rt,itemCount:nt})]:[],...Xe?[Vl(j)]:[]],[j,T,h,st,r?.length,rt,nt,Xe]),et={...T||h?{[j("wordTable.filter.columns","\uCE78 \uC218")]:`${T?I:$e}\uCE78`}:{},...st&&(r?.length??0)>0?{[j(rt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${at}\uAC1C`}:{},...Xe?{[j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:zl[je]}:{}},Ot=(G,ne)=>{if(ne===j("wordTable.filter.columns","\uCE78 \uC218"))T?xt(parseInt(G)):He(parseInt(G));else if(ne===j(rt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")){const ke=parseInt(G);_e(Yr.includes(ke)?ke:Number.POSITIVE_INFINITY)}else ne===j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&ze(Wl(G))},wt=T?$.filter(G=>G!==null).map(G=>({id:G[0].word,words:G.map(ne=>({label:ne.word,subLabel:ne.pronunciation,homonum:ne.homonum}))})):r??[],Ht=(G=!1)=>{if(tt(G),Y&&o){const ne=le.trim().toLowerCase();ne&&O(ke=>ke.includes(ne)?ke:[...ke,ne]),o(le,wt,q||void 0,G);return}if(x&&o){o("",wt,void 0,G);return}if(o){Oe(!0);return}mt()},[Vt,zt]=s.useState(!1),[sn,ln]=s.useState(""),Wt=sn.trim(),cn=Wt!==""&&P.includes(Wt.toLowerCase()),nn=()=>{ln(le?j("wordTable.save.copyName",{name:le,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),zt(!0)},ht=()=>{!Wt||cn||!o||(o(Wt,wt,q||void 0,!0),zt(!1))},Yt=wt.length===0,Zt=Yt||Y&&(le===""||z),Tt=()=>{if(Yt){fe(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(Y&&le===""){fe(j("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}Y&&z&&fe(j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},ae=t.jsx(Zn,{items:wt,orientation:se,contentTypes:Z,cutLine:J,showOutline:ve,showDivLine:de,count:Ye});return t.jsxs(t.Fragment,{children:[t.jsxs(Kn,{type:"page",icon:n,title:e,disc:a,className:ge("word-table-block",y),children:[Vt&&t.jsx(Nn,{size:"small",title:p??j("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>zt(!1),footer:({closeWithAnimation:G})=>t.jsxs(t.Fragment,{children:[t.jsx(ce,{htmlType:"button",size:48,type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:G}),t.jsx(ce,{htmlType:"button",size:48,type:"bar",variant:"main",label:j("common.save","\uC800\uC7A5"),disabled:!Wt||cn,onClick:ht})]}),children:t.jsx(Fn,{label:j("wordTable.save.nameLabel","\uC774\uB984"),value:sn,onChange:ln,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:ht,error:cn?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Me&&o&&f?.({defaultName:typeof e=="string"?e:j("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:ae,previewW:gt,previewH:dt,items:wt,existingNames:$5().map(G=>G.name),saveAsNew:Re,onSave:(G,ne)=>{o(G,wt,ne,Re),Oe(!1)},onCancel:()=>Oe(!1)}),(T||C)&&re!==null&&v?.({cellIndex:re,onConfirm:T?Gt:G=>{if(C){const ne=G[0];ne&&C({id:ne.word,words:[{label:ne.word,subLabel:ne.pronunciation,homonum:ne.homonum}]})}ee(null)},onClose:Ee}),!b&&t.jsx(Zr,{hasImage:yn,hasColloquial:_t,contentTypes:Z,orientation:se,showOutline:ve,cutLine:J,showDivLine:de,setters:{setContentTypes:ie,setOrientation:Ce,setShowOutline:Te,setCutLine:be,setShowDivLine:ye},showCutLine:(st?Fe:Ye)>1,showDivLine2:rt,middleSections:Dn,extraSelected:et,onExtraSelect:Ot}),Xe&&Qe?t.jsx("div",{className:"word-table-block__pages",children:Qe.map((G,ne)=>t.jsx(Zn,{orientation:se,contentTypes:Z,cutLine:J,showOutline:ve,showDivLine:de,count:Fe,items:G,onRemoveItem:l,onReorder:m&&((ke,Ne)=>m(ke+ne*Fe,Ne+ne*Fe)),contentRef:ke=>{Q.current[ne]=ke},pageNumber:{current:ne+1,total:Qe.length},pageNumberPosition:je},ne))}):t.jsx(Zn,{orientation:se,contentTypes:Z,cutLine:J,showOutline:ve,showDivLine:de,count:Ye,items:T?void 0:r??[],editCells:T?$:void 0,activeCell:re,onActivateCell:T||C?ee:void 0,onRemoveCell:T?Ft:void 0,onRemoveItem:T?void 0:l,onReorder:T?void 0:m,showFillerAdd:!!C,contentRef:we}),Y&&!b&&t.jsxs(Ga,{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:g??"",onChange:A,placeholder:N?N+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:G=>{(G.key==="Tab"&&!G.shiftKey||G.key===" ")&&!(g??"").trim()&&(N??"").trim()&&(G.preventDefault(),A?.(N??""))}})}),t.jsx(Bn,{variant:"custom",label:j("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Fn,{value:w??"",onChange:S,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:G=>{(G.key==="Tab"&&!G.shiftKey||G.key===" ")&&!(w??"").trim()&&(k??"").trim()&&(G.preventDefault(),S?.(k??""))}})})]})]}),!b&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!x&&c&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:F,onClick:c}),!x&&i&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:j("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!x&&t.jsx(ce,{htmlType:"button",size:40,type:"bar",label:j("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Ut})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[H&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:H}),!x&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:j("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:yt}),p&&t.jsx(ce,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>Y?nn():Ht(!0),disabled:Yt,onDisabledClick:()=>{fe(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(ce,{htmlType:"button",size:"56",type:"bar",variant:"main",label:d??j("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Ht(!1),disabled:Zt,onDisabledClick:Tt})]})]}),t.jsx(Gn,{message:Ke,type:Ue,onClose:Ge})]})}function jc({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:ge("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 P5({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:b,className:x}){const{t:_}=pe.useTranslation(),g=b!=null,A=d!=null||p!=null||m!=null||h!=null,w=S=>{S.target===S.currentTarget&&!g&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),f?.())};return t.jsxs("div",{className:ge("word-table-button",y?"word-table-button--selected":"",A?"":"word-table-button--no-footer",x),role:"button",tabIndex:0,"aria-label":n,onClick:g?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(jc,{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:[b??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&&!g&&t.jsx(ce,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:_("common.moreFor",{name:n}),onClick:S=>{S.stopPropagation(),v(S)}})]}),(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?js(r,_):""}),t.jsxs("span",{className:"word-table-button__badges",children:[o&&t.jsx(ut,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??_("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&t.jsx(ut,{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:S=>{S.stopPropagation(),C?.()},children:d}),p&&t.jsx("span",{className:"training-card__date body-4",children:js(p,_)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[m!=null&&t.jsx(ut,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(m)}),h!=null&&t.jsx(ut,{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.
|