@ihabdevteam/core 0.253.0 → 0.255.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.
@@ -1,4 +1,4 @@
1
- "use strict";var t=require("react/jsx-runtime"),o=require("react"),St=require("i18next"),ye=require("react-i18next"),Xt=require("react-dom"),yn=typeof document<"u"?document.currentScript:null;function Nc(e){var n=Object.create(null);return e&&Object.keys(e).forEach(function(a){if(a!=="default"){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),n.default=e,Object.freeze(n)}var ns=Nc(o);function De(...e){return e.filter(Boolean).join(" ")}const as=new Set,br=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function an(e,...n){!br||as.has(e)||(as.add(e),console.warn(...n))}/**
1
+ "use strict";var t=require("react/jsx-runtime"),o=require("react"),St=require("i18next"),ye=require("react-i18next"),Xt=require("react-dom"),yn=typeof document<"u"?document.currentScript:null;function Nc(e){var n=Object.create(null);return e&&Object.keys(e).forEach(function(a){if(a!=="default"){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),n.default=e,Object.freeze(n)}var ns=Nc(o);function Ne(...e){return e.filter(Boolean).join(" ")}const as=new Set,br=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function an(e,...n){!br||as.has(e)||(as.add(e),console.warn(...n))}/**
2
2
  * @license lucide-react v1.38.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -824,7 +824,7 @@
824
824
  * This source code is licensed under the ISC license.
825
825
  * See the LICENSE file in the root directory of this source tree.
826
826
  */const l0=[["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"}]],u0=J("thumbs-up",l0),xs={"alert-triangle":ss,"align-start-vertical":Rc,anchor:fh,armchair:bh,"arrow-down":Ic,"arrow-left":Oc,"arrow-right":zc,"arrow-right-left":Wc,"arrow-up-a-z":vh,"audio-lines":Uc,baby:Kc,ban:Zc,"bar-chart-2":_h,bell:Jc,"book-marked":ed,"book-open":nd,"bow-arrow":rd,braces:sd,bug:ld,calendar:bs,"calendar-check":cd,"calendar-days":pd,camera:hd,car:Bh,"chart-column":fd,"chart-line":bd,"chart-pie":vd,check:is,"chevron-down":ys,"chevron-left":ls,"chevron-right":us,"chevron-up":vs,circle:t0,"clipboard-list":Bd,coffee:Nh,combine:Nd,copy:Ed,"chevrons-left-right-ellipsis":jd,"credit-card":Md,database:cs,diff:Rd,download:ds,ear:Fd,edit:Hd,"edit-2":Vd,"edit-3":qd,ellipsis:ps,eraser:Kd,"external-link":Zd,eye:Jd,"file-text":ep,"flip-horizontal":np,"folder-open":rp,"folder-plus":sp,gamepad:lp,"gamepad-2":Eh,clock:jh,target:Mh,percent:$h,gavel:cp,"git-merge":ms,globe:mp,"grip-vertical":Cp,headphones:gp,heart:yp,home:xp,inbox:Ph,info:wp,"key-round":Bp,landmark:Np,layers:Ep,"layout-dashboard":jp,leaf:Mp,lightbulb:$p,link:Pp,"link-2":Fp,"link-2-off":Hp,list:Vp,"list-checks":qp,"list-ordered":Gp,"list-tree":Fh,loader:Yp,lock:Xp,"log-out":Qp,mail:t1,"map-pin":a1,menu:o0,"message-circle":o1,"message-circle-question-mark":i1,"message-square":u1,"message-square-more":Hh,"message-square-text":d1,minus:Vh,"minus-circle":m1,moon:i0,"more-horizontal":ps,package:C1,palette:g1,"party-popper":y1,pause:x1,pencil:w1,phone:B1,play:N1,"play-circle":E1,plus:j1,printer:M1,"refresh-cw":$1,repeat:P1,replace:F1,rocket:H1,"rotate-ccw":V1,"rotate-cw":q1,salad:G1,"scan-search":Y1,search:Q1,"circle-alert":hs,"alert-circle":hs,"check-circle":Cs,scissors:tm,"search-x":am,send:om,settings:im,"share-2":qh,"shield-check":um,"shopping-cart":dm,shuffle:mm,"skip-back":Cm,"skip-forward":gm,sparkles:Gh,square:ym,star:xm,store:wm,"sun-medium":Bm,table:Nm,"table-2":Em,tag:jm,terminal:Mm,"text-cursor-input":$m,"text-initial":Pm,"thumbs-up":u0,ticket:Fm,trash:Vm,triangle:a0,"trash-2":Hm,"trending-up":qm,"triangle-alert":ss,trophy:Gm,type:Yh,unlink:Ym,upload:Xm,user:vr,"user-plus":eh,"user-round":nh,"user-round-check":rh,users:sh,"users-round":lh,volume:Xh,"volume-2":fs,wrench:dh,x:gs,zap:hh};function c0(e){return xs[e]??null}const _s=new Set;function d0(e){return br&&!(e in xs)&&!_s.has(e)&&(_s.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 p0=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 m0(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?p0(a):null}const ws=new Map;function h0(e){const n=typeof e=="string"?m0(e):null,a=n?c0(n)??ws.get(n)??null:null,[r,s]=o.useState(null);return o.useEffect(()=>{if(!n||a)return;let i=!1;return d0(n).then(l=>{ws.set(n,l),i||s(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 As(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 C0(e){if(Array.isArray(e))return e}function f0(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,s,i,l,u=[],d=!0,c=!1;try{if(i=(a=a.call(e)).next,n!==0)for(;!(d=(r=i.call(a)).done)&&(u.push(r.value),u.length!==n);d=!0);}catch(p){c=!0,s=p}finally{try{if(!d&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(c)throw s}}return u}}function g0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
827
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b0(e,n){return C0(e)||f0(e,n)||y0(e,n)||g0()}function y0(e,n){if(e){if(typeof e=="string")return As(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)?As(e,n):void 0}}const Bs=Object.entries,ks=Object.setPrototypeOf,v0=Object.isFrozen,x0=Object.getPrototypeOf,_0=Object.getOwnPropertyDescriptor;let kt=Object.freeze,Et=Object.seal,Yn=Object.create,Ns=typeof Reflect<"u"&&Reflect,xr=Ns.apply,_r=Ns.construct;kt||(kt=function(n){return n}),Et||(Et=function(n){return n}),xr||(xr=function(n,a){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return n.apply(a,s)}),_r||(_r=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return new n(...r)});const Fn=At(Array.prototype.forEach),w0=At(Array.prototype.lastIndexOf),Ds=At(Array.prototype.pop),pa=At(Array.prototype.push),A0=At(Array.prototype.splice),Zn=Array.isArray,ma=At(String.prototype.toLowerCase),wr=At(String.prototype.toString),Es=At(String.prototype.match),ha=At(String.prototype.replace),Ss=At(String.prototype.indexOf),B0=At(String.prototype.trim),k0=At(Number.prototype.toString),N0=At(Boolean.prototype.toString),js=typeof BigInt>"u"?null:At(BigInt.prototype.toString),Ts=typeof Symbol>"u"?null:At(Symbol.prototype.toString),Ut=At(Object.prototype.hasOwnProperty),Ca=At(Object.prototype.toString),$t=At(RegExp.prototype.test),On=D0(TypeError);function At(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return xr(e,n,r)}}function D0(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return _r(e,a)}}function ot(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ma;if(ks&&ks(e,null),!Zn(n))return e;let r=n.length;for(;r--;){let s=n[r];if(typeof s=="string"){const i=a(s);i!==s&&(v0(n)||(n[r]=i),s=i)}e[s]=!0}return e}function E0(e){for(let n=0;n<e.length;n++)Ut(e,n)||(e[n]=null);return e}function Jt(e){const n=Yn(null);for(const r of Bs(e)){var a=b0(r,2);const s=a[0],i=a[1];Ut(e,s)&&(Zn(i)?n[s]=E0(i):i&&typeof i=="object"&&i.constructor===Object?n[s]=Jt(i):n[s]=i)}return n}function S0(e){switch(typeof e){case"string":return e;case"number":return k0(e);case"boolean":return N0(e);case"bigint":return js?js(e):"0";case"symbol":return Ts?Ts(e):"Symbol()";case"undefined":return Ca(e);case"function":case"object":{if(e===null)return Ca(e);const n=e,a=rn(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:Ca(r)}return Ca(e)}default:return Ca(e)}}function rn(e,n){for(;e!==null;){const r=_0(e,n);if(r){if(r.get)return At(r.get);if(typeof r.value=="function")return At(r.value)}e=x0(e)}function a(){return null}return a}function j0(e){try{return $t(e,""),!0}catch{return!1}}const Ms=kt(["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"]),Ar=kt(["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"]),Br=kt(["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"]),T0=kt(["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"]),kr=kt(["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"]),M0=kt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ls=kt(["#text"]),$s=kt(["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"]),Nr=kt(["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=kt(["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"]),Oa=kt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L0=Et(/{{[\w\W]*|^[\w\W]*}}/g),$0=Et(/<%[\w\W]*|^[\w\W]*%>/g),R0=Et(/\${[\w\W]*/g),P0=Et(/^data-[\-\w.\u00B7-\uFFFF]+$/),I0=Et(/^aria-[\-\w]+$/),Ps=Et(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F0=Et(/^(?:\w+script|data):/i),O0=Et(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),H0=Et(/^html$/i),z0=Et(/^[a-z][.\w]*(-[.\w]+)+$/i),Is=Et(/<[/\w!]/g),Fs=Et(/<[/\w]/g),V0=Et(/<\/no(script|embed|frames)/i),W0=Et(/\/>/i),Qt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Os=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],q0=kt(ot({},Os)),U0=(function(){const e={};return Fn(Os,n=>{e[n]=Et(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),kt(e)})(),G0=function(){return typeof window>"u"?null:window},K0=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";a&&a.hasAttribute(s)&&(r=a.getAttribute(s));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}},Hs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Dn=function(n,a,r,s){return Ut(n,a)&&Zn(n[a])?ot(s.base?Jt(s.base):{},n[a],s.transform):r},Dr=function(n,a,r){const s=Ut(n,a)?n[a]:void 0;return s&&typeof s=="object"?Jt(s):r()};function zs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:G0();const n=Ae=>zs(Ae);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==Qt.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,s=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,u=e.Element,d=e.NodeFilter,c=e.NamedNodeMap;c===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,C=u.prototype,g=rn(C,"cloneNode"),v=rn(C,"remove"),b=rn(C,"nextSibling"),y=rn(C,"childNodes"),w=rn(C,"parentNode"),h=rn(C,"shadowRoot"),_=rn(C,"attributes"),f=l&&l.prototype?rn(l.prototype,"nodeType"):null,A=l&&l.prototype?rn(l.prototype,"nodeName"):null,x=l&&l.prototype?rn(l.prototype,"ownerDocument"):null,N=function(T){return f?f(T):T.nodeType},k=function(T){return A?A(T):T.nodeName};if(typeof i=="function"){const Ae=a.createElement("template");Ae.content&&Ae.content.ownerDocument&&(a=Ae.content.ownerDocument)}let B,E="",S,z=!1,R=0;const q=function(){if(R>0)throw On('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(T){q(),R++;try{return B.createHTML(T)}finally{R--}},L=function(T){q(),R++;try{return B.createScriptURL(T)}finally{R--}},O=function(){return z||(S=K0(m,s),z=!0),S},Z=a,te=Z.implementation,W=Z.createNodeIterator,U=Z.createDocumentFragment,P=Z.getElementsByTagName,F=r.importNode;let D=Hs();n.isSupported=typeof Bs=="function"&&typeof w=="function"&&te&&te.createHTMLDocument!==void 0;const H=L0,M=$0,I=R0,$=P0,K=I0,ne=F0,X=O0,ae=z0;let ue=Ps,le=null;const be=ot({},[...Ms,...Ar,...Br,...kr,...Ls]);let V=null;const ee=ot({},[...$s,...Nr,...Rs,...Oa]);let oe=Object.seal(Yn(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}})),Be=null,Ce=null;const se=Object.seal(Yn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ge=!0,fe=!0,xe=!1,$e=!0,Le=!1,Qe=!0,Ue=!1,ze=!1,Ie=null,st=null,Xe=!1,Je=!1,Ee=!1,ke=!1,Me=!0,Ve=!1;const lt="user-content-";let Q=!0,ce=!1,me={},Se=null;const et=ot({},["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 Ke=null;const bt=ot({},["audio","video","img","source","image","track"]);let ut=null;const it=ot({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",Ge="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml";let Re=Ye,We=!1,Fe=null;const ct=ot({},[tt,Ge,Ye],wr),Bt=kt(["mi","mo","mn","ms","mtext"]);let Nt=ot({},Bt);const Ct=kt(["annotation-xml"]);let dt=ot({},Ct);const Oe=ot({},["title","style","font","a","script"]);let at=null;const ft=["application/xhtml+xml","text/html"],Ot="text/html";let nt=null,Tt=null;const Yt=a.createElement("form"),Mt=function(T){return T instanceof RegExp||T instanceof Function},un=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Tt&&Tt===T)return;(!T||typeof T!="object")&&(T={}),T=Jt(T),at=ft.indexOf(T.PARSER_MEDIA_TYPE)===-1?Ot:T.PARSER_MEDIA_TYPE,nt=at==="application/xhtml+xml"?wr:ma,le=Dn(T,"ALLOWED_TAGS",be,{transform:nt}),V=Dn(T,"ALLOWED_ATTR",ee,{transform:nt}),Fe=Dn(T,"ALLOWED_NAMESPACES",ct,{transform:wr}),ut=Dn(T,"ADD_URI_SAFE_ATTR",it,{transform:nt,base:it}),Ke=Dn(T,"ADD_DATA_URI_TAGS",bt,{transform:nt,base:bt}),Se=Dn(T,"FORBID_CONTENTS",et,{transform:nt}),Be=Dn(T,"FORBID_TAGS",Jt({}),{transform:nt}),Ce=Dn(T,"FORBID_ATTR",Jt({}),{transform:nt}),me=Ut(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?Jt(T.USE_PROFILES):T.USE_PROFILES:!1,ge=T.ALLOW_ARIA_ATTR!==!1,fe=T.ALLOW_DATA_ATTR!==!1,xe=T.ALLOW_UNKNOWN_PROTOCOLS||!1,$e=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=T.SAFE_FOR_TEMPLATES||!1,Qe=T.SAFE_FOR_XML!==!1,Ue=T.WHOLE_DOCUMENT||!1,Je=T.RETURN_DOM||!1,Ee=T.RETURN_DOM_FRAGMENT||!1,ke=T.RETURN_TRUSTED_TYPE||!1,Xe=T.FORCE_BODY||!1,Me=T.SANITIZE_DOM!==!1,Ve=T.SANITIZE_NAMED_PROPS||!1,Q=T.KEEP_CONTENT!==!1,ce=T.IN_PLACE||!1,ue=j0(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:Ps,Re=typeof T.NAMESPACE=="string"?T.NAMESPACE:Ye,Nt=Dr(T,"MATHML_TEXT_INTEGRATION_POINTS",()=>ot({},Bt)),dt=Dr(T,"HTML_INTEGRATION_POINTS",()=>ot({},Ct));const Y=Dr(T,"CUSTOM_ELEMENT_HANDLING",()=>Yn(null));if(oe=Yn(null),Ut(Y,"tagNameCheck")&&Mt(Y.tagNameCheck)&&(oe.tagNameCheck=Y.tagNameCheck),Ut(Y,"attributeNameCheck")&&Mt(Y.attributeNameCheck)&&(oe.attributeNameCheck=Y.attributeNameCheck),Ut(Y,"allowCustomizedBuiltInElements")&&typeof Y.allowCustomizedBuiltInElements=="boolean"&&(oe.allowCustomizedBuiltInElements=Y.allowCustomizedBuiltInElements),Et(oe),Le&&(fe=!1),Ee&&(Je=!0),me&&(le=ot({},Ls),V=Yn(null),me.html===!0&&(ot(le,Ms),ot(V,$s)),me.svg===!0&&(ot(le,Ar),ot(V,Nr),ot(V,Oa)),me.svgFilters===!0&&(ot(le,Br),ot(V,Nr),ot(V,Oa)),me.mathMl===!0&&(ot(le,kr),ot(V,Rs),ot(V,Oa))),se.tagCheck=null,se.attributeCheck=null,Ut(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?se.tagCheck=T.ADD_TAGS:Zn(T.ADD_TAGS)&&(le===be&&(le=Jt(le)),ot(le,T.ADD_TAGS,nt))),Ut(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?se.attributeCheck=T.ADD_ATTR:Zn(T.ADD_ATTR)&&(V===ee&&(V=Jt(V)),ot(V,T.ADD_ATTR,nt))),Ut(T,"ADD_FORBID_CONTENTS")&&Zn(T.ADD_FORBID_CONTENTS)&&(Se===et&&(Se=Jt(Se)),ot(Se,T.ADD_FORBID_CONTENTS,nt)),Q&&(le["#text"]=!0),Ue&&ot(le,["html","head","body"]),le.table&&(ot(le,["tbody"]),delete Be.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const he=B;B=T.TRUSTED_TYPES_POLICY;try{E=j("")}catch(Te){throw B=he,Te}}else T.TRUSTED_TYPES_POLICY===null?(B=void 0,E=""):(B===void 0&&(B=O()),B&&typeof E=="string"&&(E=j("")));kt&&kt(T),Tt=T},cn=ot({},[...Ar,...Br,...T0]),dn=ot({},[...kr,...M0]),Rn=function(T,Y,he){return Y.namespaceURI===Ye?T==="svg":Y.namespaceURI===tt?T==="svg"&&(he==="annotation-xml"||Nt[he]):!!cn[T]},pn=function(T,Y,he){return Y.namespaceURI===Ye?T==="math":Y.namespaceURI===Ge?T==="math"&&dt[he]:!!dn[T]},Pn=function(T,Y,he){return Y.namespaceURI===Ge&&!dt[he]||Y.namespaceURI===tt&&!Nt[he]?!1:!dn[T]&&(Oe[T]||!cn[T])},Nn=function(T){let Y=w(T);(!Y||!Y.tagName)&&(Y={namespaceURI:Re,tagName:"template"});const he=ma(T.tagName),Te=ma(Y.tagName);return Fe[T.namespaceURI]?T.namespaceURI===Ge?Rn(he,Y,Te):T.namespaceURI===tt?pn(he,Y,Te):T.namespaceURI===Ye?Pn(he,Y,Te):!!(at==="application/xhtml+xml"&&Fe[T.namespaceURI]):!1},Dt=function(T){pa(n.removed,{element:T});try{w(T).removeChild(T)}catch{if(v(T),!w(T))throw On("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Cn=function(T,Y,he){try{T.removeAttributeNode(Y)}catch{try{T.removeAttribute(he)}catch{}}},Ht=function(T){en(T);const Y=y(T);if(Y){const Te=[];Fn(Y,Pe=>{pa(Te,Pe)}),Fn(Te,Pe=>{try{v(Pe)}catch{}})}const he=_(T);if(he)for(let Te=he.length-1;Te>=0;--Te){const Pe=he[Te],qe=Pe&&Pe.name;typeof qe=="string"&&Cn(T,Pe,qe)}},Zt=function(T,Y,he){if(!he)try{he=Y.getAttributeNode(T)}catch{he=null}pa(n.removed,{attribute:he||null,from:Y});try{he?Y.removeAttributeNode(he):Y.removeAttribute(T)}catch{try{Y.removeAttribute(T)}catch{}}if(T==="is")if(Je||Ee)try{Dt(Y)}catch{}else try{Y.setAttribute(T,"")}catch{}},fn=function(T){const Y=_(T);if(Y)for(let he=Y.length-1;he>=0;--he){const Te=Y[he],Pe=Te&&Te.name;typeof Pe!="string"||V[nt(Pe)]||Cn(T,Te,Pe)}},en=function(T){const Y=[T];for(;Y.length>0;){const he=Y.pop();N(he)===Qt.element&&fn(he);const Pe=y(he);if(Pe)for(let qe=Pe.length-1;qe>=0;--qe)Y.push(Pe[qe])}},gn=function(T,Y){return Qe?T==="patchsrc"?!0:T==="for"&&Y!=="label"&&Y!=="output":!1},In=function(T){if(!Qe)return;const Y=[T];for(;Y.length>0;){const he=Y.pop(),Te=N(he);if(Te===Qt.processingInstruction||Te===Qt.comment&&$t(Fs,he.data)){try{v(he)}catch{}continue}if(Te===Qt.element){const qe=he,mt=nt(k(he));try{qe.hasAttribute&&qe.hasAttribute("patchsrc")&&qe.removeAttribute("patchsrc"),qe.hasAttribute&&qe.hasAttribute("for")&&gn("for",mt)&&qe.removeAttribute("for")}catch{}}const Pe=y(he);if(Pe)for(let qe=Pe.length-1;qe>=0;--qe)Y.push(Pe[qe])}},bn=function(T){let Y=null,he=null;if(Xe)T="<remove></remove>"+T;else{const qe=Es(T,/^[\r\n\t ]+/);he=qe&&qe[0]}at==="application/xhtml+xml"&&Re===Ye&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const Te=B?j(T):T;if(Re===Ye)try{Y=new p().parseFromString(Te,at)}catch{}if(!Y||!Y.documentElement){Y=te.createDocument(Re,"template",null);try{Y.documentElement.innerHTML=We?E:Te}catch{}}const Pe=Y.body||Y.documentElement;return T&&he&&Pe.insertBefore(a.createTextNode(he),Pe.childNodes[0]||null),Re===Ye?P.call(Y,Ue?"html":"body")[0]:Ue?Y.documentElement:Pe},re=function(T){const Y=x?x(T):T.ownerDocument;return W.call(Y||T,T,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},ve=function(T){return T=ha(T,H," "),T=ha(T,M," "),T=ha(T,I," "),T},G=function(T){var Y;T.normalize();const he=x?x(T):T.ownerDocument,Te=W.call(he||T,T,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null);let Pe=Te.nextNode();for(;Pe;)Pe.data=ve(Pe.data),Pe=Te.nextNode();const qe=(Y=T.querySelectorAll)===null||Y===void 0?void 0:Y.call(T,"template");qe&&Fn(qe,mt=>{de(mt.content)&&G(mt.content)})},ie=function(T){const Y=A?A(T):null;return typeof Y!="string"||nt(Y)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==_(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==f(T)||T.childNodes!==y(T)},de=function(T){if(!f||typeof T!="object"||T===null)return!1;try{return f(T)===Qt.documentFragment}catch{return!1}},_e=function(T){if(!f||typeof T!="object"||T===null)return!1;try{return typeof f(T)=="number"}catch{return!1}};function we(Ae,T,Y){Ae.length!==0&&Fn(Ae,he=>{he.call(n,T,Y,Tt)})}const je=function(T,Y){return!!(Qe&&T.hasChildNodes()&&!_e(T.firstElementChild)&&$t(Is,T.textContent)&&$t(Is,T.innerHTML)||Qe&&T.namespaceURI===Ye&&q0[Y]&&(_e(T.firstElementChild)||typeof T.textContent=="string"&&$t(U0[Y],T.textContent))||T.nodeType===Qt.processingInstruction||Qe&&T.nodeType===Qt.comment&&$t(Fs,T.data))},rt=function(T,Y){if(T instanceof RegExp)return $t(T,Y);if(T instanceof Function){for(var he=arguments.length,Te=new Array(he>2?he-2:0),Pe=2;Pe<he;Pe++)Te[Pe-2]=arguments[Pe];return!!T(Y,...Te)}return!1},yt=function(T,Y,he){if(!Be[Y]&&Ne(Y)&&rt(oe.tagNameCheck,Y))return!1;if(Q&&!Se[Y]){const Te=w(T),Pe=y(T);if(Pe&&Te){const qe=Pe.length;for(let mt=qe-1;mt>=0;--mt){const gt=T===he?g(Pe[mt],!0):Pe[mt];Te.insertBefore(gt,b(T))}}}return Dt(T),!0},pt=function(T,Y,he,Te){return T.length===0?Y:Y===he||Y===Te?Jt(Y):Y},_t=function(T,Y){return T===Y||w(T)!==null?!1:(ce&&en(T),!0)},Rt=function(T,Y){if(we(D.beforeSanitizeElements,T,null),_t(T,Y))return!0;if(ie(T))return Dt(T),!0;const he=nt(k(T));if(le=pt(D.uponSanitizeElement,le,be,Ie),we(D.uponSanitizeElement,T,{tagName:he,allowedTags:le}),_t(T,Y))return!0;if(je(T,he))return Dt(T),!0;if(Be[he]||!(se.tagCheck instanceof Function&&se.tagCheck(he))&&!le[he]){const Pe=yt(T,he,Y);return Pe===!1&&we(D.afterSanitizeElements,T,null),Pe}if(N(T)===Qt.element&&!Nn(T)||(he==="noscript"||he==="noembed"||he==="noframes")&&$t(V0,T.innerHTML))return Dt(T),!0;if(Le&&T.nodeType===Qt.text){const Pe=ve(T.textContent);T.textContent!==Pe&&(pa(n.removed,{element:T.cloneNode()}),T.textContent=Pe)}return we(D.afterSanitizeElements,T,null),!1},Lt=function(T,Y,he){if(Ce[Y]||gn(Y,T)||Me&&(Y==="id"||Y==="name")&&(he in a||he in Yt))return!1;const Te=V[Y]||se.attributeCheck instanceof Function&&se.attributeCheck(Y,T);return fe&&$t($,Y)||ge&&$t(K,Y)?!0:Te?ut[Y]||$t(ue,ha(he,X,""))||(Y==="src"||Y==="xlink:href"||Y==="href")&&T!=="script"&&Ss(he,"data:")===0&&Ke[T]||xe&&!$t(ne,ha(he,X,""))?!0:!he:Ne(T)&&rt(oe.tagNameCheck,T)&&rt(oe.attributeNameCheck,Y,T)||Y==="is"&&oe.allowCustomizedBuiltInElements&&rt(oe.tagNameCheck,he)},nn=ot({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ne=function(T){return!nn[ma(T)]&&$t(ae,T)},He=function(T,Y,he,Te){if(B&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!he)switch(m.getAttributeType(T,Y)){case"TrustedHTML":return j(Te);case"TrustedScriptURL":return L(Te)}return Te},wt=function(T,Y,he,Te){try{he?T.setAttributeNS(he,Y,Te):T.setAttribute(Y,Te),ie(T)?Dt(T):Ds(n.removed)}catch{Zt(Y,T)}},zt=function(T){we(D.beforeSanitizeAttributes,T,null);const Y=T.attributes;if(!Y||ie(T))return;V=pt(D.uponSanitizeAttribute,V,ee,st);const he={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let Te=Y.length;const Pe=nt(T.nodeName);for(;Te--;){const qe=Y[Te],mt=qe.name,gt=qe.namespaceURI,Wt=qe.value,qt=nt(mt),gr=Wt;let Pt=mt==="value"?gr:B0(gr);if(he.attrName=qt,he.attrValue=Pt,he.keepAttr=!0,he.forceKeepAttr=void 0,we(D.uponSanitizeAttribute,T,he),Pt=he.attrValue,Ve&&(qt==="id"||qt==="name")&&Ss(Pt,lt)!==0&&(Zt(mt,T,qe),Pt=lt+Pt),Qe&&$t(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Pt)){Zt(mt,T,qe);continue}if(qt==="attributename"&&Es(Pt,"href")){Zt(mt,T,qe);continue}if(!he.forceKeepAttr){if(!he.keepAttr){Zt(mt,T,qe);continue}if(!$e&&$t(W0,Pt)){Zt(mt,T,qe);continue}if(Le&&(Pt=ve(Pt)),!Lt(Pe,qt,Pt)){Zt(mt,T,qe);continue}Pt=He(Pe,qt,gt,Pt),Pt!==gr&&wt(T,mt,gt,Pt)}}we(D.afterSanitizeAttributes,T,null)},Vt=function(T){let Y=null;const he=re(T);for(we(D.beforeSanitizeShadowDOM,T,null);Y=he.nextNode();)if(we(D.uponSanitizeShadowNode,Y,null),Rt(Y,T),zt(Y),de(Y.content)&&Vt(Y.content),N(Y)===Qt.element){const Te=h(Y);de(Te)&&(fr(Te),Vt(Te))}we(D.afterSanitizeShadowDOM,T,null)},fr=function(T){const Y=[{node:T,shadow:null}];for(;Y.length>0;){const he=Y.pop();if(he.shadow){Vt(he.shadow);continue}const Te=he.node,qe=N(Te)===Qt.element,mt=y(Te);if(mt)for(let gt=mt.length-1;gt>=0;--gt)Y.push({node:mt[gt],shadow:null});if(qe){const gt=A?A(Te):null;if(typeof gt=="string"&&nt(gt)==="template"){const Wt=Te.content;de(Wt)&&Y.push({node:Wt,shadow:null})}}if(qe){const gt=h(Te);de(gt)&&Y.push({node:null,shadow:gt},{node:gt,shadow:null})}}};return n.sanitize=function(Ae){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,he=null,Te=null,Pe=null;if(We=!Ae,We&&(Ae="<!-->"),typeof Ae!="string"&&!_e(Ae)&&(Ae=S0(Ae),typeof Ae!="string"))throw On("dirty is not a string, aborting");if(!n.isSupported)return Ae;ze?(le=Ie,V=st):un(T),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(le=Jt(le)),D.uponSanitizeAttribute.length>0&&(V=Jt(V)),n.removed=[];const qe=ce&&typeof Ae!="string"&&_e(Ae);if(qe){In(Ae);const Wt=k(Ae);if(typeof Wt=="string"){const qt=nt(Wt);if(!le[qt]||Be[qt])throw Ht(Ae),On("root node is forbidden and cannot be sanitized in-place")}if(ie(Ae))throw Ht(Ae),On("root node is clobbered and cannot be sanitized in-place");try{fr(Ae)}catch(qt){throw Ht(Ae),qt}}else if(_e(Ae))Y=bn("<!---->"),he=Y.ownerDocument.importNode(Ae,!0),he.nodeType===Qt.element&&he.nodeName==="BODY"||he.nodeName==="HTML"?Y=he:Y.appendChild(he),fr(he);else{if(!Je&&!Le&&!Ue&&Ae.indexOf("<")===-1)return B&&ke?j(Ae):Ae;if(Y=bn(Ae),!Y)return Je?null:ke?E:""}Y&&Xe&&Dt(Y.firstChild);const mt=qe?Ae:Y;try{const Wt=re(mt);for(;Te=Wt.nextNode();)Rt(Te,mt),zt(Te),de(Te.content)&&Vt(Te.content)}catch(Wt){throw qe&&(Ht(Ae),Fn(n.removed,qt=>{qt.element&&en(qt.element)})),Wt}if(qe)return Fn(n.removed,Wt=>{Wt.element&&en(Wt.element)}),Le&&G(Ae),Ae;if(Je){if(Le&&G(Y),Ee)for(Pe=U.call(Y.ownerDocument);Y.firstChild;)Pe.appendChild(Y.firstChild);else Pe=Y;return(V.shadowroot||V.shadowrootmode)&&(Pe=F.call(r,Pe,!0)),Pe}let gt=Ue?Y.outerHTML:Y.innerHTML;return Ue&&le["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&$t(H0,Y.ownerDocument.doctype.name)&&(gt="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
827
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b0(e,n){return C0(e)||f0(e,n)||y0(e,n)||g0()}function y0(e,n){if(e){if(typeof e=="string")return As(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)?As(e,n):void 0}}const Bs=Object.entries,ks=Object.setPrototypeOf,v0=Object.isFrozen,x0=Object.getPrototypeOf,_0=Object.getOwnPropertyDescriptor;let kt=Object.freeze,Et=Object.seal,Yn=Object.create,Ns=typeof Reflect<"u"&&Reflect,xr=Ns.apply,_r=Ns.construct;kt||(kt=function(n){return n}),Et||(Et=function(n){return n}),xr||(xr=function(n,a){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return n.apply(a,s)}),_r||(_r=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return new n(...r)});const Fn=At(Array.prototype.forEach),w0=At(Array.prototype.lastIndexOf),Ds=At(Array.prototype.pop),pa=At(Array.prototype.push),A0=At(Array.prototype.splice),Zn=Array.isArray,ma=At(String.prototype.toLowerCase),wr=At(String.prototype.toString),Es=At(String.prototype.match),ha=At(String.prototype.replace),Ss=At(String.prototype.indexOf),B0=At(String.prototype.trim),k0=At(Number.prototype.toString),N0=At(Boolean.prototype.toString),js=typeof BigInt>"u"?null:At(BigInt.prototype.toString),Ts=typeof Symbol>"u"?null:At(Symbol.prototype.toString),Ut=At(Object.prototype.hasOwnProperty),Ca=At(Object.prototype.toString),$t=At(RegExp.prototype.test),On=D0(TypeError);function At(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return xr(e,n,r)}}function D0(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return _r(e,a)}}function ot(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ma;if(ks&&ks(e,null),!Zn(n))return e;let r=n.length;for(;r--;){let s=n[r];if(typeof s=="string"){const i=a(s);i!==s&&(v0(n)||(n[r]=i),s=i)}e[s]=!0}return e}function E0(e){for(let n=0;n<e.length;n++)Ut(e,n)||(e[n]=null);return e}function Jt(e){const n=Yn(null);for(const r of Bs(e)){var a=b0(r,2);const s=a[0],i=a[1];Ut(e,s)&&(Zn(i)?n[s]=E0(i):i&&typeof i=="object"&&i.constructor===Object?n[s]=Jt(i):n[s]=i)}return n}function S0(e){switch(typeof e){case"string":return e;case"number":return k0(e);case"boolean":return N0(e);case"bigint":return js?js(e):"0";case"symbol":return Ts?Ts(e):"Symbol()";case"undefined":return Ca(e);case"function":case"object":{if(e===null)return Ca(e);const n=e,a=rn(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:Ca(r)}return Ca(e)}default:return Ca(e)}}function rn(e,n){for(;e!==null;){const r=_0(e,n);if(r){if(r.get)return At(r.get);if(typeof r.value=="function")return At(r.value)}e=x0(e)}function a(){return null}return a}function j0(e){try{return $t(e,""),!0}catch{return!1}}const Ms=kt(["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"]),Ar=kt(["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"]),Br=kt(["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"]),T0=kt(["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"]),kr=kt(["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"]),M0=kt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ls=kt(["#text"]),$s=kt(["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"]),Nr=kt(["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=kt(["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"]),Oa=kt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L0=Et(/{{[\w\W]*|^[\w\W]*}}/g),$0=Et(/<%[\w\W]*|^[\w\W]*%>/g),R0=Et(/\${[\w\W]*/g),P0=Et(/^data-[\-\w.\u00B7-\uFFFF]+$/),I0=Et(/^aria-[\-\w]+$/),Ps=Et(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F0=Et(/^(?:\w+script|data):/i),O0=Et(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),H0=Et(/^html$/i),z0=Et(/^[a-z][.\w]*(-[.\w]+)+$/i),Is=Et(/<[/\w!]/g),Fs=Et(/<[/\w]/g),V0=Et(/<\/no(script|embed|frames)/i),W0=Et(/\/>/i),Qt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Os=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],q0=kt(ot({},Os)),U0=(function(){const e={};return Fn(Os,n=>{e[n]=Et(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),kt(e)})(),G0=function(){return typeof window>"u"?null:window},K0=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";a&&a.hasAttribute(s)&&(r=a.getAttribute(s));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}},Hs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Dn=function(n,a,r,s){return Ut(n,a)&&Zn(n[a])?ot(s.base?Jt(s.base):{},n[a],s.transform):r},Dr=function(n,a,r){const s=Ut(n,a)?n[a]:void 0;return s&&typeof s=="object"?Jt(s):r()};function zs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:G0();const n=Ae=>zs(Ae);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==Qt.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,s=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,u=e.Element,d=e.NodeFilter,c=e.NamedNodeMap;c===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,m=e.trustedTypes,C=u.prototype,g=rn(C,"cloneNode"),v=rn(C,"remove"),b=rn(C,"nextSibling"),y=rn(C,"childNodes"),w=rn(C,"parentNode"),h=rn(C,"shadowRoot"),_=rn(C,"attributes"),f=l&&l.prototype?rn(l.prototype,"nodeType"):null,A=l&&l.prototype?rn(l.prototype,"nodeName"):null,x=l&&l.prototype?rn(l.prototype,"ownerDocument"):null,N=function(T){return f?f(T):T.nodeType},k=function(T){return A?A(T):T.nodeName};if(typeof i=="function"){const Ae=a.createElement("template");Ae.content&&Ae.content.ownerDocument&&(a=Ae.content.ownerDocument)}let B,E="",S,z=!1,R=0;const q=function(){if(R>0)throw On('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(T){q(),R++;try{return B.createHTML(T)}finally{R--}},L=function(T){q(),R++;try{return B.createScriptURL(T)}finally{R--}},O=function(){return z||(S=K0(m,s),z=!0),S},Z=a,ee=Z.implementation,W=Z.createNodeIterator,U=Z.createDocumentFragment,P=Z.getElementsByTagName,F=r.importNode;let D=Hs();n.isSupported=typeof Bs=="function"&&typeof w=="function"&&ee&&ee.createHTMLDocument!==void 0;const H=L0,M=$0,I=R0,$=P0,K=I0,ne=F0,X=O0,ae=z0;let ue=Ps,le=null;const be=ot({},[...Ms,...Ar,...Br,...kr,...Ls]);let V=null;const Q=ot({},[...$s,...Nr,...Rs,...Oa]);let oe=Object.seal(Yn(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}})),Be=null,Ce=null;const se=Object.seal(Yn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ge=!0,fe=!0,xe=!1,$e=!0,Le=!1,Qe=!0,Ue=!1,ze=!1,Ie=null,st=null,Xe=!1,Je=!1,Ee=!1,ke=!1,Me=!0,Ve=!1;const lt="user-content-";let te=!0,ce=!1,me={},Se=null;const et=ot({},["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 Ke=null;const bt=ot({},["audio","video","img","source","image","track"]);let ut=null;const it=ot({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",Ge="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml";let Re=Ye,We=!1,Fe=null;const ct=ot({},[tt,Ge,Ye],wr),Bt=kt(["mi","mo","mn","ms","mtext"]);let Nt=ot({},Bt);const Ct=kt(["annotation-xml"]);let dt=ot({},Ct);const Oe=ot({},["title","style","font","a","script"]);let at=null;const ft=["application/xhtml+xml","text/html"],Ot="text/html";let nt=null,Tt=null;const Yt=a.createElement("form"),Mt=function(T){return T instanceof RegExp||T instanceof Function},un=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Tt&&Tt===T)return;(!T||typeof T!="object")&&(T={}),T=Jt(T),at=ft.indexOf(T.PARSER_MEDIA_TYPE)===-1?Ot:T.PARSER_MEDIA_TYPE,nt=at==="application/xhtml+xml"?wr:ma,le=Dn(T,"ALLOWED_TAGS",be,{transform:nt}),V=Dn(T,"ALLOWED_ATTR",Q,{transform:nt}),Fe=Dn(T,"ALLOWED_NAMESPACES",ct,{transform:wr}),ut=Dn(T,"ADD_URI_SAFE_ATTR",it,{transform:nt,base:it}),Ke=Dn(T,"ADD_DATA_URI_TAGS",bt,{transform:nt,base:bt}),Se=Dn(T,"FORBID_CONTENTS",et,{transform:nt}),Be=Dn(T,"FORBID_TAGS",Jt({}),{transform:nt}),Ce=Dn(T,"FORBID_ATTR",Jt({}),{transform:nt}),me=Ut(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?Jt(T.USE_PROFILES):T.USE_PROFILES:!1,ge=T.ALLOW_ARIA_ATTR!==!1,fe=T.ALLOW_DATA_ATTR!==!1,xe=T.ALLOW_UNKNOWN_PROTOCOLS||!1,$e=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=T.SAFE_FOR_TEMPLATES||!1,Qe=T.SAFE_FOR_XML!==!1,Ue=T.WHOLE_DOCUMENT||!1,Je=T.RETURN_DOM||!1,Ee=T.RETURN_DOM_FRAGMENT||!1,ke=T.RETURN_TRUSTED_TYPE||!1,Xe=T.FORCE_BODY||!1,Me=T.SANITIZE_DOM!==!1,Ve=T.SANITIZE_NAMED_PROPS||!1,te=T.KEEP_CONTENT!==!1,ce=T.IN_PLACE||!1,ue=j0(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:Ps,Re=typeof T.NAMESPACE=="string"?T.NAMESPACE:Ye,Nt=Dr(T,"MATHML_TEXT_INTEGRATION_POINTS",()=>ot({},Bt)),dt=Dr(T,"HTML_INTEGRATION_POINTS",()=>ot({},Ct));const Y=Dr(T,"CUSTOM_ELEMENT_HANDLING",()=>Yn(null));if(oe=Yn(null),Ut(Y,"tagNameCheck")&&Mt(Y.tagNameCheck)&&(oe.tagNameCheck=Y.tagNameCheck),Ut(Y,"attributeNameCheck")&&Mt(Y.attributeNameCheck)&&(oe.attributeNameCheck=Y.attributeNameCheck),Ut(Y,"allowCustomizedBuiltInElements")&&typeof Y.allowCustomizedBuiltInElements=="boolean"&&(oe.allowCustomizedBuiltInElements=Y.allowCustomizedBuiltInElements),Et(oe),Le&&(fe=!1),Ee&&(Je=!0),me&&(le=ot({},Ls),V=Yn(null),me.html===!0&&(ot(le,Ms),ot(V,$s)),me.svg===!0&&(ot(le,Ar),ot(V,Nr),ot(V,Oa)),me.svgFilters===!0&&(ot(le,Br),ot(V,Nr),ot(V,Oa)),me.mathMl===!0&&(ot(le,kr),ot(V,Rs),ot(V,Oa))),se.tagCheck=null,se.attributeCheck=null,Ut(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?se.tagCheck=T.ADD_TAGS:Zn(T.ADD_TAGS)&&(le===be&&(le=Jt(le)),ot(le,T.ADD_TAGS,nt))),Ut(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?se.attributeCheck=T.ADD_ATTR:Zn(T.ADD_ATTR)&&(V===Q&&(V=Jt(V)),ot(V,T.ADD_ATTR,nt))),Ut(T,"ADD_FORBID_CONTENTS")&&Zn(T.ADD_FORBID_CONTENTS)&&(Se===et&&(Se=Jt(Se)),ot(Se,T.ADD_FORBID_CONTENTS,nt)),te&&(le["#text"]=!0),Ue&&ot(le,["html","head","body"]),le.table&&(ot(le,["tbody"]),delete Be.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const he=B;B=T.TRUSTED_TYPES_POLICY;try{E=j("")}catch(Te){throw B=he,Te}}else T.TRUSTED_TYPES_POLICY===null?(B=void 0,E=""):(B===void 0&&(B=O()),B&&typeof E=="string"&&(E=j("")));kt&&kt(T),Tt=T},cn=ot({},[...Ar,...Br,...T0]),dn=ot({},[...kr,...M0]),Rn=function(T,Y,he){return Y.namespaceURI===Ye?T==="svg":Y.namespaceURI===tt?T==="svg"&&(he==="annotation-xml"||Nt[he]):!!cn[T]},pn=function(T,Y,he){return Y.namespaceURI===Ye?T==="math":Y.namespaceURI===Ge?T==="math"&&dt[he]:!!dn[T]},Pn=function(T,Y,he){return Y.namespaceURI===Ge&&!dt[he]||Y.namespaceURI===tt&&!Nt[he]?!1:!dn[T]&&(Oe[T]||!cn[T])},Nn=function(T){let Y=w(T);(!Y||!Y.tagName)&&(Y={namespaceURI:Re,tagName:"template"});const he=ma(T.tagName),Te=ma(Y.tagName);return Fe[T.namespaceURI]?T.namespaceURI===Ge?Rn(he,Y,Te):T.namespaceURI===tt?pn(he,Y,Te):T.namespaceURI===Ye?Pn(he,Y,Te):!!(at==="application/xhtml+xml"&&Fe[T.namespaceURI]):!1},Dt=function(T){pa(n.removed,{element:T});try{w(T).removeChild(T)}catch{if(v(T),!w(T))throw On("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Cn=function(T,Y,he){try{T.removeAttributeNode(Y)}catch{try{T.removeAttribute(he)}catch{}}},Ht=function(T){en(T);const Y=y(T);if(Y){const Te=[];Fn(Y,Pe=>{pa(Te,Pe)}),Fn(Te,Pe=>{try{v(Pe)}catch{}})}const he=_(T);if(he)for(let Te=he.length-1;Te>=0;--Te){const Pe=he[Te],qe=Pe&&Pe.name;typeof qe=="string"&&Cn(T,Pe,qe)}},Zt=function(T,Y,he){if(!he)try{he=Y.getAttributeNode(T)}catch{he=null}pa(n.removed,{attribute:he||null,from:Y});try{he?Y.removeAttributeNode(he):Y.removeAttribute(T)}catch{try{Y.removeAttribute(T)}catch{}}if(T==="is")if(Je||Ee)try{Dt(Y)}catch{}else try{Y.setAttribute(T,"")}catch{}},fn=function(T){const Y=_(T);if(Y)for(let he=Y.length-1;he>=0;--he){const Te=Y[he],Pe=Te&&Te.name;typeof Pe!="string"||V[nt(Pe)]||Cn(T,Te,Pe)}},en=function(T){const Y=[T];for(;Y.length>0;){const he=Y.pop();N(he)===Qt.element&&fn(he);const Pe=y(he);if(Pe)for(let qe=Pe.length-1;qe>=0;--qe)Y.push(Pe[qe])}},gn=function(T,Y){return Qe?T==="patchsrc"?!0:T==="for"&&Y!=="label"&&Y!=="output":!1},In=function(T){if(!Qe)return;const Y=[T];for(;Y.length>0;){const he=Y.pop(),Te=N(he);if(Te===Qt.processingInstruction||Te===Qt.comment&&$t(Fs,he.data)){try{v(he)}catch{}continue}if(Te===Qt.element){const qe=he,mt=nt(k(he));try{qe.hasAttribute&&qe.hasAttribute("patchsrc")&&qe.removeAttribute("patchsrc"),qe.hasAttribute&&qe.hasAttribute("for")&&gn("for",mt)&&qe.removeAttribute("for")}catch{}}const Pe=y(he);if(Pe)for(let qe=Pe.length-1;qe>=0;--qe)Y.push(Pe[qe])}},bn=function(T){let Y=null,he=null;if(Xe)T="<remove></remove>"+T;else{const qe=Es(T,/^[\r\n\t ]+/);he=qe&&qe[0]}at==="application/xhtml+xml"&&Re===Ye&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const Te=B?j(T):T;if(Re===Ye)try{Y=new p().parseFromString(Te,at)}catch{}if(!Y||!Y.documentElement){Y=ee.createDocument(Re,"template",null);try{Y.documentElement.innerHTML=We?E:Te}catch{}}const Pe=Y.body||Y.documentElement;return T&&he&&Pe.insertBefore(a.createTextNode(he),Pe.childNodes[0]||null),Re===Ye?P.call(Y,Ue?"html":"body")[0]:Ue?Y.documentElement:Pe},re=function(T){const Y=x?x(T):T.ownerDocument;return W.call(Y||T,T,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},ve=function(T){return T=ha(T,H," "),T=ha(T,M," "),T=ha(T,I," "),T},G=function(T){var Y;T.normalize();const he=x?x(T):T.ownerDocument,Te=W.call(he||T,T,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null);let Pe=Te.nextNode();for(;Pe;)Pe.data=ve(Pe.data),Pe=Te.nextNode();const qe=(Y=T.querySelectorAll)===null||Y===void 0?void 0:Y.call(T,"template");qe&&Fn(qe,mt=>{de(mt.content)&&G(mt.content)})},ie=function(T){const Y=A?A(T):null;return typeof Y!="string"||nt(Y)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==_(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==f(T)||T.childNodes!==y(T)},de=function(T){if(!f||typeof T!="object"||T===null)return!1;try{return f(T)===Qt.documentFragment}catch{return!1}},_e=function(T){if(!f||typeof T!="object"||T===null)return!1;try{return typeof f(T)=="number"}catch{return!1}};function we(Ae,T,Y){Ae.length!==0&&Fn(Ae,he=>{he.call(n,T,Y,Tt)})}const je=function(T,Y){return!!(Qe&&T.hasChildNodes()&&!_e(T.firstElementChild)&&$t(Is,T.textContent)&&$t(Is,T.innerHTML)||Qe&&T.namespaceURI===Ye&&q0[Y]&&(_e(T.firstElementChild)||typeof T.textContent=="string"&&$t(U0[Y],T.textContent))||T.nodeType===Qt.processingInstruction||Qe&&T.nodeType===Qt.comment&&$t(Fs,T.data))},rt=function(T,Y){if(T instanceof RegExp)return $t(T,Y);if(T instanceof Function){for(var he=arguments.length,Te=new Array(he>2?he-2:0),Pe=2;Pe<he;Pe++)Te[Pe-2]=arguments[Pe];return!!T(Y,...Te)}return!1},yt=function(T,Y,he){if(!Be[Y]&&De(Y)&&rt(oe.tagNameCheck,Y))return!1;if(te&&!Se[Y]){const Te=w(T),Pe=y(T);if(Pe&&Te){const qe=Pe.length;for(let mt=qe-1;mt>=0;--mt){const gt=T===he?g(Pe[mt],!0):Pe[mt];Te.insertBefore(gt,b(T))}}}return Dt(T),!0},pt=function(T,Y,he,Te){return T.length===0?Y:Y===he||Y===Te?Jt(Y):Y},_t=function(T,Y){return T===Y||w(T)!==null?!1:(ce&&en(T),!0)},Rt=function(T,Y){if(we(D.beforeSanitizeElements,T,null),_t(T,Y))return!0;if(ie(T))return Dt(T),!0;const he=nt(k(T));if(le=pt(D.uponSanitizeElement,le,be,Ie),we(D.uponSanitizeElement,T,{tagName:he,allowedTags:le}),_t(T,Y))return!0;if(je(T,he))return Dt(T),!0;if(Be[he]||!(se.tagCheck instanceof Function&&se.tagCheck(he))&&!le[he]){const Pe=yt(T,he,Y);return Pe===!1&&we(D.afterSanitizeElements,T,null),Pe}if(N(T)===Qt.element&&!Nn(T)||(he==="noscript"||he==="noembed"||he==="noframes")&&$t(V0,T.innerHTML))return Dt(T),!0;if(Le&&T.nodeType===Qt.text){const Pe=ve(T.textContent);T.textContent!==Pe&&(pa(n.removed,{element:T.cloneNode()}),T.textContent=Pe)}return we(D.afterSanitizeElements,T,null),!1},Lt=function(T,Y,he){if(Ce[Y]||gn(Y,T)||Me&&(Y==="id"||Y==="name")&&(he in a||he in Yt))return!1;const Te=V[Y]||se.attributeCheck instanceof Function&&se.attributeCheck(Y,T);return fe&&$t($,Y)||ge&&$t(K,Y)?!0:Te?ut[Y]||$t(ue,ha(he,X,""))||(Y==="src"||Y==="xlink:href"||Y==="href")&&T!=="script"&&Ss(he,"data:")===0&&Ke[T]||xe&&!$t(ne,ha(he,X,""))?!0:!he:De(T)&&rt(oe.tagNameCheck,T)&&rt(oe.attributeNameCheck,Y,T)||Y==="is"&&oe.allowCustomizedBuiltInElements&&rt(oe.tagNameCheck,he)},nn=ot({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),De=function(T){return!nn[ma(T)]&&$t(ae,T)},He=function(T,Y,he,Te){if(B&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!he)switch(m.getAttributeType(T,Y)){case"TrustedHTML":return j(Te);case"TrustedScriptURL":return L(Te)}return Te},wt=function(T,Y,he,Te){try{he?T.setAttributeNS(he,Y,Te):T.setAttribute(Y,Te),ie(T)?Dt(T):Ds(n.removed)}catch{Zt(Y,T)}},zt=function(T){we(D.beforeSanitizeAttributes,T,null);const Y=T.attributes;if(!Y||ie(T))return;V=pt(D.uponSanitizeAttribute,V,Q,st);const he={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let Te=Y.length;const Pe=nt(T.nodeName);for(;Te--;){const qe=Y[Te],mt=qe.name,gt=qe.namespaceURI,Wt=qe.value,qt=nt(mt),gr=Wt;let Pt=mt==="value"?gr:B0(gr);if(he.attrName=qt,he.attrValue=Pt,he.keepAttr=!0,he.forceKeepAttr=void 0,we(D.uponSanitizeAttribute,T,he),Pt=he.attrValue,Ve&&(qt==="id"||qt==="name")&&Ss(Pt,lt)!==0&&(Zt(mt,T,qe),Pt=lt+Pt),Qe&&$t(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Pt)){Zt(mt,T,qe);continue}if(qt==="attributename"&&Es(Pt,"href")){Zt(mt,T,qe);continue}if(!he.forceKeepAttr){if(!he.keepAttr){Zt(mt,T,qe);continue}if(!$e&&$t(W0,Pt)){Zt(mt,T,qe);continue}if(Le&&(Pt=ve(Pt)),!Lt(Pe,qt,Pt)){Zt(mt,T,qe);continue}Pt=He(Pe,qt,gt,Pt),Pt!==gr&&wt(T,mt,gt,Pt)}}we(D.afterSanitizeAttributes,T,null)},Vt=function(T){let Y=null;const he=re(T);for(we(D.beforeSanitizeShadowDOM,T,null);Y=he.nextNode();)if(we(D.uponSanitizeShadowNode,Y,null),Rt(Y,T),zt(Y),de(Y.content)&&Vt(Y.content),N(Y)===Qt.element){const Te=h(Y);de(Te)&&(fr(Te),Vt(Te))}we(D.afterSanitizeShadowDOM,T,null)},fr=function(T){const Y=[{node:T,shadow:null}];for(;Y.length>0;){const he=Y.pop();if(he.shadow){Vt(he.shadow);continue}const Te=he.node,qe=N(Te)===Qt.element,mt=y(Te);if(mt)for(let gt=mt.length-1;gt>=0;--gt)Y.push({node:mt[gt],shadow:null});if(qe){const gt=A?A(Te):null;if(typeof gt=="string"&&nt(gt)==="template"){const Wt=Te.content;de(Wt)&&Y.push({node:Wt,shadow:null})}}if(qe){const gt=h(Te);de(gt)&&Y.push({node:null,shadow:gt},{node:gt,shadow:null})}}};return n.sanitize=function(Ae){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,he=null,Te=null,Pe=null;if(We=!Ae,We&&(Ae="<!-->"),typeof Ae!="string"&&!_e(Ae)&&(Ae=S0(Ae),typeof Ae!="string"))throw On("dirty is not a string, aborting");if(!n.isSupported)return Ae;ze?(le=Ie,V=st):un(T),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(le=Jt(le)),D.uponSanitizeAttribute.length>0&&(V=Jt(V)),n.removed=[];const qe=ce&&typeof Ae!="string"&&_e(Ae);if(qe){In(Ae);const Wt=k(Ae);if(typeof Wt=="string"){const qt=nt(Wt);if(!le[qt]||Be[qt])throw Ht(Ae),On("root node is forbidden and cannot be sanitized in-place")}if(ie(Ae))throw Ht(Ae),On("root node is clobbered and cannot be sanitized in-place");try{fr(Ae)}catch(qt){throw Ht(Ae),qt}}else if(_e(Ae))Y=bn("<!---->"),he=Y.ownerDocument.importNode(Ae,!0),he.nodeType===Qt.element&&he.nodeName==="BODY"||he.nodeName==="HTML"?Y=he:Y.appendChild(he),fr(he);else{if(!Je&&!Le&&!Ue&&Ae.indexOf("<")===-1)return B&&ke?j(Ae):Ae;if(Y=bn(Ae),!Y)return Je?null:ke?E:""}Y&&Xe&&Dt(Y.firstChild);const mt=qe?Ae:Y;try{const Wt=re(mt);for(;Te=Wt.nextNode();)Rt(Te,mt),zt(Te),de(Te.content)&&Vt(Te.content)}catch(Wt){throw qe&&(Ht(Ae),Fn(n.removed,qt=>{qt.element&&en(qt.element)})),Wt}if(qe)return Fn(n.removed,Wt=>{Wt.element&&en(Wt.element)}),Le&&G(Ae),Ae;if(Je){if(Le&&G(Y),Ee)for(Pe=U.call(Y.ownerDocument);Y.firstChild;)Pe.appendChild(Y.firstChild);else Pe=Y;return(V.shadowroot||V.shadowrootmode)&&(Pe=F.call(r,Pe,!0)),Pe}let gt=Ue?Y.outerHTML:Y.innerHTML;return Ue&&le["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&$t(H0,Y.ownerDocument.doctype.name)&&(gt="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
828
828
  `+gt),Le&&(gt=ve(gt)),B&&ke?j(gt):gt},n.setConfig=function(){let Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};un(Ae),ze=!0,Ie=le,st=V},n.clearConfig=function(){Tt=null,ze=!1,Ie=null,st=null,B=S,E=""},n.isValidAttribute=function(Ae,T,Y){Tt||un({});const he=nt(Ae),Te=nt(T);return Lt(he,Te,Y)},n.addHook=function(Ae,T){typeof T=="function"&&Ut(D,Ae)&&pa(D[Ae],T)},n.removeHook=function(Ae,T){if(Ut(D,Ae)){if(T!==void 0){const Y=w0(D[Ae],T);return Y===-1?void 0:A0(D[Ae],Y,1)[0]}return Ds(D[Ae])}},n.removeHooks=function(Ae){Ut(D,Ae)&&(D[Ae]=[])},n.removeAllHooks=function(){D=Hs()},n}var Er=zs();const Y0=/^(?:[a-z]+:)?\/\//i,Z0="__ihab_core_asset_base_url__";function X0(){return globalThis[Z0]??""}function Sr(e){const n=String(e||"").trim();if(!n)return"";if(Y0.test(n)||n.startsWith("data:")||n.startsWith("blob:"))return n;const a=n.startsWith("/")?n:`/${n}`,r=X0();return r?`${r}${a}`:a}const Vs="__ihab_core_storage_resolvers__";function fa(){return globalThis[Vs]??null}function J0(e){globalThis[Vs]=e}let Ws=class extends Error{constructor(n){super(`
829
829
  [ihabdevteam-core] ${n}() \uD638\uCD9C \uC2E4\uD328 \u2014 configureStorage()\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
830
830
 
@@ -844,19 +844,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
844
844
  \uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
845
845
  npm install @supabase/supabase-js
846
846
  pnpm add @supabase/supabase-js
847
- `),this.name="StorageNotConfiguredError"}};function Q0(e){J0(e)}function qs(e,n){if(!e)return null;const a=fa();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function Us(e){if(!e)return null;const n=fa();if(!n)throw new Ws("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function Gs(e){const n=fa();if(!n)throw new Ws("downloadSound");return n.download(e)}function eC(){return fa()?.noiseBaseUrl??"/sounds/noise"}function Ks(){const e=Number(fa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function tC(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 Ys="__ihab_core_tts_config__";function jr(){return globalThis[Ys]?.urlResolver??null}function nC(){return globalThis[Ys]?.fallbackUrlResolver??null}const aC="__ihab_core_pronunciation_resolver__";function rC(){return globalThis[aC]??null}let En=null;const ga=new WeakMap,Tr=new WeakMap,Mr=new WeakMap;let Zs=!1;const Xs=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function oC(){if(Zs||typeof document>"u")return;Zs=!0;const e=()=>{try{En&&En.state!=="running"&&En.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function Js(){if(En)return En;try{const e=window.AudioContext||window.webkitAudioContext;return e?(En=new e,oC(),En):null}catch{return null}}function Lr(){try{En?.resume()}catch{}}function $r(e,n){const a=ga.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),s=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,s.gain.value=Xs(Tr.get(n)??n.volume),r.connect(s),s.connect(i),s.connect(e.destination);try{n.volume=1}catch{}const l={gain:s,analyser:i};return ga.set(n,l),l}catch{return null}}function Ha(e){if(!e)return Promise.resolve(null);const n=ga.get(e);if(n)return Promise.resolve(n.analyser);const a=Js();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve($r(a,e)?.analyser??null);const r=Mr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?$r(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Mr.delete(e)});return Mr.set(e,s),s}function sC(e){if(!e)return null;const n=ga.get(e);if(n)return n.analyser;const a=Js();return a?a.state==="running"?$r(a,e)?.analyser??null:(Ha(e),null):null}function Sn(e,n){const a=Xs(n);Tr.set(e,a);const r=ga.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const s=r.gain.gain;try{const i=r.gain.context.currentTime;s.cancelScheduledValues(i),s.setTargetAtTime(a,i,.01)}catch{try{s.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function za(e){return Tr.get(e)??e.volume}function iC(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const s=n[r];a+=s*s}return Math.sqrt(a/n.length)}const lC="__ihab_core_image_config__";function Xn(){return globalThis[lC]??null}const Qs="word_image_existence_map_v1";let Hn=null;const Va=new Map;function uC(){if(Hn)return Hn;try{const e=typeof localStorage<"u"?localStorage.getItem(Qs):null,n=e?JSON.parse(e):null;Hn=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{Hn={}}return Hn}let Rr=null;function cC(){Rr||(Rr=setTimeout(()=>{Rr=null;try{typeof localStorage<"u"&&Hn&&localStorage.setItem(Qs,JSON.stringify(Hn))}catch{}},200))}function dC(e,n){return`${e}_${n??1}`}async function ei(e,n){const a=uC(),r=dC(e,n);if(r in a)return a[r];if(Va.has(r))return Va.get(r);const s=Xn();if(!s)return!1;const i=s(e,n);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:tC(8e3)}).then(u=>u.status>=500?null:u.ok,()=>null).then(u=>(Va.delete(r),u===null?!1:(a[r]=u,cC(),u)));return Va.set(r,l),l}const pC={\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"}},ti=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ni=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],mC=["","\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 ba(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 hC(e){const n=ba(e[0]||"");return n?ti[n.cho]:""}function CC(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],a=l=>ti.includes(l),r=l=>ni.includes(l),s=n.map(l=>a(l)?"cho":r(l)?"jung":ba(l)?"syl":"other"),i=n.map(l=>ba(l));if(s.includes("other")){const l=e.toLowerCase();return u=>u.normalize("NFC").toLowerCase().includes(l)}return l=>{const u=[...l.normalize("NFC")];for(let d=0;d+n.length<=u.length;d++){let c=!0;for(let p=0;p<n.length;p++){const m=u[d+p],C=s[p];if(C==="cho"){if(hC(m)!==n[p]){c=!1;break}}else if(C==="jung"){const g=ba(m);if(!g||ni[g.jung]!==n[p]){c=!1;break}}else{const g=i[p];if(g&&g.jong===0){const v=ba(m);if(!v||v.cho!==g.cho||v.jung!==g.jung){c=!1;break}}else if(m!==n[p]){c=!1;break}}}if(c)return!0}return!1}}const fC={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(fC).map(([e,n])=>[n.join(""),mC[Number(e)]]));const gC="word_pair_index_v2",bC="word_pair_index_sig_v2";let Wa=null;function yC(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(gC),n=localStorage.getItem(bC);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function vC(){if(Wa)return Wa;const e=yC();return e?(Wa=e.index,e.sig,Wa):null}const Pr=/[ㄱ-ㅎ]/,xC=/[ㅏ-ㅣ]/;function ai(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||Pr.test(a)||xC.test(a))return a}return null}function _C(e){const n=ai(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Pr.test(n)?"\uC774":"\uAC00"}function wC(e){return`${e}${_C(e)}`}function AC(e){const n=ai(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Pr.test(n)?"\uC744":"\uB97C"}function BC(e){return`${e}${AC(e)}`}function kC(e,n,a){const r=e.slice(),[s]=r.splice(n,1);return r.splice(a,0,s),r}function ya(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(n()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const NC=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof St?.t=="function"?St.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function ri(e,n){if(n===void 0&&(n=NC()),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 DC="__ihab_core_word_pool__";function oi(){return globalThis[DC]??null}const si=globalThis;function ii(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function EC(e){ii("time",()=>si.__ihabTrainingTimeLogger?.(e))}function SC(e){ii("completion",()=>si.__ihabTrainingCompletionLogger?.(e))}function Gt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function jC(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 TC(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Gt(r.contextCode)??Gt(r.itemId)??Gt(r.itemCode)??Gt(r.id),question:Gt(r.question)??Gt(r.q)??Gt(r.sentence)??Gt(r.text)??Gt(r.prompt)??Gt(r.word)??Gt(r.targetSyllable),answer:Gt(r.answer),selected:Gt(r.selectedText)??Gt(r.selected),correct:jC(r)}}):[]}const Ir=globalThis;async function MC(){try{return await Ir.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function li(e){const n=a=>{};try{const a=Ir.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function qa(e){try{Ir.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function LC(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}const $C="Asia/Seoul",RC=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function Fr(e){let n;if(e instanceof Date)n=e;else if(typeof e=="string"){const a=e.trim(),r=RC.exec(a);n=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else n=new Date(e);return Number.isNaN(n.getTime())?null:n}const PC=e=>Fr(e);function IC(e,n){const a=n.startsWith("ko")?"ko-KR":"en-US",r=PC(e);return r?r.toLocaleDateString(a,{timeZone:$C,year:"numeric",month:"short",day:"numeric"}):""}function va(){return Hr(new Date)}function Or(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:va()}function Jn(){return OC(va())}const FC=540*60*1e3;function ui(e,n,a){return new Date(Date.UTC(e,n,a)-FC)}function OC(e){const[n,a,r]=e.split("-").map(Number);return new Date(n,(a||1)-1,r||1)}function Hr(e){if(e==null||e==="")return"";const n=Fr(e);return n?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n):""}function ci(e,n){if(!e)return"";const a=Fr(e);if(!a)return"";const r=a.getTime(),s=Math.max(0,Math.floor((Date.now()-r)/1e3)),i=Math.floor(s/60),l=Math.floor(i/60),u=Math.floor(l/24),d=Math.floor(u/7),c=Math.floor(u/30),p=Math.floor(u/365);return i<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):i<60?n("store.time.minutesAgo",{n:i}):l<24?n("store.time.hoursAgo",{n:l}):u<7?n("store.time.daysAgo",{n:u}):d<5?n("store.time.weeksAgo",{n:d}):u<365?n("store.time.monthsAgo",{n:Math.min(c,11)}):n("store.time.yearsAgo",{n:p})}function di(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=n;if(!e)return i;const l=Hr(e instanceof Date?e:String(e));if(!l)return i;const[u,d,c]=l.split("-"),p=r?d:String(Number(d)),m=r?c:String(Number(c));return`${u}${a}${p}${a}${m}${s?".":""}`}function Qn(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function pi(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),s=Number(a[2]),i=a[1].padStart(2,"0");return s===0?n("date.timeH",{h:r,hh:i,mm:a[2]}):n("date.timeHM",{h:r,hh:i,m:s,mm:a[2]})}function zr(e){return(e??0).toLocaleString("ko-KR")}const HC=[{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"}]}],zC=[{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 mi(){return HC}function VC(){return zC}const WC=[],qC=[],UC=[],GC=[];function KC(){return{LISTEN_IN_NOISE:WC,SHORT_STORY:qC,LONG_STORY:UC,ORDERING_SENTENCE:GC}}const YC=[{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."}],hi={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function ZC(e){return YC.map(n=>{const a=hi[n.key];return a?{...n,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:n})}let Ua=null,Ci=null,fi=null;function XC(){const e=oi();if(e&&e.entries.length>0){const n=vC();if(Ua&&Ci===e&&fi===n)return Ua;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:n?.[s.word]?[...n[s.word].cho??[],...n[s.word].jung??[],...n[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return Ua=r,Ci=e,fi=n,Ua}return[]}new Proxy([],{get(e,n){const a=XC(),r=a[n];return typeof r=="function"?r.bind(a):r}});const JC="0.253.0";function QC(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const n=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(n)}function ef(e){if(typeof window>"u")return"";const n=(a,r)=>{typeof r.attrValue=="string"&&QC(r.attrValue)&&(r.keepAttr=!1)};Er.addHook("uponSanitizeAttribute",n);try{return Er.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{Er.removeHook("uponSanitizeAttribute",n)}}function tf(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[u,d]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const c=e.split("/").pop();let p=e;c&&(e.startsWith("/")?p=Sr(e):/^(Logo|Symbol)/i.test(c)?p=Sr(`logo/${c}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),s(null),l(null),a(p)},[e]),o.useEffect(()=>{if(!n)return;let c=!1;async function p(){try{let m=await fetch(n);m.ok||(m=await fetch(n));const C=m.headers.get("content-type")||"";if(c)return;if(C.includes("svg")){s("mask");return}if(C.startsWith("image/")){s("img");return}const g=await fetch(n);if(!g.ok)throw new Error("not ok");const v=await g.text();if(c)return;if(/^\s*<svg[\s>]/i.test(v)){const b=ef(v);if(!b){s("none");return}l(b),s("inline");return}s("none")}catch{c||s("none")}}return p(),()=>{c=!0}},[n]),o.useEffect(()=>{let c=!1,p=null;return r==="mask"&&n&&fetch(n).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{c||(p=URL.createObjectURL(m),d(p))}).catch(()=>{c||s("img")}),()=>{c=!0,p&&URL.revokeObjectURL(p),d(null)}},[r,n]),{iconToUse:n,mode:r,svgText:i,blobUrl:u}}function Ze(e){const{icon:n,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:u,size:d}=e||{},c=r??"iconRenderer-icon",p=s??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",C=l??"iconRenderer-icon-svg",g=typeof n=="string"?n:null,v=h0(g),{iconToUse:b,mode:y,svgText:w,blobUrl:h}=tf(g),_=(k,B={})=>t.jsx("span",{className:c,style:u,...B,children:k}),f=typeof d=="number"?{width:d,height:d,objectFit:"contain"}:null,A=(k,B={})=>t.jsx("img",{src:k,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...B,style:f?{...B.style,...f}:B.style});if(!n)return null;if(typeof n!="string")return _(n);if(n==="none")return _(t.jsx("span",{className:C,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(v)try{return _(o.createElement(v,{className:C,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(y==="mask"){const k={"--icon-url":h?`url(${h})`:`url(${b})`,...typeof d=="number"?{"--icon-size":`${d}px`}:null};return _(t.jsx("span",{className:m,style:k}),{"aria-hidden":"true"})}return y==="img"?_(A(b,{onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):y==="inline"?_(t.jsx("span",{className:C,dangerouslySetInnerHTML:w?{__html:w}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return A(Sr(n),{style:u,onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}});const x=typeof d=="number"?d:20,N=`<svg width="${x}" height="${x}" 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:C,dangerouslySetInnerHTML:{__html:N}}),{"aria-hidden":"true"})}function gi(e){const[n,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const i=o.useCallback(()=>{if(!e||r.current)return;const l=e();if(l&&typeof l.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};l.then(u,u)}},[e]);return{pending:n,press:i}}function nf({icon:e,title:n,message:a,action:r,className:s}){const{pending:i,press:l}=gi(r?.onClick);return t.jsxs("div",{className:De("empty-state",s),children:[e&&t.jsx(Ze,{icon:e,size:48,className:"empty-state__icon"}),n&&t.jsx("p",{className:"empty-state__title h4",children:n}),a&&t.jsx("p",{className:"empty-state__message body-3",children:a}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:l,disabled:i,"aria-busy":i||void 0,children:[r.icon&&t.jsx(Ze,{icon:r.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function af({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=ye.useTranslation(),{pending:u,press:d}=gi(r);return t.jsxs("div",{className:De("empty-state","error-state",i),role:"alert",children:[t.jsx(Ze,{icon:a,size:48,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:"error-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:d,disabled:u,"aria-busy":u||void 0,children:[t.jsx(Ze,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:s??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function rf({icon:e,title:n,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:u=""}){const d=o.useId(),c=`${d}-title`,p=`${d}-desc`,m=`${d}-cta`,C=()=>{i||l?.()};return t.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":c,"aria-describedby":`${p} ${m}`,onClick:C,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),C())},className:De("action-card",`action-card--${s}`,i&&"action-card--disabled",u),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(Ze,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{id:c,className:"action-card__title",children:n}),t.jsx("p",{id:p,className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{id:m,children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Ze,{icon:"arrow-right",size:18})})]})]})})}function of({as:e="div",className:n="",children:a,storage:r,...s}){r&&Q0({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=De("ihabdevteam-core-scope",n);return t.jsx(e,{className:i,...s,children:a})}function Vr(e,n=!0){o.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const i=Array.from(a.querySelectorAll(mn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],u=i[i.length-1],d=document.activeElement,c=d===a;s.shiftKey&&(d===l||c)?(s.preventDefault(),u.focus()):!s.shiftKey&&d===u&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const mn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Wr=new WeakMap;function qr(e,n){e&&Wr.set(e,n)}function Ur(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!Wr.has(r);)r=r.parentElement;if(!r)return n;n=Wr.get(r)??null}return n}function bi(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function Ga(e,n,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(bi(n)&&!(e&&e.contains(n)))return n.focus(),n;if(!r)return null;const s=Array.from(document.querySelectorAll(mn)).filter(d=>!(e&&e.contains(d))&&bi(d));let i=null,l=null;for(const d of s)r.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_PRECEDING?i=d:l||(l=d);const u=i??l;return u?.focus(),u}function sf({title:e="",lines:n=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:u}=ye.useTranslation(),[d,c]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const b=p.current;b&&b.contains(document.activeElement)&&Ga(b),c(!0)},[]);if(d)return null;const C=`notice-box notice-box--${s} body-2 ${l}`.trim(),g=i&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:m,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return t.jsxs("div",{className:C,role:"note",children:[a.map((b,y)=>t.jsxs("div",{className:"notice-box__inner",children:[b.title?t.jsx("span",{className:"notice-box__title body-3",children:b.title}):null,t.jsx("div",{className:"notice-box__body",children:b.lines&&b.lines.length?t.jsx("div",{children:b.lines.map((w,h)=>t.jsx("span",{className:"notice-box__line body-3",children:w},h))}):b.children??null})]},y)),g]});const v=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((b,y)=>t.jsx("li",{className:"notice-box__line",children:b},y))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{ref:p,className:C,role:"note",children:[v,g]})}const ea=[];let Ka=!1;function yi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const n=ea[ea.length-1];n&&(e.stopPropagation(),n())}function zn(e){return ea.push(e),!Ka&&typeof document<"u"&&(document.addEventListener("keydown",yi),Ka=!0),()=>{const n=ea.lastIndexOf(e);n>=0&&ea.splice(n,1),ea.length===0&&Ka&&typeof document<"u"&&(document.removeEventListener("keydown",yi),Ka=!1)}}const vi=o.createContext(null);function lf(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const xi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function uf(e){const n=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return ns.useSyncExternalStore(n,()=>xi(e),()=>!1)}function cf(e){const[n,a]=o.useState(xi(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",s):i.addListener&&i.addListener(s),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",s):i.removeListener&&i.removeListener(s)}},[e]),n}const df=typeof ns.useSyncExternalStore=="function"?uf:cf;function tn(e){const n=o.useContext(vi),a=df(e);return n&&typeof n.mobile=="boolean"&&lf(e)?n.mobile:a}const pf="(prefers-reduced-motion: reduce)";function Gr(){return tn(pf)}function on(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:u="",role:d="dialog",ariaLabel:c="",children:p,backdrop:m=!1,isMobilePopup:C=!1,useBorder:g=!0,header:v,focusOnOpen:b}=e||{},y=o.useRef(null),[w,h]=o.useState({position:"fixed",left:0,top:-9999}),[_,f]=o.useState(!1),[A,x]=o.useState("bottom"),[N,k]=o.useState(!1),[B,E]=o.useState(!1),S=!n&&!a,z=o.useCallback((U=!1)=>{if(B&&C)return;const P=a?a.getBoundingClientRect():n;if(!P||!y.current)return;const F=y.current,{offsetWidth:D,offsetHeight:H}=F,M=window.innerWidth,I=window.innerHeight,$=M-P.right,K=P.left,ne=P.top,X=I-P.bottom;let ae=0,ue=0,le="top";if(ne>=H+r)le="top",ue=P.top-r-H,ae=P.left+P.width/2-D/2;else if(X>=H+r)le="bottom",ue=P.bottom+r,ae=P.left+P.width/2-D/2;else if($>=D+r)le="right",ae=P.right+r,ue=P.top+P.height/2-H/2;else if(K>=D+r)le="left",ae=P.left-r-D,ue=P.top+P.height/2-H/2;else{const oe=Math.max(ne,X,$,K);oe===ne?(le="top",ue=P.top-r-H,ae=P.left+P.width/2-D/2):oe===X?(le="bottom",ue=P.bottom+r,ae=P.left+P.width/2-D/2):oe===$?(le="right",ae=P.right+r,ue=P.top+P.height/2-H/2):(le="left",ae=P.left-r-D,ue=P.top+P.height/2-H/2)}const be=Number.isFinite(Number(s))?Number(s):8;ae=Math.min(Math.max(ae,be),M-D-be),ue=Math.min(Math.max(ue,be),I-H-be);const V=Math.round(ae),ee=Math.round(ue);U&&y.current?(y.current.style.left=`${V}px`,y.current.style.top=`${ee}px`,y.current.dataset.placement=le):(x(le||A),h({position:"fixed",left:V,top:ee}),k(!0))},[B,C,a,n,r,s,A]);o.useLayoutEffect(()=>{if(S)return;if(B&&C){h({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),k(!0);return}z();const U=requestAnimationFrame(()=>z());return()=>cancelAnimationFrame(U)},[n,a,r,p,s,S,B,C,z]),o.useEffect(()=>{if(S||B&&C||!y.current||typeof ResizeObserver>"u")return;const U=new ResizeObserver(()=>{n&&z()});return U.observe(y.current),()=>U.disconnect()},[n,p,s,S,B,C,z]),o.useEffect(()=>{if(S||B&&C)return;const U=()=>z(!0),P=F=>{if(!a&&i){const D=F.target;if(D&&y.current&&y.current.contains(D))return;try{if(D&&D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}O.current(!0);return}U()};return window.addEventListener("resize",U),document.addEventListener("scroll",P,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",U),document.removeEventListener("scroll",P,{capture:!0})}},[n,a,i,r,p,s,S,B,C,z]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const U=window.matchMedia("(max-width: 768px)"),P=()=>E(!!U.matches);P();try{U.addEventListener?U.addEventListener("change",P):U.addListener(P)}catch{try{U.addListener(P)}catch{}}return()=>{try{U.removeEventListener?U.removeEventListener("change",P):U.removeListener(P)}catch{}}},[]);const R=o.useRef(!1),q=o.useRef(null),j=Gr(),L=o.useCallback((U=!1)=>{if(i&&!(_||R.current)){if(R.current=!0,U){f(!0);try{i&&i()}catch{R.current=!1,f(!1)}return}f(!0),q.current=setTimeout(()=>{q.current=null;try{i&&i()}catch{R.current=!1,f(!1)}},j?0:200)}},[_,i,f,j]);o.useEffect(()=>()=>{q.current&&clearTimeout(q.current)},[]),o.useEffect(()=>{if(S)return;const U=D=>{const H=y.current;if(!H)return;const M=D.target;if(M&&!H.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&L(!0)}},P=D=>{const H=y.current;if(!H)return;const M=D.target;if(M&&!H.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&L(!0)}},F=D=>{if(D.key==="Tab"){const H=y.current;if(!H)return;const M=H.querySelectorAll(mn);if(!M||M.length===0)return;const I=M[0],$=M[M.length-1],K=document.activeElement;D.shiftKey?K===I&&(D.preventDefault(),$.focus()):K===$&&(D.preventDefault(),I.focus())}};return document.addEventListener("pointerdown",U,!0),document.addEventListener("click",P,!0),document.addEventListener("keydown",F),()=>{document.removeEventListener("pointerdown",U,!0),document.removeEventListener("click",P,!0),document.removeEventListener("keydown",F)}},[i,l,L,S]);const O=o.useRef(L);o.useEffect(()=>{O.current=L});const Z=!!i;o.useEffect(()=>{if(!(S||!Z))return zn(()=>O.current())},[S,Z]),o.useEffect(()=>{const U=()=>{L(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",U),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",U)}},[L]);const te=o.useRef(null);o.useEffect(()=>{if(S||b===!1||!N)return;const U=y.current;if(!U)return;const P=U.querySelector(mn);if(P)return te.current=document.activeElement,P.focus(),()=>{const F=te.current;te.current=null,F&&document.contains(F)&&F.focus()}},[S,b,N]),o.useEffect(()=>{d==="dialog"&&!c&&an("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[d,c]);const W=t.jsxs("div",{ref:y,className:`tooltip-content ${S?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${_?"is-closing":""} ${u} ${B&&C?"is-mobile":""}`,role:d,"aria-label":c||void 0,style:S?{}:{...w,visibility:N?"visible":"hidden"},tabIndex:-1,"data-placement":A,"data-left":S?"":w.left,"data-top":S?"":w.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:[v!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:v}),p]});if(S||typeof document>"u")return W;if(m||B&&C){const U=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&L(!0)}}),W]});return Xt.createPortal(U,document.body)}return Xt.createPortal(W,document.body)}function vn(e){const{anchorRect:n,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?t.jsx(on,{anchorRect:n,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Vn(e){const{t:n}=ye.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:u,offset:d=12,closeOnOutsideClick:c=!0}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:t.jsx(on,{anchorRect:a,offset:d,onClose:u,closeOnOutsideClick:c,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,C)=>t.jsxs("li",{className:`tooltip-description__item body-3${C===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[C+1,"."]}),m.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),t.jsx("span",{children:m.text})]},C))})]})})}function xa(e){const n=o.useRef(e);return o.useEffect(()=>{n.current=e}),n}let Kr=0,_i=!1;function wi(){_i||typeof document>"u"||(_i=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(Kr=Date.now())},!0),document.addEventListener("touchstart",()=>{Kr=Date.now()},{capture:!0,passive:!0}))}wi();function ta(e){return!!e&&e.pointerType==="touch"}function na(e=1e3){return wi(),Date.now()-Kr<e}function Yr(e,n,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=xa(e),l=xa(n),u=o.useRef(null),d=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const p=m=>{const C=m,g=m.target,v=a.current,b=!!(g&&v&&v.contains(g));if(C.pointerType!=="touch"){b&&(u.current=null);return}if(b){u.current=i.current;return}u.current=null,i.current&&!(g&&g.closest?.(".tooltip-content"))&&l.current(!1,v)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[r,a,i,l]);const c=o.useCallback(p=>{const m=u.current;return m===null?!1:(u.current=null,d.current=Date.now(),l.current(!m,p??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const p=a.current,m=p?.parentElement;if(!p||!m)return;let C=null;const g=y=>{const w=y.changedTouches?.[0];if(!w)return!1;const h=p.getBoundingClientRect();return w.clientX>=h.left&&w.clientX<=h.right&&w.clientY>=h.top&&w.clientY<=h.bottom},v=y=>{C=g(y)?i.current:null},b=y=>{const w=C;C=null,!(w===null||Date.now()-d.current<700||!g(y))&&(u.current=null,d.current=Date.now(),l.current(!w,p))};return m.addEventListener("touchstart",v,{passive:!0}),m.addEventListener("touchend",b),()=>{m.removeEventListener("touchstart",v),m.removeEventListener("touchend",b)}},[r,s,a,i,l]),{touchPress:c}}function mf(e,n){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:u,icon:d,rightIcon:c,label:p,count:m,subLabel:C,children:g,ariaLabel:v,variant:b="default",align:y="center",nowrap:w=!1,selected:h,toggleable:_=!1,ariaExpanded:f,ariaControls:A,disabled:x=!1,useLabel:N=!0,useBorder:k=!0,useBG:B=!0,useDisabledCovered:E=!1,useDisabledInvisible:S=!1,width:z,minWidth:R,onClick:q,onDisabledClick:j,showTooltipInfo:L=!1,tooltipInfoText:O=null,tooltipDescription:Z=null,tooltipOnly:te=!1,iconSize:W="medium",iconColor:U,shape:P="rounded",color:F,className:D,...H}=e,M=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),I=M.match(/^\d+$/)?`button${M}`:`button-${M}`,$=Number(a),K=!isNaN($)&&$<40?"button-2":"button-1",ne=p??g,X=x||!!H.disabled,ae=X?E?"disabled-covered":S?"disabled-invisibled":"disabled":b,ue=ae?`button--variant-${ae}`:"",le=y?`button--align-${y}`:"",be=w?"button--nowrap":"",V=P?`button--shape-${P}`:"",ee=typeof U=="string"&&U.startsWith("--")?`var(${U})`:U,oe={...z?{width:typeof z=="number"?`${z}px`:z}:{},...R?{minWidth:typeof R=="number"?`${R}px`:R}:{},...k?{}:{"--button-border":X?"0":"1px solid transparent"},...ee?{"--button-icon-color":ee}:{},...F?{"--color-main":F}:{}},Be=N===!1?"":ne,Ce=Array.isArray(Be)?Be.length>0:!!Be,se=!!c,ge=r??(Ce||d||se?"bar":"dot"),fe=`${I}--${ge}`,xe=o.useRef(null),$e=o.useRef(n);$e.current=n;const Le=o.useCallback(Oe=>{xe.current=Oe;const at=$e.current;typeof at=="function"?at(Oe):at&&(at.current=Oe)},[]),Qe=o.useRef(X),[Ue,ze]=o.useState(!!h),[Ie,st]=o.useState(!1),[Xe,Je]=o.useState(null),Ee=o.useCallback(()=>st(!1),[]),[ke,Me]=o.useState(!1),Ve=o.useId();o.useEffect(()=>{typeof h=="boolean"&&ze(h)},[h]),o.useEffect(()=>{if(Qe.current&&!X&&xe.current){const Oe=xe.current;let at=!1;try{at=Oe.matches(":focus:not(:focus-visible)")}catch{at=!1}at&&Oe.blur(),Oe.style.pointerEvents="none";const ft=requestAnimationFrame(()=>{requestAnimationFrame(()=>{xe.current&&(xe.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(ft)}Qe.current=X},[X]);const lt=typeof h=="boolean"?!!h:Ue,Q=typeof f=="boolean"?void 0:_||typeof h=="boolean"?lt?"true":"false":H["aria-pressed"],ce=De("button",I,fe,ue,le,be,V,lt?"is-selected":null,B?null:"button--no-bg",te?"button--tooltip-only":null,D),me=`button__icon button__icon--${W}`,Se=Array.isArray(C)?C:C!==void 0?[C]:[],et=()=>{if(Array.isArray(Be))return Be.map((at,ft)=>{const Ot=Se[ft];return t.jsxs("span",{className:`button__label-text${Ot!==void 0?" button__label-text--has-sub":""}`,children:[at,Ot!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:Ot})]},ft)});const Oe=C!==void 0;return t.jsxs("span",{className:`button__label-text${Oe?" button__label-text--has-sub":""}`,children:[Be,m!=null&&t.jsx("span",{className:"button__count",children:m}),Oe&&t.jsx("span",{className:"button__sub-label-text caption-1",children:C})]})},Ke=Oe=>{typeof h!="boolean"&&!_&&ze(!1),Oe.currentTarget.blur()},bt=Oe=>{X||(typeof H.onMouseLeave=="function"&&H.onMouseLeave(Oe),Ke(Oe))},ut=Oe=>{if(te&&Ge&&Ye.touchPress(Oe.currentTarget),X){Ge&&Ye.touchPress(Oe.currentTarget),Oe.preventDefault(),j?.(Oe);return}typeof h!="boolean"&&_&&ze(at=>!at),q?.(Oe)},it=o.useCallback(()=>{(L||Z)&&(st(!0),Je(xe.current?.getBoundingClientRect()??null))},[L,Z]),tt=o.useCallback(()=>{(L||Z)&&(st(!1),Je(null))},[L,Z]),Ge=!!(L||Z),Ye=Yr(Ie,Oe=>{Oe?it():tt()},xe,{enabled:Ge&&(X||te),fallbackOnParent:Ge&&X}),Re={...H};delete Re.disabled,delete Re.className,delete Re.faded,delete Re.useFaded,delete Re.loading,delete Re.onMouseLeave,delete Re.onPointerEnter,delete Re.onPointerLeave,delete Re.onPointerUp,delete Re.onFocus,delete Re.onBlur,X&&(Object.keys(Re).forEach(Oe=>{/^on[A-Z]/.test(Oe)&&typeof Re[Oe]=="function"&&delete Re[Oe]}),Re["aria-disabled"]="true");const We=(typeof L=="string"?L:null)??(typeof O=="string"?O:null)??(typeof v=="string"?v:null)??(typeof ne=="string"?ne:null)??void 0,Fe=typeof v=="string"?v:typeof ne=="string"?ne:We,ct=Z?[Z.title,...Z.items??[]].filter(Boolean).join(". "):L&&We&&We!==Fe?We:"",Bt=[typeof H["aria-describedby"]=="string"?H["aria-describedby"]:void 0,ct?Ve:null].filter(Boolean).join(" ")||void 0,Nt=(Oe,at)=>t.jsx(Ze,{icon:Oe,label:at??Fe,className:me,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Ct=()=>ge==="dot"?t.jsxs(t.Fragment,{children:[Nt(d),Ce&&t.jsx("span",{className:`button__label ${K}`,children:et()})]}):y==="center"&&d?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:Nt(d)}),Ce&&t.jsx("span",{className:`button__label ${K}`,children:et()})]}),se&&t.jsx("span",{className:"button__right",children:Nt(c)})]}):t.jsxs(t.Fragment,{children:[d&&t.jsx("span",{className:"button__left",children:Nt(d,v??ne)}),Ce&&t.jsx("span",{className:`button__label ${K}`,children:et()}),se&&t.jsx("span",{className:"button__right",children:Nt(c)})]}),dt=!!i&&!X;return t.jsxs(t.Fragment,{children:[t.jsxs(dt?"a":"button",{...Re,ref:Le,...dt?{href:i,target:l,rel:u??(l==="_blank"?"noreferrer":void 0)}:{type:s,disabled:X&&!j&&!ke},className:ce,"aria-pressed":Q,"aria-expanded":typeof f=="boolean"?f:H["aria-expanded"],"aria-controls":A??H["aria-controls"],"aria-label":Fe,"aria-disabled":X&&(dt||j||ke)?!0:void 0,"aria-describedby":Bt,style:oe,onClick:ut,onMouseLeave:bt,onPointerEnter:Oe=>{ta(Oe)||it(),!X&&typeof H.onPointerEnter=="function"&&H.onPointerEnter(Oe)},onPointerLeave:Oe=>{ta(Oe)||tt(),!X&&typeof H.onPointerLeave=="function"&&H.onPointerLeave(Oe)},onPointerUp:Oe=>{X&&Ge&&Ye.touchPress(Oe.currentTarget),!X&&typeof H.onPointerUp=="function"&&H.onPointerUp(Oe)},onFocus:Oe=>{Me(!0),na()||it(),!X&&typeof H.onFocus=="function"&&H.onFocus(Oe)},onBlur:Oe=>{Me(!1),X||Ke(Oe),tt(),!X&&typeof H.onBlur=="function"&&H.onBlur(Oe)},children:[Ct(),ct?t.jsx("span",{id:Ve,hidden:!0,"aria-label":ct}):null]}),Ie&&Z?t.jsx(Vn,{anchorRect:Xe,title:Z.title,items:Z.items,onClose:Ee}):Ie&&We?t.jsx(vn,{anchorRect:Xe,text:We,onClose:Ee}):null]})}const pe=o.forwardRef(mf);pe.displayName="Button";var hf={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",playFor:"{{name}} \uC7AC\uC0DD",pauseFor:"{{name}} \uBA48\uCDA4",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",noMatches:"\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."},Cf={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",visitCount:"\uBC29\uBB38 {{count}}\uAC74"},ff={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",expired:"\uB9CC\uB8CC\uB428",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},gf={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},bf={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},yf={selected:"\uC120\uD0DD\uB428"},vf={placeholder:"\uC120\uD0DD"},xf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},_f={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"},wf={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",feedback:"\uBC84\uADF8\uC2E0\uACE0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C",badgeInsideLabel:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"},Af={language:{training:{label:"\uD6C8\uB828 \uC5B8\uC5B4",sub:"\uD6C8\uB828\uC5D0 \uC0AC\uC6A9\uB418\uB294 \uB2E8\uC5B4\uC640 \uC74C\uC131 \uC5B8\uC5B4"}},notifications:{title:"\uC54C\uB9BC"},display:{fontSize:{small:"\uC791\uAC8C",large:"\uD06C\uAC8C"}},cache:{title:"\uCE90\uC2DC \uAD00\uB9AC",confirmMessage:"\uCE90\uC2DC({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",delete:"\uC0AD\uC81C",deleting:"\uC0AD\uC81C \uC911",cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"},trainingRecord:{label:"\uD6C8\uB828 \uAE30\uB85D",sub:"\uC624\uB298\uC758 \uD6C8\uB828 \uC9C4\uD589\uB960 \uBC0F \uD559\uC2B5 \uC77C\uC218"}}},button:{save:"\uC124\uC815 \uC800\uC7A5"},popup:{clear:{confirm:"\uCD08\uAE30\uD654"},update:{confirm:"\uC5C5\uB370\uC774\uD2B8"},cache:{title:"{{label}} \uC0AD\uC81C",message:"{{label}}({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"}},saved:"\u2713 \uC800\uC7A5\uB428",account:{title:"\uACC4\uC815",delete:{sub:"\uD0C8\uD1F4 \uD6C4 30\uC77C \uC774\uB0B4 \uC7AC\uAC00\uC785 \uC2DC \uBCF5\uAD6C \uAC00\uB2A5\uD569\uB2C8\uB2E4."}}},Bf={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."}},kf={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"}}},Nf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},Df={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",previewFor:"{{name}} \uBBF8\uB9AC \uB4E3\uAE30",stopFor:"{{name}} \uC815\uC9C0",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",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"}},Ef={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"},Sf={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"}},jf={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"}}}},Tf={title:"\uCFE0\uD3F0",subtitle:"\uCFE0\uD3F0 \uCF54\uB4DC\uB97C \uC785\uB825\uD558\uAC70\uB098 \uBCF4\uC720 \uCFE0\uD3F0\uC744 \uD655\uC778\uD558\uC138\uC694.",input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9",error:{invalid:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uCFE0\uD3F0 \uCF54\uB4DC\uC785\uB2C8\uB2E4.",alreadyUsed:"\uC774\uBBF8 \uC0AC\uC6A9\uB41C \uCFE0\uD3F0\uC785\uB2C8\uB2E4."},success:{applied:'"{{name}}" \uCFE0\uD3F0\uC774 \uC801\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.'},section:{owned:"\uBCF4\uC720 \uCFE0\uD3F0"},status:{used:"\uC0AC\uC6A9 \uC644\uB8CC",available:"\uC0AC\uC6A9 \uAC00\uB2A5"}},Mf={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},Lf={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"}},$f={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."}},Rf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},Pf={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"},If={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},Ff={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",topInfo:"\uC0C1\uB2E8 \uC815\uBCF4",bottomInfo:"\uD558\uB2E8 \uC815\uBCF4",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"{{name}} \uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\uD2C0\uB9BC"},button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74, \uC790\uD310\uC73C\uB85C\uB294 \uCE78\uC5D0 \uCD08\uC810\uC774 \uAC00\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"}},Of={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193",original:"\uBC1B\uC740 \uC21C\uC11C"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},Hf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},zf={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"}},Vf={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"}},Wf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},qf={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"}},Gf={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"}},Kf={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",countLabel:"\uC74C\uC18C \uAC1C\uC218",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\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."]},Yf={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"}},Zf={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
847
+ `),this.name="StorageNotConfiguredError"}};function Q0(e){J0(e)}function qs(e,n){if(!e)return null;const a=fa();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function Us(e){if(!e)return null;const n=fa();if(!n)throw new Ws("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function Gs(e){const n=fa();if(!n)throw new Ws("downloadSound");return n.download(e)}function eC(){return fa()?.noiseBaseUrl??"/sounds/noise"}function Ks(){const e=Number(fa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function tC(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 Ys="__ihab_core_tts_config__";function jr(){return globalThis[Ys]?.urlResolver??null}function nC(){return globalThis[Ys]?.fallbackUrlResolver??null}const aC="__ihab_core_pronunciation_resolver__";function rC(){return globalThis[aC]??null}let En=null;const ga=new WeakMap,Tr=new WeakMap,Mr=new WeakMap;let Zs=!1;const Xs=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function oC(){if(Zs||typeof document>"u")return;Zs=!0;const e=()=>{try{En&&En.state!=="running"&&En.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function Js(){if(En)return En;try{const e=window.AudioContext||window.webkitAudioContext;return e?(En=new e,oC(),En):null}catch{return null}}function Lr(){try{En?.resume()}catch{}}function $r(e,n){const a=ga.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),s=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,s.gain.value=Xs(Tr.get(n)??n.volume),r.connect(s),s.connect(i),s.connect(e.destination);try{n.volume=1}catch{}const l={gain:s,analyser:i};return ga.set(n,l),l}catch{return null}}function Ha(e){if(!e)return Promise.resolve(null);const n=ga.get(e);if(n)return Promise.resolve(n.analyser);const a=Js();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve($r(a,e)?.analyser??null);const r=Mr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?$r(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Mr.delete(e)});return Mr.set(e,s),s}function sC(e){if(!e)return null;const n=ga.get(e);if(n)return n.analyser;const a=Js();return a?a.state==="running"?$r(a,e)?.analyser??null:(Ha(e),null):null}function Sn(e,n){const a=Xs(n);Tr.set(e,a);const r=ga.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const s=r.gain.gain;try{const i=r.gain.context.currentTime;s.cancelScheduledValues(i),s.setTargetAtTime(a,i,.01)}catch{try{s.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function za(e){return Tr.get(e)??e.volume}function iC(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const s=n[r];a+=s*s}return Math.sqrt(a/n.length)}const lC="__ihab_core_image_config__";function Xn(){return globalThis[lC]??null}const Qs="word_image_existence_map_v1";let Hn=null;const Va=new Map;function uC(){if(Hn)return Hn;try{const e=typeof localStorage<"u"?localStorage.getItem(Qs):null,n=e?JSON.parse(e):null;Hn=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{Hn={}}return Hn}let Rr=null;function cC(){Rr||(Rr=setTimeout(()=>{Rr=null;try{typeof localStorage<"u"&&Hn&&localStorage.setItem(Qs,JSON.stringify(Hn))}catch{}},200))}function dC(e,n){return`${e}_${n??1}`}async function ei(e,n){const a=uC(),r=dC(e,n);if(r in a)return a[r];if(Va.has(r))return Va.get(r);const s=Xn();if(!s)return!1;const i=s(e,n);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:tC(8e3)}).then(u=>u.status>=500?null:u.ok,()=>null).then(u=>(Va.delete(r),u===null?!1:(a[r]=u,cC(),u)));return Va.set(r,l),l}const pC={\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"}},ti=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ni=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],mC=["","\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 ba(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 hC(e){const n=ba(e[0]||"");return n?ti[n.cho]:""}function CC(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],a=l=>ti.includes(l),r=l=>ni.includes(l),s=n.map(l=>a(l)?"cho":r(l)?"jung":ba(l)?"syl":"other"),i=n.map(l=>ba(l));if(s.includes("other")){const l=e.toLowerCase();return u=>u.normalize("NFC").toLowerCase().includes(l)}return l=>{const u=[...l.normalize("NFC")];for(let d=0;d+n.length<=u.length;d++){let c=!0;for(let p=0;p<n.length;p++){const m=u[d+p],C=s[p];if(C==="cho"){if(hC(m)!==n[p]){c=!1;break}}else if(C==="jung"){const g=ba(m);if(!g||ni[g.jung]!==n[p]){c=!1;break}}else{const g=i[p];if(g&&g.jong===0){const v=ba(m);if(!v||v.cho!==g.cho||v.jung!==g.jung){c=!1;break}}else if(m!==n[p]){c=!1;break}}}if(c)return!0}return!1}}const fC={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(fC).map(([e,n])=>[n.join(""),mC[Number(e)]]));const gC="word_pair_index_v2",bC="word_pair_index_sig_v2";let Wa=null;function yC(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(gC),n=localStorage.getItem(bC);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function vC(){if(Wa)return Wa;const e=yC();return e?(Wa=e.index,e.sig,Wa):null}const Pr=/[ㄱ-ㅎ]/,xC=/[ㅏ-ㅣ]/;function ai(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||Pr.test(a)||xC.test(a))return a}return null}function _C(e){const n=ai(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Pr.test(n)?"\uC774":"\uAC00"}function wC(e){return`${e}${_C(e)}`}function AC(e){const n=ai(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Pr.test(n)?"\uC744":"\uB97C"}function BC(e){return`${e}${AC(e)}`}function kC(e,n,a){const r=e.slice(),[s]=r.splice(n,1);return r.splice(a,0,s),r}function ya(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(n()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const NC=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof St?.t=="function"?St.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function ri(e,n){if(n===void 0&&(n=NC()),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 DC="__ihab_core_word_pool__";function oi(){return globalThis[DC]??null}const si=globalThis;function ii(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function EC(e){ii("time",()=>si.__ihabTrainingTimeLogger?.(e))}function SC(e){ii("completion",()=>si.__ihabTrainingCompletionLogger?.(e))}function Gt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function jC(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 TC(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Gt(r.contextCode)??Gt(r.itemId)??Gt(r.itemCode)??Gt(r.id),question:Gt(r.question)??Gt(r.q)??Gt(r.sentence)??Gt(r.text)??Gt(r.prompt)??Gt(r.word)??Gt(r.targetSyllable),answer:Gt(r.answer),selected:Gt(r.selectedText)??Gt(r.selected),correct:jC(r)}}):[]}const Ir=globalThis;async function MC(){try{return await Ir.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function li(e){const n=a=>{};try{const a=Ir.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function qa(e){try{Ir.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function LC(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}const $C="Asia/Seoul",RC=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function Fr(e){let n;if(e instanceof Date)n=e;else if(typeof e=="string"){const a=e.trim(),r=RC.exec(a);n=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else n=new Date(e);return Number.isNaN(n.getTime())?null:n}const PC=e=>Fr(e);function IC(e,n){const a=n.startsWith("ko")?"ko-KR":"en-US",r=PC(e);return r?r.toLocaleDateString(a,{timeZone:$C,year:"numeric",month:"short",day:"numeric"}):""}function va(){return Hr(new Date)}function Or(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:va()}function Jn(){return OC(va())}const FC=540*60*1e3;function ui(e,n,a){return new Date(Date.UTC(e,n,a)-FC)}function OC(e){const[n,a,r]=e.split("-").map(Number);return new Date(n,(a||1)-1,r||1)}function Hr(e){if(e==null||e==="")return"";const n=Fr(e);return n?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n):""}function ci(e,n){if(!e)return"";const a=Fr(e);if(!a)return"";const r=a.getTime(),s=Math.max(0,Math.floor((Date.now()-r)/1e3)),i=Math.floor(s/60),l=Math.floor(i/60),u=Math.floor(l/24),d=Math.floor(u/7),c=Math.floor(u/30),p=Math.floor(u/365);return i<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):i<60?n("store.time.minutesAgo",{n:i}):l<24?n("store.time.hoursAgo",{n:l}):u<7?n("store.time.daysAgo",{n:u}):d<5?n("store.time.weeksAgo",{n:d}):u<365?n("store.time.monthsAgo",{n:Math.min(c,11)}):n("store.time.yearsAgo",{n:p})}function di(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=n;if(!e)return i;const l=Hr(e instanceof Date?e:String(e));if(!l)return i;const[u,d,c]=l.split("-"),p=r?d:String(Number(d)),m=r?c:String(Number(c));return`${u}${a}${p}${a}${m}${s?".":""}`}function Qn(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function pi(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),s=Number(a[2]),i=a[1].padStart(2,"0");return s===0?n("date.timeH",{h:r,hh:i,mm:a[2]}):n("date.timeHM",{h:r,hh:i,m:s,mm:a[2]})}function zr(e){return(e??0).toLocaleString("ko-KR")}const HC=[{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"}]}],zC=[{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 mi(){return HC}function VC(){return zC}const WC=[],qC=[],UC=[],GC=[];function KC(){return{LISTEN_IN_NOISE:WC,SHORT_STORY:qC,LONG_STORY:UC,ORDERING_SENTENCE:GC}}const YC=[{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."}],hi={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function ZC(e){return YC.map(n=>{const a=hi[n.key];return a?{...n,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:n})}let Ua=null,Ci=null,fi=null;function XC(){const e=oi();if(e&&e.entries.length>0){const n=vC();if(Ua&&Ci===e&&fi===n)return Ua;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:n?.[s.word]?[...n[s.word].cho??[],...n[s.word].jung??[],...n[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return Ua=r,Ci=e,fi=n,Ua}return[]}new Proxy([],{get(e,n){const a=XC(),r=a[n];return typeof r=="function"?r.bind(a):r}});const JC="0.255.0";function QC(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const n=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(n)}function ef(e){if(typeof window>"u")return"";const n=(a,r)=>{typeof r.attrValue=="string"&&QC(r.attrValue)&&(r.keepAttr=!1)};Er.addHook("uponSanitizeAttribute",n);try{return Er.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{Er.removeHook("uponSanitizeAttribute",n)}}function tf(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[u,d]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const c=e.split("/").pop();let p=e;c&&(e.startsWith("/")?p=Sr(e):/^(Logo|Symbol)/i.test(c)?p=Sr(`logo/${c}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),s(null),l(null),a(p)},[e]),o.useEffect(()=>{if(!n)return;let c=!1;async function p(){try{let m=await fetch(n);m.ok||(m=await fetch(n));const C=m.headers.get("content-type")||"";if(c)return;if(C.includes("svg")){s("mask");return}if(C.startsWith("image/")){s("img");return}const g=await fetch(n);if(!g.ok)throw new Error("not ok");const v=await g.text();if(c)return;if(/^\s*<svg[\s>]/i.test(v)){const b=ef(v);if(!b){s("none");return}l(b),s("inline");return}s("none")}catch{c||s("none")}}return p(),()=>{c=!0}},[n]),o.useEffect(()=>{let c=!1,p=null;return r==="mask"&&n&&fetch(n).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{c||(p=URL.createObjectURL(m),d(p))}).catch(()=>{c||s("img")}),()=>{c=!0,p&&URL.revokeObjectURL(p),d(null)}},[r,n]),{iconToUse:n,mode:r,svgText:i,blobUrl:u}}function Ze(e){const{icon:n,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:u,size:d}=e||{},c=r??"iconRenderer-icon",p=s??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",C=l??"iconRenderer-icon-svg",g=typeof n=="string"?n:null,v=h0(g),{iconToUse:b,mode:y,svgText:w,blobUrl:h}=tf(g),_=(k,B={})=>t.jsx("span",{className:c,style:u,...B,children:k}),f=typeof d=="number"?{width:d,height:d,objectFit:"contain"}:null,A=(k,B={})=>t.jsx("img",{src:k,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...B,style:f?{...B.style,...f}:B.style});if(!n)return null;if(typeof n!="string")return _(n);if(n==="none")return _(t.jsx("span",{className:C,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(v)try{return _(o.createElement(v,{className:C,size:typeof d=="number"?d:20}),{"aria-hidden":"true"})}catch{}if(b&&b.endsWith(".svg")){if(y==="mask"){const k={"--icon-url":h?`url(${h})`:`url(${b})`,...typeof d=="number"?{"--icon-size":`${d}px`}:null};return _(t.jsx("span",{className:m,style:k}),{"aria-hidden":"true"})}return y==="img"?_(A(b,{onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):y==="inline"?_(t.jsx("span",{className:C,dangerouslySetInnerHTML:w?{__html:w}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return A(Sr(n),{style:u,onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}});const x=typeof d=="number"?d:20,N=`<svg width="${x}" height="${x}" 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:C,dangerouslySetInnerHTML:{__html:N}}),{"aria-hidden":"true"})}function gi(e){const[n,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const i=o.useCallback(()=>{if(!e||r.current)return;const l=e();if(l&&typeof l.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};l.then(u,u)}},[e]);return{pending:n,press:i}}function nf({icon:e,title:n,message:a,action:r,className:s}){const{pending:i,press:l}=gi(r?.onClick);return t.jsxs("div",{className:Ne("empty-state",s),children:[e&&t.jsx(Ze,{icon:e,size:48,className:"empty-state__icon"}),n&&t.jsx("p",{className:"empty-state__title h4",children:n}),a&&t.jsx("p",{className:"empty-state__message body-3",children:a}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:l,disabled:i,"aria-busy":i||void 0,children:[r.icon&&t.jsx(Ze,{icon:r.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function af({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=ye.useTranslation(),{pending:u,press:d}=gi(r);return t.jsxs("div",{className:Ne("empty-state","error-state",i),role:"alert",children:[t.jsx(Ze,{icon:a,size:48,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:"error-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:d,disabled:u,"aria-busy":u||void 0,children:[t.jsx(Ze,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:s??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function rf({icon:e,title:n,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:u=""}){const d=o.useId(),c=`${d}-title`,p=`${d}-desc`,m=`${d}-cta`,C=()=>{i||l?.()};return t.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":c,"aria-describedby":`${p} ${m}`,onClick:C,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),C())},className:Ne("action-card",`action-card--${s}`,i&&"action-card--disabled",u),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(Ze,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{id:c,className:"action-card__title",children:n}),t.jsx("p",{id:p,className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{id:m,children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Ze,{icon:"arrow-right",size:18})})]})]})})}function of({as:e="div",className:n="",children:a,storage:r,...s}){r&&Q0({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=Ne("ihabdevteam-core-scope",n);return t.jsx(e,{className:i,...s,children:a})}function Vr(e,n=!0){o.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const i=Array.from(a.querySelectorAll(mn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],u=i[i.length-1],d=document.activeElement,c=d===a;s.shiftKey&&(d===l||c)?(s.preventDefault(),u.focus()):!s.shiftKey&&d===u&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const mn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Wr=new WeakMap;function qr(e,n){e&&Wr.set(e,n)}function Ur(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!Wr.has(r);)r=r.parentElement;if(!r)return n;n=Wr.get(r)??null}return n}function bi(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function Ga(e,n,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(bi(n)&&!(e&&e.contains(n)))return n.focus(),n;if(!r)return null;const s=Array.from(document.querySelectorAll(mn)).filter(d=>!(e&&e.contains(d))&&bi(d));let i=null,l=null;for(const d of s)r.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_PRECEDING?i=d:l||(l=d);const u=i??l;return u?.focus(),u}function sf({title:e="",lines:n=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:u}=ye.useTranslation(),[d,c]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const b=p.current;b&&b.contains(document.activeElement)&&Ga(b),c(!0)},[]);if(d)return null;const C=`notice-box notice-box--${s} body-2 ${l}`.trim(),g=i&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:m,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return t.jsxs("div",{className:C,role:"note",children:[a.map((b,y)=>t.jsxs("div",{className:"notice-box__inner",children:[b.title?t.jsx("span",{className:"notice-box__title body-3",children:b.title}):null,t.jsx("div",{className:"notice-box__body",children:b.lines&&b.lines.length?t.jsx("div",{children:b.lines.map((w,h)=>t.jsx("span",{className:"notice-box__line body-3",children:w},h))}):b.children??null})]},y)),g]});const v=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((b,y)=>t.jsx("li",{className:"notice-box__line",children:b},y))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{ref:p,className:C,role:"note",children:[v,g]})}const ea=[];let Ka=!1;function yi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const n=ea[ea.length-1];n&&(e.stopPropagation(),n())}function zn(e){return ea.push(e),!Ka&&typeof document<"u"&&(document.addEventListener("keydown",yi),Ka=!0),()=>{const n=ea.lastIndexOf(e);n>=0&&ea.splice(n,1),ea.length===0&&Ka&&typeof document<"u"&&(document.removeEventListener("keydown",yi),Ka=!1)}}const vi=o.createContext(null);function lf(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const xi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function uf(e){const n=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return ns.useSyncExternalStore(n,()=>xi(e),()=>!1)}function cf(e){const[n,a]=o.useState(xi(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",s):i.addListener&&i.addListener(s),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",s):i.removeListener&&i.removeListener(s)}},[e]),n}const df=typeof ns.useSyncExternalStore=="function"?uf:cf;function tn(e){const n=o.useContext(vi),a=df(e);return n&&typeof n.mobile=="boolean"&&lf(e)?n.mobile:a}const pf="(prefers-reduced-motion: reduce)";function Gr(){return tn(pf)}function on(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:u="",role:d="dialog",ariaLabel:c="",children:p,backdrop:m=!1,isMobilePopup:C=!1,useBorder:g=!0,header:v,focusOnOpen:b}=e||{},y=o.useRef(null),[w,h]=o.useState({position:"fixed",left:0,top:-9999}),[_,f]=o.useState(!1),[A,x]=o.useState("bottom"),[N,k]=o.useState(!1),[B,E]=o.useState(!1),S=!n&&!a,z=o.useCallback((U=!1)=>{if(B&&C)return;const P=a?a.getBoundingClientRect():n;if(!P||!y.current)return;const F=y.current,{offsetWidth:D,offsetHeight:H}=F,M=window.innerWidth,I=window.innerHeight,$=M-P.right,K=P.left,ne=P.top,X=I-P.bottom;let ae=0,ue=0,le="top";if(ne>=H+r)le="top",ue=P.top-r-H,ae=P.left+P.width/2-D/2;else if(X>=H+r)le="bottom",ue=P.bottom+r,ae=P.left+P.width/2-D/2;else if($>=D+r)le="right",ae=P.right+r,ue=P.top+P.height/2-H/2;else if(K>=D+r)le="left",ae=P.left-r-D,ue=P.top+P.height/2-H/2;else{const oe=Math.max(ne,X,$,K);oe===ne?(le="top",ue=P.top-r-H,ae=P.left+P.width/2-D/2):oe===X?(le="bottom",ue=P.bottom+r,ae=P.left+P.width/2-D/2):oe===$?(le="right",ae=P.right+r,ue=P.top+P.height/2-H/2):(le="left",ae=P.left-r-D,ue=P.top+P.height/2-H/2)}const be=Number.isFinite(Number(s))?Number(s):8;ae=Math.min(Math.max(ae,be),M-D-be),ue=Math.min(Math.max(ue,be),I-H-be);const V=Math.round(ae),Q=Math.round(ue);U&&y.current?(y.current.style.left=`${V}px`,y.current.style.top=`${Q}px`,y.current.dataset.placement=le):(x(le||A),h({position:"fixed",left:V,top:Q}),k(!0))},[B,C,a,n,r,s,A]);o.useLayoutEffect(()=>{if(S)return;if(B&&C){h({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),k(!0);return}z();const U=requestAnimationFrame(()=>z());return()=>cancelAnimationFrame(U)},[n,a,r,p,s,S,B,C,z]),o.useEffect(()=>{if(S||B&&C||!y.current||typeof ResizeObserver>"u")return;const U=new ResizeObserver(()=>{n&&z()});return U.observe(y.current),()=>U.disconnect()},[n,p,s,S,B,C,z]),o.useEffect(()=>{if(S||B&&C)return;const U=()=>z(!0),P=F=>{if(!a&&i){const D=F.target;if(D&&y.current&&y.current.contains(D))return;try{if(D&&D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}O.current(!0);return}U()};return window.addEventListener("resize",U),document.addEventListener("scroll",P,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",U),document.removeEventListener("scroll",P,{capture:!0})}},[n,a,i,r,p,s,S,B,C,z]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const U=window.matchMedia("(max-width: 768px)"),P=()=>E(!!U.matches);P();try{U.addEventListener?U.addEventListener("change",P):U.addListener(P)}catch{try{U.addListener(P)}catch{}}return()=>{try{U.removeEventListener?U.removeEventListener("change",P):U.removeListener(P)}catch{}}},[]);const R=o.useRef(!1),q=o.useRef(null),j=Gr(),L=o.useCallback((U=!1)=>{if(i&&!(_||R.current)){if(R.current=!0,U){f(!0);try{i&&i()}catch{R.current=!1,f(!1)}return}f(!0),q.current=setTimeout(()=>{q.current=null;try{i&&i()}catch{R.current=!1,f(!1)}},j?0:200)}},[_,i,f,j]);o.useEffect(()=>()=>{q.current&&clearTimeout(q.current)},[]),o.useEffect(()=>{if(S)return;const U=D=>{const H=y.current;if(!H)return;const M=D.target;if(M&&!H.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&L(!0)}},P=D=>{const H=y.current;if(!H)return;const M=D.target;if(M&&!H.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&L(!0)}},F=D=>{if(D.key==="Tab"){const H=y.current;if(!H)return;const M=H.querySelectorAll(mn);if(!M||M.length===0)return;const I=M[0],$=M[M.length-1],K=document.activeElement;D.shiftKey?K===I&&(D.preventDefault(),$.focus()):K===$&&(D.preventDefault(),I.focus())}};return document.addEventListener("pointerdown",U,!0),document.addEventListener("click",P,!0),document.addEventListener("keydown",F),()=>{document.removeEventListener("pointerdown",U,!0),document.removeEventListener("click",P,!0),document.removeEventListener("keydown",F)}},[i,l,L,S]);const O=o.useRef(L);o.useEffect(()=>{O.current=L});const Z=!!i;o.useEffect(()=>{if(!(S||!Z))return zn(()=>O.current())},[S,Z]),o.useEffect(()=>{const U=()=>{L(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",U),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",U)}},[L]);const ee=o.useRef(null);o.useEffect(()=>{if(S||b===!1||!N)return;const U=y.current;if(!U)return;const P=U.querySelector(mn);if(P)return ee.current=document.activeElement,P.focus(),()=>{const F=ee.current;ee.current=null,F&&document.contains(F)&&F.focus()}},[S,b,N]),o.useEffect(()=>{d==="dialog"&&!c&&an("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[d,c]);const W=t.jsxs("div",{ref:y,className:`tooltip-content ${S?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${_?"is-closing":""} ${u} ${B&&C?"is-mobile":""}`,role:d,"aria-label":c||void 0,style:S?{}:{...w,visibility:N?"visible":"hidden"},tabIndex:-1,"data-placement":A,"data-left":S?"":w.left,"data-top":S?"":w.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:[v!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:v}),p]});if(S||typeof document>"u")return W;if(m||B&&C){const U=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&L(!0)}}),W]});return Xt.createPortal(U,document.body)}return Xt.createPortal(W,document.body)}function vn(e){const{anchorRect:n,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?t.jsx(on,{anchorRect:n,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Vn(e){const{t:n}=ye.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:u,offset:d=12,closeOnOutsideClick:c=!0}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:t.jsx(on,{anchorRect:a,offset:d,onClose:u,closeOnOutsideClick:c,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,C)=>t.jsxs("li",{className:`tooltip-description__item body-3${C===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[C+1,"."]}),m.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),t.jsx("span",{children:m.text})]},C))})]})})}function xa(e){const n=o.useRef(e);return o.useEffect(()=>{n.current=e}),n}let Kr=0,_i=!1;function wi(){_i||typeof document>"u"||(_i=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(Kr=Date.now())},!0),document.addEventListener("touchstart",()=>{Kr=Date.now()},{capture:!0,passive:!0}))}wi();function ta(e){return!!e&&e.pointerType==="touch"}function na(e=1e3){return wi(),Date.now()-Kr<e}function Yr(e,n,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=xa(e),l=xa(n),u=o.useRef(null),d=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const p=m=>{const C=m,g=m.target,v=a.current,b=!!(g&&v&&v.contains(g));if(C.pointerType!=="touch"){b&&(u.current=null);return}if(b){u.current=i.current;return}u.current=null,i.current&&!(g&&g.closest?.(".tooltip-content"))&&l.current(!1,v)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[r,a,i,l]);const c=o.useCallback(p=>{const m=u.current;return m===null?!1:(u.current=null,d.current=Date.now(),l.current(!m,p??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const p=a.current,m=p?.parentElement;if(!p||!m)return;let C=null;const g=y=>{const w=y.changedTouches?.[0];if(!w)return!1;const h=p.getBoundingClientRect();return w.clientX>=h.left&&w.clientX<=h.right&&w.clientY>=h.top&&w.clientY<=h.bottom},v=y=>{C=g(y)?i.current:null},b=y=>{const w=C;C=null,!(w===null||Date.now()-d.current<700||!g(y))&&(u.current=null,d.current=Date.now(),l.current(!w,p))};return m.addEventListener("touchstart",v,{passive:!0}),m.addEventListener("touchend",b),()=>{m.removeEventListener("touchstart",v),m.removeEventListener("touchend",b)}},[r,s,a,i,l]),{touchPress:c}}function mf(e,n){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:u,icon:d,rightIcon:c,label:p,count:m,subLabel:C,children:g,ariaLabel:v,variant:b="default",align:y="center",nowrap:w=!1,selected:h,toggleable:_=!1,ariaExpanded:f,ariaControls:A,disabled:x=!1,useLabel:N=!0,useBorder:k=!0,useBG:B=!0,useDisabledCovered:E=!1,useDisabledInvisible:S=!1,width:z,minWidth:R,onClick:q,onDisabledClick:j,showTooltipInfo:L=!1,tooltipInfoText:O=null,tooltipDescription:Z=null,tooltipOnly:ee=!1,iconSize:W="medium",iconColor:U,shape:P="rounded",color:F,className:D,...H}=e,M=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),I=M.match(/^\d+$/)?`button${M}`:`button-${M}`,$=Number(a),K=!isNaN($)&&$<40?"button-2":"button-1",ne=p??g,X=x||!!H.disabled,ae=X?E?"disabled-covered":S?"disabled-invisibled":"disabled":b,ue=ae?`button--variant-${ae}`:"",le=y?`button--align-${y}`:"",be=w?"button--nowrap":"",V=P?`button--shape-${P}`:"",Q=typeof U=="string"&&U.startsWith("--")?`var(${U})`:U,oe={...z?{width:typeof z=="number"?`${z}px`:z}:{},...R?{minWidth:typeof R=="number"?`${R}px`:R}:{},...k?{}:{"--button-border":X?"0":"1px solid transparent"},...Q?{"--button-icon-color":Q}:{},...F?{"--color-main":F}:{}},Be=N===!1?"":ne,Ce=Array.isArray(Be)?Be.length>0:!!Be,se=!!c,ge=r??(Ce||d||se?"bar":"dot"),fe=`${I}--${ge}`,xe=o.useRef(null),$e=o.useRef(n);$e.current=n;const Le=o.useCallback(Oe=>{xe.current=Oe;const at=$e.current;typeof at=="function"?at(Oe):at&&(at.current=Oe)},[]),Qe=o.useRef(X),[Ue,ze]=o.useState(!!h),[Ie,st]=o.useState(!1),[Xe,Je]=o.useState(null),Ee=o.useCallback(()=>st(!1),[]),[ke,Me]=o.useState(!1),Ve=o.useId();o.useEffect(()=>{typeof h=="boolean"&&ze(h)},[h]),o.useEffect(()=>{if(Qe.current&&!X&&xe.current){const Oe=xe.current;let at=!1;try{at=Oe.matches(":focus:not(:focus-visible)")}catch{at=!1}at&&Oe.blur(),Oe.style.pointerEvents="none";const ft=requestAnimationFrame(()=>{requestAnimationFrame(()=>{xe.current&&(xe.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(ft)}Qe.current=X},[X]);const lt=typeof h=="boolean"?!!h:Ue,te=typeof f=="boolean"?void 0:_||typeof h=="boolean"?lt?"true":"false":H["aria-pressed"],ce=Ne("button",I,fe,ue,le,be,V,lt?"is-selected":null,B?null:"button--no-bg",ee?"button--tooltip-only":null,D),me=`button__icon button__icon--${W}`,Se=Array.isArray(C)?C:C!==void 0?[C]:[],et=()=>{if(Array.isArray(Be))return Be.map((at,ft)=>{const Ot=Se[ft];return t.jsxs("span",{className:`button__label-text${Ot!==void 0?" button__label-text--has-sub":""}`,children:[at,Ot!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:Ot})]},ft)});const Oe=C!==void 0;return t.jsxs("span",{className:`button__label-text${Oe?" button__label-text--has-sub":""}`,children:[Be,m!=null&&t.jsx("span",{className:"button__count",children:m}),Oe&&t.jsx("span",{className:"button__sub-label-text caption-1",children:C})]})},Ke=Oe=>{typeof h!="boolean"&&!_&&ze(!1),Oe.currentTarget.blur()},bt=Oe=>{X||(typeof H.onMouseLeave=="function"&&H.onMouseLeave(Oe),Ke(Oe))},ut=Oe=>{if(ee&&Ge&&Ye.touchPress(Oe.currentTarget),X){Ge&&Ye.touchPress(Oe.currentTarget),Oe.preventDefault(),j?.(Oe);return}typeof h!="boolean"&&_&&ze(at=>!at),q?.(Oe)},it=o.useCallback(()=>{(L||Z)&&(st(!0),Je(xe.current?.getBoundingClientRect()??null))},[L,Z]),tt=o.useCallback(()=>{(L||Z)&&(st(!1),Je(null))},[L,Z]),Ge=!!(L||Z),Ye=Yr(Ie,Oe=>{Oe?it():tt()},xe,{enabled:Ge&&(X||ee),fallbackOnParent:Ge&&X}),Re={...H};delete Re.disabled,delete Re.className,delete Re.faded,delete Re.useFaded,delete Re.loading,delete Re.onMouseLeave,delete Re.onPointerEnter,delete Re.onPointerLeave,delete Re.onPointerUp,delete Re.onFocus,delete Re.onBlur,X&&(Object.keys(Re).forEach(Oe=>{/^on[A-Z]/.test(Oe)&&typeof Re[Oe]=="function"&&delete Re[Oe]}),Re["aria-disabled"]="true");const We=(typeof L=="string"?L:null)??(typeof O=="string"?O:null)??(typeof v=="string"?v:null)??(typeof ne=="string"?ne:null)??void 0,Fe=typeof v=="string"?v:typeof ne=="string"?ne:We,ct=Z?[Z.title,...Z.items??[]].filter(Boolean).join(". "):L&&We&&We!==Fe?We:"",Bt=[typeof H["aria-describedby"]=="string"?H["aria-describedby"]:void 0,ct?Ve:null].filter(Boolean).join(" ")||void 0,Nt=(Oe,at)=>t.jsx(Ze,{icon:Oe,label:at??Fe,className:me,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Ct=()=>ge==="dot"?t.jsxs(t.Fragment,{children:[Nt(d),Ce&&t.jsx("span",{className:`button__label ${K}`,children:et()})]}):y==="center"&&d?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:Nt(d)}),Ce&&t.jsx("span",{className:`button__label ${K}`,children:et()})]}),se&&t.jsx("span",{className:"button__right",children:Nt(c)})]}):t.jsxs(t.Fragment,{children:[d&&t.jsx("span",{className:"button__left",children:Nt(d,v??ne)}),Ce&&t.jsx("span",{className:`button__label ${K}`,children:et()}),se&&t.jsx("span",{className:"button__right",children:Nt(c)})]}),dt=!!i&&!X;return t.jsxs(t.Fragment,{children:[t.jsxs(dt?"a":"button",{...Re,ref:Le,...dt?{href:i,target:l,rel:u??(l==="_blank"?"noreferrer":void 0)}:{type:s,disabled:X&&!j&&!ke},className:ce,"aria-pressed":te,"aria-expanded":typeof f=="boolean"?f:H["aria-expanded"],"aria-controls":A??H["aria-controls"],"aria-label":Fe,"aria-disabled":X&&(dt||j||ke)?!0:void 0,"aria-describedby":Bt,style:oe,onClick:ut,onMouseLeave:bt,onPointerEnter:Oe=>{ta(Oe)||it(),!X&&typeof H.onPointerEnter=="function"&&H.onPointerEnter(Oe)},onPointerLeave:Oe=>{ta(Oe)||tt(),!X&&typeof H.onPointerLeave=="function"&&H.onPointerLeave(Oe)},onPointerUp:Oe=>{X&&Ge&&Ye.touchPress(Oe.currentTarget),!X&&typeof H.onPointerUp=="function"&&H.onPointerUp(Oe)},onFocus:Oe=>{Me(!0),na()||it(),!X&&typeof H.onFocus=="function"&&H.onFocus(Oe)},onBlur:Oe=>{Me(!1),X||Ke(Oe),tt(),!X&&typeof H.onBlur=="function"&&H.onBlur(Oe)},children:[Ct(),ct?t.jsx("span",{id:Ve,hidden:!0,"aria-label":ct}):null]}),Ie&&Z?t.jsx(Vn,{anchorRect:Xe,title:Z.title,items:Z.items,onClose:Ee}):Ie&&We?t.jsx(vn,{anchorRect:Xe,text:We,onClose:Ee}):null]})}const pe=o.forwardRef(mf);pe.displayName="Button";var hf={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",playFor:"{{name}} \uC7AC\uC0DD",pauseFor:"{{name}} \uBA48\uCDA4",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",noMatches:"\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."},Cf={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",visitCount:"\uBC29\uBB38 {{count}}\uAC74"},ff={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",expired:"\uB9CC\uB8CC\uB428",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},gf={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},bf={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},yf={selected:"\uC120\uD0DD\uB428"},vf={placeholder:"\uC120\uD0DD"},xf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},_f={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"},wf={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",feedback:"\uBC84\uADF8\uC2E0\uACE0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C",badgeInsideLabel:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"},Af={language:{training:{label:"\uD6C8\uB828 \uC5B8\uC5B4",sub:"\uD6C8\uB828\uC5D0 \uC0AC\uC6A9\uB418\uB294 \uB2E8\uC5B4\uC640 \uC74C\uC131 \uC5B8\uC5B4"}},notifications:{title:"\uC54C\uB9BC"},display:{fontSize:{small:"\uC791\uAC8C",large:"\uD06C\uAC8C"}},cache:{title:"\uCE90\uC2DC \uAD00\uB9AC",confirmMessage:"\uCE90\uC2DC({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",delete:"\uC0AD\uC81C",deleting:"\uC0AD\uC81C \uC911",cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"},trainingRecord:{label:"\uD6C8\uB828 \uAE30\uB85D",sub:"\uC624\uB298\uC758 \uD6C8\uB828 \uC9C4\uD589\uB960 \uBC0F \uD559\uC2B5 \uC77C\uC218"}}},button:{save:"\uC124\uC815 \uC800\uC7A5"},popup:{clear:{confirm:"\uCD08\uAE30\uD654"},update:{confirm:"\uC5C5\uB370\uC774\uD2B8"},cache:{title:"{{label}} \uC0AD\uC81C",message:"{{label}}({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"}},saved:"\u2713 \uC800\uC7A5\uB428",account:{title:"\uACC4\uC815",delete:{sub:"\uD0C8\uD1F4 \uD6C4 30\uC77C \uC774\uB0B4 \uC7AC\uAC00\uC785 \uC2DC \uBCF5\uAD6C \uAC00\uB2A5\uD569\uB2C8\uB2E4."}}},Bf={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."}},kf={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"}}},Nf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},Df={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",previewFor:"{{name}} \uBBF8\uB9AC \uB4E3\uAE30",stopFor:"{{name}} \uC815\uC9C0",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",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"}},Ef={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"},Sf={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"}},jf={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"}}}},Tf={title:"\uCFE0\uD3F0",subtitle:"\uCFE0\uD3F0 \uCF54\uB4DC\uB97C \uC785\uB825\uD558\uAC70\uB098 \uBCF4\uC720 \uCFE0\uD3F0\uC744 \uD655\uC778\uD558\uC138\uC694.",input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9",error:{invalid:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uCFE0\uD3F0 \uCF54\uB4DC\uC785\uB2C8\uB2E4.",alreadyUsed:"\uC774\uBBF8 \uC0AC\uC6A9\uB41C \uCFE0\uD3F0\uC785\uB2C8\uB2E4."},success:{applied:'"{{name}}" \uCFE0\uD3F0\uC774 \uC801\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.'},section:{owned:"\uBCF4\uC720 \uCFE0\uD3F0"},status:{used:"\uC0AC\uC6A9 \uC644\uB8CC",available:"\uC0AC\uC6A9 \uAC00\uB2A5"}},Mf={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},Lf={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"}},$f={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."}},Rf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},Pf={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"},If={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},Ff={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",topInfo:"\uC0C1\uB2E8 \uC815\uBCF4",bottomInfo:"\uD558\uB2E8 \uC815\uBCF4",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"{{name}} \uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\uD2C0\uB9BC"},button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74, \uC790\uD310\uC73C\uB85C\uB294 \uCE78\uC5D0 \uCD08\uC810\uC774 \uAC00\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"}},Of={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193",original:"\uBC1B\uC740 \uC21C\uC11C"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},Hf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},zf={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"}},Vf={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"}},Wf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},qf={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"}},Gf={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"}},Kf={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",countLabel:"\uC74C\uC18C \uAC1C\uC218",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\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."]},Yf={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"}},Zf={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
848
848
  \uC2E0\uB8B0\uB97C \uC313\uACE0
849
849
  \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"},Xf={trainingPhone:{topic:"\uD143\uBC2D\uAC00\uAFB8\uAE30",prev:"\uC774\uC804",next:"\uB2E4\uC74C",speed:"\uBE60\uB974\uAE30 3",noiseType:"\uC640\uAE00\uC640\uAE00",settings:"\uC124\uC815",start:{caption:"\uC544\uB798 \uD50C\uB808\uC774(\u25B6) \uBC84\uD2BC\uC744 \uB20C\uB7EC \uBB38\uC7A5\uC744 \uC798 \uB4E4\uC5B4\uBCF4\uC138\uC694. \uC798 \uB4E4\uC73C\uC2E0 \uB4A4 \uBB38\uC7A5\uC744 \uD655\uC778\uD558\uC138\uC694."},feedback:{caption:"\uC798 \uD0A4\uC6B4 \uBAA8\uC885\uC744 \uD143\uBC2D\uC5D0 \uC2EC\uACE0 \uBE44\uB2D0\uC744 \uC798 \uB36E\uC5B4 \uC90D\uB2C8\uB2E4."},done:{heardWell:"\uC798 \uB4E4\uB9B0 \uBB38\uC7A5",listenAgain:"\uD55C \uBC88 \uB354 \uB4E3\uAE30"}}},Jf={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},Qf={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"}},e2={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},t2={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"},n2={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},a2={ariaLabel:"\uC120\uD0DD \uD0ED"},r2={ariaLabel:"\uD0ED"},o2={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},s2={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},i2={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"}},l2={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"}},u2={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"}},c2={manage:{unit:"\uAC74"}},d2={cancelLabel:"\uCDE8\uC18C"},p2={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},m2={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"},h2={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654",scrollRegion:"\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C",rowActionHint:"\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4"},C2={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"},f2={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},g2={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},b2={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},y2={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},v2={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"}},x2={clearSelection:"\uC120\uD0DD \uD574\uC81C"},_2={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},w2={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},A2={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},B2={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},k2={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},N2={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},D2={main:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",soft:"\uC18C\uD504\uD2B8",sub:"\uC11C\uBE0C \uCEEC\uB7EC",deep:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",softSub:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",warm:"\uC6DC(\uAC15\uC870)",dark:"\uB2E4\uD06C",radial:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",diagonal:"\uB300\uAC01\uC120 \uD328\uD134",dots:"\uB3C4\uD2B8 \uD328\uD134",outline:"\uC544\uC6C3\uB77C\uC778",success:"\uC131\uACF5/\uC644\uB8CC",naver:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",instagram:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4"},E2={common:hf,calendar:Cf,passCard:ff,searchField:gf,rating:bf,colorPicker:yf,dropdown:vf,accordion:xf,header:_f,nav:wf,settings:Af,usage:Bf,account:kf,help:Nf,training:Df,trainingSettings:Ef,customers:Sf,payment:jf,coupons:Tf,visits:Mf,company:Lf,trainingType:$f,myWordTraining:Rf,myWordTable:Pf,keyWords:If,wordTable:Ff,wordSearch:Of,wordPrint:Hf,topic:zf,accessLinkManager:Vf,login:Wf,trainingPlanRun:qf,device:Uf,manager:Gf,wordPairs:Kf,game:Yf,footer:Zf,landing:Xf,date:Jf,trainingSetPage:Qf,wordTrainingPreview:e2,wordData:t2,textField:n2,segmentedControl:a2,tabs:r2,fileUpload:o2,avatar:s2,myHomework:i2,trainingStatus:l2,store:u2,homework:c2,inquiry:d2,progress:p2,trainingMiss:m2,table:h2,wordScore:C2,topBanner:f2,datePicker:g2,report:b2,tooltip:y2,phonemeProfile:v2,bulkBar:x2,debug:_2,badge:w2,loader:A2,soundCompass:B2,breadcrumb:k2,board:N2,promoBannerBg:D2},S2={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",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount:"{{count}} downloads",descriptionFor:"About {{name}}",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",playFor:"Play {{name}}",pauseFor:"Pause {{name}}",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",noMatches:"No matching items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},j2={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",visitCount:"{{count}} visit(s)"},T2={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",expired:"Expired",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},M2={clearAriaLabel:"Clear search"},L2={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},$2={selected:"selected"},R2={placeholder:"Select"},P2={collapse:"Collapse",expand:"Expand"},I2={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},F2={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",feedback:"Report a bug",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}",badgeInsideLabel:"{{label}}, {{count}} notifications inside"},O2={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."}}},H2={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"}},z2={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"}}},V2={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},W2={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",previewFor:"Preview {{name}}",stopFor:"Stop {{name}}",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",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"}},q2={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"},U2={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"}},G2={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},K2={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"}},Y2={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},Z2={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},X2={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."}},J2={comingSoon:"Word training is coming soon."},Q2={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"},eg={title:"Key Words",empty:"No key words available."},tg={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",topInfo:"Header",bottomInfo:"Footer",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete {{name}}",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",markName:{o:"Correct",triangle:"Partial",x:"Incorrect"},button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse they appear when you hover the cell; with a keyboard, when focus reaches it.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"}},ng={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},ag={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},rg={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"}},og={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"}},sg={passwordPlaceholder:"Enter password"},ig={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"}},lg={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"}},ug={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}}",countLabel:"Number of phonemes",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:"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."]},cg={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"}},dg={lead:`IHAB builds trust
850
850
  through sound
851
- 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"},pg={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"}}},mg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},hg={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},Cg={answer:"Answer",distractor:"Distractor"},fg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},gg={clearAriaLabel:"Clear input"},bg={ariaLabel:"Select tab"},yg={ariaLabel:"Tabs"},vg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},xg={ariaLabel:"User avatar"},_g={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"}},wg={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"}},Ag={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)"}},Bg={manage:{unit:"item(s)"}},kg={cancelLabel:"Cancel"},Ng={subtitle:"Select a topic to start listening practice."},Dg={steps:"Step {{current}} of {{total}}"},Eg={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"},Sg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},jg={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}}"},Tg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Mg={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Lg={previewRegion:"Report preview \u2014 scrollable sideways"},$g={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Rg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Pg={clearSelection:"Clear selection"},Ig={showResult:"Show {{type}} result"},Fg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Og={loading:"Loading"},Hg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},zg={ariaLabel:"Breadcrumb"},Vg={empty:"No items yet."},Wg={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},qg={common:S2,calendar:j2,passCard:T2,searchField:M2,rating:L2,colorPicker:$2,dropdown:R2,accordion:P2,header:I2,nav:F2,settings:O2,usage:H2,account:z2,help:V2,training:W2,trainingSettings:q2,customers:U2,payment:G2,coupons:K2,visits:Y2,company:Z2,trainingType:X2,myWordTraining:J2,myWordTable:Q2,keyWords:eg,wordTable:tg,wordSearch:ng,wordPrint:ag,topic:rg,accessLinkManager:og,login:sg,device:ig,manager:lg,wordPairs:ug,game:cg,footer:dg,landing:pg,date:mg,trainingSetPage:hg,wordTrainingPreview:Cg,wordData:fg,textField:gg,segmentedControl:bg,tabs:yg,fileUpload:vg,avatar:xg,myHomework:_g,trainingStatus:wg,store:Ag,homework:Bg,inquiry:kg,trainingPlanRun:Ng,progress:Dg,trainingMiss:Eg,table:Sg,wordScore:jg,topBanner:Tg,datePicker:Mg,report:Lg,tooltip:$g,phonemeProfile:Rg,bulkBar:Pg,debug:Ig,badge:Fg,loader:Og,soundCompass:Hg,breadcrumb:zg,board:Vg,promoBannerBg:Wg};const Ug=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Zr="ko",Gg="ihab_display_language";function Ai(){if(typeof window>"u")return Zr;try{const e=localStorage.getItem(Gg);if(e&&Ug.some(n=>n.code===e))return e}catch{}return Zr}function Bi(e){try{document.documentElement.lang=e}catch{}}St.on("languageChanged",Bi),Bi(Ai()),St.use(ye.initReactI18next).init({resources:{ko:{translation:E2},en:{translation:qg}},lng:Ai(),fallbackLng:Zr,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function vt(e,n,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return n(s,e),()=>a(s)},[e,n,a]),r}const _a={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},Xr=new WeakMap;function Jr(e){if(e)return Xr.get(e)}function It(e,n){e&&(e.style.setProperty(_a.title,n.title),e.style.setProperty(_a.description,n.description),Xr.set(e,n))}function Ft(e){e&&(e.style.removeProperty(_a.title),e.style.removeProperty(_a.description),Xr.delete(e))}const ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Ni(){const e=vt(ki,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Di={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Ei(){const e=vt(Di,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Si={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ji(){const e=vt(Si,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Ti={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Mi(){const e=vt(Ti,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Li={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function $i(){const e=vt(Li,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Ri={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Pi(){const e=vt(Ri,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Ii={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Fi(){const e=vt(Ii,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Oi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Hi(){const e=vt(Oi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const zi={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Vi(){const e=vt(zi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Wi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function qi(){const e=vt(Wi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Ui={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Gi(){const e=vt(Ui,It,Ft);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 Ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Yi(){const e=vt(Ki,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Zi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Xi(){const e=vt(Zi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Ji={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Qi(){const e=vt(Ji,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Kt=(e,n,a)=>({key:e,get label(){return St.t(`promoBannerBg.${e}`,n)},textTone:a}),Kg=[Kt("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("soft","\uC18C\uD504\uD2B8","dark"),Kt("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Kt("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Kt("warm","\uC6DC(\uAC15\uC870)","dark"),Kt("dark","\uB2E4\uD06C","light"),Kt("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Kt("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Kt("outline","\uC544\uC6C3\uB77C\uC778","dark"),Kt("success","\uC131\uACF5/\uC644\uB8CC","light"),Kt("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Kt("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],el={main:Ni,soft:Ei,sub:ji,deep:Mi,softSub:$i,warm:Pi,dark:Fi,radial:Hi,diagonal:Vi,dots:qi,outline:Gi,success:Yi,naver:Xi,instagram:Qi};function tl({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:i=1.4}={}){const l=_=>Math.max(a,Math.min(r,Number(_))),u=_=>{try{const f=localStorage.getItem(_),A=f?Number(f):1;return Number.isFinite(A)?l(A):l(1)}catch{return l(1)}},[d,c]=o.useState(()=>u(e)),[p,m]=o.useState(e);p!==e&&(m(e),c(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(d))}catch{}},[e,d]);const C=_=>{c(typeof _=="function"?f=>l(_(f)):l(_))},g=()=>C(_=>+(_+s).toFixed(6)),v=()=>C(_=>+(_-s).toFixed(6)),b=d<r-Number.EPSILON,y=d>a+Number.EPSILON,w=Math.round(n*d),h=Math.round(w*i);return{scale:d,setScale:C,increase:g,decrease:v,canIncrease:b,canDecrease:y,fontSize:w,lineHeight:h}}function nl(e,n){const a=xa(n);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Qr=" \xB7 ",al=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Qr)?e.split(Qr).pop()??e:e})(),Yg=o.createContext(!1),Wn=[];let rl=null;function Zg(e){const n=o.useContext(Yg);o.useEffect(()=>{if(n||typeof e!="string"||!e)return;Wn.length===0&&(rl=document.title);const a={text:al?`${e}${Qr}${al}`:e};return Wn.push(a),document.title=a.text,()=>{const r=Wn.lastIndexOf(a);r>=0&&Wn.splice(r,1),document.title=Wn.length?Wn[Wn.length-1].text:rl??document.title}},[e,n])}const ol=[{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"}],Xg=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function aa(e,n){return Xg().compare(e,n)}const Ya=new Map;function Jg(e){const n=Ya.get(e);if(n)return n;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let i=r.exec(e);i;i=r.exec(e)){let l=i.index,u=i[0];u[0]==="-"&&l>0&&!/\s/.test(e[l-1])&&(l+=1,u=u.slice(1)),l>s&&a.push(e.slice(s,l)),a.push(Number(u)),s=i.index+i[0].length}return s<e.length&&a.push(e.slice(s)),Ya.size>5e3&&Ya.clear(),Ya.set(e,a),a}function Qg(e){if(!/^[\d\s-]+$/.test(e))return null;const n=e.replace(/\D/g,"");return n.length<9||n.length>11?null:n[0]==="0"||n[0]==="1"&&e!==n?n:null}function eb(e,n){const a=c=>c==null||typeof c=="number"&&Number.isNaN(c)?"":String(c).trim(),r=a(e),s=a(n);if(r===s)return 0;const i=(c,p)=>{if(typeof c=="number"&&!Number.isNaN(c))return[c];const m=Qg(p);return m!==null?[m]:Jg(p)},l=i(e,r),u=i(n,s),d=Math.min(l.length,u.length);for(let c=0;c<d;c++){const p=l[c],m=u[c];if(typeof p=="number"&&typeof m=="number"){if(p!==m)return p-m;continue}if(typeof p=="number")return-1;if(typeof m=="number")return 1;const C=aa(p,m);if(C!==0)return C}return l.length!==u.length?l.length-u.length:aa(r,s)}const sl=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function eo(e,n,a){const r=sl(e),s=sl(n);if(r||s)return r===s?0:r?1:-1;const i=eb(e,n);return a?i:-i}function tb(e,n,a){const{t:r}=ye.useTranslation(),[s,i]=o.useState(()=>{const v=a?.initialPageSize;return v&&ol.some(b=>b.value===v)?v:"25"}),[l,u]=o.useState(1),[d,c]=o.useState(n);Object.is(d,n)||(c(n),l!==1&&u(1));const p=o.useMemo(()=>ol.map(v=>({...v,label:r("visits.showN",{n:v.value})})),[r]),m=o.useCallback(v=>{i(v),u(1)},[]),C=Math.max(1,Math.ceil(e.length/Number(s)));(l>C||l<1||!Number.isFinite(l))&&u(Math.min(Math.max(1,Number.isFinite(l)?l:1),C));const g=Math.min(Math.max(1,Number.isFinite(l)?l:1),C);return{pageRows:o.useMemo(()=>e.slice((g-1)*Number(s),g*Number(s)),[e,g,s]),pageSizeProps:{options:p,value:s,onChange:m},paginationProps:{page:g,total:C,onChange:u},setPage:u}}function nb(e){const[n,a]=o.useState(null),r=o.useRef(n),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const i=o.useCallback(d=>{const c=r.current,p=c?.key===d?{key:d,asc:!c.asc}:{key:d,asc:!0};r.current=p,a(p),s.current?.(p)},[]),l=o.useCallback((d,c)=>({label:d,sortDir:n?.key===c?n.asc?"asc":"desc":null,onClick:()=>i(c)}),[n,i]),u=o.useCallback((d,c)=>{if(!n)return d;const{key:p,asc:m}=n;return[...d].sort((C,g)=>eo(c(C,p),c(g,p),m))},[n]);return{\uC815\uB82C:n,\uCE78:l,sortRows:u}}const sn="\uC804\uCCB4",ab=new Map;try{St.store?.on?.("added",()=>ab.clear())}catch{}Object.fromEntries(Object.entries(pC).map(([e,{nucleus:n}])=>[e,n]));const rb={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"})},ob={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"})},sb={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 ib(e,n){if("place"in n)return rb[n.place](e);const a=ob[n.vowel](e);return n.glide?`${a} \xB7 ${sb[n.glide](e)}`:a}const lb=(e,{defaultValue:n})=>n,il=(e,n)=>({jamos:e,phonetic:n,tooltip:ib(lb,n)}),xn=(e,n)=>n.map(a=>il([a],{place:e})),jt=(e,n,a)=>il([...e],a?{vowel:n,glide:a}:{vowel:n}),to={cho:[xn("labial",["\u3142","\u3143","\u314D","\u3141"]),xn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),xn("alveolar",["\u3145","\u3146"]),xn("palatal",["\u3148","\u3149","\u314A"]),xn("velar",["\u3131","\u3132","\u314B"]),xn("glottal",["\u314E"])],jung:[[jt("\u3163","frontHigh"),jt("\u315F","frontHigh","w"),jt("\u3162","frontHigh","velar")],[jt("\u3161","backHighUnrounded")],[jt("\u315C","backHighRounded"),jt("\u3160","backHighRounded","j")],[jt("\u3154\u3150","frontMid"),jt("\u3156\u3152","frontMid","j"),jt("\u3159\u315A\u315E","frontMid","w")],[jt("\u3153","backMidUnrounded"),jt("\u3155","backMidUnrounded","j"),jt("\u315D","backMidUnrounded","w")],[jt("\u3157","backMidRounded"),jt("\u315B","backMidRounded","j")],[jt("\u314F","low"),jt("\u3151","low","j"),jt("\u3158","low","w")]],jong:[xn("labial",["\u3142","\u3141"]),xn("alveolar",["\u3137","\u3134","\u3139"]),xn("velar",["\u3131","\u3147"])]},ub=e=>e===cb?[]:Array.from(e),cb="__NO_CODA__",no=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),ll={cho:no(to.cho),jung:no(to.jung),jong:no(to.jong)};ll.jung.flat().forEach(({v:e})=>{for(const n of ub(e));}),new Set(ll.cho.flat().map(e=>e.v));function db(e,n=!0){const a=xa(e);o.useEffect(()=>{if(n)return zn(()=>{a.current?.()})},[n,a])}function wa(){const[e,n]=o.useState(null),a=o.useCallback(i=>n(i.getBoundingClientRect()),[]),r=o.useCallback(()=>n(null),[]),s=o.useCallback(i=>{const l=i.getBoundingClientRect();n(u=>u?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function pb(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),i=o.useRef(null);o.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const l=o.useCallback((d,c)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),s(c)},e)},[e]),u=o.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),s(null)},[]);return{payload:n,anchorRect:r,openAfterDelay:l,close:u}}function ul(e="warning"){const[n,a]=o.useState(""),[r,s]=o.useState(e),[i,l]=o.useState(0),u=o.useCallback((m,C)=>{s(C),a(m),l(g=>g+1)},[]),d=o.useCallback(m=>u(m,"warning"),[u]),c=o.useCallback(m=>u(m,"normal"),[u]),p=o.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:i,showToast:u,showWarning:d,showNormal:c,clearToast:p}}function Aa(e){let n=0;if(e&&typeof window<"u"&&typeof window.getComputedStyle=="function")for(let a=e;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){const r=parseInt(window.getComputedStyle(a).zIndex,10);!Number.isNaN(r)&&r>n&&(n=r)}return n>0?`max(var(--z-menu, 1500), ${n+1})`:"var(--z-menu, 1500)"}function Ba({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,i]=o.useState(!1),[l,u]=o.useState({}),d=o.useRef(null),c=o.useRef(null),p=o.useCallback(()=>{d.current&&u(e(d.current.getBoundingClientRect(),d.current))},[e]);o.useEffect(()=>{if(!s)return;p();let g=c.current?.offsetHeight??0;g>0&&p();let v=0,b=null;typeof ResizeObserver<"u"&&c.current&&(b=new ResizeObserver(()=>{const A=c.current?.offsetHeight??0;if(A!==g){if(g=A,++v>4){b?.disconnect(),b=null;return}p()}}),b.observe(c.current));const y=A=>{const x=A.target;r&&x.closest?.(r)||d.current?.contains(x)||c.current?.contains(x)||i(!1)};document.addEventListener("mousedown",y),document.addEventListener("pointerdown",y);const w=A=>{c.current?.contains(A.target)||(n==="reposition"?p():n==="close"&&i(!1))};n!=="ignore"&&window.addEventListener("scroll",w,!0);const h=()=>{a==="reposition"?p():a==="close"&&i(!1)};let _=null;const f=()=>{h(),_&&clearTimeout(_),_=setTimeout(()=>{_=null,a==="reposition"&&p()},250)};return a!=="ignore"&&(window.addEventListener("resize",h),window.addEventListener("orientationchange",f)),()=>{b?.disconnect(),document.removeEventListener("mousedown",y),document.removeEventListener("pointerdown",y),n!=="ignore"&&window.removeEventListener("scroll",w,!0),a!=="ignore"&&(window.removeEventListener("resize",h),window.removeEventListener("orientationchange",f)),_&&clearTimeout(_)}},[s,p,n,a,r]),o.useEffect(()=>{if(s)return zn(()=>i(!1))},[s]);const m=o.useCallback(()=>i(g=>!g),[]),C=o.useCallback(()=>i(!1),[]);return{open:s,setOpen:i,toggle:m,close:C,style:l,triggerRef:d,menuRef:c}}function mb(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:i=1100,feedbackMs:l=1500}={}){const[u,d]=o.useState([]),[c,p]=o.useState(0),[m,C]=o.useState("idle"),[g,v]=o.useState(null),[b,y]=o.useState([]),[w,h]=o.useState(null),[_,f]=o.useState(0),A=o.useRef(0),x=o.useCallback(P=>{A.current=typeof P=="function"?P(A.current):P,f(A.current)},[]),N=o.useRef(r),k=o.useRef(s);o.useEffect(()=>{N.current=r,k.current=s},[r,s]);const B=o.useRef([]),E=()=>{B.current.forEach(clearTimeout),B.current=[]},S=(P,F)=>{B.current.push(setTimeout(F,P))};o.useEffect(()=>()=>E(),[]);const z=u[c]?.id??null,R=o.useRef(null),q=o.useCallback(()=>{E(),C("playing"),y([]),h(null),x(0);let P=0;e.forEach((F,D)=>{S(P,()=>{p(D),v(F.id),N.current?.(F)}),S(P+1e3,()=>{v(null),y(H=>[...H,F.id])}),P+=1300}),S(P,()=>{C("done"),k.current?.({score:0,total:e.length})})},[e,x]),j=o.useCallback((P,F)=>{if(F>=P.length){C("done"),k.current?.({score:A.current,total:P.length});return}R.current=null,p(F),h(null),C("playing"),v(P[F].id),N.current?.(P[F]),S(i,()=>{v(null),C("waiting")})},[i]),L=o.useCallback(()=>{E();const P=ya(e);d(P),x(0),y([]),j(P,0)},[e,j,x]),O=o.useCallback(()=>{n==="playback"?(d(e),q()):L()},[n,e,q,L]),Z=o.useCallback(()=>{E(),C("idle"),v(null),y([]),h(null),p(0),x(0),d([])},[x]),te=e.map(P=>P.id).join("|");o.useEffect(()=>(a?O():Z(),()=>E()),[n,te,a]);const W=o.useCallback(P=>{m!=="waiting"||n==="playback"||R.current===c||(R.current=c,h(P),P===u[c]?.id&&x(F=>F+1),n==="exam"?(C("playing"),S(400,()=>j(u,c+1))):(C("feedback"),S(l,()=>j(u,c+1))))},[m,n,u,c,j,l,x]),U=n==="playback"?e.length:u.length;return{bind:{activeSpeakerId:g,playedIds:b,selectedId:w,answerId:z,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:W},index:c,total:U,score:_,phase:m,done:m==="done",start:O,reset:Z}}function hb({title:e,description:n,actionLabel:a,onAction:r,bg:s,color:i,size:l="medium",actionVariant:u,titleColor:d,descriptionColor:c,className:p=""}){const m=s??i??"main",C=o.useRef(null),[g,v]=o.useState("main"),b=tn("(max-width: 767px)"),y=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const _=C.current;if(!_)return;const f=Jr(_),A=(x,N,k)=>{if(k!==void 0)_.style.setProperty(N,k),y.current[x]=!0;else if(y.current[x]){const B=f?.[x];B?_.style.setProperty(N,B):_.style.removeProperty(N),y.current[x]=!1}};A("title","--promo-banner-bg-title",d),A("description","--promo-banner-bg-description",c)},[d,c,m]),o.useLayoutEffect(()=>{const _=C.current;if(!_)return;const f=Jr(_);v(f?.actionVariant??"main")},[m]);const w=De("promo-banner",`promo-banner--${l}`,p),h=el[m];return t.jsxs("div",{ref:C,className:w,role:"note",children:[t.jsx(h,{}),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(pe,{htmlType:"button",size:40,variant:u??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...b?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function Cb({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":s}){const{t:i}=ye.useTranslation(),l=s??i("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),d=u.length,[c,p]=o.useState(0),[m,C]=o.useState(!1),[g,v]=o.useState(!1),[b,y]=o.useState(!1),w=o.useRef(null),h=o.useRef(null),_=o.useRef(null),f=Gr(),A=m||g||b,x=d>0?Math.min(c,d-1):0;o.useEffect(()=>{if(d<2||n<=0||A||f)return;const k=window.setInterval(()=>p(B=>(Math.min(B,d-1)+1)%d),n);return()=>window.clearInterval(k)},[d,n,A,f]);const N=k=>{h.current!=null&&window.clearTimeout(h.current),h.current=window.setTimeout(()=>{h.current=null,y(!1)},k)};return o.useEffect(()=>()=>{h.current!=null&&window.clearTimeout(h.current)},[]),o.useEffect(()=>{if(!b)return;const k=B=>{B.pointerType==="touch"&&(_.current&&_.current.contains(B.target)||(h.current!=null&&(window.clearTimeout(h.current),h.current=null),y(!1)))};return document.addEventListener("pointerdown",k,!0),()=>document.removeEventListener("pointerdown",k,!0)},[b]),d===0?null:t.jsxs("section",{ref:_,className:De("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:k=>{w.current=k.pointerType},onPointerDown:k=>{w.current=k.pointerType,k.pointerType==="touch"&&(h.current!=null&&(window.clearTimeout(h.current),h.current=null),y(!0))},onPointerUp:k=>{k.pointerType==="touch"&&N(5e3)},onPointerCancel:k=>{k.pointerType==="touch"&&N(5e3)},onMouseEnter:()=>{w.current!=="touch"&&C(!0)},onMouseLeave:()=>C(!1),onFocus:k=>{let B=!0;try{B=k.target.matches(":focus-visible")}catch{B=!0}v(B)},onBlur:k=>{k.currentTarget.contains(k.relatedTarget)||v(!1)},children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${x*100}%)`},children:u.map((k,B)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":B!==x,...B!==x?{inert:!0}:{},children:k},B))})}),d>1&&t.jsx("div",{className:`top-banner__dots${(a?.[x]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((k,B)=>t.jsx("button",{type:"button",className:`top-banner__dot${B===x?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:d,index:B+1,defaultValue:`${d}\uAC1C \uC911 ${B+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":B===x,onClick:()=>p(B)},B))})]})}function fb({title:e,body:n,open:a=!1,onToggle:r,avatar:s,titleClassName:i="body-2",bodyClassName:l="body-2",className:u=""}){const{t:d}=ye.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.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:c=>{if(c.key==="Enter"||c.key===" ")c.preventDefault(),r?.();else if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault();const p=c.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),C=m.indexOf(c.currentTarget);(c.key==="ArrowDown"?m[C+1]:m[C-1])?.focus()}},children:[s&&t.jsx("div",{className:"accordion-item__avatar",children:s}),t.jsx("div",{className:`accordion-item__title ${i}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(Ze,{icon:a?"chevron-up":"chevron-down",label:a?d("accordion.collapse","\uC811\uAE30"):d("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function gb({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:s}){const[i,l]=o.useState({index:n}),u=(d,c)=>i.id!=null&&d.id!=null?d.id===i.id:i.id==null&&c===i.index;return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((d,c)=>t.jsx(fb,{title:d.title,body:d.body,avatar:d.avatar,open:u(d,c),onToggle:()=>l(u(d,c)?{index:-1}:{index:c,id:d.id}),bodyClassName:s},d.id??c))})}function bb(){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 yb(){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 vb(){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 xt(e){const{t:n}=ye.useTranslation(),{type:a="bar",size:r,className:s="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:A,number:x,position:N="top-right",onClick:k,animate:B=!1}=e,E=A??"check",S=x!==void 0?"number":E,z=typeof r=="number"?r:32,R=De("circle-badge",`circle-badge--${S}`,`circle-badge--${N}`,`circle-badge--${z}`,B?"circle-badge--animate":"",k?"circle-badge--clickable":"",s),q=x!==void 0?n("badge.nthSelected",{n:x,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")}[E];return t.jsxs("span",{className:R,onClick:k,onKeyDown:k?j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.currentTarget.click())}:void 0,"aria-label":l?void 0:i??q,"aria-hidden":l||void 0,role:k?"button":l?void 0:"img",tabIndex:k?0:void 0,children:[x!==void 0&&x,x===void 0&&E==="check"&&t.jsx(bb,{}),x===void 0&&E==="remove"&&t.jsx(yb,{}),x===void 0&&E==="minus"&&t.jsx(vb,{})]})}const{label:u,children:d,variant:c="default",fill:p="filled",minWidth:m,iconLeft:C,iconRight:g,color:v}=e,b=typeof r=="number"?"medium":r??"medium",y={small:"caption-2b",medium:"body-3b",large:"body-2b"}[b]??"body-2b",w={small:12,medium:14,large:16}[b]??14,h=De("badge",`badge--${c}`,`badge--${b}`,p!=="filled"?`badge--${p}`:"",y,s),_=v?.startsWith("--")?`var(${v})`:v,f=m!==void 0||_?{...m!==void 0?{minWidth:typeof m=="number"?`${m}px`:m}:{},..._?{"--badge-color":_}:{}}:void 0;return t.jsxs("span",{className:h,style:f,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[C&&t.jsx(Ze,{icon:C,size:w,className:"badge__icon"}),u??d,g&&t.jsx(Ze,{icon:g,size:w,className:"badge__icon"})]})}function ka({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:s}=ye.useTranslation(),i=r==="small"?40:48,[l,u]=o.useState([]),d=o.useMemo(()=>{const y=[{title:null,columns:e}];let w=e;for(const h of l){const _=w?.[h.ci]?.items?.[h.ii];if(!_||!Array.isArray(_.children)||!_.children.length)break;w=[{title:null,items:_.children}],y.push({title:_.label||null,columns:w})}return y},[e,l]),c=d[d.length-1],p=d.length-1,m=o.useCallback(()=>u(y=>y.slice(0,Math.max(0,Math.min(y.length,p)-1))),[p]),C=o.useRef(null),g=o.useRef(null),v=d.length;o.useEffect(()=>{g.current||(g.current=document.activeElement);let y=0,w=0;const h=()=>{const _=C.current?.querySelector("button:not([disabled])");if(_&&_.offsetParent){_.focus({preventScroll:!0});return}w++<20&&(y=requestAnimationFrame(h))};return y=requestAnimationFrame(h),()=>cancelAnimationFrame(y)},[v]),o.useEffect(()=>()=>{g.current?.focus?.({preventScroll:!0})},[]);const b=o.useCallback((y,w,h)=>{if(y){if(Array.isArray(y.children)&&y.children.length){u(_=>[..._.slice(0,p),{ci:w,ii:h}]);return}try{typeof y.onClick=="function"&&y.onClick()}catch{}try{y&&y.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n,p]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(d.length>1||c.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[d.length>1?t.jsx(pe,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:m,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:c.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:C,children:c.columns&&c.columns.map((y,w)=>t.jsxs("div",{className:"tooltip-menu__column",children:[y.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:y.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(y.items||[]).map((h,_)=>t.jsxs(o.Fragment,{children:[h.separatorBefore&&_>0&&t.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),t.jsx(pe,{htmlType:"button",className:"tooltip-menu__item",size:i,type:h.label?"bar":"dot",icon:h.selected?"check":h.icon||"none",rightIcon:Array.isArray(h.children)&&h.children.length?"chevron-right":h.badgeCount?t.jsx(xt,{type:"dot",position:"inline",number:Math.min(h.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:h.label,ariaLabel:h.label&&h.badgeCount&&h.badgeCount>0?s("nav.badgeLabel",{label:h.label,count:h.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):h.label,onClick:()=>b(h,w,_),selected:h.selected,disabled:h.disabled,showTooltipInfo:h.tooltip||!1,useBorder:!1,align:"left"})]},_))})]},w))})]})}const cl=".content-area";function ao(e,n="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(cl);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&an("nav-scroll-container",`[${n}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${cl}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const ro=52,Za=10,dl=e=>e&&e>0?e:0;function pl({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:s,moreItems:i=[],scrollContainer:l}){const{t:u}=ye.useTranslation(),d=r==="manager"?"malgwi":"manager",c=r==="manager"?"arrow-left":"arrow-right",p=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=o.useRef(null),[C,g]=o.useState(0),v=e.length;o.useEffect(()=>{const P=m.current;if(!P)return;const F=()=>{const H=typeof getComputedStyle=="function"?getComputedStyle(P):null,M=P.clientWidth-(parseFloat(H?.paddingLeft??"")||0)-(parseFloat(H?.paddingRight??"")||0),I=P.querySelector(".bottom-nav__left"),$=I?.nextElementSibling,K=(I?.offsetWidth??0)+(I&&$?.classList.contains("bottom-nav__divider")?$.offsetWidth:0);g(Math.max(0,M-K))};if(F(),typeof ResizeObserver>"u")return;const D=new ResizeObserver(F);return D.observe(P),()=>D.disconnect()},[]);const b=ro+1,y=P=>Math.max(0,Math.floor((P+Za)/(ro+Za))),w=v*(ro+Za)-Za<=C,h=C<=0||i.length===0&&w?v:Math.min(v,y(C-b)),_=C>0&&h<v,f=_?h:v,A=e.slice(0,f),x=e.slice(f),N=_||i.length>0,k=o.useCallback((P,F)=>({position:"fixed",bottom:window.innerHeight-P.top+8,right:window.innerWidth-P.right,zIndex:Aa(F)}),[]),B=o.useId(),{open:E,toggle:S,close:z,style:R,triggerRef:q,menuRef:j}=Ba({computeStyle:k,onScroll:"ignore",onResize:"reposition"}),L=o.useCallback((P,F)=>F>0?u("nav.badgeLabel",{label:P,count:F,defaultValue:"{{label}}, {{count}}\uAC1C"}):P,[u]),O=o.useCallback((P,F)=>F>0?u("nav.badgeInsideLabel",{label:P,count:F,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):P,[u]),Z=o.useCallback(()=>s?.(d),[s,d]),te=o.useMemo(()=>x.find(P=>!!P.key&&P.key===n)??i.find(P=>P.selected||P.key&&P.key===n),[x,n,i]),W=o.useMemo(()=>[{items:[...x.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:!!P.key&&P.key===n,closeOnSelect:!0,disabled:P.state==="disabled",onClick:()=>{P.state!=="disabled"&&(P.key&&a&&(a(P.key),ao(l,"BottomNav")),z())}})),...i.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:P.selected??(!!P.key&&P.key===n),closeOnSelect:!0,onClick:()=>{P.onClick?.(),z()}}))]}],[x,i,n,a,z]),U=[...x,...i].reduce((P,F)=>P+dl(F.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav",ref:m,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:c,ariaLabel:p,className:"bottom-nav-item",onClick:Z})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",children:A.map((P,F)=>{const D=dl(P.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:P.icon,ariaLabel:L(P.label,D),selected:!!P.key&&P.key===n,disabled:P.state==="disabled",className:"bottom-nav-item",onClick:()=>{P.key&&(a?.(P.key),ao(l,"BottomNav"))}}),D>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(xt,{type:"dot",position:"top-right",number:Math.min(D,99),size:24})})]},P.key??`__slot-${F}`)})}),N&&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:q,className:"bottom-nav__slot",children:[t.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:te?.icon??"ellipsis",ariaLabel:O(te?.label??u("nav.more","\uB354\uBCF4\uAE30"),U),selected:!!te,className:"bottom-nav-item",onClick:S,"aria-expanded":E,"aria-controls":E?B:void 0}),U>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(xt,{type:"dot",position:"top-right",number:Math.min(U,99),size:24})}),E&&Xt.createPortal(t.jsx("div",{id:B,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:R,ref:j,children:t.jsx(ka,{columns:W,onClose:z})}),document.body)]})})]})]})}function ml(e){if(typeof e!="string")return!1;let n="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(n+=r)}if(!n)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(n);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function hl(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function xb(e){const{t:n}=ye.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:i,onSetting:l,onHelp:u,onFeedback:d,onAccount:c}=e||{},p="default";return s||i||l||u||d||c?t.jsxs("div",{className:"side-nav__footer",children:[s&&t.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),i&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bell",ariaLabel:hl(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&t.jsx(xt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&t.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),u&&t.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),d&&t.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bug",ariaLabel:n("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:d,selected:a==="feedback"}),c&&t.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:c,selected:a==="account"})]}):null}function Cl(e){const{t:n}=ye.useTranslation(),{item:a,itemKey:r,label:s,icon:i,active:l,onClick:u,style:d,state:c,labelStyle:p}=e||{},m=a?.key??r??"",C=a?.label??s??"",g=a?.icon??i??"",v=a?.badge??0,b=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(Ze,{icon:g,label:typeof C=="string"?C:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),y=c==="disabled",w=`side-nav__item ${l?"active":""} ${c||""} ${y?"disabled":""} ${a?.child?"side-nav__item--child":""}`,h=o.useCallback(_=>{if(y)return;const f=_.detail>0;if(f)try{_.currentTarget.blur()}catch{}u?.(m,_.currentTarget,f)},[y,m,u]);return t.jsxs("button",{type:"button",className:w,onClick:h,"aria-label":typeof C=="string"?hl(n,C,v):void 0,"aria-current":l?"page":void 0,style:d,"aria-disabled":y,children:[b,t.jsx("span",{className:"side-nav__label button-1 f",style:p,children:C}),v>0&&t.jsx(xt,{type:"dot",position:"inline",number:Math.min(v,99),size:24,"aria-hidden":!0}),c==="loading"&&t.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":n("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function fl(e){const{t:n}=ye.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:d,onSetting:c,onHelp:p,onFeedback:m,appMode:C,onAppModeChange:g,scrollContainer:v}=e||{},b=C==="manager",y=o.useCallback(()=>g?.(b?"malgwi":"manager"),[g,b]),w=o.useRef(null),[h,_]=o.useState(null);o.useEffect(()=>{const k=w.current;if(!k)return;const B=()=>{const{scrollHeight:S,clientHeight:z,scrollTop:R}=k;if(S<=z+1){_(null);return}const q=Math.max(24,z/S*z),j=z-q,L=S-z;_({top:Math.round(R/L*j),height:Math.round(q)})};B(),k.addEventListener("scroll",B,{passive:!0});const E=typeof ResizeObserver<"u"?new ResizeObserver(B):null;E?.observe(k);for(const S of Array.from(k.children))E?.observe(S);return()=>{k.removeEventListener("scroll",B),E?.disconnect()}},[a]);const f=o.useRef(null),A=o.useCallback(k=>{const B=w.current;B&&(k.preventDefault(),f.current={y:k.clientY,top:B.scrollTop},k.currentTarget.setPointerCapture(k.pointerId))},[]),x=o.useCallback(k=>{const B=w.current,E=f.current;!B||!E||(B.scrollTop=E.top+(k.clientY-E.y)*(B.scrollHeight/B.clientHeight))},[]),N=o.useCallback(k=>{f.current=null,k.currentTarget.hasPointerCapture(k.pointerId)&&k.currentTarget.releasePointerCapture(k.pointerId)},[]);return t.jsxs("nav",{ref:w,"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[h&&t.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:t.jsx("div",{className:"side-nav__scroll-thumb",style:{top:h.top,height:h.height},onPointerDown:A,onPointerMove:x,onPointerUp:N,onPointerCancel:N})}),t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(k=>!k.section&&(k.key||k.label)).map((k,B)=>t.jsxs(o.Fragment,{children:[k.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(Cl,{item:k,active:!!k.key&&k.key===r,state:k.disabled?"disabled":void 0,onClick:(E,S,z)=>{if(k.disabled)return;if(k.href){if(ml(k.href)&&window.open(k.href,"_blank","noopener,noreferrer"),z)try{S?.blur()}catch{}return}if(s?.(k.key),ao(v,"SideNav"),!z)return;try{S?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const R=document.querySelector(".header");if(R){const q=typeof R.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&q&&R.matches(":hover"))){R.classList.add("header--force-collapsed");const j=()=>{R.classList.remove("header--force-collapsed"),R.removeEventListener("mouseenter",j)};R.addEventListener("mouseenter",j)}}}})]},k.key??`side-nav__item-${B}`)),g&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),g&&t.jsx(Cl,{item:{key:"__mode-switch__",label:b?n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:b?"arrow-left":"arrow-right"},onClick:y})]}),t.jsx(xb,{activeKey:r,unreadCount:i,onDebug:l,onNotification:u,onAccount:d,onSetting:c,onHelp:p,onFeedback:m})]})}var Xa='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',oo='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',_b='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 gl({appMode:e}){const{t:n}=ye.useTranslation(),a=e==="manager",r=a?oo:Xa,s=_b;return t.jsxs("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:[t.jsx("img",{src:s,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),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 brand-identity__image--logo"})]})}function bl({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:d,onSetting:c,onHelp:p,onFeedback:m,appMode:C,onAppModeChange:g,scrollContainer:v}){const{t:b}=ye.useTranslation(),y=tn("(max-width: 767px)"),w=o.useMemo(()=>(a??[]).filter(R=>!R.section&&(R.key||R.label)).map(R=>({key:R.key,label:typeof R.label=="string"?R.label:void 0,icon:R.icon,state:R.disabled?"disabled":void 0,badgeCount:R.badge})),[a]),h=o.useCallback(R=>{const q=a?.find(j=>j.key===R);if(!q?.disabled){if(q?.href){ml(q.href)&&window.open(q.href,"_blank","noopener,noreferrer");return}n?.(R)}},[a,n]),_=o.useMemo(()=>{const R=[];return l&&R.push({key:"debug",icon:"terminal",label:b("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),u&&R.push({key:"notifications",icon:"bell",label:b("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:u}),c&&R.push({key:"settings",icon:"settings",label:b("nav.settings","\uC124\uC815"),onClick:c}),p&&R.push({key:"help",icon:"message-circle-question-mark",label:b("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),m&&R.push({key:"feedback",icon:"bug",label:b("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:m}),d&&R.push({key:"account",icon:"user-round",label:b("nav.account","\uACC4\uC815"),onClick:d}),R},[b,l,u,c,p,m,d,i]),f=o.useCallback((R,q)=>({position:"fixed",top:R.bottom+8,right:Math.max(8,window.innerWidth-R.right),zIndex:Aa(q)}),[]),A=o.useId(),{open:x,toggle:N,close:k,style:B,triggerRef:E,menuRef:S}=Ba({computeStyle:f,onScroll:"ignore",onResize:"reposition"}),z=o.useMemo(()=>[{items:_.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.selected??(!!R.key&&R.key===e),closeOnSelect:!0,onClick:()=>{R.onClick?.(),k()}}))}],[_,e,k]);return t.jsxs("aside",{className:`header${C==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(gl,{appMode:C}),t.jsxs("div",{className:"header__menu-button",ref:E,children:[t.jsx(pe,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&i&&i>0?b("nav.badgeInsideLabel",{label:b("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):b("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:N,"aria-expanded":x,"aria-controls":x?A:void 0}),!!u&&!!i&&i>0&&t.jsx(xt,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),x&&Xt.createPortal(t.jsx("div",{id:A,role:"group","aria-label":b("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:B,ref:S,children:t.jsx(ka,{columns:z,onClose:k})}),document.body)]})]}),t.jsx(fl,{scrollContainer:v,items:a,activeKey:e??void 0,onChange:n,unreadCount:i,onDebug:l,onNotification:u,onAccount:d,onSetting:c,onHelp:p,onFeedback:m,appMode:C,onAppModeChange:g}),y&&t.jsx(pl,{items:w,activeKey:e??void 0,onChange:h,scrollContainer:v,appMode:C,onAppModeChange:g})]})}const wb=bl,Ab=()=>St.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function yl(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const n=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(n))return Qn(`${n.toLocaleString("ko-KR")}\uC6D0`)}return Qn(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function Bb(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function kb(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 s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||Ab()}function Nb(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 vl(e){return{type:e.type??Bb(e),plan:kb(e),label:e.label,price:yl(e.price),originalPrice:yl(e.originalPrice),discountLabel:e.discountLabel}}var Db='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',Eb='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>',Sb='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',jb='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',Tb='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>',Mb='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',xl='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 qn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},so=new WeakMap;function Lb(e){if(e)return so.get(e)}function _n(e,n){e&&(e.style.setProperty(qn.text,n.text),e.style.setProperty(qn.sub,n.sub),n.copyrightColor&&e.style.setProperty(qn.copyright,n.copyrightColor),so.set(e,n))}function wn(e){e&&(e.style.removeProperty(qn.text),e.style.removeProperty(qn.sub),e.style.removeProperty(qn.copyright),so.delete(e))}const _l={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function wl(e={}){const n=vt(_l,_n,wn);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("${xl}")`}})]})}const Al="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 Na='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 $b={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},Rb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Bl(e={}){const n=vt($b,_n,wn),a="var(--color-main)",r=270,s=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:Rb.map(({scale:i,opacity:l},u)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:Al,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Na}")`}})]})}const Pb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},Ib=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Fb(e={}){const n=vt(Pb,_n,wn),a="#ffffff",r=270,s=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:Ib.map(({scale:i,opacity:l},u)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:Al,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${xl}")`}})]})}const Ob={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Hb(e={}){const n=vt(Ob,_n,wn);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("${Na}")`}})]})}const zb={Logo_speechear_kr:{"":Xa,_white:Db,_textWhite:Eb,_black:Sb},Logo_speechearManager_kr:{"":oo,_white:jb,_textWhite:Tb,_black:Mb}};function Vb(e,n){if(e)return zb[e]?.[n??""]??void 0}const Wb={speechear:Xa,manager:oo},qb={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},kl=10;function Ub(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function Nl(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 s=Math.floor(e/60);return s>0?n("passCard.remainingMinute",{n:s}):n("passCard.remainingSecond",{n:Math.floor(e)})}function Gb(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),s=a==="\uC624\uD508\uD2B9\uAC00"||a===St.t("passCard.specialLabel");return r?t.jsx(Hb,{}):s?t.jsx(Fb,{}):t.jsx(Bl,{})}return t.jsx(wl,{})}function Dl({ariaLabel:e,product:n,showPrice:a=!1,plan:r,type:s,endDate:i,remainingSeconds:l,endInclusive:u=!1,state:d="active",bg:c,bgOnly:p=!1,textColor:m,subColor:C,copyrightColor:g,logoSrc:v,label:b,price:y,originalPrice:w,discountLabel:h,onUse:_,onRefund:f,onDelete:A}){const{t:x}=ye.useTranslation(),N=n?vl(n):void 0,k=s??N?.type??"speechear",B=r??N?.plan??x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),E=b??N?.label,S=y??(a?N?.price:void 0),z=w??(a?N?.originalPrice:void 0),R=h??N?.discountLabel,q=o.useMemo(()=>{if(S)return null;const V=n?.durationDays??Nb(n?.code);if(!V||V<=0)return l!=null?{percent:null,remainingLabel:Nl(l,x)}:null;const ee=V*86400;let oe;if(l!=null)oe=l;else if((d==="active"||d==="expired")&&i){const se=new Date(i).getTime();if(Number.isNaN(se))return null;const ge=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(i)),fe=/^(\d{4})-(\d{2})-(\d{2})/.exec(va()),xe=Math.round(ge&&fe?(Date.UTC(+ge[1],+ge[2]-1,+ge[3])-Date.UTC(+fe[1],+fe[2]-1,+fe[3]))/864e5:(se-Date.now())/864e5);oe=Math.max(0,u?xe+1:xe)*86400}else d==="expired"?oe=0:oe=ee;const Be=Ub(oe),Ce=Math.max(0,Math.min(100,Math.floor(Math.min(Be,ee)/ee*100)));return d==="pending"&&Ce>=100?null:{percent:Ce,remainingLabel:d==="expired"?x("passCard.expired","\uB9CC\uB8CC\uB428"):Nl(oe,x)}},[S,d,i,l,u,n?.durationDays,n?.code,x]),j=o.useRef(null),[L,O]=o.useState({}),[Z,te]=o.useState(null),W=!!(_||f||A),U=o.useRef(!1),P=o.useRef(void 0),[F,D]=o.useState(v);o.useLayoutEffect(()=>{D(v)},[v]),o.useLayoutEffect(()=>{const V=j.current;V&&(m!==void 0&&V.style.setProperty("--pass-card-text",m),C!==void 0&&V.style.setProperty("--pass-card-sub",C),g!==void 0&&V.style.setProperty("--pass-card-copyright",g))},[m,C,g]),o.useLayoutEffect(()=>{const V=j.current;if(!V)return;const ee=Lb(V);if(!v){const oe=qb[k],Be=d==="expired"?"_black":ee?.logoColor??"",Ce=Vb(oe,Be);D(Ce)}},[c,v,k,d]);const H=V=>{const ee=j.current;if(!ee)return null;const{left:oe,top:Be,width:Ce,height:se}=ee.getBoundingClientRect(),ge=(V.clientX-oe)/Ce-.5;return{rotateX:-((V.clientY-Be)/se-.5)*kl,rotateY:ge*kl}},M=(V,ee)=>{const oe=ee*-.7,Be=V*.7+10,Ce=20+(Math.abs(V)+Math.abs(ee))*.4;return`${oe}px ${Be}px ${Ce}px rgba(0, 0, 0, 0.18)`},I=o.useCallback(V=>{if(na())return;U.current=!0,clearTimeout(P.current),P.current=setTimeout(()=>{U.current=!1},200);const ee=H(V);ee&&O({transform:`perspective(800px) rotateX(${ee.rotateX}deg) rotateY(${ee.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:M(ee.rotateX,ee.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)"})},[]),$=o.useCallback(V=>{if(na())return;const ee=H(V);if(!ee)return;const oe=U.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";O({transform:`perspective(800px) rotateX(${ee.rotateX}deg) rotateY(${ee.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:M(ee.rotateX,ee.rotateY),transition:oe})},[]),K=o.useCallback(()=>{clearTimeout(P.current),U.current=!1,O({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)"})},[]),ne=o.useCallback(()=>te(null),[]),X=o.useMemo(()=>{const V=x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),ee=B.replace("\uC774\uC6A9\uAD8C","").replace(V==="\uC774\uC6A9\uAD8C"?"":V,"").trim(),oe=ee.match(/^(.*?)(일|년)$/);return oe?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:oe[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:oe[2]==="\uB144"?x("passCard.unitYear","\uB144"):x("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:ee})},[B,x]),ae=o.useMemo(()=>{const V=Qn(S);if(!V)return null;const ee=V.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!ee)return t.jsx("span",{className:"h1",children:V});const[,oe,Be,Ce]=ee;return t.jsxs(t.Fragment,{children:[oe&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:oe}),t.jsx("span",{className:"h1 pass-card__price-amount",children:Be}),Ce.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:Ce.trim()})]})},[S]),ue=o.useCallback(()=>{W&&te(V=>{if(V)return null;const ee=j.current?.getBoundingClientRect();if(!ee)return null;const oe=50;return{left:ee.left,right:ee.right,width:ee.width,height:ee.height,x:ee.x,y:ee.y+oe,top:ee.top+oe,bottom:ee.bottom+oe}})},[W]),le=o.useCallback(V=>{W&&(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),ue())},[W,ue]),be=[{items:[..._?[{label:x("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{_(),te(null)},closeOnSelect:!0}]:[],...f?[{label:x("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{f(),te(null)},closeOnSelect:!0}]:[],...A?[{label:x("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{A(),te(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--${d}${W?" pass-card--clickable":""}`,style:L,onMouseEnter:I,onMouseMove:$,onMouseLeave:K,onPointerUp:V=>{V.pointerType==="touch"&&K()},onPointerCancel:V=>{V.pointerType==="touch"&&K()},onClick:ue,onKeyDown:W?le:void 0,role:W?"button":void 0,tabIndex:W?0:void 0,"aria-label":e,"aria-haspopup":W?"menu":void 0,"aria-expanded":W?!!Z:void 0,children:[c??Gb(k,B,E),!p&&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:F??Wb[k],className:"pass-card__logo",alt:k==="manager"?x("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):x("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:X}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:E?x("passCard.labeledPlan",{label:E}):x("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),S?t.jsxs("div",{className:"pass-card__price-area",children:[R&&t.jsx("span",{className:"pass-card__discount body-3",children:R}),t.jsxs("div",{className:"pass-card__price",children:[z&&t.jsx("span",{className:"pass-card__price-original body-3",children:Qn(z)}),ae]})]}):q?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:q.remainingLabel}),q.percent!=null&&t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:q.percent}),t.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):t.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),Z&&t.jsx(on,{anchorRect:Z,onClose:ne,ariaLabel:x("tooltip.menu","\uBA54\uB274"),children:t.jsx(ka,{columns:be,onClose:ne,size:"small"})})]})}const Kb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Yb(e={}){const n=`passcard-sound-line-grad-${o.useId()}`,a=vt(Kb,_n,wn);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("${Na}")`}})]})}const Zb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Xb(e={}){const n=vt(Zb,_n,wn);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("${Na}")`}})]})}function Jb(e,n){if(e){if(n==="manager_pro")return t.jsx(Xb,{});if(n==="manager_standard")return t.jsx(Yb,{});if(n==="manager_lite")return t.jsx(Bl,{})}}function Qb(e){const n=Qn(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,s,i]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,i.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function e4(e){const{t:n}=ye.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:i,period:l="monthly",ownedCodes:u}=e||{},d=f=>!!f&&!!u?.includes(f),c=f=>f.onceOnly??/오픈\s*특가/.test(f.label??""),p=(s.tiers||[]).some(f=>c(f)&&d(f.code)),m=f=>{const A=f.prices?f.prices[l]:f.price;return A?(s.tiers||[]).some(x=>!!x.badge&&x.originals?.[l]===A):!1},C=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",g=n("payment.plan.freePrice","\uBB34\uB8CC"),v=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),b=f=>f.prices?f.prices[l]:f.price,y=(s.tiers||[]).length>0&&(s.tiers||[]).every(f=>{const A=b(f);return A==="\uBB34\uB8CC"||A===g||A==="0\uC6D0"||typeof A=="string"&&/\d/.test(A)&&!/[1-9]/.test(A)}),w=(s.tiers||[]).length>0&&(s.tiers||[]).every(f=>{const A=b(f);return A==="\uBB38\uC758"||A===v}),h=s.group==="org",_=h?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:C,"--plan-color":C},children:[s.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(xt,{label:s.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:C},children:s.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:s.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:(s.recommendedFor||[]).map((f,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ze,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:C}}),f]},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:(s.features||[]).map((f,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ze,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:C}}),f]},A))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:y?null:w?t.jsx(pe,{htmlType:"button",className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&i?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(f=>{const A=f.label||a,x=c(f),N=x||f.openPromo===!0,k=A.replace(/^오픈\s*특가\s*/,"")||a,B=f.prices?f.prices[l]:f.price,E=f.badge?N?`${r}
852
- ${f.badge}`:f.badge:void 0;if(x&&d(f.code))return null;if(!f.badge&&!p)return m(f)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${f.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:f.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:Qb(B)})})]},f.id);const S=s.tier??(h?s.title:void 0),z=t.jsx(Dl,{showPrice:!0,product:{type:_,code:f.code,name:k,label:S,price:B,originalPrice:f.originals?.[l]??void 0,discountLabel:E},bg:Jb(h,s.id)}),R=()=>i?.({...f,productId:s.id,productTitle:s.title,preview:z});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:R,onKeyDown:i?q=>{q.target===q.currentTarget&&(q.key==="Enter"||q.key===" ")&&(q.preventDefault(),R())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:z},f.id)})})})})]})}function t4({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 io='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 El={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function n4(){const e=vt(El,_n,wn);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("${io}")`}})})}const Sl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function a4(e={}){const n=vt(Sl,_n,wn);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("${Na}")`}})]})}function jl({keys:e,anchor:n="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return t.jsx("span",{className:De("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.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 Da=(e,n,a)=>e+(n-e)*a;function r4({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:i=null,answerId:l=null,showFeedback:u=!1,pulseSelected:d=!1,pulseSelectedDuration:c,pulseScale:p,clickable:m=!1,onSelectSpeaker:C,buttonSize:g=40,showIcon:v=!0,onCenterClick:b,centerLabel:y,centerDisabled:w=!1,centerAttention:h=!1,shortcutAnchor:_="top-right",shortcutScale:f,scaleShortcut:A=!1}){const{t:x}=ye.useTranslation(),N=Math.max(0,Math.min(1,a)),k=n/2,B=110/300,E=.18,S=V=>n*(B+(V-1)*E),z=V=>{const ee=S(V.row??1),oe=V.angleDeg*Math.PI/180;return{x:k+ee*Math.cos(oe),y:k+ee*Math.sin(oe)}},R=Math.max(...e.map(V=>V.row??1),1),q=n*.08,j=n*.1,L=n*.24,O=n-2*q,Z=n-j-L,te=n-L/2,W=o.useMemo(()=>[...new Set(e.map(V=>V.deg))].sort((V,ee)=>V-ee),[e]),U=W.length,P=Math.max(68,U>1?O/(U-1):0),F=o.useMemo(()=>new Map(W.map((V,ee)=>[V,ee])),[W]),D=V=>{const ee=F.get(V.deg)??0,oe=k+(ee-(U-1)/2)*P,Be=R>1?Math.min(68,Z/(R-1)):0,Ce=Be*(R-1),se=j+(Z-Ce)/2,ge=R===1?j+Z*.4:se+(R-(V.row??1))*Be;return{x:oe,y:ge}},H=V=>{const ee=z(V),oe=D(V);return{x:Da(ee.x,oe.x,N),y:Da(ee.y,oe.y,N)}},M={x:k,y:Da(k,te,N)},I=Math.round(g*1.2),$=Math.round(Math.max(16,Math.min(80,g*.7))),K=[],ne=new Map;for(const V of e){const ee=V.row??1;ne.has(ee)||ne.set(ee,[]),ne.get(ee).push(V)}for(const[V,ee]of ne.entries()){if(ee.length<2)continue;const oe=[...ee].sort((Ie,st)=>Ie.deg-st.deg),Be=oe.map(Ie=>H(Ie)),Ce=oe.map(Ie=>Ie.deg),se=Ce[Ce.length-1]-Ce[0],ge=se/(Ce.length-1),fe=360-se,xe=oe.length>=3&&ge>0&&fe<=ge*1.5,$e=Math.round(S(V)*1e3)/1e3,Le=(Ie,st,Xe,Je)=>{const Ee=(st.angleDeg-Ie.angleDeg+540)%360-180;if(Ee===0)return`L ${Je.x} ${Je.y}`;if(N===0)return`A ${$e} ${$e} 0 0 ${Ee>0?1:0} ${Je.x} ${Je.y}`;const ke=(Ie.angleDeg+Ee/2)*Math.PI/180,Me={x:k+$e*Math.cos(ke),y:k+$e*Math.sin(ke)},Ve={x:(Xe.x+Je.x)/2,y:(Xe.y+Je.y)/2},lt={x:Da(Me.x,Ve.x,N),y:Da(Me.y,Ve.y,N)},Q={x:2*lt.x-Ve.x,y:2*lt.y-Ve.y};return`Q ${Q.x} ${Q.y} ${Je.x} ${Je.y}`},Qe=xe?[...oe,oe[0]]:oe,Ue=xe?[...Be,Be[0]]:Be;let ze=`M ${Ue[0].x} ${Ue[0].y}`;for(let Ie=1;Ie<Ue.length;Ie++)ze+=" "+Le(Qe[Ie-1],Qe[Ie],Ue[Ie-1],Ue[Ie]);K.push({key:`arc-${V}`,d:ze})}const X=o.useMemo(()=>new Set(s??[]),[s]),ae=V=>({idle:"",active:x("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:x("soundCompass.state.played","\uB4E4\uC74C"),correct:x("soundCompass.state.correct","\uC815\uB2F5"),wrong:x("soundCompass.state.wrong","\uC624\uB2F5")})[V],ue=V=>{if(r===V.id)return"active";if(u){if(V.id===l)return"correct";if(V.id===i&&i!==l)return"wrong"}return X.has(V.id)?"played":"idle"},le=V=>r===V.id?"loop":u?V.id===l?"loop":null:d&&V.id===i?"once":null,be=(V,ee)=>{switch(V){case"played":case"correct":return t.jsx(is,{size:ee});case"wrong":return t.jsx(gs,{size:ee});default:return t.jsx(fs,{size:ee})}};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:[N===0&&e.map(V=>{const{x:ee,y:oe}=H(V);return t.jsx("line",{x1:M.x,y1:M.y,x2:ee,y2:oe,stroke:"#dde3ec",strokeWidth:"1"},V.id)}),K.map(V=>t.jsx("path",{d:V.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},V.key))]}),h&&!w&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:I,height:I,left:M.x-I/2,top:M.y-I/2}}),b?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${w?" sound-compass__center--disabled":""}`,style:{width:I,height:I,left:M.x,top:M.y},"aria-label":y,"aria-disabled":w||void 0,tabIndex:w?-1:0,onClick:w?void 0:b,children:t.jsx(vr,{size:$,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:I,height:I,left:M.x,top:M.y},children:t.jsx(vr,{size:$,color:"currentColor",strokeWidth:1.5})}),e.map((V,ee)=>{const{x:oe,y:Be}=H(V),Ce=ue(V),se=le(V),ge={...f!==void 0||A?{"--shortcut-badge-scale":String(f??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:Ce!=="idle"?10:1},fe=g,xe=Math.round(Math.max(10,Math.min(56,fe*.38))),$e=Math.round(Math.max(7,Math.min(18,fe*.2))),Le=Math.round(Math.max(10,Math.min(56,fe*.4))),Qe=v==="answered"&&(Ce==="played"||Ce==="correct"||Ce==="wrong"),Ue=v===!0||Qe,ze=!Qe;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...ge,left:oe-fe/2,top:Be-fe/2},children:[se&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${Ce}`+(se==="once"?" sound-compass__pulse--once":""),style:{width:fe,height:fe,...se==="once"&&c!==void 0?{"--sc-pulse-duration-once":`${c}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?()=>C?.(V.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${Ce}`,style:{width:fe,height:fe},"aria-label":ae(Ce)?`${V.label}, ${ae(Ce)}`:V.label,"aria-pressed":i!=null?V.id===i:void 0,children:[Ue&&be(Ce,xe),ze&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:v===!0?$e:Le},children:ee+1})]}),V.shortcut&&t.jsx(jl,{keys:V.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},V.id)})]})})}function o4({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:De("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function s4({orientation:e="horizontal",label:n,className:a=""}){const r=De("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 Tl({checked:e,onChange:n,name:a,value:r,disabled:s=!1,label:i,className:l=""}){const u=o.useId();return t.jsxs("label",{className:`radio${s?" radio--disabled":""} ${l}`.trim(),htmlFor:u,children:[t.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:d=>n?.(d.target.checked)}),t.jsx("span",{className:"radio__dot"}),i&&t.jsx("span",{className:"radio__label body-2",children:i})]})}function i4({options:e,value:n,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:u}){const d=o.useId(),c=r??`radio-group-${d}`;return t.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":u,children:e.map(p=>t.jsx(Tl,{name:c,value:p.value,checked:n===p.value,disabled:s||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const l4={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function u4({tone:e="info",title:n,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:u=""}){const{t:d}=ye.useTranslation(),[c,p]=o.useState(!1),m=o.useRef(null),C=o.useCallback(()=>{const h=m.current;h&&h.contains(document.activeElement)&&Ga(h),p(!0),i?.()},[i]);if(c)return null;const g=De("alert",`alert--${e}`,u),v=l??(e==="danger"||e==="warning"?"assertive":"polite"),b=v==="assertive"?"alert":v==="polite"?"status":void 0,y=!!n,w=!!(a||r);return t.jsxs("div",{ref:m,className:g,role:b,children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Ze,{icon:l4[e],size:20,className:"alert__icon"}),y&&t.jsx("span",{className:"alert__title body-2",children:n}),!y&&w&&t.jsx("div",{className:"alert__message body-3",children:a||r})]}),y&&w&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:C,"aria-label":d("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const c4={ready:"search",guide:"info",error:"circle-alert"};function d4(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let s=0,i=0;for(const l of a){const u=e.indexOf(l,s);u<0||(u>s&&r.push(e.slice(s,u)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),s=u+l.length)}return s<e.length&&r.push(e.slice(s)),r}function p4({status:e="guide",label:n,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??c4[e],u=De("search-summary",`search-summary--${e}`,i),d=n??a,c=typeof d=="string"&&r&&r.length>0?d4(d,r):d;return t.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Ze,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:c})]})}function Ea({title:e,items:n}){const{t:a}=ye.useTranslation(),{anchorRect:r,openAt:s,close:i}=wa(),l=o.useRef(null),u=Yr(!!r,(d,c)=>{d&&c?s(l.current?.querySelector("button")??c):i()},l);return t.jsxs("span",{ref:l,style:{display:"contents"},children:[t.jsx(pe,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:d=>{ta(d)||s(d.currentTarget)},onPointerLeave:d=>{ta(d)||i()},onClick:d=>{u.touchPress(d.currentTarget)},onFocus:d=>{na()||s(d.currentTarget)},onBlur:i}),r&&t.jsx(Vn,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:i})]})}function m4({items:e=[],value:n,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=ye.useTranslation(),u=o.useRef(null),d=e.find(b=>!b.disabled)?.key,c=e.some(b=>b.key===n)?n:d??e[0]?.key,p=e.find(b=>b.key===c&&!b.disabled)?.key??d,m=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),C=(b,y=m())=>{if(y.length===0)return;const w=(b%y.length+y.length)%y.length;y[w]?.focus(),y[w]?.click()},g=b=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(b.key))return;b.preventDefault();const y=m(),w=y.indexOf(b.currentTarget);b.key==="ArrowRight"||b.key==="ArrowDown"?C(w+1,y):b.key==="ArrowLeft"||b.key==="ArrowUp"?C(w-1,y):b.key==="Home"?C(0,y):C(y.length-1,y)},v=e.find(b=>b.key===c);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(b=>t.jsx("button",{id:`tabs__tab-${i}-${b.key}`,type:"button",role:"tab","aria-selected":b.key===c,"aria-controls":`tabs__panel-${i}-${b.key}`,disabled:b.disabled,tabIndex:b.key===p?0:-1,className:`tabs__tab body-2${b.key===c?" tabs__tab--active":""}`,onClick:()=>{b.key!==n&&a?.(b.key)},onKeyDown:g,children:b.label},b.key))}),v&&t.jsx("div",{id:`tabs__panel-${i}-${v.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${v.key}`,tabIndex:0,className:"tabs__panel",children:v.panel},v.key)]})}const h4={xs:12,sm:16,md:20,lg:28,xl:36};function C4(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 f4({src:e,name:n,size:a="md",shape:r="circle",className:s=""}){const{t:i}=ye.useTranslation(),[l,u]=o.useState(null),d=!!e&&l===e,c=n?C4(n):"",p=!!e&&!d,m=!p&&!!c,C=n||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":C,children:[p&&t.jsx("img",{className:"avatar__image",src:e,alt:C,onError:()=>u(e??null)}),!p&&m&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:c}),!p&&!m&&t.jsx(Ze,{icon:"user-round",size:h4[a],className:"avatar__icon"})]})}function g4(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(),s=e.type.toLowerCase();return a.some(i=>{const l=i.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?s.startsWith(l.slice(0,-1)):s===l})}function b4({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:u=""}){const{t:d}=ye.useTranslation(),c=o.useRef(null),[p,m]=o.useState(!1),[C,g]=o.useState([]),v=i??C,b=x=>{if(!x||x.length===0)return;const N=Array.from(x).filter(B=>g4(B,n));if(N.length===0)return;const k=a?N:N.slice(0,1);if(i===void 0){const B=a?[...v,...k]:k;g(B),e?.(B)}else e?.(k)},y=x=>{x.preventDefault(),!r&&m(!0)},w=x=>{x.preventDefault(),m(!1)},h=x=>{x.preventDefault(),m(!1),!r&&b(x.dataTransfer.files)},_=x=>{const N=x.target;try{b(N.files)}finally{N.value=""}},f=()=>{r||c.current?.click()},A=x=>{if(!r&&(l?.(x),i===void 0)){const N=v.filter((k,B)=>B!==x);g(N),l||e?.(N)}};return t.jsxs("div",{className:`file-upload ${u}`.trim(),children:[t.jsxs("div",{className:De("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:f,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),f())},onDragOver:y,onDragLeave:w,onDrop:h,children:[t.jsx(Ze,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:d("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:x=>{x.stopPropagation(),f()},children:d("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:c,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),s&&v.length>0&&t.jsx("ul",{className:"file-upload__list",children:v.map((x,N)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:x.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":d("fileUpload.removeAriaLabel",{name:x.name}),disabled:r,onClick:()=>A(N),children:t.jsx(Ze,{icon:"x",size:14})})]},`${x.name}-${N}`))})]})}function y4({items:e,className:n=""}){const{t:a}=ye.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,s)=>{const i=s===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}):r.href?t.jsx("a",{className:"breadcrumb__link body-3",href:r.href,target:r.target,rel:r.rel??(r.target==="_blank"?"noopener noreferrer":void 0),onClick:r.onClick,children:r.label}):r.onClick?t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):t.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!i&&t.jsx(Ze,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const v4={small:14,medium:20,large:28};function x4({value:e,onChange:n,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:u}=ye.useTranslation(),d=r||!n,[c,p]=o.useState(null),m=d?e:Number.isFinite(e)?Math.round(e):0,C=c??m,g=v4[s],v=x=>{x!==e&&n?.(x)},b=x=>{d||v(x)},y=x=>{d||na()||p(x)},w=o.useRef(null),h=x=>{const N=Math.min(a,Math.max(1,x));v(N),Array.from(w.current?.querySelectorAll("[data-star]")??[]).find(k=>k.dataset.star===String(N))?.focus()},_=x=>{if(!d){switch(x.key){case"ArrowRight":case"ArrowUp":h((m||0)+1);break;case"ArrowLeft":case"ArrowDown":h((m||1)-1);break;case"Home":h(1);break;case"End":h(a);break;default:return}x.preventDefault()}},f=m>=1&&m<=a?Math.round(m):1,A=()=>{d||p(null)};return t.jsx("div",{className:`rating rating--${s}${d?" rating--readOnly":""} ${l}`.trim(),ref:w,onKeyDown:_,role:d?"img":"radiogroup","aria-label":d?u("rating.valueLabel",{value:e,max:a}):i??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:A,onPointerUp:x=>{x.pointerType==="touch"&&A()},onPointerCancel:x=>{x.pointerType==="touch"&&A()},children:Array.from({length:a},(x,N)=>{const k=N+1,B=Math.max(0,Math.min(1,C-N)),E=B>0&&B<1,S=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Ze,{icon:"star",size:g,className:"rating__star rating__star--empty"}),B>0&&t.jsx("span",{className:`rating__star-fill${E?" rating__star-fill--half":""}`,style:E?{width:`${B*100}%`}:void 0,children:t.jsx(Ze,{icon:"star",size:g,className:"rating__star rating__star--filled"})})]});return d?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:S},k):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":m===k,"aria-label":u("rating.starLabel",{n:k}),"data-star":k,tabIndex:k===f?0:-1,onClick:()=>b(k),onMouseEnter:()=>y(k),children:S},k)})})}const _4=20,w4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function A4({value:e,onChange:n,palette:a=w4,size:r=40,className:s="",ariaLabel:i}){const{t:l}=ye.useTranslation();return t.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":i,children:a.map(u=>{const d=e?.toLowerCase()===u.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>n(u),"aria-pressed":d,"aria-label":d?`${u} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:d&&t.jsx(Ze,{icon:"check",size:_4,className:"color-picker__check"})},u)})})}function Ml({icon:e,label:n,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:u="medium"}){const{t:d}=ye.useTranslation(),c=u==="small",p=De("category-icon",c?"category-icon--small":""),m=c?16:20,C=o.useRef(null),[g,v]=o.useState(!1),b=o.useMemo(()=>{const N=r&&typeof r=="object"?{...r}:{};return!s&&!i?N:{...N,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),y=a||n,[w,h]=o.useState(null);o.useLayoutEffect(()=>{g&&h(C.current?.getBoundingClientRect()??null)},[g]),o.useEffect(()=>{if(!l&&g)try{v(!1)}catch{}},[l,g]),o.useEffect(()=>{if(!g)return;const N=k=>{const B=C.current;if(!B)return;const E=k.target;E&&!B.contains(E)&&v(!1)};return document.addEventListener("pointerdown",N,!0),()=>document.removeEventListener("pointerdown",N,!0)},[g]);const _=o.useCallback(()=>{l&&v(!0)},[l]),f=o.useCallback(()=>{l&&v(!1)},[l]),A=o.useCallback(()=>v(!1),[]),x=o.useCallback(N=>{if(N.key==="Escape"){v(!1);return}(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),v(k=>!k))},[]);return t.jsxs("span",{ref:C,className:"category-icon__wrap",onPointerEnter:_,onPointerLeave:f,onFocus:_,onBlur:f,onKeyDown:x,role:"button",tabIndex:0,"aria-label":typeof y=="string"?d("common.descriptionFor",{name:y,defaultValue:`${y} \uC124\uBA85`}):void 0,"aria-haspopup":!!y,"aria-expanded":g,"data-tooltip-ignore":!0,children:[t.jsx(Ze,{icon:e,label:n,className:p,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:b,size:m}),g&&y&&t.jsx(vn,{anchorRect:w,text:typeof y=="string"?y:void 0,offset:8,onClose:A,className:"category-icon__tooltip",ariaLabel:typeof y=="string"?y:void 0})]})}let jn=null;function Ja(e){if(jn&&jn!==e)try{jn()}catch{}return jn=e,()=>{jn===e&&(jn=null)}}function Qa(e){if(jn===e){jn=null;try{e()}catch{}}}function B4(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}const s=a.sentences||a.items||[],i=r(Array.isArray(s)?s:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function k4(e,n){const[a,r]=o.useState(!1),[s,i]=o.useState(-1),[l,u]=o.useState({key:"",urls:[]}),d=o.useRef(null),c=o.useRef(!1),p=o.useRef(null),m=o.useRef(null),[C,g]=o.useState(!1),v=o.useRef([]),{previewCodes:b,previewBucket:y}=B4(e,n),w=`${b.join(",")}|${y??""}`,h=o.useMemo(()=>l.key===w?l.urls:[],[l,w]);o.useEffect(()=>{if(!b.length)return;let f=!1;return(async()=>{const A=[],x=[];for(const N of b)try{const k=qs(N,y);if(!k){A.push("");continue}let B=null;try{B=await Us(k)}catch{}if(!B)try{const E=await Gs(k);E&&(B=URL.createObjectURL(E),x.push(B))}catch{}A.push(B??"")}catch{A.push("")}f?x.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}):(v.current.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}),v.current=x,u({key:w,urls:A}))})(),()=>{f=!0}},[b.join(","),y]),o.useEffect(()=>()=>{v.current.forEach(f=>{try{URL.revokeObjectURL(f)}catch{}}),v.current=[]},[]);const _=o.useCallback(async f=>{if(f.stopPropagation(),f.preventDefault(),c.current){p.current&&Qa(p.current),c.current=!1;try{d.current?.pause()}catch{}r(!1),i(-1);return}if(!h.filter(Boolean).length)return;let A=null;const x=()=>{c.current=!1;try{d.current?.pause()}catch{}A?.()};p.current=x;const N=Ja(x);c.current=!0,r(!0);for(let k=0;k<h.length&&c.current;k++){const B=h[k];if(B){i(k);try{await new Promise((E,S)=>{A=E;const z=new Audio(B);d.current=z,z.onended=()=>E(),z.onerror=()=>S(),z.play().catch(S)})}catch{break}}}N(),p.current===x&&(p.current=null,c.current=!1,r(!1),i(-1))},[h]);return o.useEffect(()=>()=>{p.current&&Qa(p.current),c.current=!1;try{d.current?.pause()}catch{}d.current=null},[]),{playing:a,playingIndex:s,previewUrls:h,previewHover:C,setPreviewHover:g,previewBtnRef:m,handlePreview:_}}const N4=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 s=r;return s.sentence||s.text||s.context||s.question||s.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function lo(e){const{index:n,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:u,completedIds:d,selectedIds:c,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:C,hideCheckBadge:g=!1,showTypeLabel:v=!1,onComplete:b,onSelect:y,onMore:w,countLabelOverride:h,size:_="square"}=e||{},{t:f}=ye.useTranslation(),[A,x]=o.useState(!1),N=o.useRef(null),[k,B]=o.useState(!1);o.useEffect(()=>{N.current?.matches(":hover")&&B(!0)},[]);const{playing:E,playingIndex:S,previewUrls:z,previewHover:R,setPreviewHover:q,previewBtnRef:j,handlePreview:L}=k4(r,a?.key),O=o.useCallback(()=>{y?y():x(!0)},[y]),Z=o.useCallback(()=>x(!1),[]),te=o.useCallback(()=>B(!0),[]),W=o.useCallback(()=>B(!1),[]),U=o.useCallback(()=>q(!0),[q]),P=o.useCallback(()=>q(!1),[q]),[F,D]=o.useState(null);o.useLayoutEffect(()=>{R&&D(j.current?.getBoundingClientRect()??null)},[R,j]);const[H,M]=o.useState(null);o.useLayoutEffect(()=>{k&&!A&&m&&M(N.current?.getBoundingClientRect()??null)},[k,A,m]);const I=o.useCallback(Ee=>{Ee.target===Ee.currentTarget&&(Ee.key==="Enter"||Ee.key===" ")&&(Ee.preventDefault(),O())},[O]),$=r||null,K=o.useMemo(()=>{if(!m)return null;const Ee=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,ke=Ee&&Ee.length>0?Ee:N4($);return ke&&ke.length>0?ke:null},[m,p,$]),ne=o.useCallback(Ee=>{Ee.stopPropagation(),C?.()},[C]),X=o.useCallback(Ee=>Ee.stopPropagation(),[]),ae=o.useCallback(Ee=>{typeof b=="function"&&b(Ee)},[b]),ue=u||(d&&r?.id!=null?d.has(String(r.id)):!1),le=!ue&&(c!=null&&r?.id!=null?c.has(String(r.id)):!1);nl("speechear.popup.close",Z);const be=mi(),V=`${a?.label||""} ${n+1}`,ee=$?.title||$?.name||V;let oe=a?.icon,Be,Ce="",se="";try{const Ee=$?.category_0||$?.category_main_code||$?.category_main,ke=$?.category_1||$?.category_sub_code||$?.category_sub,Me=be.find(Ve=>Ve.key===Ee);Me?.icon&&(oe=Me.icon),!Be&&Me?.color&&(Be={"--t-item-fg":Me.color}),!Be&&$?.iconColor&&(Be={"--t-item-fg":$.iconColor}),Ce=Me?f(`topic.${Me.key}`,{defaultValue:Me.label||""}):"";try{const Ve=Me?.subs?.find(lt=>lt.key===ke);se=Ve?f(`topic.sub.${Ve.key}`,{defaultValue:Ve.label||""}):""}catch{}}catch{}const ge=se?`${Ce} / ${se}`:Ce||a?.label||ee,fe=Ee=>f("training.countQuestions",{n:Ee}),xe=Ee=>f("training.countSentences",{n:Ee});let $e="";try{if($)if(a?.key==="LISTEN_IN_NOISE"){let Ee=0;Array.isArray($.items)&&$.items.length>0?Ee=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0?Ee=$.sentences.length:$.sentences&&(Ee=1),$e=xe(Ee)}else if(a?.key==="SHORT_STORY"){let Ee=1;Array.isArray(r?.items)?Ee=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Ee=r.raw.items.length:Array.isArray($?.questions)?Ee=$.questions.length:Array.isArray($?.sentences)&&(Ee=$.sentences.length),$e=fe(Ee)}else if(a?.key==="LONG_STORY"){let Ee=1;if(Array.isArray($.items)&&$.items.length>0){const ke=$.items.reduce((Me,Ve)=>{const lt=Ve.questionItems;return Array.isArray(lt)?Me+lt.length:Array.isArray(Ve.questions)?Me+Ve.questions.length:Me},0);Ee=ke>0?ke:$.items.length}else Array.isArray($.questions)&&$.questions.length>0?Ee=$.questions.length:Array.isArray($.sentences)&&$.sentences.length>0&&(Ee=$.sentences.length);$e=fe(Ee)}else if(a?.key==="ORDERING_SENTENCE"){let Ee=1;Array.isArray($.items)&&$.items.length>0?Ee=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0&&(Ee=$.sentences.length),$e=xe(Ee)}else Array.isArray($.items)&&($e=$.items.length>0?fe($.items.length):"")}catch{}const Le=_==="row",Qe=_==="list"||Le,Ue=_==="compact",ze=_==="small",Ie=ze&&a?.key?VC().find(Ee=>Ee.key===a.key):void 0,st=Ie?hi[Ie.key]:void 0,Xe=Ie?st?f(`trainingType.${st}.title`,{defaultValue:Ie.label}):Ie.label??"":"",Je=!!v&&!!a?.label&&a.label!==String(ee)||ze&&!!Xe&&Xe!==String(ee);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:N,className:`training-block-button${Qe?" training-block-button--list":""}${Le?" training-block-button--row":""}${Ue?" training-block-button--compact":""}${ze?" training-block-button--small":""}${ue?" training-block-button--completed":""}${le?" training-block-button--selected":""}${Je&&!ze?" training-block-button--withType":""}${ze&&!Je?" training-block-button--no-type-label":""}`,onClick:O,onPointerEnter:te,onPointerLeave:W,role:"button",tabIndex:0,onKeyDown:I,"aria-label":typeof s=="string"?s:typeof ee=="string"?ee:void 0,title:!m&&p&&(Array.isArray(p)?p.filter(Boolean).join(`
853
- `):p)||void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[v&&a?.label&&a.label!==String(ee)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),ze&&Xe&&Xe!==String(ee)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:Xe}),t.jsx(Ml,{icon:oe,label:ee,tooltip:ge,wrapperStyle:Be,iconSize:ze||Ue?"small":"medium"}),!g&&(ue||le)&&!(C&&k)&&t.jsx(xt,{className:C?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":ue?f("training.completed","\uD6C8\uB828 \uC644\uB8CC"):f("training.selected","\uC120\uD0DD\uB428")}),C&&t.jsx(xt,{className:`training-block-button__remove${k?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":f("common.remove","\uC81C\uAC70"),onClick:ne}),t.jsx("div",{className:`training-block-button__title ${Ue?"body-3":ze?"body-3b":"h3"}`,children:String(ee)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const Ee=h!==void 0?h:$e;return Ee?t.jsx("div",{className:`training-block-button__count ${ze?"caption-2":"caption-1"}`,children:Ee}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(Ze,{icon:"chevron-right",label:f("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:ze?12:20})})]}),(Qe&&!Le||ze)&&z.length>0&&t.jsx("div",{ref:j,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:X,onPointerEnter:U,onPointerLeave:P,children:t.jsx(pe,{htmlType:"button",size:ze?28:32,type:"dot",icon:E?"pause":"play",variant:ze?"transparent-lightGray":"default",useBorder:!1,selected:E,ariaLabel:String(ee).trim()?E?f("training.stopFor",{name:ee,defaultValue:`${ee} \uC815\uC9C0`}):f("training.previewFor",{name:ee,defaultValue:`${ee} \uBBF8\uB9AC \uB4E3\uAE30`}):E?f("training.stop","\uC815\uC9C0"):f("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:L})})]}),w&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:Ee=>{Ee.stopPropagation(),w(Ee)},children:t.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(ee).trim()?f("common.moreFor",{name:ee}):f("common.more","\uB354\uBCF4\uAE30")})})]}),R&&t.jsx(vn,{anchorRect:F,text:E?f("training.stop","\uC815\uC9C0"):f("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),k&&!A&&m&&(K?t.jsx(Vn,{anchorRect:H,items:K,activeIndex:S,onClose:W}):$?.subTitle?t.jsx(vn,{anchorRect:H,text:$.subTitle,offset:8,onClose:W}):null),A&&l&&l({trainingData:$,typeKey:a?.key??"",onClose:Z,onComplete:ae,popupTitle:String(ee),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:oe,popupIconTooltip:String(ge),popupWrapperStyle:Be})]})}const Ll=200;function D4(e){return e.itemId?(KC()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function $l({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:s}=ye.useTranslation(),i=o.useMemo(()=>ZC(s).map(u=>({type:u,items:(e.items??[]).filter(d=>d.trainingType===u.key)})).filter(u=>u.items.length>0),[e.items,s]);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:u,items:d},c)=>[c>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${u.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:u.label})}),t.jsx("div",{className:"tooltip-training__items",children:d.map((p,m)=>{const C=D4(p);return C?t.jsx(lo,{index:m,type:u,trainingData:C,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},u.key)])})});return n?t.jsx(on,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const E4=200;function S4({icon:e,count:n,title:a,plan:r,tooltip:s=!0,className:i="",onClick:l,onMouseEnter:u,onMouseLeave:d}){const c=De("count-tile",l&&"count-tile--clickable",i),p=o.useRef(null),[m,C]=o.useState(null),g=o.useRef(null),v=o.useRef(null),b=!!(m&&r&&s),y=o.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null),v.current&&(clearTimeout(v.current),v.current=null)},[]),w=o.useCallback(()=>{y(),C(null)},[y]),h=o.useCallback(()=>{!s||!r||(y(),g.current=setTimeout(()=>{g.current=null,C(p.current?.getBoundingClientRect()??null)},Ll))},[s,r,y]),_=o.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null),!v.current&&(v.current=setTimeout(()=>{v.current=null,C(null)},E4))},[]);return o.useEffect(()=>()=>{y()},[y]),o.useEffect(()=>{(!s||!r)&&w()},[s,r,w]),o.useEffect(()=>{if(!b)return;const f=x=>x instanceof Element&&(p.current?.contains(x)||!!x.closest(".tooltip-training")),A=x=>{f(x.target)?y():_()};return document.addEventListener("pointerover",A,!0),()=>document.removeEventListener("pointerover",A,!0)},[b,y,_]),t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:p,className:c,onClick:l?f=>{w(),l(f)}:void 0,onKeyDown:l?f=>{f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),f.currentTarget.click())}:void 0,onPointerEnter:f=>{f.pointerType==="touch"||f.pointerType==="pen"?w():h()},onMouseEnter:u,onMouseLeave:f=>{_(),d?.(f)},role:l?"button":"img",tabIndex:l?0:void 0,"aria-label":`${a} ${n}`,children:[t.jsx(Ze,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]}),m&&r&&t.jsx($l,{plan:r,anchorRect:m,onClose:w})]})}let Sa=0,Rl="",uo="",ja=0;function Pl(){return Il(!1)}function j4(){return Il(!0)}function Il(e){const n=typeof document<"u";Sa===0&&n&&(Rl=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(ja===0&&(uo=document.body.style.paddingRight),ja++,document.body.style.paddingRight="0px"),Sa++;let a=!1;return()=>{a||(a=!0,Sa=Math.max(0,Sa-1),e&&n&&(ja=Math.max(0,ja-1),ja===0&&(uo?document.body.style.paddingRight=uo:document.body.style.removeProperty("padding-right"))),Sa===0&&n&&(document.body.style.overflow=Rl))}}function T4(){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 M4({open:e,onClose:n,ariaLabel:a,title:r,children:s,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:u=!0,showClose:d=!0,className:c,contentClassName:p}){const{t:m}=ye.useTranslation(),C=o.useId(),g=o.useRef(null),v=o.useCallback(()=>n(),[n]);o.useEffect(()=>{if(!e)return;const h=document.activeElement,_=Pl(),f=g.current;return qr(f,h),f?.focus(),()=>{_();const A=document.activeElement;(!A||A===document.body||f&&f.contains(A))&&Ur(h)?.focus?.()}},[e]);const b=o.useRef(v),y=o.useRef(u);o.useEffect(()=>{b.current=v,y.current=u}),o.useEffect(()=>{if(e)return zn(()=>{y.current&&b.current()})},[e]);const w=o.useRef(!1);return Vr(g,e),!e||typeof document>"u"?null:Xt.createPortal(t.jsx("div",{className:De("dialog",c),onPointerDown:l?h=>{w.current=h.target===h.currentTarget}:void 0,onMouseDown:h=>{h.target===h.currentTarget&&h.preventDefault()},onClick:l?h=>{const _=w.current;w.current=!1,_&&h.target===h.currentTarget&&v()}:void 0,children:t.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?C:void 0,tabIndex:-1,className:De("dialog__surface",`dialog__surface--${i}`,p),onClick:h=>h.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:C,className:"dialog__title h4b",children:r})}):null,d?t.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:v,children:t.jsx(T4,{})}):null,t.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function L4({columns:e,rows:n,rowKey:a,title:r,toolbar:s,empty:i,loading:l,caption:u,className:d=""}){const{t:c}=ye.useTranslation(),p=!l&&n.length===0;return t.jsxs("div",{className:De("board",d),children:[r||s?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),s?t.jsx("div",{className:"board__toolbar",children:s}):null]}):null,t.jsxs("table",{className:"board__table",children:[u?t.jsx("caption",{className:"board__caption",children:u}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(m=>t.jsx("th",{scope:"col",className:De("board__th",`board__cell--${m.headerAlign??m.align??"left"}`),style:m.width?{width:m.width}:void 0,children:m.header},m.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):p?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:i??c("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):n.map((m,C)=>t.jsx("tr",{className:"board__row",children:e.map(g=>t.jsx("td",{className:De("board__td",`board__cell--${g.align??"left"}`),children:g.render(m,C)},g.key))},a(m,C)))})]})]})}function $4({name:e,role:n,photo:a,media:r,credentials:s,size:i=190,className:l=""}){return t.jsxs("div",{className:De("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,s?.length?t.jsx("ul",{className:"person-card__credentials",children:s.map(u=>t.jsx("li",{children:u},u))}):null]})}function R4({groups:e,className:n=""}){return t.jsx("div",{className:De("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,s)=>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??""}-${s}`))})]},a.title))})}function P4({title:e,kind:n,body:a,badge:r,badgeSrc:s,footer:i,width:l,className:u=""}){const d=r??(s?t.jsx("img",{src:s,alt:""}):null);return t.jsxs("div",{className:De("publication-card",u),style:l?{width:l,flexShrink:0}:void 0,children:[d?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:d}):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 I4({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const s=xa(a);return o.useEffect(()=>{const i=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(i)},[r,s]),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 F4({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:s=2,tone:i="dark",className:l=""}){const u=s===1?"h1":"h2";return t.jsxs("div",{className:De("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(u,{className:"section-header__title",children:a}):null,r?t.jsx("div",{className:"section-header__description",children:r}):null]})}function O4({items:e,className:n=""}){return t.jsx("ul",{className:De("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 Fl(e){return typeof e=="string"?e:e.label}function Ol({value:e,onChange:n,suggestions:a,openOnFocus:r=!1,filterSuggestions:s,onSelectSuggestion:i,autoActiveFirst:l=!1}){const u=o.useId(),[d,c]=o.useState(!1),[p,m]=o.useState(-1),C=o.useRef(null),g=o.useMemo(()=>{if(!a.length)return[];const S=e??"";return s===!1?a:S?typeof s=="function"?s(a,S):a.filter(z=>Fl(z).toLowerCase().includes(S.toLowerCase())):r?a:[]},[a,e,r,s]),[v,b]=o.useState(!1),y=o.useRef([]),w=v&&g.length===0?y.current:g;o.useEffect(()=>{w.length&&(y.current=w)},[w]);const h=o.useCallback(()=>b(!0),[]),_=o.useCallback(()=>b(!1),[]),f=l?0:-1;o.useEffect(()=>{d||m(f)},[d,f]),o.useEffect(()=>()=>{C.current&&clearTimeout(C.current)},[]);const A=p<w.length?p:f<w.length?f:-1,x=o.useCallback(S=>{i?i(S):n?.(Fl(S)),c(!1)},[n,i]),N=o.useCallback(()=>c(!0),[]),k=o.useCallback(()=>{c(!0),m(f)},[f]),B=o.useCallback(()=>{C.current=setTimeout(()=>c(!1),120)},[]),E=o.useCallback(S=>{S.nativeEvent.isComposing||S.keyCode===229||(S.key==="ArrowDown"?(S.preventDefault(),c(!0),m(z=>Math.min(w.length-1,(z<w.length?z:f)+1))):S.key==="ArrowUp"?(S.preventDefault(),m(z=>Math.max(f,(z<w.length?z:w.length)-1))):S.key==="Enter"?A>=0&&x(w[A]):S.key==="Escape"&&d&&(S.preventDefault(),c(!1)))},[w,A,d,x,f]);return{listId:u,open:d,activeIdx:A,filtered:w,handleFocus:N,handleBlur:B,handleInput:k,handleKeyDown:E,handleSelect:x,handleCompositionStart:h,handleCompositionEnd:_}}const co=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Un(e){const{value:n,defaultValue:a,name:r,inputRef:s,onChange:i,label:l,ariaLabel:u,ariaDescribedBy:d,required:c,placeholder:p,ghostText:m,ghostHint:C,type:g="text",disabled:v=!1,readOnly:b=!1,error:y,helperText:w,maxLength:h,size:_=48,variant:f="input",fullWidth:A=!1,newline:x=!1,multiline:N=!1,rows:k=3,leftIcon:B,rightIcon:E,clearable:S=!1,list:z,showCount:R=!0,className:q="",onFocus:j,onBlur:L,onKeyDown:O,onEnter:Z,inputMode:te,autoComplete:W,autoFocus:U,suggestions:P,filterSuggestions:F,onSelectSuggestion:D,autoActiveFirst:H,openOnFocus:M=!1}=e,I=b||v?void 0:P,{t:$}=ye.useTranslation(),K=o.useId();!l&&!u&&an(`TextField:unnamed:${K}`,"[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 ne=`tf-${K}`,X=`tf-helper-${K}`,ae=o.useRef(null),ue=Ol({value:n??"",onChange:i,suggestions:I??[],openOnFocus:M,filterSuggestions:F,onSelectSuggestion:D,autoActiveFirst:H}),le=!!I&&ue.open&&ue.filtered.length>0,be=o.useRef(null),[V,ee]=o.useState(null),oe=o.useCallback(()=>{const ke=be.current;if(!ke||typeof window>"u")return;const Me=ke.getBoundingClientRect(),Ve=230,lt=window.innerHeight-Me.bottom<Ve+8&&Me.top>Ve+8;ee({position:"fixed",left:Me.left,width:Me.width,...lt?{bottom:window.innerHeight-Me.top+8}:{top:Me.bottom+8},zIndex:Aa(ke)})},[]);co(()=>{if(!le)return;oe();const ke=Me=>{const Ve=Me.target;Ve&&Ve.nodeType===1&&Ve.closest?.(".text-field__suggestions")||oe()};return window.addEventListener("scroll",ke,!0),window.addEventListener("resize",oe),()=>{window.removeEventListener("scroll",ke,!0),window.removeEventListener("resize",oe)}},[le,oe]);const Be=o.useCallback(ke=>{ae.current=ke,typeof s=="function"?s(ke):s&&(s.current=ke)},[s]),Ce=m?`${m}${C??$("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:p,se=n!==void 0,ge=se&&g==="password",[fe,xe]=o.useState((a??"").length),$e=se?(n??"").length:fe,Le=o.useRef(n);co(()=>{Le.current=n}),o.useEffect(()=>{const ke=ae.current;if(!ge||!ke)return;const Me=n??"";ke.value!==Me&&(ke.value=Me)},[ge,n]),o.useEffect(()=>{if(!x||!ae.current)return;const ke=ae.current;ke.style.height="",ke.scrollHeight>ke.clientHeight&&(ke.style.height=`${ke.scrollHeight}px`)},[n,fe,x]);const Qe=h!=null&&$e>h,Ue=_===32?16:20,ze=De("text-field",`text-field--s${_}`,f==="display"?"text-field--display":"",A?"text-field--full-width":"",v?"text-field--disabled":"",b?"text-field--readonly":"",y?"text-field--error":"",B?"text-field--has-left-icon":"",E||S?"text-field--has-right-icon":"",q),Ie={id:ne,...ge?{}:se?{value:n}:{defaultValue:a},ref:Be,placeholder:Ce,name:r,disabled:v,readOnly:b,autoFocus:U,maxLength:h,list:z,inputMode:te,autoComplete:W,"aria-label":!l&&u?u:void 0,"aria-required":c,"aria-invalid":!!y,"aria-describedby":[w||y?X:null,d].filter(Boolean).join(" ")||void 0,role:I?"combobox":void 0,"aria-autocomplete":I?"list":void 0,"aria-haspopup":I?"listbox":void 0,"aria-expanded":I?le:void 0,"aria-controls":le?ue.listId:void 0,"aria-activedescendant":le&&ue.activeIdx>=0?`${ue.listId}-option-${ue.activeIdx}`:void 0,onChange:ke=>{const Me=ke.target;se||xe(Me.value.length),i?.(Me.value),I&&ue.handleInput(),ge&&queueMicrotask(()=>{const Ve=Le.current??"";Me.value!==Ve&&(Me.value=Ve)})},onCompositionStart:I?ue.handleCompositionStart:void 0,onCompositionEnd:I?ue.handleCompositionEnd:void 0,onFocus:(ke=>{j?.(ke),I&&ue.handleFocus()}),onBlur:(ke=>{L?.(ke),I&&ue.handleBlur()}),onKeyDown:(ke=>{const Me=(ke.key==="Tab"&&!ke.shiftKey||ke.key===" ")&&!ke.nativeEvent.isComposing;if(m&&Me&&!b&&!v&&!(ke.currentTarget.value??"").trim()){ke.preventDefault();const Ve=ke.currentTarget;se||(Ve.value=m,xe(m.length)),i?.(m);return}I&&ke.key==="Enter"&&!ke.nativeEvent.isComposing&&ue.activeIdx>=0?ke.preventDefault():Z&&ke.key==="Enter"&&!ke.nativeEvent.isComposing&&(ke.preventDefault(),Z()),O?.(ke),I&&ue.handleKeyDown(ke)})},st=S&&!v&&!b&&$e>0,Xe=()=>x?t.jsx("textarea",{...Ie,className:"text-field__input text-field__input--auto body-2",rows:1}):N?t.jsx("textarea",{...Ie,className:"text-field__input text-field__input--textarea body-2",rows:k}):t.jsx("input",{...Ie,type:g,className:"text-field__input body-2"}),Je=f==="display"&&!x&&!N&&!!Ce,Ee=()=>t.jsxs(t.Fragment,{children:[Xe(),Je&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:Ce})]});return t.jsxs("div",{ref:be,className:ze,children:[l&&t.jsxs("label",{htmlFor:ne,className:"text-field__label caption-1",children:[l,c&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[B&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(Ze,{icon:B,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ue})}),Ee(),h!=null&&R&&t.jsxs("span",{className:`text-field__count caption-2${Qe?" text-field__count--over":""}`,children:[$e,"/",h]}),st&&t.jsx(pe,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:$("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:ke=>{ke.preventDefault()},onClick:()=>{!se&&ae.current&&(ae.current.value="",xe(0)),i?.("")},tabIndex:-1}),E&&!st&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(Ze,{icon:E,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ue})})]}),!!I&&t.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:ue.open&&(n??"").length>0&&ue.filtered.length===0?$("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),le&&(typeof document>"u"?null:Xt.createPortal(t.jsx("ul",{id:ue.listId,className:"text-field__suggestions",role:"listbox",style:V??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:ue.filtered.map((ke,Me)=>t.jsx("li",{id:`${ue.listId}-option-${Me}`,role:"option","aria-selected":Me===ue.activeIdx,className:`text-field__suggestion body-2${Me===ue.activeIdx?" is-active":""}`,onMouseDown:Ve=>Ve.preventDefault(),onClick:()=>{ue.handleSelect(ke),ae.current?.focus()},children:typeof ke=="string"?ke:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-field__suggestion-label",children:ke.label}),ke.hint&&t.jsx("span",{className:"text-field__suggestion-hint caption-1",children:ke.hint})]})},typeof ke=="string"?`${ke}-${Me}`:ke.id))}),document.body)),(w||y)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:X,className:"text-field__helper caption-1",role:y?"alert":void 0,children:y||w})})]})}function ln({options:e,value:n,onChange:a,placeholder:r,disabled:s=!1,block:i=!1,size:l=48,error:u=!1,className:d="",ariaLabel:c,ariaDescribedBy:p}){const{t:m}=ye.useTranslation(),C=r??m("dropdown.placeholder","\uC120\uD0DD"),g=o.useId(),v=o.useId(),b=o.useRef(null),y=o.useCallback((j,L)=>{const O=window.innerHeight-j.bottom<260&&j.top>260;return{position:"fixed",left:j.left,minWidth:j.width,...O?{bottom:window.innerHeight-j.top+6}:{top:j.bottom+6},zIndex:Aa(L)}},[]),{open:w,setOpen:h,toggle:_,style:f,triggerRef:A,menuRef:x}=Ba({computeStyle:y}),[N,k]=o.useState(-1),B=o.useCallback(()=>k(-1),[]),E=e.find(j=>j.value===n);o.useEffect(()=>{if(w){const j=e.findIndex(L=>L.value===n);k(j>=0?j:e.length?0:-1),requestAnimationFrame(()=>{const L=x.current;if(!L)return;const O=L.querySelectorAll(".dropdown__option")[j];O&&(L.scrollTop=Math.max(0,O.offsetTop-L.clientHeight/2+O.clientHeight/2))})}},[w]),o.useEffect(()=>{w&&k(j=>{if(j>=0&&j<e.length)return j;const L=e.findIndex(O=>O.value===n);return L>=0?L:e.length?0:-1})},[w,e.length]);const S=o.useCallback(()=>{s||_()},[s,_]),z=o.useCallback(j=>{j.disabled||s||(j.value!==n&&a?.(j.value),h(!1))},[a,h,s,n]);o.useEffect(()=>{s&&h(!1)},[s,h]);const R=o.useCallback(j=>{if(!s){if(!w){(j.key==="Enter"||j.key===" "||j.key==="ArrowDown")&&(j.preventDefault(),h(!0));return}if(j.key==="Escape"){j.preventDefault(),h(!1);return}j.key==="ArrowDown"?(j.preventDefault(),k(L=>{let O=L+1;for(;O<e.length&&e[O].disabled;)O++;return O<e.length?O:L})):j.key==="ArrowUp"?(j.preventDefault(),k(L=>{let O=L-1;for(;O>=0&&e[O].disabled;)O--;return O>=0?O:L})):(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),e[N]?z(e[N]):h(!1))}},[s,w,e,N,z,h]),q=w?t.jsx("div",{ref:x,id:g,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:f,onMouseLeave:B,onMouseDown:j=>j.preventDefault(),children:e.map((j,L)=>t.jsxs("button",{id:`${g}-option-${L}`,type:"button",role:"option","aria-selected":j.value===n,className:De("dropdown__option body-2",j.value===n?"dropdown__option--active":"",L===N?"dropdown__option--active":"",j.disabled?"dropdown__option--disabled":""),onMouseDown:O=>O.preventDefault(),onClick:()=>z(j),onMouseEnter:()=>k(L),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:b,className:De("dropdown",`dropdown--s${l}`,w?"dropdown--open":"",i?"dropdown--block":"",u?"dropdown--error":"",d),onKeyDown:R,children:[t.jsxs("button",{ref:A,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":w,"aria-controls":w?g:void 0,"aria-activedescendant":w&&N>=0?`${g}-option-${N}`:void 0,"aria-label":c,"aria-describedby":[c&&E?v:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:S,onBlur:j=>{w&&!x.current?.contains(j.relatedTarget)&&h(!1)},children:[t.jsx("span",{id:v,className:`dropdown__trigger-label body-2${E?"":" dropdown__trigger-label--placeholder"}`,children:E?E.label:C}),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"&&Xt.createPortal(q,b.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function er({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:s,className:i=""}){const{t:l}=ye.useTranslation(),u=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),d=s??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),c=Math.max(1,n),p=()=>a(Math.max(1,Math.min(c,e-1))),m=()=>a(Math.min(c,e+1));return t.jsxs("div",{className:De("pagination",i),children:[t.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,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),c)," / ",c]}),t.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:d,disabled:e>=n,onClick:m})]})}const Ta=new Map;function An(e){const{t:n}=ye.useTranslation(),{options:a=[],value:r=a.find(f=>!f.disabled)?.key??a[0]?.key,onChange:s=f=>{},className:i="",size:l=40,shape:u="pill",useBG:d=!0,fullWidth:c=!1,minButtonWidth:p,ariaLabel:m}=e||{},C=o.useRef(null),g=a.filter(f=>!f.disabled),v=o.useId(),b=a.map(f=>f.key).join("\xB7");o.useEffect(()=>{if(!(!br||m!=null&&m!=="")){if(Ta.set(v,b||"(\uBCF4\uAE30 \uC5C6\uC74C)"),Ta.size>1){const f=[...Ta.values()].sort();an(`segmented-control-unnamed:${f.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${Ta.size} \uAC1C \uC11C \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB0AD\uB3C5\uAE30\uB294 \uBAA8\uB450 "\uC120\uD0DD \uD0ED" \uC73C\uB85C \uC77D\uC5B4 \uC5B4\uB290 \uAC83\uC774 \uBB34\uC5C7\uC778\uC9C0 \uAC00\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. ariaLabel \uC744 \uC8FC\uC138\uC694. \uC9C0\uAE08 \uC120 \uAC83(\uBCF4\uAE30 \uC774\uB984\uC73C\uB85C \uC801\uC74C): ${f.join(" / ")}`)}return()=>{Ta.delete(v)}}},[m,b,v]);const y=f=>{if(!g.length)return;const A=Math.max(0,g.findIndex(N=>N.key===r)),x=f==="first"?g[0]:f==="last"?g[g.length-1]:g[(A+f+g.length)%g.length];x&&(s(x.key),Array.from(C.current?.querySelectorAll("[data-segkey]")??[]).find(N=>N.dataset.segkey===x.key)?.focus())},w=f=>{switch(f.key){case"ArrowRight":case"ArrowDown":y(1);break;case"ArrowLeft":case"ArrowUp":y(-1);break;case"Home":y("first");break;case"End":y("last");break;default:return}f.preventDefault()},h=f=>{const A=x=>typeof x=="string"||typeof x=="number";if(!(!A(f.label)||f.count==null||f.count===!1||!A(f.count)))return`${f.label}, ${f.count}`},_=g.some(f=>f.key===r)?r:g[0]?.key;return t.jsx("div",{ref:C,onKeyDown:w,className:De("segmented-control",`segmented-control--${u}`,`segmented-control--${l}`,c&&"segmented-control--full",!d&&"segmented-control--no-bg",p!=null&&"segmented-control--min",i),style:p!=null?{"--segmented-min-button-w":`${p}px`}:void 0,role:"radiogroup","aria-label":m??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(f=>t.jsx(pe,{htmlType:"button",role:"radio","aria-checked":f.key===r,"data-segkey":f.key,tabIndex:f.key===_?0:-1,label:f.label,count:f.count,ariaLabel:h(f),disabled:f.disabled,className:f.key===r?"is-selected":"",onClick:()=>{f.disabled||s(f.key)},size:l,shape:u,useBorder:!1,useBG:!1},f.key))})}function po({count:e,search:n,segment:a,filters:r,pageSize:s,pagination:i,actions:l,className:u}){const{t:d}=ye.useTranslation(),c=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??d("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(n||r?.length||s||i||l);return t.jsxs("div",{className:De("toolbar",u),children:[t.jsxs("div",{className:"toolbar__row",children:[c,a&&(Array.isArray(a)?a:[a]).map((m,C)=>t.jsx(An,{size:40,...m},m.ariaLabel??C))]}),p&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(Un,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??d("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??d("common.search","\uAC80\uC0C9"),autoFocus:n.autoFocus,clearable:!0}),r?.map((m,C)=>t.jsx(ln,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},C)),(s||i)&&t.jsxs("div",{className:"toolbar__pager",children:[s&&t.jsx(ln,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??d("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&t.jsx(er,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel})]}),l]})})]})}function Hl(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Hl).join(""):""}function H4(e){let n=e.replace(/\r\n/g,`
851
+ 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"},pg={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"}}},mg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},hg={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},Cg={answer:"Answer",distractor:"Distractor"},fg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},gg={clearAriaLabel:"Clear input"},bg={ariaLabel:"Select tab"},yg={ariaLabel:"Tabs"},vg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},xg={ariaLabel:"User avatar"},_g={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"}},wg={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"}},Ag={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)"}},Bg={manage:{unit:"item(s)"}},kg={cancelLabel:"Cancel"},Ng={subtitle:"Select a topic to start listening practice."},Dg={steps:"Step {{current}} of {{total}}"},Eg={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"},Sg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},jg={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}}"},Tg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Mg={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Lg={previewRegion:"Report preview \u2014 scrollable sideways"},$g={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Rg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Pg={clearSelection:"Clear selection"},Ig={showResult:"Show {{type}} result"},Fg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Og={loading:"Loading"},Hg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},zg={ariaLabel:"Breadcrumb"},Vg={empty:"No items yet."},Wg={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},qg={common:S2,calendar:j2,passCard:T2,searchField:M2,rating:L2,colorPicker:$2,dropdown:R2,accordion:P2,header:I2,nav:F2,settings:O2,usage:H2,account:z2,help:V2,training:W2,trainingSettings:q2,customers:U2,payment:G2,coupons:K2,visits:Y2,company:Z2,trainingType:X2,myWordTraining:J2,myWordTable:Q2,keyWords:eg,wordTable:tg,wordSearch:ng,wordPrint:ag,topic:rg,accessLinkManager:og,login:sg,device:ig,manager:lg,wordPairs:ug,game:cg,footer:dg,landing:pg,date:mg,trainingSetPage:hg,wordTrainingPreview:Cg,wordData:fg,textField:gg,segmentedControl:bg,tabs:yg,fileUpload:vg,avatar:xg,myHomework:_g,trainingStatus:wg,store:Ag,homework:Bg,inquiry:kg,trainingPlanRun:Ng,progress:Dg,trainingMiss:Eg,table:Sg,wordScore:jg,topBanner:Tg,datePicker:Mg,report:Lg,tooltip:$g,phonemeProfile:Rg,bulkBar:Pg,debug:Ig,badge:Fg,loader:Og,soundCompass:Hg,breadcrumb:zg,board:Vg,promoBannerBg:Wg};const Ug=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Zr="ko",Gg="ihab_display_language";function Ai(){if(typeof window>"u")return Zr;try{const e=localStorage.getItem(Gg);if(e&&Ug.some(n=>n.code===e))return e}catch{}return Zr}function Bi(e){try{document.documentElement.lang=e}catch{}}St.on("languageChanged",Bi),Bi(Ai()),St.use(ye.initReactI18next).init({resources:{ko:{translation:E2},en:{translation:qg}},lng:Ai(),fallbackLng:Zr,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function vt(e,n,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return n(s,e),()=>a(s)},[e,n,a]),r}const _a={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},Xr=new WeakMap;function Jr(e){if(e)return Xr.get(e)}function It(e,n){e&&(e.style.setProperty(_a.title,n.title),e.style.setProperty(_a.description,n.description),Xr.set(e,n))}function Ft(e){e&&(e.style.removeProperty(_a.title),e.style.removeProperty(_a.description),Xr.delete(e))}const ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Ni(){const e=vt(ki,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Di={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Ei(){const e=vt(Di,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Si={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function ji(){const e=vt(Si,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Ti={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Mi(){const e=vt(Ti,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Li={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function $i(){const e=vt(Li,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Ri={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Pi(){const e=vt(Ri,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Ii={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Fi(){const e=vt(Ii,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Oi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Hi(){const e=vt(Oi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const zi={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Vi(){const e=vt(zi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Wi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function qi(){const e=vt(Wi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Ui={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Gi(){const e=vt(Ui,It,Ft);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 Ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Yi(){const e=vt(Ki,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Zi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Xi(){const e=vt(Zi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Ji={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Qi(){const e=vt(Ji,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Kt=(e,n,a)=>({key:e,get label(){return St.t(`promoBannerBg.${e}`,n)},textTone:a}),Kg=[Kt("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("soft","\uC18C\uD504\uD2B8","dark"),Kt("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Kt("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Kt("warm","\uC6DC(\uAC15\uC870)","dark"),Kt("dark","\uB2E4\uD06C","light"),Kt("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Kt("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Kt("outline","\uC544\uC6C3\uB77C\uC778","dark"),Kt("success","\uC131\uACF5/\uC644\uB8CC","light"),Kt("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Kt("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],el={main:Ni,soft:Ei,sub:ji,deep:Mi,softSub:$i,warm:Pi,dark:Fi,radial:Hi,diagonal:Vi,dots:qi,outline:Gi,success:Yi,naver:Xi,instagram:Qi};function tl({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:i=1.4}={}){const l=_=>Math.max(a,Math.min(r,Number(_))),u=_=>{try{const f=localStorage.getItem(_),A=f?Number(f):1;return Number.isFinite(A)?l(A):l(1)}catch{return l(1)}},[d,c]=o.useState(()=>u(e)),[p,m]=o.useState(e);p!==e&&(m(e),c(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(d))}catch{}},[e,d]);const C=_=>{c(typeof _=="function"?f=>l(_(f)):l(_))},g=()=>C(_=>+(_+s).toFixed(6)),v=()=>C(_=>+(_-s).toFixed(6)),b=d<r-Number.EPSILON,y=d>a+Number.EPSILON,w=Math.round(n*d),h=Math.round(w*i);return{scale:d,setScale:C,increase:g,decrease:v,canIncrease:b,canDecrease:y,fontSize:w,lineHeight:h}}function nl(e,n){const a=xa(n);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Qr=" \xB7 ",al=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Qr)?e.split(Qr).pop()??e:e})(),Yg=o.createContext(!1),Wn=[];let rl=null;function Zg(e){const n=o.useContext(Yg);o.useEffect(()=>{if(n||typeof e!="string"||!e)return;Wn.length===0&&(rl=document.title);const a={text:al?`${e}${Qr}${al}`:e};return Wn.push(a),document.title=a.text,()=>{const r=Wn.lastIndexOf(a);r>=0&&Wn.splice(r,1),document.title=Wn.length?Wn[Wn.length-1].text:rl??document.title}},[e,n])}const ol=[{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"}],Xg=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function aa(e,n){return Xg().compare(e,n)}const Ya=new Map;function Jg(e){const n=Ya.get(e);if(n)return n;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let i=r.exec(e);i;i=r.exec(e)){let l=i.index,u=i[0];u[0]==="-"&&l>0&&!/\s/.test(e[l-1])&&(l+=1,u=u.slice(1)),l>s&&a.push(e.slice(s,l)),a.push(Number(u)),s=i.index+i[0].length}return s<e.length&&a.push(e.slice(s)),Ya.size>5e3&&Ya.clear(),Ya.set(e,a),a}function Qg(e){if(!/^[\d\s-]+$/.test(e))return null;const n=e.replace(/\D/g,"");return n.length<9||n.length>11?null:n[0]==="0"||n[0]==="1"&&e!==n?n:null}function eb(e,n){const a=c=>c==null||typeof c=="number"&&Number.isNaN(c)?"":String(c).trim(),r=a(e),s=a(n);if(r===s)return 0;const i=(c,p)=>{if(typeof c=="number"&&!Number.isNaN(c))return[c];const m=Qg(p);return m!==null?[m]:Jg(p)},l=i(e,r),u=i(n,s),d=Math.min(l.length,u.length);for(let c=0;c<d;c++){const p=l[c],m=u[c];if(typeof p=="number"&&typeof m=="number"){if(p!==m)return p-m;continue}if(typeof p=="number")return-1;if(typeof m=="number")return 1;const C=aa(p,m);if(C!==0)return C}return l.length!==u.length?l.length-u.length:aa(r,s)}const sl=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function eo(e,n,a){const r=sl(e),s=sl(n);if(r||s)return r===s?0:r?1:-1;const i=eb(e,n);return a?i:-i}function tb(e,n,a){const{t:r}=ye.useTranslation(),[s,i]=o.useState(()=>{const v=a?.initialPageSize;return v&&ol.some(b=>b.value===v)?v:"25"}),[l,u]=o.useState(1),[d,c]=o.useState(n);Object.is(d,n)||(c(n),l!==1&&u(1));const p=o.useMemo(()=>ol.map(v=>({...v,label:r("visits.showN",{n:v.value})})),[r]),m=o.useCallback(v=>{i(v),u(1)},[]),C=Math.max(1,Math.ceil(e.length/Number(s)));(l>C||l<1||!Number.isFinite(l))&&u(Math.min(Math.max(1,Number.isFinite(l)?l:1),C));const g=Math.min(Math.max(1,Number.isFinite(l)?l:1),C);return{pageRows:o.useMemo(()=>e.slice((g-1)*Number(s),g*Number(s)),[e,g,s]),pageSizeProps:{options:p,value:s,onChange:m},paginationProps:{page:g,total:C,onChange:u},setPage:u}}function nb(e){const[n,a]=o.useState(null),r=o.useRef(n),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const i=o.useCallback(d=>{const c=r.current,p=c?.key===d?{key:d,asc:!c.asc}:{key:d,asc:!0};r.current=p,a(p),s.current?.(p)},[]),l=o.useCallback((d,c)=>({label:d,sortDir:n?.key===c?n.asc?"asc":"desc":null,onClick:()=>i(c)}),[n,i]),u=o.useCallback((d,c)=>{if(!n)return d;const{key:p,asc:m}=n;return[...d].sort((C,g)=>eo(c(C,p),c(g,p),m))},[n]);return{\uC815\uB82C:n,\uCE78:l,sortRows:u}}const sn="\uC804\uCCB4",ab=new Map;try{St.store?.on?.("added",()=>ab.clear())}catch{}Object.fromEntries(Object.entries(pC).map(([e,{nucleus:n}])=>[e,n]));const rb={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"})},ob={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"})},sb={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 ib(e,n){if("place"in n)return rb[n.place](e);const a=ob[n.vowel](e);return n.glide?`${a} \xB7 ${sb[n.glide](e)}`:a}const lb=(e,{defaultValue:n})=>n,il=(e,n)=>({jamos:e,phonetic:n,tooltip:ib(lb,n)}),xn=(e,n)=>n.map(a=>il([a],{place:e})),jt=(e,n,a)=>il([...e],a?{vowel:n,glide:a}:{vowel:n}),to={cho:[xn("labial",["\u3142","\u3143","\u314D","\u3141"]),xn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),xn("alveolar",["\u3145","\u3146"]),xn("palatal",["\u3148","\u3149","\u314A"]),xn("velar",["\u3131","\u3132","\u314B"]),xn("glottal",["\u314E"])],jung:[[jt("\u3163","frontHigh"),jt("\u315F","frontHigh","w"),jt("\u3162","frontHigh","velar")],[jt("\u3161","backHighUnrounded")],[jt("\u315C","backHighRounded"),jt("\u3160","backHighRounded","j")],[jt("\u3154\u3150","frontMid"),jt("\u3156\u3152","frontMid","j"),jt("\u3159\u315A\u315E","frontMid","w")],[jt("\u3153","backMidUnrounded"),jt("\u3155","backMidUnrounded","j"),jt("\u315D","backMidUnrounded","w")],[jt("\u3157","backMidRounded"),jt("\u315B","backMidRounded","j")],[jt("\u314F","low"),jt("\u3151","low","j"),jt("\u3158","low","w")]],jong:[xn("labial",["\u3142","\u3141"]),xn("alveolar",["\u3137","\u3134","\u3139"]),xn("velar",["\u3131","\u3147"])]},ub=e=>e===cb?[]:Array.from(e),cb="__NO_CODA__",no=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),ll={cho:no(to.cho),jung:no(to.jung),jong:no(to.jong)};ll.jung.flat().forEach(({v:e})=>{for(const n of ub(e));}),new Set(ll.cho.flat().map(e=>e.v));function db(e,n=!0){const a=xa(e);o.useEffect(()=>{if(n)return zn(()=>{a.current?.()})},[n,a])}function wa(){const[e,n]=o.useState(null),a=o.useCallback(i=>n(i.getBoundingClientRect()),[]),r=o.useCallback(()=>n(null),[]),s=o.useCallback(i=>{const l=i.getBoundingClientRect();n(u=>u?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function pb(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),i=o.useRef(null);o.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const l=o.useCallback((d,c)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(d),s(c)},e)},[e]),u=o.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),s(null)},[]);return{payload:n,anchorRect:r,openAfterDelay:l,close:u}}function ul(e="warning"){const[n,a]=o.useState(""),[r,s]=o.useState(e),[i,l]=o.useState(0),u=o.useCallback((m,C)=>{s(C),a(m),l(g=>g+1)},[]),d=o.useCallback(m=>u(m,"warning"),[u]),c=o.useCallback(m=>u(m,"normal"),[u]),p=o.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:i,showToast:u,showWarning:d,showNormal:c,clearToast:p}}function Aa(e){let n=0;if(e&&typeof window<"u"&&typeof window.getComputedStyle=="function")for(let a=e;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){const r=parseInt(window.getComputedStyle(a).zIndex,10);!Number.isNaN(r)&&r>n&&(n=r)}return n>0?`max(var(--z-menu, 1500), ${n+1})`:"var(--z-menu, 1500)"}function Ba({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,i]=o.useState(!1),[l,u]=o.useState({}),d=o.useRef(null),c=o.useRef(null),p=o.useCallback(()=>{d.current&&u(e(d.current.getBoundingClientRect(),d.current))},[e]);o.useEffect(()=>{if(!s)return;p();let g=c.current?.offsetHeight??0;g>0&&p();let v=0,b=null;typeof ResizeObserver<"u"&&c.current&&(b=new ResizeObserver(()=>{const A=c.current?.offsetHeight??0;if(A!==g){if(g=A,++v>4){b?.disconnect(),b=null;return}p()}}),b.observe(c.current));const y=A=>{const x=A.target;r&&x.closest?.(r)||d.current?.contains(x)||c.current?.contains(x)||i(!1)};document.addEventListener("mousedown",y),document.addEventListener("pointerdown",y);const w=A=>{c.current?.contains(A.target)||(n==="reposition"?p():n==="close"&&i(!1))};n!=="ignore"&&window.addEventListener("scroll",w,!0);const h=()=>{a==="reposition"?p():a==="close"&&i(!1)};let _=null;const f=()=>{h(),_&&clearTimeout(_),_=setTimeout(()=>{_=null,a==="reposition"&&p()},250)};return a!=="ignore"&&(window.addEventListener("resize",h),window.addEventListener("orientationchange",f)),()=>{b?.disconnect(),document.removeEventListener("mousedown",y),document.removeEventListener("pointerdown",y),n!=="ignore"&&window.removeEventListener("scroll",w,!0),a!=="ignore"&&(window.removeEventListener("resize",h),window.removeEventListener("orientationchange",f)),_&&clearTimeout(_)}},[s,p,n,a,r]),o.useEffect(()=>{if(s)return zn(()=>i(!1))},[s]);const m=o.useCallback(()=>i(g=>!g),[]),C=o.useCallback(()=>i(!1),[]);return{open:s,setOpen:i,toggle:m,close:C,style:l,triggerRef:d,menuRef:c}}function mb(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:i=1100,feedbackMs:l=1500}={}){const[u,d]=o.useState([]),[c,p]=o.useState(0),[m,C]=o.useState("idle"),[g,v]=o.useState(null),[b,y]=o.useState([]),[w,h]=o.useState(null),[_,f]=o.useState(0),A=o.useRef(0),x=o.useCallback(P=>{A.current=typeof P=="function"?P(A.current):P,f(A.current)},[]),N=o.useRef(r),k=o.useRef(s);o.useEffect(()=>{N.current=r,k.current=s},[r,s]);const B=o.useRef([]),E=()=>{B.current.forEach(clearTimeout),B.current=[]},S=(P,F)=>{B.current.push(setTimeout(F,P))};o.useEffect(()=>()=>E(),[]);const z=u[c]?.id??null,R=o.useRef(null),q=o.useCallback(()=>{E(),C("playing"),y([]),h(null),x(0);let P=0;e.forEach((F,D)=>{S(P,()=>{p(D),v(F.id),N.current?.(F)}),S(P+1e3,()=>{v(null),y(H=>[...H,F.id])}),P+=1300}),S(P,()=>{C("done"),k.current?.({score:0,total:e.length})})},[e,x]),j=o.useCallback((P,F)=>{if(F>=P.length){C("done"),k.current?.({score:A.current,total:P.length});return}R.current=null,p(F),h(null),C("playing"),v(P[F].id),N.current?.(P[F]),S(i,()=>{v(null),C("waiting")})},[i]),L=o.useCallback(()=>{E();const P=ya(e);d(P),x(0),y([]),j(P,0)},[e,j,x]),O=o.useCallback(()=>{n==="playback"?(d(e),q()):L()},[n,e,q,L]),Z=o.useCallback(()=>{E(),C("idle"),v(null),y([]),h(null),p(0),x(0),d([])},[x]),ee=e.map(P=>P.id).join("|");o.useEffect(()=>(a?O():Z(),()=>E()),[n,ee,a]);const W=o.useCallback(P=>{m!=="waiting"||n==="playback"||R.current===c||(R.current=c,h(P),P===u[c]?.id&&x(F=>F+1),n==="exam"?(C("playing"),S(400,()=>j(u,c+1))):(C("feedback"),S(l,()=>j(u,c+1))))},[m,n,u,c,j,l,x]),U=n==="playback"?e.length:u.length;return{bind:{activeSpeakerId:g,playedIds:b,selectedId:w,answerId:z,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:W},index:c,total:U,score:_,phase:m,done:m==="done",start:O,reset:Z}}function hb({title:e,description:n,actionLabel:a,onAction:r,bg:s,color:i,size:l="medium",actionVariant:u,titleColor:d,descriptionColor:c,className:p=""}){const m=s??i??"main",C=o.useRef(null),[g,v]=o.useState("main"),b=tn("(max-width: 767px)"),y=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const _=C.current;if(!_)return;const f=Jr(_),A=(x,N,k)=>{if(k!==void 0)_.style.setProperty(N,k),y.current[x]=!0;else if(y.current[x]){const B=f?.[x];B?_.style.setProperty(N,B):_.style.removeProperty(N),y.current[x]=!1}};A("title","--promo-banner-bg-title",d),A("description","--promo-banner-bg-description",c)},[d,c,m]),o.useLayoutEffect(()=>{const _=C.current;if(!_)return;const f=Jr(_);v(f?.actionVariant??"main")},[m]);const w=Ne("promo-banner",`promo-banner--${l}`,p),h=el[m];return t.jsxs("div",{ref:C,className:w,role:"note",children:[t.jsx(h,{}),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(pe,{htmlType:"button",size:40,variant:u??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...b?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function Cb({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":s}){const{t:i}=ye.useTranslation(),l=s??i("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),d=u.length,[c,p]=o.useState(0),[m,C]=o.useState(!1),[g,v]=o.useState(!1),[b,y]=o.useState(!1),w=o.useRef(null),h=o.useRef(null),_=o.useRef(null),f=Gr(),A=m||g||b,x=d>0?Math.min(c,d-1):0;o.useEffect(()=>{if(d<2||n<=0||A||f)return;const k=window.setInterval(()=>p(B=>(Math.min(B,d-1)+1)%d),n);return()=>window.clearInterval(k)},[d,n,A,f]);const N=k=>{h.current!=null&&window.clearTimeout(h.current),h.current=window.setTimeout(()=>{h.current=null,y(!1)},k)};return o.useEffect(()=>()=>{h.current!=null&&window.clearTimeout(h.current)},[]),o.useEffect(()=>{if(!b)return;const k=B=>{B.pointerType==="touch"&&(_.current&&_.current.contains(B.target)||(h.current!=null&&(window.clearTimeout(h.current),h.current=null),y(!1)))};return document.addEventListener("pointerdown",k,!0),()=>document.removeEventListener("pointerdown",k,!0)},[b]),d===0?null:t.jsxs("section",{ref:_,className:Ne("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:k=>{w.current=k.pointerType},onPointerDown:k=>{w.current=k.pointerType,k.pointerType==="touch"&&(h.current!=null&&(window.clearTimeout(h.current),h.current=null),y(!0))},onPointerUp:k=>{k.pointerType==="touch"&&N(5e3)},onPointerCancel:k=>{k.pointerType==="touch"&&N(5e3)},onMouseEnter:()=>{w.current!=="touch"&&C(!0)},onMouseLeave:()=>C(!1),onFocus:k=>{let B=!0;try{B=k.target.matches(":focus-visible")}catch{B=!0}v(B)},onBlur:k=>{k.currentTarget.contains(k.relatedTarget)||v(!1)},children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${x*100}%)`},children:u.map((k,B)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":B!==x,...B!==x?{inert:!0}:{},children:k},B))})}),d>1&&t.jsx("div",{className:`top-banner__dots${(a?.[x]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((k,B)=>t.jsx("button",{type:"button",className:`top-banner__dot${B===x?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:d,index:B+1,defaultValue:`${d}\uAC1C \uC911 ${B+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":B===x,onClick:()=>p(B)},B))})]})}function fb({title:e,body:n,open:a=!1,onToggle:r,avatar:s,titleClassName:i="body-2",bodyClassName:l="body-2",className:u=""}){const{t:d}=ye.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.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:c=>{if(c.key==="Enter"||c.key===" ")c.preventDefault(),r?.();else if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault();const p=c.currentTarget.closest('[role="list"]');if(!p)return;const m=Array.from(p.querySelectorAll("[data-accordion-header]")),C=m.indexOf(c.currentTarget);(c.key==="ArrowDown"?m[C+1]:m[C-1])?.focus()}},children:[s&&t.jsx("div",{className:"accordion-item__avatar",children:s}),t.jsx("div",{className:`accordion-item__title ${i}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(Ze,{icon:a?"chevron-up":"chevron-down",label:a?d("accordion.collapse","\uC811\uAE30"):d("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function gb({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:s}){const[i,l]=o.useState({index:n}),u=(d,c)=>i.id!=null&&d.id!=null?d.id===i.id:i.id==null&&c===i.index;return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((d,c)=>t.jsx(fb,{title:d.title,body:d.body,avatar:d.avatar,open:u(d,c),onToggle:()=>l(u(d,c)?{index:-1}:{index:c,id:d.id}),bodyClassName:s},d.id??c))})}function bb(){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 yb(){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 vb(){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 xt(e){const{t:n}=ye.useTranslation(),{type:a="bar",size:r,className:s="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:A,number:x,position:N="top-right",onClick:k,animate:B=!1}=e,E=A??"check",S=x!==void 0?"number":E,z=typeof r=="number"?r:32,R=Ne("circle-badge",`circle-badge--${S}`,`circle-badge--${N}`,`circle-badge--${z}`,B?"circle-badge--animate":"",k?"circle-badge--clickable":"",s),q=x!==void 0?n("badge.nthSelected",{n:x,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")}[E];return t.jsxs("span",{className:R,onClick:k,onKeyDown:k?j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.currentTarget.click())}:void 0,"aria-label":l?void 0:i??q,"aria-hidden":l||void 0,role:k?"button":l?void 0:"img",tabIndex:k?0:void 0,children:[x!==void 0&&x,x===void 0&&E==="check"&&t.jsx(bb,{}),x===void 0&&E==="remove"&&t.jsx(yb,{}),x===void 0&&E==="minus"&&t.jsx(vb,{})]})}const{label:u,children:d,variant:c="default",fill:p="filled",minWidth:m,iconLeft:C,iconRight:g,color:v}=e,b=typeof r=="number"?"medium":r??"medium",y={small:"caption-2b",medium:"body-3b",large:"body-2b"}[b]??"body-2b",w={small:12,medium:14,large:16}[b]??14,h=Ne("badge",`badge--${c}`,`badge--${b}`,p!=="filled"?`badge--${p}`:"",y,s),_=v?.startsWith("--")?`var(${v})`:v,f=m!==void 0||_?{...m!==void 0?{minWidth:typeof m=="number"?`${m}px`:m}:{},..._?{"--badge-color":_}:{}}:void 0;return t.jsxs("span",{className:h,style:f,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[C&&t.jsx(Ze,{icon:C,size:w,className:"badge__icon"}),u??d,g&&t.jsx(Ze,{icon:g,size:w,className:"badge__icon"})]})}function ka({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:s}=ye.useTranslation(),i=r==="small"?40:48,[l,u]=o.useState([]),d=o.useMemo(()=>{const y=[{title:null,columns:e}];let w=e;for(const h of l){const _=w?.[h.ci]?.items?.[h.ii];if(!_||!Array.isArray(_.children)||!_.children.length)break;w=[{title:null,items:_.children}],y.push({title:_.label||null,columns:w})}return y},[e,l]),c=d[d.length-1],p=d.length-1,m=o.useCallback(()=>u(y=>y.slice(0,Math.max(0,Math.min(y.length,p)-1))),[p]),C=o.useRef(null),g=o.useRef(null),v=d.length;o.useEffect(()=>{g.current||(g.current=document.activeElement);let y=0,w=0;const h=()=>{const _=C.current?.querySelector("button:not([disabled])");if(_&&_.offsetParent){_.focus({preventScroll:!0});return}w++<20&&(y=requestAnimationFrame(h))};return y=requestAnimationFrame(h),()=>cancelAnimationFrame(y)},[v]),o.useEffect(()=>()=>{g.current?.focus?.({preventScroll:!0})},[]);const b=o.useCallback((y,w,h)=>{if(y){if(Array.isArray(y.children)&&y.children.length){u(_=>[..._.slice(0,p),{ci:w,ii:h}]);return}try{typeof y.onClick=="function"&&y.onClick()}catch{}try{y&&y.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n,p]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(d.length>1||c.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[d.length>1?t.jsx(pe,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:m,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:c.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:C,children:c.columns&&c.columns.map((y,w)=>t.jsxs("div",{className:"tooltip-menu__column",children:[y.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:y.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(y.items||[]).map((h,_)=>t.jsxs(o.Fragment,{children:[h.separatorBefore&&_>0&&t.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),t.jsx(pe,{htmlType:"button",className:"tooltip-menu__item",size:i,type:h.label?"bar":"dot",icon:h.selected?"check":h.icon||"none",rightIcon:Array.isArray(h.children)&&h.children.length?"chevron-right":h.badgeCount?t.jsx(xt,{type:"dot",position:"inline",number:Math.min(h.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:h.label,ariaLabel:h.label&&h.badgeCount&&h.badgeCount>0?s("nav.badgeLabel",{label:h.label,count:h.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):h.label,onClick:()=>b(h,w,_),selected:h.selected,disabled:h.disabled,showTooltipInfo:h.tooltip||!1,useBorder:!1,align:"left"})]},_))})]},w))})]})}const cl=".content-area";function ao(e,n="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(cl);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&an("nav-scroll-container",`[${n}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${cl}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const ro=52,Za=10,dl=e=>e&&e>0?e:0;function pl({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:s,moreItems:i=[],scrollContainer:l}){const{t:u}=ye.useTranslation(),d=r==="manager"?"malgwi":"manager",c=r==="manager"?"arrow-left":"arrow-right",p=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=o.useRef(null),[C,g]=o.useState(0),v=e.length;o.useEffect(()=>{const P=m.current;if(!P)return;const F=()=>{const H=typeof getComputedStyle=="function"?getComputedStyle(P):null,M=P.clientWidth-(parseFloat(H?.paddingLeft??"")||0)-(parseFloat(H?.paddingRight??"")||0),I=P.querySelector(".bottom-nav__left"),$=I?.nextElementSibling,K=(I?.offsetWidth??0)+(I&&$?.classList.contains("bottom-nav__divider")?$.offsetWidth:0);g(Math.max(0,M-K))};if(F(),typeof ResizeObserver>"u")return;const D=new ResizeObserver(F);return D.observe(P),()=>D.disconnect()},[]);const b=ro+1,y=P=>Math.max(0,Math.floor((P+Za)/(ro+Za))),w=v*(ro+Za)-Za<=C,h=C<=0||i.length===0&&w?v:Math.min(v,y(C-b)),_=C>0&&h<v,f=_?h:v,A=e.slice(0,f),x=e.slice(f),N=_||i.length>0,k=o.useCallback((P,F)=>({position:"fixed",bottom:window.innerHeight-P.top+8,right:window.innerWidth-P.right,zIndex:Aa(F)}),[]),B=o.useId(),{open:E,toggle:S,close:z,style:R,triggerRef:q,menuRef:j}=Ba({computeStyle:k,onScroll:"ignore",onResize:"reposition"}),L=o.useCallback((P,F)=>F>0?u("nav.badgeLabel",{label:P,count:F,defaultValue:"{{label}}, {{count}}\uAC1C"}):P,[u]),O=o.useCallback((P,F)=>F>0?u("nav.badgeInsideLabel",{label:P,count:F,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):P,[u]),Z=o.useCallback(()=>s?.(d),[s,d]),ee=o.useMemo(()=>x.find(P=>!!P.key&&P.key===n)??i.find(P=>P.selected||P.key&&P.key===n),[x,n,i]),W=o.useMemo(()=>[{items:[...x.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:!!P.key&&P.key===n,closeOnSelect:!0,disabled:P.state==="disabled",onClick:()=>{P.state!=="disabled"&&(P.key&&a&&(a(P.key),ao(l,"BottomNav")),z())}})),...i.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:P.selected??(!!P.key&&P.key===n),closeOnSelect:!0,onClick:()=>{P.onClick?.(),z()}}))]}],[x,i,n,a,z]),U=[...x,...i].reduce((P,F)=>P+dl(F.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav",ref:m,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:c,ariaLabel:p,className:"bottom-nav-item",onClick:Z})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",children:A.map((P,F)=>{const D=dl(P.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:P.icon,ariaLabel:L(P.label,D),selected:!!P.key&&P.key===n,disabled:P.state==="disabled",className:"bottom-nav-item",onClick:()=>{P.key&&(a?.(P.key),ao(l,"BottomNav"))}}),D>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(xt,{type:"dot",position:"top-right",number:Math.min(D,99),size:24})})]},P.key??`__slot-${F}`)})}),N&&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:q,className:"bottom-nav__slot",children:[t.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:ee?.icon??"ellipsis",ariaLabel:O(ee?.label??u("nav.more","\uB354\uBCF4\uAE30"),U),selected:!!ee,className:"bottom-nav-item",onClick:S,"aria-expanded":E,"aria-controls":E?B:void 0}),U>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(xt,{type:"dot",position:"top-right",number:Math.min(U,99),size:24})}),E&&Xt.createPortal(t.jsx("div",{id:B,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:R,ref:j,children:t.jsx(ka,{columns:W,onClose:z})}),document.body)]})})]})]})}function ml(e){if(typeof e!="string")return!1;let n="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(n+=r)}if(!n)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(n);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function hl(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function xb(e){const{t:n}=ye.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:i,onSetting:l,onHelp:u,onFeedback:d,onAccount:c}=e||{},p="default";return s||i||l||u||d||c?t.jsxs("div",{className:"side-nav__footer",children:[s&&t.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),i&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bell",ariaLabel:hl(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&t.jsx(xt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&t.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),u&&t.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),d&&t.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bug",ariaLabel:n("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:d,selected:a==="feedback"}),c&&t.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:c,selected:a==="account"})]}):null}function Cl(e){const{t:n}=ye.useTranslation(),{item:a,itemKey:r,label:s,icon:i,active:l,onClick:u,style:d,state:c,labelStyle:p}=e||{},m=a?.key??r??"",C=a?.label??s??"",g=a?.icon??i??"",v=a?.badge??0,b=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(Ze,{icon:g,label:typeof C=="string"?C:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),y=c==="disabled",w=`side-nav__item ${l?"active":""} ${c||""} ${y?"disabled":""} ${a?.child?"side-nav__item--child":""}`,h=o.useCallback(_=>{if(y)return;const f=_.detail>0;if(f)try{_.currentTarget.blur()}catch{}u?.(m,_.currentTarget,f)},[y,m,u]);return t.jsxs("button",{type:"button",className:w,onClick:h,"aria-label":typeof C=="string"?hl(n,C,v):void 0,"aria-current":l?"page":void 0,style:d,"aria-disabled":y,children:[b,t.jsx("span",{className:"side-nav__label button-1 f",style:p,children:C}),v>0&&t.jsx(xt,{type:"dot",position:"inline",number:Math.min(v,99),size:24,"aria-hidden":!0}),c==="loading"&&t.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":n("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function fl(e){const{t:n}=ye.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:d,onSetting:c,onHelp:p,onFeedback:m,appMode:C,onAppModeChange:g,scrollContainer:v}=e||{},b=C==="manager",y=o.useCallback(()=>g?.(b?"malgwi":"manager"),[g,b]),w=o.useRef(null),[h,_]=o.useState(null);o.useEffect(()=>{const k=w.current;if(!k)return;const B=()=>{const{scrollHeight:S,clientHeight:z,scrollTop:R}=k;if(S<=z+1){_(null);return}const q=Math.max(24,z/S*z),j=z-q,L=S-z;_({top:Math.round(R/L*j),height:Math.round(q)})};B(),k.addEventListener("scroll",B,{passive:!0});const E=typeof ResizeObserver<"u"?new ResizeObserver(B):null;E?.observe(k);for(const S of Array.from(k.children))E?.observe(S);return()=>{k.removeEventListener("scroll",B),E?.disconnect()}},[a]);const f=o.useRef(null),A=o.useCallback(k=>{const B=w.current;B&&(k.preventDefault(),f.current={y:k.clientY,top:B.scrollTop},k.currentTarget.setPointerCapture(k.pointerId))},[]),x=o.useCallback(k=>{const B=w.current,E=f.current;!B||!E||(B.scrollTop=E.top+(k.clientY-E.y)*(B.scrollHeight/B.clientHeight))},[]),N=o.useCallback(k=>{f.current=null,k.currentTarget.hasPointerCapture(k.pointerId)&&k.currentTarget.releasePointerCapture(k.pointerId)},[]);return t.jsxs("nav",{ref:w,"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[h&&t.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:t.jsx("div",{className:"side-nav__scroll-thumb",style:{top:h.top,height:h.height},onPointerDown:A,onPointerMove:x,onPointerUp:N,onPointerCancel:N})}),t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(k=>!k.section&&(k.key||k.label)).map((k,B)=>t.jsxs(o.Fragment,{children:[k.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(Cl,{item:k,active:!!k.key&&k.key===r,state:k.disabled?"disabled":void 0,onClick:(E,S,z)=>{if(k.disabled)return;if(k.href){if(ml(k.href)&&window.open(k.href,"_blank","noopener,noreferrer"),z)try{S?.blur()}catch{}return}if(s?.(k.key),ao(v,"SideNav"),!z)return;try{S?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const R=document.querySelector(".header");if(R){const q=typeof R.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&q&&R.matches(":hover"))){R.classList.add("header--force-collapsed");const j=()=>{R.classList.remove("header--force-collapsed"),R.removeEventListener("mouseenter",j)};R.addEventListener("mouseenter",j)}}}})]},k.key??`side-nav__item-${B}`)),g&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),g&&t.jsx(Cl,{item:{key:"__mode-switch__",label:b?n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:b?"arrow-left":"arrow-right"},onClick:y})]}),t.jsx(xb,{activeKey:r,unreadCount:i,onDebug:l,onNotification:u,onAccount:d,onSetting:c,onHelp:p,onFeedback:m})]})}var Xa='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',oo='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',_b='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 gl({appMode:e}){const{t:n}=ye.useTranslation(),a=e==="manager",r=a?oo:Xa,s=_b;return t.jsxs("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:[t.jsx("img",{src:s,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),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 brand-identity__image--logo"})]})}function bl({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:d,onSetting:c,onHelp:p,onFeedback:m,appMode:C,onAppModeChange:g,scrollContainer:v}){const{t:b}=ye.useTranslation(),y=tn("(max-width: 767px)"),w=o.useMemo(()=>(a??[]).filter(R=>!R.section&&(R.key||R.label)).map(R=>({key:R.key,label:typeof R.label=="string"?R.label:void 0,icon:R.icon,state:R.disabled?"disabled":void 0,badgeCount:R.badge})),[a]),h=o.useCallback(R=>{const q=a?.find(j=>j.key===R);if(!q?.disabled){if(q?.href){ml(q.href)&&window.open(q.href,"_blank","noopener,noreferrer");return}n?.(R)}},[a,n]),_=o.useMemo(()=>{const R=[];return l&&R.push({key:"debug",icon:"terminal",label:b("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),u&&R.push({key:"notifications",icon:"bell",label:b("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:u}),c&&R.push({key:"settings",icon:"settings",label:b("nav.settings","\uC124\uC815"),onClick:c}),p&&R.push({key:"help",icon:"message-circle-question-mark",label:b("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),m&&R.push({key:"feedback",icon:"bug",label:b("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:m}),d&&R.push({key:"account",icon:"user-round",label:b("nav.account","\uACC4\uC815"),onClick:d}),R},[b,l,u,c,p,m,d,i]),f=o.useCallback((R,q)=>({position:"fixed",top:R.bottom+8,right:Math.max(8,window.innerWidth-R.right),zIndex:Aa(q)}),[]),A=o.useId(),{open:x,toggle:N,close:k,style:B,triggerRef:E,menuRef:S}=Ba({computeStyle:f,onScroll:"ignore",onResize:"reposition"}),z=o.useMemo(()=>[{items:_.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.selected??(!!R.key&&R.key===e),closeOnSelect:!0,onClick:()=>{R.onClick?.(),k()}}))}],[_,e,k]);return t.jsxs("aside",{className:`header${C==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(gl,{appMode:C}),t.jsxs("div",{className:"header__menu-button",ref:E,children:[t.jsx(pe,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&i&&i>0?b("nav.badgeInsideLabel",{label:b("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):b("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:N,"aria-expanded":x,"aria-controls":x?A:void 0}),!!u&&!!i&&i>0&&t.jsx(xt,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),x&&Xt.createPortal(t.jsx("div",{id:A,role:"group","aria-label":b("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:B,ref:S,children:t.jsx(ka,{columns:z,onClose:k})}),document.body)]})]}),t.jsx(fl,{scrollContainer:v,items:a,activeKey:e??void 0,onChange:n,unreadCount:i,onDebug:l,onNotification:u,onAccount:d,onSetting:c,onHelp:p,onFeedback:m,appMode:C,onAppModeChange:g}),y&&t.jsx(pl,{items:w,activeKey:e??void 0,onChange:h,scrollContainer:v,appMode:C,onAppModeChange:g})]})}const wb=bl,Ab=()=>St.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function yl(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const n=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(n))return Qn(`${n.toLocaleString("ko-KR")}\uC6D0`)}return Qn(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function Bb(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function kb(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 s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||Ab()}function Nb(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 vl(e){return{type:e.type??Bb(e),plan:kb(e),label:e.label,price:yl(e.price),originalPrice:yl(e.originalPrice),discountLabel:e.discountLabel}}var Db='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',Eb='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>',Sb='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',jb='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',Tb='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>',Mb='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',xl='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 qn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},so=new WeakMap;function Lb(e){if(e)return so.get(e)}function _n(e,n){e&&(e.style.setProperty(qn.text,n.text),e.style.setProperty(qn.sub,n.sub),n.copyrightColor&&e.style.setProperty(qn.copyright,n.copyrightColor),so.set(e,n))}function wn(e){e&&(e.style.removeProperty(qn.text),e.style.removeProperty(qn.sub),e.style.removeProperty(qn.copyright),so.delete(e))}const _l={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function wl(e={}){const n=vt(_l,_n,wn);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("${xl}")`}})]})}const Al="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 Na='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 $b={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},Rb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Bl(e={}){const n=vt($b,_n,wn),a="var(--color-main)",r=270,s=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:Rb.map(({scale:i,opacity:l},u)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:Al,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Na}")`}})]})}const Pb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},Ib=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Fb(e={}){const n=vt(Pb,_n,wn),a="#ffffff",r=270,s=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:Ib.map(({scale:i,opacity:l},u)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:Al,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${xl}")`}})]})}const Ob={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Hb(e={}){const n=vt(Ob,_n,wn);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("${Na}")`}})]})}const zb={Logo_speechear_kr:{"":Xa,_white:Db,_textWhite:Eb,_black:Sb},Logo_speechearManager_kr:{"":oo,_white:jb,_textWhite:Tb,_black:Mb}};function Vb(e,n){if(e)return zb[e]?.[n??""]??void 0}const Wb={speechear:Xa,manager:oo},qb={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},kl=10;function Ub(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function Nl(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 s=Math.floor(e/60);return s>0?n("passCard.remainingMinute",{n:s}):n("passCard.remainingSecond",{n:Math.floor(e)})}function Gb(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),s=a==="\uC624\uD508\uD2B9\uAC00"||a===St.t("passCard.specialLabel");return r?t.jsx(Hb,{}):s?t.jsx(Fb,{}):t.jsx(Bl,{})}return t.jsx(wl,{})}function Dl({ariaLabel:e,product:n,showPrice:a=!1,plan:r,type:s,endDate:i,remainingSeconds:l,endInclusive:u=!1,state:d="active",bg:c,bgOnly:p=!1,textColor:m,subColor:C,copyrightColor:g,logoSrc:v,label:b,price:y,originalPrice:w,discountLabel:h,onUse:_,onRefund:f,onDelete:A}){const{t:x}=ye.useTranslation(),N=n?vl(n):void 0,k=s??N?.type??"speechear",B=r??N?.plan??x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),E=b??N?.label,S=y??(a?N?.price:void 0),z=w??(a?N?.originalPrice:void 0),R=h??N?.discountLabel,q=o.useMemo(()=>{if(S)return null;const V=n?.durationDays??Nb(n?.code);if(!V||V<=0)return l!=null?{percent:null,remainingLabel:Nl(l,x)}:null;const Q=V*86400;let oe;if(l!=null)oe=l;else if((d==="active"||d==="expired")&&i){const se=new Date(i).getTime();if(Number.isNaN(se))return null;const ge=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(i)),fe=/^(\d{4})-(\d{2})-(\d{2})/.exec(va()),xe=Math.round(ge&&fe?(Date.UTC(+ge[1],+ge[2]-1,+ge[3])-Date.UTC(+fe[1],+fe[2]-1,+fe[3]))/864e5:(se-Date.now())/864e5);oe=Math.max(0,u?xe+1:xe)*86400}else d==="expired"?oe=0:oe=Q;const Be=Ub(oe),Ce=Math.max(0,Math.min(100,Math.floor(Math.min(Be,Q)/Q*100)));return d==="pending"&&Ce>=100?null:{percent:Ce,remainingLabel:d==="expired"?x("passCard.expired","\uB9CC\uB8CC\uB428"):Nl(oe,x)}},[S,d,i,l,u,n?.durationDays,n?.code,x]),j=o.useRef(null),[L,O]=o.useState({}),[Z,ee]=o.useState(null),W=!!(_||f||A),U=o.useRef(!1),P=o.useRef(void 0),[F,D]=o.useState(v);o.useLayoutEffect(()=>{D(v)},[v]),o.useLayoutEffect(()=>{const V=j.current;V&&(m!==void 0&&V.style.setProperty("--pass-card-text",m),C!==void 0&&V.style.setProperty("--pass-card-sub",C),g!==void 0&&V.style.setProperty("--pass-card-copyright",g))},[m,C,g]),o.useLayoutEffect(()=>{const V=j.current;if(!V)return;const Q=Lb(V);if(!v){const oe=qb[k],Be=d==="expired"?"_black":Q?.logoColor??"",Ce=Vb(oe,Be);D(Ce)}},[c,v,k,d]);const H=V=>{const Q=j.current;if(!Q)return null;const{left:oe,top:Be,width:Ce,height:se}=Q.getBoundingClientRect(),ge=(V.clientX-oe)/Ce-.5;return{rotateX:-((V.clientY-Be)/se-.5)*kl,rotateY:ge*kl}},M=(V,Q)=>{const oe=Q*-.7,Be=V*.7+10,Ce=20+(Math.abs(V)+Math.abs(Q))*.4;return`${oe}px ${Be}px ${Ce}px rgba(0, 0, 0, 0.18)`},I=o.useCallback(V=>{if(na())return;U.current=!0,clearTimeout(P.current),P.current=setTimeout(()=>{U.current=!1},200);const Q=H(V);Q&&O({transform:`perspective(800px) rotateX(${Q.rotateX}deg) rotateY(${Q.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:M(Q.rotateX,Q.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),$=o.useCallback(V=>{if(na())return;const Q=H(V);if(!Q)return;const oe=U.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";O({transform:`perspective(800px) rotateX(${Q.rotateX}deg) rotateY(${Q.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:M(Q.rotateX,Q.rotateY),transition:oe})},[]),K=o.useCallback(()=>{clearTimeout(P.current),U.current=!1,O({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)"})},[]),ne=o.useCallback(()=>ee(null),[]),X=o.useMemo(()=>{const V=x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),Q=B.replace("\uC774\uC6A9\uAD8C","").replace(V==="\uC774\uC6A9\uAD8C"?"":V,"").trim(),oe=Q.match(/^(.*?)(일|년)$/);return oe?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:oe[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:oe[2]==="\uB144"?x("passCard.unitYear","\uB144"):x("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:Q})},[B,x]),ae=o.useMemo(()=>{const V=Qn(S);if(!V)return null;const Q=V.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!Q)return t.jsx("span",{className:"h1",children:V});const[,oe,Be,Ce]=Q;return t.jsxs(t.Fragment,{children:[oe&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:oe}),t.jsx("span",{className:"h1 pass-card__price-amount",children:Be}),Ce.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:Ce.trim()})]})},[S]),ue=o.useCallback(()=>{W&&ee(V=>{if(V)return null;const Q=j.current?.getBoundingClientRect();if(!Q)return null;const oe=50;return{left:Q.left,right:Q.right,width:Q.width,height:Q.height,x:Q.x,y:Q.y+oe,top:Q.top+oe,bottom:Q.bottom+oe}})},[W]),le=o.useCallback(V=>{W&&(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),ue())},[W,ue]),be=[{items:[..._?[{label:x("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{_(),ee(null)},closeOnSelect:!0}]:[],...f?[{label:x("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{f(),ee(null)},closeOnSelect:!0}]:[],...A?[{label:x("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{A(),ee(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--${d}${W?" pass-card--clickable":""}`,style:L,onMouseEnter:I,onMouseMove:$,onMouseLeave:K,onPointerUp:V=>{V.pointerType==="touch"&&K()},onPointerCancel:V=>{V.pointerType==="touch"&&K()},onClick:ue,onKeyDown:W?le:void 0,role:W?"button":void 0,tabIndex:W?0:void 0,"aria-label":e,"aria-haspopup":W?"menu":void 0,"aria-expanded":W?!!Z:void 0,children:[c??Gb(k,B,E),!p&&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:F??Wb[k],className:"pass-card__logo",alt:k==="manager"?x("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):x("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:X}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:E?x("passCard.labeledPlan",{label:E}):x("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),S?t.jsxs("div",{className:"pass-card__price-area",children:[R&&t.jsx("span",{className:"pass-card__discount body-3",children:R}),t.jsxs("div",{className:"pass-card__price",children:[z&&t.jsx("span",{className:"pass-card__price-original body-3",children:Qn(z)}),ae]})]}):q?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:q.remainingLabel}),q.percent!=null&&t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:q.percent}),t.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):t.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),Z&&t.jsx(on,{anchorRect:Z,onClose:ne,ariaLabel:x("tooltip.menu","\uBA54\uB274"),children:t.jsx(ka,{columns:be,onClose:ne,size:"small"})})]})}const Kb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Yb(e={}){const n=`passcard-sound-line-grad-${o.useId()}`,a=vt(Kb,_n,wn);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("${Na}")`}})]})}const Zb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Xb(e={}){const n=vt(Zb,_n,wn);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("${Na}")`}})]})}function Jb(e,n){if(e){if(n==="manager_pro")return t.jsx(Xb,{});if(n==="manager_standard")return t.jsx(Yb,{});if(n==="manager_lite")return t.jsx(Bl,{})}}function Qb(e){const n=Qn(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,s,i]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,i.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function e4(e){const{t:n}=ye.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:i,period:l="monthly",ownedCodes:u}=e||{},d=f=>!!f&&!!u?.includes(f),c=f=>f.onceOnly??/오픈\s*특가/.test(f.label??""),p=(s.tiers||[]).some(f=>c(f)&&d(f.code)),m=f=>{const A=f.prices?f.prices[l]:f.price;return A?(s.tiers||[]).some(x=>!!x.badge&&x.originals?.[l]===A):!1},C=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",g=n("payment.plan.freePrice","\uBB34\uB8CC"),v=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),b=f=>f.prices?f.prices[l]:f.price,y=(s.tiers||[]).length>0&&(s.tiers||[]).every(f=>{const A=b(f);return A==="\uBB34\uB8CC"||A===g||A==="0\uC6D0"||typeof A=="string"&&/\d/.test(A)&&!/[1-9]/.test(A)}),w=(s.tiers||[]).length>0&&(s.tiers||[]).every(f=>{const A=b(f);return A==="\uBB38\uC758"||A===v}),h=s.group==="org",_=h?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:C,"--plan-color":C},children:[s.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(xt,{label:s.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:C},children:s.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:s.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:(s.recommendedFor||[]).map((f,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ze,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:C}}),f]},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:(s.features||[]).map((f,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ze,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:C}}),f]},A))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:y?null:w?t.jsx(pe,{htmlType:"button",className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&i?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(f=>{const A=f.label||a,x=c(f),N=x||f.openPromo===!0,k=A.replace(/^오픈\s*특가\s*/,"")||a,B=f.prices?f.prices[l]:f.price,E=f.badge?N?`${r}
852
+ ${f.badge}`:f.badge:void 0;if(x&&d(f.code))return null;if(!f.badge&&!p)return m(f)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${f.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:f.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:Qb(B)})})]},f.id);const S=s.tier??(h?s.title:void 0),z=t.jsx(Dl,{showPrice:!0,product:{type:_,code:f.code,name:k,label:S,price:B,originalPrice:f.originals?.[l]??void 0,discountLabel:E},bg:Jb(h,s.id)}),R=()=>i?.({...f,productId:s.id,productTitle:s.title,preview:z});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:R,onKeyDown:i?q=>{q.target===q.currentTarget&&(q.key==="Enter"||q.key===" ")&&(q.preventDefault(),R())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:z},f.id)})})})})]})}function t4({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 io='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 El={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function n4(){const e=vt(El,_n,wn);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("${io}")`}})})}const Sl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function a4(e={}){const n=vt(Sl,_n,wn);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("${Na}")`}})]})}function jl({keys:e,anchor:n="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return t.jsx("span",{className:Ne("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.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 Da=(e,n,a)=>e+(n-e)*a;function r4({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:i=null,answerId:l=null,showFeedback:u=!1,pulseSelected:d=!1,pulseSelectedDuration:c,pulseScale:p,clickable:m=!1,onSelectSpeaker:C,buttonSize:g=40,showIcon:v=!0,onCenterClick:b,centerLabel:y,centerDisabled:w=!1,centerAttention:h=!1,shortcutAnchor:_="top-right",shortcutScale:f,scaleShortcut:A=!1}){const{t:x}=ye.useTranslation(),N=Math.max(0,Math.min(1,a)),k=n/2,B=110/300,E=.18,S=V=>n*(B+(V-1)*E),z=V=>{const Q=S(V.row??1),oe=V.angleDeg*Math.PI/180;return{x:k+Q*Math.cos(oe),y:k+Q*Math.sin(oe)}},R=Math.max(...e.map(V=>V.row??1),1),q=n*.08,j=n*.1,L=n*.24,O=n-2*q,Z=n-j-L,ee=n-L/2,W=o.useMemo(()=>[...new Set(e.map(V=>V.deg))].sort((V,Q)=>V-Q),[e]),U=W.length,P=Math.max(68,U>1?O/(U-1):0),F=o.useMemo(()=>new Map(W.map((V,Q)=>[V,Q])),[W]),D=V=>{const Q=F.get(V.deg)??0,oe=k+(Q-(U-1)/2)*P,Be=R>1?Math.min(68,Z/(R-1)):0,Ce=Be*(R-1),se=j+(Z-Ce)/2,ge=R===1?j+Z*.4:se+(R-(V.row??1))*Be;return{x:oe,y:ge}},H=V=>{const Q=z(V),oe=D(V);return{x:Da(Q.x,oe.x,N),y:Da(Q.y,oe.y,N)}},M={x:k,y:Da(k,ee,N)},I=Math.round(g*1.2),$=Math.round(Math.max(16,Math.min(80,g*.7))),K=[],ne=new Map;for(const V of e){const Q=V.row??1;ne.has(Q)||ne.set(Q,[]),ne.get(Q).push(V)}for(const[V,Q]of ne.entries()){if(Q.length<2)continue;const oe=[...Q].sort((Ie,st)=>Ie.deg-st.deg),Be=oe.map(Ie=>H(Ie)),Ce=oe.map(Ie=>Ie.deg),se=Ce[Ce.length-1]-Ce[0],ge=se/(Ce.length-1),fe=360-se,xe=oe.length>=3&&ge>0&&fe<=ge*1.5,$e=Math.round(S(V)*1e3)/1e3,Le=(Ie,st,Xe,Je)=>{const Ee=(st.angleDeg-Ie.angleDeg+540)%360-180;if(Ee===0)return`L ${Je.x} ${Je.y}`;if(N===0)return`A ${$e} ${$e} 0 0 ${Ee>0?1:0} ${Je.x} ${Je.y}`;const ke=(Ie.angleDeg+Ee/2)*Math.PI/180,Me={x:k+$e*Math.cos(ke),y:k+$e*Math.sin(ke)},Ve={x:(Xe.x+Je.x)/2,y:(Xe.y+Je.y)/2},lt={x:Da(Me.x,Ve.x,N),y:Da(Me.y,Ve.y,N)},te={x:2*lt.x-Ve.x,y:2*lt.y-Ve.y};return`Q ${te.x} ${te.y} ${Je.x} ${Je.y}`},Qe=xe?[...oe,oe[0]]:oe,Ue=xe?[...Be,Be[0]]:Be;let ze=`M ${Ue[0].x} ${Ue[0].y}`;for(let Ie=1;Ie<Ue.length;Ie++)ze+=" "+Le(Qe[Ie-1],Qe[Ie],Ue[Ie-1],Ue[Ie]);K.push({key:`arc-${V}`,d:ze})}const X=o.useMemo(()=>new Set(s??[]),[s]),ae=V=>({idle:"",active:x("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:x("soundCompass.state.played","\uB4E4\uC74C"),correct:x("soundCompass.state.correct","\uC815\uB2F5"),wrong:x("soundCompass.state.wrong","\uC624\uB2F5")})[V],ue=V=>{if(r===V.id)return"active";if(u){if(V.id===l)return"correct";if(V.id===i&&i!==l)return"wrong"}return X.has(V.id)?"played":"idle"},le=V=>r===V.id?"loop":u?V.id===l?"loop":null:d&&V.id===i?"once":null,be=(V,Q)=>{switch(V){case"played":case"correct":return t.jsx(is,{size:Q});case"wrong":return t.jsx(gs,{size:Q});default:return t.jsx(fs,{size:Q})}};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:[N===0&&e.map(V=>{const{x:Q,y:oe}=H(V);return t.jsx("line",{x1:M.x,y1:M.y,x2:Q,y2:oe,stroke:"#dde3ec",strokeWidth:"1"},V.id)}),K.map(V=>t.jsx("path",{d:V.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},V.key))]}),h&&!w&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:I,height:I,left:M.x-I/2,top:M.y-I/2}}),b?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${w?" sound-compass__center--disabled":""}`,style:{width:I,height:I,left:M.x,top:M.y},"aria-label":y,"aria-disabled":w||void 0,tabIndex:w?-1:0,onClick:w?void 0:b,children:t.jsx(vr,{size:$,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:I,height:I,left:M.x,top:M.y},children:t.jsx(vr,{size:$,color:"currentColor",strokeWidth:1.5})}),e.map((V,Q)=>{const{x:oe,y:Be}=H(V),Ce=ue(V),se=le(V),ge={...f!==void 0||A?{"--shortcut-badge-scale":String(f??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:Ce!=="idle"?10:1},fe=g,xe=Math.round(Math.max(10,Math.min(56,fe*.38))),$e=Math.round(Math.max(7,Math.min(18,fe*.2))),Le=Math.round(Math.max(10,Math.min(56,fe*.4))),Qe=v==="answered"&&(Ce==="played"||Ce==="correct"||Ce==="wrong"),Ue=v===!0||Qe,ze=!Qe;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...ge,left:oe-fe/2,top:Be-fe/2},children:[se&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${Ce}`+(se==="once"?" sound-compass__pulse--once":""),style:{width:fe,height:fe,...se==="once"&&c!==void 0?{"--sc-pulse-duration-once":`${c}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?()=>C?.(V.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${Ce}`,style:{width:fe,height:fe},"aria-label":ae(Ce)?`${V.label}, ${ae(Ce)}`:V.label,"aria-pressed":i!=null?V.id===i:void 0,children:[Ue&&be(Ce,xe),ze&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:v===!0?$e:Le},children:Q+1})]}),V.shortcut&&t.jsx(jl,{keys:V.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},V.id)})]})})}function o4({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:Ne("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function s4({orientation:e="horizontal",label:n,className:a=""}){const r=Ne("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 Tl({checked:e,onChange:n,name:a,value:r,disabled:s=!1,label:i,className:l=""}){const u=o.useId();return t.jsxs("label",{className:`radio${s?" radio--disabled":""} ${l}`.trim(),htmlFor:u,children:[t.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:d=>n?.(d.target.checked)}),t.jsx("span",{className:"radio__dot"}),i&&t.jsx("span",{className:"radio__label body-2",children:i})]})}function i4({options:e,value:n,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:u}){const d=o.useId(),c=r??`radio-group-${d}`;return t.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":u,children:e.map(p=>t.jsx(Tl,{name:c,value:p.value,checked:n===p.value,disabled:s||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const l4={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function u4({tone:e="info",title:n,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:u=""}){const{t:d}=ye.useTranslation(),[c,p]=o.useState(!1),m=o.useRef(null),C=o.useCallback(()=>{const h=m.current;h&&h.contains(document.activeElement)&&Ga(h),p(!0),i?.()},[i]);if(c)return null;const g=Ne("alert",`alert--${e}`,u),v=l??(e==="danger"||e==="warning"?"assertive":"polite"),b=v==="assertive"?"alert":v==="polite"?"status":void 0,y=!!n,w=!!(a||r);return t.jsxs("div",{ref:m,className:g,role:b,children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Ze,{icon:l4[e],size:20,className:"alert__icon"}),y&&t.jsx("span",{className:"alert__title body-2",children:n}),!y&&w&&t.jsx("div",{className:"alert__message body-3",children:a||r})]}),y&&w&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:C,"aria-label":d("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const c4={ready:"search",guide:"info",error:"circle-alert"};function d4(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let s=0,i=0;for(const l of a){const u=e.indexOf(l,s);u<0||(u>s&&r.push(e.slice(s,u)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),s=u+l.length)}return s<e.length&&r.push(e.slice(s)),r}function p4({status:e="guide",label:n,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??c4[e],u=Ne("search-summary",`search-summary--${e}`,i),d=n??a,c=typeof d=="string"&&r&&r.length>0?d4(d,r):d;return t.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Ze,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:c})]})}function Ea({title:e,items:n}){const{t:a}=ye.useTranslation(),{anchorRect:r,openAt:s,close:i}=wa(),l=o.useRef(null),u=Yr(!!r,(d,c)=>{d&&c?s(l.current?.querySelector("button")??c):i()},l);return t.jsxs("span",{ref:l,style:{display:"contents"},children:[t.jsx(pe,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:d=>{ta(d)||s(d.currentTarget)},onPointerLeave:d=>{ta(d)||i()},onClick:d=>{u.touchPress(d.currentTarget)},onFocus:d=>{na()||s(d.currentTarget)},onBlur:i}),r&&t.jsx(Vn,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:i})]})}function m4({items:e=[],value:n,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=ye.useTranslation(),u=o.useRef(null),d=e.find(b=>!b.disabled)?.key,c=e.some(b=>b.key===n)?n:d??e[0]?.key,p=e.find(b=>b.key===c&&!b.disabled)?.key??d,m=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),C=(b,y=m())=>{if(y.length===0)return;const w=(b%y.length+y.length)%y.length;y[w]?.focus(),y[w]?.click()},g=b=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(b.key))return;b.preventDefault();const y=m(),w=y.indexOf(b.currentTarget);b.key==="ArrowRight"||b.key==="ArrowDown"?C(w+1,y):b.key==="ArrowLeft"||b.key==="ArrowUp"?C(w-1,y):b.key==="Home"?C(0,y):C(y.length-1,y)},v=e.find(b=>b.key===c);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(b=>t.jsx("button",{id:`tabs__tab-${i}-${b.key}`,type:"button",role:"tab","aria-selected":b.key===c,"aria-controls":`tabs__panel-${i}-${b.key}`,disabled:b.disabled,tabIndex:b.key===p?0:-1,className:`tabs__tab body-2${b.key===c?" tabs__tab--active":""}`,onClick:()=>{b.key!==n&&a?.(b.key)},onKeyDown:g,children:b.label},b.key))}),v&&t.jsx("div",{id:`tabs__panel-${i}-${v.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${v.key}`,tabIndex:0,className:"tabs__panel",children:v.panel},v.key)]})}const h4={xs:12,sm:16,md:20,lg:28,xl:36};function C4(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 f4({src:e,name:n,size:a="md",shape:r="circle",className:s=""}){const{t:i}=ye.useTranslation(),[l,u]=o.useState(null),d=!!e&&l===e,c=n?C4(n):"",p=!!e&&!d,m=!p&&!!c,C=n||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":C,children:[p&&t.jsx("img",{className:"avatar__image",src:e,alt:C,onError:()=>u(e??null)}),!p&&m&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:c}),!p&&!m&&t.jsx(Ze,{icon:"user-round",size:h4[a],className:"avatar__icon"})]})}function g4(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(),s=e.type.toLowerCase();return a.some(i=>{const l=i.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?s.startsWith(l.slice(0,-1)):s===l})}function b4({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:u=""}){const{t:d}=ye.useTranslation(),c=o.useRef(null),[p,m]=o.useState(!1),[C,g]=o.useState([]),v=i??C,b=x=>{if(!x||x.length===0)return;const N=Array.from(x).filter(B=>g4(B,n));if(N.length===0)return;const k=a?N:N.slice(0,1);if(i===void 0){const B=a?[...v,...k]:k;g(B),e?.(B)}else e?.(k)},y=x=>{x.preventDefault(),!r&&m(!0)},w=x=>{x.preventDefault(),m(!1)},h=x=>{x.preventDefault(),m(!1),!r&&b(x.dataTransfer.files)},_=x=>{const N=x.target;try{b(N.files)}finally{N.value=""}},f=()=>{r||c.current?.click()},A=x=>{if(!r&&(l?.(x),i===void 0)){const N=v.filter((k,B)=>B!==x);g(N),l||e?.(N)}};return t.jsxs("div",{className:`file-upload ${u}`.trim(),children:[t.jsxs("div",{className:Ne("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:f,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),f())},onDragOver:y,onDragLeave:w,onDrop:h,children:[t.jsx(Ze,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:d("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:x=>{x.stopPropagation(),f()},children:d("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:c,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),s&&v.length>0&&t.jsx("ul",{className:"file-upload__list",children:v.map((x,N)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:x.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":d("fileUpload.removeAriaLabel",{name:x.name}),disabled:r,onClick:()=>A(N),children:t.jsx(Ze,{icon:"x",size:14})})]},`${x.name}-${N}`))})]})}function y4({items:e,className:n=""}){const{t:a}=ye.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,s)=>{const i=s===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}):r.href?t.jsx("a",{className:"breadcrumb__link body-3",href:r.href,target:r.target,rel:r.rel??(r.target==="_blank"?"noopener noreferrer":void 0),onClick:r.onClick,children:r.label}):r.onClick?t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):t.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!i&&t.jsx(Ze,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const v4={small:14,medium:20,large:28};function x4({value:e,onChange:n,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:u}=ye.useTranslation(),d=r||!n,[c,p]=o.useState(null),m=d?e:Number.isFinite(e)?Math.round(e):0,C=c??m,g=v4[s],v=x=>{x!==e&&n?.(x)},b=x=>{d||v(x)},y=x=>{d||na()||p(x)},w=o.useRef(null),h=x=>{const N=Math.min(a,Math.max(1,x));v(N),Array.from(w.current?.querySelectorAll("[data-star]")??[]).find(k=>k.dataset.star===String(N))?.focus()},_=x=>{if(!d){switch(x.key){case"ArrowRight":case"ArrowUp":h((m||0)+1);break;case"ArrowLeft":case"ArrowDown":h((m||1)-1);break;case"Home":h(1);break;case"End":h(a);break;default:return}x.preventDefault()}},f=m>=1&&m<=a?Math.round(m):1,A=()=>{d||p(null)};return t.jsx("div",{className:`rating rating--${s}${d?" rating--readOnly":""} ${l}`.trim(),ref:w,onKeyDown:_,role:d?"img":"radiogroup","aria-label":d?u("rating.valueLabel",{value:e,max:a}):i??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:A,onPointerUp:x=>{x.pointerType==="touch"&&A()},onPointerCancel:x=>{x.pointerType==="touch"&&A()},children:Array.from({length:a},(x,N)=>{const k=N+1,B=Math.max(0,Math.min(1,C-N)),E=B>0&&B<1,S=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Ze,{icon:"star",size:g,className:"rating__star rating__star--empty"}),B>0&&t.jsx("span",{className:`rating__star-fill${E?" rating__star-fill--half":""}`,style:E?{width:`${B*100}%`}:void 0,children:t.jsx(Ze,{icon:"star",size:g,className:"rating__star rating__star--filled"})})]});return d?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:S},k):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":m===k,"aria-label":u("rating.starLabel",{n:k}),"data-star":k,tabIndex:k===f?0:-1,onClick:()=>b(k),onMouseEnter:()=>y(k),children:S},k)})})}const _4=20,w4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function A4({value:e,onChange:n,palette:a=w4,size:r=40,className:s="",ariaLabel:i}){const{t:l}=ye.useTranslation();return t.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":i,children:a.map(u=>{const d=e?.toLowerCase()===u.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>n(u),"aria-pressed":d,"aria-label":d?`${u} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:d&&t.jsx(Ze,{icon:"check",size:_4,className:"color-picker__check"})},u)})})}function Ml({icon:e,label:n,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:u="medium"}){const{t:d}=ye.useTranslation(),c=u==="small",p=Ne("category-icon",c?"category-icon--small":""),m=c?16:20,C=o.useRef(null),[g,v]=o.useState(!1),b=o.useMemo(()=>{const N=r&&typeof r=="object"?{...r}:{};return!s&&!i?N:{...N,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),y=a||n,[w,h]=o.useState(null);o.useLayoutEffect(()=>{g&&h(C.current?.getBoundingClientRect()??null)},[g]),o.useEffect(()=>{if(!l&&g)try{v(!1)}catch{}},[l,g]),o.useEffect(()=>{if(!g)return;const N=k=>{const B=C.current;if(!B)return;const E=k.target;E&&!B.contains(E)&&v(!1)};return document.addEventListener("pointerdown",N,!0),()=>document.removeEventListener("pointerdown",N,!0)},[g]);const _=o.useCallback(()=>{l&&v(!0)},[l]),f=o.useCallback(()=>{l&&v(!1)},[l]),A=o.useCallback(()=>v(!1),[]),x=o.useCallback(N=>{if(N.key==="Escape"){v(!1);return}(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),v(k=>!k))},[]);return t.jsxs("span",{ref:C,className:"category-icon__wrap",onPointerEnter:_,onPointerLeave:f,onFocus:_,onBlur:f,onKeyDown:x,role:"button",tabIndex:0,"aria-label":typeof y=="string"?d("common.descriptionFor",{name:y,defaultValue:`${y} \uC124\uBA85`}):void 0,"aria-haspopup":!!y,"aria-expanded":g,"data-tooltip-ignore":!0,children:[t.jsx(Ze,{icon:e,label:n,className:p,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:b,size:m}),g&&y&&t.jsx(vn,{anchorRect:w,text:typeof y=="string"?y:void 0,offset:8,onClose:A,className:"category-icon__tooltip",ariaLabel:typeof y=="string"?y:void 0})]})}let jn=null;function Ja(e){if(jn&&jn!==e)try{jn()}catch{}return jn=e,()=>{jn===e&&(jn=null)}}function Qa(e){if(jn===e){jn=null;try{e()}catch{}}}function B4(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}const s=a.sentences||a.items||[],i=r(Array.isArray(s)?s:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function k4(e,n){const[a,r]=o.useState(!1),[s,i]=o.useState(-1),[l,u]=o.useState({key:"",urls:[]}),d=o.useRef(null),c=o.useRef(!1),p=o.useRef(null),m=o.useRef(null),[C,g]=o.useState(!1),v=o.useRef([]),{previewCodes:b,previewBucket:y}=B4(e,n),w=`${b.join(",")}|${y??""}`,h=o.useMemo(()=>l.key===w?l.urls:[],[l,w]);o.useEffect(()=>{if(!b.length)return;let f=!1;return(async()=>{const A=[],x=[];for(const N of b)try{const k=qs(N,y);if(!k){A.push("");continue}let B=null;try{B=await Us(k)}catch{}if(!B)try{const E=await Gs(k);E&&(B=URL.createObjectURL(E),x.push(B))}catch{}A.push(B??"")}catch{A.push("")}f?x.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}):(v.current.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}),v.current=x,u({key:w,urls:A}))})(),()=>{f=!0}},[b.join(","),y]),o.useEffect(()=>()=>{v.current.forEach(f=>{try{URL.revokeObjectURL(f)}catch{}}),v.current=[]},[]);const _=o.useCallback(async f=>{if(f.stopPropagation(),f.preventDefault(),c.current){p.current&&Qa(p.current),c.current=!1;try{d.current?.pause()}catch{}r(!1),i(-1);return}if(!h.filter(Boolean).length)return;let A=null;const x=()=>{c.current=!1;try{d.current?.pause()}catch{}A?.()};p.current=x;const N=Ja(x);c.current=!0,r(!0);for(let k=0;k<h.length&&c.current;k++){const B=h[k];if(B){i(k);try{await new Promise((E,S)=>{A=E;const z=new Audio(B);d.current=z,z.onended=()=>E(),z.onerror=()=>S(),z.play().catch(S)})}catch{break}}}N(),p.current===x&&(p.current=null,c.current=!1,r(!1),i(-1))},[h]);return o.useEffect(()=>()=>{p.current&&Qa(p.current),c.current=!1;try{d.current?.pause()}catch{}d.current=null},[]),{playing:a,playingIndex:s,previewUrls:h,previewHover:C,setPreviewHover:g,previewBtnRef:m,handlePreview:_}}const N4=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 s=r;return s.sentence||s.text||s.context||s.question||s.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function lo(e){const{index:n,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:u,completedIds:d,selectedIds:c,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:C,hideCheckBadge:g=!1,showTypeLabel:v=!1,onComplete:b,onSelect:y,onMore:w,countLabelOverride:h,size:_="square"}=e||{},{t:f}=ye.useTranslation(),[A,x]=o.useState(!1),N=o.useRef(null),[k,B]=o.useState(!1);o.useEffect(()=>{N.current?.matches(":hover")&&B(!0)},[]);const{playing:E,playingIndex:S,previewUrls:z,previewHover:R,setPreviewHover:q,previewBtnRef:j,handlePreview:L}=k4(r,a?.key),O=o.useCallback(()=>{y?y():x(!0)},[y]),Z=o.useCallback(()=>x(!1),[]),ee=o.useCallback(()=>B(!0),[]),W=o.useCallback(()=>B(!1),[]),U=o.useCallback(()=>q(!0),[q]),P=o.useCallback(()=>q(!1),[q]),[F,D]=o.useState(null);o.useLayoutEffect(()=>{R&&D(j.current?.getBoundingClientRect()??null)},[R,j]);const[H,M]=o.useState(null);o.useLayoutEffect(()=>{k&&!A&&m&&M(N.current?.getBoundingClientRect()??null)},[k,A,m]);const I=o.useCallback(Ee=>{Ee.target===Ee.currentTarget&&(Ee.key==="Enter"||Ee.key===" ")&&(Ee.preventDefault(),O())},[O]),$=r||null,K=o.useMemo(()=>{if(!m)return null;const Ee=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,ke=Ee&&Ee.length>0?Ee:N4($);return ke&&ke.length>0?ke:null},[m,p,$]),ne=o.useCallback(Ee=>{Ee.stopPropagation(),C?.()},[C]),X=o.useCallback(Ee=>Ee.stopPropagation(),[]),ae=o.useCallback(Ee=>{typeof b=="function"&&b(Ee)},[b]),ue=u||(d&&r?.id!=null?d.has(String(r.id)):!1),le=!ue&&(c!=null&&r?.id!=null?c.has(String(r.id)):!1);nl("speechear.popup.close",Z);const be=mi(),V=`${a?.label||""} ${n+1}`,Q=$?.title||$?.name||V;let oe=a?.icon,Be,Ce="",se="";try{const Ee=$?.category_0||$?.category_main_code||$?.category_main,ke=$?.category_1||$?.category_sub_code||$?.category_sub,Me=be.find(Ve=>Ve.key===Ee);Me?.icon&&(oe=Me.icon),!Be&&Me?.color&&(Be={"--t-item-fg":Me.color}),!Be&&$?.iconColor&&(Be={"--t-item-fg":$.iconColor}),Ce=Me?f(`topic.${Me.key}`,{defaultValue:Me.label||""}):"";try{const Ve=Me?.subs?.find(lt=>lt.key===ke);se=Ve?f(`topic.sub.${Ve.key}`,{defaultValue:Ve.label||""}):""}catch{}}catch{}const ge=se?`${Ce} / ${se}`:Ce||a?.label||Q,fe=Ee=>f("training.countQuestions",{n:Ee}),xe=Ee=>f("training.countSentences",{n:Ee});let $e="";try{if($)if(a?.key==="LISTEN_IN_NOISE"){let Ee=0;Array.isArray($.items)&&$.items.length>0?Ee=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0?Ee=$.sentences.length:$.sentences&&(Ee=1),$e=xe(Ee)}else if(a?.key==="SHORT_STORY"){let Ee=1;Array.isArray(r?.items)?Ee=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Ee=r.raw.items.length:Array.isArray($?.questions)?Ee=$.questions.length:Array.isArray($?.sentences)&&(Ee=$.sentences.length),$e=fe(Ee)}else if(a?.key==="LONG_STORY"){let Ee=1;if(Array.isArray($.items)&&$.items.length>0){const ke=$.items.reduce((Me,Ve)=>{const lt=Ve.questionItems;return Array.isArray(lt)?Me+lt.length:Array.isArray(Ve.questions)?Me+Ve.questions.length:Me},0);Ee=ke>0?ke:$.items.length}else Array.isArray($.questions)&&$.questions.length>0?Ee=$.questions.length:Array.isArray($.sentences)&&$.sentences.length>0&&(Ee=$.sentences.length);$e=fe(Ee)}else if(a?.key==="ORDERING_SENTENCE"){let Ee=1;Array.isArray($.items)&&$.items.length>0?Ee=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0&&(Ee=$.sentences.length),$e=xe(Ee)}else Array.isArray($.items)&&($e=$.items.length>0?fe($.items.length):"")}catch{}const Le=_==="row",Qe=_==="list"||Le,Ue=_==="compact",ze=_==="small",Ie=ze&&a?.key?VC().find(Ee=>Ee.key===a.key):void 0,st=Ie?hi[Ie.key]:void 0,Xe=Ie?st?f(`trainingType.${st}.title`,{defaultValue:Ie.label}):Ie.label??"":"",Je=!!v&&!!a?.label&&a.label!==String(Q)||ze&&!!Xe&&Xe!==String(Q);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:N,className:`training-block-button${Qe?" training-block-button--list":""}${Le?" training-block-button--row":""}${Ue?" training-block-button--compact":""}${ze?" training-block-button--small":""}${ue?" training-block-button--completed":""}${le?" training-block-button--selected":""}${Je&&!ze?" training-block-button--withType":""}${ze&&!Je?" training-block-button--no-type-label":""}`,onClick:O,onPointerEnter:ee,onPointerLeave:W,role:"button",tabIndex:0,onKeyDown:I,"aria-label":typeof s=="string"?s:typeof Q=="string"?Q:void 0,title:!m&&p&&(Array.isArray(p)?p.filter(Boolean).join(`
853
+ `):p)||void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[v&&a?.label&&a.label!==String(Q)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),ze&&Xe&&Xe!==String(Q)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:Xe}),t.jsx(Ml,{icon:oe,label:Q,tooltip:ge,wrapperStyle:Be,iconSize:ze||Ue?"small":"medium"}),!g&&(ue||le)&&!(C&&k)&&t.jsx(xt,{className:C?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":ue?f("training.completed","\uD6C8\uB828 \uC644\uB8CC"):f("training.selected","\uC120\uD0DD\uB428")}),C&&t.jsx(xt,{className:`training-block-button__remove${k?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":f("common.remove","\uC81C\uAC70"),onClick:ne}),t.jsx("div",{className:`training-block-button__title ${Ue?"body-3":ze?"body-3b":"h3"}`,children:String(Q)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const Ee=h!==void 0?h:$e;return Ee?t.jsx("div",{className:`training-block-button__count ${ze?"caption-2":"caption-1"}`,children:Ee}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(Ze,{icon:"chevron-right",label:f("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:ze?12:20})})]}),(Qe&&!Le||ze)&&z.length>0&&t.jsx("div",{ref:j,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:X,onPointerEnter:U,onPointerLeave:P,children:t.jsx(pe,{htmlType:"button",size:ze?28:32,type:"dot",icon:E?"pause":"play",variant:ze?"transparent-lightGray":"default",useBorder:!1,selected:E,ariaLabel:String(Q).trim()?E?f("training.stopFor",{name:Q,defaultValue:`${Q} \uC815\uC9C0`}):f("training.previewFor",{name:Q,defaultValue:`${Q} \uBBF8\uB9AC \uB4E3\uAE30`}):E?f("training.stop","\uC815\uC9C0"):f("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:L})})]}),w&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:Ee=>{Ee.stopPropagation(),w(Ee)},children:t.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(Q).trim()?f("common.moreFor",{name:Q}):f("common.more","\uB354\uBCF4\uAE30")})})]}),R&&t.jsx(vn,{anchorRect:F,text:E?f("training.stop","\uC815\uC9C0"):f("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),k&&!A&&m&&(K?t.jsx(Vn,{anchorRect:H,items:K,activeIndex:S,onClose:W}):$?.subTitle?t.jsx(vn,{anchorRect:H,text:$.subTitle,offset:8,onClose:W}):null),A&&l&&l({trainingData:$,typeKey:a?.key??"",onClose:Z,onComplete:ae,popupTitle:String(Q),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:oe,popupIconTooltip:String(ge),popupWrapperStyle:Be})]})}const Ll=200;function D4(e){return e.itemId?(KC()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function $l({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:s}=ye.useTranslation(),i=o.useMemo(()=>ZC(s).map(u=>({type:u,items:(e.items??[]).filter(d=>d.trainingType===u.key)})).filter(u=>u.items.length>0),[e.items,s]);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:u,items:d},c)=>[c>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${u.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:u.label})}),t.jsx("div",{className:"tooltip-training__items",children:d.map((p,m)=>{const C=D4(p);return C?t.jsx(lo,{index:m,type:u,trainingData:C,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},u.key)])})});return n?t.jsx(on,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const E4=200;function S4({icon:e,count:n,title:a,plan:r,tooltip:s=!0,className:i="",onClick:l,onMouseEnter:u,onMouseLeave:d}){const c=Ne("count-tile",l&&"count-tile--clickable",i),p=o.useRef(null),[m,C]=o.useState(null),g=o.useRef(null),v=o.useRef(null),b=!!(m&&r&&s),y=o.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null),v.current&&(clearTimeout(v.current),v.current=null)},[]),w=o.useCallback(()=>{y(),C(null)},[y]),h=o.useCallback(()=>{!s||!r||(y(),g.current=setTimeout(()=>{g.current=null,C(p.current?.getBoundingClientRect()??null)},Ll))},[s,r,y]),_=o.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null),!v.current&&(v.current=setTimeout(()=>{v.current=null,C(null)},E4))},[]);return o.useEffect(()=>()=>{y()},[y]),o.useEffect(()=>{(!s||!r)&&w()},[s,r,w]),o.useEffect(()=>{if(!b)return;const f=x=>x instanceof Element&&(p.current?.contains(x)||!!x.closest(".tooltip-training")),A=x=>{f(x.target)?y():_()};return document.addEventListener("pointerover",A,!0),()=>document.removeEventListener("pointerover",A,!0)},[b,y,_]),t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:p,className:c,onClick:l?f=>{w(),l(f)}:void 0,onKeyDown:l?f=>{f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),f.currentTarget.click())}:void 0,onPointerEnter:f=>{f.pointerType==="touch"||f.pointerType==="pen"?w():h()},onMouseEnter:u,onMouseLeave:f=>{_(),d?.(f)},role:l?"button":"img",tabIndex:l?0:void 0,"aria-label":`${a} ${n}`,children:[t.jsx(Ze,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]}),m&&r&&t.jsx($l,{plan:r,anchorRect:m,onClose:w})]})}let Sa=0,Rl="",uo="",ja=0;function Pl(){return Il(!1)}function j4(){return Il(!0)}function Il(e){const n=typeof document<"u";Sa===0&&n&&(Rl=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(ja===0&&(uo=document.body.style.paddingRight),ja++,document.body.style.paddingRight="0px"),Sa++;let a=!1;return()=>{a||(a=!0,Sa=Math.max(0,Sa-1),e&&n&&(ja=Math.max(0,ja-1),ja===0&&(uo?document.body.style.paddingRight=uo:document.body.style.removeProperty("padding-right"))),Sa===0&&n&&(document.body.style.overflow=Rl))}}function T4(){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 M4({open:e,onClose:n,ariaLabel:a,title:r,children:s,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:u=!0,showClose:d=!0,className:c,contentClassName:p}){const{t:m}=ye.useTranslation(),C=o.useId(),g=o.useRef(null),v=o.useCallback(()=>n(),[n]);o.useEffect(()=>{if(!e)return;const h=document.activeElement,_=Pl(),f=g.current;return qr(f,h),f?.focus(),()=>{_();const A=document.activeElement;(!A||A===document.body||f&&f.contains(A))&&Ur(h)?.focus?.()}},[e]);const b=o.useRef(v),y=o.useRef(u);o.useEffect(()=>{b.current=v,y.current=u}),o.useEffect(()=>{if(e)return zn(()=>{y.current&&b.current()})},[e]);const w=o.useRef(!1);return Vr(g,e),!e||typeof document>"u"?null:Xt.createPortal(t.jsx("div",{className:Ne("dialog",c),onPointerDown:l?h=>{w.current=h.target===h.currentTarget}:void 0,onMouseDown:h=>{h.target===h.currentTarget&&h.preventDefault()},onClick:l?h=>{const _=w.current;w.current=!1,_&&h.target===h.currentTarget&&v()}:void 0,children:t.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?C:void 0,tabIndex:-1,className:Ne("dialog__surface",`dialog__surface--${i}`,p),onClick:h=>h.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:C,className:"dialog__title h4b",children:r})}):null,d?t.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:v,children:t.jsx(T4,{})}):null,t.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function L4({columns:e,rows:n,rowKey:a,title:r,toolbar:s,empty:i,loading:l,caption:u,className:d=""}){const{t:c}=ye.useTranslation(),p=!l&&n.length===0;return t.jsxs("div",{className:Ne("board",d),children:[r||s?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),s?t.jsx("div",{className:"board__toolbar",children:s}):null]}):null,t.jsxs("table",{className:"board__table",children:[u?t.jsx("caption",{className:"board__caption",children:u}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(m=>t.jsx("th",{scope:"col",className:Ne("board__th",`board__cell--${m.headerAlign??m.align??"left"}`),style:m.width?{width:m.width}:void 0,children:m.header},m.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):p?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:i??c("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):n.map((m,C)=>t.jsx("tr",{className:"board__row",children:e.map(g=>t.jsx("td",{className:Ne("board__td",`board__cell--${g.align??"left"}`),children:g.render(m,C)},g.key))},a(m,C)))})]})]})}function $4({name:e,role:n,photo:a,media:r,credentials:s,size:i=190,className:l=""}){return t.jsxs("div",{className:Ne("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,s?.length?t.jsx("ul",{className:"person-card__credentials",children:s.map(u=>t.jsx("li",{children:u},u))}):null]})}function R4({groups:e,className:n=""}){return t.jsx("div",{className:Ne("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,s)=>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??""}-${s}`))})]},a.title))})}function P4({title:e,kind:n,body:a,badge:r,badgeSrc:s,footer:i,width:l,className:u=""}){const d=r??(s?t.jsx("img",{src:s,alt:""}):null);return t.jsxs("div",{className:Ne("publication-card",u),style:l?{width:l,flexShrink:0}:void 0,children:[d?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:d}):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 I4({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const s=xa(a);return o.useEffect(()=>{const i=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(i)},[r,s]),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 F4({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:s=2,tone:i="dark",className:l=""}){const u=s===1?"h1":"h2";return t.jsxs("div",{className:Ne("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(u,{className:"section-header__title",children:a}):null,r?t.jsx("div",{className:"section-header__description",children:r}):null]})}function O4({items:e,className:n=""}){return t.jsx("ul",{className:Ne("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 Fl(e){return typeof e=="string"?e:e.label}function Ol({value:e,onChange:n,suggestions:a,openOnFocus:r=!1,filterSuggestions:s,onSelectSuggestion:i,autoActiveFirst:l=!1}){const u=o.useId(),[d,c]=o.useState(!1),[p,m]=o.useState(-1),C=o.useRef(null),g=o.useMemo(()=>{if(!a.length)return[];const S=e??"";return s===!1?a:S?typeof s=="function"?s(a,S):a.filter(z=>Fl(z).toLowerCase().includes(S.toLowerCase())):r?a:[]},[a,e,r,s]),[v,b]=o.useState(!1),y=o.useRef([]),w=v&&g.length===0?y.current:g;o.useEffect(()=>{w.length&&(y.current=w)},[w]);const h=o.useCallback(()=>b(!0),[]),_=o.useCallback(()=>b(!1),[]),f=l?0:-1;o.useEffect(()=>{d||m(f)},[d,f]),o.useEffect(()=>()=>{C.current&&clearTimeout(C.current)},[]);const A=p<w.length?p:f<w.length?f:-1,x=o.useCallback(S=>{i?i(S):n?.(Fl(S)),c(!1)},[n,i]),N=o.useCallback(()=>c(!0),[]),k=o.useCallback(()=>{c(!0),m(f)},[f]),B=o.useCallback(()=>{C.current=setTimeout(()=>c(!1),120)},[]),E=o.useCallback(S=>{S.nativeEvent.isComposing||S.keyCode===229||(S.key==="ArrowDown"?(S.preventDefault(),c(!0),m(z=>Math.min(w.length-1,(z<w.length?z:f)+1))):S.key==="ArrowUp"?(S.preventDefault(),m(z=>Math.max(f,(z<w.length?z:w.length)-1))):S.key==="Enter"?A>=0&&x(w[A]):S.key==="Escape"&&d&&(S.preventDefault(),c(!1)))},[w,A,d,x,f]);return{listId:u,open:d,activeIdx:A,filtered:w,handleFocus:N,handleBlur:B,handleInput:k,handleKeyDown:E,handleSelect:x,handleCompositionStart:h,handleCompositionEnd:_}}const co=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Un(e){const{value:n,defaultValue:a,name:r,inputRef:s,onChange:i,label:l,ariaLabel:u,ariaDescribedBy:d,required:c,placeholder:p,ghostText:m,ghostHint:C,type:g="text",disabled:v=!1,readOnly:b=!1,error:y,helperText:w,maxLength:h,size:_=48,variant:f="input",fullWidth:A=!1,newline:x=!1,multiline:N=!1,rows:k=3,leftIcon:B,rightIcon:E,clearable:S=!1,list:z,showCount:R=!0,className:q="",onFocus:j,onBlur:L,onKeyDown:O,onEnter:Z,inputMode:ee,autoComplete:W,autoFocus:U,suggestions:P,filterSuggestions:F,onSelectSuggestion:D,autoActiveFirst:H,openOnFocus:M=!1}=e,I=b||v?void 0:P,{t:$}=ye.useTranslation(),K=o.useId();!l&&!u&&an(`TextField:unnamed:${K}`,"[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 ne=`tf-${K}`,X=`tf-helper-${K}`,ae=o.useRef(null),ue=Ol({value:n??"",onChange:i,suggestions:I??[],openOnFocus:M,filterSuggestions:F,onSelectSuggestion:D,autoActiveFirst:H}),le=!!I&&ue.open&&ue.filtered.length>0,be=o.useRef(null),[V,Q]=o.useState(null),oe=o.useCallback(()=>{const ke=be.current;if(!ke||typeof window>"u")return;const Me=ke.getBoundingClientRect(),Ve=230,lt=window.innerHeight-Me.bottom<Ve+8&&Me.top>Ve+8;Q({position:"fixed",left:Me.left,width:Me.width,...lt?{bottom:window.innerHeight-Me.top+8}:{top:Me.bottom+8},zIndex:Aa(ke)})},[]);co(()=>{if(!le)return;oe();const ke=Me=>{const Ve=Me.target;Ve&&Ve.nodeType===1&&Ve.closest?.(".text-field__suggestions")||oe()};return window.addEventListener("scroll",ke,!0),window.addEventListener("resize",oe),()=>{window.removeEventListener("scroll",ke,!0),window.removeEventListener("resize",oe)}},[le,oe]);const Be=o.useCallback(ke=>{ae.current=ke,typeof s=="function"?s(ke):s&&(s.current=ke)},[s]),Ce=m?`${m}${C??$("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:p,se=n!==void 0,ge=se&&g==="password",[fe,xe]=o.useState((a??"").length),$e=se?(n??"").length:fe,Le=o.useRef(n);co(()=>{Le.current=n}),o.useEffect(()=>{const ke=ae.current;if(!ge||!ke)return;const Me=n??"";ke.value!==Me&&(ke.value=Me)},[ge,n]),o.useEffect(()=>{if(!x||!ae.current)return;const ke=ae.current;ke.style.height="",ke.scrollHeight>ke.clientHeight&&(ke.style.height=`${ke.scrollHeight}px`)},[n,fe,x]);const Qe=h!=null&&$e>h,Ue=_===32?16:20,ze=Ne("text-field",`text-field--s${_}`,f==="display"?"text-field--display":"",A?"text-field--full-width":"",v?"text-field--disabled":"",b?"text-field--readonly":"",y?"text-field--error":"",B?"text-field--has-left-icon":"",E||S?"text-field--has-right-icon":"",q),Ie={id:ne,...ge?{}:se?{value:n}:{defaultValue:a},ref:Be,placeholder:Ce,name:r,disabled:v,readOnly:b,autoFocus:U,maxLength:h,list:z,inputMode:ee,autoComplete:W,"aria-label":!l&&u?u:void 0,"aria-required":c,"aria-invalid":!!y,"aria-describedby":[w||y?X:null,d].filter(Boolean).join(" ")||void 0,role:I?"combobox":void 0,"aria-autocomplete":I?"list":void 0,"aria-haspopup":I?"listbox":void 0,"aria-expanded":I?le:void 0,"aria-controls":le?ue.listId:void 0,"aria-activedescendant":le&&ue.activeIdx>=0?`${ue.listId}-option-${ue.activeIdx}`:void 0,onChange:ke=>{const Me=ke.target;se||xe(Me.value.length),i?.(Me.value),I&&ue.handleInput(),ge&&queueMicrotask(()=>{const Ve=Le.current??"";Me.value!==Ve&&(Me.value=Ve)})},onCompositionStart:I?ue.handleCompositionStart:void 0,onCompositionEnd:I?ue.handleCompositionEnd:void 0,onFocus:(ke=>{j?.(ke),I&&ue.handleFocus()}),onBlur:(ke=>{L?.(ke),I&&ue.handleBlur()}),onKeyDown:(ke=>{const Me=(ke.key==="Tab"&&!ke.shiftKey||ke.key===" ")&&!ke.nativeEvent.isComposing;if(m&&Me&&!b&&!v&&!(ke.currentTarget.value??"").trim()){ke.preventDefault();const Ve=ke.currentTarget;se||(Ve.value=m,xe(m.length)),i?.(m);return}I&&ke.key==="Enter"&&!ke.nativeEvent.isComposing&&ue.activeIdx>=0?ke.preventDefault():Z&&ke.key==="Enter"&&!ke.nativeEvent.isComposing&&(ke.preventDefault(),Z()),O?.(ke),I&&ue.handleKeyDown(ke)})},st=S&&!v&&!b&&$e>0,Xe=()=>x?t.jsx("textarea",{...Ie,className:"text-field__input text-field__input--auto body-2",rows:1}):N?t.jsx("textarea",{...Ie,className:"text-field__input text-field__input--textarea body-2",rows:k}):t.jsx("input",{...Ie,type:g,className:"text-field__input body-2"}),Je=f==="display"&&!x&&!N&&!!Ce,Ee=()=>t.jsxs(t.Fragment,{children:[Xe(),Je&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:Ce})]});return t.jsxs("div",{ref:be,className:ze,children:[l&&t.jsxs("label",{htmlFor:ne,className:"text-field__label caption-1",children:[l,c&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[B&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(Ze,{icon:B,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ue})}),Ee(),h!=null&&R&&t.jsxs("span",{className:`text-field__count caption-2${Qe?" text-field__count--over":""}`,children:[$e,"/",h]}),st&&t.jsx(pe,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:$("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:ke=>{ke.preventDefault()},onClick:()=>{!se&&ae.current&&(ae.current.value="",xe(0)),i?.("")},tabIndex:-1}),E&&!st&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(Ze,{icon:E,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ue})})]}),!!I&&t.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:ue.open&&(n??"").length>0&&ue.filtered.length===0?$("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),le&&(typeof document>"u"?null:Xt.createPortal(t.jsx("ul",{id:ue.listId,className:"text-field__suggestions",role:"listbox",style:V??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:ue.filtered.map((ke,Me)=>t.jsx("li",{id:`${ue.listId}-option-${Me}`,role:"option","aria-selected":Me===ue.activeIdx,className:`text-field__suggestion body-2${Me===ue.activeIdx?" is-active":""}`,onMouseDown:Ve=>Ve.preventDefault(),onClick:()=>{ue.handleSelect(ke),ae.current?.focus()},children:typeof ke=="string"?ke:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-field__suggestion-label",children:ke.label}),ke.hint&&t.jsx("span",{className:"text-field__suggestion-hint caption-1",children:ke.hint})]})},typeof ke=="string"?`${ke}-${Me}`:ke.id))}),document.body)),(w||y)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:X,className:"text-field__helper caption-1",role:y?"alert":void 0,children:y||w})})]})}function ln({options:e,value:n,onChange:a,placeholder:r,disabled:s=!1,block:i=!1,size:l=48,error:u=!1,className:d="",ariaLabel:c,ariaDescribedBy:p}){const{t:m}=ye.useTranslation(),C=r??m("dropdown.placeholder","\uC120\uD0DD"),g=o.useId(),v=o.useId(),b=o.useRef(null),y=o.useCallback((j,L)=>{const O=window.innerHeight-j.bottom<260&&j.top>260;return{position:"fixed",left:j.left,minWidth:j.width,...O?{bottom:window.innerHeight-j.top+6}:{top:j.bottom+6},zIndex:Aa(L)}},[]),{open:w,setOpen:h,toggle:_,style:f,triggerRef:A,menuRef:x}=Ba({computeStyle:y}),[N,k]=o.useState(-1),B=o.useCallback(()=>k(-1),[]),E=e.find(j=>j.value===n);o.useEffect(()=>{if(w){const j=e.findIndex(L=>L.value===n);k(j>=0?j:e.length?0:-1),requestAnimationFrame(()=>{const L=x.current;if(!L)return;const O=L.querySelectorAll(".dropdown__option")[j];O&&(L.scrollTop=Math.max(0,O.offsetTop-L.clientHeight/2+O.clientHeight/2))})}},[w]),o.useEffect(()=>{w&&k(j=>{if(j>=0&&j<e.length)return j;const L=e.findIndex(O=>O.value===n);return L>=0?L:e.length?0:-1})},[w,e.length]);const S=o.useCallback(()=>{s||_()},[s,_]),z=o.useCallback(j=>{j.disabled||s||(j.value!==n&&a?.(j.value),h(!1))},[a,h,s,n]);o.useEffect(()=>{s&&h(!1)},[s,h]);const R=o.useCallback(j=>{if(!s){if(!w){(j.key==="Enter"||j.key===" "||j.key==="ArrowDown")&&(j.preventDefault(),h(!0));return}if(j.key==="Escape"){j.preventDefault(),h(!1);return}j.key==="ArrowDown"?(j.preventDefault(),k(L=>{let O=L+1;for(;O<e.length&&e[O].disabled;)O++;return O<e.length?O:L})):j.key==="ArrowUp"?(j.preventDefault(),k(L=>{let O=L-1;for(;O>=0&&e[O].disabled;)O--;return O>=0?O:L})):(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),e[N]?z(e[N]):h(!1))}},[s,w,e,N,z,h]),q=w?t.jsx("div",{ref:x,id:g,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:f,onMouseLeave:B,onMouseDown:j=>j.preventDefault(),children:e.map((j,L)=>t.jsxs("button",{id:`${g}-option-${L}`,type:"button",role:"option","aria-selected":j.value===n,className:Ne("dropdown__option body-2",j.value===n?"dropdown__option--active":"",L===N?"dropdown__option--active":"",j.disabled?"dropdown__option--disabled":""),onMouseDown:O=>O.preventDefault(),onClick:()=>z(j),onMouseEnter:()=>k(L),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:b,className:Ne("dropdown",`dropdown--s${l}`,w?"dropdown--open":"",i?"dropdown--block":"",u?"dropdown--error":"",d),onKeyDown:R,children:[t.jsxs("button",{ref:A,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":w,"aria-controls":w?g:void 0,"aria-activedescendant":w&&N>=0?`${g}-option-${N}`:void 0,"aria-label":c,"aria-describedby":[c&&E?v:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:S,onBlur:j=>{w&&!x.current?.contains(j.relatedTarget)&&h(!1)},children:[t.jsx("span",{id:v,className:`dropdown__trigger-label body-2${E?"":" dropdown__trigger-label--placeholder"}`,children:E?E.label:C}),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"&&Xt.createPortal(q,b.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function er({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:s,className:i=""}){const{t:l}=ye.useTranslation(),u=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),d=s??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),c=Math.max(1,n),p=()=>a(Math.max(1,Math.min(c,e-1))),m=()=>a(Math.min(c,e+1));return t.jsxs("div",{className:Ne("pagination",i),children:[t.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,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),c)," / ",c]}),t.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:d,disabled:e>=n,onClick:m})]})}const Ta=new Map;function An(e){const{t:n}=ye.useTranslation(),{options:a=[],value:r=a.find(f=>!f.disabled)?.key??a[0]?.key,onChange:s=f=>{},className:i="",size:l=40,shape:u="pill",useBG:d=!0,fullWidth:c=!1,minButtonWidth:p,ariaLabel:m}=e||{},C=o.useRef(null),g=a.filter(f=>!f.disabled),v=o.useId(),b=a.map(f=>f.key).join("\xB7");o.useEffect(()=>{if(!(!br||m!=null&&m!=="")){if(Ta.set(v,b||"(\uBCF4\uAE30 \uC5C6\uC74C)"),Ta.size>1){const f=[...Ta.values()].sort();an(`segmented-control-unnamed:${f.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${Ta.size} \uAC1C \uC11C \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB0AD\uB3C5\uAE30\uB294 \uBAA8\uB450 "\uC120\uD0DD \uD0ED" \uC73C\uB85C \uC77D\uC5B4 \uC5B4\uB290 \uAC83\uC774 \uBB34\uC5C7\uC778\uC9C0 \uAC00\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. ariaLabel \uC744 \uC8FC\uC138\uC694. \uC9C0\uAE08 \uC120 \uAC83(\uBCF4\uAE30 \uC774\uB984\uC73C\uB85C \uC801\uC74C): ${f.join(" / ")}`)}return()=>{Ta.delete(v)}}},[m,b,v]);const y=f=>{if(!g.length)return;const A=Math.max(0,g.findIndex(N=>N.key===r)),x=f==="first"?g[0]:f==="last"?g[g.length-1]:g[(A+f+g.length)%g.length];x&&(s(x.key),Array.from(C.current?.querySelectorAll("[data-segkey]")??[]).find(N=>N.dataset.segkey===x.key)?.focus())},w=f=>{switch(f.key){case"ArrowRight":case"ArrowDown":y(1);break;case"ArrowLeft":case"ArrowUp":y(-1);break;case"Home":y("first");break;case"End":y("last");break;default:return}f.preventDefault()},h=f=>{const A=x=>typeof x=="string"||typeof x=="number";if(!(!A(f.label)||f.count==null||f.count===!1||!A(f.count)))return`${f.label}, ${f.count}`},_=g.some(f=>f.key===r)?r:g[0]?.key;return t.jsx("div",{ref:C,onKeyDown:w,className:Ne("segmented-control",`segmented-control--${u}`,`segmented-control--${l}`,c&&"segmented-control--full",!d&&"segmented-control--no-bg",p!=null&&"segmented-control--min",i),style:p!=null?{"--segmented-min-button-w":`${p}px`}:void 0,role:"radiogroup","aria-label":m??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(f=>t.jsx(pe,{htmlType:"button",role:"radio","aria-checked":f.key===r,"data-segkey":f.key,tabIndex:f.key===_?0:-1,label:f.label,count:f.count,ariaLabel:h(f),disabled:f.disabled,className:f.key===r?"is-selected":"",onClick:()=>{f.disabled||s(f.key)},size:l,shape:u,useBorder:!1,useBG:!1},f.key))})}function po({count:e,search:n,segment:a,filters:r,pageSize:s,pagination:i,actions:l,className:u}){const{t:d}=ye.useTranslation(),c=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??d("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(n||r?.length||s||i||l);return t.jsxs("div",{className:Ne("toolbar",u),children:[t.jsxs("div",{className:"toolbar__row",children:[c,a&&(Array.isArray(a)?a:[a]).map((m,C)=>t.jsx(An,{size:40,...m},m.ariaLabel??C))]}),p&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(Un,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??d("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??d("common.search","\uAC80\uC0C9"),autoFocus:n.autoFocus,clearable:!0}),r?.map((m,C)=>t.jsx(ln,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},C)),(s||i)&&t.jsxs("div",{className:"toolbar__pager",children:[s&&t.jsx(ln,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??d("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&t.jsx(er,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel})]}),l]})})]})}function Hl(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Hl).join(""):""}function H4(e){let n=e.replace(/\r\n/g,`
854
854
  `).replace(/\r/g,`
855
855
  `);n=n.replace(/^\n+/,"").replace(/\n+$/,"");const a=n.split(`
856
856
  `).map(i=>i.replace(/\t/g," ")),r=a.filter(i=>i.trim().length>0),s=r.length>0?Math.min(...r.map(i=>i.match(/^ */)?.[0].length??0)):0;return a.map(i=>i.slice(s)).join(`
857
857
  `)}const z4=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),V4=/^(?: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=[],s=/^(?:sh|bash|zsh|shell|console)$/.test(n.toLowerCase()),i=(l,u)=>r.push({type:l,content:u});for(;a.length>0;){const l=a.match(/^\s+/);if(l){i("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!s&&a.startsWith("//")){const v=a.indexOf(`
858
858
  `),b=v===-1?a:a.slice(0,v);i("comment",b),a=a.slice(b.length);continue}if(s&&a.startsWith("#")){const v=a.indexOf(`
859
- `),b=v===-1?a:a.slice(0,v);i("comment",b),a=a.slice(b.length);continue}const u=a.match(/^\/\*[\s\S]*?\*\//);if(u){i("comment",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(d){i("string",d[0]),a=a.slice(d[0].length);continue}const c=a.match(/^\d+(?:\.\d+)?/);if(c){i("number",c[0]),a=a.slice(c[0].length);continue}const p=a.match(V4);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 v=m[0];i(s&&z4.has(v)?"command":"identifier",v),a=a.slice(v.length);continue}const C=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(C){i("operator",C[0]),a=a.slice(C[0].length);continue}const g=a.match(/^[()[\]{};.,]/);if(g){i("punctuation",g[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function q4({children:e,language:n="bash",title:a="",showCopy:r=!0,size:s="default",className:i=""}){const{t:l}=ye.useTranslation(),[u,d]=o.useState(!1),c=H4(Hl(e)),p=o.useRef(null);o.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await LC(c))return;d(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>d(!1),2e3)}catch{}},C=W4(c,n),g=s==="small"?"caption-1":"body-3";return t.jsxs("div",{className:De("code-box",s==="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(pe,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:u?"check":"copy",onClick:m,ariaLabel:u?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:C.map((v,b)=>t.jsx("span",{className:`code-token ${v.type} ${g}`,children:v.content},b))})})]})}const U4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Ma(e){const{t:n}=ye.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:i}=e||{},l=i||n("loader.loading","Loading");if(a==="bar"){const d=s==null||!Number.isFinite(Number(s)),c=d?0:Math.max(0,Math.min(100,Number(s)));return t.jsx("div",{className:`loader-bar${d?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d?void 0:c,"aria-label":l,children:t.jsx("div",{className:"loader-bar__inner",style:d?void 0:{width:`${c}%`}})})}const u=typeof r=="number"?`${r}px`:r;return t.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":l,children:[t.jsx("span",{style:U4,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 zl({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:s,labelPosition:i="right",className:l="",id:u}){const d=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"&&d,t.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:c=>n?.(c.target.checked),"aria-label":!r&&s?s:void 0}),t.jsx("span",{className:"toggle__slider"}),i==="right"&&d]})}function Vl({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:s,size:i="medium",className:l,title:u,ariaLabel:d}){const c=o.useRef(null),p=o.useId(),m=o.useRef(!!r);return m.current=!!r,o.useEffect(()=>{c.current&&(c.current.indeterminate=!!r)}),t.jsxs("label",{className:De("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:u,children:[t.jsx("input",{ref:c,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:C=>{n?.(C.target.checked),c.current&&(c.current.indeterminate=m.current)},disabled:a,"aria-label":!s&&d?d:void 0}),t.jsx("span",{className:"checkbox__box"}),s&&t.jsx("span",{className:"checkbox__label body-3",children:s})]})}function G4({count:e,actions:n,onClear:a,clearLabel:r,visible:s,content:i,max:l}){const{t:u}=ye.useTranslation(),d=s!==void 0?s:e>0,c=r??u("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=o.useRef(null),m=o.useRef(null),C=o.useRef(null),g=o.useRef(d);o.useLayoutEffect(()=>{const h=m.current,_=g.current;if(g.current=d,d&&!_){const f=typeof document<"u"?document.activeElement:null;C.current=f&&f!==document.body&&!h?.contains(f)?f:null}else!d&&_&&h&&h.contains(document.activeElement)&&Ga(h,C.current)},[d]);const[v,b]=o.useState(!1),y=o.useRef(!1),w=o.useRef(null);return o.useEffect(()=>{const h=p.current;if(!h)return;const _=B=>{y.current=B,b(B)},f=()=>{const B=h.firstElementChild??h,E=Array.from(B.children);if(E.length<2){_(!1);return}const S=E[0].offsetTop,z=E.some(O=>O.offsetTop!==S);if(!y.current){w.current=h.clientWidth,z&&_(!0);return}if(z)return;const R=E[0],q=E[E.length-1],j=q.offsetLeft+q.offsetWidth-R.offsetLeft,L=w.current;(L==null||j<=L)&&_(!1)};if(f(),typeof ResizeObserver>"u")return;const A=new ResizeObserver(f);A.observe(h);const x=h.parentElement;let N=x?.clientWidth??0;const k=new ResizeObserver(()=>{const B=x?.clientWidth??0;B!==N&&(N=B,w.current=null,f())});return x&&k.observe(x),()=>{A.disconnect(),k.disconnect()}},[i,e]),t.jsxs("div",{ref:m,className:`bulk-bar ${d?"bulk-bar--visible":""}`,inert:!d||void 0,"aria-hidden":d?void 0:!0,children:[t.jsx("span",{ref:p,className:"bulk-bar__count body-2",role:"status",children:i??t.jsx("b",{children:u("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(xt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`,"aria-label":u("common.selectedOfMax",{count:e,max:l,defaultValue:`\uCD5C\uB300 ${l}\uAC1C \uC911 ${e}\uAC1C`})}),t.jsxs("div",{className:`bulk-bar__actions${v?" bulk-bar__actions--stacked":""}`,children:[t.jsx(pe,{htmlType:"button",size:40,label:c,onClick:a}),n.map((h,_)=>t.jsx(pe,{htmlType:"button",size:40,variant:h.variant??"default",icon:h.icon,label:h.label,onClick:h.onClick},_))]})]})}const K4=[{\uC5F4\uC1E0:"edit",icon:"edit-2",\uB2EB\uACE0\uD560\uAE4C:!0},{\uC5F4\uC1E0:"duplicate",icon:"copy",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"publish",icon:"book-marked",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"copyLink",icon:"link",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"remove",icon:"trash-2",\uB2EB\uACE0\uD560\uAE4C:!0}];function Y4(e){const{onClose:n,className:a}=e;return t.jsx("div",{className:De("item-actions",a),children:K4.map(({\uC5F4\uC1E0:r,icon:s,\uB2EB\uACE0\uD560\uAE4C:i})=>{const l=e[r];if(!l)return null;const u=r==="publish"?l.published?l.unpublish:l.publish:l;return t.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:s,ariaLabel:u.label,showTooltipInfo:u.label,onClick:()=>{i&&n(),u.onClick()}},r)})})}function Wl(e,n){const a=()=>{if(e){const[b,y]=e.split("-");return{y:+b,m:+y-1}}const[g,v]=Or(n).split("-");return{y:+g,m:+v-1}},[r,s]=o.useState(()=>a().y),[i,l]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const g=a();s(g.y),l(g.m)},[e]);const d=o.useRef({y:r,m:i});o.useEffect(()=>{d.current={y:r,m:i}},[r,i]);const c=o.useCallback(g=>{const v=d.current.y*12+d.current.m+g,b=Math.floor(v/12),y=v-b*12;d.current={y:b,m:y},s(b),l(y)},[]),p=o.useCallback(()=>c(-1),[c]),m=o.useCallback(()=>c(1),[c]),C=o.useCallback((g,v)=>{d.current={y:g,m:v},s(g),l(v)},[]);return{viewY:r,viewM:i,prevMonth:p,nextMonth:m,setViewYM:C}}function tr(e,n){return new Date(e,n+1,0).getDate()}function Z4(e,n){return new Date(e,n,1).getDay()}function nr(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function X4(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function J4(e,n,a,r){const s=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let u=s;u<=i;u++)for(let d=0;d<12;d++){const c=`${u}-${String(d+1).padStart(2,"0")}`;a&&c<a.slice(0,7)||r&&c>r.slice(0,7)||l.push({value:c,label:n(u,d+1)})}return l}function Q4({value:e,onChange:n,size:a=48,min:r,max:s,disabled:i,placeholder:l,className:u,today:d}){const{t:c}=ye.useTranslation(),p=l??c("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),m=o.useMemo(()=>c("calendar.dow",{returnObjects:!0}),[c]),C=Or(d),{viewY:g,viewM:v,prevMonth:b,nextMonth:y,setViewYM:w}=Wl(e,d),h=o.useId(),_=o.useCallback((D,H)=>{const M=window.innerHeight,I=window.innerWidth,$=typeof document<"u"?document.getElementById(h):null,K=Math.max($?.offsetHeight||0,$?.scrollHeight||0)||300,ne=Math.max(D.width,$?.offsetWidth||0,260),X=M-D.bottom,ae=D.top,ue=X<K&&ae>X,le=8,be=(V,ee)=>Math.min(Math.max(le,V),Math.max(le,ee));return{position:"fixed",left:be(D.left,I-ne-le),width:D.width,minWidth:260,...ue?{top:"auto",bottom:be(M-D.top+6,M-K-le)}:{bottom:"auto",top:be(D.bottom+6,M-K-le)},zIndex:Aa(H)}},[h]),{open:f,setOpen:A,toggle:x,style:N,triggerRef:k,menuRef:B}=Ba({computeStyle:_,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!f)return;const D=B.current;return(D?.querySelector(".date-picker__day--selected:not(:disabled)")??D?.querySelector(".date-picker__day--today:not(:disabled)")??D?.querySelector(".date-picker__day:not(:disabled)")??D?.querySelector(mn)??D)?.focus?.(),()=>{const H=document.activeElement;(!H||H===document.body)&&k.current?.focus?.()}},[f,B,k]);const[E,S]=o.useState(1),z=o.useRef(null),R=o.useRef(null);o.useEffect(()=>{if(!f)return;const D=e&&e.slice(0,7)===`${g}-${String(v+1).padStart(2,"0")}`?+e.slice(8):C.slice(0,7)===`${g}-${String(v+1).padStart(2,"0")}`?+C.slice(8):1;S(D)},[f]),o.useEffect(()=>{if(R.current==null)return;const D=R.current;R.current=null,z.current?.querySelector(`[data-day="${D}"]`)?.focus()}),o.useEffect(()=>{S(D=>Math.min(D,tr(g,v)))},[g,v]);const q=o.useCallback(D=>{let H=nr(D.getFullYear(),D.getMonth(),D.getDate());r&&H<r&&(H=r),s&&H>s&&(H=s);const[M,I,$]=H.split("-").map(Number);(M!==g||I-1!==v)&&w(M,I-1),S($),R.current=$},[r,s,g,v,w]),j=o.useCallback(D=>{const H=new Date(g,v,E),M=$=>{H.setDate(H.getDate()+$),q(H)},I=$=>{const K=H.getFullYear()*12+H.getMonth()+$,ne=Math.floor(K/12),X=K-ne*12;q(new Date(ne,X,Math.min(H.getDate(),tr(ne,X))))};switch(D.key){case"ArrowLeft":M(-1);break;case"ArrowRight":M(1);break;case"ArrowUp":M(-7);break;case"ArrowDown":M(7);break;case"Home":M(-H.getDay());break;case"End":M(6-H.getDay());break;case"PageUp":D.shiftKey?I(-12):I(-1);break;case"PageDown":D.shiftKey?I(12):I(1);break;default:return}D.preventDefault()},[g,v,E,q]),L=o.useCallback(D=>{i||(n(nr(g,v,D)),A(!1))},[g,v,n,A,i]);o.useEffect(()=>{i&&A(!1)},[i,A]);const O=D=>{const H=nr(g,v,D);return!!(r&&H<r||s&&H>s)},Z=(()=>{const D=tr(g,v);if(E>=1&&E<=D&&!O(E))return E;for(let H=1;H<=D;H++)if(!O(H))return H;return-1})(),te=[];for(let D=0;D<Z4(g,v);D++)te.push(null);for(let D=1;D<=tr(g,v);D++)te.push(D);const W=a===64?20:a===40?16:18,U=J4(g,(D,H)=>c("calendar.yearMonth",{year:D,month:H,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,s),P=`${g}-${String(v+1).padStart(2,"0")}`,F=f?Xt.createPortal(t.jsxs("div",{ref:B,id:h,className:"date-picker__dropdown",style:N,"data-tooltip-ignore":!0,role:"dialog","aria-label":c("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:b,"aria-label":c("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(ls,{size:16,strokeWidth:2})}),t.jsx(ln,{className:"date-picker__nav-dropdown",ariaLabel:c("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:U,value:P,onChange:D=>{const[H,M]=D.split("-");w(+H,+M-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:y,"aria-label":c("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(us,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:z,onKeyDown:j,children:[m.map(D=>t.jsx("div",{className:"date-picker__dow caption-1",children:D},D)),te.map((D,H)=>{if(D===null)return t.jsx("div",{},`e${H}`);const M=nr(g,v,D),I=M===e,$=M===C,K=O(D),ne=H%7;return t.jsx("button",{type:"button",disabled:K,"data-day":D,tabIndex:D===Z?0:-1,"aria-current":$?"date":void 0,onClick:()=>!K&&L(D),className:De("date-picker__day caption-1",I&&"date-picker__day--selected",$&&!I&&"date-picker__day--today",K&&"date-picker__day--disabled",ne===0&&"date-picker__day--sun",ne===6&&"date-picker__day--sat"),children:D},D)})]})]}),document.body):null;return t.jsxs("div",{className:De("date-picker",`date-picker--s${a}`,f&&"date-picker--open",u),children:[t.jsxs("button",{ref:k,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&x(),disabled:i,"aria-haspopup":"true","aria-expanded":f,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?X4(e):p}),t.jsx(bs,{size:W,className:"date-picker__icon",strokeWidth:1.5})]}),F]})}function ql({children:e,className:n}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useEffect(()=>{s(a.current?.parentElement??null)},[]),o.useEffect(()=>{const i=a.current;if(!i||!r)return;const l=()=>{const d=typeof window<"u"&&window.getComputedStyle(i).position==="absolute"?Math.ceil(i.getBoundingClientRect().width):0;d>0?r.style.setProperty("--section-head-float-w",`${d}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const u=new ResizeObserver(()=>l());return u.observe(i),u.observe(r),()=>{u.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),t.jsx("div",{ref:a,className:De("section-head-float",n),children:e})}function mo({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 La({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 ho({title:e,titleClassName:n="h3",titleLevel:a=3,icon:r,disc:s,headRight:i,headFloat:l,headSegment:u,headMenuItems:d,collapseBelow:c=420,onClick:p,ariaLabel:m,tooltip:C,totalNum:g,totalUnit:v,totalLabel:b,subRow:y,subRowAlign:w="start",className:h,inGrid:_=!1,children:f}){const{t:A}=ye.useTranslation(),x=o.useRef(null),{anchorRect:N,openAt:k,close:B}=wa(),E=o.useCallback(()=>{C&&x.current&&k(x.current)},[C,k]),[S,z]=o.useState(!1);co(()=>{const M=x.current;if(!M||!u)return;const I=K=>z(K>0&&K<c);if(I(M.clientWidth),typeof ResizeObserver>"u")return;const $=new ResizeObserver(K=>I(K[0].contentRect.width));return $.observe(M),()=>$.disconnect()},[u,c]);const[R,q]=o.useState(null),j=o.useCallback(()=>q(null),[]),L=o.useCallback(M=>{const I=M.currentTarget.getBoundingClientRect();q($=>$?null:{left:I.left,right:I.right,top:I.top,bottom:I.bottom,width:I.width,height:I.height,x:I.x,y:I.y})},[]),O=!!u&&S;o.useEffect(()=>{O||q(null)},[O]);const Z=u?[...u.options.map(M=>({label:M.label,icon:M.icon,selected:M.key===u.value,disabled:M.disabled,onClick:()=>u.onChange(M.key),closeOnSelect:!0})),...(d??[]).map((M,I)=>I===0?{...M,separatorBefore:!0}:M)]:[],te=o.useCallback(M=>{if(!p)return;const I=M.target;I&&typeof I.closest=="function"&&I.closest('button, a, input, select, textarea, [role="radiogroup"]')||p()},[p]),W=o.useCallback(M=>{p&&M.target===M.currentTarget&&(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),p())},[p]),U=typeof i=="function"?i({collapsed:O}):i,P=g!=null||b?t.jsxs(La,{label:b,children:[g!=null&&t.jsx("span",{className:"barchart-total__num h0",children:g}),v&&t.jsx("span",{className:"barchart-total__unit h5",children:v})]}):null,F=U||u?t.jsxs("div",{className:"manager-section__head-right",children:[u&&(O?t.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:u.ariaLabel??A("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:u.ariaLabel??A("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!R,onClick:L}):t.jsx(An,{size:32,ariaLabel:u.ariaLabel,options:u.options.map(M=>({key:M.key,label:M.label,disabled:M.disabled})),value:u.value,onChange:u.onChange})),U]}):null,D=o.useId(),H=a?`h${a}`:"div";return t.jsxs("section",{ref:x,className:["manager-section",_&&"manager-section--grid",p&&"manager-section--clickable",h].filter(Boolean).join(" "),onClick:p?te:void 0,onKeyDown:p?W:void 0,onPointerEnter:C?E:void 0,onPointerLeave:C?B:void 0,onFocus:C?E:void 0,onBlur:C?B:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,"aria-label":p?m??(typeof e=="string"?e:void 0):void 0,"aria-labelledby":!p&&e!=null?D:void 0,children:[C&&N&&t.jsx(vn,{anchorRect:{left:N.left,top:N.top+21,right:N.right,bottom:N.bottom,width:N.width,height:N.height},text:C}),l&&t.jsx(ql,{children:l}),t.jsxs("div",{className:"manager-section__head",children:[t.jsxs("div",{className:"manager-section__title-row",children:[r&&t.jsx(Ze,{icon:r,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),t.jsx(H,{id:D,className:["manager-section__title",n].filter(Boolean).join(" "),children:e})]}),F,s&&t.jsx("div",{className:"manager-section__disc body-3",children:s})]}),(P||y)&&t.jsxs("div",{className:["barchart-sub-row",w!=="start"&&`barchart-sub-row--${w}`].filter(Boolean).join(" "),children:[P,y]}),f,R&&t.jsx(on,{anchorRect:R,onClose:j,ariaLabel:u?.ariaLabel??A("tooltip.menu","\uBA54\uB274"),children:t.jsx(ka,{columns:[{items:Z}],onClose:j,size:"small"})})]})}function hn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function ey(){const e=Jn();let n=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<hn(n,a)){const l=new Date(n,a,0);n=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const s=Math.floor((r-hn(n,a))/7),i=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${s}`}}function ty(e){const n=Jn(),a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(d,c)=>`${d}\uB144 ${c+1}\uC6D4`,s=new Map;s.set(a,[]);for(const d of e){if(isNaN(d.date.getTime()))continue;const c=r(d.date.getFullYear(),d.date.getMonth());s.has(c)||s.set(c,[]),s.get(c).push(d)}for(const[d,c]of[...s.entries()]){const p=d.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),C=Number(p[2])-1,g=hn(m,C);if(!(d===a&&n.getDate()<g)&&!c.some(y=>y.date.getDate()<g))continue;const v=new Date(m,C,0),b=r(v.getFullYear(),v.getMonth());s.has(b)||s.set(b,[])}const i=new Map;for(const[d,c]of s){const p=d.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),C=Number(p[2])-1,g=new Date(m,C+1,0).getDate(),v=c.reduce((f,A)=>Math.max(f,A.parts?.length??0,A.partsB?.length??0),0),b=c.some(f=>f.partsB),y=new Array(g+1).fill(0),w=new Array(g+1).fill(0),h=Array.from({length:g+1},()=>new Array(v).fill(0)),_=Array.from({length:g+1},()=>new Array(v).fill(0));for(const f of c){const A=f.date.getDate();if(y[A]+=f.a,w[A]+=f.b,f.parts)for(let x=0;x<v;x++)h[A][x]+=f.parts[x]??0;if(f.partsB)for(let x=0;x<v;x++)_[A][x]+=f.partsB[x]??0}i.set(d,{year:m,month:C,daysInMonth:g,partsLen:v,hasPartsB:b,dayA:y,dayB:w,dayParts:h,dayPartsB:_})}const l=(d,c,p)=>new Date(d,c,p).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),u={};for(const[d,c]of i){const{year:p,month:m,daysInMonth:C,dayA:g,dayB:v,dayParts:b,dayPartsB:y}=c,w=p===n.getFullYear()&&m===n.getMonth(),h=n.getDate(),_=i.get(r(m===11?p+1:p,(m+1)%12)),f=c.partsLen,A=[];for(let N=1;N<=C;N++){const k=w&&N>h;A.push({label:String(N),...k&&g[N]===0&&v[N]===0?{future:!0}:{},a:k&&g[N]===0&&v[N]===0?-1:g[N],b:v[N],...f?{parts:b[N]}:{},...f&&c.hasPartsB?{partsB:y[N]}:{}})}const x=[];for(let N=hn(p,m);N<=C;N+=7){const k=Math.max(0,N+6-C),B=k&&_?Math.max(f,_.partsLen):f,E=c.hasPartsB||!!(k&&_?.hasPartsB);let S=0,z=0;const R=new Array(B).fill(0),q=new Array(B).fill(0);for(let L=N;L<=Math.min(N+6,C);L++){S+=g[L],z+=v[L];for(let O=0;O<f;O++)R[O]+=b[L][O],q[O]+=y[L][O]}if(k&&_)for(let L=1;L<=k&&!l(_.year,_.month,L);L++){S+=_.dayA[L],z+=_.dayB[L];for(let O=0;O<_.partsLen;O++)R[O]+=_.dayParts[L][O],q[O]+=_.dayPartsB[L][O]}const j=k?`${(m+1)%12+1}/${k}`:`${N+6}`;x.push({label:`${x.length+1}\uC8FC`,sublabel:`[${N}\uC77C~${j}\uC77C]`,a:S,b:z,...B?{parts:R}:{},...B&&E?{partsB:q}:{}})}u[d]={weekly:x,daily:A}}return u}function Ul(){const e=Jn(),n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let s=2024;s<=n;s++){const i=s===n?a:12;for(let l=1;l<=i;l++){const u=`${s}\uB144 ${l}\uC6D4`;r.push({value:u,label:u,year:s,month:l})}}return r.reverse()}Ul();function ny(){return Ul()}const Gl=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Kl(e){const{t:n,i18n:a}=ye.useTranslation(),[r,s]=o.useState("week"),i=o.useMemo(()=>ny().filter(B=>B.value in e),[e]),l=o.useMemo(()=>{const B=[];for(const E of i){const S=new Date(E.year,E.month,0).getDate(),z=hn(E.year,E.month-1),R=Math.ceil((S-z+1)/7);for(let q=R-1;q>=0;q--)B.push({value:`${E.value}#${q}`,monthKey:E.value,year:E.year,month:E.month,week:q})}return B},[i]),u=o.useCallback(B=>{const E=n("calendar.yearMonth",{year:B.year,month:B.month});return a.language?.startsWith("ko")?`${E} ${Gl[B.week]??`${B.week+1}`}\uC8FC`:`${E} Week ${B.week+1}`},[n,a.language]),d=o.useMemo(()=>i.map(B=>({value:B.value,label:n("calendar.yearMonth",{year:B.year,month:B.month})})),[n,i]),c=o.useMemo(()=>l.map(B=>({value:B.value,label:u(B)})),[l,u]),p=o.useMemo(()=>ey(),[e]),m=o.useMemo(()=>i.find(B=>B.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),C=o.useMemo(()=>l.find(B=>B.value===p.value)?.value??l[0]?.value??"",[l,p]),[g,v]=o.useState(""),[b,y]=o.useState("");o.useEffect(()=>{i.find(B=>B.value===g)||v(m)},[i,g,m]),o.useEffect(()=>{l.find(B=>B.value===b)||y(C)},[l,b,C]);const w=r==="month"?d:c,h=r==="month"?g:b,_=r==="month"?v:y,f=o.useMemo(()=>{const B=n("calendar.dow",{returnObjects:!0});return Array.isArray(B)?B:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),A=w.findIndex(B=>B.value===h),x=o.useCallback(()=>{const B=w.findIndex(E=>E.value===h);B<w.length-1&&_(w[B+1].value)},[w,h,_]),N=o.useCallback(()=>{const B=w.findIndex(E=>E.value===h);B>0&&_(w[B-1].value)},[w,h,_]),k=o.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:s,range:h,setRange:_,activeOptions:w,activeIdx:A,handlePrev:x,handleNext:N,periodOptions:k,monthRange:g,weekRange:b,weekRanges:l,DOW:f}}const ht=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function Bn(e,n=!0){return e.future===!0||n&&e.a===-1}function ay({data:e,colorA:n,colorB:a,labelA:r,labelB:s,barWidth:i=10,barGap:l=1,height:u=140,maxOverride:d,tightMax:c,seriesColors:p,seriesLabels:m,rateLabels:C,grouped:g=!1,baseline:v,focusableBars:b=!1}){const y=!a,w=!!(p&&p.length>0),h=v,_=o.useMemo(()=>w?Math.max(0,...e.filter(W=>!Bn(W,h==null)).map(W=>g?Math.max(0,...(W.parts??[]).map(ht)):(W.parts??[]).reduce((U,P)=>U+Math.max(0,ht(P)),0))):Math.max(0,...e.filter(W=>!Bn(W,h==null)).flatMap(W=>y?[ht(W.a)]:[ht(W.a),ht(W.b)])),[e,y,w,g]),f=o.useMemo(()=>{if(h==null)return 0;const W=e.filter(U=>!Bn(U,h==null)).flatMap(U=>w?(U.parts??[]).map(ht):y?[ht(U.a)]:[ht(U.a),ht(U.b)]);return Math.max(0,...W.map(U=>Math.abs(U-h)))},[e,h,w,y]),A=o.useMemo(()=>{const W=h!=null?f:_;return d??(c?W>0?W:10:Math.ceil(W/10)*10||10)},[_,f,h,d,c]),x=u,N=w?g?Math.max(1,p.length):1:y?1:2,k={"--bar-width":`${o.useMemo(()=>{const W=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/(W*N)+6)))},[e.length,N,i])}px`},B={"--bar-group-gap":`${Math.max(0,l)}px`},E=o.useMemo(()=>{const W=Math.round(A/2);return h!=null?[h+A,...W!==A?[h+W]:[],h,...W!==A?[h-W]:[],h-A]:W!==A?[A,W,0]:[A,0]},[A,h]),S=W=>h!=null?1-(W-(h-A))/(2*A):1-W/A,[z,R]=o.useState(null),q=o.useCallback(()=>R(null),[]),j=o.useCallback((W,U)=>{const P=[W.label,W.sublabel].filter(Boolean).join(" ");let F;if(w&&g&&W.rawPartsB)F=(m??[]).map((D,H)=>{const M=W.rawPartsB[H]??0;return{text:M>0?`${D}: ${U[H]??0}% (${W.rawParts?.[H]??0}/${M})`:`${D}: -`,color:(p??[])[H]}});else if(w&&g)F=(m??[]).map((D,H)=>({text:`${D}: ${Z(U[H]??0)}`,color:(p??[])[H]}));else if(w){const D=(m??[]).map((M,I)=>({text:`${M}: ${U[I]??0}`,color:(p??[])[I]})),H=D.filter((M,I)=>(U[I]??0)>0);F=H.length?H:D}else C&&!y?F=[{text:`${r} ${ht(W.a)}%`,color:n},{text:`${s} ${ht(W.b)}%`,color:a}]:C&&W.rawB!==void 0?F=[{text:`${C.total} ${W.rawB}`},{text:`${C.done} ${W.rawA??0}`,color:n}]:y?F=[{text:`${r}: ${ht(W.a)}`,color:n}]:F=[{text:`${r}: ${ht(W.a)}`,color:n},{text:`${s}: ${ht(W.b)}`,color:a}];return{title:P,items:F}},[w,g,m,p,C,y,r,s,n,a,h]),L=o.useCallback((W,U,P)=>{const F=W.getBoundingClientRect(),{title:D,items:H}=j(U,P);R({rect:{left:F.left,top:F.top,right:F.right,bottom:F.bottom,width:F.width,height:F.height},title:D,items:H})},[j]),O=o.useCallback((W,U)=>{const{title:P,items:F}=j(W,U);return[P,...F.map(D=>D.text)].filter(Boolean).join(", ")},[j]),Z=W=>h!=null&&W>h?`+${W}`:`${W}`,te=z!=null;return o.useEffect(()=>{if(!te)return;const W=()=>R(null),U=P=>{const F=P.target;F&&typeof F.closest=="function"&&F.closest(".manager-bar-chart-col")||R(null)};return window.addEventListener("scroll",W,!0),document.addEventListener("pointerdown",U,!0),()=>{window.removeEventListener("scroll",W,!0),document.removeEventListener("pointerdown",U,!0)}},[te]),t.jsxs("div",{className:"manager-bar-chart-wrap",style:B,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:x},children:[E.slice(0,-1).map((W,U)=>t.jsx("div",{className:`manager-bar-chart-gridline${h!=null&&W===h?" manager-bar-chart-gridline--baseline":""}`,style:{top:S(W)*x},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:W})},U)),e.map((W,U)=>{const P=Bn(W,h==null),F=x/2,D=$=>h!=null?Math.min(F,Math.abs(ht($)-h)/A*F):Math.min(x,Math.max(0,ht($)/A*x)),H=P?0:D(W.a),M=P?0:D(W.b),I=(W.parts??[]).map(ht);return t.jsx("div",{className:`manager-bar-chart-col${g&&w?" manager-bar-chart-col--group":""}`,style:{cursor:P?"default":"pointer"},tabIndex:b&&!P?0:void 0,role:b&&!P?"img":void 0,"aria-label":b&&!P?O(W,I):void 0,onMouseEnter:P?void 0:$=>L($.currentTarget,W,I),onFocus:P||!b?void 0:$=>L($.currentTarget,W,I),onBlur:b?q:void 0,onMouseLeave:q,children:!P&&(w&&g?(p??[]).map(($,K)=>{const ne=I[K]??0;if(h==null)return t.jsx("div",{className:"manager-bar-chart-bar",style:{...k,height:D(ne),background:$}},K);const X=ht(ne)<h;return t.jsxs("div",{className:"manager-bar-chart-slot",style:k,children:[t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!X&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:D(ne),background:$}})}),t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:X&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:D(ne),background:$}})})]},K)}):w?t.jsx("div",{className:"manager-bar-chart-stack",style:k,children:(()=>{const $=I.reduce((ne,X,ae)=>X>0?ae:ne,-1);let K=x;return I.map((ne,X)=>{if(ne<=0)return null;const ae=Math.min(K,ne/A*x);return K-=ae,t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:ae,background:(p??[])[X],borderRadius:X===$?"6px 6px 0 0":void 0}},X)})})()}):h!=null?t.jsx(t.Fragment,{children:[{v:ht(W.a),c:n},...y?[]:[{v:ht(W.b),c:a}]].map(({v:$,c:K},ne)=>t.jsxs("div",{className:"manager-bar-chart-slot",style:k,children:[t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:$>=h&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:D($),background:K}})}),t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:$<h&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:D($),background:K}})})]},ne))}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...k,height:H,background:n}}),!y&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...k,height:M,background:a}})]}))},U)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((W,U)=>{const P=Bn(W,h==null);return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${P?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[W.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),W.label]}),W.sublabel&&t.jsx("span",{className:"caption-1",children:W.sublabel})]},U)})})]})})}),z&&t.jsx(Vn,{anchorRect:z.rect,title:z.title,items:z.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Yl({control:e}){const{t:n}=ye.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:i,handlePrev:l,handleNext:u,periodOptions:d,period:c,setPeriod:p}=e,m=c==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),C=c==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),t.jsx(ln,{value:s,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:C,showTooltipInfo:C,disabled:r<=0,onClick:u}),t.jsx(An,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:d,value:c,onChange:g=>p(g),size:40})]})}function Co(e,n,a,r=!0){const s=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(i,l)=>{const u=new Date(n);u.setDate(n.getDate()+l);const d=(e[`${u.getFullYear()}\uB144 ${u.getMonth()+1}\uC6D4`]?.daily??[])[u.getDate()-1],c=d!=null&&Bn(d,r)||u>s;return{dt:u,entry:d,isFuture:c}})}function ry(e,n,a,r,s=!0){const{period:i,monthRange:l,weekRange:u,weekRanges:d,DOW:c}=n,p=r?.startsWith("ko"),m=Jn(),C=m.getFullYear(),g=m.getMonth()+1,v=m.getDate();if(i==="month"){const w=e[l]??{weekly:[],daily:[]},h=l.match(/^(\d+)년 (\d+)월$/),_=h?Number(h[1]):null,f=h?Number(h[2]):null,A=_&&f?hn(_,f-1):1;return w.weekly.map((x,N)=>{const k=N+1;let B=x.label,E=!1,S=!1;if(_&&f){const z=A+N*7,R=new Date(_,f-1,z+6),q=R.getMonth()+1,j=R.getDate(),L=q===f?`${j}`:`${q}/${j}`;B=a("manager.chart.weekRange",{start:z,end:L});const O=new Date(C,g-1,v).getTime();E=O>=new Date(_,f-1,z).getTime()&&O<=R.getTime(),S=_>C||_===C&&(f>g||f===g&&z>v)}return{...x,label:B,sublabel:p?`${Gl[k-1]??k}\uC8FC`:`Week ${k}`,isToday:E,future:x.future===!0||S||void 0,a:S?-1:x.a,b:S?0:x.b}})}const b=d.find(w=>w.value===u);if(!b)return[];const y=new Date(b.year,b.month-1,hn(b.year,b.month-1)+b.week*7);return Co(e,y,m,s).map(({dt:w,entry:h,isFuture:_})=>{const f=w.getMonth()+1,A=w.getDate(),x=w.getFullYear();return{label:f===b.month&&x===b.year?`${A}`:`${f}/${A}`,sublabel:c[w.getDay()]??"",future:_||void 0,a:_?-1:h&&h.a>0?h.a:0,b:_?0:h&&h.b>0?h.b:0,isToday:x===C&&f===g&&A===v,...h?.parts?{parts:_?h.parts.map(()=>0):h.parts}:{},...h?.partsB?{partsB:_?h.partsB.map(()=>0):h.partsB}:{}}})}const oy={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function sy({focusableBars:e,size:n="medium",barWidth:a,titleKey:r,titleLevel:s,data:i,colorA:l,colorB:u,labelAKey:d,labelBKey:c,showTotal:p=!1,totalUnitKey:m,totalLabelKey:C,control:g,hideControls:v=!1,rate:b=!1,rateAgg:y="dayMean",tightMax:w=!1,avgMode:h=!1,totalFormat:_,series:f,seriesMode:A="stack",loading:x=!1,onDetail:N,headExtra:k,headSegment:B,icon:E,disc:S,onClick:z,cardAriaLabel:R,cardTooltip:q,detailSize:j=32,barGap:L,baseline:O,className:Z,inGrid:te=!1}){const{t:W,i18n:U}=ye.useTranslation(),P=oy[n],F=Kl(i),D=g??F,H=o.useMemo(()=>ry(i,D,W,U.language,O==null),[i,D,W,U.language,O]),M=A==="group"&&!!f&&f.length>0;L!=null&&!M&&an("bar-chart-bargap-without-group","[BarChart] barGap \uC740 seriesMode='group' + series \uC5D0\uC11C\uB9CC \uC4F0\uC778\uB2E4 \u2014 \uADF8 \uBC16\uC5D0\uC11C\uB294 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4.");const I=o.useMemo(()=>{if(!b)return H;const ae=D.period==="month"?D.monthRange.match(/^(\d+)년 (\d+)월$/):null,ue=Jn(),le=f?.length??0,be=V=>{const ee=[],oe=[],Be=[];for(let Ce=0;Ce<le;Ce++){let se=0,ge=0,fe=0;for(const xe of V){const $e=ht(xe.a[Ce]),Le=ht(xe.b[Ce]);Le<=0||(se+=$e,ge+=Le,fe+=$e/Le*100)}ee.push(y==="weighted"?ge>0?Math.round(se/ge*100):0:V.length?Math.round(fe/V.length):0),oe.push(se),Be.push(ge)}return{pct:ee,ra:oe,rb:Be}};return H.map((V,ee)=>{let oe=V.a===-1?-1:V.b>0?Math.round(V.a/V.b*100):0;if(ae&&!Bn(V)){const Ce=Number(ae[1]),se=Number(ae[2])-1,ge=Co(i,new Date(Ce,se,hn(Ce,se)+ee*7),ue).filter(fe=>!fe.isFuture);if(y==="weighted"){let fe=0,xe=0;for(const{entry:$e}of ge)$e&&$e.b>0&&(fe+=$e.a,xe+=$e.b);oe=xe>0?Math.round(fe/xe*100):0}else oe=ge.length?Math.round(ge.reduce((fe,{entry:xe})=>fe+(xe&&xe.b>0?xe.a/xe.b*100:0),0)/ge.length):0}let Be=null;if(M&&!Bn(V)){let Ce;if(ae){const ge=Number(ae[1]),fe=Number(ae[2])-1;Ce=Co(i,new Date(ge,fe,hn(ge,fe)+ee*7),ue).filter(xe=>!xe.isFuture).map(({entry:xe})=>({a:xe?.parts??[],b:xe?.partsB??[]}))}else Ce=[{a:V.parts??[],b:V.partsB??[]}];const se=be(Ce);Be={parts:se.pct,rawParts:se.ra,rawPartsB:se.rb}}return{...V,a:oe,b:V.a===-1?0:c&&V.parts&&V.parts[1]>0?Math.round(V.parts[0]/V.parts[1]*100):0,rawA:V.a===-1?-1:V.a,rawB:V.b,...Be??{}}})},[H,b,y,c,D.period,D.monthRange,i,M,f?.length]),$=o.useMemo(()=>{if(b||h){const ue=(D.period==="week"?H:i[D.monthRange]?.daily??[]).filter(be=>be.a!==-1);if(ue.length===0)return 0;if(b&&y==="weighted"){let be=0,V=0;for(const ee of ue)ee.b>0&&(be+=ee.a,V+=ee.b);return V>0?Math.round(be/V*100):0}const le=b?ue.reduce((be,V)=>be+(V.b>0?V.a/V.b*100:0),0):ue.reduce((be,V)=>be+(V.a>0?V.a:0),0);return Math.round(le/ue.length)}const ae=D.period==="month"?i[D.monthRange]?.daily??[]:I;return O!=null?ae.reduce((ue,le)=>ue+(Bn(le,!1)?0:ht(le.a)+(c?ht(le.b):0)),0):ae.reduce((ue,le)=>ue+(le.a>0?le.a:0)+(c&&le.b>0?le.b:0),0)},[I,H,b,y,h,O,c,D.period,D.monthRange,i]),K=f&&f.length>0?f.map(ae=>({color:ae.color,label:ae.label})):[{color:l,label:W(d)},...c?[{color:u,label:W(c)}]:[]],ne=n==="small",X=[ne?"manager-section--compact":n==="large"?"manager-section--full":void 0,Z].filter(Boolean).join(" ")||void 0;return t.jsx(ho,{className:X,inGrid:te,icon:E,disc:S,onClick:z,ariaLabel:R,tooltip:q,headSegment:B,headMenuItems:N?[{label:W("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),icon:"list",onClick:N,closeOnSelect:!0}]:void 0,title:W(r),titleLevel:s,titleClassName:ne?"h5 chart-section-title--small":void 0,headRight:ne?k??void 0:({collapsed:ae})=>t.jsxs(t.Fragment,{children:[!v&&t.jsx(Yl,{control:D}),k,N&&!ae&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(pe,{htmlType:"button",size:j,type:"dot",icon:"list",ariaLabel:W("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),showTooltipInfo:W("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:N})})]}),subRow:t.jsxs(t.Fragment,{children:[p?b||h||C&&_?t.jsx(La,{label:ne?void 0:`${W(D.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${W(C??d)}`,children:_?(_($).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((ae,ue)=>/\d/.test(ae)?t.jsx("span",{className:"barchart-total__num h0",children:ae},ue):t.jsx("span",{className:"barchart-total__unit h5",children:ae},ue)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:$}),m&&t.jsx("span",{className:"barchart-total__unit h5",children:W(m)})]})}):t.jsxs(La,{children:[t.jsx("span",{className:"barchart-total__num h0",children:$}),t.jsx("span",{className:"barchart-total__unit h5",children:W(d)}),m&&t.jsx("span",{className:"barchart-total__unit h5",children:W(m)})]}):t.jsx("span",{}),t.jsx(mo,{items:K,className:"caption-1"})]}),children:x?t.jsx("div",{className:"manager-bar-chart-wrap manager-bar-chart-loading","aria-busy":"true",children:t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsxs("div",{className:"manager-bar-chart-area manager-bar-chart-area--loading",children:[t.jsx("div",{className:"manager-bar-chart-plot manager-bar-chart-plot--loading",style:{height:P.height},children:t.jsx(Ma,{size:32})}),t.jsx("div",{className:"manager-bar-chart-x-axis","aria-hidden":"true",children:t.jsxs("span",{className:"manager-bar-chart-x-axis__label",children:[t.jsx("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:"\xA0"}),I.some(ae=>!!ae.sublabel)&&t.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):t.jsx(ay,{focusableBars:e,data:I,colorA:l,colorB:c?u:void 0,labelA:W(d),labelB:c?W(c):void 0,barWidth:a??P.barWidth,barGap:L,baseline:O,height:P.height,maxOverride:b?100:void 0,tightMax:w,seriesColors:f?.map(ae=>ae.color),seriesLabels:f?.map(ae=>ae.label),rateLabels:b?{total:W("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:W("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:M})})}const Zl=120,iy={left:38,right:16,top:26,bottom:24};function ly({points:e=[],range:n,ticks:a=[],axisTitle:r,color:s,height:i=156,fallbackWidth:l=320,insets:u,overlay:d,ariaLabel:c,className:p}){const[m,C]=o.useState(null),[g,v]=o.useState(null);o.useEffect(()=>{if(!g)return;const O=te=>C(Math.round(te)||null);if(O(g.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const Z=new ResizeObserver(([te])=>O(te.contentRect.width));return Z.observe(g),()=>{Z.disconnect()}},[g]);const{payload:b,anchorRect:y,openAfterDelay:w,close:h}=pb(Zl),_=o.useCallback((O,Z)=>{O&&w(O,Z.getBoundingClientRect())},[w]),f=m??l,A=i,{left:x,right:N,top:k,bottom:B}={...iy,...u},[E,S]=n,z=O=>S===E?x:x+(f-x-N)*(O-E)/(S-E),R=O=>k+(A-k-B)*(100-O)/100,q={x:z,y:R,plot:{left:x,right:f-N,top:k,bottom:A-B,width:Math.max(0,f-x-N),height:Math.max(0,A-k-B)}},j=e.filter(O=>!O.hollow),L=s??"var(--color-main)";return t.jsxs(t.Fragment,{children:[t.jsxs("svg",{ref:v,className:De("line-chart",p),viewBox:`0 0 ${f} ${A}`,role:"img","aria-label":c??e.map(O=>O.description).filter(Boolean).join(", "),children:[r&&t.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(O=>t.jsxs("g",{children:[t.jsx("line",{className:"line-chart__grid",x1:x,x2:f-N,y1:R(O),y2:R(O)}),t.jsxs("text",{className:"line-chart__tick",x:x-6,y:R(O)+4,textAnchor:"end",children:[O,"%"]})]},O)),d?.(q),a.map(O=>t.jsx("text",{className:"line-chart__tick",x:z(O.x),y:A-5,textAnchor:"middle",children:O.label},O.x)),j.length>1&&t.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:L,points:j.map(O=>`${z(O.x)},${R(O.pct)}`).join(" ")}),e.map(O=>t.jsxs("g",{className:"line-chart__dot",onPointerEnter:Z=>_(O.description,Z.currentTarget),onPointerLeave:h,children:[t.jsx("circle",{className:"line-chart__dot-hit",cx:z(O.x),cy:R(O.pct),r:12}),t.jsx("circle",{className:De("line-chart__dot-main",O.hollow&&"is-hollow"),cx:z(O.x),cy:R(O.pct),r:4,stroke:L,fill:O.hollow?void 0:L})]},O.x))]}),b!=null&&t.jsx(on,{anchorRect:y,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:b,children:b})]})}function uy({icon:e,iconSize:n=56,title:a,titleClass:r="h2",description:s,tipGroups:i,start:l,className:u}){return t.jsxs("div",{className:De("game-intro",u),children:[e!=null&&t.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${n}px`},children:e}),t.jsx("h2",{className:De("game-intro__title",r),children:a}),s!=null&&t.jsx("p",{className:"game-intro__description body-3",children:s}),i?.map((d,c)=>t.jsxs("div",{className:"game-intro__tips",children:[d.title!=null&&t.jsx("span",{className:"game-intro__tips-title body-3",children:d.title}),d.tips.map((p,m)=>t.jsxs("span",{className:"game-intro__tip body-3",children:[p.icon!=null&&t.jsx("span",{"aria-hidden":"true",children:p.icon}),t.jsx("span",{children:p.text})]},m))]},c)),l&&t.jsx(pe,{htmlType:"button",className:l.className,variant:"main",color:l.color,size:48,width:"100%",disabled:l.disabled,onClick:l.onClick,children:l.label})]})}const Xl=(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")}`},Jl=(e,n,a,r)=>({from:ui(e,n,a),to:new Date(ui(e,n,a+r).getTime()-1),fromYmd:Xl(e,n,a),toYmd:Xl(e,n,a+r-1)});function cy(e,n=0){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=Jn(),l=s?Number(s[1]):i.getFullYear(),u=(s?Number(s[2]):i.getMonth()+1)-1+n,d=new Date(Date.UTC(l,u+1,0)).getUTCDate();return Jl(l,u,1,d)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,i=va();return{from:s,to:s,fromYmd:i,toYmd:i}}const r=hn(a.year,a.month-1);return Jl(a.year,a.month-1,r+(a.week+n)*7,7)}const fo={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Ql(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function eu({done:e,total:n,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:i,label:l="%",hideCenter:u=!1,hideLabel:d=!1}){const c=typeof s=="number"?s:fo[s].diameter,p=i??(typeof s=="number"?12:fo[s].strokeWidth),m=c/2,C=(c-p)/2,g=2*Math.PI*C;if(a&&a.length>0){const w=a.reduce((h,_)=>{const f=h.length>0?h[h.length-1].acc:0,A=Number.isFinite(_.ratio)?_.ratio:0,x=Math.max(0,Math.min(A,1-f));return h.push({color:_.color,rotate:-90+f*360,dash:g*x,acc:f+x}),h},[]);return t.jsx("div",{className:"ring-chart",style:{width:c,height:c},children:t.jsxs("svg",{width:c,height:c,viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:C,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),w.map((h,_)=>h.dash>0&&t.jsx("circle",{cx:m,cy:m,r:C,fill:"none",stroke:h.color,strokeWidth:p,strokeDasharray:`${h.dash} ${g}`,strokeLinecap:"round",transform:`rotate(${h.rotate} ${m} ${m})`},_))]})})}const v=(n??0)>0?Math.min((e??0)/n,1):0,b=g*v,y=g-b;return t.jsxs("div",{className:"ring-chart",style:{width:c,height:c},children:[t.jsxs("svg",{width:c,height:c,viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:C,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),v>0&&t.jsx("circle",{cx:m,cy:m,r:C,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${b} ${y}`,strokeLinecap:v<.02||v>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!u&&t.jsxs("div",{className:`ring-chart__center${d?"":` ${c<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${c<=96?"h2":"h1"}`,children:Ql(v)}),!d&&t.jsx("span",{className:`ring-chart__label ${c<=96?"caption-2":"caption-1"}${c<=96||s==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function dy({titleKey:e,titleLevel:n,headRight:a,icon:r,showTotal:s,totalLabelKey:i,legend:l,loading:u,className:d,inGrid:c=!1,onClick:p,ariaLabel:m,tooltip:C,...g}){const{t:v}=ye.useTranslation();if(!e)return t.jsx(eu,{...g});const b=(g.total??0)>0?Ql(Math.min((g.done??0)/g.total,1)):0,y=g.size==="small",w=typeof g.size=="number"?g.size:fo[g.size??"medium"].diameter,h=g.size==="large",_=[d,y?"manager-section--compact":h?"manager-section--full":""].filter(Boolean).join(" ")||void 0,f=r&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(Ze,{icon:r,className:"chart-section-icon-inner"})});return t.jsx(ho,{className:_,inGrid:c,onClick:p,ariaLabel:m,tooltip:C,title:v(e),titleLevel:n,titleClassName:y?"h5 chart-section-title--small":void 0,headRight:f||(y?void 0:a),subRow:(s||l)&&t.jsxs(t.Fragment,{children:[s?t.jsxs(La,{label:!y&&i?v(i):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:b}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),l&&t.jsx(mo,{items:l})]}),children:u?t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:w,height:w},"aria-busy":"true",children:t.jsx(Ma,{size:32})})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(eu,{...g,hideCenter:g.hideCenter??y})})})}function py({label:e,value:n,change:a,changeType:r,icon:s,tooltip:i,onClick:l,children:u}){const d=o.useRef(null),{anchorRect:c,openAt:p,close:m}=wa(),C=o.useCallback(()=>{i&&d.current&&p(d.current)},[i,p]),g=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),v=a===void 0?void 0:a>0?`+${a}`:`${a}`,b=o.useCallback(y=>{l&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),l())},[l]);return t.jsxs("div",{ref:d,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?b:void 0,onPointerEnter:C,onPointerLeave:m,onFocus:C,onBlur:m,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,n,v].filter(y=>y!==void 0&&y!=="").join(" "):void 0,children:[i&&c&&t.jsx(vn,{anchorRect:{left:c.left,top:c.top+21,right:c.right,bottom:c.bottom,width:c.width,height:c.height},text:i}),t.jsxs("div",{className:"manager-stat-card__label-row",children:[t.jsx("span",{className:"manager-stat-card__label h5",children:e}),s&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(Ze,{icon:s,className:"manager-stat-card__icon-inner"})})]}),t.jsxs("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}),v&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${g??"neutral"} caption-1`,children:v})]}),u&&t.jsx("div",{className:"manager-stat-card__body",children:u})]})]})}function tu({value:e,onChange:n,min:a=0,max:r=100,step:s=1,orientation:i="horizontal",size:l=24,disabled:u=!1,ariaLabel:d,length:c,className:p,label:m,formatValue:C,labelPos:g,labelAlign:v="right",showMinMax:b=!1,minLabel:y,maxLabel:w,showBgTick:h=!1,showFillTick:_=!1,tickStep:f,tickShape:A="dot"}){n&&!d&&an("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 x=Math.min(r,Math.max(a,e)),N=r>a?(x-a)/(r-a):0,k=i==="vertical",B=!n,E=D=>n?.(Number(D.target.value)),S=typeof c=="number"?`${c}px`:c,z={"--slider-ratio":String(N),"--slider-thumb":`${l}px`,...S?k?{height:S}:{width:S}:{}},R=f??s,q=(h||_)&&R>0&&r>a?Math.floor((r-a)/R+1e-6):0;if(q>0&&q<=100){const D=A!=="dash",H=ne=>D?`radial-gradient(circle, ${ne} 0.5px, transparent 1px)`:k?`linear-gradient(to bottom, transparent calc(50% - 2px), ${ne} calc(50% - 2px), ${ne} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${ne} calc(50% - 2px), ${ne} calc(50% + 2px), transparent calc(50% + 2px))`,M=D?"2px":"4px",I=[],$=[],K=[];for(let ne=0;ne<=q;ne++){const X=ne*R/(r-a);if(X>1+1e-6)break;const ae=`${((k?1-X:X)*100).toFixed(4)}%`,ue=X<=N+1e-6;if(ue?!_:!h)continue;const le=ue?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";I.push(H(le)),$.push(k?`${M} var(--slider-thumb)`:`var(--slider-thumb) ${M}`),K.push(k?`center ${ae}`:`${ae} center`)}I.push(k?"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))"),$.push("100% 100%"),K.push("0 0"),z.backgroundImage=I.join(", "),z.backgroundSize=$.join(", "),z.backgroundPosition=K.join(", "),z.backgroundRepeat="no-repeat"}const j=C?C(x):m==="percent"?`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`:m==="count"?`${x} / ${r}`:x===a&&y?y:x===r&&w?w:void 0,L=t.jsx("input",{type:"range",className:De("slider",`slider--${i}`,B&&"slider--static",!m&&!b&&p),min:a,max:r,step:s,value:x,disabled:u,readOnly:B,tabIndex:B?-1:void 0,"aria-label":d,"aria-valuetext":j,"aria-orientation":i,onChange:E,style:z});if(!m&&!b)return L;const O=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:y??a}),Z=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:w??r}),te=b?t.jsxs("div",{className:De("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[k?Z:O,L,k?O:Z]}):L;if(!m)return te;const W=g??(k?"bottom":"right"),U=`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`,P=C?C(x):m==="percent"?U:m==="count"?`${x} / ${r}`:String(x),F=t.jsx("span",{className:"slider-wrap__value body-3b",children:P});return t.jsxs("div",{className:De("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${W}`,`slider-wrap--align-${v}`,p),children:[te,F]})}const my=.86,hy=250,go=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),bo=(e,n,a,r)=>{const s=go(e,n,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function yo({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:s,labelPos:i,labelAlign:l="right",floorDb:u=-60,refDb:d=-35,displayMin:c=-5,displayMax:p=25,className:m,ariaLabel:C}){const g=o.useRef(null),v=o.useRef(null),b=o.useRef(null),y=o.useRef(null),[w,h]=o.useState(null);o.useEffect(()=>{const x=L=>{const O=bo(L,d,c,p);b.current&&(b.current.textContent=O);const Z=g.current;Z&&(Z.setAttribute("aria-valuenow",String(go(L,d,c,p))),Z.setAttribute("aria-valuetext",O))},N=e??sC(n)??(w&&w.el===n?w.node:null),k=v.current;if(!N||!k){k?.style.setProperty("--meter-level","0"),x(u);let L=!1;return!e&&n&&Ha(n).then(O=>{!L&&O&&h({el:n,node:O})}),()=>{L=!0}}Lr();const B=new Float32Array(N.fftSize);let E=0,S=0,z=0,R=0,q=null;const j=L=>{const O=iC(N,B);E=O>E?O:E*my;const Z=E>1e-5?20*Math.log10(E):-1/0,te=Math.max(u,Z),W=te-d,U=Math.min(1,Math.max(0,(W-c)/(p-c)));if(k.style.setProperty("--meter-level",U.toFixed(3)),S+=te,z+=1,L-R>=hy){const P=S/z;q=q==null?P:q*.6+P*.4,x(q),S=0,z=0,R=L}y.current=requestAnimationFrame(j)};return y.current=requestAnimationFrame(j),()=>{y.current!=null&&cancelAnimationFrame(y.current),y.current=null}},[e,n,w,u,d,c,p]);const _=typeof r=="number"?`${r}px`:r,f=t.jsx("div",{className:"audio-meter__track",style:_?a==="vertical"?{height:_}:{width:_}:{},children:t.jsx("div",{ref:v,className:"audio-meter__fill"})}),A=i??(a==="vertical"?"bottom":"right");return t.jsxs("div",{ref:g,className:De("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${A}`,s&&`audio-meter--align-${l}`,m),role:"meter","aria-label":C,"aria-valuemin":c,"aria-valuemax":p,"aria-valuenow":go(u,d,c,p),"aria-valuetext":bo(u,d,c,p),children:[f,s&&t.jsx("span",{ref:b,className:"audio-meter__value caption-2",children:bo(u,d,c,p)})]})}const nu=260;function au({message:e,position:n,duration:a,onClose:r}){const[s,i]=o.useState(!1),[l,u]=o.useState(!1),d=o.useRef(l),c=o.useRef(s);o.useEffect(()=>{d.current=l},[l]),o.useEffect(()=>{c.current=s},[s]);const p=o.useRef(null),m=o.useRef(""),C=o.useRef(r);o.useEffect(()=>{C.current=r});const g=a,v=o.useRef(null),b=o.useRef(0),y=o.useRef(0),w=o.useRef(!1),h=o.useRef(null),_=o.useRef(null),f=o.useRef(null),A=o.useRef(null),x=o.useRef(()=>{});x.current=B=>{B<0||(b.current=Date.now(),y.current=B,v.current=setTimeout(()=>{v.current=null,i(!1),h.current=setTimeout(()=>{u(!1);try{C.current()}catch{}},nu)},B))};const N=o.useCallback(()=>{w.current||!v.current||(w.current=!0,clearTimeout(v.current),v.current=null,y.current=Math.max(0,y.current-(Date.now()-b.current)))},[]),k=o.useCallback(()=>{w.current&&(w.current=!1,x.current(y.current))},[]);return o.useEffect(()=>{if(e!==m.current&&(v.current&&(clearTimeout(v.current),v.current=null),h.current&&(clearTimeout(h.current),h.current=null)),e){if(c.current)return g>0&&!v.current&&(w.current?y.current=g:x.current(g)),m.current=e,()=>{v.current&&(clearTimeout(v.current),v.current=null),h.current&&(clearTimeout(h.current),h.current=null)};const B=()=>{const E=p.current;if(E)try{E.classList.remove("is-visible"),E.style.transition="none",n==="top"?E.style.transform="translateX(-50%) translateY(-16px)":E.style.transform="translateX(-50%) translateY(16px)",E.style.opacity="0",E.offsetWidth,E.style.transition="",E.classList.add("is-visible"),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{A.current=null;try{E.style.opacity="",E.style.transform="",E.style.transition=""}catch{}},60)}catch{}};d.current?(B(),i(!0)):(u(!0),_.current=requestAnimationFrame(()=>{f.current=requestAnimationFrame(()=>{B(),i(!0)})})),g>0&&(w.current=!1,x.current(g))}else i(!1),h.current=setTimeout(()=>u(!1),nu);return m.current=e,()=>{v.current&&clearTimeout(v.current),h.current&&clearTimeout(h.current),_.current&&cancelAnimationFrame(_.current),f.current&&cancelAnimationFrame(f.current),A.current&&clearTimeout(A.current),v.current=null,h.current=null,_.current=null,f.current=null,A.current=null}},[e,g,n]),{mounted:l,showing:s,popupRef:p,pause:N,resume:k}}function ra({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:i,showing:l,popupRef:u,pause:d,resume:c}=au({message:e,position:n,duration:s,onClose:r}),p=o.useRef(null),[m,C]=o.useState(!1);if(o.useEffect(()=>{l?C(!0):i||C(!1)},[l,i]),!i)return null;const g=a==="notice"||a==="warning"?a:"normal",v=t.jsx("div",{ref:u,className:`toast toast--${n} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:b=>{p.current=b.pointerType},onMouseEnter:()=>{p.current!=="touch"&&d()},onMouseLeave:c,onFocusCapture:d,onBlurCapture:c,children:t.jsx("div",{className:`toast__inner toast__inner--${g} body-2`,"aria-hidden":m||l?void 0:!0,children:e})});return typeof document<"u"?Xt.createPortal(v,document.body):v}const Cy=24;function fy({value:e,max:n=100,size:a=8,color:r,trackColor:s,label:i,formatValue:l,labelPos:u,labelAlign:d="right",ariaLabel:c,className:p}){const m=Number.isFinite(n)&&n>0?n:1,C=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),g=C/m*100,v=Number.isFinite(n)&&n>0?n:0,b=u??(a>=Cy?"inside":"bottom"),y=b==="center"?"inside":b,w=y==="inside"&&(d==="left"?g>=15:d==="center"?g>=50:g>=85),h={};return r&&(h["--progress-bar-fill"]=r),s&&(h["--progress-bar-track"]=s),t.jsxs("div",{className:De("progress-bar",`progress-bar--${a}`,`progress-bar--label-${y}`,i&&`progress-bar--align-${d}`,i&&w&&"progress-bar--label-on-fill",p),style:h,children:[t.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":v,"aria-valuetext":i?l?l(C):i==="percent"?void 0:i==="raw"?String(C):`${C} / ${v}`:void 0,"aria-label":c,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${g}%`}})}),i&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(C):i==="percent"?`${Math.round(g)}%`:i==="raw"?String(C):`${C} / ${v}`})]})}const ru={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},gy="rgba(255, 255, 255, 0.16)";function ou({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:s,variant:i="numbered",announce:l=!1,ariaLabel:u}){const{t:d}=ye.useTranslation(),c=tn("(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=u??d("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),C={};if(a&&(C["--pi-inactive-bg"]=a),r&&(C["--pi-inactive-color"]=r),s&&(a||(C["--pi-inactive-bg"]=gy),r||(C["--pi-inactive-color"]="var(--color-white)")),i==="dot")return t.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:C,role:l?"status":"img","aria-label":l?void 0:m,children:[l&&t.jsx("span",{style:ru,children:m}),Array.from({length:e}).map((v,b)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${b<p?" done":b===p?" active":""}`},b))]});const g=l?t.jsx("span",{role:"status",style:ru,children:m}):null;return c?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:C,role:"list","aria-label":m,children:t.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}),g]}):t.jsxs(t.Fragment,{children:[g,t.jsx("div",{className:"progress-indicator",style:C,role:"list","aria-label":m,children:Array.from({length:e}).map((v,b)=>t.jsx("span",{role:"listitem","aria-current":b===p?"step":void 0,className:`progress-indicator-dot ${b<p?" done":b===p?" active":""} body-3`,children:b+1},b))})]})}function by(e){if(!e)return[];const n=[];let a=0,r="";for(const s of e.trim()){if(s==="("?a++:s===")"&&a--,/\s/.test(s)&&a===0){r&&(n.push(r),r="");continue}r+=s}return r&&n.push(r),n}function yy({children:e,className:n,style:a}){return t.jsx("div",{role:"cell",className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function vo({variant:e="default",children:n,className:a,draggable:r,onClick:s,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:d,expandedContent:c,colSpan:p,describedBy:m}){const C=o.useCallback(g=>{s&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),s())},[s]);return e==="loading"?t.jsx("div",{role:"presentation",className:"table-row-wrap",children:t.jsx("div",{role:"row",className:"table-row table-row--loading",children:t.jsx("div",{role:"cell","aria-colspan":p,className:"table-row__full-cell",children:t.jsx(Ma,{size:28})})})}):e==="empty"?t.jsx("div",{role:"presentation",className:"table-row-wrap",children:t.jsx("div",{role:"row",className:"table-row table-row--empty body-3",children:t.jsx("div",{role:"cell","aria-colspan":p,className:"table-row__full-cell",children:n})})}):t.jsxs("div",{role:"presentation",className:"table-row-wrap",children:[t.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:s,onKeyDown:s?C:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:d,role:"row",tabIndex:s?0:void 0,"aria-describedby":s?m:void 0,children:n}),c&&t.jsx("div",{role:"row",className:"table-row-expand",children:t.jsx("div",{role:"cell","aria-colspan":p,className:"table-row-expand__cell",children:c})})]})}function vy({dir:e}){return t.jsx(e==="asc"?vs:ys,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function xy({children:e,onClick:n,className:a,sortDir:r,ariaSort:s,onResizeStart:i}){const l=t.jsxs(t.Fragment,{children:[e,r&&t.jsx(vy,{dir:r})]});return t.jsxs("div",{onClick:n,role:"columnheader","aria-sort":s,className:De("table-field body-3",a,r?"table-field--sorted":"",i?"table-field--resizable":""),children:[n?t.jsx("button",{type:"button",className:"table-field__button",children:l}):l,i&&t.jsx("span",{className:"table-field__resizer",onPointerDown:i,onClick:u=>u.stopPropagation(),"aria-hidden":"true"})]})}function xo({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:s,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:u,onRowDragStart:d,onRowDragEnd:c,draggingId:p,gridTemplateColumns:m,mobileGridTemplateColumns:C,resizable:g=!1,resizeMode:v="grow",resizeStorageKey:b,size:y="small",title:w,icon:h,count:_,collapsed:f=!1,onToggleCollapse:A,headerActions:x,empty:N,loading:k,dragOver:B=!1,onDragOver:E,onDragLeave:S,onDrop:z,renderExpandedRow:R,expandedId:q}){const{t:j}=ye.useTranslation(),L=o.useId(),O=`table-title-${L}`,Z=`table-row-hint-${L}`,te=tn("(max-width: 767px)"),W=C&&te?C:null,U=g&&!te,P=48,F=o.useRef(()=>P),D=b?`table-cols:${b}`:null,H=o.useRef(null),M=o.useRef(null),I=o.useRef(null),$=o.useRef(null),[K,ne]=o.useState(!1),X=o.useCallback(()=>{const Q=I.current;Q&&ne(Q.scrollWidth>Q.clientWidth+1)},[]),ae=o.useCallback((Q,ce)=>{const me=Q.current;me&&M.current&&M.current.unobserve(me),Q.current=ce,ce?(!M.current&&typeof ResizeObserver<"u"&&(M.current=new ResizeObserver(()=>X())),M.current?.observe(ce)):!I.current&&!$.current&&(M.current?.disconnect(),M.current=null),X()},[X]),ue=o.useCallback(Q=>ae(I,Q),[ae]),le=o.useCallback(Q=>ae($,Q),[ae]);o.useEffect(()=>{X()}),o.useEffect(()=>{if(typeof window>"u")return;const Q=typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>X()):null;return window.addEventListener("resize",X),()=>{Q!=null&&cancelAnimationFrame(Q),window.removeEventListener("resize",X)}},[X]);const be=o.useRef(()=>!1),V=o.useRef([]),ee=o.useRef(null),oe=Q=>{if(!Q||typeof window>"u")return null;try{const ce=JSON.parse(window.localStorage.getItem(Q)??"null");return Array.isArray(ce)&&ce.length>0&&ce.every(me=>typeof me=="number"&&Number.isFinite(me)&&me>0)?ce:null}catch{return null}},[Be,Ce]=o.useState(()=>oe(D)),[se,ge]=o.useState(D);se!==D&&(ge(D),Ce(oe(D)));const fe=o.useRef(Be);o.useEffect(()=>{fe.current=Be},[Be]);const xe=o.useCallback(Q=>{const ce=ee.current;if(!ce)return;const me=fe.current;if(me){const Se=[...me];if(ce.next!=null&&ce.startWNext!=null){const et=Q.clientX-ce.startX,Ke=Math.max(F.current(ce.index)-ce.startW,Math.min(ce.startWNext-F.current(ce.next),et));Se[ce.index]=ce.startW+Ke,Se[ce.next]=ce.startWNext-Ke}else Se[ce.index]=Math.max(F.current(ce.index),ce.startW+(Q.clientX-ce.startX));fe.current=Se,Ce(Se)}},[]),$e=o.useCallback(()=>{if(ee.current=null,window.removeEventListener("pointermove",xe),window.removeEventListener("pointerup",$e),window.removeEventListener("pointercancel",$e),document.body.style.cursor="",document.body.style.userSelect="",D&&fe.current)try{window.localStorage.setItem(D,JSON.stringify(fe.current))}catch{}},[xe,D]),Le=o.useCallback((Q,ce)=>{ce.preventDefault(),ce.stopPropagation();const me=H.current;if(!me)return;const Se=Array.from(me.children).map(Ke=>Ke.getBoundingClientRect().width),et=v==="fit"?e.findIndex((Ke,bt)=>bt>Q&&Ke.resizable!==!1):-1;ee.current=et>=0?{index:Q,startX:ce.clientX,startW:Se[Q],next:et,startWNext:Se[et]}:{index:Q,startX:ce.clientX,startW:Se[Q]},fe.current=Se,Ce(Se),window.addEventListener("pointermove",xe),window.addEventListener("pointerup",$e),window.addEventListener("pointercancel",$e),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[xe,$e,v,e]),Qe=o.useCallback(()=>{const Q=H.current,ce=Q?.closest(".table-wrap");if(!Q||!ce)return;const me=ce.style.getPropertyValue("--table-grid-cols");ce.style.setProperty("--table-grid-cols",e.map((Ye,Re)=>be.current(Re)?V.current[Re]:"max-content").join(" "));const Se=Array.from(ce.querySelectorAll(".table-row")).filter(Ye=>!Ye.classList.contains("table-row--loading")&&!Ye.classList.contains("table-row--empty")),et=e.map((Ye,Re)=>{let We=Q.children[Re]?.getBoundingClientRect().width??0;for(const ct of Se){const Bt=ct.children[Re];Bt&&(We=Math.max(We,Bt.getBoundingClientRect().width))}const Fe=be.current(Re)?parseFloat(V.current[Re]):NaN;return Number.isFinite(Fe)?Fe:Math.max(F.current(Re),Math.ceil(We))}),Ke=window.getComputedStyle(Q),bt=Q.clientWidth-(parseFloat(Ke.paddingLeft)||0)-(parseFloat(Ke.paddingRight)||0);me?ce.style.setProperty("--table-grid-cols",me):ce.style.removeProperty("--table-grid-cols");let ut=et;const it=et.reduce((Ye,Re,We)=>Ye+(be.current(We)?Re:0),0),tt=et.reduce((Ye,Re,We)=>Ye+(be.current(We)?0:Re),0),Ge=bt-it;if(bt>0&&tt>0&&Ge>0){const Ye=Ge/tt;ut=et.map((We,Fe)=>be.current(Fe)?We:Math.max(F.current(Fe),Math.round(We*Ye)));const Re=Math.round(Ge-ut.reduce((We,Fe,ct)=>We+(be.current(ct)?0:Fe),0));if(Re!==0){let We=-1;ut.forEach((Fe,ct)=>{!be.current(ct)&&(We<0||Fe>ut[We])&&(We=ct)}),We>=0&&(ut[We]=Math.max(F.current(We),ut[We]+Re))}}if(Ce(ut),D)try{window.localStorage.setItem(D,JSON.stringify(ut))}catch{}},[e,v,D]);o.useEffect(()=>()=>{ee.current&&(window.removeEventListener("pointermove",xe),window.removeEventListener("pointerup",$e),window.removeEventListener("pointercancel",$e),document.body.style.cursor="",document.body.style.userSelect="")},[xe,$e]);const Ue=by(m),ze=Ue.filter(Q=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(Q));ze.length>0&&an(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${ze.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 Ie=e.findIndex(Q=>!!Q.sortDir);e.filter(Q=>!!Q.sortDir).length>1&&an("table-multi-sort","[ihabdevteam-core] Table \uC758 fields \uC5D0 sortDir \uC774 \uB458 \uC774\uC0C1 \uC788\uC2B5\uB2C8\uB2E4. aria-sort \uB294 \uD45C \uD558\uB098\uC5D0 \uD55C \uCE78\uB9CC \uAC00\uC9C8 \uC218 \uC788\uC5B4 \uCCAB \uCE78\uB9CC \uBC29\uD5A5\uC73C\uB85C \uC54C\uB9AC\uACE0 \uB098\uBA38\uC9C0\uB294 none \uC73C\uB85C \uB461\uB2C8\uB2E4.");const st=Q=>Q===Ie?e[Q].sortDir==="asc"?"ascending":"descending":e[Q].onClick?"none":void 0,Xe=Q=>/^\d+(\.\d+)?px$/.test(Ue[Q]??""),Je=Q=>{const ce=Ue[Q]??"",me=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(ce)??/^(\d+(?:\.\d+)?)px$/.exec(ce);return me?parseFloat(me[1]):P};be.current=Xe,F.current=Je,V.current=Ue;const Ee=Q=>v==="fit"&&!Xe(Q)?"fr":"px",ke=Be&&Be.length===e.length&&!te&&(v==="fit"||a.length>0),Me=W??(ke?e.map((Q,ce)=>Q.resizable===!1&&Ue[ce]?Ue[ce]:`${Be[ce]}${Ee(ce)}`).join(" "):m),Ve=Me?{"--table-grid-cols":Me}:void 0,lt=w!==void 0;return t.jsxs("div",{ref:ue,className:`table-wrap table-wrap--${y}${U?" table-wrap--resizable":""}${B?" table-wrap--dragover":""}${f?" table-wrap--collapsed":""}`,style:Ve,onDragOver:E,onDragLeave:S,onDrop:z,tabIndex:K?0:void 0,role:K?"region":void 0,"aria-label":K?typeof w=="string"?w:j("table.scrollRegion","\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"):void 0,children:[!!s&&t.jsx("span",{id:Z,className:"table-row-hint",children:j("table.rowActionHint","\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4")}),t.jsxs("div",{ref:le,role:"table","aria-labelledby":lt&&typeof w=="string"?O:void 0,className:"table body-2",children:[lt&&t.jsxs("div",{className:"table-header",onClick:A,role:A?"button":"caption",tabIndex:A?0:void 0,"aria-expanded":A?!f:void 0,onKeyDown:A?Q=>{Q.target===Q.currentTarget&&(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),A())}:void 0,children:[A&&t.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:f?"chevron-right":"chevron-down",ariaLabel:f?j("common.expand","\uD3BC\uCE58\uAE30"):j("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),h&&t.jsx(Ze,{icon:h,label:typeof w=="string"?w:void 0,className:"table-header__icon"}),t.jsx("span",{id:O,className:"table-header__title h5b",children:w}),_!==void 0&&t.jsx("span",{className:"table-header__count body-3b",children:_}),x&&t.jsx("span",{className:"table-header__actions",onClick:Q=>Q.stopPropagation(),children:x})]}),!f&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{role:"row",className:"table-fields table-fields--groups",children:n.map((Q,ce)=>t.jsx("div",{role:"columnheader","aria-colspan":Q.span,className:De("table-field body-3",Q.className),style:{gridColumn:`span ${Q.span}`},children:Q.label},ce))}),t.jsxs("div",{role:"presentation",className:De("table-fields-strip",U&&"table-fields-strip--resizable"),children:[t.jsx("div",{role:"row",className:"table-fields",ref:H,children:e.map((Q,ce)=>t.jsx(xy,{onClick:Q.onClick,className:Q.className,sortDir:Q.sortDir,ariaSort:st(ce),onResizeStart:U&&ce<e.length-1&&Q.resizable!==!1&&(v!=="fit"||e.some((me,Se)=>Se>ce&&me.resizable!==!1))?me=>Le(ce,me):void 0,children:Q.label},ce))}),U&&t.jsx(pe,{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:Qe})]}),t.jsx("div",{role:"rowgroup",className:"table-body",children:k?t.jsx(vo,{variant:"loading",colSpan:e.length||void 0}):a.length===0&&N?t.jsx(vo,{variant:"empty",colSpan:e.length||void 0,children:N}):a.map((Q,ce)=>{const me=p!=null&&Q.id===p,Se=!!s&&(i?i(Q):!0),et=q!=null&&Q.id!=null&&(q instanceof Set?q.has(Q.id)||[...q].some(Ke=>String(Ke)===String(Q.id)):String(Q.id)===String(q));return t.jsx(vo,{className:`${Se?" table-row--clickable":""}${d?" table-row--draggable":""}${me?" table-row--dragging":""}`.trim(),draggable:!!d,onClick:Se?()=>s(Q):void 0,colSpan:e.length||void 0,describedBy:Z,onMouseEnter:l?Ke=>l(Q,Ke):void 0,onMouseLeave:u?Ke=>u(Q,Ke):void 0,onDragStart:d?Ke=>d(Q,Ke):void 0,onDragEnd:c?Ke=>c(Q,Ke):void 0,expandedContent:et&&R?R(Q):void 0,children:r(Q).map((Ke,bt)=>t.jsx(yy,{className:Ke.className,style:Ke.style,children:Ke.content},bt))},Q.id!=null?`${typeof Q.id}:${Q.id}`:`__idx:${ce}`)})})]})]})]})}function su(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const oa=e=>e==null?"":String(e).trim();function _o(e,n,a){const r=[oa(e),oa(n),oa(a)];for(;r.length>0&&r[r.length-1]==="";)r.pop();return r.join(".")}function _y(e,n,a){const r=oa(e);return r?`${r}-${oa(n).padStart(2,"0")}-${oa(a).padStart(2,"0")}`:""}const wy={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function Ay(e,n){const a=wy[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}function iu(e,n){return n!=="wornAt"?String(e[n]??""):_y(e.wornYear,e.wornMonth,e.wornDay)}function By({rows:e,loading:n,onSelect:a,onDelete:r,onWear:s,onRelease:i,onAdd:l}){const{t:u}=ye.useTranslation(),d=b=>b==="\uC88C"?u("device.direction.left","\uC88C"):u("device.direction.right","\uC6B0"),{\uC815\uB82C:c,\uCE78:p}=nb(),m=o.useMemo(()=>{if(!c)return e;const{key:b,asc:y}=c;return[...e].sort((w,h)=>{if(b==="worn"){const _=Number(h.worn)-Number(w.worn);return y?_:-_}return eo(iu(w,b),iu(h,b),y)})},[e,c]),{pageRows:C,pageSizeProps:g,paginationProps:v}=tb(m,c);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(po,{count:{value:e.length,unit:u("customers.device.unit","\uAC1C")},pageSize:g,pagination:v,actions:l&&t.jsx(pe,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:u("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:l})}),t.jsx(xo,{loading:n,resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...p(u("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},p(u("device.direction.label","\uBC29\uD5A5"),"side"),p(u("device.deviceType","\uC885\uB958"),"device"),p(u("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),p(u("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),p(u("device.productName","\uC81C\uD488\uBA85"),"productName"),p(u("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...r?[{label:"",resizable:!1}]:[]],items:C.map((b,y)=>({id:b.id??`${b.side}-${y}`,row:b})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${r?" 80px":""}`,renderRow:({row:b})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:y=>y.stopPropagation(),children:t.jsx(Vl,{checked:b.worn,disabled:b.worn?!i:!s,ariaLabel:b.worn?u("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):u("customers.device.wear","\uCC29\uC6A9"),onChange:y=>{y?s?.(b):i?.(b)}})})},{content:t.jsx("span",{children:d(b.side)})},{content:b.device?t.jsx(xt,{size:"small",variant:su(b.device),fill:"soft",label:Ay(b.device,u)}):t.jsx("span",{})},{content:t.jsx("span",{children:b.brand})},{content:t.jsx("span",{children:b.fitType||"-"})},{content:t.jsx("span",{children:b.productName||"-"})},{content:t.jsx("span",{className:"dlp-date",children:_o(b.wornYear,b.wornMonth,b.wornDay)||"-"})},...r?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(pe,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:u("common.delete","\uC0AD\uC81C"),onClick:y=>{y?.stopPropagation(),r(b)}})})}]:[]],onRowClick:({row:b})=>a(b),empty:u("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function lu(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 ky(e,n){return new Date(e,n+1,0).getDate()}function Ny(e,n){return new Date(e,n,1).getDay()}function Dy({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r,today:s}){const{t:i,i18n:l}=ye.useTranslation(),u=o.useMemo(()=>i("calendar.dow",{returnObjects:!0}),[i]),d=Or(s),[c,p]=o.useState(()=>Number(d.slice(0,4))),[m,C]=o.useState(()=>Number(d.slice(5,7))-1),[g,v]=o.useState(null),b=o.useRef(null),y=o.useMemo(()=>{const x={};return e.forEach(N=>{x[N.date]||(x[N.date]=[]),x[N.date].push(N)}),x},[e]),w=o.useMemo(()=>{const x=ky(c,m),N=Ny(c,m),k=[];for(let B=0;B<N;B++)k.push(null);for(let B=1;B<=x;B++)k.push(B);for(;k.length<35;)k.push(null);return k},[c,m]),h=o.useCallback(()=>{m===0?(p(x=>x-1),C(11)):C(x=>x-1)},[m]),_=o.useCallback(()=>{m===11?(p(x=>x+1),C(0)):C(x=>x+1)},[m]),f=x=>`${c}-${String(m+1).padStart(2,"0")}-${String(x).padStart(2,"0")}`,A=x=>f(x)===d;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:h,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Ze,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:i("calendar.yearMonth",{year:c,month:m+1})}),t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:_,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(Ze,{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:i("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:i("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:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[u.map(x=>t.jsx("div",{className:"calendar-day-header body-3",children:x},x)),w.map((x,N)=>{if(x===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${N}`);const k=x,B=f(k),E=y[B]??[],S=IC(B,l.language),z=g===B;return t.jsxs("div",{className:`calendar-cell${A(k)?" today":""}${z?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?i("calendar.addOnDate",{date:B}):void 0,"aria-current":A(k)?"date":void 0,onClick:r?()=>r(B):void 0,onKeyDown:r?R=>{R.target===R.currentTarget&&(R.key!=="Enter"&&R.key!==" "||(R.preventDefault(),r(B)))}:void 0,onDragOver:a?R=>{R.preventDefault(),v(B)}:void 0,onDragLeave:a?R=>{R.currentTarget.contains(R.relatedTarget)||v(null)}:void 0,onDrop:a?R=>{R.preventDefault(),b.current!=null&&(a(b.current,B),b.current=null),v(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:k}),E.length>0&&t.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":`${S} ${i("calendar.visitCount",{count:E.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"})}`,children:[t.jsx("span",{className:"calendar-cell__visit-dot","aria-hidden":"true"}),E.length]}),t.jsx("div",{className:"calendar-cell__badges",children:E.map((R,q)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${R.status==="noVisit"?" calendar-visit-badge--no-visit":R.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?j=>{b.current=R.id,j.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{b.current=null,v(null)}:void 0,onClick:n?j=>{j.stopPropagation(),n(R)}:void 0,...lu(n?()=>n(R):void 0),"aria-label":[S,R.time?pi(R.time,i):null,R.customer,i(R.status==="noVisit"?"calendar.legend.noVisit":R.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[R.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:pi(R.time,i)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:R.customer}),R.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},R.id??q))})]},k)})]})]})}const Ey={page:"h3",pagePopup:"h4",popup:"h5"};function sa({type:e="page",title:n,headingLevel:a,icon:r,action:s,disc:i,children:l,inGrid:u=!1,className:d,style:c}){const p=Ey[e],m=n||i||s||r,C=a?`h${a}`:"div";return t.jsxs("div",{className:De("section",`section--${e}`,u&&"section--in-grid",d),style:c,children:[m&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[r&&t.jsx(Ze,{icon:r,label:typeof n=="string"?n:void 0,className:"section__icon"}),t.jsxs("div",{className:"section__title-group",children:[n&&t.jsx(C,{className:`section__title ${p}`,children:n}),i&&t.jsx("div",{className:"section__disc body-3",children:i})]})]}),s&&t.jsx("div",{className:"section__action",children:s})]}),l]})}let wo=null,uu=!1;function cu(){if(uu||typeof document>"u")return;uu=!0,document.addEventListener("keydown",n=>{n.metaKey||n.ctrlKey||n.altKey||(wo="keyboard")},!0);const e=()=>{wo="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}cu();function ar(){return cu(),wo==="keyboard"}const rr=20;function Sy(e){const{t:n}=ye.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:i,completedIds:l,selectedIds:u,onItemComplete:d,size:c,useDescriptionTooltip:p,onRemove:m,onMore:C,sectionType:g="page"}=e||{},[,v]=o.useState(0),b=typeof r<"u"?Array.isArray(r)?r:[]:[],y=b.length,[w,h]=o.useState(Math.min(y,rr)),_=o.useMemo(()=>Array.isArray(s)?[...s,a?.label].filter(Boolean).join(" \xB7 "):[s||"",a?.label].filter(Boolean).join(" \xB7 "),[s,a?.label]);o.useEffect(()=>{h(Math.min(y,rr))},[y]),nl("speechear.data.updated",()=>v(N=>N+1));const f=o.useRef(null),A=o.useRef(null);function x(){const N=document.activeElement;A.current=ar()&&N&&N.closest?.(".training-block__more")?w:null,h(k=>Math.min(y,k+rr))}return o.useEffect(()=>{const N=A.current;if(N==null)return;A.current=null;const k=document.activeElement;k&&k!==document.body||f.current?.querySelectorAll(".training-block-button")[N]?.focus()},[w]),t.jsxs(sa,{type:g,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",ref:f,children:(b||[]).slice(0,w).map((N,k)=>{const B=N;return t.jsx(lo,{index:k,type:a,trainingData:B,depth:_,renderPopup:i,completedIds:l,selectedIds:u,size:c,useDescriptionTooltip:p,onRemove:typeof m=="function"&&u!=null&&B?.id!=null&&u.has(String(B.id))?()=>m(B):void 0,onComplete:typeof d=="function"&&B?.id!=null?()=>d(String(B.id)):void 0,onMore:typeof C=="function"?E=>C(B,E):void 0},B?.id!=null?`${a?.key||"t"}-${String(B.id)}`:`${a?.key||"t"}-${k}`)})}),y>rr&&w<y&&t.jsx("div",{className:"training-block__more",children:t.jsx(pe,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:x,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function Ao(e){const n=o.useRef(null),[a,r]=o.useState(!!e),[s,i]=o.useState(!1);o.useEffect(()=>{i(!1);const d=n.current;r(!!e&&!(d?.complete&&d.naturalWidth>0))},[e]);const l=o.useCallback(()=>r(!1),[]),u=o.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:n,loading:a,failed:s,hasImage:!!e&&!s,onLoad:l,onError:u}}var jy='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 Ty=jy,Bo=o.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:s=!1,onSelect:i,flipDelay:l=0,hideLabel:u=!1,hideAudio:d=!1,orderRank:c=null},p){const{t:m}=ye.useTranslation(),C=e.word||e.title||"",g=n||!C,v=e.audio??e.sound??e.audioKey,b=e.subLabel||e.pronunciation||"",y=e.colloquialLabel||"",[w,h]=o.useState({label:C,subLabel:b,colloquialLabel:y,homonum:e.homonum});C&&(w.label!==C||w.subLabel!==b||w.colloquialLabel!==y||!Object.is(w.homonum,e.homonum))&&h({label:C,subLabel:b,colloquialLabel:y,homonum:e.homonum});const _=o.useRef(null),f=tn("(max-width: 767px)"),[A,x]=o.useState(!1),N=`${typeof v=="string"?v:v?.src??""}\0${C}`,[k,B]=o.useState({for:"",url:""}),E=k.for===N?k.url:"",S=oi(),z=e.textOnly??(!e.image&&!!w.label&&!!S&&S.entries.length>0&&!S.byWord.has(w.label)),R=z?"":Xn()?.(w.label,w.homonum)??e.image??"",{imgRef:q,loading:j,hasImage:L,onLoad:O,onError:Z}=Ao(R);o.useEffect(()=>{let I=!1;return(async()=>{if(v){if(typeof v=="string"){if(v.startsWith("http")||v.includes("/")){B({for:N,url:v});return}}else if(typeof v=="object"&&!Array.isArray(v)){const K=v.src;if(K){B({for:N,url:K});return}}}const $=jr();if($&&C)try{const K=await Promise.resolve($(C));!I&&K&&B({for:N,url:K})}catch{}})(),()=>{I=!0}},[v,C,N]);const te=o.useRef(!0),W=o.useRef(null);o.useEffect(()=>(te.current=!0,()=>{te.current=!1,W.current&&Qa(W.current),W.current=null;try{_.current?.pause()}catch{}_.current=null}),[]);const U=o.useCallback(()=>new Promise(I=>{if(typeof window<"u"&&window.speechSynthesis&&C){x(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(C);$.lang="ko-KR",$.onend=()=>{x(!1);try{a?.()}catch{}I()},$.onerror=()=>{x(!1),I()},window.speechSynthesis.speak($)}else I()}),[C,a]),P=o.useCallback(I=>new Promise($=>{let K=!1;const ne=()=>{K||(K=!0,x(!1),$(!1))};try{const X=new Audio(I);_.current=X,X.onended=()=>{if(!K){K=!0,x(!1);try{a?.()}catch{}$(!0)}},X.onerror=ne,X.play().catch(ne)}catch{ne()}}),[a]),F=o.useCallback(async()=>{if(n||!te.current)return;const I=()=>{W.current===I&&(W.current=null);try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1)},$=Ja(I);W.current=I;try{window.speechSynthesis?.cancel()}catch{}try{if(E&&(x(!0),await P(E)))return;const K=nC();if(K&&C)try{const ne=await Promise.resolve(K(C));if(!te.current||W.current!==I||ne&&(x(!0),await P(ne)))return}catch{}if(!te.current||W.current!==I)return;await U()}finally{$(),W.current===I&&(W.current=null)}},[n,E,C,P,U]);o.useImperativeHandle(p,()=>({play:()=>F()}),[F]);const D=I=>I.stopPropagation(),H=o.useCallback(I=>{if(I.stopPropagation(),!n){if(A){try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1);return}F()}},[n,A,F]),M=De("training-word-card",n?"training-word-card--disabled":"",g?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return t.jsx("div",{className:M,onClick:r&&!n?i:void 0,role:r?"button":void 0,"aria-pressed":r?s:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?I=>{I.target===I.currentTarget&&(I.key==="Enter"||I.key===" "||I.key==="Spacebar")&&(I.preventDefault(),i?.())}:void 0,children:t.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:g?"0ms":`${l}ms`},children:[t.jsxs("div",{className:"training-word-card__front",children:[s&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:D,children:t.jsx(xt,{type:"dot",size:40,position:"inline",animate:!0,icon:c!=null?void 0:"check",number:c??void 0,"aria-label":c!=null?m("training.nthSelected",{n:c}):m("training.selected","\uC120\uD0DD\uB428")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:z?t.jsx("div",{className:"training-word-card__text-face",children:w.label}):L?t.jsxs(t.Fragment,{children:[j&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:q,className:"training-word-card__image",src:R,alt:w.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:j?0:1},onLoad:O,onError:Z})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!u&&t.jsxs("div",{className:"training-word-card__body",children:[!z&&t.jsx("div",{className:"training-word-card__word",children:w.label}),w.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",w.subLabel,"]"]}),w.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",w.colloquialLabel,"]"]})]}),!d&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?D:void 0,children:t.jsx(pe,{htmlType:"button",size:f?40:48,type:f?"dot":"bar",icon:A?"pause":"play",label:f?void 0:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:A,onClick:H,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:Ty,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),My=260;function Tn(e){const{t:n}=ye.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:i,children:l,buttons:u,footer:d,footerStart:c,footerEnd:p,footerClassName:m="",footerLayout:C="center",onClose:g,closeDisabled:v=!1,beforeClose:b,closeOnBackdrop:y=!0,className:w="",ariaLabel:h,useTitle:_=!0,inline:f=!1,size:A,layer:x="modal",height:N,fillBody:k=!1,resetScrollKey:B}=e||{},[E,S]=o.useState(!1),z=o.useRef(!1),R=o.useRef(null),q=o.useId(),j=o.useRef(null);o.useEffect(()=>{},[f,a,h,w]),o.useEffect(()=>{B!==void 0&&j.current&&(j.current.scrollTop=0)},[B]);const[L,O]=o.useState(!1);o.useEffect(()=>{const X=j.current;if(!X)return;const ae=()=>O(X.scrollHeight>X.clientHeight+1);if(ae(),typeof ResizeObserver>"u")return;const ue=new ResizeObserver(ae);ue.observe(X);const le=X.firstElementChild;return le&&ue.observe(le),()=>ue.disconnect()},[l,B]),o.useEffect(()=>{if(!f)return Pl()},[f]),o.useEffect(()=>{if(f)return;const X=document.activeElement,ae=R.current;return qr(ae,X),ae&&!ae.contains(document.activeElement)&&(ae.querySelector(mn)??ae).focus(),()=>{const ue=document.activeElement;(!ue||ue===document.body||ae&&ae.contains(ue))&&Ur(X)?.focus?.()}},[f]),Vr(R,!f);const Z=o.useRef(!0),te=Gr(),W=o.useRef(null);o.useEffect(()=>(Z.current=!0,()=>{Z.current=!1,W.current&&(clearTimeout(W.current),W.current=null)}),[]);const U=o.useCallback(()=>{!Z.current||!z.current||(z.current=!1,S(!1))},[]),P=o.useCallback((X,ae=!1)=>{if(ae&&!Z.current||z.current)return;z.current=!0,S(!0);const ue=setTimeout(()=>{W.current===ue&&(W.current=null);let le;try{le=X?X():void 0}catch{U();return}le&&typeof le.then=="function"&&le.then(()=>{setTimeout(U,120)},U)},te?0:My);ae&&(W.current=ue)},[U,te]),F=o.useCallback(()=>{v||b&&b()===!1||P(g,!0)},[P,g,v,b]),D=o.useRef(F);o.useEffect(()=>{D.current=F});const H=!f&&!!g;o.useEffect(()=>{if(H)return zn(()=>D.current())},[H]);const M=H&&y,I=o.useRef(!1),$=X=>{I.current=X.target===X.currentTarget},K=X=>{const ae=I.current;I.current=!1,ae&&X.target===X.currentTarget&&F()},ne=t.jsx("div",{className:`popup ${f?"popup--inline":""} ${x==="belowPagePopup"?"popup--below-page-popup":""} ${E?"popup--closing":""} ${w}`,onPointerDown:M?$:void 0,onClick:M?K:void 0,onMouseDown:f?void 0:X=>{X.target===X.currentTarget&&X.preventDefault()},children:t.jsxs("div",{ref:R,className:`popup-panel${A?` popup-panel--${A}`:""}${N!=null?" popup-panel--has-height":""}${k?" popup-panel--fill-body":""}`,style:N!=null?{"--popup-height":typeof N=="number"?`${N}px`:N}:void 0,tabIndex:-1,role:f?void 0:"dialog","aria-modal":f?void 0:!0,"aria-labelledby":!f&&_&&a?q:void 0,"aria-label":!f&&!(_&&a)?h??(typeof a=="string"?a:void 0):void 0,children:[!_&&(s||g)?t.jsxs("div",{className:"popup-close-float",children:[s,g&&t.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:F,disabled:v,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||s||g?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[a?t.jsx("h2",{id:q,className:"popup-title popup-title--left h2",children:a}):t.jsx("span",{id:q,className:"popup-title popup-title--left h2"}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),i&&t.jsx("div",{className:"popup-header-segment",children:t.jsx(An,{size:40,ariaLabel:i.ariaLabel,options:i.options.map(X=>({key:X.key,label:X.label,disabled:X.disabled})),value:i.value,onChange:i.onChange})}),t.jsxs("div",{className:"popup-header-actions",children:[s,g&&t.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:F,disabled:v,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:j,tabIndex:L?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof l=="function"?l({animateThen:P,closeWithAnimation:F}):l})}),c||p?t.jsxs("div",{className:`popup-footer popup-footer--bar${m?` ${m}`:""}`,children:[t.jsx("div",{className:"popup-footer__start",children:typeof c=="function"?c({animateThen:P,closeWithAnimation:F}):c}),t.jsx("div",{className:"popup-footer__end",children:typeof p=="function"?p({animateThen:P,closeWithAnimation:F}):p})]}):u?.length?t.jsx("div",{className:`popup-footer popup-footer--buttons${C!=="center"?` popup-footer--${C}`:""}`,children:u.map((X,ae)=>t.jsx(pe,{htmlType:"button",size:48,variant:X.variant??"default",label:X.label,disabled:X.disabled,onClick:()=>X.onClick?.({animateThen:P,closeWithAnimation:F})},ae))}):d?t.jsx("div",{className:`popup-footer${C!=="center"?` popup-footer--${C}`:""}${m?` ${m}`:""}`,children:typeof d=="function"?d({animateThen:P,closeWithAnimation:F}):d}):null]})});return f||typeof document>"u"?ne:Xt.createPortal(ne,document.body)}function or(e){return String(e)}const sr=["o","triangle","x"];function du(e,n){return e===n?null:n}const pu={o:"circle",triangle:"triangle",x:"x"},mu={o:"main",triangle:"warn",x:"danger"};function Ly(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 s=n+a+r;return{marked:s,o:n,triangle:a,x:r,rate:s===0?null:(n+a*.5)/s}}function ko(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function hu(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function $y(e,n){return!n&&e>0}const ia={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 Ry(e="landscape"){an("print-word-table-deprecated","[printWordTable] @deprecated \u2014 WordTablePopup renderButtons \uC758 print(\uB610\uB294 useWordTablePrint().print)\uB97C \uC4F0\uC138\uC694. \uC804\uC5ED \uC778\uC1C4\uB294 \uD654\uBA74\uC758 \uBAA8\uB4E0 \uB2E8\uC5B4\uD45C\uB97C \uD568\uAED8 \uCC0D\uC2B5\uB2C8\uB2E4.");const{printSize:n,printW:a,printH:r}=ia[e],s=document.createElement("style");s.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(s);const i=()=>{document.head.removeChild(s),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function Cu(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let s=0;s<e.length;s+=a)r.push(e.slice(s,s+a));return r}const Py={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 Iy(e,n){const a=Py[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),s=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=s,i=Math.ceil(r/l)):(i=s,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}const Fy={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},fu={\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"},gu={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function No(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function bu(e,n,a,r){if(r!=="\uC810\uC120")return{};const s=e%n,i=Math.floor(e/n),l=s<n-1,u=i<a-1;if(!l&&!u)return{};const d="#ddd",c=g=>`repeating-linear-gradient(to ${g}, ${d} 0, ${d} 5px, transparent 5px, transparent 10px)`,p=[],m=[],C=[];return l&&(p.push(c("bottom")),m.push("1px 100%"),C.push("right center")),u&&(p.push(c("right")),m.push("100% 1px"),C.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:C.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const Oy=280,Hy=240,zy=280,Vy=400,Wy=120,qy=280;function yu(e,n){const a=o.useRef(null),[r,s]=o.useState(1),[i,l]=o.useState(0),u=o.useCallback((d,c)=>{if(!(d>0))return;const p=d/e,m=n&&c>0?c/n:1/0,C=Math.min(1,p,m);s(C),l(Math.max(0,(d-e*C)/2))},[e,n]);return o.useEffect(()=>{const d=a.current;if(!d)return;const c=n?d.parentElement??d:d;if(u(c.clientWidth,c.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>u(m.contentRect.width,m.contentRect.height));return p.observe(c),()=>p.disconnect()},[u,n]),{scalerRef:a,scale:r,offset:i}}const Uy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Gy=400,vu=8;function xu({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:s=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:u=!0,buttonSize:d=40,wordInfo:c}){const{t:p}=ye.useTranslation(),m=o.useRef(null),C=o.useRef(null),g=o.useRef(null),[v,b]=o.useState(1),[y,w]=o.useState(!1),[h,_]=o.useState({for:"",url:""}),[f,A]=o.useState(null),x=n&&n.length>0?n:rC()?.(e,r)??"",N=Xn()?.(e,r)??"",{imgRef:k,loading:B,failed:E,onLoad:S,onError:z}=Ao(N),R=o.useCallback(()=>A(C.current?.getBoundingClientRect()??null),[]),q=o.useCallback(()=>A(null),[]),j=Yr(!!f,H=>{H?R():q()},C),L=o.useMemo(()=>{if(!c)return null;const H=[];return c.grade&&H.push(p("wordTable.info.grade",{n:c.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),c.syllables&&H.push(p("wordTable.info.syllables",{n:c.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),c.pos&&H.push(p("wordTable.info.pos",{v:No(c.pos,Ky(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),c.wordType&&H.push(p("wordTable.info.wordType",{v:No(c.wordType,Yy(p)),defaultValue:"\uC720\uD615: {{v}}"})),H.length?H:null},[c,p]),O=x||e,Z=h.for===O?h.url:"";o.useEffect(()=>{const H=jr(),M=x||e;if(!H||!M)return;let I=!1;return Promise.resolve(H(M)).then($=>{!I&&$&&_({for:M,url:$})}),()=>{I=!0}},[x,e]);const te=o.useRef(null),W=o.useRef(null);o.useEffect(()=>()=>{g.current?.pause(),W.current?.()},[]);const U=o.useCallback(async H=>{if(H.stopPropagation(),y){te.current?.();return}if(Z){w(!0);try{const M=new Audio(Z);g.current=M;const I=()=>{w(!1),W.current?.()},$=()=>{M.pause(),I()};te.current=$;const K=Ja($);W.current=K,M.onended=I,M.onerror=I,await M.play()}catch{w(!1),W.current?.()}}},[y,Z]),P=i&&!!N&&!E,F=P&&s?Oy:P?zy:Hy,D=P&&s?Vy:P?qy:Wy;return o.useEffect(()=>{const H=m.current;if(!H||typeof ResizeObserver>"u")return;const M=new ResizeObserver(([I])=>{const{width:$,height:K}=I.contentRect;b(Math.min($/F,K/D))});return M.observe(H),()=>M.disconnect()},[F,D]),t.jsxs("div",{ref:m,className:De("word-table-cell",P?"word-table-cell--with-image":""),"data-ref-w":F,"data-ref-h":D,children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${v})`},children:[P&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[B&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:k,className:"word-table-cell__image",src:N,alt:e,draggable:!1,style:{opacity:B?0:1},onLoad:S,onError:z})]}),s&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&x&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",x,"]"]}),u&&a&&t.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),t.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":Z,children:[t.jsx("span",{"data-play-state":"play",style:{display:y?"none":void 0},children:t.jsx(pe,{htmlType:"button",size:d,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),ariaLabel:e?p("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):p("common.play","\uC7AC\uC0DD"),onClick:U})}),t.jsx("span",{"data-play-state":"pause",style:{display:y?void 0:"none"},children:t.jsx(pe,{htmlType:"button",size:d,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),ariaLabel:e?p("common.pauseFor",{name:e,defaultValue:`${e} \uBA48\uCDA4`}):p("common.pause","\uBA48\uCDA4"),onClick:U})})]}),c&&t.jsxs("div",{ref:C,className:"word-table-cell__info-button",onPointerEnter:H=>{ta(H)||R()},onPointerLeave:H=>{ta(H)||q()},onFocus:()=>{na()||R()},onBlur:q,children:[t.jsx(pe,{htmlType:"button",size:d,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:H=>{H.stopPropagation(),j.touchPress()}}),f&&L&&t.jsx(Vn,{anchorRect:f,items:L,showIndex:!1})]})]})}const _u={\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"},wu={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function Ky(e){return Object.fromEntries(Object.entries(fu).map(([n,a])=>[n,_u[n]?e(`wordTable.pos.${_u[n]}`,{defaultValue:a}):a]))}function Yy(e){return Object.fromEntries(Object.entries(gu).map(([n,a])=>[n,wu[n]?e(`wordSearch.filter.type.${wu[n]}`,{defaultValue:a}):a]))}function la({title:e,titleIcon:n,disc:a,className:r,orientation:s="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:u=!0,showDivLine:d=!0,items:c,editCells:p,count:m,activeCell:C=null,onActivateCell:g,onRemoveCell:v,onRemoveItem:b,onReorder:y,renderCellAction:w,showFillerAdd:h=!1,contentRef:_,buttonSize:f=40,brand:A,code:x,pageNumber:N,pageNumberPosition:k="right",fitHeight:B=!1,scoring:E=!1,marks:S,onMarkClick:z,scoreIndexOffset:R=0}){const q=o.useCallback((Q,ce)=>{z?.(R+Q,ce)},[z,R]),j=(Q,ce)=>{const me=S?.[or(R+Q)]??null;return t.jsx("div",{className:De("word-table-cell__score",me?"word-table-cell__score--marked":""),style:Me>1?{transform:`translateX(-50%) scale(${Me})`,transformOrigin:"bottom center"}:void 0,children:sr.map(Se=>t.jsx("span",{className:De("word-table-cell__score-slot",me===Se?"word-table-cell__score-slot--on":""),children:t.jsx(pe,{htmlType:"button",size:f,type:"dot",shape:"pill",icon:pu[Se],variant:me===Se?mu[Se]:"default",selected:me===Se,useBorder:!1,...ke?{}:{tabIndex:-1,role:"img"},showTooltipInfo:L(`wordTable.scoring.markName.${Se}`,{defaultValue:Se}),ariaLabel:L(`wordTable.scoring.${Se}`,{word:ce,defaultValue:`${ce} ${Se}`}),onClick:ke?et=>{et.stopPropagation(),q(Q,Se)}:void 0})},Se))})},{t:L}=ye.useTranslation(),O=p!==void 0,Z=e!=null||!!n||!!a,te=tn("(max-width: 767px)"),W=o.useRef(null),[U,P]=o.useState(null),F=c?.length??0,[D,H]=o.useState(null),[M,I]=o.useState(""),$=o.useRef(null),K=o.useRef(null),ne=o.useRef(null),X=o.useRef(null),ae=o.useCallback(Q=>{K.current=Q,typeof _=="function"?_(Q):_&&(_.current=Q)},[_]),ue=o.useCallback((Q,ce)=>{$.current=ce,y?.(Q,ce),I(L("wordTable.reorder.moved",{n:ce+1,total:F,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[y,L,F]);o.useEffect(()=>{const Q=$.current;Q!=null&&($.current=null,K.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[Q]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{X.current?.()},[]);const le=o.useCallback((Q,ce)=>{if(!y||!Q.altKey||Q.ctrlKey||Q.metaKey)return;const me=Q.key==="ArrowRight";if(!me&&Q.key!=="ArrowLeft")return;Q.preventDefault();const Se=ce+(me?1:-1);Se<0||Se>=F||ue(ce,Se)},[y,F,ue]),be=o.useCallback((Q,ce)=>{if(!y||Q.pointerType==="mouse")return;const me=Q.target.closest?.("button");if(me&&!me.closest(".word-table-block__card-handle"))return;X.current?.();const Se={x:Q.clientX,y:Q.clientY};let et=!1;const Ke=Ge=>{et&&Ge.cancelable&&Ge.preventDefault()},bt=Ge=>{if(!et){(Math.abs(Ge.clientX-Se.x)>vu||Math.abs(Ge.clientY-Se.y)>vu)&&tt();return}const Ye=document.elementFromPoint?.(Ge.clientX,Ge.clientY)?.closest?.("[data-wordtable-cell]"),Re=Ye?Number(Ye.dataset.wordtableCell):NaN,We=Number.isInteger(Re)?Re:null;ne.current=We,P(We)},ut=()=>{const Ge=ne.current,Ye=et;tt(),Ye&&Ge!=null&&Ge!==ce&&ue(ce,Ge)},it=setTimeout(()=>{et=!0,H(ce),ne.current=ce,P(ce),window.addEventListener("touchmove",Ke,{passive:!1})},Gy);function tt(){clearTimeout(it),window.removeEventListener("pointermove",bt),window.removeEventListener("pointerup",ut),window.removeEventListener("pointercancel",ut),window.removeEventListener("touchmove",Ke),et=!1,ne.current=null,X.current=null,H(null),P(null)}X.current=tt,window.addEventListener("pointermove",bt),window.addEventListener("pointerup",ut),window.addEventListener("pointercancel",ut)},[y,ue]),{width:V,height:ee}=ia[s],oe=typeof B=="number"?B:B&&typeof B=="object"?te?B.narrow:B.wide:null,{scalerRef:Be,scale:Ce,offset:se}=yu(V,B?ee:void 0),ge=O?p?.length??0:c?.length??0,fe=Math.max(m??ge,1),{cols:xe,rows:$e}=Iy(s,fe),Le={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")},Qe=O?(p??[]).some(Q=>Q!==null&&Q.length>1):(c??[]).some(Q=>(Q.words??[]).length>1),Ue=!!A?.show,ze=!!A?.show&&A?.top!==!1,Ie=!!A?.show&&A?.bottom!==!1,st=A?.copyright??"\xA9 IHAB, Inc. All rights reserved.",Xe=De("word-table-block__content",Fy[l],u&&"word-table-block__content--outline",d&&Qe&&"word-table-block__content--div-line",!Ue&&N&&k!=="none"&&"word-table-block__content--page-number",ze&&"word-table-block__content--brand-top",Ie&&"word-table-block__content--brand-bottom"),Je={transform:`scale(${1/Ce})`,transformOrigin:"center center"},Ee=f*sr.length+4*(sr.length-1),ke=!!z,Me=ke?Math.max(1,Math.min(1/Ce,V/xe/Ee)):1,Ve=t.jsxs("div",{ref:Be,className:"word-table__scaler",style:{height:ee*Ce},children:[t.jsx("div",{className:De("word-table",E&&!ke&&"word-table--score-readonly",!Z&&r),style:{width:V,height:ee,transform:`scale(${Ce})`,transformOrigin:"top left",marginLeft:se},children:t.jsxs("div",{ref:ae,className:Xe,style:{gridTemplateColumns:`repeat(${xe}, 1fr)`,gridTemplateRows:`repeat(${$e}, 1fr)`},children:[O?t.jsx(t.Fragment,{children:(p??[]).map((Q,ce)=>t.jsx("div",{className:De("word-table-block__edit-cell",Q?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",C===ce?"word-table-block__edit-cell--active":""),style:bu(ce,xe,$e,l),children:Q?t.jsxs(t.Fragment,{children:[Q.map((me,Se)=>t.jsxs(o.Fragment,{children:[Se>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(xu,{label:me.word,subLabel:me.pronunciation,colloquialLabel:me.colloquialPronunciation,homonum:me.homonum,showWord:Le.word,showImage:Le.image,showPronunciation:Le.pron,showColloquial:Le.colloq,buttonSize:f})]},Se)),E&&j(ce,Q.map(me=>me.word).join(" / ")),v&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(pe,{htmlType:"button",size:f,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:Q.length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:Q.length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>v(ce)})})]}):g&&t.jsx("div",{style:Je,children:t.jsx(pe,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:L("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g(ce)})})},ce))}):t.jsxs(t.Fragment,{children:[(c??[]).map((Q,ce)=>t.jsxs("div",{"data-wordtable-cell":y?ce:void 0,className:`word-table-block__card${y?" word-table-block__card--draggable":""}${U===ce?" word-table-block__card--drag-over":""}${D===ce?" word-table-block__card--dragging":""}`,style:bu(ce,xe,$e,l),draggable:!!y,onPointerDown:y?me=>be(me,ce):void 0,onKeyDown:y?me=>le(me,ce):void 0,onDragStart:y?()=>{W.current=ce}:void 0,onDragOver:y?me=>{me.preventDefault(),P(ce)}:void 0,onDragLeave:y?()=>P(null):void 0,onDrop:y?me=>{me.preventDefault(),W.current!==null&&W.current!==ce&&y(W.current,ce),W.current=null,P(null)}:void 0,onDragEnd:y?()=>{W.current=null,P(null)}:void 0,children:[(Q.words??[]).map((me,Se)=>t.jsxs(o.Fragment,{children:[Se>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(xu,{label:me.label,subLabel:me.subLabel,colloquialLabel:me.colloquialLabel,homonum:me.homonum,showWord:Le.word,showImage:Le.image,showPronunciation:Le.pron,showColloquial:Le.colloq,buttonSize:f,wordInfo:me.grade||me.syllables!=null||me.pos||me.wordType?{grade:me.grade,syllables:me.syllables,pos:me.pos,wordType:me.wordType}:void 0})]},Se)),E&&j(ce,(Q.words??[]).map(me=>me.label).join(" / ")),y&&t.jsx("div",{className:"word-table-block__card-handle",children:t.jsx(pe,{htmlType:"button",size:f,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:L("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:L("wordTable.reorder.handle",{word:(Q.words??[]).map(me=>me.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),(w||b)&&t.jsxs("div",{className:"word-table-block__card-actions",children:[w?.(ce,Q),b&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(pe,{htmlType:"button",size:f,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(Q.words??[]).length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(Q.words??[]).length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>b(Q.id)})})]})]},Q.id)),Array.from({length:Math.max(0,xe*$e-(c?.length??0))}).map((Q,ce)=>{const me=(c?.length??0)+ce<fe;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:h&&g&&me&&t.jsx("div",{style:Je,children:t.jsx(pe,{htmlType:"button",size:f,type:"bar",icon:"plus",label:L("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g((c?.length??0)+ce)})})},`filler-${ce}`)})]}),ze&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:"word-table__band word-table__band--top",children:[t.jsx("img",{className:"word-table__brand-logo",src:A?.topLogo?.src??Xa,alt:A?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const Q=[A?.title&&t.jsx("span",{className:"word-table__paper-title",children:A.title},"t"),A?.owner&&t.jsx("span",{className:"word-table__owner",children:A.owner},"o"),x&&t.jsx("span",{className:"word-table__code",children:x},"c")].filter(Boolean);return Q.length===0?null:t.jsx("span",{className:"word-table__ident",children:Q.map((ce,me)=>t.jsxs(o.Fragment,{children:[me>0&&t.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),ce]},me))})})()]})}),Ie&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[t.jsxs("span",{className:"word-table__brand-by",children:[A?.bottomLogo?t.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:A.bottomLogo.src,alt:A.bottomLogo.alt}):t.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),t.jsx("span",{className:"word-table__copyright",children:st})]}),t.jsxs("span",{className:"word-table__band-end",children:[A?.link&&t.jsx("span",{className:"word-table__link",children:A.link}),N&&k!=="none"&&t.jsx("span",{className:"word-table__page-count",children:L("wordTable.filter.pageIndicator",{current:N.current,total:N.total})})]})]})}),!Ue&&N&&k!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${k}`,children:L("wordTable.filter.pageIndicator",{current:N.current,total:N.total})})]})}),y&&t.jsx("span",{role:"status",style:Uy,children:M})]}),lt=oe==null?Ve:t.jsx("div",{className:"word-table__frame",style:{height:oe},children:Ve});return Z?t.jsx(sa,{type:"page",icon:n,title:e,disc:a,className:De("word-table-block",r),children:lt}):lt}function Zy(e,n,a){const r=[];for(const s of e??[]){if(s.type==="note"||s.type==="input")continue;const i=s.displayLabel??s.label,l=Xy(s,n?.[s.label],a);l!==null&&r.push(`${i} ${l}`)}return r.join(" \xB7 ")}function Xy(e,n,a){const r=(Array.isArray(n)?n:n===void 0?[]:[n]).filter(s=>s!==sn);return r.length===0?e.allOption?e.allLabel??a:null:r.map(s=>Jy(e,s)).join(", ")}function Jy(e,n){const a=[...e.items??[],...(e.groups??[]).flat()];for(const r of a)if(r!=null){if(typeof r=="string"){if(r===n)return r;continue}if(r.value===n)return r.displayLabel??r.labels?.join(" ")??r.value}return n}function kn({title:e,titleLevel:n=2,headerAction:a,headerSummary:r,collapsible:s=!1,defaultCollapsed:i=!1,collapsed:l,onCollapsedChange:u,footer:d,sections:c,selected:p={},onSelect:m,align:C,sectionAlign:g,className:v}){const b=(C??(g==="vertical"?"newline":"inline"))==="inline",{t:y}=ye.useTranslation(),[w,h]=o.useState(i),_=l??w,f=()=>{const S=!_;h(S),u?.(S)},A=S=>{if(!s)return;const z=S.target;!z||typeof z.closest!="function"||z.closest(".filter-panel__collapse-toggle")||z.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||f()},x=o.useMemo(()=>r!==void 0||!_?"":Zy(c,p,y("common.all","\uC804\uCCB4")),[r,_,c,p,y]),N=r??(x?t.jsx("span",{className:"filter-panel__header-summary body-3",children:x}):null),k=e||a||r||s,B=o.useId(),E=n?`h${n}`:"span";return t.jsxs("div",{className:De("filter-panel",s?"filter-panel--collapsible":"",_?"filter-panel--collapsed":"",v),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?B:void 0,children:[k&&t.jsxs("div",{className:"filter-panel__header",onClick:s?A:void 0,children:[t.jsx("div",{className:"filter-panel__title-row",children:e&&t.jsx(E,{id:B,className:"filter-panel__title h4",children:e})}),t.jsxs("div",{className:"filter-panel__header-actions",children:[_?N:a,s&&t.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:_?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:_?y("common.expand","\uD3BC\uCE58\uAE30"):y("common.collapse","\uC811\uAE30"),"aria-expanded":!_,onClick:f})]})]}),!_&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:De("filter-panel__sections",b?"filter-panel__sections--row":""),children:c.map(S=>{const z=p[S.label],R=z===void 0||(Array.isArray(z)?z.length===0:!1),q=(S.items??[]).filter(L=>L!=null);S.allOption&&q.some(L=>(typeof L=="string"?L:L.value)===sn)&&an(`filter-panel-all-value:${S.label}`,`[FilterPanel] '${S.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${sn}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const j=L=>{const O=typeof L=="string"?L:L.value,Z=typeof L!="string"&&!!L.disabled,te=typeof L!="string"?L.labels:void 0,W=typeof L!="string"?L.displayLabel:void 0,U=typeof L!="string"?L.tooltip:void 0,P=typeof L!="string"?L.descriptionTooltip:void 0,F=typeof L!="string"?L.shape:void 0,D=Array.isArray(z)?z.includes(O):z===O;return t.jsx(pe,{htmlType:"button",size:"keyboard",label:te??W??O,type:S.itemType??(te?"bar":O.length===1?"dot":void 0),selected:D,disabled:Z,shape:F,showTooltipInfo:!!U,tooltipInfoText:U,tooltipDescription:P,onClick:()=>m?.(O,S.label)},O)};return t.jsxs(o.Fragment,{children:[S.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:S.groupLabel}),S.groupAction]}),t.jsxs("div",{className:De("filter-panel__section",S.layout==="row"?"filter-panel__section--row":"",S.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:S.displayLabel??S.label}),S.labelAction??(S.labelInfo?t.jsx(Ea,{...S.labelInfo}):null)]}),S.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:S.content}):S.type==="input"?t.jsx(Un,{className:"filter-panel__textfield",placeholder:S.placeholder,ariaLabel:S.displayLabel??S.label,value:p[S.label]??"",onChange:L=>m?.(L,S.label),error:S.error}):!S.multiple&&S.display==="segmented"?t.jsx(An,{ariaLabel:S.displayLabel??S.label,options:[...S.allOption?[{key:sn,label:S.allLabel??y("common.all","\uC804\uCCB4"),disabled:S.allOptionDisabled}]:[],...q.map(L=>{const O=typeof L=="string"?L:L.value,Z=typeof L!="string"?L.displayLabel:void 0,te=typeof L!="string"?L.disabled:void 0;return{key:O,label:Z??O,disabled:te}})],value:R&&S.allOption?sn:p[S.label]??"",onChange:L=>m?.(L,S.label),size:32}):!S.multiple&&S.display==="dropdown"?t.jsx(ln,{className:"filter-panel__dropdown",size:40,options:[...S.allOption?[{value:sn,label:S.allLabel??y("common.all","\uC804\uCCB4"),disabled:S.allOptionDisabled}]:[],...q.map(L=>{const O=typeof L=="string"?L:L.value,Z=typeof L!="string"?L.displayLabel:void 0,te=typeof L!="string"?L.disabled:void 0;return{value:O,label:Z??O,disabled:te}})],value:R&&S.allOption?sn:p[S.label],onChange:L=>m?.(L,S.label)}):t.jsxs("div",{className:S.groups?"filter-panel__item-groups":"filter-panel__items",children:[S.allOption&&!S.groups&&t.jsx(pe,{htmlType:"button",size:"keyboard",label:S.allLabel??y("common.all","\uC804\uCCB4"),selected:R,disabled:S.allOptionDisabled,onClick:()=>m?.(sn,S.label)}),S.groups?S.groups.map((L,O)=>t.jsxs("div",{className:"filter-panel__item-group",children:[O===0&&S.allOption&&t.jsx(pe,{htmlType:"button",size:"keyboard",label:S.allLabel??y("common.all","\uC804\uCCB4"),selected:R,disabled:S.allOptionDisabled,onClick:()=>m?.(sn,S.label)}),L.filter(Z=>Z!=null).map(j)]},O)):q.map(j)]})]})]},S.label)})}),d!=null&&d!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:d})]})]})}const Qy=[1,2,3,4,5,6,7,8,9,10,11,12],Au=[8,4,2,1];function Bu(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 ku(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 Nu(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 Du(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),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 Eu(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),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 Su(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 ju(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 Tu(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...Au.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Mu(e,n){return e===n||!Au.includes(e)?Number.POSITIVE_INFINITY:e}function e5(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 Lu={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function $u(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Ru(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",...n.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:n.showTopInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{},...n.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:n.showBottomInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{}}}function Pu(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===sn?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(s=>s.includes(n)?s.filter(i=>i!==n):[...s,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):a===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(n==="\uD45C\uC2DC"),!0):!1}function t5(e){return"sections"in e}function Do(e){const{t:n}=ye.useTranslation(),{title:a,className:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d}=e,c={collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d};if(t5(e))return t.jsx(kn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...c,align:"inline"});const{hasImage:p,hasColloquial:m,contentTypes:C,orientation:g,showOutline:v,cutLine:b,showDivLine:y,setters:w,showCutLine:h=!1,showDivLine2:_=!1,middleSections:f=[],extraSelected:A={},onExtraSelect:x,showPaperBands:N=!1,showTopInfo:k=!0,showBottomInfo:B=!0}=e,E=[Bu(n,{hasImage:p,hasColloquial:m}),ku(n),...f,Nu(n),...h?[Su(n)]:[],..._?[ju(n)]:[],...N?[Du(n),Eu(n)]:[]],S={...Ru(n,{contentTypes:C,orientation:g,showOutline:v,cutLine:b,showDivLine:y,showTopInfo:k,showBottomInfo:B}),...A},z=(R,q)=>{Pu(n,R,q,w)||x?.(R,q)};return t.jsx(kn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:E,selected:S,onSelect:z,...c,sectionAlign:"horizontal"})}function Iu(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Eo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let ir=null,ua=null;function n5(e,n,a,r="",s=""){if(e.length===0||ua&&ua.iframe.isConnected&&Date.now()-ua.at<1e4)return;const i=r?Eo(r):"";ir?.();let l=null;if(i){const c=document.title;document.title=i,l=()=>{document.title=c,window.removeEventListener("afterprint",l),ir===l&&(ir=null)},ir=l,window.addEventListener("afterprint",l)}const u=document.createElement("iframe");u.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(u);const d=u.contentDocument;if(!d){u.remove();return}ua={iframe:u,at:Date.now()},d.open(),d.write(So(e,n,a,!0,i,s)),d.close(),u.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{u.remove(),ua?.iframe===u&&(ua=null)},0)})}function So(e,n,a,r=!1,s="",i=""){s=s?Eo(s):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
859
+ `),b=v===-1?a:a.slice(0,v);i("comment",b),a=a.slice(b.length);continue}const u=a.match(/^\/\*[\s\S]*?\*\//);if(u){i("comment",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(d){i("string",d[0]),a=a.slice(d[0].length);continue}const c=a.match(/^\d+(?:\.\d+)?/);if(c){i("number",c[0]),a=a.slice(c[0].length);continue}const p=a.match(V4);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 v=m[0];i(s&&z4.has(v)?"command":"identifier",v),a=a.slice(v.length);continue}const C=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(C){i("operator",C[0]),a=a.slice(C[0].length);continue}const g=a.match(/^[()[\]{};.,]/);if(g){i("punctuation",g[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function q4({children:e,language:n="bash",title:a="",showCopy:r=!0,size:s="default",className:i=""}){const{t:l}=ye.useTranslation(),[u,d]=o.useState(!1),c=H4(Hl(e)),p=o.useRef(null);o.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const m=async()=>{try{if(!await LC(c))return;d(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>d(!1),2e3)}catch{}},C=W4(c,n),g=s==="small"?"caption-1":"body-3";return t.jsxs("div",{className:Ne("code-box",s==="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(pe,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:u?"check":"copy",onClick:m,ariaLabel:u?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:C.map((v,b)=>t.jsx("span",{className:`code-token ${v.type} ${g}`,children:v.content},b))})})]})}const U4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Ma(e){const{t:n}=ye.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:i}=e||{},l=i||n("loader.loading","Loading");if(a==="bar"){const d=s==null||!Number.isFinite(Number(s)),c=d?0:Math.max(0,Math.min(100,Number(s)));return t.jsx("div",{className:`loader-bar${d?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d?void 0:c,"aria-label":l,children:t.jsx("div",{className:"loader-bar__inner",style:d?void 0:{width:`${c}%`}})})}const u=typeof r=="number"?`${r}px`:r;return t.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":l,children:[t.jsx("span",{style:U4,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 zl({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:s,labelPosition:i="right",className:l="",id:u}){const d=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"&&d,t.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:c=>n?.(c.target.checked),"aria-label":!r&&s?s:void 0}),t.jsx("span",{className:"toggle__slider"}),i==="right"&&d]})}function Vl({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:s,size:i="medium",className:l,title:u,ariaLabel:d}){const c=o.useRef(null),p=o.useId(),m=o.useRef(!!r);return m.current=!!r,o.useEffect(()=>{c.current&&(c.current.indeterminate=!!r)}),t.jsxs("label",{className:Ne("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:u,children:[t.jsx("input",{ref:c,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:C=>{n?.(C.target.checked),c.current&&(c.current.indeterminate=m.current)},disabled:a,"aria-label":!s&&d?d:void 0}),t.jsx("span",{className:"checkbox__box"}),s&&t.jsx("span",{className:"checkbox__label body-3",children:s})]})}function G4({count:e,actions:n,onClear:a,clearLabel:r,visible:s,content:i,max:l}){const{t:u}=ye.useTranslation(),d=s!==void 0?s:e>0,c=r??u("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=o.useRef(null),m=o.useRef(null),C=o.useRef(null),g=o.useRef(d);o.useLayoutEffect(()=>{const h=m.current,_=g.current;if(g.current=d,d&&!_){const f=typeof document<"u"?document.activeElement:null;C.current=f&&f!==document.body&&!h?.contains(f)?f:null}else!d&&_&&h&&h.contains(document.activeElement)&&Ga(h,C.current)},[d]);const[v,b]=o.useState(!1),y=o.useRef(!1),w=o.useRef(null);return o.useEffect(()=>{const h=p.current;if(!h)return;const _=B=>{y.current=B,b(B)},f=()=>{const B=h.firstElementChild??h,E=Array.from(B.children);if(E.length<2){_(!1);return}const S=E[0].offsetTop,z=E.some(O=>O.offsetTop!==S);if(!y.current){w.current=h.clientWidth,z&&_(!0);return}if(z)return;const R=E[0],q=E[E.length-1],j=q.offsetLeft+q.offsetWidth-R.offsetLeft,L=w.current;(L==null||j<=L)&&_(!1)};if(f(),typeof ResizeObserver>"u")return;const A=new ResizeObserver(f);A.observe(h);const x=h.parentElement;let N=x?.clientWidth??0;const k=new ResizeObserver(()=>{const B=x?.clientWidth??0;B!==N&&(N=B,w.current=null,f())});return x&&k.observe(x),()=>{A.disconnect(),k.disconnect()}},[i,e]),t.jsxs("div",{ref:m,className:`bulk-bar ${d?"bulk-bar--visible":""}`,inert:!d||void 0,"aria-hidden":d?void 0:!0,children:[t.jsx("span",{ref:p,className:"bulk-bar__count body-2",role:"status",children:i??t.jsx("b",{children:u("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(xt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`,"aria-label":u("common.selectedOfMax",{count:e,max:l,defaultValue:`\uCD5C\uB300 ${l}\uAC1C \uC911 ${e}\uAC1C`})}),t.jsxs("div",{className:`bulk-bar__actions${v?" bulk-bar__actions--stacked":""}`,children:[t.jsx(pe,{htmlType:"button",size:40,label:c,onClick:a}),n.map((h,_)=>t.jsx(pe,{htmlType:"button",size:40,variant:h.variant??"default",icon:h.icon,label:h.label,onClick:h.onClick},_))]})]})}const K4=[{\uC5F4\uC1E0:"edit",icon:"edit-2",\uB2EB\uACE0\uD560\uAE4C:!0},{\uC5F4\uC1E0:"duplicate",icon:"copy",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"publish",icon:"book-marked",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"copyLink",icon:"link",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"remove",icon:"trash-2",\uB2EB\uACE0\uD560\uAE4C:!0}];function Y4(e){const{onClose:n,className:a}=e;return t.jsx("div",{className:Ne("item-actions",a),children:K4.map(({\uC5F4\uC1E0:r,icon:s,\uB2EB\uACE0\uD560\uAE4C:i})=>{const l=e[r];if(!l)return null;const u=r==="publish"?l.published?l.unpublish:l.publish:l;return t.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:s,ariaLabel:u.label,showTooltipInfo:u.label,onClick:()=>{i&&n(),u.onClick()}},r)})})}function Wl(e,n){const a=()=>{if(e){const[b,y]=e.split("-");return{y:+b,m:+y-1}}const[g,v]=Or(n).split("-");return{y:+g,m:+v-1}},[r,s]=o.useState(()=>a().y),[i,l]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const g=a();s(g.y),l(g.m)},[e]);const d=o.useRef({y:r,m:i});o.useEffect(()=>{d.current={y:r,m:i}},[r,i]);const c=o.useCallback(g=>{const v=d.current.y*12+d.current.m+g,b=Math.floor(v/12),y=v-b*12;d.current={y:b,m:y},s(b),l(y)},[]),p=o.useCallback(()=>c(-1),[c]),m=o.useCallback(()=>c(1),[c]),C=o.useCallback((g,v)=>{d.current={y:g,m:v},s(g),l(v)},[]);return{viewY:r,viewM:i,prevMonth:p,nextMonth:m,setViewYM:C}}function tr(e,n){return new Date(e,n+1,0).getDate()}function Z4(e,n){return new Date(e,n,1).getDay()}function nr(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function X4(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function J4(e,n,a,r){const s=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let u=s;u<=i;u++)for(let d=0;d<12;d++){const c=`${u}-${String(d+1).padStart(2,"0")}`;a&&c<a.slice(0,7)||r&&c>r.slice(0,7)||l.push({value:c,label:n(u,d+1)})}return l}function Q4({value:e,onChange:n,size:a=48,min:r,max:s,disabled:i,placeholder:l,className:u,today:d}){const{t:c}=ye.useTranslation(),p=l??c("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),m=o.useMemo(()=>c("calendar.dow",{returnObjects:!0}),[c]),C=Or(d),{viewY:g,viewM:v,prevMonth:b,nextMonth:y,setViewYM:w}=Wl(e,d),h=o.useId(),_=o.useCallback((D,H)=>{const M=window.innerHeight,I=window.innerWidth,$=typeof document<"u"?document.getElementById(h):null,K=Math.max($?.offsetHeight||0,$?.scrollHeight||0)||300,ne=Math.max(D.width,$?.offsetWidth||0,260),X=M-D.bottom,ae=D.top,ue=X<K&&ae>X,le=8,be=(V,Q)=>Math.min(Math.max(le,V),Math.max(le,Q));return{position:"fixed",left:be(D.left,I-ne-le),width:D.width,minWidth:260,...ue?{top:"auto",bottom:be(M-D.top+6,M-K-le)}:{bottom:"auto",top:be(D.bottom+6,M-K-le)},zIndex:Aa(H)}},[h]),{open:f,setOpen:A,toggle:x,style:N,triggerRef:k,menuRef:B}=Ba({computeStyle:_,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!f)return;const D=B.current;return(D?.querySelector(".date-picker__day--selected:not(:disabled)")??D?.querySelector(".date-picker__day--today:not(:disabled)")??D?.querySelector(".date-picker__day:not(:disabled)")??D?.querySelector(mn)??D)?.focus?.(),()=>{const H=document.activeElement;(!H||H===document.body)&&k.current?.focus?.()}},[f,B,k]);const[E,S]=o.useState(1),z=o.useRef(null),R=o.useRef(null);o.useEffect(()=>{if(!f)return;const D=e&&e.slice(0,7)===`${g}-${String(v+1).padStart(2,"0")}`?+e.slice(8):C.slice(0,7)===`${g}-${String(v+1).padStart(2,"0")}`?+C.slice(8):1;S(D)},[f]),o.useEffect(()=>{if(R.current==null)return;const D=R.current;R.current=null,z.current?.querySelector(`[data-day="${D}"]`)?.focus()}),o.useEffect(()=>{S(D=>Math.min(D,tr(g,v)))},[g,v]);const q=o.useCallback(D=>{let H=nr(D.getFullYear(),D.getMonth(),D.getDate());r&&H<r&&(H=r),s&&H>s&&(H=s);const[M,I,$]=H.split("-").map(Number);(M!==g||I-1!==v)&&w(M,I-1),S($),R.current=$},[r,s,g,v,w]),j=o.useCallback(D=>{const H=new Date(g,v,E),M=$=>{H.setDate(H.getDate()+$),q(H)},I=$=>{const K=H.getFullYear()*12+H.getMonth()+$,ne=Math.floor(K/12),X=K-ne*12;q(new Date(ne,X,Math.min(H.getDate(),tr(ne,X))))};switch(D.key){case"ArrowLeft":M(-1);break;case"ArrowRight":M(1);break;case"ArrowUp":M(-7);break;case"ArrowDown":M(7);break;case"Home":M(-H.getDay());break;case"End":M(6-H.getDay());break;case"PageUp":D.shiftKey?I(-12):I(-1);break;case"PageDown":D.shiftKey?I(12):I(1);break;default:return}D.preventDefault()},[g,v,E,q]),L=o.useCallback(D=>{i||(n(nr(g,v,D)),A(!1))},[g,v,n,A,i]);o.useEffect(()=>{i&&A(!1)},[i,A]);const O=D=>{const H=nr(g,v,D);return!!(r&&H<r||s&&H>s)},Z=(()=>{const D=tr(g,v);if(E>=1&&E<=D&&!O(E))return E;for(let H=1;H<=D;H++)if(!O(H))return H;return-1})(),ee=[];for(let D=0;D<Z4(g,v);D++)ee.push(null);for(let D=1;D<=tr(g,v);D++)ee.push(D);const W=a===64?20:a===40?16:18,U=J4(g,(D,H)=>c("calendar.yearMonth",{year:D,month:H,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,s),P=`${g}-${String(v+1).padStart(2,"0")}`,F=f?Xt.createPortal(t.jsxs("div",{ref:B,id:h,className:"date-picker__dropdown",style:N,"data-tooltip-ignore":!0,role:"dialog","aria-label":c("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:b,"aria-label":c("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(ls,{size:16,strokeWidth:2})}),t.jsx(ln,{className:"date-picker__nav-dropdown",ariaLabel:c("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:U,value:P,onChange:D=>{const[H,M]=D.split("-");w(+H,+M-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:y,"aria-label":c("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(us,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:z,onKeyDown:j,children:[m.map(D=>t.jsx("div",{className:"date-picker__dow caption-1",children:D},D)),ee.map((D,H)=>{if(D===null)return t.jsx("div",{},`e${H}`);const M=nr(g,v,D),I=M===e,$=M===C,K=O(D),ne=H%7;return t.jsx("button",{type:"button",disabled:K,"data-day":D,tabIndex:D===Z?0:-1,"aria-current":$?"date":void 0,onClick:()=>!K&&L(D),className:Ne("date-picker__day caption-1",I&&"date-picker__day--selected",$&&!I&&"date-picker__day--today",K&&"date-picker__day--disabled",ne===0&&"date-picker__day--sun",ne===6&&"date-picker__day--sat"),children:D},D)})]})]}),document.body):null;return t.jsxs("div",{className:Ne("date-picker",`date-picker--s${a}`,f&&"date-picker--open",u),children:[t.jsxs("button",{ref:k,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&x(),disabled:i,"aria-haspopup":"true","aria-expanded":f,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?X4(e):p}),t.jsx(bs,{size:W,className:"date-picker__icon",strokeWidth:1.5})]}),F]})}function ql({children:e,className:n}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useEffect(()=>{s(a.current?.parentElement??null)},[]),o.useEffect(()=>{const i=a.current;if(!i||!r)return;const l=()=>{const d=typeof window<"u"&&window.getComputedStyle(i).position==="absolute"?Math.ceil(i.getBoundingClientRect().width):0;d>0?r.style.setProperty("--section-head-float-w",`${d}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const u=new ResizeObserver(()=>l());return u.observe(i),u.observe(r),()=>{u.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),t.jsx("div",{ref:a,className:Ne("section-head-float",n),children:e})}function mo({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 La({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 ho({title:e,titleClassName:n="h3",titleLevel:a=3,icon:r,disc:s,headRight:i,headFloat:l,headSegment:u,headMenuItems:d,collapseBelow:c=420,onClick:p,ariaLabel:m,tooltip:C,totalNum:g,totalUnit:v,totalLabel:b,subRow:y,subRowAlign:w="start",className:h,inGrid:_=!1,children:f}){const{t:A}=ye.useTranslation(),x=o.useRef(null),{anchorRect:N,openAt:k,close:B}=wa(),E=o.useCallback(()=>{C&&x.current&&k(x.current)},[C,k]),[S,z]=o.useState(!1);co(()=>{const M=x.current;if(!M||!u)return;const I=K=>z(K>0&&K<c);if(I(M.clientWidth),typeof ResizeObserver>"u")return;const $=new ResizeObserver(K=>I(K[0].contentRect.width));return $.observe(M),()=>$.disconnect()},[u,c]);const[R,q]=o.useState(null),j=o.useCallback(()=>q(null),[]),L=o.useCallback(M=>{const I=M.currentTarget.getBoundingClientRect();q($=>$?null:{left:I.left,right:I.right,top:I.top,bottom:I.bottom,width:I.width,height:I.height,x:I.x,y:I.y})},[]),O=!!u&&S;o.useEffect(()=>{O||q(null)},[O]);const Z=u?[...u.options.map(M=>({label:M.label,icon:M.icon,selected:M.key===u.value,disabled:M.disabled,onClick:()=>u.onChange(M.key),closeOnSelect:!0})),...(d??[]).map((M,I)=>I===0?{...M,separatorBefore:!0}:M)]:[],ee=o.useCallback(M=>{if(!p)return;const I=M.target;I&&typeof I.closest=="function"&&I.closest('button, a, input, select, textarea, [role="radiogroup"]')||p()},[p]),W=o.useCallback(M=>{p&&M.target===M.currentTarget&&(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),p())},[p]),U=typeof i=="function"?i({collapsed:O}):i,P=g!=null||b?t.jsxs(La,{label:b,children:[g!=null&&t.jsx("span",{className:"barchart-total__num h0",children:g}),v&&t.jsx("span",{className:"barchart-total__unit h5",children:v})]}):null,F=U||u?t.jsxs("div",{className:"manager-section__head-right",children:[u&&(O?t.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:u.ariaLabel??A("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:u.ariaLabel??A("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!R,onClick:L}):t.jsx(An,{size:32,ariaLabel:u.ariaLabel,options:u.options.map(M=>({key:M.key,label:M.label,disabled:M.disabled})),value:u.value,onChange:u.onChange})),U]}):null,D=o.useId(),H=a?`h${a}`:"div";return t.jsxs("section",{ref:x,className:["manager-section",_&&"manager-section--grid",p&&"manager-section--clickable",h].filter(Boolean).join(" "),onClick:p?ee:void 0,onKeyDown:p?W:void 0,onPointerEnter:C?E:void 0,onPointerLeave:C?B:void 0,onFocus:C?E:void 0,onBlur:C?B:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,"aria-label":p?m??(typeof e=="string"?e:void 0):void 0,"aria-labelledby":!p&&e!=null?D:void 0,children:[C&&N&&t.jsx(vn,{anchorRect:{left:N.left,top:N.top+21,right:N.right,bottom:N.bottom,width:N.width,height:N.height},text:C}),l&&t.jsx(ql,{children:l}),t.jsxs("div",{className:"manager-section__head",children:[t.jsxs("div",{className:"manager-section__title-row",children:[r&&t.jsx(Ze,{icon:r,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),t.jsx(H,{id:D,className:["manager-section__title",n].filter(Boolean).join(" "),children:e})]}),F,s&&t.jsx("div",{className:"manager-section__disc body-3",children:s})]}),(P||y)&&t.jsxs("div",{className:["barchart-sub-row",w!=="start"&&`barchart-sub-row--${w}`].filter(Boolean).join(" "),children:[P,y]}),f,R&&t.jsx(on,{anchorRect:R,onClose:j,ariaLabel:u?.ariaLabel??A("tooltip.menu","\uBA54\uB274"),children:t.jsx(ka,{columns:[{items:Z}],onClose:j,size:"small"})})]})}function hn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function ey(){const e=Jn();let n=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<hn(n,a)){const l=new Date(n,a,0);n=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const s=Math.floor((r-hn(n,a))/7),i=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${s}`}}function ty(e){const n=Jn(),a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(d,c)=>`${d}\uB144 ${c+1}\uC6D4`,s=new Map;s.set(a,[]);for(const d of e){if(isNaN(d.date.getTime()))continue;const c=r(d.date.getFullYear(),d.date.getMonth());s.has(c)||s.set(c,[]),s.get(c).push(d)}for(const[d,c]of[...s.entries()]){const p=d.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),C=Number(p[2])-1,g=hn(m,C);if(!(d===a&&n.getDate()<g)&&!c.some(y=>y.date.getDate()<g))continue;const v=new Date(m,C,0),b=r(v.getFullYear(),v.getMonth());s.has(b)||s.set(b,[])}const i=new Map;for(const[d,c]of s){const p=d.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const m=Number(p[1]),C=Number(p[2])-1,g=new Date(m,C+1,0).getDate(),v=c.reduce((f,A)=>Math.max(f,A.parts?.length??0,A.partsB?.length??0),0),b=c.some(f=>f.partsB),y=new Array(g+1).fill(0),w=new Array(g+1).fill(0),h=Array.from({length:g+1},()=>new Array(v).fill(0)),_=Array.from({length:g+1},()=>new Array(v).fill(0));for(const f of c){const A=f.date.getDate();if(y[A]+=f.a,w[A]+=f.b,f.parts)for(let x=0;x<v;x++)h[A][x]+=f.parts[x]??0;if(f.partsB)for(let x=0;x<v;x++)_[A][x]+=f.partsB[x]??0}i.set(d,{year:m,month:C,daysInMonth:g,partsLen:v,hasPartsB:b,dayA:y,dayB:w,dayParts:h,dayPartsB:_})}const l=(d,c,p)=>new Date(d,c,p).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),u={};for(const[d,c]of i){const{year:p,month:m,daysInMonth:C,dayA:g,dayB:v,dayParts:b,dayPartsB:y}=c,w=p===n.getFullYear()&&m===n.getMonth(),h=n.getDate(),_=i.get(r(m===11?p+1:p,(m+1)%12)),f=c.partsLen,A=[];for(let N=1;N<=C;N++){const k=w&&N>h;A.push({label:String(N),...k&&g[N]===0&&v[N]===0?{future:!0}:{},a:k&&g[N]===0&&v[N]===0?-1:g[N],b:v[N],...f?{parts:b[N]}:{},...f&&c.hasPartsB?{partsB:y[N]}:{}})}const x=[];for(let N=hn(p,m);N<=C;N+=7){const k=Math.max(0,N+6-C),B=k&&_?Math.max(f,_.partsLen):f,E=c.hasPartsB||!!(k&&_?.hasPartsB);let S=0,z=0;const R=new Array(B).fill(0),q=new Array(B).fill(0);for(let L=N;L<=Math.min(N+6,C);L++){S+=g[L],z+=v[L];for(let O=0;O<f;O++)R[O]+=b[L][O],q[O]+=y[L][O]}if(k&&_)for(let L=1;L<=k&&!l(_.year,_.month,L);L++){S+=_.dayA[L],z+=_.dayB[L];for(let O=0;O<_.partsLen;O++)R[O]+=_.dayParts[L][O],q[O]+=_.dayPartsB[L][O]}const j=k?`${(m+1)%12+1}/${k}`:`${N+6}`;x.push({label:`${x.length+1}\uC8FC`,sublabel:`[${N}\uC77C~${j}\uC77C]`,a:S,b:z,...B?{parts:R}:{},...B&&E?{partsB:q}:{}})}u[d]={weekly:x,daily:A}}return u}function Ul(){const e=Jn(),n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let s=2024;s<=n;s++){const i=s===n?a:12;for(let l=1;l<=i;l++){const u=`${s}\uB144 ${l}\uC6D4`;r.push({value:u,label:u,year:s,month:l})}}return r.reverse()}Ul();function ny(){return Ul()}const Gl=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Kl(e){const{t:n,i18n:a}=ye.useTranslation(),[r,s]=o.useState("week"),i=o.useMemo(()=>ny().filter(B=>B.value in e),[e]),l=o.useMemo(()=>{const B=[];for(const E of i){const S=new Date(E.year,E.month,0).getDate(),z=hn(E.year,E.month-1),R=Math.ceil((S-z+1)/7);for(let q=R-1;q>=0;q--)B.push({value:`${E.value}#${q}`,monthKey:E.value,year:E.year,month:E.month,week:q})}return B},[i]),u=o.useCallback(B=>{const E=n("calendar.yearMonth",{year:B.year,month:B.month});return a.language?.startsWith("ko")?`${E} ${Gl[B.week]??`${B.week+1}`}\uC8FC`:`${E} Week ${B.week+1}`},[n,a.language]),d=o.useMemo(()=>i.map(B=>({value:B.value,label:n("calendar.yearMonth",{year:B.year,month:B.month})})),[n,i]),c=o.useMemo(()=>l.map(B=>({value:B.value,label:u(B)})),[l,u]),p=o.useMemo(()=>ey(),[e]),m=o.useMemo(()=>i.find(B=>B.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),C=o.useMemo(()=>l.find(B=>B.value===p.value)?.value??l[0]?.value??"",[l,p]),[g,v]=o.useState(""),[b,y]=o.useState("");o.useEffect(()=>{i.find(B=>B.value===g)||v(m)},[i,g,m]),o.useEffect(()=>{l.find(B=>B.value===b)||y(C)},[l,b,C]);const w=r==="month"?d:c,h=r==="month"?g:b,_=r==="month"?v:y,f=o.useMemo(()=>{const B=n("calendar.dow",{returnObjects:!0});return Array.isArray(B)?B:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),A=w.findIndex(B=>B.value===h),x=o.useCallback(()=>{const B=w.findIndex(E=>E.value===h);B<w.length-1&&_(w[B+1].value)},[w,h,_]),N=o.useCallback(()=>{const B=w.findIndex(E=>E.value===h);B>0&&_(w[B-1].value)},[w,h,_]),k=o.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:s,range:h,setRange:_,activeOptions:w,activeIdx:A,handlePrev:x,handleNext:N,periodOptions:k,monthRange:g,weekRange:b,weekRanges:l,DOW:f}}const ht=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function Bn(e,n=!0){return e.future===!0||n&&e.a===-1}function ay({data:e,colorA:n,colorB:a,labelA:r,labelB:s,barWidth:i=10,barGap:l=1,height:u=140,maxOverride:d,tightMax:c,seriesColors:p,seriesLabels:m,rateLabels:C,grouped:g=!1,baseline:v,focusableBars:b=!1}){const y=!a,w=!!(p&&p.length>0),h=v,_=o.useMemo(()=>w?Math.max(0,...e.filter(W=>!Bn(W,h==null)).map(W=>g?Math.max(0,...(W.parts??[]).map(ht)):(W.parts??[]).reduce((U,P)=>U+Math.max(0,ht(P)),0))):Math.max(0,...e.filter(W=>!Bn(W,h==null)).flatMap(W=>y?[ht(W.a)]:[ht(W.a),ht(W.b)])),[e,y,w,g]),f=o.useMemo(()=>{if(h==null)return 0;const W=e.filter(U=>!Bn(U,h==null)).flatMap(U=>w?(U.parts??[]).map(ht):y?[ht(U.a)]:[ht(U.a),ht(U.b)]);return Math.max(0,...W.map(U=>Math.abs(U-h)))},[e,h,w,y]),A=o.useMemo(()=>{const W=h!=null?f:_;return d??(c?W>0?W:10:Math.ceil(W/10)*10||10)},[_,f,h,d,c]),x=u,N=w?g?Math.max(1,p.length):1:y?1:2,k={"--bar-width":`${o.useMemo(()=>{const W=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/(W*N)+6)))},[e.length,N,i])}px`},B={"--bar-group-gap":`${Math.max(0,l)}px`},E=o.useMemo(()=>{const W=Math.round(A/2);return h!=null?[h+A,...W!==A?[h+W]:[],h,...W!==A?[h-W]:[],h-A]:W!==A?[A,W,0]:[A,0]},[A,h]),S=W=>h!=null?1-(W-(h-A))/(2*A):1-W/A,[z,R]=o.useState(null),q=o.useCallback(()=>R(null),[]),j=o.useCallback((W,U)=>{const P=[W.label,W.sublabel].filter(Boolean).join(" ");let F;if(w&&g&&W.rawPartsB)F=(m??[]).map((D,H)=>{const M=W.rawPartsB[H]??0;return{text:M>0?`${D}: ${U[H]??0}% (${W.rawParts?.[H]??0}/${M})`:`${D}: -`,color:(p??[])[H]}});else if(w&&g)F=(m??[]).map((D,H)=>({text:`${D}: ${Z(U[H]??0)}`,color:(p??[])[H]}));else if(w){const D=(m??[]).map((M,I)=>({text:`${M}: ${U[I]??0}`,color:(p??[])[I]})),H=D.filter((M,I)=>(U[I]??0)>0);F=H.length?H:D}else C&&!y?F=[{text:`${r} ${ht(W.a)}%`,color:n},{text:`${s} ${ht(W.b)}%`,color:a}]:C&&W.rawB!==void 0?F=[{text:`${C.total} ${W.rawB}`},{text:`${C.done} ${W.rawA??0}`,color:n}]:y?F=[{text:`${r}: ${ht(W.a)}`,color:n}]:F=[{text:`${r}: ${ht(W.a)}`,color:n},{text:`${s}: ${ht(W.b)}`,color:a}];return{title:P,items:F}},[w,g,m,p,C,y,r,s,n,a,h]),L=o.useCallback((W,U,P)=>{const F=W.getBoundingClientRect(),{title:D,items:H}=j(U,P);R({rect:{left:F.left,top:F.top,right:F.right,bottom:F.bottom,width:F.width,height:F.height},title:D,items:H})},[j]),O=o.useCallback((W,U)=>{const{title:P,items:F}=j(W,U);return[P,...F.map(D=>D.text)].filter(Boolean).join(", ")},[j]),Z=W=>h!=null&&W>h?`+${W}`:`${W}`,ee=z!=null;return o.useEffect(()=>{if(!ee)return;const W=()=>R(null),U=P=>{const F=P.target;F&&typeof F.closest=="function"&&F.closest(".manager-bar-chart-col")||R(null)};return window.addEventListener("scroll",W,!0),document.addEventListener("pointerdown",U,!0),()=>{window.removeEventListener("scroll",W,!0),document.removeEventListener("pointerdown",U,!0)}},[ee]),t.jsxs("div",{className:"manager-bar-chart-wrap",style:B,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:x},children:[E.slice(0,-1).map((W,U)=>t.jsx("div",{className:`manager-bar-chart-gridline${h!=null&&W===h?" manager-bar-chart-gridline--baseline":""}`,style:{top:S(W)*x},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:W})},U)),e.map((W,U)=>{const P=Bn(W,h==null),F=x/2,D=$=>h!=null?Math.min(F,Math.abs(ht($)-h)/A*F):Math.min(x,Math.max(0,ht($)/A*x)),H=P?0:D(W.a),M=P?0:D(W.b),I=(W.parts??[]).map(ht);return t.jsx("div",{className:`manager-bar-chart-col${g&&w?" manager-bar-chart-col--group":""}`,style:{cursor:P?"default":"pointer"},tabIndex:b&&!P?0:void 0,role:b&&!P?"img":void 0,"aria-label":b&&!P?O(W,I):void 0,onMouseEnter:P?void 0:$=>L($.currentTarget,W,I),onFocus:P||!b?void 0:$=>L($.currentTarget,W,I),onBlur:b?q:void 0,onMouseLeave:q,children:!P&&(w&&g?(p??[]).map(($,K)=>{const ne=I[K]??0;if(h==null)return t.jsx("div",{className:"manager-bar-chart-bar",style:{...k,height:D(ne),background:$}},K);const X=ht(ne)<h;return t.jsxs("div",{className:"manager-bar-chart-slot",style:k,children:[t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!X&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:D(ne),background:$}})}),t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:X&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:D(ne),background:$}})})]},K)}):w?t.jsx("div",{className:"manager-bar-chart-stack",style:k,children:(()=>{const $=I.reduce((ne,X,ae)=>X>0?ae:ne,-1);let K=x;return I.map((ne,X)=>{if(ne<=0)return null;const ae=Math.min(K,ne/A*x);return K-=ae,t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:ae,background:(p??[])[X],borderRadius:X===$?"6px 6px 0 0":void 0}},X)})})()}):h!=null?t.jsx(t.Fragment,{children:[{v:ht(W.a),c:n},...y?[]:[{v:ht(W.b),c:a}]].map(({v:$,c:K},ne)=>t.jsxs("div",{className:"manager-bar-chart-slot",style:k,children:[t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:$>=h&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:D($),background:K}})}),t.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:$<h&&t.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:D($),background:K}})})]},ne))}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...k,height:H,background:n}}),!y&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...k,height:M,background:a}})]}))},U)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((W,U)=>{const P=Bn(W,h==null);return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${P?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[W.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),W.label]}),W.sublabel&&t.jsx("span",{className:"caption-1",children:W.sublabel})]},U)})})]})})}),z&&t.jsx(Vn,{anchorRect:z.rect,title:z.title,items:z.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Yl({control:e}){const{t:n}=ye.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:i,handlePrev:l,handleNext:u,periodOptions:d,period:c,setPeriod:p}=e,m=c==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),C=c==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:m,showTooltipInfo:m,disabled:r===a.length-1,onClick:l}),t.jsx(ln,{value:s,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:C,showTooltipInfo:C,disabled:r<=0,onClick:u}),t.jsx(An,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:d,value:c,onChange:g=>p(g),size:40})]})}function Co(e,n,a,r=!0){const s=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(i,l)=>{const u=new Date(n);u.setDate(n.getDate()+l);const d=(e[`${u.getFullYear()}\uB144 ${u.getMonth()+1}\uC6D4`]?.daily??[])[u.getDate()-1],c=d!=null&&Bn(d,r)||u>s;return{dt:u,entry:d,isFuture:c}})}function ry(e,n,a,r,s=!0){const{period:i,monthRange:l,weekRange:u,weekRanges:d,DOW:c}=n,p=r?.startsWith("ko"),m=Jn(),C=m.getFullYear(),g=m.getMonth()+1,v=m.getDate();if(i==="month"){const w=e[l]??{weekly:[],daily:[]},h=l.match(/^(\d+)년 (\d+)월$/),_=h?Number(h[1]):null,f=h?Number(h[2]):null,A=_&&f?hn(_,f-1):1;return w.weekly.map((x,N)=>{const k=N+1;let B=x.label,E=!1,S=!1;if(_&&f){const z=A+N*7,R=new Date(_,f-1,z+6),q=R.getMonth()+1,j=R.getDate(),L=q===f?`${j}`:`${q}/${j}`;B=a("manager.chart.weekRange",{start:z,end:L});const O=new Date(C,g-1,v).getTime();E=O>=new Date(_,f-1,z).getTime()&&O<=R.getTime(),S=_>C||_===C&&(f>g||f===g&&z>v)}return{...x,label:B,sublabel:p?`${Gl[k-1]??k}\uC8FC`:`Week ${k}`,isToday:E,future:x.future===!0||S||void 0,a:S?-1:x.a,b:S?0:x.b}})}const b=d.find(w=>w.value===u);if(!b)return[];const y=new Date(b.year,b.month-1,hn(b.year,b.month-1)+b.week*7);return Co(e,y,m,s).map(({dt:w,entry:h,isFuture:_})=>{const f=w.getMonth()+1,A=w.getDate(),x=w.getFullYear();return{label:f===b.month&&x===b.year?`${A}`:`${f}/${A}`,sublabel:c[w.getDay()]??"",future:_||void 0,a:_?-1:h&&h.a>0?h.a:0,b:_?0:h&&h.b>0?h.b:0,isToday:x===C&&f===g&&A===v,...h?.parts?{parts:_?h.parts.map(()=>0):h.parts}:{},...h?.partsB?{partsB:_?h.partsB.map(()=>0):h.partsB}:{}}})}const oy={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function sy({focusableBars:e,size:n="medium",barWidth:a,titleKey:r,titleLevel:s,data:i,colorA:l,colorB:u,labelAKey:d,labelBKey:c,showTotal:p=!1,totalUnitKey:m,totalLabelKey:C,control:g,hideControls:v=!1,rate:b=!1,rateAgg:y="dayMean",tightMax:w=!1,avgMode:h=!1,totalFormat:_,series:f,seriesMode:A="stack",loading:x=!1,onDetail:N,headExtra:k,headSegment:B,icon:E,disc:S,onClick:z,cardAriaLabel:R,cardTooltip:q,detailSize:j=32,barGap:L,baseline:O,className:Z,inGrid:ee=!1}){const{t:W,i18n:U}=ye.useTranslation(),P=oy[n],F=Kl(i),D=g??F,H=o.useMemo(()=>ry(i,D,W,U.language,O==null),[i,D,W,U.language,O]),M=A==="group"&&!!f&&f.length>0;L!=null&&!M&&an("bar-chart-bargap-without-group","[BarChart] barGap \uC740 seriesMode='group' + series \uC5D0\uC11C\uB9CC \uC4F0\uC778\uB2E4 \u2014 \uADF8 \uBC16\uC5D0\uC11C\uB294 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4.");const I=o.useMemo(()=>{if(!b)return H;const ae=D.period==="month"?D.monthRange.match(/^(\d+)년 (\d+)월$/):null,ue=Jn(),le=f?.length??0,be=V=>{const Q=[],oe=[],Be=[];for(let Ce=0;Ce<le;Ce++){let se=0,ge=0,fe=0;for(const xe of V){const $e=ht(xe.a[Ce]),Le=ht(xe.b[Ce]);Le<=0||(se+=$e,ge+=Le,fe+=$e/Le*100)}Q.push(y==="weighted"?ge>0?Math.round(se/ge*100):0:V.length?Math.round(fe/V.length):0),oe.push(se),Be.push(ge)}return{pct:Q,ra:oe,rb:Be}};return H.map((V,Q)=>{let oe=V.a===-1?-1:V.b>0?Math.round(V.a/V.b*100):0;if(ae&&!Bn(V)){const Ce=Number(ae[1]),se=Number(ae[2])-1,ge=Co(i,new Date(Ce,se,hn(Ce,se)+Q*7),ue).filter(fe=>!fe.isFuture);if(y==="weighted"){let fe=0,xe=0;for(const{entry:$e}of ge)$e&&$e.b>0&&(fe+=$e.a,xe+=$e.b);oe=xe>0?Math.round(fe/xe*100):0}else oe=ge.length?Math.round(ge.reduce((fe,{entry:xe})=>fe+(xe&&xe.b>0?xe.a/xe.b*100:0),0)/ge.length):0}let Be=null;if(M&&!Bn(V)){let Ce;if(ae){const ge=Number(ae[1]),fe=Number(ae[2])-1;Ce=Co(i,new Date(ge,fe,hn(ge,fe)+Q*7),ue).filter(xe=>!xe.isFuture).map(({entry:xe})=>({a:xe?.parts??[],b:xe?.partsB??[]}))}else Ce=[{a:V.parts??[],b:V.partsB??[]}];const se=be(Ce);Be={parts:se.pct,rawParts:se.ra,rawPartsB:se.rb}}return{...V,a:oe,b:V.a===-1?0:c&&V.parts&&V.parts[1]>0?Math.round(V.parts[0]/V.parts[1]*100):0,rawA:V.a===-1?-1:V.a,rawB:V.b,...Be??{}}})},[H,b,y,c,D.period,D.monthRange,i,M,f?.length]),$=o.useMemo(()=>{if(b||h){const ue=(D.period==="week"?H:i[D.monthRange]?.daily??[]).filter(be=>be.a!==-1);if(ue.length===0)return 0;if(b&&y==="weighted"){let be=0,V=0;for(const Q of ue)Q.b>0&&(be+=Q.a,V+=Q.b);return V>0?Math.round(be/V*100):0}const le=b?ue.reduce((be,V)=>be+(V.b>0?V.a/V.b*100:0),0):ue.reduce((be,V)=>be+(V.a>0?V.a:0),0);return Math.round(le/ue.length)}const ae=D.period==="month"?i[D.monthRange]?.daily??[]:I;return O!=null?ae.reduce((ue,le)=>ue+(Bn(le,!1)?0:ht(le.a)+(c?ht(le.b):0)),0):ae.reduce((ue,le)=>ue+(le.a>0?le.a:0)+(c&&le.b>0?le.b:0),0)},[I,H,b,y,h,O,c,D.period,D.monthRange,i]),K=f&&f.length>0?f.map(ae=>({color:ae.color,label:ae.label})):[{color:l,label:W(d)},...c?[{color:u,label:W(c)}]:[]],ne=n==="small",X=[ne?"manager-section--compact":n==="large"?"manager-section--full":void 0,Z].filter(Boolean).join(" ")||void 0;return t.jsx(ho,{className:X,inGrid:ee,icon:E,disc:S,onClick:z,ariaLabel:R,tooltip:q,headSegment:B,headMenuItems:N?[{label:W("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),icon:"list",onClick:N,closeOnSelect:!0}]:void 0,title:W(r),titleLevel:s,titleClassName:ne?"h5 chart-section-title--small":void 0,headRight:ne?k??void 0:({collapsed:ae})=>t.jsxs(t.Fragment,{children:[!v&&t.jsx(Yl,{control:D}),k,N&&!ae&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(pe,{htmlType:"button",size:j,type:"dot",icon:"list",ariaLabel:W("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),showTooltipInfo:W("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:N})})]}),subRow:t.jsxs(t.Fragment,{children:[p?b||h||C&&_?t.jsx(La,{label:ne?void 0:`${W(D.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${W(C??d)}`,children:_?(_($).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((ae,ue)=>/\d/.test(ae)?t.jsx("span",{className:"barchart-total__num h0",children:ae},ue):t.jsx("span",{className:"barchart-total__unit h5",children:ae},ue)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:$}),m&&t.jsx("span",{className:"barchart-total__unit h5",children:W(m)})]})}):t.jsxs(La,{children:[t.jsx("span",{className:"barchart-total__num h0",children:$}),t.jsx("span",{className:"barchart-total__unit h5",children:W(d)}),m&&t.jsx("span",{className:"barchart-total__unit h5",children:W(m)})]}):t.jsx("span",{}),t.jsx(mo,{items:K,className:"caption-1"})]}),children:x?t.jsx("div",{className:"manager-bar-chart-wrap manager-bar-chart-loading","aria-busy":"true",children:t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsxs("div",{className:"manager-bar-chart-area manager-bar-chart-area--loading",children:[t.jsx("div",{className:"manager-bar-chart-plot manager-bar-chart-plot--loading",style:{height:P.height},children:t.jsx(Ma,{size:32})}),t.jsx("div",{className:"manager-bar-chart-x-axis","aria-hidden":"true",children:t.jsxs("span",{className:"manager-bar-chart-x-axis__label",children:[t.jsx("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:"\xA0"}),I.some(ae=>!!ae.sublabel)&&t.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):t.jsx(ay,{focusableBars:e,data:I,colorA:l,colorB:c?u:void 0,labelA:W(d),labelB:c?W(c):void 0,barWidth:a??P.barWidth,barGap:L,baseline:O,height:P.height,maxOverride:b?100:void 0,tightMax:w,seriesColors:f?.map(ae=>ae.color),seriesLabels:f?.map(ae=>ae.label),rateLabels:b?{total:W("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:W("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:M})})}const Zl=120,iy={left:38,right:16,top:26,bottom:24};function ly({points:e=[],range:n,ticks:a=[],axisTitle:r,color:s,height:i=156,fallbackWidth:l=320,insets:u,overlay:d,ariaLabel:c,className:p}){const[m,C]=o.useState(null),[g,v]=o.useState(null);o.useEffect(()=>{if(!g)return;const O=ee=>C(Math.round(ee)||null);if(O(g.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const Z=new ResizeObserver(([ee])=>O(ee.contentRect.width));return Z.observe(g),()=>{Z.disconnect()}},[g]);const{payload:b,anchorRect:y,openAfterDelay:w,close:h}=pb(Zl),_=o.useCallback((O,Z)=>{O&&w(O,Z.getBoundingClientRect())},[w]),f=m??l,A=i,{left:x,right:N,top:k,bottom:B}={...iy,...u},[E,S]=n,z=O=>S===E?x:x+(f-x-N)*(O-E)/(S-E),R=O=>k+(A-k-B)*(100-O)/100,q={x:z,y:R,plot:{left:x,right:f-N,top:k,bottom:A-B,width:Math.max(0,f-x-N),height:Math.max(0,A-k-B)}},j=e.filter(O=>!O.hollow),L=s??"var(--color-main)";return t.jsxs(t.Fragment,{children:[t.jsxs("svg",{ref:v,className:Ne("line-chart",p),viewBox:`0 0 ${f} ${A}`,role:"img","aria-label":c??e.map(O=>O.description).filter(Boolean).join(", "),children:[r&&t.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(O=>t.jsxs("g",{children:[t.jsx("line",{className:"line-chart__grid",x1:x,x2:f-N,y1:R(O),y2:R(O)}),t.jsxs("text",{className:"line-chart__tick",x:x-6,y:R(O)+4,textAnchor:"end",children:[O,"%"]})]},O)),d?.(q),a.map(O=>t.jsx("text",{className:"line-chart__tick",x:z(O.x),y:A-5,textAnchor:"middle",children:O.label},O.x)),j.length>1&&t.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:L,points:j.map(O=>`${z(O.x)},${R(O.pct)}`).join(" ")}),e.map(O=>t.jsxs("g",{className:"line-chart__dot",onPointerEnter:Z=>_(O.description,Z.currentTarget),onPointerLeave:h,children:[t.jsx("circle",{className:"line-chart__dot-hit",cx:z(O.x),cy:R(O.pct),r:12}),t.jsx("circle",{className:Ne("line-chart__dot-main",O.hollow&&"is-hollow"),cx:z(O.x),cy:R(O.pct),r:4,stroke:L,fill:O.hollow?void 0:L})]},O.x))]}),b!=null&&t.jsx(on,{anchorRect:y,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:b,children:b})]})}function uy({icon:e,iconSize:n=56,title:a,titleClass:r="h2",description:s,tipGroups:i,start:l,className:u}){return t.jsxs("div",{className:Ne("game-intro",u),children:[e!=null&&t.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${n}px`},children:e}),t.jsx("h2",{className:Ne("game-intro__title",r),children:a}),s!=null&&t.jsx("p",{className:"game-intro__description body-3",children:s}),i?.map((d,c)=>t.jsxs("div",{className:"game-intro__tips",children:[d.title!=null&&t.jsx("span",{className:"game-intro__tips-title body-3",children:d.title}),d.tips.map((p,m)=>t.jsxs("span",{className:"game-intro__tip body-3",children:[p.icon!=null&&t.jsx("span",{"aria-hidden":"true",children:p.icon}),t.jsx("span",{children:p.text})]},m))]},c)),l&&t.jsx(pe,{htmlType:"button",className:l.className,variant:"main",color:l.color,size:48,width:"100%",disabled:l.disabled,onClick:l.onClick,children:l.label})]})}const Xl=(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")}`},Jl=(e,n,a,r)=>({from:ui(e,n,a),to:new Date(ui(e,n,a+r).getTime()-1),fromYmd:Xl(e,n,a),toYmd:Xl(e,n,a+r-1)});function cy(e,n=0){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=Jn(),l=s?Number(s[1]):i.getFullYear(),u=(s?Number(s[2]):i.getMonth()+1)-1+n,d=new Date(Date.UTC(l,u+1,0)).getUTCDate();return Jl(l,u,1,d)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,i=va();return{from:s,to:s,fromYmd:i,toYmd:i}}const r=hn(a.year,a.month-1);return Jl(a.year,a.month-1,r+(a.week+n)*7,7)}const fo={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Ql(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function eu({done:e,total:n,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:i,label:l="%",hideCenter:u=!1,hideLabel:d=!1}){const c=typeof s=="number"?s:fo[s].diameter,p=i??(typeof s=="number"?12:fo[s].strokeWidth),m=c/2,C=(c-p)/2,g=2*Math.PI*C;if(a&&a.length>0){const w=a.reduce((h,_)=>{const f=h.length>0?h[h.length-1].acc:0,A=Number.isFinite(_.ratio)?_.ratio:0,x=Math.max(0,Math.min(A,1-f));return h.push({color:_.color,rotate:-90+f*360,dash:g*x,acc:f+x}),h},[]);return t.jsx("div",{className:"ring-chart",style:{width:c,height:c},children:t.jsxs("svg",{width:c,height:c,viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:C,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),w.map((h,_)=>h.dash>0&&t.jsx("circle",{cx:m,cy:m,r:C,fill:"none",stroke:h.color,strokeWidth:p,strokeDasharray:`${h.dash} ${g}`,strokeLinecap:"round",transform:`rotate(${h.rotate} ${m} ${m})`},_))]})})}const v=(n??0)>0?Math.min((e??0)/n,1):0,b=g*v,y=g-b;return t.jsxs("div",{className:"ring-chart",style:{width:c,height:c},children:[t.jsxs("svg",{width:c,height:c,viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:m,cy:m,r:C,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),v>0&&t.jsx("circle",{cx:m,cy:m,r:C,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${b} ${y}`,strokeLinecap:v<.02||v>.98?"butt":"round",transform:`rotate(-90 ${m} ${m})`})]}),!u&&t.jsxs("div",{className:`ring-chart__center${d?"":` ${c<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${c<=96?"h2":"h1"}`,children:Ql(v)}),!d&&t.jsx("span",{className:`ring-chart__label ${c<=96?"caption-2":"caption-1"}${c<=96||s==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function dy({titleKey:e,titleLevel:n,headRight:a,icon:r,showTotal:s,totalLabelKey:i,legend:l,loading:u,className:d,inGrid:c=!1,onClick:p,ariaLabel:m,tooltip:C,...g}){const{t:v}=ye.useTranslation();if(!e)return t.jsx(eu,{...g});const b=(g.total??0)>0?Ql(Math.min((g.done??0)/g.total,1)):0,y=g.size==="small",w=typeof g.size=="number"?g.size:fo[g.size??"medium"].diameter,h=g.size==="large",_=[d,y?"manager-section--compact":h?"manager-section--full":""].filter(Boolean).join(" ")||void 0,f=r&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(Ze,{icon:r,className:"chart-section-icon-inner"})});return t.jsx(ho,{className:_,inGrid:c,onClick:p,ariaLabel:m,tooltip:C,title:v(e),titleLevel:n,titleClassName:y?"h5 chart-section-title--small":void 0,headRight:f||(y?void 0:a),subRow:(s||l)&&t.jsxs(t.Fragment,{children:[s?t.jsxs(La,{label:!y&&i?v(i):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:b}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),l&&t.jsx(mo,{items:l})]}),children:u?t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:w,height:w},"aria-busy":"true",children:t.jsx(Ma,{size:32})})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(eu,{...g,hideCenter:g.hideCenter??y})})})}function py({label:e,value:n,change:a,changeType:r,icon:s,tooltip:i,onClick:l,children:u}){const d=o.useRef(null),{anchorRect:c,openAt:p,close:m}=wa(),C=o.useCallback(()=>{i&&d.current&&p(d.current)},[i,p]),g=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),v=a===void 0?void 0:a>0?`+${a}`:`${a}`,b=o.useCallback(y=>{l&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),l())},[l]);return t.jsxs("div",{ref:d,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?b:void 0,onPointerEnter:C,onPointerLeave:m,onFocus:C,onBlur:m,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,n,v].filter(y=>y!==void 0&&y!=="").join(" "):void 0,children:[i&&c&&t.jsx(vn,{anchorRect:{left:c.left,top:c.top+21,right:c.right,bottom:c.bottom,width:c.width,height:c.height},text:i}),t.jsxs("div",{className:"manager-stat-card__label-row",children:[t.jsx("span",{className:"manager-stat-card__label h5",children:e}),s&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(Ze,{icon:s,className:"manager-stat-card__icon-inner"})})]}),t.jsxs("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}),v&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${g??"neutral"} caption-1`,children:v})]}),u&&t.jsx("div",{className:"manager-stat-card__body",children:u})]})]})}function tu({value:e,onChange:n,min:a=0,max:r=100,step:s=1,orientation:i="horizontal",size:l=24,disabled:u=!1,ariaLabel:d,length:c,className:p,label:m,formatValue:C,labelPos:g,labelAlign:v="right",showMinMax:b=!1,minLabel:y,maxLabel:w,showBgTick:h=!1,showFillTick:_=!1,tickStep:f,tickShape:A="dot"}){n&&!d&&an("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 x=Math.min(r,Math.max(a,e)),N=r>a?(x-a)/(r-a):0,k=i==="vertical",B=!n,E=D=>n?.(Number(D.target.value)),S=typeof c=="number"?`${c}px`:c,z={"--slider-ratio":String(N),"--slider-thumb":`${l}px`,...S?k?{height:S}:{width:S}:{}},R=f??s,q=(h||_)&&R>0&&r>a?Math.floor((r-a)/R+1e-6):0;if(q>0&&q<=100){const D=A!=="dash",H=ne=>D?`radial-gradient(circle, ${ne} 0.5px, transparent 1px)`:k?`linear-gradient(to bottom, transparent calc(50% - 2px), ${ne} calc(50% - 2px), ${ne} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${ne} calc(50% - 2px), ${ne} calc(50% + 2px), transparent calc(50% + 2px))`,M=D?"2px":"4px",I=[],$=[],K=[];for(let ne=0;ne<=q;ne++){const X=ne*R/(r-a);if(X>1+1e-6)break;const ae=`${((k?1-X:X)*100).toFixed(4)}%`,ue=X<=N+1e-6;if(ue?!_:!h)continue;const le=ue?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";I.push(H(le)),$.push(k?`${M} var(--slider-thumb)`:`var(--slider-thumb) ${M}`),K.push(k?`center ${ae}`:`${ae} center`)}I.push(k?"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))"),$.push("100% 100%"),K.push("0 0"),z.backgroundImage=I.join(", "),z.backgroundSize=$.join(", "),z.backgroundPosition=K.join(", "),z.backgroundRepeat="no-repeat"}const j=C?C(x):m==="percent"?`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`:m==="count"?`${x} / ${r}`:x===a&&y?y:x===r&&w?w:void 0,L=t.jsx("input",{type:"range",className:Ne("slider",`slider--${i}`,B&&"slider--static",!m&&!b&&p),min:a,max:r,step:s,value:x,disabled:u,readOnly:B,tabIndex:B?-1:void 0,"aria-label":d,"aria-valuetext":j,"aria-orientation":i,onChange:E,style:z});if(!m&&!b)return L;const O=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:y??a}),Z=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:w??r}),ee=b?t.jsxs("div",{className:Ne("slider-track-group",`slider-track-group--${i}`,!m&&p),children:[k?Z:O,L,k?O:Z]}):L;if(!m)return ee;const W=g??(k?"bottom":"right"),U=`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`,P=C?C(x):m==="percent"?U:m==="count"?`${x} / ${r}`:String(x),F=t.jsx("span",{className:"slider-wrap__value body-3b",children:P});return t.jsxs("div",{className:Ne("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${W}`,`slider-wrap--align-${v}`,p),children:[ee,F]})}const my=.86,hy=250,go=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),bo=(e,n,a,r)=>{const s=go(e,n,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function yo({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:s,labelPos:i,labelAlign:l="right",floorDb:u=-60,refDb:d=-35,displayMin:c=-5,displayMax:p=25,className:m,ariaLabel:C}){const g=o.useRef(null),v=o.useRef(null),b=o.useRef(null),y=o.useRef(null),[w,h]=o.useState(null);o.useEffect(()=>{const x=L=>{const O=bo(L,d,c,p);b.current&&(b.current.textContent=O);const Z=g.current;Z&&(Z.setAttribute("aria-valuenow",String(go(L,d,c,p))),Z.setAttribute("aria-valuetext",O))},N=e??sC(n)??(w&&w.el===n?w.node:null),k=v.current;if(!N||!k){k?.style.setProperty("--meter-level","0"),x(u);let L=!1;return!e&&n&&Ha(n).then(O=>{!L&&O&&h({el:n,node:O})}),()=>{L=!0}}Lr();const B=new Float32Array(N.fftSize);let E=0,S=0,z=0,R=0,q=null;const j=L=>{const O=iC(N,B);E=O>E?O:E*my;const Z=E>1e-5?20*Math.log10(E):-1/0,ee=Math.max(u,Z),W=ee-d,U=Math.min(1,Math.max(0,(W-c)/(p-c)));if(k.style.setProperty("--meter-level",U.toFixed(3)),S+=ee,z+=1,L-R>=hy){const P=S/z;q=q==null?P:q*.6+P*.4,x(q),S=0,z=0,R=L}y.current=requestAnimationFrame(j)};return y.current=requestAnimationFrame(j),()=>{y.current!=null&&cancelAnimationFrame(y.current),y.current=null}},[e,n,w,u,d,c,p]);const _=typeof r=="number"?`${r}px`:r,f=t.jsx("div",{className:"audio-meter__track",style:_?a==="vertical"?{height:_}:{width:_}:{},children:t.jsx("div",{ref:v,className:"audio-meter__fill"})}),A=i??(a==="vertical"?"bottom":"right");return t.jsxs("div",{ref:g,className:Ne("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${A}`,s&&`audio-meter--align-${l}`,m),role:"meter","aria-label":C,"aria-valuemin":c,"aria-valuemax":p,"aria-valuenow":go(u,d,c,p),"aria-valuetext":bo(u,d,c,p),children:[f,s&&t.jsx("span",{ref:b,className:"audio-meter__value caption-2",children:bo(u,d,c,p)})]})}const nu=260;function au({message:e,position:n,duration:a,onClose:r}){const[s,i]=o.useState(!1),[l,u]=o.useState(!1),d=o.useRef(l),c=o.useRef(s);o.useEffect(()=>{d.current=l},[l]),o.useEffect(()=>{c.current=s},[s]);const p=o.useRef(null),m=o.useRef(""),C=o.useRef(r);o.useEffect(()=>{C.current=r});const g=a,v=o.useRef(null),b=o.useRef(0),y=o.useRef(0),w=o.useRef(!1),h=o.useRef(null),_=o.useRef(null),f=o.useRef(null),A=o.useRef(null),x=o.useRef(()=>{});x.current=B=>{B<0||(b.current=Date.now(),y.current=B,v.current=setTimeout(()=>{v.current=null,i(!1),h.current=setTimeout(()=>{u(!1);try{C.current()}catch{}},nu)},B))};const N=o.useCallback(()=>{w.current||!v.current||(w.current=!0,clearTimeout(v.current),v.current=null,y.current=Math.max(0,y.current-(Date.now()-b.current)))},[]),k=o.useCallback(()=>{w.current&&(w.current=!1,x.current(y.current))},[]);return o.useEffect(()=>{if(e!==m.current&&(v.current&&(clearTimeout(v.current),v.current=null),h.current&&(clearTimeout(h.current),h.current=null)),e){if(c.current)return g>0&&!v.current&&(w.current?y.current=g:x.current(g)),m.current=e,()=>{v.current&&(clearTimeout(v.current),v.current=null),h.current&&(clearTimeout(h.current),h.current=null)};const B=()=>{const E=p.current;if(E)try{E.classList.remove("is-visible"),E.style.transition="none",n==="top"?E.style.transform="translateX(-50%) translateY(-16px)":E.style.transform="translateX(-50%) translateY(16px)",E.style.opacity="0",E.offsetWidth,E.style.transition="",E.classList.add("is-visible"),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{A.current=null;try{E.style.opacity="",E.style.transform="",E.style.transition=""}catch{}},60)}catch{}};d.current?(B(),i(!0)):(u(!0),_.current=requestAnimationFrame(()=>{f.current=requestAnimationFrame(()=>{B(),i(!0)})})),g>0&&(w.current=!1,x.current(g))}else i(!1),h.current=setTimeout(()=>u(!1),nu);return m.current=e,()=>{v.current&&clearTimeout(v.current),h.current&&clearTimeout(h.current),_.current&&cancelAnimationFrame(_.current),f.current&&cancelAnimationFrame(f.current),A.current&&clearTimeout(A.current),v.current=null,h.current=null,_.current=null,f.current=null,A.current=null}},[e,g,n]),{mounted:l,showing:s,popupRef:p,pause:N,resume:k}}function ra({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:i,showing:l,popupRef:u,pause:d,resume:c}=au({message:e,position:n,duration:s,onClose:r}),p=o.useRef(null),[m,C]=o.useState(!1);if(o.useEffect(()=>{l?C(!0):i||C(!1)},[l,i]),!i)return null;const g=a==="notice"||a==="warning"?a:"normal",v=t.jsx("div",{ref:u,className:`toast toast--${n} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:b=>{p.current=b.pointerType},onMouseEnter:()=>{p.current!=="touch"&&d()},onMouseLeave:c,onFocusCapture:d,onBlurCapture:c,children:t.jsx("div",{className:`toast__inner toast__inner--${g} body-2`,"aria-hidden":m||l?void 0:!0,children:t.jsx("span",{className:"toast__text",children:e})})});return typeof document<"u"?Xt.createPortal(v,document.body):v}const Cy=24;function fy({value:e,max:n=100,size:a=8,color:r,trackColor:s,label:i,formatValue:l,labelPos:u,labelAlign:d="right",ariaLabel:c,className:p}){const m=Number.isFinite(n)&&n>0?n:1,C=Math.max(0,Math.min(Number.isFinite(e)?e:0,m)),g=C/m*100,v=Number.isFinite(n)&&n>0?n:0,b=u??(a>=Cy?"inside":"bottom"),y=b==="center"?"inside":b,w=y==="inside"&&(d==="left"?g>=15:d==="center"?g>=50:g>=85),h={};return r&&(h["--progress-bar-fill"]=r),s&&(h["--progress-bar-track"]=s),t.jsxs("div",{className:Ne("progress-bar",`progress-bar--${a}`,`progress-bar--label-${y}`,i&&`progress-bar--align-${d}`,i&&w&&"progress-bar--label-on-fill",p),style:h,children:[t.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":v,"aria-valuetext":i?l?l(C):i==="percent"?void 0:i==="raw"?String(C):`${C} / ${v}`:void 0,"aria-label":c,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${g}%`}})}),i&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(C):i==="percent"?`${Math.round(g)}%`:i==="raw"?String(C):`${C} / ${v}`})]})}const ru={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},gy="rgba(255, 255, 255, 0.16)";function ou({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:s,variant:i="numbered",announce:l=!1,ariaLabel:u}){const{t:d}=ye.useTranslation(),c=tn("(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=u??d("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),C={};if(a&&(C["--pi-inactive-bg"]=a),r&&(C["--pi-inactive-color"]=r),s&&(a||(C["--pi-inactive-bg"]=gy),r||(C["--pi-inactive-color"]="var(--color-white)")),i==="dot")return t.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:C,role:l?"status":"img","aria-label":l?void 0:m,children:[l&&t.jsx("span",{style:ru,children:m}),Array.from({length:e}).map((v,b)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${b<p?" done":b===p?" active":""}`},b))]});const g=l?t.jsx("span",{role:"status",style:ru,children:m}):null;return c?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:C,role:"list","aria-label":m,children:t.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}),g]}):t.jsxs(t.Fragment,{children:[g,t.jsx("div",{className:"progress-indicator",style:C,role:"list","aria-label":m,children:Array.from({length:e}).map((v,b)=>t.jsx("span",{role:"listitem","aria-current":b===p?"step":void 0,className:`progress-indicator-dot ${b<p?" done":b===p?" active":""} body-3`,children:b+1},b))})]})}function by(e){if(!e)return[];const n=[];let a=0,r="";for(const s of e.trim()){if(s==="("?a++:s===")"&&a--,/\s/.test(s)&&a===0){r&&(n.push(r),r="");continue}r+=s}return r&&n.push(r),n}function yy({children:e,className:n,style:a}){return t.jsx("div",{role:"cell",className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function vo({variant:e="default",children:n,className:a,draggable:r,onClick:s,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:d,expandedContent:c,colSpan:p,describedBy:m}){const C=o.useCallback(g=>{s&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),s())},[s]);return e==="loading"?t.jsx("div",{role:"presentation",className:"table-row-wrap",children:t.jsx("div",{role:"row",className:"table-row table-row--loading",children:t.jsx("div",{role:"cell","aria-colspan":p,className:"table-row__full-cell",children:t.jsx(Ma,{size:28})})})}):e==="empty"?t.jsx("div",{role:"presentation",className:"table-row-wrap",children:t.jsx("div",{role:"row",className:"table-row table-row--empty body-3",children:t.jsx("div",{role:"cell","aria-colspan":p,className:"table-row__full-cell",children:n})})}):t.jsxs("div",{role:"presentation",className:"table-row-wrap",children:[t.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:s,onKeyDown:s?C:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:d,role:"row",tabIndex:s?0:void 0,"aria-describedby":s?m:void 0,children:n}),c&&t.jsx("div",{role:"row",className:"table-row-expand",children:t.jsx("div",{role:"cell","aria-colspan":p,className:"table-row-expand__cell",children:c})})]})}function vy({dir:e}){return t.jsx(e==="asc"?vs:ys,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function xy({children:e,onClick:n,className:a,sortDir:r,ariaSort:s,onResizeStart:i}){const l=t.jsxs(t.Fragment,{children:[e,r&&t.jsx(vy,{dir:r})]});return t.jsxs("div",{onClick:n,role:"columnheader","aria-sort":s,className:Ne("table-field body-3",a,r?"table-field--sorted":"",i?"table-field--resizable":""),children:[n?t.jsx("button",{type:"button",className:"table-field__button",children:l}):l,i&&t.jsx("span",{className:"table-field__resizer",onPointerDown:i,onClick:u=>u.stopPropagation(),"aria-hidden":"true"})]})}function xo({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:s,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:u,onRowDragStart:d,onRowDragEnd:c,draggingId:p,gridTemplateColumns:m,mobileGridTemplateColumns:C,resizable:g=!1,resizeMode:v="grow",resizeStorageKey:b,size:y="small",title:w,icon:h,count:_,collapsed:f=!1,onToggleCollapse:A,headerActions:x,empty:N,loading:k,dragOver:B=!1,onDragOver:E,onDragLeave:S,onDrop:z,renderExpandedRow:R,expandedId:q}){const{t:j}=ye.useTranslation(),L=o.useId(),O=`table-title-${L}`,Z=`table-row-hint-${L}`,ee=tn("(max-width: 767px)"),W=C&&ee?C:null,U=g&&!ee,P=48,F=o.useRef(()=>P),D=b?`table-cols:${b}`:null,H=o.useRef(null),M=o.useRef(null),I=o.useRef(null),$=o.useRef(null),[K,ne]=o.useState(!1),X=o.useCallback(()=>{const te=I.current;te&&ne(te.scrollWidth>te.clientWidth+1)},[]),ae=o.useCallback((te,ce)=>{const me=te.current;me&&M.current&&M.current.unobserve(me),te.current=ce,ce?(!M.current&&typeof ResizeObserver<"u"&&(M.current=new ResizeObserver(()=>X())),M.current?.observe(ce)):!I.current&&!$.current&&(M.current?.disconnect(),M.current=null),X()},[X]),ue=o.useCallback(te=>ae(I,te),[ae]),le=o.useCallback(te=>ae($,te),[ae]);o.useEffect(()=>{X()}),o.useEffect(()=>{if(typeof window>"u")return;const te=typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>X()):null;return window.addEventListener("resize",X),()=>{te!=null&&cancelAnimationFrame(te),window.removeEventListener("resize",X)}},[X]);const be=o.useRef(()=>!1),V=o.useRef([]),Q=o.useRef(null),oe=te=>{if(!te||typeof window>"u")return null;try{const ce=JSON.parse(window.localStorage.getItem(te)??"null");return Array.isArray(ce)&&ce.length>0&&ce.every(me=>typeof me=="number"&&Number.isFinite(me)&&me>0)?ce:null}catch{return null}},[Be,Ce]=o.useState(()=>oe(D)),[se,ge]=o.useState(D);se!==D&&(ge(D),Ce(oe(D)));const fe=o.useRef(Be);o.useEffect(()=>{fe.current=Be},[Be]);const xe=o.useCallback(te=>{const ce=Q.current;if(!ce)return;const me=fe.current;if(me){const Se=[...me];if(ce.next!=null&&ce.startWNext!=null){const et=te.clientX-ce.startX,Ke=Math.max(F.current(ce.index)-ce.startW,Math.min(ce.startWNext-F.current(ce.next),et));Se[ce.index]=ce.startW+Ke,Se[ce.next]=ce.startWNext-Ke}else Se[ce.index]=Math.max(F.current(ce.index),ce.startW+(te.clientX-ce.startX));fe.current=Se,Ce(Se)}},[]),$e=o.useCallback(()=>{if(Q.current=null,window.removeEventListener("pointermove",xe),window.removeEventListener("pointerup",$e),window.removeEventListener("pointercancel",$e),document.body.style.cursor="",document.body.style.userSelect="",D&&fe.current)try{window.localStorage.setItem(D,JSON.stringify(fe.current))}catch{}},[xe,D]),Le=o.useCallback((te,ce)=>{ce.preventDefault(),ce.stopPropagation();const me=H.current;if(!me)return;const Se=Array.from(me.children).map(Ke=>Ke.getBoundingClientRect().width),et=v==="fit"?e.findIndex((Ke,bt)=>bt>te&&Ke.resizable!==!1):-1;Q.current=et>=0?{index:te,startX:ce.clientX,startW:Se[te],next:et,startWNext:Se[et]}:{index:te,startX:ce.clientX,startW:Se[te]},fe.current=Se,Ce(Se),window.addEventListener("pointermove",xe),window.addEventListener("pointerup",$e),window.addEventListener("pointercancel",$e),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[xe,$e,v,e]),Qe=o.useCallback(()=>{const te=H.current,ce=te?.closest(".table-wrap");if(!te||!ce)return;const me=ce.style.getPropertyValue("--table-grid-cols");ce.style.setProperty("--table-grid-cols",e.map((Ye,Re)=>be.current(Re)?V.current[Re]:"max-content").join(" "));const Se=Array.from(ce.querySelectorAll(".table-row")).filter(Ye=>!Ye.classList.contains("table-row--loading")&&!Ye.classList.contains("table-row--empty")),et=e.map((Ye,Re)=>{let We=te.children[Re]?.getBoundingClientRect().width??0;for(const ct of Se){const Bt=ct.children[Re];Bt&&(We=Math.max(We,Bt.getBoundingClientRect().width))}const Fe=be.current(Re)?parseFloat(V.current[Re]):NaN;return Number.isFinite(Fe)?Fe:Math.max(F.current(Re),Math.ceil(We))}),Ke=window.getComputedStyle(te),bt=te.clientWidth-(parseFloat(Ke.paddingLeft)||0)-(parseFloat(Ke.paddingRight)||0);me?ce.style.setProperty("--table-grid-cols",me):ce.style.removeProperty("--table-grid-cols");let ut=et;const it=et.reduce((Ye,Re,We)=>Ye+(be.current(We)?Re:0),0),tt=et.reduce((Ye,Re,We)=>Ye+(be.current(We)?0:Re),0),Ge=bt-it;if(bt>0&&tt>0&&Ge>0){const Ye=Ge/tt;ut=et.map((We,Fe)=>be.current(Fe)?We:Math.max(F.current(Fe),Math.round(We*Ye)));const Re=Math.round(Ge-ut.reduce((We,Fe,ct)=>We+(be.current(ct)?0:Fe),0));if(Re!==0){let We=-1;ut.forEach((Fe,ct)=>{!be.current(ct)&&(We<0||Fe>ut[We])&&(We=ct)}),We>=0&&(ut[We]=Math.max(F.current(We),ut[We]+Re))}}if(Ce(ut),D)try{window.localStorage.setItem(D,JSON.stringify(ut))}catch{}},[e,v,D]);o.useEffect(()=>()=>{Q.current&&(window.removeEventListener("pointermove",xe),window.removeEventListener("pointerup",$e),window.removeEventListener("pointercancel",$e),document.body.style.cursor="",document.body.style.userSelect="")},[xe,$e]);const Ue=by(m),ze=Ue.filter(te=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(te));ze.length>0&&an(`table-content-track:${m}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${ze.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 Ie=e.findIndex(te=>!!te.sortDir);e.filter(te=>!!te.sortDir).length>1&&an("table-multi-sort","[ihabdevteam-core] Table \uC758 fields \uC5D0 sortDir \uC774 \uB458 \uC774\uC0C1 \uC788\uC2B5\uB2C8\uB2E4. aria-sort \uB294 \uD45C \uD558\uB098\uC5D0 \uD55C \uCE78\uB9CC \uAC00\uC9C8 \uC218 \uC788\uC5B4 \uCCAB \uCE78\uB9CC \uBC29\uD5A5\uC73C\uB85C \uC54C\uB9AC\uACE0 \uB098\uBA38\uC9C0\uB294 none \uC73C\uB85C \uB461\uB2C8\uB2E4.");const st=te=>te===Ie?e[te].sortDir==="asc"?"ascending":"descending":e[te].onClick?"none":void 0,Xe=te=>/^\d+(\.\d+)?px$/.test(Ue[te]??""),Je=te=>{const ce=Ue[te]??"",me=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(ce)??/^(\d+(?:\.\d+)?)px$/.exec(ce);return me?parseFloat(me[1]):P};be.current=Xe,F.current=Je,V.current=Ue;const Ee=te=>v==="fit"&&!Xe(te)?"fr":"px",ke=Be&&Be.length===e.length&&!ee&&(v==="fit"||a.length>0),Me=W??(ke?e.map((te,ce)=>te.resizable===!1&&Ue[ce]?Ue[ce]:`${Be[ce]}${Ee(ce)}`).join(" "):m),Ve=Me?{"--table-grid-cols":Me}:void 0,lt=w!==void 0;return t.jsxs("div",{ref:ue,className:`table-wrap table-wrap--${y}${U?" table-wrap--resizable":""}${B?" table-wrap--dragover":""}${f?" table-wrap--collapsed":""}`,style:Ve,onDragOver:E,onDragLeave:S,onDrop:z,tabIndex:K?0:void 0,role:K?"region":void 0,"aria-label":K?typeof w=="string"?w:j("table.scrollRegion","\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"):void 0,children:[!!s&&t.jsx("span",{id:Z,className:"table-row-hint",children:j("table.rowActionHint","\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4")}),t.jsxs("div",{ref:le,role:"table","aria-labelledby":lt&&typeof w=="string"?O:void 0,className:"table body-2",children:[lt&&t.jsxs("div",{className:Ne("table-header",A&&"table-header--clickable"),onClick:A,role:"caption",children:[A&&t.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:f?"chevron-right":"chevron-down",ariaLabel:f?j("common.expand","\uD3BC\uCE58\uAE30"):j("common.collapse","\uC811\uAE30"),ariaExpanded:!f,className:"table-header__chevron"}),h&&t.jsx(Ze,{icon:h,label:typeof w=="string"?w:void 0,className:"table-header__icon"}),t.jsx("span",{id:O,className:"table-header__title h5b",children:w}),_!==void 0&&t.jsx("span",{className:"table-header__count body-3b",children:_}),x&&t.jsx("span",{className:"table-header__actions",onClick:te=>te.stopPropagation(),children:x})]}),!f&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{role:"row",className:"table-fields table-fields--groups",children:n.map((te,ce)=>t.jsx("div",{role:"columnheader","aria-colspan":te.span,className:Ne("table-field body-3",te.className),style:{gridColumn:`span ${te.span}`},children:te.label},ce))}),t.jsxs("div",{role:"presentation",className:Ne("table-fields-strip",U&&"table-fields-strip--resizable"),children:[t.jsx("div",{role:"row",className:"table-fields",ref:H,children:e.map((te,ce)=>t.jsx(xy,{onClick:te.onClick,className:te.className,sortDir:te.sortDir,ariaSort:st(ce),onResizeStart:U&&ce<e.length-1&&te.resizable!==!1&&(v!=="fit"||e.some((me,Se)=>Se>ce&&me.resizable!==!1))?me=>Le(ce,me):void 0,children:te.label},ce))}),U&&t.jsx(pe,{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:Qe})]}),t.jsx("div",{role:"rowgroup",className:"table-body",children:k?t.jsx(vo,{variant:"loading",colSpan:e.length||void 0}):a.length===0&&N?t.jsx(vo,{variant:"empty",colSpan:e.length||void 0,children:N}):a.map((te,ce)=>{const me=p!=null&&te.id===p,Se=!!s&&(i?i(te):!0),et=q!=null&&te.id!=null&&(q instanceof Set?q.has(te.id)||[...q].some(Ke=>String(Ke)===String(te.id)):String(te.id)===String(q));return t.jsx(vo,{className:`${Se?" table-row--clickable":""}${d?" table-row--draggable":""}${me?" table-row--dragging":""}`.trim(),draggable:!!d,onClick:Se?()=>s(te):void 0,colSpan:e.length||void 0,describedBy:Z,onMouseEnter:l?Ke=>l(te,Ke):void 0,onMouseLeave:u?Ke=>u(te,Ke):void 0,onDragStart:d?Ke=>d(te,Ke):void 0,onDragEnd:c?Ke=>c(te,Ke):void 0,expandedContent:et&&R?R(te):void 0,children:r(te).map((Ke,bt)=>t.jsx(yy,{className:Ke.className,style:Ke.style,children:Ke.content},bt))},te.id!=null?`${typeof te.id}:${te.id}`:`__idx:${ce}`)})})]})]})]})}function su(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const oa=e=>e==null?"":String(e).trim();function _o(e,n,a){const r=[oa(e),oa(n),oa(a)];for(;r.length>0&&r[r.length-1]==="";)r.pop();return r.join(".")}function _y(e,n,a){const r=oa(e);return r?`${r}-${oa(n).padStart(2,"0")}-${oa(a).padStart(2,"0")}`:""}const wy={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function Ay(e,n){const a=wy[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}function iu(e,n){return n!=="wornAt"?String(e[n]??""):_y(e.wornYear,e.wornMonth,e.wornDay)}function By({rows:e,loading:n,onSelect:a,onDelete:r,onWear:s,onRelease:i,onAdd:l}){const{t:u}=ye.useTranslation(),d=b=>b==="\uC88C"?u("device.direction.left","\uC88C"):u("device.direction.right","\uC6B0"),{\uC815\uB82C:c,\uCE78:p}=nb(),m=o.useMemo(()=>{if(!c)return e;const{key:b,asc:y}=c;return[...e].sort((w,h)=>{if(b==="worn"){const _=Number(h.worn)-Number(w.worn);return y?_:-_}return eo(iu(w,b),iu(h,b),y)})},[e,c]),{pageRows:C,pageSizeProps:g,paginationProps:v}=tb(m,c);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(po,{count:{value:e.length,unit:u("customers.device.unit","\uAC1C")},pageSize:g,pagination:v,actions:l&&t.jsx(pe,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:u("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:l})}),t.jsx(xo,{loading:n,resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...p(u("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},p(u("device.direction.label","\uBC29\uD5A5"),"side"),p(u("device.deviceType","\uC885\uB958"),"device"),p(u("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),p(u("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),p(u("device.productName","\uC81C\uD488\uBA85"),"productName"),p(u("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...r?[{label:"",resizable:!1}]:[]],items:C.map((b,y)=>({id:b.id??`${b.side}-${y}`,row:b})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${r?" 80px":""}`,renderRow:({row:b})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:y=>y.stopPropagation(),children:t.jsx(Vl,{checked:b.worn,disabled:b.worn?!i:!s,ariaLabel:b.worn?u("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):u("customers.device.wear","\uCC29\uC6A9"),onChange:y=>{y?s?.(b):i?.(b)}})})},{content:t.jsx("span",{children:d(b.side)})},{content:b.device?t.jsx(xt,{size:"small",variant:su(b.device),fill:"soft",label:Ay(b.device,u)}):t.jsx("span",{})},{content:t.jsx("span",{children:b.brand})},{content:t.jsx("span",{children:b.fitType||"-"})},{content:t.jsx("span",{children:b.productName||"-"})},{content:t.jsx("span",{className:"dlp-date",children:_o(b.wornYear,b.wornMonth,b.wornDay)||"-"})},...r?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(pe,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:u("common.delete","\uC0AD\uC81C"),onClick:y=>{y?.stopPropagation(),r(b)}})})}]:[]],onRowClick:({row:b})=>a(b),empty:u("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function lu(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 ky(e,n){return new Date(e,n+1,0).getDate()}function Ny(e,n){return new Date(e,n,1).getDay()}function Dy({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r,today:s}){const{t:i,i18n:l}=ye.useTranslation(),u=o.useMemo(()=>i("calendar.dow",{returnObjects:!0}),[i]),d=Or(s),[c,p]=o.useState(()=>Number(d.slice(0,4))),[m,C]=o.useState(()=>Number(d.slice(5,7))-1),[g,v]=o.useState(null),b=o.useRef(null),y=o.useMemo(()=>{const x={};return e.forEach(N=>{x[N.date]||(x[N.date]=[]),x[N.date].push(N)}),x},[e]),w=o.useMemo(()=>{const x=ky(c,m),N=Ny(c,m),k=[];for(let B=0;B<N;B++)k.push(null);for(let B=1;B<=x;B++)k.push(B);for(;k.length<35;)k.push(null);return k},[c,m]),h=o.useCallback(()=>{m===0?(p(x=>x-1),C(11)):C(x=>x-1)},[m]),_=o.useCallback(()=>{m===11?(p(x=>x+1),C(0)):C(x=>x+1)},[m]),f=x=>`${c}-${String(m+1).padStart(2,"0")}-${String(x).padStart(2,"0")}`,A=x=>f(x)===d;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:h,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Ze,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:i("calendar.yearMonth",{year:c,month:m+1})}),t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:_,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(Ze,{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:i("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:i("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:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[u.map(x=>t.jsx("div",{className:"calendar-day-header body-3",children:x},x)),w.map((x,N)=>{if(x===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${N}`);const k=x,B=f(k),E=y[B]??[],S=IC(B,l.language),z=g===B;return t.jsxs("div",{className:`calendar-cell${A(k)?" today":""}${z?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?i("calendar.addOnDate",{date:B}):void 0,"aria-current":A(k)?"date":void 0,onClick:r?()=>r(B):void 0,onKeyDown:r?R=>{R.target===R.currentTarget&&(R.key!=="Enter"&&R.key!==" "||(R.preventDefault(),r(B)))}:void 0,onDragOver:a?R=>{R.preventDefault(),v(B)}:void 0,onDragLeave:a?R=>{R.currentTarget.contains(R.relatedTarget)||v(null)}:void 0,onDrop:a?R=>{R.preventDefault(),b.current!=null&&(a(b.current,B),b.current=null),v(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:k}),E.length>0&&t.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":`${S} ${i("calendar.visitCount",{count:E.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"})}`,children:[t.jsx("span",{className:"calendar-cell__visit-dot","aria-hidden":"true"}),E.length]}),t.jsx("div",{className:"calendar-cell__badges",children:E.map((R,q)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${R.status==="noVisit"?" calendar-visit-badge--no-visit":R.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?j=>{b.current=R.id,j.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{b.current=null,v(null)}:void 0,onClick:n?j=>{j.stopPropagation(),n(R)}:void 0,...lu(n?()=>n(R):void 0),"aria-label":[S,R.time?pi(R.time,i):null,R.customer,i(R.status==="noVisit"?"calendar.legend.noVisit":R.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[R.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:pi(R.time,i)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:R.customer}),R.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},R.id??q))})]},k)})]})]})}const Ey={page:"h3",pagePopup:"h4",popup:"h5"};function sa({type:e="page",title:n,headingLevel:a,icon:r,action:s,disc:i,children:l,inGrid:u=!1,className:d,style:c}){const p=Ey[e],m=n||i||s||r,C=a?`h${a}`:"div";return t.jsxs("div",{className:Ne("section",`section--${e}`,u&&"section--in-grid",d),style:c,children:[m&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[r&&t.jsx(Ze,{icon:r,label:typeof n=="string"?n:void 0,className:"section__icon"}),t.jsxs("div",{className:"section__title-group",children:[n&&t.jsx(C,{className:`section__title ${p}`,children:n}),i&&t.jsx("div",{className:"section__disc body-3",children:i})]})]}),s&&t.jsx("div",{className:"section__action",children:s})]}),l]})}let wo=null,uu=!1;function cu(){if(uu||typeof document>"u")return;uu=!0,document.addEventListener("keydown",n=>{n.metaKey||n.ctrlKey||n.altKey||(wo="keyboard")},!0);const e=()=>{wo="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}cu();function ar(){return cu(),wo==="keyboard"}const rr=20;function Sy(e){const{t:n}=ye.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:i,completedIds:l,selectedIds:u,onItemComplete:d,size:c,useDescriptionTooltip:p,onRemove:m,onMore:C,sectionType:g="page"}=e||{},[,v]=o.useState(0),b=typeof r<"u"?Array.isArray(r)?r:[]:[],y=b.length,[w,h]=o.useState(Math.min(y,rr)),_=o.useMemo(()=>Array.isArray(s)?[...s,a?.label].filter(Boolean).join(" \xB7 "):[s||"",a?.label].filter(Boolean).join(" \xB7 "),[s,a?.label]);o.useEffect(()=>{h(Math.min(y,rr))},[y]),nl("speechear.data.updated",()=>v(N=>N+1));const f=o.useRef(null),A=o.useRef(null);function x(){const N=document.activeElement;A.current=ar()&&N&&N.closest?.(".training-block__more")?w:null,h(k=>Math.min(y,k+rr))}return o.useEffect(()=>{const N=A.current;if(N==null)return;A.current=null;const k=document.activeElement;k&&k!==document.body||f.current?.querySelectorAll(".training-block-button")[N]?.focus()},[w]),t.jsxs(sa,{type:g,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",ref:f,children:(b||[]).slice(0,w).map((N,k)=>{const B=N;return t.jsx(lo,{index:k,type:a,trainingData:B,depth:_,renderPopup:i,completedIds:l,selectedIds:u,size:c,useDescriptionTooltip:p,onRemove:typeof m=="function"&&u!=null&&B?.id!=null&&u.has(String(B.id))?()=>m(B):void 0,onComplete:typeof d=="function"&&B?.id!=null?()=>d(String(B.id)):void 0,onMore:typeof C=="function"?E=>C(B,E):void 0},B?.id!=null?`${a?.key||"t"}-${String(B.id)}`:`${a?.key||"t"}-${k}`)})}),y>rr&&w<y&&t.jsx("div",{className:"training-block__more",children:t.jsx(pe,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:x,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function Ao(e){const n=o.useRef(null),[a,r]=o.useState(!!e),[s,i]=o.useState(!1);o.useEffect(()=>{i(!1);const d=n.current;r(!!e&&!(d?.complete&&d.naturalWidth>0))},[e]);const l=o.useCallback(()=>r(!1),[]),u=o.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:n,loading:a,failed:s,hasImage:!!e&&!s,onLoad:l,onError:u}}var jy='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 Ty=jy,Bo=o.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:s=!1,onSelect:i,flipDelay:l=0,hideLabel:u=!1,hideAudio:d=!1,orderRank:c=null},p){const{t:m}=ye.useTranslation(),C=e.word||e.title||"",g=n||!C,v=e.audio??e.sound??e.audioKey,b=e.subLabel||e.pronunciation||"",y=e.colloquialLabel||"",[w,h]=o.useState({label:C,subLabel:b,colloquialLabel:y,homonum:e.homonum});C&&(w.label!==C||w.subLabel!==b||w.colloquialLabel!==y||!Object.is(w.homonum,e.homonum))&&h({label:C,subLabel:b,colloquialLabel:y,homonum:e.homonum});const _=o.useRef(null),f=tn("(max-width: 767px)"),[A,x]=o.useState(!1),N=`${typeof v=="string"?v:v?.src??""}\0${C}`,[k,B]=o.useState({for:"",url:""}),E=k.for===N?k.url:"",S=oi(),z=e.textOnly??(!e.image&&!!w.label&&!!S&&S.entries.length>0&&!S.byWord.has(w.label)),R=z?"":Xn()?.(w.label,w.homonum)??e.image??"",{imgRef:q,loading:j,hasImage:L,onLoad:O,onError:Z}=Ao(R);o.useEffect(()=>{let I=!1;return(async()=>{if(v){if(typeof v=="string"){if(v.startsWith("http")||v.includes("/")){B({for:N,url:v});return}}else if(typeof v=="object"&&!Array.isArray(v)){const K=v.src;if(K){B({for:N,url:K});return}}}const $=jr();if($&&C)try{const K=await Promise.resolve($(C));!I&&K&&B({for:N,url:K})}catch{}})(),()=>{I=!0}},[v,C,N]);const ee=o.useRef(!0),W=o.useRef(null);o.useEffect(()=>(ee.current=!0,()=>{ee.current=!1,W.current&&Qa(W.current),W.current=null;try{_.current?.pause()}catch{}_.current=null}),[]);const U=o.useCallback(()=>new Promise(I=>{if(typeof window<"u"&&window.speechSynthesis&&C){x(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(C);$.lang="ko-KR",$.onend=()=>{x(!1);try{a?.()}catch{}I()},$.onerror=()=>{x(!1),I()},window.speechSynthesis.speak($)}else I()}),[C,a]),P=o.useCallback(I=>new Promise($=>{let K=!1;const ne=()=>{K||(K=!0,x(!1),$(!1))};try{const X=new Audio(I);_.current=X,X.onended=()=>{if(!K){K=!0,x(!1);try{a?.()}catch{}$(!0)}},X.onerror=ne,X.play().catch(ne)}catch{ne()}}),[a]),F=o.useCallback(async()=>{if(n||!ee.current)return;const I=()=>{W.current===I&&(W.current=null);try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1)},$=Ja(I);W.current=I;try{window.speechSynthesis?.cancel()}catch{}try{if(E&&(x(!0),await P(E)))return;const K=nC();if(K&&C)try{const ne=await Promise.resolve(K(C));if(!ee.current||W.current!==I||ne&&(x(!0),await P(ne)))return}catch{}if(!ee.current||W.current!==I)return;await U()}finally{$(),W.current===I&&(W.current=null)}},[n,E,C,P,U]);o.useImperativeHandle(p,()=>({play:()=>F()}),[F]);const D=I=>I.stopPropagation(),H=o.useCallback(I=>{if(I.stopPropagation(),!n){if(A){try{_.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1);return}F()}},[n,A,F]),M=Ne("training-word-card",n?"training-word-card--disabled":"",g?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return t.jsx("div",{className:M,onClick:r&&!n?i:void 0,role:r?"button":void 0,"aria-pressed":r?s:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?I=>{I.target===I.currentTarget&&(I.key==="Enter"||I.key===" "||I.key==="Spacebar")&&(I.preventDefault(),i?.())}:void 0,children:t.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:g?"0ms":`${l}ms`},children:[t.jsxs("div",{className:"training-word-card__front",children:[s&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:D,children:t.jsx(xt,{type:"dot",size:40,position:"inline",animate:!0,icon:c!=null?void 0:"check",number:c??void 0,"aria-label":c!=null?m("training.nthSelected",{n:c}):m("training.selected","\uC120\uD0DD\uB428")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:z?t.jsx("div",{className:"training-word-card__text-face",children:w.label}):L?t.jsxs(t.Fragment,{children:[j&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:q,className:"training-word-card__image",src:R,alt:w.label||m("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:j?0:1},onLoad:O,onError:Z})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!u&&t.jsxs("div",{className:"training-word-card__body",children:[!z&&t.jsx("div",{className:"training-word-card__word",children:w.label}),w.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",w.subLabel,"]"]}),w.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",w.colloquialLabel,"]"]})]}),!d&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?D:void 0,children:t.jsx(pe,{htmlType:"button",size:f?40:48,type:f?"dot":"bar",icon:A?"pause":"play",label:f?void 0:m("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:A,onClick:H,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:Ty,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),My=260;function Tn(e){const{t:n}=ye.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:i,children:l,buttons:u,footer:d,footerStart:c,footerEnd:p,footerClassName:m="",footerLayout:C="center",onClose:g,closeDisabled:v=!1,beforeClose:b,closeOnBackdrop:y=!0,className:w="",ariaLabel:h,useTitle:_=!0,inline:f=!1,size:A,layer:x="modal",height:N,fillBody:k=!1,resetScrollKey:B}=e||{},[E,S]=o.useState(!1),z=o.useRef(!1),R=o.useRef(null),q=o.useId(),j=o.useRef(null);o.useEffect(()=>{},[f,a,h,w]),o.useEffect(()=>{B!==void 0&&j.current&&(j.current.scrollTop=0)},[B]);const[L,O]=o.useState(!1);o.useEffect(()=>{const X=j.current;if(!X)return;const ae=()=>O(X.scrollHeight>X.clientHeight+1);if(ae(),typeof ResizeObserver>"u")return;const ue=new ResizeObserver(ae);ue.observe(X);const le=X.firstElementChild;return le&&ue.observe(le),()=>ue.disconnect()},[l,B]),o.useEffect(()=>{if(!f)return Pl()},[f]),o.useEffect(()=>{if(f)return;const X=document.activeElement,ae=R.current;return qr(ae,X),ae&&!ae.contains(document.activeElement)&&(ae.querySelector(mn)??ae).focus(),()=>{const ue=document.activeElement;(!ue||ue===document.body||ae&&ae.contains(ue))&&Ur(X)?.focus?.()}},[f]),Vr(R,!f);const Z=o.useRef(!0),ee=Gr(),W=o.useRef(null);o.useEffect(()=>(Z.current=!0,()=>{Z.current=!1,W.current&&(clearTimeout(W.current),W.current=null)}),[]);const U=o.useCallback(()=>{!Z.current||!z.current||(z.current=!1,S(!1))},[]),P=o.useCallback((X,ae=!1)=>{if(ae&&!Z.current||z.current)return;z.current=!0,S(!0);const ue=setTimeout(()=>{W.current===ue&&(W.current=null);let le;try{le=X?X():void 0}catch{U();return}le&&typeof le.then=="function"&&le.then(()=>{setTimeout(U,120)},U)},ee?0:My);ae&&(W.current=ue)},[U,ee]),F=o.useCallback(()=>{v||b&&b()===!1||P(g,!0)},[P,g,v,b]),D=o.useRef(F);o.useEffect(()=>{D.current=F});const H=!f&&!!g;o.useEffect(()=>{if(H)return zn(()=>D.current())},[H]);const M=H&&y,I=o.useRef(!1),$=X=>{I.current=X.target===X.currentTarget},K=X=>{const ae=I.current;I.current=!1,ae&&X.target===X.currentTarget&&F()},ne=t.jsx("div",{className:`popup ${f?"popup--inline":""} ${x==="belowPagePopup"?"popup--below-page-popup":""} ${E?"popup--closing":""} ${w}`,onPointerDown:M?$:void 0,onClick:M?K:void 0,onMouseDown:f?void 0:X=>{X.target===X.currentTarget&&X.preventDefault()},children:t.jsxs("div",{ref:R,className:`popup-panel${A?` popup-panel--${A}`:""}${N!=null?" popup-panel--has-height":""}${k?" popup-panel--fill-body":""}`,style:N!=null?{"--popup-height":typeof N=="number"?`${N}px`:N}:void 0,tabIndex:-1,role:f?void 0:"dialog","aria-modal":f?void 0:!0,"aria-labelledby":!f&&_&&a?q:void 0,"aria-label":!f&&!(_&&a)?h??(typeof a=="string"?a:void 0):void 0,children:[!_&&(s||g)?t.jsxs("div",{className:"popup-close-float",children:[s,g&&t.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:F,disabled:v,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||s||g?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[a?t.jsx("h2",{id:q,className:"popup-title popup-title--left h2",children:a}):t.jsx("span",{id:q,className:"popup-title popup-title--left h2"}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),i&&t.jsx("div",{className:"popup-header-segment",children:t.jsx(An,{size:40,ariaLabel:i.ariaLabel,options:i.options.map(X=>({key:X.key,label:X.label,disabled:X.disabled})),value:i.value,onChange:i.onChange})}),t.jsxs("div",{className:"popup-header-actions",children:[s,g&&t.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:F,disabled:v,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:j,tabIndex:L?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof l=="function"?l({animateThen:P,closeWithAnimation:F}):l})}),c||p?t.jsxs("div",{className:`popup-footer popup-footer--bar${m?` ${m}`:""}`,children:[t.jsx("div",{className:"popup-footer__start",children:typeof c=="function"?c({animateThen:P,closeWithAnimation:F}):c}),t.jsx("div",{className:"popup-footer__end",children:typeof p=="function"?p({animateThen:P,closeWithAnimation:F}):p})]}):u?.length?t.jsx("div",{className:`popup-footer popup-footer--buttons${C!=="center"?` popup-footer--${C}`:""}`,children:u.map((X,ae)=>t.jsx(pe,{htmlType:"button",size:48,variant:X.variant??"default",label:X.label,disabled:X.disabled,onClick:()=>X.onClick?.({animateThen:P,closeWithAnimation:F})},ae))}):d?t.jsx("div",{className:`popup-footer${C!=="center"?` popup-footer--${C}`:""}${m?` ${m}`:""}`,children:typeof d=="function"?d({animateThen:P,closeWithAnimation:F}):d}):null]})});return f||typeof document>"u"?ne:Xt.createPortal(ne,document.body)}function or(e){return String(e)}const sr=["o","triangle","x"];function du(e,n){return e===n?null:n}const pu={o:"circle",triangle:"triangle",x:"x"},mu={o:"main",triangle:"warn",x:"danger"};function Ly(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 s=n+a+r;return{marked:s,o:n,triangle:a,x:r,rate:s===0?null:(n+a*.5)/s}}function ko(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function hu(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function $y(e,n){return!n&&e>0}const ia={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 Ry(e="landscape"){an("print-word-table-deprecated","[printWordTable] @deprecated \u2014 WordTablePopup renderButtons \uC758 print(\uB610\uB294 useWordTablePrint().print)\uB97C \uC4F0\uC138\uC694. \uC804\uC5ED \uC778\uC1C4\uB294 \uD654\uBA74\uC758 \uBAA8\uB4E0 \uB2E8\uC5B4\uD45C\uB97C \uD568\uAED8 \uCC0D\uC2B5\uB2C8\uB2E4.");const{printSize:n,printW:a,printH:r}=ia[e],s=document.createElement("style");s.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(s);const i=()=>{document.head.removeChild(s),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function Cu(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let s=0;s<e.length;s+=a)r.push(e.slice(s,s+a));return r}const Py={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 Iy(e,n){const a=Py[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),s=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=s,i=Math.ceil(r/l)):(i=s,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}const Fy={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},fu={\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"},gu={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function No(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function bu(e,n,a,r){if(r!=="\uC810\uC120")return{};const s=e%n,i=Math.floor(e/n),l=s<n-1,u=i<a-1;if(!l&&!u)return{};const d="#ddd",c=g=>`repeating-linear-gradient(to ${g}, ${d} 0, ${d} 5px, transparent 5px, transparent 10px)`,p=[],m=[],C=[];return l&&(p.push(c("bottom")),m.push("1px 100%"),C.push("right center")),u&&(p.push(c("right")),m.push("100% 1px"),C.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:m.join(", "),backgroundPosition:C.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const Oy=280,Hy=240,zy=280,Vy=400,Wy=120,qy=280;function yu(e,n){const a=o.useRef(null),[r,s]=o.useState(1),[i,l]=o.useState(0),u=o.useCallback((d,c)=>{if(!(d>0))return;const p=d/e,m=n&&c>0?c/n:1/0,C=Math.min(1,p,m);s(C),l(Math.max(0,(d-e*C)/2))},[e,n]);return o.useEffect(()=>{const d=a.current;if(!d)return;const c=n?d.parentElement??d:d;if(u(c.clientWidth,c.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>u(m.contentRect.width,m.contentRect.height));return p.observe(c),()=>p.disconnect()},[u,n]),{scalerRef:a,scale:r,offset:i}}const Uy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Gy=400,vu=8;function xu({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:s=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:u=!0,buttonSize:d=40,wordInfo:c}){const{t:p}=ye.useTranslation(),m=o.useRef(null),C=o.useRef(null),g=o.useRef(null),[v,b]=o.useState(1),[y,w]=o.useState(!1),[h,_]=o.useState({for:"",url:""}),[f,A]=o.useState(null),x=n&&n.length>0?n:rC()?.(e,r)??"",N=Xn()?.(e,r)??"",{imgRef:k,loading:B,failed:E,onLoad:S,onError:z}=Ao(N),R=o.useCallback(()=>A(C.current?.getBoundingClientRect()??null),[]),q=o.useCallback(()=>A(null),[]),j=Yr(!!f,H=>{H?R():q()},C),L=o.useMemo(()=>{if(!c)return null;const H=[];return c.grade&&H.push(p("wordTable.info.grade",{n:c.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),c.syllables&&H.push(p("wordTable.info.syllables",{n:c.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),c.pos&&H.push(p("wordTable.info.pos",{v:No(c.pos,Ky(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),c.wordType&&H.push(p("wordTable.info.wordType",{v:No(c.wordType,Yy(p)),defaultValue:"\uC720\uD615: {{v}}"})),H.length?H:null},[c,p]),O=x||e,Z=h.for===O?h.url:"";o.useEffect(()=>{const H=jr(),M=x||e;if(!H||!M)return;let I=!1;return Promise.resolve(H(M)).then($=>{!I&&$&&_({for:M,url:$})}),()=>{I=!0}},[x,e]);const ee=o.useRef(null),W=o.useRef(null);o.useEffect(()=>()=>{g.current?.pause(),W.current?.()},[]);const U=o.useCallback(async H=>{if(H.stopPropagation(),y){ee.current?.();return}if(Z){w(!0);try{const M=new Audio(Z);g.current=M;const I=()=>{w(!1),W.current?.()},$=()=>{M.pause(),I()};ee.current=$;const K=Ja($);W.current=K,M.onended=I,M.onerror=I,await M.play()}catch{w(!1),W.current?.()}}},[y,Z]),P=i&&!!N&&!E,F=P&&s?Oy:P?zy:Hy,D=P&&s?Vy:P?qy:Wy;return o.useEffect(()=>{const H=m.current;if(!H||typeof ResizeObserver>"u")return;const M=new ResizeObserver(([I])=>{const{width:$,height:K}=I.contentRect;b(Math.min($/F,K/D))});return M.observe(H),()=>M.disconnect()},[F,D]),t.jsxs("div",{ref:m,className:Ne("word-table-cell",P?"word-table-cell--with-image":""),"data-ref-w":F,"data-ref-h":D,children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${v})`},children:[P&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[B&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:k,className:"word-table-cell__image",src:N,alt:e,draggable:!1,style:{opacity:B?0:1},onLoad:S,onError:z})]}),s&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&x&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",x,"]"]}),u&&a&&t.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),t.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":Z,children:[t.jsx("span",{"data-play-state":"play",style:{display:y?"none":void 0},children:t.jsx(pe,{htmlType:"button",size:d,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),ariaLabel:e?p("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):p("common.play","\uC7AC\uC0DD"),onClick:U})}),t.jsx("span",{"data-play-state":"pause",style:{display:y?void 0:"none"},children:t.jsx(pe,{htmlType:"button",size:d,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),ariaLabel:e?p("common.pauseFor",{name:e,defaultValue:`${e} \uBA48\uCDA4`}):p("common.pause","\uBA48\uCDA4"),onClick:U})})]}),c&&t.jsxs("div",{ref:C,className:"word-table-cell__info-button",onPointerEnter:H=>{ta(H)||R()},onPointerLeave:H=>{ta(H)||q()},onFocus:()=>{na()||R()},onBlur:q,children:[t.jsx(pe,{htmlType:"button",size:d,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:H=>{H.stopPropagation(),j.touchPress()}}),f&&L&&t.jsx(Vn,{anchorRect:f,items:L,showIndex:!1})]})]})}const _u={\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"},wu={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function Ky(e){return Object.fromEntries(Object.entries(fu).map(([n,a])=>[n,_u[n]?e(`wordTable.pos.${_u[n]}`,{defaultValue:a}):a]))}function Yy(e){return Object.fromEntries(Object.entries(gu).map(([n,a])=>[n,wu[n]?e(`wordSearch.filter.type.${wu[n]}`,{defaultValue:a}):a]))}function la({title:e,titleIcon:n,disc:a,className:r,orientation:s="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:u=!0,showDivLine:d=!0,items:c,editCells:p,count:m,activeCell:C=null,onActivateCell:g,onRemoveCell:v,onRemoveItem:b,onReorder:y,renderCellAction:w,showFillerAdd:h=!1,contentRef:_,buttonSize:f=40,brand:A,code:x,pageNumber:N,pageNumberPosition:k="right",fitHeight:B=!1,scoring:E=!1,marks:S,onMarkClick:z,scoreIndexOffset:R=0}){const q=o.useCallback((te,ce)=>{z?.(R+te,ce)},[z,R]),j=(te,ce)=>{const me=S?.[or(R+te)]??null;return t.jsx("div",{className:Ne("word-table-cell__score",me?"word-table-cell__score--marked":""),style:Me>1?{transform:`translateX(-50%) scale(${Me})`,transformOrigin:"bottom center"}:void 0,children:sr.map(Se=>t.jsx("span",{className:Ne("word-table-cell__score-slot",me===Se?"word-table-cell__score-slot--on":""),children:t.jsx(pe,{htmlType:"button",size:f,type:"dot",shape:"pill",icon:pu[Se],variant:me===Se?mu[Se]:"default",selected:me===Se,useBorder:!1,...ke?{}:{tabIndex:-1,role:"img"},showTooltipInfo:L(`wordTable.scoring.markName.${Se}`,{defaultValue:Se}),ariaLabel:L(`wordTable.scoring.${Se}`,{word:ce,defaultValue:`${ce} ${Se}`}),onClick:ke?et=>{et.stopPropagation(),q(te,Se)}:void 0})},Se))})},{t:L}=ye.useTranslation(),O=p!==void 0,Z=e!=null||!!n||!!a,ee=tn("(max-width: 767px)"),W=o.useRef(null),[U,P]=o.useState(null),F=c?.length??0,[D,H]=o.useState(null),[M,I]=o.useState(""),$=o.useRef(null),K=o.useRef(null),ne=o.useRef(null),X=o.useRef(null),ae=o.useCallback(te=>{K.current=te,typeof _=="function"?_(te):_&&(_.current=te)},[_]),ue=o.useCallback((te,ce)=>{$.current=ce,y?.(te,ce),I(L("wordTable.reorder.moved",{n:ce+1,total:F,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[y,L,F]);o.useEffect(()=>{const te=$.current;te!=null&&($.current=null,K.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[te]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{X.current?.()},[]);const le=o.useCallback((te,ce)=>{if(!y||!te.altKey||te.ctrlKey||te.metaKey)return;const me=te.key==="ArrowRight";if(!me&&te.key!=="ArrowLeft")return;te.preventDefault();const Se=ce+(me?1:-1);Se<0||Se>=F||ue(ce,Se)},[y,F,ue]),be=o.useCallback((te,ce)=>{if(!y||te.pointerType==="mouse")return;const me=te.target.closest?.("button");if(me&&!me.closest(".word-table-block__card-handle"))return;X.current?.();const Se={x:te.clientX,y:te.clientY};let et=!1;const Ke=Ge=>{et&&Ge.cancelable&&Ge.preventDefault()},bt=Ge=>{if(!et){(Math.abs(Ge.clientX-Se.x)>vu||Math.abs(Ge.clientY-Se.y)>vu)&&tt();return}const Ye=document.elementFromPoint?.(Ge.clientX,Ge.clientY)?.closest?.("[data-wordtable-cell]"),Re=Ye?Number(Ye.dataset.wordtableCell):NaN,We=Number.isInteger(Re)?Re:null;ne.current=We,P(We)},ut=()=>{const Ge=ne.current,Ye=et;tt(),Ye&&Ge!=null&&Ge!==ce&&ue(ce,Ge)},it=setTimeout(()=>{et=!0,H(ce),ne.current=ce,P(ce),window.addEventListener("touchmove",Ke,{passive:!1})},Gy);function tt(){clearTimeout(it),window.removeEventListener("pointermove",bt),window.removeEventListener("pointerup",ut),window.removeEventListener("pointercancel",ut),window.removeEventListener("touchmove",Ke),et=!1,ne.current=null,X.current=null,H(null),P(null)}X.current=tt,window.addEventListener("pointermove",bt),window.addEventListener("pointerup",ut),window.addEventListener("pointercancel",ut)},[y,ue]),{width:V,height:Q}=ia[s],oe=typeof B=="number"?B:B&&typeof B=="object"?ee?B.narrow:B.wide:null,{scalerRef:Be,scale:Ce,offset:se}=yu(V,B?Q:void 0),ge=O?p?.length??0:c?.length??0,fe=Math.max(m??ge,1),{cols:xe,rows:$e}=Iy(s,fe),Le={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")},Qe=O?(p??[]).some(te=>te!==null&&te.length>1):(c??[]).some(te=>(te.words??[]).length>1),Ue=!!A?.show,ze=!!A?.show&&A?.top!==!1,Ie=!!A?.show&&A?.bottom!==!1,st=A?.copyright??"\xA9 IHAB, Inc. All rights reserved.",Xe=Ne("word-table-block__content",Fy[l],u&&"word-table-block__content--outline",d&&Qe&&"word-table-block__content--div-line",!Ue&&N&&k!=="none"&&"word-table-block__content--page-number",ze&&"word-table-block__content--brand-top",Ie&&"word-table-block__content--brand-bottom"),Je={transform:`scale(${1/Ce})`,transformOrigin:"center center"},Ee=f*sr.length+4*(sr.length-1),ke=!!z,Me=ke?Math.max(1,Math.min(1/Ce,V/xe/Ee)):1,Ve=t.jsxs("div",{ref:Be,className:"word-table__scaler",style:{height:Q*Ce},children:[t.jsx("div",{className:Ne("word-table",E&&!ke&&"word-table--score-readonly",!Z&&r),style:{width:V,height:Q,transform:`scale(${Ce})`,transformOrigin:"top left",marginLeft:se},children:t.jsxs("div",{ref:ae,className:Xe,style:{gridTemplateColumns:`repeat(${xe}, 1fr)`,gridTemplateRows:`repeat(${$e}, 1fr)`},children:[O?t.jsx(t.Fragment,{children:(p??[]).map((te,ce)=>t.jsx("div",{className:Ne("word-table-block__edit-cell",te?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",C===ce?"word-table-block__edit-cell--active":""),style:bu(ce,xe,$e,l),children:te?t.jsxs(t.Fragment,{children:[te.map((me,Se)=>t.jsxs(o.Fragment,{children:[Se>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(xu,{label:me.word,subLabel:me.pronunciation,colloquialLabel:me.colloquialPronunciation,homonum:me.homonum,showWord:Le.word,showImage:Le.image,showPronunciation:Le.pron,showColloquial:Le.colloq,buttonSize:f})]},Se)),E&&j(ce,te.map(me=>me.word).join(" / ")),v&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(pe,{htmlType:"button",size:f,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:te.length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:te.length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>v(ce)})})]}):g&&t.jsx("div",{style:Je,children:t.jsx(pe,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:L("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g(ce)})})},ce))}):t.jsxs(t.Fragment,{children:[(c??[]).map((te,ce)=>t.jsxs("div",{"data-wordtable-cell":y?ce:void 0,className:`word-table-block__card${y?" word-table-block__card--draggable":""}${U===ce?" word-table-block__card--drag-over":""}${D===ce?" word-table-block__card--dragging":""}`,style:bu(ce,xe,$e,l),draggable:!!y,onPointerDown:y?me=>be(me,ce):void 0,onKeyDown:y?me=>le(me,ce):void 0,onDragStart:y?()=>{W.current=ce}:void 0,onDragOver:y?me=>{me.preventDefault(),P(ce)}:void 0,onDragLeave:y?()=>P(null):void 0,onDrop:y?me=>{me.preventDefault(),W.current!==null&&W.current!==ce&&y(W.current,ce),W.current=null,P(null)}:void 0,onDragEnd:y?()=>{W.current=null,P(null)}:void 0,children:[(te.words??[]).map((me,Se)=>t.jsxs(o.Fragment,{children:[Se>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(xu,{label:me.label,subLabel:me.subLabel,colloquialLabel:me.colloquialLabel,homonum:me.homonum,showWord:Le.word,showImage:Le.image,showPronunciation:Le.pron,showColloquial:Le.colloq,buttonSize:f,wordInfo:me.grade||me.syllables!=null||me.pos||me.wordType?{grade:me.grade,syllables:me.syllables,pos:me.pos,wordType:me.wordType}:void 0})]},Se)),E&&j(ce,(te.words??[]).map(me=>me.label).join(" / ")),y&&t.jsx("div",{className:"word-table-block__card-handle",children:t.jsx(pe,{htmlType:"button",size:f,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:L("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:L("wordTable.reorder.handle",{word:(te.words??[]).map(me=>me.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),(w||b)&&t.jsxs("div",{className:"word-table-block__card-actions",children:[w?.(ce,te),b&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(pe,{htmlType:"button",size:f,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(te.words??[]).length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(te.words??[]).length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>b(te.id)})})]})]},te.id)),Array.from({length:Math.max(0,xe*$e-(c?.length??0))}).map((te,ce)=>{const me=(c?.length??0)+ce<fe;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:h&&g&&me&&t.jsx("div",{style:Je,children:t.jsx(pe,{htmlType:"button",size:f,type:"bar",icon:"plus",label:L("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>g((c?.length??0)+ce)})})},`filler-${ce}`)})]}),ze&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:"word-table__band word-table__band--top",children:[t.jsx("img",{className:"word-table__brand-logo",src:A?.topLogo?.src??Xa,alt:A?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const te=[A?.title&&t.jsx("span",{className:"word-table__paper-title",children:A.title},"t"),A?.owner&&t.jsx("span",{className:"word-table__owner",children:A.owner},"o"),x&&t.jsx("span",{className:"word-table__code",children:x},"c")].filter(Boolean);return te.length===0?null:t.jsx("span",{className:"word-table__ident",children:te.map((ce,me)=>t.jsxs(o.Fragment,{children:[me>0&&t.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),ce]},me))})})()]})}),Ie&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[t.jsxs("span",{className:"word-table__brand-by",children:[A?.bottomLogo?t.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:A.bottomLogo.src,alt:A.bottomLogo.alt}):t.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),t.jsx("span",{className:"word-table__copyright",children:st})]}),t.jsxs("span",{className:"word-table__band-end",children:[A?.link&&t.jsx("span",{className:"word-table__link",children:A.link}),N&&k!=="none"&&t.jsx("span",{className:"word-table__page-count",children:L("wordTable.filter.pageIndicator",{current:N.current,total:N.total})})]})]})}),!Ue&&N&&k!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${k}`,children:L("wordTable.filter.pageIndicator",{current:N.current,total:N.total})})]})}),y&&t.jsx("span",{role:"status",style:Uy,children:M})]}),lt=oe==null?Ve:t.jsx("div",{className:"word-table__frame",style:{height:oe},children:Ve});return Z?t.jsx(sa,{type:"page",icon:n,title:e,disc:a,className:Ne("word-table-block",r),children:lt}):lt}function Zy(e,n,a){const r=[];for(const s of e??[]){if(s.type==="note"||s.type==="input")continue;const i=s.displayLabel??s.label,l=Xy(s,n?.[s.label],a);l!==null&&r.push(`${i} ${l}`)}return r.join(" \xB7 ")}function Xy(e,n,a){const r=(Array.isArray(n)?n:n===void 0?[]:[n]).filter(s=>s!==sn);return r.length===0?e.allOption?e.allLabel??a:null:r.map(s=>Jy(e,s)).join(", ")}function Jy(e,n){const a=[...e.items??[],...(e.groups??[]).flat()];for(const r of a)if(r!=null){if(typeof r=="string"){if(r===n)return r;continue}if(r.value===n)return r.displayLabel??r.labels?.join(" ")??r.value}return n}function kn({title:e,titleLevel:n=2,headerAction:a,headerSummary:r,collapsible:s=!1,defaultCollapsed:i=!1,collapsed:l,onCollapsedChange:u,footer:d,sections:c,selected:p={},onSelect:m,align:C,sectionAlign:g,className:v}){const b=(C??(g==="vertical"?"newline":"inline"))==="inline",{t:y}=ye.useTranslation(),[w,h]=o.useState(i),_=l??w,f=()=>{const S=!_;h(S),u?.(S)},A=S=>{if(!s)return;const z=S.target;!z||typeof z.closest!="function"||z.closest(".filter-panel__collapse-toggle")||z.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||f()},x=o.useMemo(()=>r!==void 0||!_?"":Zy(c,p,y("common.all","\uC804\uCCB4")),[r,_,c,p,y]),N=r??(x?t.jsx("span",{className:"filter-panel__header-summary body-3",children:x}):null),k=e||a||r||s,B=o.useId(),E=n?`h${n}`:"span";return t.jsxs("div",{className:Ne("filter-panel",s?"filter-panel--collapsible":"",_?"filter-panel--collapsed":"",v),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?B:void 0,children:[k&&t.jsxs("div",{className:"filter-panel__header",onClick:s?A:void 0,children:[t.jsx("div",{className:"filter-panel__title-row",children:e&&t.jsx(E,{id:B,className:"filter-panel__title h4",children:e})}),t.jsxs("div",{className:"filter-panel__header-actions",children:[_?N:a,s&&t.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:_?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:_?y("common.expand","\uD3BC\uCE58\uAE30"):y("common.collapse","\uC811\uAE30"),"aria-expanded":!_,onClick:f})]})]}),!_&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:Ne("filter-panel__sections",b?"filter-panel__sections--row":""),children:c.map(S=>{const z=p[S.label],R=z===void 0||(Array.isArray(z)?z.length===0:!1),q=(S.items??[]).filter(L=>L!=null);S.allOption&&q.some(L=>(typeof L=="string"?L:L.value)===sn)&&an(`filter-panel-all-value:${S.label}`,`[FilterPanel] '${S.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${sn}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const j=L=>{const O=typeof L=="string"?L:L.value,Z=typeof L!="string"&&!!L.disabled,ee=typeof L!="string"?L.labels:void 0,W=typeof L!="string"?L.displayLabel:void 0,U=typeof L!="string"?L.tooltip:void 0,P=typeof L!="string"?L.descriptionTooltip:void 0,F=typeof L!="string"?L.shape:void 0,D=Array.isArray(z)?z.includes(O):z===O;return t.jsx(pe,{htmlType:"button",size:"keyboard",label:ee??W??O,type:S.itemType??(ee?"bar":O.length===1?"dot":void 0),selected:D,disabled:Z,shape:F,showTooltipInfo:!!U,tooltipInfoText:U,tooltipDescription:P,onClick:()=>m?.(O,S.label)},O)};return t.jsxs(o.Fragment,{children:[S.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:S.groupLabel}),S.groupAction]}),t.jsxs("div",{className:Ne("filter-panel__section",S.layout==="row"?"filter-panel__section--row":"",S.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:S.displayLabel??S.label}),S.labelAction??(S.labelInfo?t.jsx(Ea,{...S.labelInfo}):null)]}),S.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:S.content}):S.type==="input"?t.jsx(Un,{className:"filter-panel__textfield",placeholder:S.placeholder,ariaLabel:S.displayLabel??S.label,value:p[S.label]??"",onChange:L=>m?.(L,S.label),error:S.error}):!S.multiple&&S.display==="segmented"?t.jsx(An,{ariaLabel:S.displayLabel??S.label,options:[...S.allOption?[{key:sn,label:S.allLabel??y("common.all","\uC804\uCCB4"),disabled:S.allOptionDisabled}]:[],...q.map(L=>{const O=typeof L=="string"?L:L.value,Z=typeof L!="string"?L.displayLabel:void 0,ee=typeof L!="string"?L.disabled:void 0;return{key:O,label:Z??O,disabled:ee}})],value:R&&S.allOption?sn:p[S.label]??"",onChange:L=>m?.(L,S.label),size:32}):!S.multiple&&S.display==="dropdown"?t.jsx(ln,{className:"filter-panel__dropdown",size:40,options:[...S.allOption?[{value:sn,label:S.allLabel??y("common.all","\uC804\uCCB4"),disabled:S.allOptionDisabled}]:[],...q.map(L=>{const O=typeof L=="string"?L:L.value,Z=typeof L!="string"?L.displayLabel:void 0,ee=typeof L!="string"?L.disabled:void 0;return{value:O,label:Z??O,disabled:ee}})],value:R&&S.allOption?sn:p[S.label],onChange:L=>m?.(L,S.label)}):t.jsxs("div",{className:S.groups?"filter-panel__item-groups":"filter-panel__items",children:[S.allOption&&!S.groups&&t.jsx(pe,{htmlType:"button",size:"keyboard",label:S.allLabel??y("common.all","\uC804\uCCB4"),selected:R,disabled:S.allOptionDisabled,onClick:()=>m?.(sn,S.label)}),S.groups?S.groups.map((L,O)=>t.jsxs("div",{className:"filter-panel__item-group",children:[O===0&&S.allOption&&t.jsx(pe,{htmlType:"button",size:"keyboard",label:S.allLabel??y("common.all","\uC804\uCCB4"),selected:R,disabled:S.allOptionDisabled,onClick:()=>m?.(sn,S.label)}),L.filter(Z=>Z!=null).map(j)]},O)):q.map(j)]})]})]},S.label)})}),d!=null&&d!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:d})]})]})}const Qy=[1,2,3,4,5,6,7,8,9,10,11,12],Au=[8,4,2,1];function Bu(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 ku(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 Nu(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 Du(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),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 Eu(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),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 Su(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 ju(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 Tu(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...Au.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Mu(e,n){return e===n||!Au.includes(e)?Number.POSITIVE_INFINITY:e}function e5(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 Lu={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function $u(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Ru(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",...n.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:n.showTopInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{},...n.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:n.showBottomInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{}}}function Pu(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===sn?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(s=>s.includes(n)?s.filter(i=>i!==n):[...s,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):a===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(n==="\uD45C\uC2DC"),!0):!1}function t5(e){return"sections"in e}function Do(e){const{t:n}=ye.useTranslation(),{title:a,className:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d}=e,c={collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d};if(t5(e))return t.jsx(kn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...c,align:"inline"});const{hasImage:p,hasColloquial:m,contentTypes:C,orientation:g,showOutline:v,cutLine:b,showDivLine:y,setters:w,showCutLine:h=!1,showDivLine2:_=!1,middleSections:f=[],extraSelected:A={},onExtraSelect:x,showPaperBands:N=!1,showTopInfo:k=!0,showBottomInfo:B=!0}=e,E=[Bu(n,{hasImage:p,hasColloquial:m}),ku(n),...f,Nu(n),...h?[Su(n)]:[],..._?[ju(n)]:[],...N?[Du(n),Eu(n)]:[]],S={...Ru(n,{contentTypes:C,orientation:g,showOutline:v,cutLine:b,showDivLine:y,showTopInfo:k,showBottomInfo:B}),...A},z=(R,q)=>{Pu(n,R,q,w)||x?.(R,q)};return t.jsx(kn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:E,selected:S,onSelect:z,...c,sectionAlign:"horizontal"})}function Iu(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Eo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let ir=null,ua=null;function n5(e,n,a,r="",s=""){if(e.length===0||ua&&ua.iframe.isConnected&&Date.now()-ua.at<1e4)return;const i=r?Eo(r):"";ir?.();let l=null;if(i){const c=document.title;document.title=i,l=()=>{document.title=c,window.removeEventListener("afterprint",l),ir===l&&(ir=null)},ir=l,window.addEventListener("afterprint",l)}const u=document.createElement("iframe");u.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(u);const d=u.contentDocument;if(!d){u.remove();return}ua={iframe:u,at:Date.now()},d.open(),d.write(So(e,n,a,!0,i,s)),d.close(),u.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{u.remove(),ua?.iframe===u&&(ua=null)},0)})}function So(e,n,a,r=!1,s="",i=""){s=s?Eo(s):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(m=>m.cssText)}catch{return[]}}).join(`
860
860
  `),u="light",d=i?`<div class="paper-head">${Iu(i)}</div>`:"",c=e.map(p=>{const m=p.cloneNode(!0);return m.querySelectorAll('[data-play-state="play"]').forEach(C=>C.style.display=""),m.querySelectorAll('[data-play-state="pause"]').forEach(C=>C.style.display="none"),m.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(C=>C.remove()),m.querySelectorAll(".word-table-cell__spinner").forEach(C=>C.remove()),m.querySelectorAll("img").forEach(C=>{C.style.opacity==="0"&&(C.setAttribute("onload","this.style.opacity=''"),C.setAttribute("onerror","this.style.visibility='hidden'"))}),`<div class="paper-wrap">${d}${m.outerHTML}</div>`}).join(`
861
861
  `);return`<!DOCTYPE html>
862
862
  <html data-theme="${u}">
@@ -1042,10 +1042,10 @@ ${f.badge}`:f.badge:void 0;if(x&&d(f.code))return null;if(!f.badge&&!p)return m(
1042
1042
  `:""}
1043
1043
  <\/script>
1044
1044
  </body>
1045
- </html>`}const a5=1e3;function jo({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=ye.useTranslation(),u=o.useCallback(()=>{n5(e(),n,a,r,i)},[e,n,a,r,i]),d=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=window.open("","_blank");if(!m){s?.();return}m.document.write(So(p,n,a,!1,r,i)),m.document.close()},[e,n,a,r,s,i]),c=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=So(p,n,a,!1,r,i),C=new Blob([m],{type:"text/html;charset=utf-8"}),g=URL.createObjectURL(C),v=(r?Eo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),b=Object.assign(document.createElement("a"),{href:g,download:`${v}.html`});document.body.appendChild(b),b.click(),document.body.removeChild(b),setTimeout(()=>URL.revokeObjectURL(g),a5)},[e,n,a,r,i,l]);return{print:u,openNewWindow:d,downloadHtml:c}}function Fu(e,n){const{t:a}=ye.useTranslation(),r=n?.paperBands===!0,[s,i]=o.useState("landscape"),[l,u]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[d,c]=o.useState("\uD45C\uC2DC"),[p,m]=o.useState(!0),[C,g]=o.useState(!0),[v,b]=o.useState(!0),[y,w]=o.useState(!0),[h,_]=o.useState(8),[f,A]=o.useState("right"),x=e.length,N=e.some(Z=>(Z.words??[]).length>1),k=e.some(Z=>(Z.words??[]).some(te=>!!te.colloquialLabel)),B=Math.min(h,Math.max(x,1)),E=o.useMemo(()=>Cu(e,B),[e,B]),S=E.length>1,z=B,[R,q]=o.useState(!1);o.useEffect(()=>{let Z=!1;if(!Xn()){q(!1);return}return Promise.all(e.flatMap(te=>(te.words??[]).map(W=>ei(W.label,W.homonum)))).then(te=>{Z||q(te.some(Boolean))},()=>{}),()=>{Z=!0}},[e]);const j=o.useMemo(()=>[Bu(a,{hasImage:R,hasColloquial:k}),ku(a),...x>0?[Tu(a,{hasPairs:N,itemCount:x})]:[],Nu(a),...z>1?[Su(a)]:[],...N?[ju(a)]:[],...r?[Du(a),Eu(a)]:[]],[a,R,k,x,N,S,z,r]),L={...Ru(a,{contentTypes:l,orientation:s,showOutline:p,cutLine:d,showDivLine:y,showTopInfo:C,showBottomInfo:v}),...x>0?{[a(N?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${B}\uAC1C`}:{},...S?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Lu[f]}:{}},O=o.useCallback((Z,te)=>{Pu(a,Z,te,{setContentTypes:u,setOrientation:i,setShowOutline:m,setCutLine:c,setShowDivLine:w,setShowTopInfo:g,setShowBottomInfo:b})||(te===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||te===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?_(Mu(parseInt(Z),x)):te===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&A($u(Z)))},[a,x]);return{settings:{orientation:s,contentTypes:l,cutLine:d,showOutline:p,showDivLine:y,count:z,showTopInfo:C,showBottomInfo:v},filterSections:j,filterSelected:L,handleSelect:O,pages:E,isPaginated:S,pageNumberPosition:f}}function r5({items:e,words:n,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:u,footerClassName:d,footerLayout:c,printFileName:p,showSettings:m,autoPrint:C,className:g,onClose:v,scoring:b=!1,onScoreChange:y,printHeader:w,brand:h,code:_,beforeClose:f}){const{t:A}=ye.useTranslation(),x=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(le=>typeof le=="string"&&le.length>0).map((le,be)=>({id:`${le}-${be}`,words:[{label:le}]})),[e,n]),{settings:N,filterSections:k,filterSelected:B,handleSelect:E,pages:S,isPaginated:z,pageNumberPosition:R}=Fu(x,{paperBands:!!h?.show}),q=o.useMemo(()=>hu(S.map(le=>le.length)),[S]),[j,L]=o.useState({}),O=o.useCallback((le,be)=>{L(V=>({...V,[or(le)]:du(V[or(le)]??null,be)}))},[]),Z=o.useRef(y);o.useEffect(()=>{Z.current=y});const te=o.useRef(j);o.useEffect(()=>{te.current!==j&&(te.current=j,Z.current?.(ko(j)))},[j]);const W=o.useMemo(()=>ko(j),[j]),U=o.useRef(null),{toastMessage:P,toastKey:F,showWarning:D,clearToast:H}=ul("warning"),M=o.useRef([]),I=o.useCallback(()=>z?M.current.filter(le=>le!==null):U.current?[U.current]:[],[z]),{print:$,openNewWindow:K}=jo({getElements:I,paperW:ia[N.orientation].width,paperH:ia[N.orientation].height,fileName:p??"",header:w??"",onPopupBlocked:()=>D(A("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."))}),ne=o.useMemo(()=>u?void 0:l?l({print:$,openNewWindow:K}):p?[{label:A("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>K()},{label:A("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>$()},...i??[]]:i,[u,l,p,i,A,$,K]),X=o.useMemo(()=>u?u({print:$,openNewWindow:K}):void 0,[u,$,K]),ae=o.useRef(!1),ue=o.useRef($);return o.useEffect(()=>{ue.current=$},[$]),o.useEffect(()=>{if(!C||ae.current)return;const le=window.setTimeout(()=>{ae.current=!0,ue.current()},100);return()=>window.clearTimeout(le)},[C]),t.jsxs(Tn,{title:a??A("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:De("word-table-popup",g),buttons:ne,footer:X,footerClassName:d,footerLayout:c,beforeClose:f,onClose:v,children:[x.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[m&&t.jsx(Do,{sections:k,selected:B,onSelect:E}),z?t.jsx("div",{className:"word-table-popup__pages",children:S.map((le,be)=>t.jsx(la,{items:le,orientation:N.orientation,contentTypes:N.contentTypes,cutLine:N.cutLine,showOutline:N.showOutline,showDivLine:N.showDivLine,count:N.count,contentRef:V=>{M.current[be]=V},pageNumber:{current:be+1,total:S.length},pageNumberPosition:R,brand:h&&{...h,top:N.showTopInfo,bottom:N.showBottomInfo},code:_,scoring:b,scoreIndexOffset:q[be],marks:W,onMarkClick:O},be))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(la,{items:x,orientation:N.orientation,contentTypes:N.contentTypes,cutLine:N.cutLine,showOutline:N.showOutline,showDivLine:N.showDivLine,count:N.count,contentRef:U,fitHeight:!0,scoring:b,marks:W,onMarkClick:O,brand:h&&{...h,top:N.showTopInfo,bottom:N.showBottomInfo},code:_})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:s??A("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(ra,{message:P,position:"top",onClose:H},F)]})}const o5=new Set(["x","triangle"]);function s5(e,n){const a=[];for(let r=0;r<e.length;r++){const s=n[String(r)];s&&o5.has(s)&&a.push(e[r])}return a}const i5=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Ou(e){const n=e.name.trim(),a=e.reviewRound;if(typeof a=="number"&&Number.isFinite(a)&&a>=0){const i=Math.floor(a);if(i===0)return{\uBC14\uD0D5:n,\uD68C\uCC28:1};const l=(i===1?/\s*복습\s*\d{2}\.\d{2}$/:new RegExp(`(?:^|\\s)${i}\uCC28\\s*\uBCF5\uC2B5\\s*\\d{2}\\.\\d{2}$`)).exec(n);return{\uBC14\uD0D5:l?n.slice(0,l.index).trim():n,\uD68C\uCC28:i+1}}let r=n,s=1;for(;;){const i=i5.exec(r);if(!i)break;s=Math.max(s,(i[1]?Number(i[1]):1)+1),r=r.slice(0,i.index).trim()}return{\uBC14\uD0D5:r,\uD68C\uCC28:s}}function l5(e,n){const[,a,r]=Hr(n).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Ou(typeof e=="string"?{name:e}:e),u=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${s}`}function u5(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Ou(e).\uD68C\uCC28}}function c5(e,n){const a={};for(const[r,s]of Object.entries(n)){if(s!=="o"&&s!=="triangle"&&s!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function d5(e){return e.map(n=>n.label).join(" / ")}function p5(e){return e.map(n=>n.homonum!=null?`${n.label}#${n.homonum}`:n.label).join(" / ")}function Hu(e){return e.split(" / ").map(n=>n.replace(/#\d+$/,"")).join(" / ")}function m5(e,n,a){const r=di(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}function zu(e,n,a){return a===0?0:(e+n*.5)/a}function h5(e){const n=new Map,a=[...e].sort((s,i)=>s.scoredAt.localeCompare(i.scoredAt));for(const s of a)for(const[i,l]of Object.entries(s.marks)){const u=s.labels?.[i];if(!u)continue;const d=n.get(u)??{o:0,triangle:0,x:0,latest:l,latestAt:s.scoredAt};if(l==="o")d.o++;else if(l==="triangle")d.triangle++;else if(l==="x")d.x++;else continue;d.latest=l,d.latestAt=s.scoredAt,n.set(u,d)}const r=[];for(const[s,i]of n){const l=i.o+i.triangle+i.x;r.push({label:Hu(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:zu(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((s,i)=>s.rate-i.rate||i.tried-s.tried||aa(s.label,i.label)||aa(s.key??s.label,i.key??i.label)),r}function C5(e){const n=new Map;for(const r of e){const s=r.tableId??`name:${r.tableName}`,i=n.get(s)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),n.set(s,i)}const a=[];for(const r of n.values()){const s=u=>Object.values(u.marks).filter(d=>d==="o"||d==="triangle"||d==="x").length,i=r.rows.filter(u=>s(u)>0).sort((u,d)=>u.scoredAt.localeCompare(d.scoredAt));if(i.length===0)continue;const l=i.map(u=>{const d=Object.values(u.marks),c=d.filter(m=>m==="o").length,p=d.filter(m=>m==="triangle").length;return zu(c,p,s(u))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:i.map(u=>u.scoredAt),delta:l.length>=2?l[l.length-1]-l[0]:null})}return a.sort((r,s)=>(s.times[s.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function f5(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function g5(e,n){if(e==null||n==null||e===""||n==="")return 0;if(typeof e=="number"&&typeof n=="number")return e-n;const a=String(e),r=String(n);return+(a>r)-+(a<r)}function b5(e){const n=new Map;let a=0,r=0;const s=e.map((l,u)=>({r:l,\uC790\uB9AC:u})).sort((l,u)=>l.r.answeredAt.localeCompare(u.r.answeredAt)||g5(l.r.id,u.r.id)||l.\uC790\uB9AC-u.\uC790\uB9AC).map(l=>l.r);for(const l of s){if(l.isCorrect==null)continue;const u=l.itemTitle?.trim();if(!u){r++;continue}a++;const d=l.itemId?.trim()||u,c=`${l.trainingType}|${d}`,p=n.get(c)??{trainingType:l.trainingType,itemId:d,title:u,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(p.tried++,l.isCorrect||p.wrong++,p.title=u,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(c,p)}const i=[...n.entries()].map(([l,u])=>({key:l,trainingType:u.trainingType,itemId:u.itemId,title:u.title,tried:u.tried,wrong:u.wrong,rate:u.tried===0?0:(u.tried-u.wrong)/u.tried,latestCorrect:u.latestCorrect,latestAt:u.latestAt,lastSelected:u.lastSelected,setIds:u.setIds}));return i.sort((l,u)=>l.rate-u.rate||u.tried-l.tried||aa(l.title,u.title)),{items:i,counted:a,skippedNoTitle:r}}function y5(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function v5(e){const n=new Map;for(const r of e){const s=n.get(r.trainingType)??[];s.push(r),n.set(r.trainingType,s)}const a=[...n.entries()].map(([r,s])=>({trainingType:r,items:s,pending:s.filter(i=>!i.latestCorrect).length}));return a.sort((r,s)=>s.pending-r.pending||r.trainingType.localeCompare(s.trainingType)),a}const To=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function x5(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 u=`${i.trainingType}|${l}`,d=n.get(u)??{setId:l,trainingType:i.trainingType,pending:0};d.pending++,n.set(u,d)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),s=[...n.values()];return{sentence:s.filter(i=>To.includes(i.trainingType)).sort(r),word:s.filter(i=>!To.includes(i.trainingType)).sort(r),noSet:a}}function _5(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const s=[];for(const i of e){const l=new Set,u=[];for(const d of i.cellLabels)r.has(d)&&!l.has(d)&&(l.add(d),u.push(d));u.length!==0&&s.push({id:i.id,name:i.name,kind:i.kind,covered:u,totalCells:i.cellLabels.length})}return s.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||aa(i.name,l.name)),s.slice(0,Math.max(0,a))}function w5(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function A5(e,n){const a=new Map;for(const s of e)for(const i of s.cells){const l=s.labelOf(i);a.has(l)||a.set(l,i)}const r=[];for(const s of n){const i=a.get(s);i!==void 0&&r.push(i)}return r}function Mo(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function B5(e,n){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),s=a%60;return n?n(r,s):r>0&&s>0?Mo(St.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?Mo(St.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):Mo(St.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function k5(e,n){const a=[],r=new Set;for(const s of e){const i=n(s);r.has(i)||(r.add(i),a.push({key:i,value:s,pinned:!1}))}return a}function N5(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function D5(e,n){return e.filter(a=>a.key!==n)}function E5(e,n,a){const r=e.filter(c=>c.pinned),s=new Set(r.map(c=>c.key)),i=e.length-r.length,l=[],u=new Set(s);for(const c of n){if(l.length>=i)break;const p=a(c);u.has(p)||(u.add(p),l.push({key:p,value:c,pinned:!1}))}const d=[...l];return e.map(c=>c.pinned?c:d.shift()).filter(c=>c!==void 0)}function S5(e){return e.map(n=>n.value)}function j5(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},s=n?.key?` icon-grid-menu__button--${n.key}`:"",i=o.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,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(Ze,{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 T5(e){const{categories:n=[],selected:a,onSelect:r,size:s="medium"}=e||{},i=a!==void 0,[l,u]=o.useState(()=>i?null:(n&&n[0]?.key)??null),d=i?a:l,c=o.useRef(r);o.useEffect(()=>{c.current=r});const p=o.useRef(!1),m=(n&&n[0]?.key)??null;o.useEffect(()=>{if(i||p.current||!m)return;p.current=!0;const g=l??m;l==null&&u(g),c.current?.(g)},[i,m]);const C=o.useCallback(g=>{const v=d===g?null:g;p.current=!0,i||u(v),r?.(v)},[d,i,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(n||[]).map(g=>t.jsx(j5,{category:g,isSelected:d===g.key,onClick:()=>C(g.key)},g.key))})}function M5({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const s=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(pe,{htmlType:"button",size:s,type:"bar",label:i.label,selected:n===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function L5({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:i}=ye.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
1045
+ </html>`}const a5=1e3;function jo({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=ye.useTranslation(),u=o.useCallback(()=>{n5(e(),n,a,r,i)},[e,n,a,r,i]),d=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=window.open("","_blank");if(!m){s?.();return}m.document.write(So(p,n,a,!1,r,i)),m.document.close()},[e,n,a,r,s,i]),c=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=So(p,n,a,!1,r,i),C=new Blob([m],{type:"text/html;charset=utf-8"}),g=URL.createObjectURL(C),v=(r?Eo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),b=Object.assign(document.createElement("a"),{href:g,download:`${v}.html`});document.body.appendChild(b),b.click(),document.body.removeChild(b),setTimeout(()=>URL.revokeObjectURL(g),a5)},[e,n,a,r,i,l]);return{print:u,openNewWindow:d,downloadHtml:c}}function Fu(e,n){const{t:a}=ye.useTranslation(),r=n?.paperBands===!0,[s,i]=o.useState("landscape"),[l,u]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[d,c]=o.useState("\uD45C\uC2DC"),[p,m]=o.useState(!0),[C,g]=o.useState(!0),[v,b]=o.useState(!0),[y,w]=o.useState(!0),[h,_]=o.useState(8),[f,A]=o.useState("right"),x=e.length,N=e.some(Z=>(Z.words??[]).length>1),k=e.some(Z=>(Z.words??[]).some(ee=>!!ee.colloquialLabel)),B=Math.min(h,Math.max(x,1)),E=o.useMemo(()=>Cu(e,B),[e,B]),S=E.length>1,z=B,[R,q]=o.useState(!1);o.useEffect(()=>{let Z=!1;if(!Xn()){q(!1);return}return Promise.all(e.flatMap(ee=>(ee.words??[]).map(W=>ei(W.label,W.homonum)))).then(ee=>{Z||q(ee.some(Boolean))},()=>{}),()=>{Z=!0}},[e]);const j=o.useMemo(()=>[Bu(a,{hasImage:R,hasColloquial:k}),ku(a),...x>0?[Tu(a,{hasPairs:N,itemCount:x})]:[],Nu(a),...z>1?[Su(a)]:[],...N?[ju(a)]:[],...r?[Du(a),Eu(a)]:[]],[a,R,k,x,N,S,z,r]),L={...Ru(a,{contentTypes:l,orientation:s,showOutline:p,cutLine:d,showDivLine:y,showTopInfo:C,showBottomInfo:v}),...x>0?{[a(N?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${B}\uAC1C`}:{},...S?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Lu[f]}:{}},O=o.useCallback((Z,ee)=>{Pu(a,Z,ee,{setContentTypes:u,setOrientation:i,setShowOutline:m,setCutLine:c,setShowDivLine:w,setShowTopInfo:g,setShowBottomInfo:b})||(ee===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||ee===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?_(Mu(parseInt(Z),x)):ee===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&A($u(Z)))},[a,x]);return{settings:{orientation:s,contentTypes:l,cutLine:d,showOutline:p,showDivLine:y,count:z,showTopInfo:C,showBottomInfo:v},filterSections:j,filterSelected:L,handleSelect:O,pages:E,isPaginated:S,pageNumberPosition:f}}function r5({items:e,words:n,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:u,footerClassName:d,footerLayout:c,printFileName:p,showSettings:m,autoPrint:C,className:g,onClose:v,scoring:b=!1,onScoreChange:y,printHeader:w,brand:h,code:_,beforeClose:f}){const{t:A}=ye.useTranslation(),x=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(le=>typeof le=="string"&&le.length>0).map((le,be)=>({id:`${le}-${be}`,words:[{label:le}]})),[e,n]),{settings:N,filterSections:k,filterSelected:B,handleSelect:E,pages:S,isPaginated:z,pageNumberPosition:R}=Fu(x,{paperBands:!!h?.show}),q=o.useMemo(()=>hu(S.map(le=>le.length)),[S]),[j,L]=o.useState({}),O=o.useCallback((le,be)=>{L(V=>({...V,[or(le)]:du(V[or(le)]??null,be)}))},[]),Z=o.useRef(y);o.useEffect(()=>{Z.current=y});const ee=o.useRef(j);o.useEffect(()=>{ee.current!==j&&(ee.current=j,Z.current?.(ko(j)))},[j]);const W=o.useMemo(()=>ko(j),[j]),U=o.useRef(null),{toastMessage:P,toastKey:F,showWarning:D,clearToast:H}=ul("warning"),M=o.useRef([]),I=o.useCallback(()=>z?M.current.filter(le=>le!==null):U.current?[U.current]:[],[z]),{print:$,openNewWindow:K}=jo({getElements:I,paperW:ia[N.orientation].width,paperH:ia[N.orientation].height,fileName:p??"",header:w??"",onPopupBlocked:()=>D(A("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."))}),ne=o.useMemo(()=>u?void 0:l?l({print:$,openNewWindow:K}):p?[{label:A("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>K()},{label:A("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>$()},...i??[]]:i,[u,l,p,i,A,$,K]),X=o.useMemo(()=>u?u({print:$,openNewWindow:K}):void 0,[u,$,K]),ae=o.useRef(!1),ue=o.useRef($);return o.useEffect(()=>{ue.current=$},[$]),o.useEffect(()=>{if(!C||ae.current)return;const le=window.setTimeout(()=>{ae.current=!0,ue.current()},100);return()=>window.clearTimeout(le)},[C]),t.jsxs(Tn,{title:a??A("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:Ne("word-table-popup",g),buttons:ne,footer:X,footerClassName:d,footerLayout:c,beforeClose:f,onClose:v,children:[x.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[m&&t.jsx(Do,{sections:k,selected:B,onSelect:E}),z?t.jsx("div",{className:"word-table-popup__pages",children:S.map((le,be)=>t.jsx(la,{items:le,orientation:N.orientation,contentTypes:N.contentTypes,cutLine:N.cutLine,showOutline:N.showOutline,showDivLine:N.showDivLine,count:N.count,contentRef:V=>{M.current[be]=V},pageNumber:{current:be+1,total:S.length},pageNumberPosition:R,brand:h&&{...h,top:N.showTopInfo,bottom:N.showBottomInfo},code:_,scoring:b,scoreIndexOffset:q[be],marks:W,onMarkClick:O},be))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(la,{items:x,orientation:N.orientation,contentTypes:N.contentTypes,cutLine:N.cutLine,showOutline:N.showOutline,showDivLine:N.showDivLine,count:N.count,contentRef:U,fitHeight:!0,scoring:b,marks:W,onMarkClick:O,brand:h&&{...h,top:N.showTopInfo,bottom:N.showBottomInfo},code:_})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:s??A("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(ra,{message:P,position:"top",onClose:H},F)]})}const o5=new Set(["x","triangle"]);function s5(e,n){const a=[];for(let r=0;r<e.length;r++){const s=n[String(r)];s&&o5.has(s)&&a.push(e[r])}return a}const i5=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Ou(e){const n=e.name.trim(),a=e.reviewRound;if(typeof a=="number"&&Number.isFinite(a)&&a>=0){const i=Math.floor(a);if(i===0)return{\uBC14\uD0D5:n,\uD68C\uCC28:1};const l=(i===1?/\s*복습\s*\d{2}\.\d{2}$/:new RegExp(`(?:^|\\s)${i}\uCC28\\s*\uBCF5\uC2B5\\s*\\d{2}\\.\\d{2}$`)).exec(n);return{\uBC14\uD0D5:l?n.slice(0,l.index).trim():n,\uD68C\uCC28:i+1}}let r=n,s=1;for(;;){const i=i5.exec(r);if(!i)break;s=Math.max(s,(i[1]?Number(i[1]):1)+1),r=r.slice(0,i.index).trim()}return{\uBC14\uD0D5:r,\uD68C\uCC28:s}}function l5(e,n){const[,a,r]=Hr(n).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Ou(typeof e=="string"?{name:e}:e),u=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${s}`}function u5(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Ou(e).\uD68C\uCC28}}function c5(e,n){const a={};for(const[r,s]of Object.entries(n)){if(s!=="o"&&s!=="triangle"&&s!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function d5(e){return e.map(n=>n.label).join(" / ")}function p5(e){return e.map(n=>n.homonum!=null?`${n.label}#${n.homonum}`:n.label).join(" / ")}function Hu(e){return e.split(" / ").map(n=>n.replace(/#\d+$/,"")).join(" / ")}function m5(e,n,a){const r=di(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}function zu(e,n,a){return a===0?0:(e+n*.5)/a}function h5(e){const n=new Map,a=[...e].sort((s,i)=>s.scoredAt.localeCompare(i.scoredAt));for(const s of a)for(const[i,l]of Object.entries(s.marks)){const u=s.labels?.[i];if(!u)continue;const d=n.get(u)??{o:0,triangle:0,x:0,latest:l,latestAt:s.scoredAt};if(l==="o")d.o++;else if(l==="triangle")d.triangle++;else if(l==="x")d.x++;else continue;d.latest=l,d.latestAt=s.scoredAt,n.set(u,d)}const r=[];for(const[s,i]of n){const l=i.o+i.triangle+i.x;r.push({label:Hu(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:zu(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((s,i)=>s.rate-i.rate||i.tried-s.tried||aa(s.label,i.label)||aa(s.key??s.label,i.key??i.label)),r}function C5(e){const n=new Map;for(const r of e){const s=r.tableId??`name:${r.tableName}`,i=n.get(s)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),n.set(s,i)}const a=[];for(const r of n.values()){const s=u=>Object.values(u.marks).filter(d=>d==="o"||d==="triangle"||d==="x").length,i=r.rows.filter(u=>s(u)>0).sort((u,d)=>u.scoredAt.localeCompare(d.scoredAt));if(i.length===0)continue;const l=i.map(u=>{const d=Object.values(u.marks),c=d.filter(m=>m==="o").length,p=d.filter(m=>m==="triangle").length;return zu(c,p,s(u))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:i.map(u=>u.scoredAt),delta:l.length>=2?l[l.length-1]-l[0]:null})}return a.sort((r,s)=>(s.times[s.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function f5(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function g5(e,n){if(e==null||n==null||e===""||n==="")return 0;if(typeof e=="number"&&typeof n=="number")return e-n;const a=String(e),r=String(n);return+(a>r)-+(a<r)}function b5(e){const n=new Map;let a=0,r=0;const s=e.map((l,u)=>({r:l,\uC790\uB9AC:u})).sort((l,u)=>l.r.answeredAt.localeCompare(u.r.answeredAt)||g5(l.r.id,u.r.id)||l.\uC790\uB9AC-u.\uC790\uB9AC).map(l=>l.r);for(const l of s){if(l.isCorrect==null)continue;const u=l.itemTitle?.trim();if(!u){r++;continue}a++;const d=l.itemId?.trim()||u,c=`${l.trainingType}|${d}`,p=n.get(c)??{trainingType:l.trainingType,itemId:d,title:u,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(p.tried++,l.isCorrect||p.wrong++,p.title=u,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(c,p)}const i=[...n.entries()].map(([l,u])=>({key:l,trainingType:u.trainingType,itemId:u.itemId,title:u.title,tried:u.tried,wrong:u.wrong,rate:u.tried===0?0:(u.tried-u.wrong)/u.tried,latestCorrect:u.latestCorrect,latestAt:u.latestAt,lastSelected:u.lastSelected,setIds:u.setIds}));return i.sort((l,u)=>l.rate-u.rate||u.tried-l.tried||aa(l.title,u.title)),{items:i,counted:a,skippedNoTitle:r}}function y5(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function v5(e){const n=new Map;for(const r of e){const s=n.get(r.trainingType)??[];s.push(r),n.set(r.trainingType,s)}const a=[...n.entries()].map(([r,s])=>({trainingType:r,items:s,pending:s.filter(i=>!i.latestCorrect).length}));return a.sort((r,s)=>s.pending-r.pending||r.trainingType.localeCompare(s.trainingType)),a}const To=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function x5(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 u=`${i.trainingType}|${l}`,d=n.get(u)??{setId:l,trainingType:i.trainingType,pending:0};d.pending++,n.set(u,d)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),s=[...n.values()];return{sentence:s.filter(i=>To.includes(i.trainingType)).sort(r),word:s.filter(i=>!To.includes(i.trainingType)).sort(r),noSet:a}}function _5(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const s=[];for(const i of e){const l=new Set,u=[];for(const d of i.cellLabels)r.has(d)&&!l.has(d)&&(l.add(d),u.push(d));u.length!==0&&s.push({id:i.id,name:i.name,kind:i.kind,covered:u,totalCells:i.cellLabels.length})}return s.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||aa(i.name,l.name)),s.slice(0,Math.max(0,a))}function w5(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function A5(e,n){const a=new Map;for(const s of e)for(const i of s.cells){const l=s.labelOf(i);a.has(l)||a.set(l,i)}const r=[];for(const s of n){const i=a.get(s);i!==void 0&&r.push(i)}return r}function Mo(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function B5(e,n){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),s=a%60;return n?n(r,s):r>0&&s>0?Mo(St.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?Mo(St.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):Mo(St.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function k5(e,n){const a=[],r=new Set;for(const s of e){const i=n(s);r.has(i)||(r.add(i),a.push({key:i,value:s,pinned:!1}))}return a}function N5(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function D5(e,n){return e.filter(a=>a.key!==n)}function E5(e,n,a){const r=e.filter(c=>c.pinned),s=new Set(r.map(c=>c.key)),i=e.length-r.length,l=[],u=new Set(s);for(const c of n){if(l.length>=i)break;const p=a(c);u.has(p)||(u.add(p),l.push({key:p,value:c,pinned:!1}))}const d=[...l];return e.map(c=>c.pinned?c:d.shift()).filter(c=>c!==void 0)}function S5(e){return e.map(n=>n.value)}function j5(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},s=n?.key?` icon-grid-menu__button--${n.key}`:"",i=o.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,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(Ze,{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 T5(e){const{categories:n=[],selected:a,onSelect:r,size:s="medium"}=e||{},i=a!==void 0,[l,u]=o.useState(()=>i?null:(n&&n[0]?.key)??null),d=i?a:l,c=o.useRef(r);o.useEffect(()=>{c.current=r});const p=o.useRef(!1),m=(n&&n[0]?.key)??null;o.useEffect(()=>{if(i||p.current||!m)return;p.current=!0;const g=l??m;l==null&&u(g),c.current?.(g)},[i,m]);const C=o.useCallback(g=>{const v=d===g?null:g;p.current=!0,i||u(v),r?.(v)},[d,i,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(n||[]).map(g=>t.jsx(j5,{category:g,isSelected:d===g.key,onClick:()=>C(g.key)},g.key))})}function M5({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const s=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(pe,{htmlType:"button",size:s,type:"bar",label:i.label,selected:n===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function L5({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:i}=ye.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
1046
1046
  \uC2E0\uB8B0\uB97C \uC313\uACE0
1047
1047
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
1048
- `).map((l,u,d)=>t.jsxs(o.Fragment,{children:[l,u<d.length-1&&t.jsx("br",{})]},u))})}),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:io,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 ",s]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function $5({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:u,menuLabel:d}){const{t:c}=ye.useTranslation(),p=d??{open:c("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:c("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,C]=o.useState(!1),g=o.useId(),v=o.useRef(null);o.useEffect(()=>{if(!m)return;const w=zn(()=>{const f=document.getElementById(g);f&&f.contains(document.activeElement)&&v.current?.focus(),C(!1)}),h=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,_=f=>{f.matches&&C(!1)};return h&&(h.matches&&C(!1),h.addEventListener?.("change",_)),()=>{w(),h?.removeEventListener?.("change",_)}},[m,g]);const b=l?`${l} landing-header__inner`:"landing-header__inner",y=(w,h)=>u?u(w,{onClick:h}):t.jsx("a",{href:w.href,onClick:h,"aria-current":w.current?"page":void 0,children:w.label});return t.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[t.jsxs("div",{className:b,children:[e!=null&&(()=>{const w=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:w}):t.jsx("div",{className:"landing-header__brand",children:w})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map((w,h)=>t.jsx("span",{children:y(w)},`${h}:${w.href}`))}),t.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&t.jsx("button",{ref:v,type:"button",onClick:()=>C(w=>!w),"aria-expanded":m,"aria-controls":g,"aria-label":m?p.close:p.open,className:m?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:t.jsxs("span",{className:"landing-header__burger",children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})})]})]}),r.length>0&&t.jsx("nav",{id:g,hidden:!m,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map((w,h)=>t.jsx("span",{className:"landing-header__drawer-item",children:y(w,()=>C(!1))},`${h}:${w.href}`))})})]})}function R5({children:e,action:n,onClick:a,className:r}){const s=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:s,onClick:a,...lu(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const ca=9,P5=e=>Math.round(Math.min(ca,Math.max(0,e))/ca*100),I5=e=>e/100*ca,$a=2,Vu=.1,F5=e=>Math.min($a,Math.max(0,e)),O5=.1,H5=e=>Math.round(e*1e6)/1e6;function Ra(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return F5(n);const a=Math.min(ca,Math.max(0,Number(e.level)||0))/ca,r=Number(e.mainVolume);return r>0?a>0?H5(Math.min($a,Math.max(O5,a/r))):0:1}const Wu=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function qu(e){return Wu(e)}function Lo(e){return Wu(e)*Ra(e)}function $o(e,n=Ks()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,Lo(e)/a)}function Pa(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=Ra({level:a.level,mainVolume:a.mainVolume})),a}const Ia={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Ro=o.createContext(null);function lr(){return o.useContext(Ro)}const Po=e=>`${eC()}/${e}`,Uu=e=>Array.from({length:10},(n,a)=>Po(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),ur={get defaultNoise(){return Po("noise1.mp3")},get street(){return Uu("noise2")},get restaurant(){return Uu("noise3")},get buzz(){return Po("noise4.mp3")}};function z5(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return ur.defaultNoise;case"street":return ur.street[n];case"restaurant":return ur.restaurant[n];case"buzz":return ur.buzz;default:return null}}function V5({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=o.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const s=o.useRef(null),[i,l]=o.useState(null),u=o.useRef(null),d=o.useRef(null),c=o.useRef(null),p=o.useRef(null),m=o.useRef(0),C=o.useRef(null),g=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),C.current!==null&&(clearTimeout(C.current),C.current=null)},[]),v=o.useCallback((_,f=250)=>{const A=s.current;if(!A)return;const x=d.current;if(x){d.current=null;try{A.pause()}catch{}A.src=x,A.load()}if(!A.src)return;m.current+=1,g();try{Lr(),Ha(A).then(E=>{if(s.current===A)try{r.current?.("noise",E)}catch{}})}catch{}const N=A.paused?0:za(A);A.paused&&Sn(A,0),A.play().catch(()=>{});const k=performance.now(),B=()=>{const E=Math.min(1,(performance.now()-k)/f);try{Sn(A,N+(_-N)*E)}catch{}E<1?p.current=requestAnimationFrame(B):p.current=null};p.current=requestAnimationFrame(B)},[g]),b=o.useCallback((_=250,f)=>{const A=s.current;if(!A||A.paused){f?.();return}const x=++m.current;g();const N=performance.now(),k=za(A),B=()=>{const E=Math.min(1,(performance.now()-N)/_);try{Sn(A,k*(1-E))}catch{}if(E<1)p.current=requestAnimationFrame(B);else{p.current=null,C.current!==null&&(clearTimeout(C.current),C.current=null);try{A.pause()}catch{}f?.()}};p.current=requestAnimationFrame(B),C.current=setTimeout(()=>{if(C.current=null,m.current===x){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{A.paused||(Sn(A,0),A.pause(),f?.())}catch{}}},_+150)},[g]);o.useEffect(()=>{const _=document.createElement("audio");return _.loop=!0,_.crossOrigin="anonymous",s.current=_,()=>{g();try{_.pause(),_.src=""}catch{}s.current=null,u.current=null,d.current=null}},[g]);const y=e?$o(e.settings):0,w=!!e?.settings.enabled&&y>0;o.useEffect(()=>{if(!w)return;let _=0;const f=setInterval(()=>{const A=s.current;if(!A||A.paused){_=0;return}const x=n.current;if(x&&!x.paused&&!x.ended||a.current==="playing"){_=0;return}_+=1,_>=2&&(_=0,b())},400);return()=>clearInterval(f)},[b,w,n,a]),o.useEffect(()=>{const _=()=>{const f=s.current;if(document.hidden){if(f&&!f.paused){g();try{f.pause()}catch{}}return}if(!f||!f.paused)return;const A=n.current,x=!!A&&!A.paused&&!A.ended||a.current==="playing",N=c.current;x&&N?.enabled&&N.volume>0&&v(N.volume)};return document.addEventListener("visibilitychange",_),()=>document.removeEventListener("visibilitychange",_)},[g,v,n,a]),o.useEffect(()=>{c.current=e?{enabled:e.settings.enabled,volume:y,type:e.settings.type}:null},[e,e?.settings.enabled,y,e?.settings.type]);const h=o.useRef(null);return o.useEffect(()=>()=>{h.current?.(),h.current=null},[]),o.useEffect(()=>{const _=e?.settings,f=s.current;if(!f)return;const A=_?$o(_):0;if(!_||!_.enabled||A===0){b();return}if(u.current!==_.type){const x=z5(_.type);x&&(u.current=_.type,l(x),d.current=x,b(150,()=>{if(d.current!==x)return;d.current=null,f.src=x,f.load();const N=n.current;if(N&&!N.paused){h.current?.();const k=()=>{f.removeEventListener("canplay",k),h.current===B&&(h.current=null);const E=n.current,S=c.current;E&&!E.paused&&!E.ended&&S?.enabled&&S.volume>0&&v(S.volume)},B=()=>f.removeEventListener("canplay",k);h.current=B,f.addEventListener("canplay",k)}}))}else{const x=n.current,N=!!x&&!x.paused&&!x.ended||a.current==="playing";if(N&&d.current)v(A);else if(N&&f.paused&&f.src)v(A);else if(!f.paused)if(!N)b();else{g();const k=za(f),B=performance.now(),E=()=>{const S=Math.min(1,(performance.now()-B)/150);try{Sn(f,k+(A-k)*S)}catch{}S<1?p.current=requestAnimationFrame(E):p.current=null};p.current=requestAnimationFrame(E)}}},[e?.settings,e?.settings.enabled,y,e?.settings.type,g,v,b,n,a,c]),o.useEffect(()=>{const _=s.current;if(_)try{_.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:s,activeNoiseUrl:i,noiseSettingsRef:c,cancelNoiseFade:g,fadeInNoise:v,fadeOutNoise:b}}function W5({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:u,fadeInNoise:d,fadeOutNoise:c,noiseSettingsRef:p,onDoneRef:m,handleEndRef:C}){const g=o.useRef(null),v=o.useRef(0),b=o.useRef(null),y=o.useRef(0),w=o.useRef(!1);o.useEffect(()=>()=>{y.current++;try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),w.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}w.current=!1}}catch{}},[]);const h=(A,x=1)=>{try{const N=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(N*300/Math.max(.25,x)))}catch{return 1200}},_=o.useCallback(A=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!1)}catch{}return}const x=window.speechSynthesis,N=++y.current;try{try{x.cancel()}catch{}const k=A??e,B=Array.isArray(k)?k.filter(j=>!!j):[k||""];B.length===0&&B.push("");const E=Math.max(.3,Math.min(3,n));v.current=B.reduce((j,L)=>j+h(L,E||1),0),g.current=performance.now(),i(0),l("playing"),u("playMode");const S=p.current;S?.enabled&&(S?.volume??0)>0&&d(S.volume);const z=()=>{try{const j=g.current||performance.now(),L=performance.now()-j,O=v.current||1200,Z=Math.min(1,L/O);try{r.current&&(r.current.style.left=`${Z*100}%`),s.current&&s.current.style.setProperty("--progress",String(Z))}catch{}Z<1&&(b.current=requestAnimationFrame(z))}catch{}},R=()=>{if(N===y.current)try{b.current&&(cancelAnimationFrame(b.current),b.current=null),i(1),l("stopped");try{C.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},q=j=>{const L=new SpeechSynthesisUtterance(B[j]);try{L.rate=E}catch{}try{L.volume=Math.max(0,Math.min(1,a))}catch{}L.onend=()=>{if(N===y.current){if(j<B.length-1){try{q(j+1)}catch{R()}return}R()}},L.onerror=()=>{R()},L.onstart=()=>{if(!(j>0))try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(z)}catch{}},w.current=!0,x.speak(L)};try{q(0)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,n,a,d,r,s,i,l,u,p,m,C]),f=o.useCallback(()=>{y.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),c(),g.current=null}catch{}l("stopped"),u("active"),i(0)},[c,l,u,i]);return{startTTS:_,stopTTS:f}}async function q5(e,n,a){let r=null;try{const s=window.AudioContext||window.webkitAudioContext;r=new s;const i=await r.decodeAudioData(e.slice(0)),l=i.numberOfChannels>0?i.getChannelData(0):null;if(!l)return null;const u=a&&a>0?Math.min(l.length,Math.floor(a*i.sampleRate)):l.length,d=Math.max(n,u),c=Math.floor(d/n)||1;return new Array(n).fill(0).map((p,m)=>{const C=m*c,g=Math.min(C+c,d);let v=0;for(let b=C;b<g;b++){const y=Math.abs(l[b]);y>v&&(v=y)}return v})}catch{return null}finally{try{r?.close?.()}catch{}}}async function Gu(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const s=await r.arrayBuffer();return await q5(s,n,a)}catch(r){try{const s=ri(r)}catch{}return null}}const Ku=45,U5=74,G5=2;function Fa(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function Io(e){return Fa(e)/45}const Yu=4;function K5(e){const{src:n,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:u=1,totalDuration:d=0,mainVolume:c=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,C=o.useRef(null),g=o.useRef(null),[v,b]=o.useState(null),[y,w]=o.useState(!1),[h,_]=o.useState(null),[f,A]=o.useState(2),[x,N]=o.useState(0),[k,B]=o.useState(null),[E,S]=o.useState(!1),[z,R]=o.useState(!1),q=3,j=3,L=1,O=300,Z=o.useRef(0),te=o.useCallback(()=>{const be=C.current,V=g&&g.current?g.current:be?be.closest(".audio-player__wave"):null,ee=V?V.getBoundingClientRect():be?be.getBoundingClientRect():null,oe=ee?ee.width:0,Be=ee?Math.max(100,ee.width):320,Ce=ee?ee.height:0,se=Math.max(L,Math.min(O,Math.floor((Be+j)/(q+j)))),ge=se*q,fe=Math.max(0,se-1),xe=Math.max(0,fe>0?(Be-ge)/fe:j);return{bars:se,gap:xe,height:Ce,width:oe}},[]),W=o.useRef(void 0),U=o.useRef(null),P=o.useCallback(async(be,V,{quiet:ee=!1}={})=>{const oe=++Z.current,Be=()=>Z.current===oe;try{if(ee||w(!1),W.current=be,!be){Be()&&b(null);return}let Ce=V;if(!Ce)try{for(let fe=0;fe<4&&!(C.current||g.current);fe++)await new Promise(xe=>requestAnimationFrame(xe));await new Promise(fe=>requestAnimationFrame(fe));const ge=te();ge.height>0&&N(ge.height),Ce=ge.bars,A(ge.gap)}catch{Ce=120}U.current=Ce;const se=await Gu(be,Ce);if(!Be())return;if(!se){b(null),w(!1);return}b(se),_(Ce),w(!0)}catch{if(!Be())return;b(null),w(!1)}},[w,b,N,A,_,te]);o.useEffect(()=>{const be=g.current;if(!be||typeof ResizeObserver>"u")return;let V=null;const ee=new ResizeObserver(()=>{V!==null&&cancelAnimationFrame(V),V=requestAnimationFrame(()=>{V=null;try{const oe=te();if(oe.width<=0||(oe.height>0&&N(oe.height),U.current===null||oe.bars===U.current))return;const Be=W.current;A(oe.gap),Be?P(Be,oe.bars,{quiet:!0}).catch(()=>{}):U.current=oe.bars}catch{}})});return ee.observe(be),()=>{ee.disconnect(),V!==null&&cancelAnimationFrame(V)}},[te,P]),o.useEffect(()=>{const be=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;P(typeof be=="string"?be:void 0).catch(()=>{}),R(!1)},[n,a,P]),o.useEffect(()=>{let be=!1;if(S(!1),!i||!h){B(null);return}const V=d>0?d*(u||1):void 0;return Gu(i,h,V).then(ee=>{be||(B(ee),ee||S(!0))}).catch(()=>{be||(B(null),S(!0))}),()=>{be=!0}},[i,h,d,u]);const F=Math.max(0,Math.min(1,c)),D=o.useMemo(()=>v&&v.length&&Math.max(...v)||1,[v]),H=h||40,M=o.useMemo(()=>Array.from({length:H}).map((be,V)=>{const ee=v&&v[V]!=null?v[V]:null,oe=ee==null?null:Math.min(1,ee/D*F),Be=oe!=null&&x>0&&Fa(oe)<=Yu,Ce=oe==null?.15:Be?0:Io(oe),se=H>1?V/(H-1):0;return t.jsx("div",{className:Be?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":Ce,"--i":V,"--mix":se}},V)}),[H,v,D,F,x]),I={"--progress":String(Math.max(0,Math.min(1,r)))},$=i?Math.max(1,l):1,K={"--bar-gap":`${f}px`,"--wave-h":`${Fa($)}px`,"--wave-h1":`${Ku}px`},ne=F*Math.max(0,l)/Ks(),X=y&&(i?!!k||E:!0);o.useEffect(()=>{X&&R(!0)},[X]);const ae=z?y:X;o.useEffect(()=>{p?.(ae)},[ae,p]);const ue=h||40,le=o.useMemo(()=>Array.from({length:ue}).map((be,V)=>{const ee=k&&k[V]!=null?k[V]:null,oe=ee==null?0:ee/D*ne,Be=x>0&&Fa(oe)<=Yu,Ce=Be?0:Io(oe),se=ue>1?V/(ue-1):0;return t.jsx("div",{className:Be?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":Ce,"--i":V,"--mix":se}},V)}),[ue,k,D,ne,x]);return t.jsxs("div",{className:"audio-player__wave",ref:g,style:K,children:[i&&t.jsx("div",{className:`audio-player__wave-noise ${X?"is-ready":""}`,"aria-hidden":"true",children:le}),m&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ae?"is-ready":""}`,ref:C,children:M}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ae?"is-ready":""}`,ref:s,style:I,children:M})]})]})}const Y5={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 Fo(e,n){return new Promise((a,r)=>{const s=document.createElement("audio");let i=!1;const l=()=>{try{s.src=""}catch{}},u=()=>{if(i)return;i=!0;const c=isFinite(s.duration)&&s.duration||0;l(),a(c)},d=c=>{i||(i=!0,l(),n.rejectOnError?r(new Error(c)):a(0))};s.addEventListener("loadedmetadata",u),s.addEventListener("error",()=>d("audio load failed")),setTimeout(()=>d("audio load timeout"),n.timeoutMs),s.src=e})}const Z5=2e3;function Zu(e,n=Z5){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.addEventListener("canplay",s,{once:!0}),e.addEventListener("error",s,{once:!0}),setTimeout(s,n)})}function X5({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(d=>{if(r.current=d,!d||!s.current.length)return;const c=s.current;s.current=[];for(const p of c)p(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),u=o.useCallback(()=>!e&&!n||r.current?Promise.resolve(!0):new Promise(d=>{const c=m=>{clearTimeout(p),s.current=s.current.filter(C=>C!==c),d(m)},p=setTimeout(()=>c(!0),a);s.current.push(c)}),[e,n,a]);return o.useEffect(()=>()=>{const d=s.current;s.current=[];for(const c of d)c(!1)},[]),{onReadyChange:i,waitForReady:u,markNotReady:l}}function J5(){const e=o.useRef([]),n=o.useCallback(s=>(e.current.push(s),s),[]),a=o.useCallback(s=>{const i=new Set([...s].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const s of e.current)try{URL.revokeObjectURL(s)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function Q5({offsetY:e=8}={}){const n=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),i=o.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 o.useEffect(()=>{if(a)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[a,s]),{ref:n,rect:a,show:i,hide:s}}function e3({currentTime:e,sources:n,index:a,audioDuration:r}){const s=a||0,i=Array.isArray(n)&&n.length>0?n[s]:void 0,l=i?i.duration||r||0:r||0;if(!(l>0))return 0;const u=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,u/l))}function t3(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function n3({ended:e,completedByEnd:n}){return!!e||!!n}function a3(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function r3(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function o3(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],s=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;s.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){s.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),u=a(l,n);u&&s.push({code:l,resolvedPath:u})}}return s}function s3(e){if(!e)return 0;const n=e.duration;if(Number.isFinite(n)&&n>0)return n;if(n===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}function i3({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:s}){const i=o.useRef(null),l=o.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),u=o.useCallback(()=>{if(i.current!==null)return;const c=()=>{try{const p=e.current,m=Array.isArray(r.current)?r.current[s.current||0]:void 0,C=m&&Number.isFinite(m.duration)&&(m.duration??0)>0?0:s3(p),g=n.current;if(C===null)try{g&&g.style.visibility!=="hidden"&&(g.style.visibility="hidden")}catch{}else{const v=e3({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:s.current,audioDuration:C});try{g&&(g.style.visibility&&(g.style.visibility=""),g.style.left=`${v*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(v))}catch{}}}catch{}i.current=requestAnimationFrame(c)};i.current=requestAnimationFrame(c)},[e,n,a,r,s]),d=o.useCallback(c=>{l();try{n.current&&(n.current.style.visibility="",n.current.style.left=`${c*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(c))}catch{}},[l,n,a]);return o.useEffect(()=>l,[l]),{start:u,stop:l,settleTo:d}}function Oo({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:u=!0,showNoiseWaveForm:d=!0}){const{t:c}=ye.useTranslation(),p=e,m=lr(),C=o.useRef(m?.registerAnalyser);o.useEffect(()=>{C.current=m?.registerAnalyser});const g=o.useRef(null),v=o.useRef(null),b=o.useRef(null),y=J5(),w=o.useRef(null),h=o.useRef(!1),_=o.useRef(0),f=o.useRef(null),{ref:A,rect:x,show:N,hide:k}=Q5();o.useEffect(()=>()=>{C.current?.("main",null),C.current?.("noise",null)},[]);const[B,E]=o.useState(!1),[S,z]=o.useState("idle"),[R,q]=o.useState("stopped"),j=o.useRef("stopped");o.useEffect(()=>{j.current=R},[R]);const[L,O]=o.useState(0),[Z,te]=o.useState("active"),W=o.useRef(!1);o.useEffect(()=>{if(Z!=="playMode"||!W.current)return;W.current=!1;const G=typeof document<"u"?document.activeElement:null;if(G&&G!==document.body)return;const ie=b.current?.querySelectorAll("button")[1];try{ie?.focus()}catch{}},[Z]);const[U,P]=o.useState(null),[F,D]=o.useState(null),[H,M]=o.useState(0),[I,$]=o.useState(!1),[K,ne]=o.useState(0),X=m?.playbackRate??1,ae=m?.mainVolume??1,ue=m?Lo(m.settings):0,le=m?qu(m.settings):ae,[be,V]=o.useState("idle"),[ee,oe]=o.useState(""),[Be]=o.useState("top"),Ce=o.useRef(null),se=o.useRef(0),ge=o.useRef(null),{start:fe,stop:xe,settleTo:$e}=i3({audioRef:g,fillRef:v,waveProgressRef:ge,sourcesRef:Ce,currentIndexRef:se}),{onReadyChange:Le,waitForReady:Qe,markNotReady:Ue}=X5({showSoundWaveForm:u,showNoiseWaveForm:d}),ze=o.useRef(null),Ie=o.useRef(s),st=o.useRef(r),Xe=o.useRef(null),Je=o.useRef(!1),[Ee,ke]=o.useState(!1),Me=o.useCallback(G=>{Je.current=G,ke(G)},[]),Ve=o.useRef(null),{activeNoiseUrl:lt,noiseSettingsRef:Q,fadeInNoise:ce,fadeOutNoise:me}=V5({noisePlayer:m,audioRef:g,playbackStateRef:j}),{startTTS:Se,stopTTS:et}=W5({ttsText:i,playbackRate:X,mainVolume:le,fillRef:v,waveProgressRef:ge,setProgress:O,setPlaybackState:q,setStateLocal:te,fadeInNoise:ce,fadeOutNoise:me,noiseSettingsRef:Q,onDoneRef:st,handleEndRef:Ve});o.useEffect(()=>{We.current=et});const Ke=G=>{if(typeof window>"u"||!window.speechSynthesis){try{oe(c("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Se(G);return}Nt("tts"),Se(G)},bt=Array.isArray(n)?n.filter(Boolean):n?[n]:[],ut=(!bt||bt.length===0)&&!!i,it=Array.isArray(U)&&U.length>0?U:Array.isArray(F)&&F.length>0?F:null,tt=Math.max(Array.isArray(it)?it.length:0,bt.length),Ge=o.useRef(!0);o.useEffect(()=>(Ge.current=!0,()=>{Ge.current=!1}),[]);const Ye=o.useRef(0),Re=()=>{Ye.current+=1,_.current+=1},We=o.useRef(null),Fe=o.useRef(null),ct=o.useRef(null),Bt=o.useRef(null);Bt.current||(Bt.current=()=>{ct.current=null;const G=g.current;if(Fe.current==="audio"&&G&&!G.paused){Ye.current+=1,_.current+=1;try{G.pause()}catch{}Ge.current&&q("paused")}else if(Fe.current==="tts")try{We.current?.()}catch{}});const Nt=G=>{Fe.current=G,ct.current=Ja(Bt.current)},Ct=()=>{ct.current?.(),ct.current=null};o.useEffect(()=>()=>{Bt.current&&Qa(Bt.current)},[]);const dt=o.useCallback(async(G,ie=3,de=50)=>{const _e=Ye.current;for(let we=0;we<ie;we++){if(!Ge.current||_e!==Ye.current)return!1;try{return Nt("audio"),await G.play(),!0}catch(je){if((je instanceof Error||typeof je=="object"&&je&&"name"in je?je.name:void 0)==="AbortError"){if(_e!==Ye.current)return!1;await new Promise(rt=>setTimeout(rt,de));continue}try{oe(c("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{oe(c("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[c]),Oe=o.useCallback(()=>{const G=g.current;if(!G)return;const ie=()=>{q("playing"),te("playMode"),$(!0),fe();try{Lr(),Ha(G).then(je=>{if(Ge.current)try{C.current?.("main",je)}catch{}})}catch{}const we=Q.current;we?.enabled&&(we?.volume??0)>0&&ce(we.volume)},de=()=>{n3({ended:!!G?.ended,completedByEnd:Je.current})||(q("paused"),xe(),me())},_e=()=>{try{const we=Ce.current,je=t3(we,se.current);if(je!==null){se.current=je,M(je),$(!0);const rt=we?.[je]&&we[je].src;if(rt&&G){G.src=rt,G.load(),dt(G).catch(()=>{});return}}}catch{}q("stopped"),O(1);try{if(G)try{G.currentTime=0}catch{}}catch{}xe(),$(!1),me();try{!Ie.current&&Ve.current&&Ve.current()}catch{}};return G.addEventListener("play",ie),G.addEventListener("pause",de),G.addEventListener("ended",_e),()=>{try{G.removeEventListener("play",ie),G.removeEventListener("pause",de),G.removeEventListener("ended",_e),xe()}catch{}}},[ce,me,dt,Q,fe,xe]);o.useEffect(()=>Oe(),[Oe]),o.useEffect(()=>{Ie.current=s},[s]),o.useEffect(()=>{st.current=r},[r]),o.useEffect(()=>{if(s||Z!=="active")return;const G=f.current;if(!G)return;let ie=null;const de=requestAnimationFrame(()=>{try{const _e=G.getTotalLength();if(!_e)return;const we=_e*.2;G.style.strokeDasharray=`${_e-we} ${we}`;const je="triFlow_"+Math.random().toString(36).slice(2);ie=document.createElement("style"),ie.textContent=`@keyframes ${je}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${_e}}}`,document.head.appendChild(ie),G.style.animation=`${je} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(de),ie?.remove()}},[Z,s]),o.useEffect(()=>{Ce.current=U},[U]),o.useEffect(()=>{se.current=H},[H]),o.useEffect(()=>{const G=b.current,ie=w.current;if(!G||!ie)return;let de=null;const _e=32,we=60,je=()=>{try{const yt=Array.from(G.querySelectorAll(":scope > .button"));let pt=0;yt.forEach(Ne=>{if(Ne===ie)return;const He=Ne.getBoundingClientRect();pt+=He.width});const _t=G.getBoundingClientRect().width,Rt=Math.max(0,Math.floor(_t-pt-8)),Lt=tt;if(!Lt||Rt<=0){Array.from(ie.children).forEach(Ne=>{try{Ne.style.width=""}catch{}});return}let nn=Math.floor(Rt/Lt);nn>we&&(nn=we),nn<_e&&(nn=Math.max(_e,Math.floor(Rt/Lt))),Array.from(ie.querySelectorAll(".button")).forEach(Ne=>{try{Ne.style.width=`${nn}px`}catch{}})}catch{}},rt=requestAnimationFrame(je);try{de=new ResizeObserver(()=>{requestAnimationFrame(je)}),de.observe(G),de.observe(ie),window.addEventListener("resize",je)}catch{}return()=>{try{cancelAnimationFrame(rt)}catch{}try{de&&(de.disconnect(),de=null)}catch{}try{window.removeEventListener("resize",je)}catch{}}},[U,F,tt]),o.useEffect(()=>()=>{try{ze.current&&(clearTimeout(ze.current),ze.current=null),Xe.current&&(clearTimeout(Xe.current),Xe.current=null)}catch{}},[]);const at=(G,ie)=>{P(G),ne(ie),Ue(),D(a3(G)),Ce.current=G},ft=async(G,ie)=>{Me(!1),h.current=!1,G.src=ie,G.load(),await Zu(G),await Qe()!==!1&&(E(!1),await dt(G),te("playMode"),M(0),$(!0))},Ot=async(G,ie=!1)=>{const de=g.current;E(!0),z("measuring_duration");try{const _e=await Fo(G,{timeoutMs:1e4,rejectOnError:!0});at([{src:G,objectUrl:null,duration:_e}],_e),z("ready"),ie&&de&&await ft(de,G)}finally{h.current=!1,E(!1)}},nt=async(G,ie=!1)=>{const de=g.current;E(!0),z("measuring_duration");try{const _e=await Promise.all(G.map(je=>Fo(je,{timeoutMs:1e4})));if(!Ge.current)return;const we=G.map((je,rt)=>({src:je,objectUrl:null,duration:_e[rt]||0}));at(we,r3(we)),z("ready"),ie&&de&&we.length>0&&await ft(de,we[0].src)}finally{h.current=!1,E(!1)}},Tt=async(G=!1,ie=!0)=>{const de=g.current,_e=n?Array.isArray(n)?n:[n]:[];if(!_e||_e.length===0||!_e.some(Boolean))return!1;if(h.current)return null;h.current=!0,ie&&E(!0),z("resolving");try{const we=o3(n,a,qs),je=[];let rt=0;for(const yt of we){let pt=yt.src??null,_t=null;if(!pt&&yt.resolvedPath){try{z("getting_signed_url"),pt=await Us(yt.resolvedPath)}catch{pt=null}if(!Ge.current)return!1;if(!pt)try{z("downloading");const Lt=await Gs(yt.resolvedPath);if(!Ge.current)return!1;if(Lt){const nn=Lt instanceof Blob?Lt:new Blob([Lt]);_t=y.track(URL.createObjectURL(nn)),pt=_t}}catch{z("error");try{oe(c("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),te("active")}catch{}}}if(!pt)continue;let Rt=0;try{z("measuring_duration"),Rt=await Fo(pt,{timeoutMs:3e3})}catch{Rt=0}if(!Ge.current){if(_t)try{URL.revokeObjectURL(_t)}catch{}for(const Lt of je)if(Lt.objectUrl)try{URL.revokeObjectURL(Lt.objectUrl)}catch{}return!1}rt+=Rt||0,je.push({...yt,src:pt,objectUrl:_t,duration:Rt})}if(at(je,rt),je.length>0&&G&&de){const yt=je[0];Me(!1);try{y.keepOnly(je.map(pt=>pt.objectUrl))}catch{}if(z("ready"),h.current=!1,yt.src&&de)try{if(de.src=yt.src,de.load(),await Zu(de),await Qe()===!1)return!1;ie&&E(!1),de&&await dt(de)}catch{ie&&E(!1)}else ie&&E(!1);te("playMode"),M(0),$(!0)}return je.length>0}finally{h.current=!1,ie&&E(!1),z(we=>we==="ready"?"ready":"idle")}},Yt=async()=>{const G=g.current;if(!(!G&&!ut)){if(ut){const ie=window.speechSynthesis;if(Z==="active"){const de=jr(),_e=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(de&&_e.length>0){te("load"),E(!0),z("resolving"),h.current=!0;try{const we=await Promise.all(_e.map(je=>Promise.resolve(de(je))));we.length>1?await nt(we,!0):await Ot(we[0],!0)}catch{h.current=!1,E(!1),te("active"),Ke(_e.length>0?_e:void 0)}return}Ke(_e.length>0?_e:void 0);return}if(Z==="playMode"){const de=!!ie&&(ie.speaking||ie.paused)&&!(G&&(G.currentSrc||G.getAttribute("src")));if(G&&!de){if(G.paused){if(Je.current){await Mt();return}await dt(G),q("playing")}else Re(),G.pause(),q("paused");return}try{if(ie&&ie.paused)try{Nt("tts"),ie.resume(),q("playing")}catch{}else try{ie.pause(),q("paused")}catch{}}catch{}}return}if(Z==="active"){if(s&&Array.isArray(Ce.current)&&Ce.current.length>0){const de=Ce.current[0];try{if(de.src&&G)try{G.src=de.src,G.load(),G&&await dt(G)}catch{}te("playMode"),M(0),$(!0);return}catch{}}te("load");let ie;try{ie=await Tt(!0)}catch{ie=!1}if(ie===!1&&Ge.current){try{oe(c("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}te("active")}return}if(Z!=="load"&&(Z==="playMode"||Z==="active"))try{if(G&&G.paused){if(Je.current){await Mt();return}G&&await dt(G),q("playing")}else G&&(Re(),G.pause(),q("paused"))}catch(ie){(ie instanceof Error||typeof ie=="object"&&ie&&"name"in ie)&&ie.name}}},Mt=async()=>{const G=g.current;if(G)try{const ie=Ce.current;if(Array.isArray(ie)&&ie.length>1){await Nn(0);return}Me(!1);try{G.currentTime=0}catch{}G&&await dt(G),q("playing"),te("playMode")}catch{}},un=()=>{if(Re(),Ct(),ut){et();return}const G=g.current;try{if(G){try{G.pause()}catch{}try{G.currentTime=0}catch{}}}catch{}me(),q("stopped"),te("active"),O(0),$(!1)},cn=async(G,{sameSegment:ie=!1}={})=>{const de=++_.current,_e=g.current,we=Ce.current?.[G]?.src;try{if(Me(!1),M(G),$(!0),se.current=G,!we||!_e||(ie||Ue(),_e.src=we,_e.load(),!ie&&await Qe()===!1)||de!==_.current||(await dt(_e),de!==_.current))return;q("playing"),te("playMode")}catch{}},dn=async()=>{const G=Ce.current,ie=se.current||0;if(!G||ie<=0){await Mt();return}await cn(ie-1)},Rn=async()=>{const G=Ce.current,ie=se.current||0;if(!G||ie>=G.length-1){un();return}await cn(ie+1)},pn=()=>{if(Je.current)return;const G=200,ie=340;Me(!0),Re(),Ct();try{O(1)}catch{}$e(1);try{V("hold")}catch{}try{const de=g.current,_e=ut&&!!de?.src;if(!ut||_e){if(de){de.pause();try{de.currentTime=0}catch{}}}else et();me()}catch{}try{q("stopped")}catch{}if($(!1),!Ie.current)try{Xe.current&&(clearTimeout(Xe.current),Xe.current=null),Xe.current=setTimeout(()=>{try{V("out")}catch{}Xe.current=setTimeout(()=>{try{typeof st.current=="function"&&st.current(!0)}catch{}try{V("idle")}catch{}Xe.current=null},ie)},G)}catch{}};o.useEffect(()=>{Ve.current=pn});const Pn=o.useCallback(()=>oe(""),[]),Nn=async G=>{(Ce.current||[])[G]&&await cn(G,{sameSegment:G===se.current})},Dt=R==="playing",Cn=o.useMemo(()=>{if(!F||F.length<=1)return F;const G=F[H];return G?[G]:F},[F,H]),Ht=s===!0;o.useEffect(()=>{try{const G=g.current;G&&typeof G.playbackRate=="number"&&(G.playbackRate=X||1)}catch{}},[X]);const Zt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const G=g.current;if(!G)return;const ie=Math.max(0,Math.min(1,le)),de=Zt.current,_e=()=>{de.raf!==null&&(cancelAnimationFrame(de.raf),de.raf=null),de.timer!==null&&(clearTimeout(de.timer),de.timer=null)};_e();const we=za(G);if(G.paused||Math.abs(we-ie)<.001||typeof requestAnimationFrame!="function"){try{Sn(G,ie)}catch{}return}const je=performance.now(),rt=()=>{const yt=Math.min(1,(performance.now()-je)/150);try{Sn(G,we+(ie-we)*yt)}catch{}de.raf=yt<1?requestAnimationFrame(rt):null};return de.raf=requestAnimationFrame(rt),de.timer=setTimeout(()=>{_e();try{Sn(G,ie)}catch{}},200),_e},[le]);const fn=be==="hold",en=be==="out",gn=Z==="playMode"&&!B&&!Ee||fn||en,In=R!=="stopped"||fn||en,bn=R==="paused",re=Math.max(0,Math.min(100,(L||0)*100)),ve=De("audio-player__fill",gn?"is-visible":"",In?"is-expanded":"",bn?"is-paused":"",en?"is-out":"");return t.jsxs("div",{className:`audio-player ${Ht?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${Dt?"is-playing":""} ${B?"is-loading":""} ${Z!=="default"?"is-revealed":""}`,children:[B?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:c(`training.audioStatus.${S}`,{defaultValue:Y5[S]})})]}):null,Z==="active"?t.jsx("button",{className:"audio-player__button",type:"button",disabled:Ht,onClick:()=>{W.current=ar(),k(),Yt()},"aria-label":typeof p=="string"?p:c("training.listen","\uB4E3\uAE30"),onMouseEnter:N,onMouseLeave:k,onFocus:N,onBlur:k,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:f,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,x&&t.jsx(vn,{anchorRect:x,text:typeof p=="string"&&p?p:c("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${Z==="playMode"||Dt?"is-visible":""}`,inert:!(Z==="playMode"||Dt)||void 0,children:[t.jsxs("div",{ref:b,className:"audio-player__buttons",children:[t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:dn,ariaLabel:c("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Dt?"pause":"play",onClick:Yt,ariaLabel:c("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":Dt,width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}),t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:un,ariaLabel:c("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),tt>1?t.jsx("div",{ref:w,className:"audio-player__source-buttons",children:Array.from({length:tt}).map((G,ie)=>t.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(ie+1),onClick:()=>{try{Nn(ie)}catch{}},ariaLabel:c("training.sourcePlay",{n:ie+1}),variant:"transparent-white",selected:I&&H===ie,disabled:Z!=="playMode"||!(Array.isArray(U)&&U[ie]),showTooltipInfo:!0},ie))}):null,!Array.isArray(U)||U.length<=1?t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Mt,ariaLabel:c("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}):null,t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Rn,ariaLabel:c("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:Z!=="playMode"}),t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:pn,ariaLabel:c("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:ve,ref:v,style:{left:`${re}%`},"aria-hidden":"true"}),(u||d)&&t.jsx(K5,{segments:Cn,progress:L,totalDuration:K,waveProgressRef:ge,showSoundWaveForm:u,noiseSrc:d&&m?.settings.enabled&&ue>0?lt:null,noiseRatio:m?Ra(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:ae,onReadyChange:Le})]})]}),t.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!u&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Ze,{icon:"triangle-alert",size:14}),c("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(ra,{message:ee,position:Be,onClose:Pn})]})}function cr(e){const{t:n}=ye.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:u=!1}=e||{},[d,c]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",d)}catch{}},[d]);const{increase:p,decrease:m,canIncrease:C,canDecrease:g,fontSize:v,lineHeight:b}=tl({storageKey:"tooltip-fontScale"}),y=o.useCallback(()=>c(A=>A==="dark"?"light":"dark"),[]),w=o.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),h=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${v}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},f=t.jsxs("div",{className:`tooltip-textbox__root ${d==="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:h.map((A,x)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[h.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:x+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},x))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(pe,{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:d==="dark"?"transparent-white":"transparent-gray",disabled:!g}),t.jsx(pe,{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:d==="dark"?"transparent-white":"transparent-gray",disabled:!C}),t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:y,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:w,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:d==="dark"?"transparent-white":"transparent-gray"})]})]});return s?t.jsx(on,{anchorRect:s,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:u,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:f}):t.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:f})}function Xu({state:e="disabled"}){const{t:n}=ye.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Ze,{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 Ju(e,n,a){const r=o.useRef(n),s=o.useRef(a);o.useEffect(()=>{r.current=n,s.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let i=null,l=10;const u=()=>{i=null;const d=r.current(),c=d?Array.from(d.querySelectorAll(mn)).find(p=>!p.closest('[aria-hidden="true"]')):void 0;if(c){try{c.focus()}catch{}if(document.activeElement===c)return}--l>0&&(i=requestAnimationFrame(u))};return i=requestAnimationFrame(u),()=>{i!==null&&cancelAnimationFrame(i);const d=document.activeElement;if(!d||d===document.body||!document.contains(d)||d.closest(".tooltip-content")){const c=s.current();if(c)try{c.focus()}catch{}}}},[e])}function Qu({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:u,usePlayAllBtn:d=!1,onPlayAll:c,playAllActive:p=!1}){const{t:m}=ye.useTranslation(),C=tn("(max-width: 767px)"),g=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),v=`training-step__title-row training-step__title-row--${r}`.trim(),b=o.useRef(null),[y,w]=o.useState(!1),[h,_]=o.useState(null),[f,A]=o.useState(null);Ju(y&&!!h,()=>{if(typeof document>"u")return null;const E=Array.from(document.querySelectorAll(".tooltip-content"));for(let S=E.length-1;S>=0;S--)if(E[S].querySelector(".tooltip-textbox__root"))return E[S];return null},()=>b.current?.querySelector("button")??null);const x=o.useRef(i);o.useEffect(()=>{x.current=i});const N=o.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(E=>typeof E=="string"||typeof E=="number")?l.join(""):"",[l]),k=o.useCallback(()=>{w(!1),_(null),A(null)},[]);o.useEffect(()=>{if(!y)return;let E;try{typeof x.current=="function"&&(E=x.current())}catch{}if(E===!1){k();return}A(typeof E<"u"&&E!==null?E:null)},[N]);const B=o.useCallback(()=>{let E;try{typeof i=="function"&&(E=i())}catch{}if(E!==!1){if(A(typeof E<"u"&&E!==null?E:l),!b.current){w(S=>!S);return}if(y)w(!1),_(null),A(null);else{const S=b.current.getBoundingClientRect();_(S),w(!0)}}},[i,l,y]);return t.jsxs("div",{className:v,children:[t.jsx("p",{className:g,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),s||d?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[d&&t.jsx(pe,{htmlType:"button",size:32,type:C?"dot":"bar",icon:"play-circle",label:C?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:c,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),s&&t.jsx("div",{ref:b,children:t.jsx(pe,{htmlType:"button",size:32,type:C?"dot":"bar",icon:"eye",label:C?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:B,className:y?"is-selected":void 0,"aria-expanded":y,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),y&&t.jsx(cr,{text:f??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:h,onClose:k,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Ho(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Gn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:u=void 0,useTitleFaded:d=void 0}){const{t:c}=ye.useTranslation(),[p,m]=o.useState(()=>Ho(e,n));o.useEffect(()=>{const A=Ho(e,n);if(A!==p){const x=setTimeout(()=>m(A),0);return()=>clearTimeout(x)}},[e,n,p]);const C=o.useCallback((...A)=>{Ho(e,n)==="done"||p==="done"||typeof u=="function"&&u(...A)},[e,n,p,u]),[g,v]=o.useState(!1),[b,y]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),w=o.useCallback(A=>{if(!A)return null;try{const x=A;if(typeof A=="object"&&(x.currentTarget||x.target)&&(x.nativeEvent||x.type)){const B=x.currentTarget??x.target;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect()}if(A instanceof DOMRect)return A;const N=A;if(N&&typeof N.getBoundingClientRect=="function")return N.getBoundingClientRect();const k=A?.current;return k&&typeof k.getBoundingClientRect=="function"?k.getBoundingClientRect():null}catch{return null}},[]),h=o.useCallback((A,{text:x="",label:N="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:k=!1,alignX:B="center",alignY:E="top"}={})=>{const S=w(A);y({text:x,label:N,anchorRect:S,backdrop:k,alignX:B,alignY:E}),v(!0)},[w]),_=o.useCallback(()=>{v(!1),y(A=>({...A,anchorRect:null}))},[]),f=o.Children.map(i,A=>{if(o.isValidElement(A)){const x=A;if(typeof x.type=="string")return x;const N=x.props??{},k=typeof N.onDone=="function"?N.onDone:C,B=typeof N.disabled=="boolean";let E=p==="disabled";return B&&(E=!!N.disabled),o.cloneElement(x,{onDone:k,disabled:E,showTooltip:h,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(Xu,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(Qu,{state:p,title:r,...s,useFaded:d}),f]}),g?t.jsx(on,{anchorRect:b.anchorRect,backdrop:b.backdrop,onClose:_,ariaLabel:c("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(cr,{text:b.text,onClose:_})}):null]})}function ec({context:e,state:n="disabled",theme:a="light"}){const{t:r}=ye.useTranslation(),[s,i]=o.useState("disabled"),[l,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const d=()=>u(R=>R==="dark"?"light":"dark"),{increase:c,decrease:p,canIncrease:m,canDecrease:C,fontSize:g,lineHeight:v}=tl({storageKey:"textbox_fontScale"}),[b,y]=o.useState(""),w=o.useRef(null),h=o.useRef(!1),_=o.useCallback(()=>{h.current=ar()&&!!w.current&&w.current.contains(document.activeElement),i("active")},[]),f=o.useCallback(()=>y(""),[]),A=R=>{try{y(R)}catch{}},x=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(n!=="disabled"){const R=setTimeout(()=>i(n),0);return()=>clearTimeout(R)}},[n]);const N=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[k,B]=o.useState(N);k!==N&&(B(N),i("disabled"));const E=n==="disabled"?s:n,S=E==="disabled"?"training-text-box--disabled":E==="active"?"training-text-box--active":E==="done"?"training-text-box--done":"",z=o.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${v}px`}),[g,v]);return o.useEffect(()=>{if(E==="disabled"||!h.current)return;h.current=!1;const R=document.activeElement;R&&R!==document.body||w.current?.querySelector(".training-text-box__buttons button")?.focus()},[E]),t.jsxs("div",{ref:w,className:`training-text-box ${S} ${E!=="disabled"&&l==="dark"?"is-dark":""}`,children:[E==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(pe,{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":E==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:z,children:N})}),E!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":E==="disabled",children:[t.jsx(pe,{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:!C,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),t.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:c,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,...!x&&{width:"60px"}}),t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(ra,{message:b,position:"top",onClose:f})]})}function zo({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:u,wrongAnswers:d,choices:c,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:C=!1,choiceIcons:g,shuffleChoices:v=!0}){const{t:b}=ye.useTranslation(),y=r??b("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),w=typeof e=="number"?e:-1,h=typeof n!="number"?"disabled":w<n?"done":w===n?"active":"disabled",_=Array.isArray(c)&&c.length?c:typeof u<"u"?[u].concat(Array.isArray(d)?d:[]):void 0,f=d?d.join("||"):"",A=c?c.join("||"):"",[x,N]=o.useState(()=>Array.isArray(_)?v?ya(_):_.slice():void 0);o.useEffect(()=>{Array.isArray(_)&&_.length?N(v?ya(_):_.slice()):N(void 0)},[u,f,A,v]);const[k,B]=o.useState(null),[E,S]=o.useState(()=>new Set);o.useEffect(()=>{B(null),S(new Set)},[A,u,f]);const z=o.useRef(void 0);o.useEffect(()=>{const j=z.current;typeof j=="number"&&typeof n=="number"&&typeof e=="number"&&j>=e&&n<e&&(B(null),S(new Set)),z.current=n},[n,e]);const R=o.useCallback(j=>{if(h!=="active")return;const L=x?.[j];if(L==null)return;const O=L,Z=h==="active"||h==="done";if(p){const te=new Set(E),W=te.has(O);W?te.delete(O):te.add(O),S(te),typeof l=="function"&&l({selectedValues:[...te],__ts:Date.now()}),Z&&(typeof m=="number"&&m>0?te.size>=m:!W)&&typeof i=="function"&&h==="active"&&i({selectedValues:[...te],__ts:Date.now()})}else B(O),typeof l=="function"&&l({selectedIndex:j,selectedValue:O,__ts:Date.now()}),Z&&typeof i=="function"&&h==="active"&&i({selectedIndex:j,selectedValue:O,__ts:Date.now()})},[x,h,p,l,i,m,E]),q=`training-step__buttons${Array.isArray(x)&&x.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:y,useTitleFaded:s,children:t.jsx("div",{className:q,children:Array.isArray(x)&&x.length>0?x.map((j,L)=>t.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:()=>R(L),ariaLabel:String(j),label:j,useLabel:!0,icon:g?g[String(j)]:void 0,variant:"default",disabled:h==="disabled",selected:p?E.has(j):k===j,useDisabledCovered:C,minWidth:0},String(j))):null})})}function Vo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:u}){const{t:d}=ye.useTranslation(),c=r??d("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",C=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",g=l&&typeof l=="object"?l.choices:void 0,[v,b]=o.useState(u??null),y=`${String(C)}\0${JSON.stringify(g??null)}`,[w,h]=o.useState(y);w!==y&&(h(y),u==null&&b(null));const[_,f]=o.useState(u);Object.is(_,u)||(f(u),b(u??null));const A=o.useRef(void 0);o.useEffect(()=>{const B=A.current;typeof B=="number"&&typeof n=="number"&&typeof e=="number"&&B>=e&&n<e&&u==null&&b(null),A.current=n},[n,e,u]);const x=o.useCallback(B=>{const E=typeof B=="object"&&B!==null?Object.assign({},B,{__ts:Date.now()}):{value:B,__ts:Date.now()};typeof i=="function"&&i(E),m==="active"&&typeof s=="function"&&s(E)},[i,m,s]),N=o.useCallback(()=>{m==="active"&&(b(!1),x(!1))},[x,m]),k=o.useCallback(()=>{m==="active"&&(b(!0),x(!0))},[x,m]);return t.jsxs(Gn,{index:e,stepIndex:n,isLast:a,title:c,onDone:s,useTitleFaded:!1,children:[t.jsx(ec,{context:l,state:m}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((B,E)=>t.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(b(E),x&&x(E))},disabled:m==="disabled",ariaLabel:String(B),label:B,variant:m,selected:v===E},E)):t.jsxs(t.Fragment,{children:[t.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:N,disabled:m==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:v===!1}),t.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:k,disabled:m==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:v===!0})]})})]})}function Wo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:u,usePreviewTextBtn:d,previewText:c=null,onPreviewTextBtn:p,disabled:m,_pageIndex:C,showSoundWaveForm:g,showNoiseWaveForm:v}){const{t:b}=ye.useTranslation(),y=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),w=m??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:y,onDone:s,titleProps:{usePreviewTextBtn:d,previewText:c,onPreviewTextBtn:p},children:t.jsx(Oo,{soundSrc:l,ttsText:l?null:c??y,bucketPath:u,btnLabel:i||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:w,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:v},`audio-p${C??0}-s${e}`)})}const l3=[];function qo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=l3}){const{t:u}=ye.useTranslation(),d=r??u("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),c=F=>typeof F=="string"?F:F&&(F.context||F.sentence||F.question||"")||"",[p,m]=o.useState(Array.isArray(l)?l:[]),[C,g]=o.useState(()=>(p||[]).map((F,D)=>({id:D,text:c(F)}))),v=o.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]),b=v!=="disabled",y=o.useRef(void 0);o.useEffect(()=>{if(y.current===l)return;y.current=l;const F=Array.isArray(l)?l:[];m(F);const D=(H=>{const M=(H||[]).map((ne,X)=>({id:X,text:c(ne)}));if(M.length<=1)return M;const I=(ne,X)=>{if(ne.length!==X.length)return!1;for(let ae=0;ae<ne.length;ae++)if(ne[ae].text!==X[ae].text)return!1;return!0};let $=ya(M),K=0;for(;I($,M)&&K<20;)$=ya(M),K+=1;return $})(F);g(D);try{if(typeof i=="function"){const H=D.filter((M,I)=>M.text===c(F[I])).length;i({shuffled:D,score:H,total:(F||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&v==="active"){const H=D.filter((M,I)=>M.text===c(F[I])).length;s({shuffled:D,score:H,total:(F||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const w=(F,D)=>{const H=[...C],M=F+D;if(M<0||M>=H.length)return;const I=H[M];H[M]=H[F],H[F]=I,L(H);try{if(typeof s=="function"&&v==="active"){const $=H.filter((K,ne)=>K.text===c(p[ne])).length;s({shuffled:H,score:$,total:(p||[]).length,__ts:Date.now()})}}catch{}},[h,_]=o.useState(null),f=o.useRef(null),A=o.useRef(null),x=o.useRef(null),N=o.useRef(null),k=o.useRef(null),B=o.useRef({x:0,y:0}),E=o.useRef(null),S=o.useRef({dx:0,dy:0}),z=()=>{if(E.current!==null)return;const F=()=>{if(!f.current){E.current=null;return}E.current=requestAnimationFrame(F);const D=B.current,H=S.current||{dx:0,dy:0};f.current&&(f.current.style.transform=`translate3d(${D.x-H.dx}px, ${D.y-H.dy}px, 0)`)};E.current=requestAnimationFrame(F)},R=o.useRef(new Map),q=o.useRef(new Map),j=()=>{const F=new Map;return R.current.forEach((D,H)=>{D&&D.getBoundingClientRect&&F.set(H,D.getBoundingClientRect())}),F},L=F=>{const D=j();g(F);try{if(typeof i=="function"){const H=F.filter((M,I)=>M.text===c(p[I])).length;i({shuffled:F,score:H,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const H=j();F.forEach(M=>{const I=D.get(M.id),$=H.get(M.id),K=R.current.get(M.id);if(!K||!I||!$)return;const ne=I.top-$.top;ne&&(K.style.transition="none",K.style.transform=`translateY(${ne}px)`,requestAnimationFrame(()=>{K.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",K.style.transform="";const X=()=>{K.style.transition="",K.removeEventListener("transitionend",X)};K.addEventListener("transitionend",X)}))})})},O=(F,D)=>{try{try{D.dataTransfer?.setData("text/plain",String(F))}catch{}try{D.dataTransfer&&(D.dataTransfer.effectAllowed="move")}catch{}try{const H=document.createElement("div");H.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(H),D.dataTransfer?.setDragImage(H,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(H)}catch{}})}catch{}}catch{}_(F);try{const H=C[F],M=document.createElement("div");M.className="order-list__dragging-object order-list__dragging-object--visible",M.textContent=H&&H.text?H.text:"",document.body.appendChild(M),f.current=M;const I=R.current.get(H.id);let $=D.clientX||0,K=D.clientY||0;try{if(I&&I.getBoundingClientRect){const be=I.getBoundingClientRect();$=be.left+be.width/2,K=be.top+be.height/2}}catch{}const ne=M.getBoundingClientRect(),X=ne.width/2,ae=ne.height/2;S.current={dx:X,dy:ae},M.style.transition="none",B.current={x:$,y:K},M.style.transform=`translate3d(${$-X}px, ${K-ae}px, 0)`,requestAnimationFrame(()=>{try{M.style.transition=""}catch{}z()});const ue=be=>{const V=be;B.current={x:V.clientX,y:V.clientY},z()};x.current=ue,document.addEventListener("mousemove",ue);const le=be=>{const V=be;B.current={x:V.clientX,y:V.clientY},z()};A.current=le,document.addEventListener("dragover",le);try{D.dataTransfer?.setData("text/plain",String(F));try{D.dataTransfer?.setData("application/json",JSON.stringify({idx:F}))}catch{}}catch{}}catch{}},Z=(F,D)=>{D.preventDefault();try{D.dataTransfer&&(D.dataTransfer.dropEffect="move")}catch{}try{k.current!==null&&(clearTimeout(k.current),k.current=null);const H=D.currentTarget&&D.currentTarget.closest?D.currentTarget.closest(".order-list__item"):null;if(H&&N.current!==H){if(N.current)try{N.current.classList.remove("drag-over")}catch{}try{H.classList.add("drag-over")}catch{}N.current=H}}catch{}},te=(F,D)=>{D.preventDefault();const H=D.dataTransfer?.getData("text/plain")||"",M=H?parseInt(H,10):h,I=F;if(typeof M!="number"||isNaN(M)||M===I){_(null),P(),W();return}const $=kC(C,M,I);L($),_(null),W();try{if(typeof s=="function"&&v==="active"){const K=$.filter((ne,X)=>ne.text===c(p[X])).length;s({shuffled:$,score:K,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const K=document.querySelectorAll(".order-list .order-list__item")[I];if(!K)return;const ne=K.querySelector(".order-list__slot")||K;try{ne.classList.add("pulse"),ne.offsetHeight,ne.classList.add("to-dark");const X=()=>{ne.classList.remove("pulse","to-dark"),ne.removeEventListener("transitionend",X)};ne.addEventListener("transitionend",X)}catch{}})}catch{}P()},W=()=>{if(f.current){try{document.body.removeChild(f.current)}catch{}f.current=null}A.current&&(document.removeEventListener("dragover",A.current),A.current=null),x.current&&(document.removeEventListener("mousemove",x.current),x.current=null),E.current!==null&&(cancelAnimationFrame(E.current),E.current=null)},U=()=>{_(null),P(),W()};o.useEffect(()=>()=>W(),[]);const P=()=>{try{if(k.current!==null&&(clearTimeout(k.current),k.current=null),N.current){try{N.current.classList.remove("drag-over")}catch{}N.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(F=>F.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const F=Math.max(1,(C||[]).length);C.forEach((D,H)=>{const M=q.current.get(D.id);if(!M)return;let I=50;F>1&&(I=Math.round(H/(F-1)*100));try{M.style.setProperty("--marker-pos",I+"%")}catch{}})}catch{}},[C]),o.useEffect(()=>()=>{W(),k.current!==null&&(clearTimeout(k.current),k.current=null)},[]),t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:d,children:t.jsx("div",{className:"order-list",children:C.map((F,D)=>{const H=Math.max(1,(C||[]).length),M=H>1?Math.round(D/(H-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":v==="disabled","aria-disabled":v==="disabled",children:[v!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":M+"%"},ref:I=>{const $=q.current;I?$.set(F.id,I):$.delete(F.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:D+1})}):null,t.jsxs("div",{ref:I=>{const $=R.current;I?$.set(F.id,I):$.delete(F.id)},className:`order-list__draggable ${h===D?"dragging":""}`,"data-disabled":v==="disabled","aria-disabled":v==="disabled",tabIndex:v==="disabled"?-1:0,draggable:b,onDragStart:b?I=>O(D,I):void 0,onDragEnter:b?I=>Z(D,I):void 0,onDragOver:b?I=>Z(D,I):void 0,onDragLeave:b?()=>{try{k.current!==null&&clearTimeout(k.current),k.current=setTimeout(()=>{try{const I=document.querySelectorAll(".order-list .order-list__item");I&&I[D]&&(I[D].classList.remove("drag-over"),N.current===I[D]&&(N.current=null))}catch{}},80)}catch{}}:void 0,onDrop:b?I=>te(D,I):void 0,onDragEnd:b?U:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:F.text}),b?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:()=>w(D,-1),ariaLabel:u("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:()=>w(D,1),ariaLabel:u("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===C.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},F.id)})})})}const u3=8e3;function c3(e,n){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,n)})}function tc({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:u=!1,hideLabel:d=!1,hideAudio:c=!1,maxCards:p}){const{t:m}=ye.useTranslation(),C=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),v=p??3,b=(g||[]).slice(0,v);(g||[]).length>v&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${v} shown`);const y=typeof e=="number"?e:-1,w=typeof n!="number"?"disabled":y<n?"done":y===n?"active":"disabled",[h,_]=o.useState(null),f=o.useRef([]),[A,x]=o.useState(!1),N=o.useRef(null),k=o.useRef(!0);o.useEffect(()=>(k.current=!0,()=>{k.current=!1}),[]);const B=o.useMemo(()=>g.map(q=>q?.id??q?.word??"").join("|"),[g]);o.useEffect(()=>{_(null)},[B]);const E=o.useRef(void 0);o.useEffect(()=>{const q=E.current;typeof q=="number"&&typeof n=="number"&&typeof e=="number"&&q>=e&&n<e&&_(null),E.current=n},[n,e]);const S=o.useCallback((q,j)=>{if(u)return;const L={item:q,index:j,__ts:Date.now()};try{typeof i=="function"&&i(L)}catch{}if(w==="active"&&typeof s=="function")try{s(L)}catch{}},[u,i,w,s]),z=o.useCallback(async()=>{if(A||w==="disabled")return;x(!0);let q=!1;const j=new Promise(L=>{N.current=()=>{q=!0,L()}});try{for(let L=0;L<b.length&&!(!k.current||q);L++){const O=f.current[L];O&&await Promise.race([c3(O.play(),u3),j])}}finally{N.current=null,x(!1)}},[A,w,b.length]),R=o.useCallback((q,j)=>{if(w!=="active")return;_(j);const L={selectedValue:q.word||q.title||"",selectedIndex:j,item:q,__ts:Date.now()};try{typeof i=="function"&&i(L)}catch{}if(w==="active"&&typeof s=="function")try{s(L)}catch{}},[i,w,s]);return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:C,onDone:s,titleProps:{usePlayAllBtn:!c&&b.length>0,onPlayAll:z,playAllActive:A},children:t.jsx("div",{className:"training-step__cards",onClickCapture:q=>{const j=N.current;if(!j)return;const L=q.target;L&&typeof L.closest=="function"&&L.closest(".training-word-card__bottom")&&j()},children:b.length===0?t.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((q,j)=>t.jsx(Bo,{ref:L=>{f.current[j]=L},item:q,disabled:w==="disabled",onPlayDone:()=>S(q,j),selectable:u,selected:u&&h===j,onSelect:u?()=>R(q,j):void 0,flipDelay:j*120,hideLabel:d,hideAudio:c},q&&q.id||j))})})}const d3=160,p3={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function m3(e,n){const a=p3[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}const nc=()=>{};function Mn(e){const n=o.useId();if(!("variant"in e)){const{label:h,sub:_,onClick:f,children:A,align:x="horizontal",icon:N,useFullWidth:k=!1}=e,B=E=>{f&&E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),f())};return t.jsxs("div",{className:De("panel-row",x==="vertical"?"panel-row--vertical":"",k?"panel-row--label-fixed panel-row--fill":"",f?"panel-row--clickable":""),onClick:f,onKeyDown:f?B:void 0,role:f?"button":void 0,tabIndex:f?0:void 0,children:[N!=null&&t.jsx("div",{className:"panel-row__icon",children:N}),h!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:h}),_&&t.jsx("div",{className:"panel-row__sub caption-1",children:_})]}),t.jsx("div",{className:"panel-row__right",children:A})]})}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(Ma,{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:s,onClick:i,required:l,error:u,align:d="horizontal",useFullWidth:c=!1,icon:p}=e,m=a==="button"?void 0:i;let C=null;const g=a==="toggle"?`panel-toggle-${n}`:void 0,v=u?`panel-error-${n}`:void 0,b=`panel-helper-${n}`;if(a==="toggle"){const h=e;C=t.jsx(zl,{checked:h.checked,onChange:h.onChange,id:g})}else if(a==="segmented"){const h=e;C=t.jsx(An,{options:h.options,value:h.value,onChange:h.onChange,size:h.size??40,ariaLabel:r})}else if(a==="dropdown"){const h=e,_=h.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${c?" panel-row__dropdown-group--full":""}`,children:h.dropdowns.map((f,A)=>t.jsx("div",{className:c?"panel-row__dropdown-item--full":void 0,children:t.jsx(ln,{options:f.options,value:f.value,onChange:f.onChange,placeholder:f.placeholder,block:c,error:!!u,ariaDescribedBy:v,ariaLabel:f.ariaLabel??([r,f.placeholder].filter(Boolean).join(" ")||void 0)})},A))}):t.jsx(ln,{options:h.options??[],value:h.value??"",onChange:h.onChange??nc,block:c,error:!!u,ariaLabel:r,ariaDescribedBy:v});C=u?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${c?" panel-row__dropdown-error-wrap--full":""}`,children:[_,t.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}):_}else if(a==="button"){const h=e;h.buttons?.length?C=t.jsx("div",{className:"panel-row__button-group",children:h.buttons.map((_,f)=>t.jsx(pe,{htmlType:"button",size:_.btnSize??40,variant:_.btnVariant??"default",disabled:_.disabled,onClick:_.onClick,children:_.label},f))}):C=t.jsx(pe,{htmlType:"button",size:h.btnSize??40,variant:h.btnVariant??"default",disabled:h.disabled,onClick:h.onClick,children:h.buttonLabel})}else if(a==="text"){const h=e;C=t.jsx("span",{className:`panel-row__text body-2${c?" panel-row__text--full":""}`,style:h.valueColor?{color:h.valueColor}:void 0,children:h.value})}else if(a==="input"){const h=e;C=t.jsxs("div",{className:`panel-row__input-wrap${c?" panel-row__input-wrap--full":""}`,children:[t.jsx(Un,{value:h.value,onChange:h.onChange??nc,onKeyDown:h.onKeyDown,onEnter:h.onEnter,placeholder:h.placeholder,ghostText:h.ghostText,ghostHint:h.ghostHint,inputMode:h.inputMode,readOnly:h.readOnly,disabled:h.disabled,type:h.type,autoComplete:h.autoComplete,maxLength:h.maxLength,showCount:h.showCount,multiline:h.multiline,rows:h.rows,fullWidth:c,error:u,ariaLabel:r,required:l,ariaDescribedBy:h.helperText?b:void 0}),h.helperText&&t.jsx("div",{id:b,className:"panel-row__helper caption-1",children:h.helperText})]})}else a==="custom"&&(C=e.children);u&&a!=="input"&&a!=="dropdown"&&(C=t.jsxs("div",{className:`panel-row__dropdown-error-wrap${c?" panel-row__dropdown-error-wrap--full":""}`,children:[C,t.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const y=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&c,w=h=>{m&&h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),m())};return t.jsxs("div",{className:De("panel-row",d==="vertical"?"panel-row--vertical":"",y?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?w: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:[g?t.jsxs("label",{htmlFor:g,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:"*"})]}),s&&t.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),t.jsx("div",{className:"panel-row__right",children:C})]})}function ac(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function h3({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=ye.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(s=>{const i=e[s],l=s==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return 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(pe,{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(s)})]}),i?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&t.jsx(xt,{size:"small",variant:su(i.device),fill:"soft",label:m3(i.device,r)}),ac(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:ac(i)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),_o(i.wornYear,i.wornMonth,i.wornDay)&&t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:_o(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")})]},s)})})}function dr({title:e,titleLevel:n=2,icon:a,disc:r,actions:s,size:i="medium",minHeight:l,maxWidth:u,className:d,scrollable:c,scrollbarGutter:p="auto",compactRows:m=!1,useBorder:C=!0,useBg:g=!0,useRowBorder:v=!0,labelWidth:b,form:y=!1,loading:w,empty:h,children:_}){const f=De("panel",`panel--${i}`,y?"panel--form":"",l!==void 0?"panel--fill":"",C?"":"panel--no-border",g?"":"panel--no-bg",v?"":"panel--no-row-border",m?"panel--compact-rows":"",d),A={};l!==void 0&&(A.minHeight=l),u!==void 0&&(A.maxWidth=typeof u=="number"?`${u}px`:u),b!==void 0&&(A["--panel-label-width"]=typeof b=="number"?`${b}px`:b);const x=n?`h${n}`:"div";return t.jsxs("div",{className:f,style:Object.keys(A).length?A:void 0,children:[(!!e||r!=null)&&t.jsxs("div",{className:De("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&t.jsx(Ze,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),t.jsxs("div",{className:"panel__title-group",children:[!!e&&t.jsx(x,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&t.jsx("p",{className:"panel__disc caption-1",children:r})]}),s&&t.jsx("div",{className:"panel__actions",children:s})]}),w?t.jsx(Mn,{variant:"loading"}):h!=null&&o.Children.toArray(_).length===0?t.jsx(Mn,{variant:"empty",children:h}):c?t.jsx("div",{className:De("panel__body--scroll",p==="stable"&&"panel__body--gutter-stable"),children:_}):_]})}function C3({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function f3(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 rc(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"}]}f3(St.t.bind(St)),rc(St.t.bind(St));const Uo="none",g3=.5,b3=1.5,y3=.25;function Go({title:e,valueLabel:n,value:a,min:r,max:s,step:i,tickStep:l,size:u,onChange:d}){return t.jsxs(Mn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(tu,{value:a,onChange:d,min:r,max:s,step:i,size:u,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),t.jsx("div",{className:"noise-settings__value button-1",children:n})]})}function oc({anchorRect:e,onClose:n}){const{t:a}=ye.useTranslation(),r=tn("(max-width: 767px)")?40:24,s=lr(),i=Ra(s?.settings??Ia),l=s?.settings.type??"defaultNoise",u=s?.settings.enabled??!0,d=s?.playbackRate??1,c=s?.mainVolume??1,p=Math.round(c*100),m=o.useCallback(b=>{try{s?.setMainVolume(Math.max(0,Math.min(1,b/100)))}catch{}},[s]),C=o.useCallback(b=>{try{s?.setPlaybackRate(b)}catch{}},[s]),g=o.useCallback(b=>{const y=Math.min($a,Math.max(0,Math.round(b*10)/10));try{s?.setSettings({noiseRatio:y})}catch{}},[s]),v=o.useCallback(b=>{try{b===Uo?s?.setSettings({enabled:!1}):s?.setSettings({type:b,enabled:!0})}catch{}},[s]);return t.jsx(on,{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(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(dr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(Go,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),t.jsx(Go,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:g3,max:b3,step:y3,size:r,onChange:C}),t.jsx(Mn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(An,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Uo,label:a("training.noise.type.none","\uC5C6\uC74C")},...rc(a).map(b=>({key:b.value,label:b.label}))],value:u?l:Uo,onChange:v})}),t.jsx(Go,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:$a,step:Vu,size:r,onChange:g})]})})}function sc({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:u=1,resultOpen:d=!1}){const{t:c}=ye.useTranslation(),[p,m]=o.useState(!1),[C,g]=o.useState(null),[v,b]=o.useState(!1),y=o.useRef(null),w=o.useRef(null),h=lr(),_=u>0,f=_&&l<u-1,A=!_||l>=u-1,x=s===Math.max(0,i);o.useEffect(()=>{e||(m(!1),g(null))},[e]);const N=o.useCallback(()=>{m(!1),g(null)},[]),k=o.useCallback(()=>{if(p){m(!1),g(null);return}const O=y?.current?.getBoundingClientRect();O&&g(O),n?.(),m(!0)},[p,n]),B=o.useCallback(()=>{if(p){m(!1),g(null);return}const O=w?.current?.getBoundingClientRect();O&&g(O),n?.(),m(!0)},[p,n]),E=tn("(max-width: 767px)"),S=o.useRef(null),[z,R]=o.useState(null),q=o.useCallback(()=>{b(O=>{const Z=!O;return R(Z?S.current?.getBoundingClientRect()??null:null),Z})},[]),j=o.useCallback(()=>{b(!1),R(null)},[]);o.useEffect(()=>{d&&(b(!1),R(null))},[d]);const L=t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:c("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(yo,{analyser:h?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:c("training.meter.sentence","\uC7AC\uC0DD")})]}),t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:c("training.meter.noise","\uC18C\uC74C")}),t.jsx(yo,{analyser:h?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:c("training.meter.noise","\uC18C\uC74C")})]})]});return Ju(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[y.current,w.current].map(O=>O?.querySelector("button")??null).find(O=>!!O&&O.getClientRects().length>0)??y.current?.querySelector("button")??null),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:y,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(pe,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:k,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:c("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:c("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:w,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(pe,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:B,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:c("training.settings","\uC124\uC815")})})})]}):null,e&&t.jsx("div",{ref:S,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:t.jsx(pe,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:q,selected:v,"aria-expanded":E?v:void 0,ariaLabel:c("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&v&&!E&&t.jsx("div",{className:"pp-bottom__meters",children:L})]}),e&&v&&E&&z&&t.jsx(on,{anchorRect:z,onClose:j,ariaLabel:c("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:t.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:L})}),t.jsxs("div",{className:"pp-bottom__right",children:[A&&t.jsx(pe,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:c("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:c("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!x}),f&&t.jsx(pe,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:c("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:c("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!x})]}),e&&p&&t.jsx(oc,{anchorRect:C,onClose:N})]})}function ic({title:e,subtitle:n,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:u,pageCount:d,progressMax:c,progressIndex:p,onBack:m,onClose:C}){const{t:g}=ye.useTranslation(),v=tn("(max-width: 767px)"),b=Number.isInteger(p)?p:u||0,y=Number.isInteger(c)?c:d||0,w=m||C,h=Array.isArray(r)?v?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,f=typeof n=="string"?n.trim():n,A=!!(_||f),x=A?_||f:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),N=h||(_?n:void 0),k=v&&typeof N=="string"&&(N.includes(" \xB7 ")||N.includes(" / "))?N.split(/\s[·/]\s/).pop():N,B=o.useMemo(()=>{const E=i&&typeof i=="object"?{...i}:{};return!("width"in E)&&!("height"in E)&&(E.width="40px",E.height="40px"),E},[i]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[w?t.jsx(pe,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:w,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:s?t.jsx(Ml,{icon:s,label:e,tooltip:l,wrapperStyle:B}):null}),t.jsxs("div",{className:"pp-title__text",children:[k?t.jsx("span",{className:"pp-title__depth caption-1",children:k}):null,t.jsx("span",{className:`pp-title__title h2${A?"":" pp-title__title--empty"}`,children:x}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(ou,{max:Math.max(0,y??0),index:Math.max(0,b??0)})]})}function v3(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function x3(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 lc=(e,n)=>{if(!n)return n;const a=typeof St?.t=="function"?St.t(e,{defaultValue:n}):void 0;return typeof a=="string"&&a?a:n};function uc(e,n,a){const r=e,s=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",i=mi().find(u=>u.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(u=>u.key===(r?.category_1||r?.category_sub_code));return{title:s,label:r?.title||s,depth:n,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?lc(`topic.${i.key}`,i.label):void 0,l?lc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Ko(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function _3(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function w3({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:u}){const d=uc(n,a,r),c=typeof u=="function"?u(d)||{}:u||{},p=n?.id||n?.title||s.length;return{id:`${e}:${p}`,meta:{...d,...c},pages:s,emptyMessage:i,buildResults:l}}function A3(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function B3(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 k3(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 cc(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function N3(e,n,a,r){return cc(e,n*a+r)}function D3({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const s=e;if(Array.isArray(s.selectedValues))return r.every(i=>s.selectedValues.includes(i))&&s.selectedValues.every(i=>r.includes(i));if(typeof s.correct=="boolean")return s.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[n]));if(typeof n<"u")return r.some(s=>String(s)===String(n))}}function E3(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 dc=o.createContext(null);function S3(){const e=o.useContext(dc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function j3({index:e,stepIndex:n,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:u}=ye.useTranslation(),d=typeof e=="number"?e:-1,c=typeof n!="number"?"disabled":d<n?"done":d===n?"active":"disabled",[p,m]=o.useState(()=>s.map(()=>null)),C=JSON.stringify(s),g=s.length;o.useEffect(()=>{m(Array.from({length:g},()=>null))},[C]);const v=o.useRef(void 0);o.useEffect(()=>{const h=v.current;typeof h=="number"&&typeof n=="number"&&typeof e=="number"&&h>=e&&n<e&&m(Array.from({length:g},()=>null)),v.current=n},[n,e,g]);const b=o.useMemo(()=>p.filter(h=>h!==null).length+1,[p]),y=o.useCallback(h=>{if(c!=="active")return;const _=p;let f;if(_[h]!=null){const x=_[h];f=_.map(N=>N!==null&&N>=x?null:N)}else f=[..._],f[h]=b;m(f);const A={selectedOrder:f,words:s,__ts:Date.now()};try{typeof l=="function"&&l(A)}catch{}if(_[h]==null&&f.length>0&&f.every(x=>x!==null))try{typeof i=="function"&&i(A)}catch{}},[c,p,b,l,i,s]),w=r??u("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:w,onDone:i,children:t.jsx("div",{className:"training-step__cards",children:s.map((h,_)=>t.jsx(Bo,{item:{word:h},disabled:c==="disabled",selectable:!0,selected:p[_]!==null,orderRank:p[_],onSelect:()=>y(_),flipDelay:_*120,hideLabel:!1,hideAudio:!0},`${h}-${_}`))})})}function pr(e){return null}pr.__isTrainingPage=!0;function da(e,n){const a=S3();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 pc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=da(e,n);return t.jsx(Wo,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function mc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(zo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function hc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(Vo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Cc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(qo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function fc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(tc,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function T3({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(j3,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Yo(...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 s of r){if(typeof s=="string"&&s.trim().length)return s.trim();if(typeof s=="number"||typeof s=="boolean")return String(s)}}}return null}function M3(e){return Yo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function gc(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=Yo(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 bc(e){const{score:n,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:u=!1,pending:d=!1}=e||{},{t:c}=ye.useTranslation(),p=o.useId(),m=o.useCallback(()=>!d,[d]);o.useEffect(()=>{const h=a??0;if(n!=null&&h>0&&n/h>.5){const _=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(_)}},[n,a]);const C=o.useCallback(h=>{const _=gc(h),f=Yo(h?.wording,h?.label);return _===!0?{variant:"main",label:f??c("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:_===!1?{variant:"danger",label:f??c("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:f??c("training.result.notJudged","\uBBF8\uD310\uC815")}},[c]),g=a??0,v=n??0,b=o.useMemo(()=>Array.isArray(r)?r:[],[r]),y=o.useMemo(()=>b.map(h=>{const _=h??{},f=M3(_)||c("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:A,label:x}=C(_),N=Array.isArray(_.corrects)?_.corrects:[],k=N.length?N.join(", "):_.answer!=null&&_.answer!==""?String(_.answer):null,B=typeof _.selectedText=="string"?_.selectedText:null,E=gc(_)===!0;return{problem:f,variant:A,label:x,answer:k,selectedText:B,isCorrect:E}}),[b,C,c]),w=o.useMemo(()=>y.some(h=>h.answer!==null||h.selectedText!==null),[y]);return t.jsx(Tn,{onClose:l,closeOnBackdrop:!1,inline:u,ariaLabel:c("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:m,footerClassName:"trp-result__foot",footer:({animateThen:h,closeWithAnimation:_})=>t.jsxs(t.Fragment,{children:[d&&t.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:c("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsxs("div",{className:"trp-actions",children:[t.jsx(pe,{htmlType:"button",size:56,type:"bar",label:c("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>h(i)}),t.jsx(pe,{htmlType:"button",size:56,type:"bar",label:c("training.result.done","\uC644\uB8CC"),variant:"main",onClick:_,disabled:d,onDisabledClick:d?()=>{}:void 0,"aria-describedby":d?p:void 0})]})]}),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:c("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:c("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&t.jsx("p",{className:"trp-result__subtitle body-3",children:s}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":c("training.result.scoreAria",{correct:v,total:g}),children:[t.jsx("span",{className:"trp-score__big",children:v}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:g})]})})]}),y.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${w?" result-table--answer":""}`,role:"table","aria-label":c("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:c("common.col.problem","\uBB38\uC81C")}),w&&t.jsx("span",{role:"columnheader",children:c("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:c("training.result.colJudge","\uD310\uC815")})]}),y.map((h,_)=>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(_+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:h.problem})]}),w&&t.jsxs("div",{className:"trp-row__answers",children:[h.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:c("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:h.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${h.isCorrect?"is-correct":"is-wrong"}`,children:c("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${h.isCorrect?"is-correct":"is-wrong"}`,children:h.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(xt,{variant:h.variant,label:h.label,fill:"soft",minWidth:80})})]},_))]})})]})})}function L3(e){o.useEffect(()=>{if(!e)return;const n=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const p=Date.now();a==null&&(a=p),r==null&&(r=p)},u=()=>{r!=null&&(s+=Date.now()-r,r=null)};n()&&l();const d=()=>{if(u(),a==null||s-i<1e3||i===0&&s<5e3)return;const p=a+i;i=s,EC({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+s).toISOString()})},c=()=>{n()?l():d()};return typeof document<"u"&&document.addEventListener("visibilitychange",c),typeof window<"u"&&window.addEventListener("pagehide",d),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",c),typeof window<"u"&&window.removeEventListener("pagehide",d),d()}},[e])}function Zo(e,n){return e&&e.id||`page-${n??0}`}function Xo(e,n){return e&&e.key||`step-${n??0}`}function mr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function $3(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const R3=300,P3=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Ln=Object.freeze({}),yc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function vc(e){const n=e,a=n?.results||n?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,s=Array.isArray(a)?a.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:a,correct:r!=null?s:null,total:r}}const I3=e=>t.jsx(bc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function F3(e){const{scenario:n,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:u,pageIndex:d,pageCount:c,stepIndex:p,stepCount:m,onBack:C,onComplete:g,onNext:v,onSettings:b,useNoiseSetting:y=!0,children:w,ariaLabel:h,label:_,buildResults:f,onResult:A,typeKey:x,entryPoint:N,dailyTotal:k,itemRef:B,renderResultPopup:E,noiseOverride:S}=e;L3(x&&!yc.has(x)?x:"");const z=o.useRef(0);o.useEffect(()=>{z.current=Date.now()},[]);const{t:R}=ye.useTranslation(),q=A,j=!!n,L=n?.id||null,O=n?.meta||{},Z=Array.isArray(n?.pages)?n.pages:[],te=Array.isArray(w)||o.isValidElement(w)&&typeof w!="function"?o.Children.toArray(w).filter(o.isValidElement):[],W=te.length>0,U=re=>re===pr||re?.__isTrainingPage===!0,P=W&&te.some(re=>U(re.type)),F=P?te.filter(re=>U(re.type)).map((re,ve)=>{const G=re.props||{};return{id:`children-page-${ve}`,steps:o.Children.toArray(G.children).filter(o.isValidElement),pageTop:G.pageTop||G.top||null,pageBottom:G.pageBottom||G.bottom||null}}):[{id:"children-page-0",steps:te}],D=W&&!j&&typeof w!="function",H=D?Math.max(1,F.length):0;o.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),o.useEffect(()=>{if(typeof document>"u"||!document.body)return;const re=document.body;return re.dataset.ihabTrainingPopupCount=String(Number(re.dataset.ihabTrainingPopupCount||"0")+1),re.classList.add("ihab-training-popup-open"),()=>{const ve=Number(re.dataset.ihabTrainingPopupCount||"1")-1;ve>0?re.dataset.ihabTrainingPopupCount=String(ve):(delete re.dataset.ihabTrainingPopupCount,re.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return j4()},[]);const[M,I]=o.useState({...Ia,enabled:!1}),$=o.useRef(M);o.useEffect(()=>{$.current=M},[M]);const K=o.useRef(S),ne=o.useRef(!1),X=o.useRef(null);o.useEffect(()=>{let re=!1;const ve=G=>{if(re)return;ne.current=!0;const ie=G?Pa({...Ia,enabled:!1},G):{...Ia},de=X.current;X.current=null;const _e=de?Pa(ie,de):ie;$.current=_e,I(_e),de&&!K.current&&li(_e),qa(_e);const we=K.current;if(we){const je=typeof we=="function"?we(_e):we,rt=Pa(_e,je);$.current=rt,I(rt),qa(rt)}};return MC().then(ve),()=>{re=!0}},[]);const[ae,ue]=o.useState(null),[le,be]=o.useState(null),V=o.useCallback((re,ve)=>{re==="main"?ue(ve):be(ve)},[]),ee=o.useRef(null),oe=o.useRef(null),Be=o.useCallback(()=>{oe.current!==null&&(clearTimeout(oe.current),oe.current=null);const re=ee.current;ee.current=null,re&&li(re)},[]);o.useEffect(()=>{if(typeof window>"u")return;const re=()=>{document.visibilityState==="hidden"&&Be()};return window.addEventListener("pagehide",Be),document.addEventListener("visibilitychange",re),()=>{window.removeEventListener("pagehide",Be),document.removeEventListener("visibilitychange",re),Be()}},[Be]);const Ce=o.useCallback(re=>{const ve=Pa($.current,re);if($.current=ve,I(ve),!ne.current){X.current={...X.current??{},...re},qa(ve);return}K.current||(ee.current=ve,oe.current!==null&&clearTimeout(oe.current),oe.current=setTimeout(Be,R3)),qa(ve)},[Be]),se=M.mainSpeed,ge=M.mainVolume,fe=o.useCallback(re=>Ce({mainSpeed:re}),[Ce]),xe=o.useCallback(re=>Ce({mainVolume:re}),[Ce]),$e=o.useMemo(()=>({settings:M,setSettings:Ce,registerAnalyser:V,mainAnalyser:ae,noiseAnalyser:le,playbackRate:se,setPlaybackRate:fe,mainVolume:ge,setMainVolume:xe}),[M,Ce,V,ae,le,se,fe,ge,xe]),Le=o.useRef(null),[Qe,Ue]=o.useState(0),ze=o.useRef([]),[Ie,st]=o.useState("center"),[Xe,Je]=o.useState(!1),Ee=o.useRef(!1),ke=o.useRef(null),Me=o.useCallback(re=>{Ee.current||(Ee.current=!0,Je(!0),ke.current=setTimeout(()=>{try{re()}catch{Ee.current=!1,Je(!1)}},P3()?0:d3))},[]);o.useEffect(()=>()=>{ke.current&&clearTimeout(ke.current)},[]);const Ve=o.useRef(C);o.useEffect(()=>{Ve.current=C}),o.useEffect(()=>{const re=Le.current,ve=document.activeElement;if(qr(re,ve),re){const G=Array.from(re.querySelectorAll(mn)).filter(ie=>!ie.closest('[aria-hidden="true"]'))[0];if(G)try{G.focus()}catch{}}return()=>{const G=document.activeElement;if(!G||G===document.body||re&&re.contains(G))try{Ur(ve)?.focus?.()}catch{}}},[]),o.useEffect(()=>zn(()=>Me(()=>{const re=Ve.current;typeof re=="function"&&re()})),[Me]),Vr(Le,!0);const[lt,Q]=o.useState(!1),ce=o.useRef(!1),[me,Se]=o.useState(null),et=o.useRef(0),Ke=()=>{et.current+=1,Se(null)},[bt,ut]=o.useState(""),[it,tt]=o.useState(()=>mr()),Ge=o.useRef(typeof d=="number"?d:null);o.useEffect(()=>{!j&&!D||(tt(mr()),Ke())},[j,L,D]),o.useEffect(()=>{D&&tt(re=>{const ve=Math.max(0,Math.min(re.pageIndex,Math.max(0,H-1)));return ve!==re.pageIndex?{...re,pageIndex:ve,stepIndex:0}:re})},[D,H]);const Ye=D?Math.max(0,Math.min(it.pageIndex,H-1)):0,Re=D?F[Ye]:null,We=D&&Re&&Array.isArray(Re.steps)?Re.steps:[],Fe=j?it.pageIndex:D?Ye:typeof d=="number"?d:0,ct=j?Z[Math.max(0,Math.min(it.pageIndex,Math.max(0,Z.length-1)))]:null,Bt=j&&ct&&Array.isArray(ct.steps)?ct.steps:[],Nt=j?Bt.length:D?We.length:typeof m=="number"?m:0,Ct=j||D?Math.max(0,Math.min(it.stepIndex,Math.max(0,Nt))):typeof p=="number"?p:0,dt=j?Z.length:D?H:typeof c=="number"?c:0;o.useLayoutEffect(()=>{const re=Ge.current;if(typeof Fe=="number"&&re!==null&&Fe!==re&&Fe>re)try{ut(R("training.problemNotice",{n:Fe+1}))}catch{}Ge.current=typeof Fe=="number"?Fe:Ge.current},[Fe,d,R]),o.useLayoutEffect(()=>{const re=Le.current;if(!re)return;const ve=()=>re.querySelector(".page-popup__scroll");let G=null,ie=null,de=null;const _e=pt=>{const _t=ve();if(!_t)return;const Rt=_t.scrollHeight<=_t.clientHeight;if(st(Rt?"center":"top"),pt&&!ce.current){ce.current=!0;try{Q(!0)}catch{}try{rt.disconnect()}catch{}}},we=()=>{G!==null&&cancelAnimationFrame(G),G=requestAnimationFrame(()=>{ie!==null&&clearTimeout(ie),ie=setTimeout(()=>_e(!0),60)})},je=()=>{de!==null&&cancelAnimationFrame(de),de=requestAnimationFrame(()=>_e(!1))};we(),window.addEventListener("resize",je);const rt=new MutationObserver(we);rt.observe(re,{childList:!0,subtree:!0,attributes:!0});const yt=setTimeout(()=>{ce.current||_e(!0)},400);return()=>{window.removeEventListener("resize",je),G!==null&&cancelAnimationFrame(G),ie!==null&&clearTimeout(ie),de!==null&&cancelAnimationFrame(de),clearTimeout(yt);try{rt.disconnect()}catch{}}},[Le]);const Oe=o.useCallback(re=>{Le.current&&(Le.current._childOnNext=re)},[]),at=o.useCallback(re=>{Le.current&&(Le.current._childOnResult=re)},[]),ft=o.useCallback((re,ve,G)=>{tt(ie=>{const de=ie.answersByPage[re]||{},_e=de[ve],we=Ko(G),je=Ko(_e);return _e&&je>we?ie:{...ie,answersByPage:{...ie.answersByPage,[re]:{...de,[ve]:G}}}})},[tt]),Ot=o.useCallback((re,ve,G)=>{const ie=Zo(ct,Fe),de=Xo(re,ve);ft(ie,de,G)},[ct,Fe,ft]),nt=o.useCallback((re,ve,G)=>{const ie=Zo(ct,Fe),de=Xo(re,ve);ft(ie,de,G),!G?.allowChange&&re?.autoAdvance!==!1&&tt(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,ve+1)}))},[ct,Fe,ft,tt]),Tt=o.useCallback((re,ve)=>{const G=Re?.id||`children-page-${Fe??0}`,ie=typeof ve=="number"?ve:Ct??0,de=`step-${ie}`;ft(G,de,re),re?.allowChange||tt(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,ie+1)}))},[Re,Fe,Ct,ft,tt]),Yt=o.useCallback((re,ve)=>{const G=Re?.id||`children-page-${Fe??0}`,ie=`step-${typeof ve=="number"?ve:Ct??0}`;ft(G,ie,re)},[Re,Fe,Ct,ft]),Mt=D?{currentPageIndex:Fe??0,currentStepIndex:Ct??0,totalStepsInPage:We.length,handleStepDone:Tt,handleStepChange:Yt}:null,un=async()=>{const re=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:Z,flowState:it,answersByPage:it.answersByPage})):null;return typeof q=="function"&&await Promise.resolve(q(re))||re},cn=async()=>{const re=Re?.id||`children-page-${it.pageIndex}`,ve=it.answersByPage[re]||{},G=P?(()=>{const _e={};let we=0;return F.forEach(je=>{const rt=it.answersByPage[je.id]||{},yt=Array.isArray(je.steps)?je.steps.length:0;for(let pt=0;pt<yt;pt+=1){const _t=rt[`step-${pt}`];typeof _t<"u"&&(_e[`step-${we+pt}`]=_t)}we+=yt}),_e})():ve;if(typeof f=="function"){const _e=await Promise.resolve(f(G,{pageAnswers:ve,answersByPage:it.answersByPage,pages:F,currentPageId:re}));return typeof q=="function"&&await Promise.resolve(q(_e))||_e}const ie=Object.entries(ve).map(([_e,we],je)=>({index:je,key:_e,payload:we})),de={results:ie,answers:ie,score:0};return typeof q=="function"&&await Promise.resolve(q(de))||de},dn=()=>{const re=++et.current,ve=()=>re!==et.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 de=un();Se(Ln);const _e=de;Promise.resolve(_e).then(we=>{ve()||Se(we||{isEmpty:!0})}).catch(we=>{!ve()&&Se({isEmpty:!0})});return}if(D){const de=cn();Se(Ln);const _e=de;Promise.resolve(_e).then(we=>{ve()||Se(we||{isEmpty:!0})}).catch(we=>{!ve()&&Se({isEmpty:!0})});return}const G=Le.current&&Le.current._childOnResult,ie=de=>{try{return de?de():void 0}catch{return}};if(typeof G=="function"){const de=ie(G);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}de&&typeof de.then!="function"?Se(de):Se(de&&typeof de.then=="function"?Ln:{});const _e=()=>{ve()||Se(we=>we===Ln?{}:we)};Promise.resolve(de).then(we=>{we&&!ve()?Se(we):_e()}).catch(we=>{_e()});return}if(typeof q=="function"){const de=ie(q);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}de&&typeof de.then!="function"?Se(de):Se(de&&typeof de.then=="function"?Ln:{});const _e=()=>{ve()||Se(we=>we===Ln?{}:we)};Promise.resolve(de).then(we=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}we&&!ve()?Se(we):_e()}).catch(we=>{console.error("viewResults external handler failed",we),_e()});return}},Rn=()=>{if(j){if(typeof Fe=="number"&&typeof dt=="number"&&Fe<dt-1){tt(ve=>({...ve,pageIndex:ve.pageIndex+1,stepIndex:0}));return}return dn()}if(D){const ve=We.length;if(typeof Ct=="number"&&Ct<ve-1){tt(G=>({...G,stepIndex:G.stepIndex+1}));return}if(typeof Fe=="number"&&typeof dt=="number"&&Fe<dt-1){tt(G=>({...G,pageIndex:G.pageIndex+1,stepIndex:0}));return}return dn()}if(typeof v=="function"){try{v()}catch{}return}const re=Le.current&&Le.current._childOnNext;if(typeof re=="function"){try{re()}catch{}return}},pn=j?O.title||O.label||h||R("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(s)?s[s.length-1]:void 0)||h||R("common.popup","\uD31D\uC5C5"),Pn=h||pn,Nn=j?O.title??O.label??pn:a??_??pn,Dt=(re,ve)=>{const G=Zo(ct,Fe),ie=Xo(re,ve),de=it.answersByPage[G]?.[ie],_e=$3(re,{page:ct,pageIndex:Fe,step:re,stepIndex:ve,storedPayload:de,answersByPage:it.answersByPage,flowState:it}),we={key:ie,index:ve,stepIndex:Ct,isLast:ve===Bt.length-1};switch(re?.type){case"listen":return t.jsx(Wo,{...we,..._e,onDone:je=>nt(re,ve,je)});case"confirm":return t.jsx(zo,{...we,..._e,onDone:je=>nt(re,ve,je),onChange:je=>Ot(re,ve,je)});case"confirmWithText":return t.jsx(Vo,{...we,..._e,onDone:je=>nt(re,ve,je),onChange:je=>Ot(re,ve,je)});case"orderList":return t.jsx(qo,{...we,..._e,onDone:je=>nt(re,ve,je),onChange:je=>Ot(re,ve,je)});default:return null}},Cn=o.useRef(void 0);o.useEffect(()=>{const re=Cn.current;if(Cn.current=Fe,re===void 0||re===Fe||!ar())return;const ve=Le.current;if(!ve)return;const G=document.activeElement;if(!(!G||G===document.body||!ve.contains(G)||G.disabled===!0))return;const ie=ve.querySelector(`.training-steps ${mn.split(", ").join(", .training-steps ")}`)??Array.from(ve.querySelectorAll(mn)).find(de=>!de.closest('[aria-hidden="true"]'));try{ie?.focus()}catch{}},[Fe]);const Ht=j?Z.length>0?t.jsx("div",{className:"training-steps",children:Bt.map((re,ve)=>Dt(re,ve))},`replay-${Qe}`):t.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||R("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Zt=D?t.jsxs(dc.Provider,{value:Mt,children:[Re?.pageTop?t.jsx("div",{className:"training-page-top",children:Re.pageTop}):null,t.jsx("div",{className:"training-steps",children:We.map((re,ve)=>{const G=re;return o.cloneElement(G,{...G.props,_stepIndex:ve,_totalSteps:We.length,_stepKey:`step-${ve}`,_pageIndex:Fe})})},`replay-${Qe}`),Re?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:Re.pageBottom}):null]}):null,fn=o.useCallback(()=>{let re;if(x){const ve=me,{results:G,correct:ie,total:de}=vc(me);SC({items:TC(G),category:yc.has(x)?"sentence":"word",trainingType:x,entryPoint:N??"sentence",itemRef:B??null,correct:ie,total:de,score:typeof ve?.score=="number"?ve.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-z.current)/1e3)),dailyTotal:k??null}),re={correct:ie,total:de,attempt:ze.current.length+1,previousAttempts:[...ze.current]}}Ke(),Me(()=>{typeof g=="function"&&g(re),typeof C=="function"&&C()})},[g,C,x,N,k,B,me,Se,Me]),en=o.useCallback(()=>ut(""),[ut]),gn=o.useCallback(()=>{Me(()=>{typeof C=="function"&&C()})},[C,Me]),In=t.jsxs("div",{className:`page-popup${Xe?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Pn,children:[t.jsxs("div",{ref:Le,className:`page-popup__panel ${lt?"":"page-popup__panel--measuring"} ${Ie==="center"?"page-popup__panel--center":Ie==="top"?"page-popup__panel--top":""}`,children:[t.jsx(ic,{title:Nn,subtitle:j?O.subtitle||O.label:Array.isArray(s)?s.join(" / "):void 0,desc:j?void 0:r,depth:j?O.depth:s,icon:j?O.icon:i,wrapperStyle:j?O.wrapperStyle:l,iconTooltip:j?O.iconTooltip:u,progressMax:dt,progressIndex:Fe,pageIndex:Fe,pageCount:dt,onBack:gn,onClose:gn}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${Ie==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:D?Zt:j?Ht:typeof w=="function"?w({registerOnNext:Oe,registerOnResult:at,panelRef:Le,setResultOverlay:Se}):w})}),t.jsx(sc,{onSettings:b,onNext:Rn,onResult:dn,useNoiseSettingBtn:!!(j?O.useNoiseSetting??!0:y),stepIndex:Ct,stepCount:Nt,pageIndex:Fe,pageCount:dt,resultOpen:!!(me&&!me.isEmpty)})]}),me&&!me.isEmpty&&(E??I3)({score:me.score,results:me.results||me.answers||[],contextsLength:me.results?me.results.length:me.answers?me.answers.length:0,onReplay:()=>{if(z.current=Date.now(),me!==Ln){const{correct:re,total:ve}=vc(me);ze.current.push({correct:re,total:ve})}if(Ke(),Ue(re=>re+1),j){if(tt(mr()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(D){tt(mr());return}try{const re=Le.current&&Le.current._childOnResult;typeof re=="function"&&re({replay:!0})}catch{}},onClose:fn,pending:me===Ln}),me?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":R("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${e.contentFull?" page-popup__content--full":""}`,children:t.jsx("div",{className:"page-popup__empty",children:R("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(pe,{htmlType:"button",variant:"main",size:48,onClick:fn,label:R("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(ra,{message:bt,position:"top",onClose:en})]}),bn=t.jsx(Ro.Provider,{value:$e,children:In});return typeof document<"u"&&document.body?Xt.createPortal(bn,document.body):bn}const $n=F3;$n.Page=pr,$n.ListenStep=pc,$n.ConfirmStep=mc,$n.ConfirmWithTextStep=hc,$n.OrderListStep=Cc,$n.CardStep=fc,$n.CardOrderStep=T3;function O3({label:e,homonum:n}){const a=Xn()?.(e,n)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:u}=Ao(a);return i?t.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?0:1},onLoad:l,onError:u})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function xc({words:e,anchorRect:n}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,u=window.innerWidth;let d=n.left+n.width/2-i/2,c=n.top-l-8;c<8&&(c=n.bottom+8),d=Math.max(8,Math.min(d,u-i-8)),s({left:d,top:c})},[n]),!n||e.length===0?null:Xt.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(O3,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const H3=new Intl.Collator("ko");function z3({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:u,maxSelect:d,onClearSelection:c,onPrint:p,onPrintEmpty:m,className:C,emptyHint:g,sectionType:v="page",disc:b}){const{t:y,i18n:w}=ye.useTranslation(),h=w.language?.startsWith("ko")??!1,{anchorRect:_,openAt:f,close:A}=wa(),[x,N]=o.useState(null),k=o.useCallback(()=>{A(),N(null)},[A]);db(k,!!x);const B=(r??"").trim(),E=/^[^,[\]\s]+$/.test(B)?B:"",S=E.length>0,z=r===void 0&&n===void 0,R=S?"match":z?"original":"ganada",[q,j]=o.useState(()=>R),[L,O]=o.useState("50"),[Z,te]=o.useState(1),[W,U]=o.useState(S);W!==S&&(U(S),j(R));const P=q==="match"&&!S||q==="original"&&!z?R:q,F=o.useMemo(()=>[...S?[{value:"match",label:y("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...z?[{value:"original",label:y("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:y("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:y("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:y("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:y("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:y("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:y("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[y,S,z]),D=o.useMemo(()=>["10","25","50","100"].map(se=>({value:se,label:y("wordSearch.pageSize",{count:Number(se),defaultValue:`${se}\uAC1C\uC529 \uBCF4\uAE30`})})),[y]),H=se=>se.words?.[0],M=o.useMemo(()=>{const se=[...E].length,ge=CC(E),fe=new Map;return xe=>{let $e=fe.get(xe);return $e===void 0&&($e=ge((xe.words?.[0]?.label??"").slice(0,se))?0:1,fe.set(xe,$e)),$e}},[E]),I=o.useCallback((se,ge)=>{const fe=Le=>H(Le)?.label??"",xe=Le=>H(Le)?.syllables??[...fe(Le)].length,$e=Le=>(Le.words??[]).reduce((Qe,Ue)=>{const ze=parseInt(Ue.grade??"",10);return Number.isFinite(ze)&&ze<Qe?ze:Qe},999);switch(P){case"match":return M(se)-M(ge)||H3.compare(fe(se),fe(ge));case"ganada":return fe(se).localeCompare(fe(ge),"ko");case"ganada_desc":return fe(ge).localeCompare(fe(se),"ko");case"syllable":return xe(se)-xe(ge)||fe(se).localeCompare(fe(ge),"ko");case"syllable_desc":return xe(ge)-xe(se)||fe(se).localeCompare(fe(ge),"ko");case"grade":return $e(se)-$e(ge)||fe(se).localeCompare(fe(ge),"ko");case"grade_desc":return $e(ge)-$e(se)||fe(se).localeCompare(fe(ge),"ko");default:return 0}},[P,M]),$=o.useMemo(()=>s.slice().sort(I),[s,I]),K=Number(L)||10,ne=o.useMemo(()=>(i??[]).flatMap(se=>se.items.slice().sort(I).map(ge=>({item:ge,label:se.label}))),[i,I]),X=i?ne.length:$.length,ae=Math.max(1,Math.ceil(X/K)),ue=Math.min(Z,ae),le=o.useMemo(()=>$.slice((ue-1)*K,ue*K),[$,ue,K]),be=o.useMemo(()=>{if(!i)return null;const se=ne.slice((ue-1)*K,ue*K),ge=new Map;for(const{item:fe,label:xe}of se)ge.has(xe)||ge.set(xe,[]),ge.get(xe).push(fe);return[...ge.entries()].map(([fe,xe])=>({label:fe,items:xe}))},[i,ne,ue,K]);o.useEffect(()=>{te(1)},[q,L,X,r]);const V=X>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(ln,{size:40,options:F,value:P,onChange:j,ariaLabel:y("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(ln,{size:40,options:D,value:L,onChange:O,ariaLabel:y("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(er,{page:ue,totalPages:ae,onChange:te})]}):void 0,ee=se=>{u&&u(se)},oe=n!==void 0&&a?t.jsxs(t.Fragment,{children:[y("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),y("wordSearch.resultTitleSuffix",{unit:h?wC(a):a})]}):void 0,Be=n!==void 0&&n>0&&d!==void 0&&a?y("wordSearch.resultDisc",{unit:h?BC(a):a,max:d,selected:l.length}):void 0,Ce=b??Be;return t.jsxs(sa,{type:v,className:De("word-search-result-block",C),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(oe||V||Ce)&&t.jsxs("div",{className:"word-search-result-block__head",children:[t.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&t.jsx(Ze,{icon:e,className:"word-search-result-block__head-icon"}),oe&&t.jsx("span",{className:"word-search-result-block__title h3",children:oe})]}),V&&t.jsx("div",{className:"word-search-result-block__head-actions",children:V}),Ce&&t.jsx("div",{className:"word-search-result-block__head-disc body-3",children:Ce})]}),(i?i.length===0:s.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:y("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(be??[]).map(se=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:se.items.map(ge=>{const fe=l.includes(ge.id);return t.jsx("div",{onMouseEnter:xe=>{f(xe.currentTarget),N(ge.words??[])},onMouseLeave:k,children:t.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(ge.words??[]).map(xe=>xe.label),subLabel:(ge.words??[]).some(xe=>xe.subLabel)?(ge.words??[]).map(xe=>xe.subLabel):void 0,selected:fe,onClick:()=>ee(ge.id),minWidth:200})},ge.id)})})},se.label)):t.jsx("div",{className:"word-search-result-block__items",children:le.map(se=>{const ge=l.includes(se.id);return t.jsx("div",{onMouseEnter:fe=>{f(fe.currentTarget),N(se.words??[])},onMouseLeave:k,children:t.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(se.words??[]).map(fe=>fe.label),subLabel:(se.words??[]).some(fe=>fe.subLabel)?(se.words??[]).map(fe=>fe.subLabel):void 0,selected:ge,onClick:()=>ee(se.id),minWidth:200})},se.id)})}),x&&_&&t.jsx(xc,{words:x,anchorRect:_})]}),ae>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(er,{page:ue,totalPages:ae,onChange:te})}),(c||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[c&&t.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:y("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:c}),p&&t.jsx("div",{onClick:l.length===0?m:void 0,children:t.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:y("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function V3(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,s=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:s}})}function W3({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:u,onSelect:d,placeholder:c="-",className:p,title:m,titleIcon:C,disc:g,showInfoButton:v=!0,onClearPhoneme:b,onSearch:y,onSearchEmpty:w,searchDisabled:h=!1,searchLabel:_,searchChecking:f=!1,pairMode:A=!1,sectionType:x="page",beforeSearchContent:N,beforeContent:k,afterContent:B,hideCountControl:E=!1,ordinal:S=!1}){const{t:z}=ye.useTranslation(),R=o.useMemo(()=>z("wordPairs.infoNotes",{returnObjects:!0}),[z]),q=o.useMemo(()=>Array.from({length:s-i+1},(M,I)=>{const $=i+I;return{key:String($),label:z("wordPairs.count",{n:$})}}),[z,s,i]),j=o.useMemo(()=>z("wordPairs.ordinals",{returnObjects:!0}),[z]),L=o.useCallback(M=>S?z("wordPairs.phonemeOrdinalLabel",{ordinal:j[M-1]??M}):a===1?z("wordPairs.phonemeSingleLabel","\uC74C\uC808"):z("wordPairs.phonemeN",{n:M}),[S,j,a,z]),O=o.useCallback(M=>S?z("wordPairs.phonemeContrastOrdinalLabel",{ordinal:j[M-1]??M}):a===1?z("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):z("wordPairs.phonemeContrast",{n:M}),[S,j,a,z]),Z=o.useCallback((M,I)=>I?t.jsxs(t.Fragment,{children:[M,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):M,[]),{anchorRect:te,toggleAt:W,close:U}=wa(),P=o.useCallback(M=>r(Number(M)),[r]),F=tn("(max-width: 767px)"),D=o.useCallback(M=>V3(M,e).map(({label:I,value:$,displayLabel:K})=>{const ne=!!$&&$!=="\uC5C6\uC74C";return t.jsxs("span",{className:De("phoneme-select-block__cell-jamo-part",$?"":"phoneme-select-block__cell-jamo-part--empty",ne?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${$==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:$==="\uC5C6\uC74C"?"x":$||c}),ne&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:K??I})]},I)}),[e,c]),H=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(pe,{htmlType:"button",size:40,type:F?"dot":void 0,icon:"info",label:F?void 0:z("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:z("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:te?"is-selected":void 0,"aria-expanded":!!te,"aria-haspopup":"dialog",onClick:M=>W(M.currentTarget)})}),te&&t.jsx(Vn,{title:z("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:R,anchorRect:te,onClose:U})]});return t.jsxs(sa,{type:x,title:m,icon:C,disc:g,action:v?H:void 0,className:De("phoneme-select-block",p),children:[k,!E&&t.jsx("div",{className:"phoneme-select-block__controls",children:t.jsx(An,{options:q,value:String(a),onChange:P,size:40,ariaLabel:z("wordPairs.countLabel","\uC74C\uC18C \uAC1C\uC218"),className:"phoneme-select-block__count-control"})}),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((M,I)=>{const $=n[I*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:D($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(I+1)})]},I)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:z("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((M,I)=>{const $=n[I*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:D($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:O(I+1)})]},I)})})]}):n.map((M,I)=>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:D(M)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(I+1)})]},I))}),(l||u)&&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((M,I)=>{const $=n[I*2]??{};return t.jsx(kn,{title:Z(L(I+1),I===0),sections:u?u($,I*2):l,selected:$,onSelect:d?.(I*2),align:"newline"},I)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((M,I)=>{const $=n[I*2+1]??{};return t.jsx(kn,{title:O(I+1),sections:u?u($,I*2+1):l,selected:$,onSelect:d?.(I*2+1),align:"newline"},I)})})]}):n.map((M,I)=>t.jsx(kn,{title:Z(L(I+1),I===0),sections:u?u(M,I):l,selected:M,onSelect:d?.(I),align:"newline"},I))})}),N&&t.jsx("div",{className:"phoneme-select-block__before-search",children:N}),(b||y||f)&&(()=>{const M=n.every(I=>Object.entries(I).every(([$,K])=>!K||$==="\uC885\uC131"&&K==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:M?w:void 0,children:[b&&t.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:z("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:M,onClick:M?void 0:b}),y?t.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:f?t.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:_??z("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:M||h||f,onDisabledClick:f?()=>{}:void 0,"aria-busy":f||void 0,onClick:y}):f?t.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??z("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),B]})}function q3({title:e,sections:n,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d,headerAction:c,className:p}){const{t:m}=ye.useTranslation();return t.jsx(kn,{className:p,title:e??m("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d,headerAction:c,align:"inline"})}function U3({title:e,headerAction:n,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=ye.useTranslation();return a.length===0?null:t.jsx(kn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:s,align:"newline"})}function G3({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:u,onInputModeChange:d,className:c}){const{t:p}=ye.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")},C=y=>p("wordPairs.count",{n:y}),g=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:t.jsx(Ea,{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(Ea,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[C(1),C(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:t.jsx(Ea,{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.")]})}],v={[m.searchMode]:n==="explicit"?m.explicit:n==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:C(i),[m.inputMode]:u==="phoneme"?m.pronInput:m.charInput},b=(y,w)=>{w===m.searchMode?a(y===m.explicit?"explicit":y===m.pick?"pick":"include"):w===m.phonemeOrder?s(y===m.orderMatch?"ordered":"unordered"):w===m.count?l(y===C(2)?2:1):w===m.inputMode&&d(y===m.pronInput?"phoneme":"word")};return t.jsx(kn,{className:c,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:v,onSelect:b,align:"inline"})}function K3(e){const{title:n,items:a,columns:r,gridTemplateColumns:s,mobileGridTemplateColumns:i,searchPlaceholder:l,searchFn:u,defaultSortKey:d,defaultSortAsc:c=!0,selectedId:p,selectedIds:m,onSelect:C,onClose:g,pageSizeOptions:v=[10,25,50,100],initialPageSize:b,emptyText:y,countLabel:w,topContent:h,className:_=""}=e,{t:f}=ye.useTranslation(),A=l??f("common.search","\uAC80\uC0C9"),x=y??f("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[N,k]=o.useState(""),[B,E]=o.useState(d??r[0]?.key??""),[S,z]=o.useState(c),[R,q]=o.useState(String(b??v[0]??10)),[j,L]=o.useState(1);o.useEffect(()=>{L(1)},[N,R]);const O=u!==null,Z=o.useCallback(($,K)=>{if(!K)return!0;const ne=K.toLowerCase();return r.some(X=>{const ae=$[X.key];return ae==null?!1:String(ae).toLowerCase().includes(ne)})},[r]),te=u??Z,W=o.useMemo(()=>{const $=O?a.filter(K=>te(K,N)):a;return B?[...$].sort((K,ne)=>{const X=K[B],ae=ne[B];return X===ae?0:eo(X,ae,S)}):$},[a,N,B,S,O,te]),U=Math.max(1,Math.ceil(W.length/Number(R)));j>U&&L(U);const P=Math.min(j,U),F=W.slice((P-1)*Number(R),P*Number(R)),D=o.useCallback($=>{B===$?z(K=>!K):(E($),z(!0)),L(1)},[B]),H=o.useMemo(()=>{if(typeof w=="function"){const $=W.length,K=w($);if(typeof K=="string"){const ne=K.lastIndexOf(String($));if(ne>=0)return{prefix:K.slice(0,ne),suffix:K.slice(ne+String($).length)}}return{label:K}}if(typeof w=="string"&&w.includes("{n}")){const[$,K]=w.split("{n}");return{prefix:$,suffix:K}}return{prefix:f("common.totalCountPrefix","\uCD1D "),suffix:f("common.totalCountSuffix","\uAC1C")}},[w,W.length,f]),M=o.useMemo(()=>r.map($=>({label:$.label,onClick:$.sortable!==!1?()=>D($.key):void 0,className:$.className,sortDir:$.sortable!==!1&&B===$.key?S?"asc":"desc":null})),[r,B,S,D]),I=o.useMemo(()=>v.map($=>({value:String($),label:f("common.pageSizeLabel",{n:$})})),[v,f]);return t.jsxs(Tn,{className:`popup-list ${_}`,title:n,onClose:g,children:[h,"label"in H&&t.jsx("p",{className:"toolbar__count body-1",children:H.label}),t.jsx(po,{count:"label"in H?void 0:{value:W.length,prefix:H.prefix,suffix:H.suffix},search:O?{value:N,onChange:k,placeholder:A}:void 0,pageSize:{options:I,value:R,onChange:q},pagination:{page:P,total:U,onChange:L}}),t.jsx(xo,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:i,resizable:!0,fields:M,items:F,onRowClick:C,renderRow:$=>{const K=m!=null?$.id!=null&&m.has($.id):p!=null&&$.id===p;return r.map(ne=>({content:ne.render?ne.render($):$[ne.key]??"",className:De(ne.className,K&&"popup-list__row--selected")}))},empty:x})]})}function _c(e){const{title:n,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:u,hideCancel:d=!1,extraAction:c,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:C,closeOnConfirm:g=!0,onClose:v,inline:b,size:y="small",className:w,initialFocus:h="close"}=e,{t:_}=ye.useTranslation(),f=o.useRef(null);o.useEffect(()=>{if(b||h==="close")return;const E=f.current?.closest(".popup-panel"),S=Array.from(E?.querySelectorAll(".popup-footer--buttons button")??[]),z=h==="confirm"?S[S.length-1]:d?void 0:S[c?1:0];z&&!z.disabled&&z.focus()},[]);const A=o.useRef(!1),[x,N]=o.useState(!1),k=E=>{let S=!1;return{close:()=>{S=!0,E()},\uB2EB\uC558\uB098:()=>S}},B=async E=>{if(A.current)return;A.current=!0;const S=typeof document<"u"?document.activeElement:null;N(!0);let z=!1;try{z=await E()}catch(R){typeof console<"u"&&console.error(R)}finally{z||(A.current=!1,N(!1),requestAnimationFrame(()=>{const R=document.activeElement;(!R||R===document.body)&&S?.isConnected&&S.focus()}))}};return t.jsxs(Tn,{title:n,onClose:v,closeDisabled:x,inline:b,size:y,className:De("confirm-popup",r!=null&&"confirm-popup--has-top",w),buttons:[...c?[{label:c.label,variant:c.variant??"default",disabled:c.disabled||x,onClick:async({closeWithAnimation:E})=>{await B(async()=>{const S=k(E);await c.onClick(S.close);const z=c.closeOnClick??!0;return z&&E(),z||S.\uB2EB\uC558\uB098()})}}]:[],...d?[]:[{label:u??_("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:x,onClick:({closeWithAnimation:E})=>E()}],{label:l??_("common.confirm","\uD655\uC778"),variant:p,disabled:m||x,onClick:async({closeWithAnimation:E})=>{await B(async()=>{const S=k(E);return await C(S.close),g&&E(),g||S.\uB2EB\uC558\uB098()})}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&t.jsx(dr,{children:s.map((E,S)=>t.jsx(Mn,{label:E.label,children:t.jsx("span",{className:"panel-row__text body-2",children:E.value})},S))}),t.jsx("p",{ref:f,className:"body-2 confirm-popup__message",children:a}),i]})}function Y3(e,n,a={}){const{t:r}=ye.useTranslation(),[s,i]=o.useState(!1),l=o.useRef(!1),u=o.useCallback(()=>{l.current=!0},[]),d=o.useCallback(()=>l.current?(l.current=!1,!0):e?(i(!0),!1):!0,[e]),c=s?t.jsx(_c,{title:a.title??r("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:a.message??r("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:a.confirmLabel??r("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{i(!1),n()},onClose:()=>i(!1)}):null;return{beforeClose:d,discardPopup:c,allowClose:u}}function Z3({onApply:e,onCancel:n}){const{t:a}=ye.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[u,d]=o.useState(null),c=o.useRef(null);o.useEffect(()=>{c.current?.focus()},[]);const p=o.useCallback(async g=>{const v=r.trim();if(v){l(!0),d(null);try{await e(v),g()}catch(b){d(ri(b)),l(!1),requestAnimationFrame(()=>c.current?.focus())}}},[r,e]),m=o.useCallback((g,v)=>{g.key==="Enter"&&!g.nativeEvent.isComposing&&p(v)},[p]),C=g=>{s(g.target.value),d(null)};return t.jsx(Tn,{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:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:g})=>{p(g)}}],children:({closeWithAnimation:g})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:c,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:C,onKeyDown:v=>m(v,g),disabled:i,autoComplete:"off",spellCheck:!1}),u&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const wc=["var(--color-main)","var(--color-sub)"],X3=2e3;function J3(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 Jo({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const b=Math.floor(n/2),y=n-b,w=(h,_)=>Array.from({length:h}).map((f,A)=>{const x=6+Math.random()*12,N=Math.round(Math.min(18,x*Math.min(1.5,1+r*.4))),k=wc[Math.floor(Math.random()*wc.length)],B=Math.random()*300,E=(360+Math.random()*260)*r*1.2,S=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,z=Math.cos(S)*E,R=Math.sin(S)*E*1.35,q=Math.random()*720-360,j=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),L=Math.random()>.7?"50%":"3px";return{id:`${_}-${A}`,side:_,size:N,color:k,delay:B,vx:z,vy:R,angularVel:q,life:j,borderRadius:L}});return[...w(b,"left"),...w(y,"right")]},[n,r]),u=o.useRef(null),d=o.useRef({}),c=o.useRef(null),p=o.useRef(s);o.useEffect(()=>{p.current=s},[s]);const m=o.useRef(null),C=o.useRef(null),g=()=>{if(typeof document>"u")return null;let b=document.querySelector("[data-ihab-effect-root]");return b||(b=document.createElement("div"),b.className="app-effect",b.dataset.ihabEffectRoot="",b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="99998",document.body.appendChild(b)),b};if(typeof document<"u"&&C.current==null&&(C.current=g()),o.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 b=1200,y=performance.now(),w=C.current&&C.current!==document.body?C.current.getBoundingClientRect():null,h=Math.max(60,(window.innerHeight||800)*.05),_=U=>Math.max(40,(U||window.innerWidth)*.02),f=w?.width||window.innerWidth||375,A=w?.height||window.innerHeight||812,x=U=>{const P=[...U].sort((F,D)=>F-D);return P[Math.floor(P.length/2)]||1},N=x(l.map(U=>Math.abs(U.vy))),k=x(l.map(U=>Math.abs(U.vx))),B=Math.sqrt(2*b*(A*.72+h))/N,E=N*B/b,S=f*.5/(k*E),z=(U,P,F)=>Math.min(F,Math.max(P,U)),R=z(B,.8,2.4),q=z(S,.7,2.2),j=a>0?a/X3:1,L=l.map(U=>({...U,life:U.life*j,vx:U.vx*q,vy:U.vy*R,startTime:y+U.delay,ended:!1})),O=w?{x:w.left-_(w.width),y:w.top+w.height+h}:{x:-_(window.innerWidth),y:window.innerHeight+h},Z=w?{x:w.left+w.width+_(w.width),y:w.top+w.height+h}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+h},te=U=>{let P=!1;for(const F of L){const D=d.current[F.id];if(!D||!D)continue;if(U<F.startTime){D.style.display="none",P=!0;continue}if(!F._inited){const le=F.side==="left"?O.x:Z.x,be=F.side==="left"?O.y:Z.y;D.style.left=`${le}px`,D.style.top=`${be}px`,D.style.transform="translate3d(0px, 0px, 0)",D.style.display="block",D.style.zIndex="100000",typeof F.color=="string"&&F.color.startsWith("var(")&&(D.style.background=J3(D,F.color)??"#FF0060"),F._inited=!0}const H=(U-F.startTime)/1e3;if(H<0)continue;const M=F.life/1e3;if(H>=M){D.style.opacity="0",D.style.display="none",F.ended=!0;continue}P=!0;const I=F.side==="left"?O.x:Z.x,$=F.side==="left"?O.y:Z.y,K=I+F.vx*H,ne=$+F.vy*H+.5*b*H*H,X=(F.angularVel||0)*H,ae=K-I,ue=ne-$;D.style.transform=`translate3d(${ae}px, ${ue}px, 0) rotate(${X}deg)`,D.style.opacity=`${Math.max(0,1-H/M)}`}P?c.current=requestAnimationFrame(te):p.current?.()};c.current=requestAnimationFrame(te);const W=setTimeout(()=>{try{if((C.current?C.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 F=document.createElement("span");F.className=`confetti confetti--${P.side}`,F.setAttribute("aria-hidden","true"),F.style.display="none",F.style.position="fixed",F.style.left="0px",F.style.top="0px",F.style.width=`${P.size}px`,F.style.height=`${Math.max(4,P.size*.6)}px`,F.style.background=P.color,F.style.borderRadius=P.borderRadius,F.style.transform="translate3d(0,0,0)",F.style.opacity="0",U.appendChild(F),d.current[P.id]=F}(document.body||C.current).appendChild(U),m.current=U}}catch{}},300);return()=>{if(c.current&&cancelAnimationFrame(c.current),clearTimeout(W),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const v=t.jsx("div",{className:"party-container",ref:u,children:l.map(b=>t.jsx("span",{"aria-hidden":!0,ref:y=>{d.current[b.id]=y},className:`confetti confetti--${b.side}`,style:{width:`${b.size}px`,height:`${Math.max(4,b.size*.6)}px`,background:b.color,borderRadius:b.borderRadius}},`${b.id}-${i}`))});return typeof document<"u"?Xt.createPortal(v,C.current||document.body):v}const Qo=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function Q3({trigger:e=0,active:n=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const u=l.detail??{};r(d=>({n:(d?.n??0)+1,count:Qo(u.count),strength:Qo(u.strength),duration:Qo(u.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const s=o.useCallback(()=>r(null),[]);return t.jsxs(t.Fragment,{children:[t.jsx(Jo,{active:n,trigger:e}),a&&t.jsx(Jo,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function e7({title:e,sub:n,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:u,backLabel:d,wrap:c=!1}){const{t:p}=ye.useTranslation();Zg(typeof e=="string"?e:l??null);const m=d??p("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:c?"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:[u&&t.jsx(pe,{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:u}),t.jsx("h1",{className:"page-title__title h1",children:e}),s&&t.jsx("div",{className:"page-title__badge",children:t.jsx(xt,{label:s,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 t7(e){return e??""}const Ac=o.createContext({words:[],loading:!1});function n7(){return o.useContext(Ac)}function a7({words:e,loading:n,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:d,children:c}){return t.jsx(Ac.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:d},children:c})}function r7({items:e,actions:n,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return t.jsx("section",{className:De("summary-strip",r&&"summary-strip--flat",s),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((u,d)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:u.label}),t.jsx("p",{className:"summary-strip__value body-3b",title:typeof u.value=="string"||typeof u.value=="number"?String(u.value):void 0,children:u.value})]},d))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const o7=(e,n)=>`${e} / ${n}`;function s7({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:s=o7,pageWidth:i,pageHeight:l,margin:u,className:d,style:c}){const{t:p}=ye.useTranslation(),m=o.useRef(null),C=o.useRef(null),g=o.useRef(null),v=o.useRef(null),[b,y]=o.useState(null),[w,h]=o.useState(!1);o.useEffect(()=>{const j=m.current;if(!j)return;const L=()=>h(j.scrollWidth>j.clientWidth+1);if(L(),typeof ResizeObserver>"u")return;const O=new ResizeObserver(L);return O.observe(j),()=>O.disconnect()},[b]);const _=e.map(j=>`${j.id}\0${j.section??""}\0${j.group??""}`).join(""),f=b&&b.shape===_?b.pages:null,[A,x]=o.useState(0);o.useEffect(()=>{const j=v.current;if(!j||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>x(j.offsetHeight));return L.observe(j),()=>L.disconnect()},[]);const[N,k]=o.useState(0);o.useEffect(()=>{const j=C.current;if(!j||typeof ResizeObserver>"u")return;let L=null;const O=typeof requestAnimationFrame=="function"?W=>requestAnimationFrame(W):W=>setTimeout(W,16),Z=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:W=>clearTimeout(W),te=new ResizeObserver(()=>{L==null&&(L=O(()=>{L=null,k(W=>W+1)}))});return Array.from(j.children).forEach(W=>te.observe(W)),()=>{te.disconnect(),L!=null&&Z(L)}},[_]),o.useLayoutEffect(()=>{const j=C.current,L=v.current;if(!j||!L)return;const O=M=>M.getBoundingClientRect().height||M.offsetHeight,Z=new Map;g.current?.querySelectorAll("[data-chrome-section]").forEach(M=>{Z.set(M.dataset.chromeSection??"",O(M))});const te=M=>O(L)-(Z.get(M??"")??0),W=Array.from(j.children).map(M=>O(M)),U=[];e.forEach((M,I)=>{const $=U[U.length-1],K=$?e[$[0]]:void 0;K&&M.group!=null&&K.group===M.group&&K.section===M.section?$.push(I):U.push([I])});const P=[];let F=[],D=0;const H=()=>{F.length&&P.push(F),F=[],D=0};U.forEach(M=>{const I=M.reduce((K,ne)=>K+W[ne],0),$=te(e[M[0]].section);F.length&&e[F[0]].section!==e[M[0]].section&&H(),I>$?M.forEach(K=>{F.length&&D+W[K]>$+.01&&H(),F.push(K),D+=W[K]}):(F.length&&D+I>$+.01&&H(),M.forEach(K=>F.push(K)),D+=I)}),H(),y(M=>M&&M.shape===_&&JSON.stringify(M.pages)===JSON.stringify(P)?M:{shape:_,pages:P})},[_,A,i,l,u,N]);const B=io,E=B,S=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:E,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),z=(j,L,O)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:O!=null&&n?.[O]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:S}),t.jsx("span",{className:"report-doc__page-no",children:s(j,L)})]})}),R=Array.from(new Set(e.map(j=>j.section??""))),q={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...u?{"--report-margin":u}:null,...c};return t.jsxs("div",{ref:m,className:De("report-doc",d),style:q,tabIndex:w?0:void 0,role:w?"group":void 0,"aria-label":w?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:v,className:"report-doc__ruler"}),t.jsx("div",{ref:g,children:R.map(j=>{const L=z(1,1,j||void 0);return t.jsxs("div",{"data-chrome-section":j,children:[L.header,L.footer]},j)})}),t.jsx("div",{ref:C,className:"report-doc__measure-blocks",children:e.map(j=>t.jsx("div",{children:j.content},j.id))})]}),f&&t.jsx("div",{className:"report-doc__pages",children:f.map((j,L)=>{const{header:O,footer:Z}=z(L+1,f.length,e[j[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[O,j.map(te=>t.jsx("div",{children:e[te].content},e[te].id)),Z]},L)})})]})}function i7({title:e,fields:n,columns:a=4,className:r,style:s}){return t.jsxs("div",{className:De("report-info",r),style:{"--report-info-cols":String(a),...s},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))})]})}const Kn=new Map;let hr=null;const l7=12;function u7(e){for(let n=e.parentElement;n&&n!==document.body;n=n.parentElement){const a=window.getComputedStyle(n);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return n}return document}function Cr(){const e=new Map;for(const n of Kn.keys()){if(!n.isConnected)continue;const a=u7(n),r=e.get(a)??[];r.push(n),e.set(a,r)}for(const n of e.values()){n.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of n){a>0?r.style.setProperty("--update-alert-stack-offset",`${a}px`):r.style.removeProperty("--update-alert-stack-offset");const s=r.getBoundingClientRect().height;s>0&&(a+=s+l7)}}}function c7(e){return typeof window>"u"?()=>{}:(Kn.set(e,(Kn.get(e)??0)+1),Kn.get(e)===1&&typeof ResizeObserver<"u"&&(hr??(hr=new ResizeObserver(()=>Cr())),hr.observe(e)),Cr(),()=>{const n=(Kn.get(e)??1)-1;if(n>0){Kn.set(e,n),Cr();return}Kn.delete(e),hr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),Cr()})}function d7({title:e,message:n,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:u}=ye.useTranslation(),d=a??u("common.update","\uC5C5\uB370\uC774\uD2B8"),c=o.useRef(null),p=o.useRef(!1);return o.useLayoutEffect(()=>{const m=c.current,C=m?.parentElement?.closest(".update-alert-stack")??m,g=C?c7(C):null;return()=>{g?.(),p.current&&m&&m.contains(document.activeElement)&&Ga(m)}},[]),t.jsxs("div",{ref:c,className:De("update-alert",l),role:"alert",children:[i&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{p.current=!0,i()},"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"}),t.jsxs("div",{className:"update-alert__top",children:[t.jsx("div",{className:"update-alert__icon",children:s??t.jsx(ds,{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(pe,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}function p7({title:e,titleLevel:n=3,description:a,topActions:r,children:s,footerLeft:i,footerRight:l,onClick:u,draggable:d,onDragStart:c,onDragEnd:p,className:m}){const C=n?`h${n}`:"div",g=i!=null||l!=null,v=s!=null&&s!==!1,b=o.useCallback(y=>{u&&y.target===y.currentTarget&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),u())},[u]);return t.jsxs("div",{className:De("training-card",u?"training-card--clickable":"",m),onClick:u,onKeyDown:u?b:void 0,role:u?"button":void 0,tabIndex:u?0:void 0,draggable:d,onDragStart:c,onDragEnd:p,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx(C,{className:"training-card__title h4",children:e}):e,r!=null&&t.jsx("div",{className:"training-card__top-actions",onClick:y=>y.stopPropagation(),children:r})]}),a!=null?typeof a=="string"?t.jsx("p",{className:"training-card__description body-3",children:a}):a:t.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),v&&t.jsx("div",{className:"training-card__body",children:s}),g&&t.jsxs("div",{className:"training-card__footer",children:[i!=null&&t.jsx("div",{className:"training-card__footer-left",children:i}),l!=null&&t.jsx("div",{className:"training-card__meta",children:l})]})]})}function m7({title:e,titleLevel:n=3,count:a,collapsed:r=!1,onToggle:s,sort:i,actions:l,empty:u=!1,emptyContent:d,dragOver:c=!1,onDragOver:p,onDragLeave:m,onDrop:C,children:g,className:v}){const{t:b}=ye.useTranslation(),y=o.useId(),w=n?`h${n}`:"span",h=s!=null,_=De("training-card-group",c&&"training-card-group--dragover",r&&"training-card-group--collapsed",h&&"training-card-group--collapsible",v);return t.jsxs("div",{className:_,onDragOver:p,onDragLeave:m,onDrop:C,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?y:void 0,children:[t.jsxs("header",{className:"training-card-group__header",children:[h&&t.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:r?b("common.expand","\uD3BC\uCE58\uAE30"):b("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:s}),typeof e=="string"?t.jsx(w,{id:y,className:"training-card-group__title h5b",children:e}):e,a!==void 0&&t.jsx("span",{className:"training-card-group__count body-3b",children:a}),(i||l!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:f=>f.stopPropagation(),children:[i&&t.jsx(ln,{size:40,options:i.options,value:i.value,placeholder:i.placeholder,onChange:i.onChange}),l]})]}),!r&&(u?t.jsx("div",{className:"training-card-group__empty body-3",children:d}):t.jsx("div",{className:"training-card-group__grid",children:g}))]})}const h7="speechear:saved_word_tables";function C7(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 f7(){try{const e=localStorage.getItem(h7);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(C7):[]}catch{return[]}}function Bc(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function es(e){return e.map(n=>n.homonum!=null?`${n.word}#${n.homonum}`:n.word).join("|")}function g7(e){const n=new Set;return e.map(a=>{let r=a.id;for(let s=2;n.has(r);s++)r=`${a.id}~${s}`;return n.add(r),r===a.id?a:{...a,id:r}})}function b7({title:e,titleIcon:n,disc:a,filterTitle:r,filterCollapsible:s,filterDefaultCollapsed:i,filterCollapsed:l,onFilterCollapsedChange:u,filterHeaderSummary:d,brand:c,code:p,items:m,onSaveComplete:C,onLoad:g,onRemoveItem:v,onReset:b,resetLabel:y,saveButtonLabel:w,secondarySaveButtonLabel:h,onReorder:_,showCellCount:f,onAddItem:A,className:x,renderSavePopup:N,renderWordSearch:k,hideControls:B,saveOnly:E,tableName:S,nameValue:z,onNameChange:R,descriptionValue:q,onDescriptionChange:j,namePlaceholder:L,descriptionPlaceholder:O,existingNames:Z,editingName:te,onCancel:W,initialItemsPerPage:U,renderCellAction:P,actionsLeftExtra:F}){const{t:D}=ye.useTranslation(),H=y??D("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),M=m===void 0,I=!!R,[$,K]=o.useState([]),ne=(z??"").trim(),X=ne||(L??"").trim(),ae=(q??"").trim()||(O??"").trim(),ue=(Z??[]).map(Ne=>Ne.trim().toLowerCase()),le=[te?.trim().toLowerCase(),...$].filter(Ne=>!!Ne),be=[...ue];for(const Ne of le){const He=be.indexOf(Ne);He!==-1&&be.splice(He,1)}const V=ne!==""&&be.includes(ne.toLowerCase()),[ee,oe]=o.useState(Array(4).fill(null)),[Be,Ce]=o.useState(4),[se,ge]=o.useState(null),fe=ee.slice(0,Be),xe=!!c?.show,[$e,Le]=o.useState(!0),[Qe,Ue]=o.useState(!0),ze=c&&{...c,top:$e,bottom:Qe},[Ie,st]=o.useState("landscape"),[Xe,Je]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[Ee,ke]=o.useState("\uD45C\uC2DC"),[Me,Ve]=o.useState(!0),[lt,Q]=o.useState(!0),ce=o.useRef(null),me=o.useRef([]),[Se,et]=o.useState(U==="all"?Number.POSITIVE_INFINITY:U??8),[Ke,bt]=o.useState("right"),[ut,it]=o.useState(!1),[tt,Ge]=o.useState(!1),{toastMessage:Ye,toastType:Re,showWarning:We,clearToast:Fe}=ul("warning"),ct=o.useCallback(()=>ge(null),[ge]);A&&!M&&!f&&an("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[Bt,Nt]=o.useState(()=>Math.max(m?.length??1,1)),Ct=M?Be:f?Math.max(Bt,m?.length??1,1):Math.max(m?.length??0,1),{width:dt,height:Oe}=ia[Ie],at=!M&&!f,ft=m?.length??0,Ot=Math.min(Se,Math.max(ft,1)),nt=at?Ot:Ct,Tt=at?Cu(m??[],nt):null,Yt=!!Tt&&Tt.length>1,Mt=M?fe.some(Ne=>Ne!==null&&Ne.length>1):(m??[]).some(Ne=>(Ne.words??[]).length>1),un=S?.trim()||`${di(va())} ${Mt?D("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):D("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,cn=o.useCallback(()=>Yt?me.current.filter(Ne=>Ne!==null):ce.current?[ce.current]:[],[Yt]),{print:dn,openNewWindow:Rn,downloadHtml:pn}=jo({getElements:cn,paperW:dt,paperH:Oe,fileName:un,onPopupBlocked:()=>{We(D("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."))}}),Pn=Ne=>{Ce(Ne),oe(He=>He.length>=Ne?He:[...He,...Array(Ne-He.length).fill(null)]),ge(null)},Nn=Ne=>{oe(He=>{const wt=[...He];return wt[Ne]=null,wt}),se===Ne&&ge(null)},Dt=Ne=>{if(se===null)return;const He=se;oe(zt=>{const Vt=[...zt];return Vt[He]=Ne.length>0?Ne:null,Vt});const wt=fe.findIndex((zt,Vt)=>Vt>He&&zt===null);ge(wt!==-1?wt:null)},Cn=M?fe.some(Ne=>Ne?.some(He=>!!He.colloquialPronunciation)):(m??[]).some(Ne=>(Ne.words??[]).some(He=>!!He.colloquialLabel)),Ht=o.useMemo(()=>Xn()?M?ee.slice(0,Be).flatMap(Ne=>(Ne??[]).map(He=>[He.word,He.homonum])):(m??[]).flatMap(Ne=>(Ne.words??[]).map(He=>[He.label,He.homonum])):[],[M,ee,Be,m]),[Zt,fn]=o.useState(!1);o.useEffect(()=>{if(Ht.length===0)return;let Ne=!1;return Promise.all(Ht.map(([He,wt])=>ei(He,wt))).then(He=>{Ne||fn(He.some(Boolean))},()=>{}),()=>{Ne=!0}},[Ht]);const en=Ht.length>0&&Zt,gn=o.useMemo(()=>[...M||f?[{label:D("wordTable.filter.columns","\uCE78 \uC218"),items:Qy.map(Ne=>({value:`${Ne}\uCE78`,displayLabel:D("wordTable.filter.column",{count:Ne})})),display:"segmented"}]:[],...at&&(m?.length??0)>0?[Tu(D,{hasPairs:Mt,itemCount:ft})]:[],...Yt?[e5(D)]:[]],[D,M,f,at,m?.length,Mt,ft,Yt]),In={...M||f?{[D("wordTable.filter.columns","\uCE78 \uC218")]:`${Ct}\uCE78`}:{},...at&&(m?.length??0)>0?{[D(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Ot}\uAC1C`}:{},...Yt?{[D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Lu[Ke]}:{}},bn=(Ne,He)=>{He===D("wordTable.filter.columns","\uCE78 \uC218")?M?Pn(parseInt(Ne)):Nt(parseInt(Ne)):He===D(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?et(Mu(parseInt(Ne),ft)):He===D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&bt($u(Ne))},re=M?g7(fe.filter(Ne=>Ne!==null&&Ne.length>0).map(Ne=>({id:es(Ne),words:Ne.map(Bc)}))):m??[],ve=()=>{M&&oe(Ne=>Ne.length>Be?Ne.slice(0,Be):Ne)},G=(Ne=!1)=>{if(Ge(Ne),I&&C){const He=X.trim().toLowerCase();He&&K(wt=>wt.includes(He)?wt:[...wt,He]),C(X,re,ae||void 0,Ne),ve();return}if(E&&C){C("",re,void 0,Ne),ve();return}if(C){it(!0);return}pn()},[ie,de]=o.useState(!1),[_e,we]=o.useState(""),je=_e.trim(),rt=je!==""&&ue.includes(je.toLowerCase()),yt=()=>{we(X?D("wordTable.save.copyName",{name:X,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),de(!0)},pt=()=>{!je||rt||!C||(C(je,re,ae||void 0,!0),ve(),de(!1))},_t=re.length===0,Rt=_t||I&&(X===""||V),Lt=()=>{if(_t){We(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(I&&X===""){We(D("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}I&&V&&We(D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},nn=t.jsx(la,{items:re,orientation:Ie,contentTypes:Xe,cutLine:Ee,showOutline:Me,showDivLine:lt,count:Ct});return t.jsxs(t.Fragment,{children:[t.jsxs(sa,{type:"page",icon:n,title:e,disc:a,className:De("word-table-block",x),children:[ie&&t.jsx(Tn,{size:"small",title:h??D("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>de(!1),footer:({closeWithAnimation:Ne})=>t.jsxs(t.Fragment,{children:[t.jsx(pe,{htmlType:"button",size:48,type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:Ne}),t.jsx(pe,{htmlType:"button",size:48,type:"bar",variant:"main",label:D("common.save","\uC800\uC7A5"),disabled:!je||rt,onClick:pt})]}),children:t.jsx(Un,{label:D("wordTable.save.nameLabel","\uC774\uB984"),value:_e,onChange:we,placeholder:D("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:pt,error:rt?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),ut&&C&&N?.({defaultName:typeof e=="string"?e:D("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:nn,previewW:dt,previewH:Oe,items:re,existingNames:f7().map(Ne=>Ne.name),saveAsNew:tt,onSave:(Ne,He)=>{C(Ne,re,He,tt),ve(),it(!1)},onCancel:()=>it(!1)}),(M||A)&&se!==null&&k?.({cellIndex:se,onConfirm:M?Dt:Ne=>{if(A){const He=Ne[0];if(He){const wt=new Set((m??[]).map(Vt=>Vt.id));let zt=es([He]);for(let Vt=2;wt.has(zt);Vt++)zt=`${es([He])}~${Vt}`;A({id:zt,words:[Bc(He)]})}}ge(null)},onClose:ct}),!B&&t.jsx(Do,{title:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d,hasImage:en,hasColloquial:Cn,contentTypes:Xe,orientation:Ie,showOutline:Me,cutLine:Ee,showDivLine:lt,setters:{setContentTypes:Je,setOrientation:st,setShowOutline:Ve,setCutLine:ke,setShowDivLine:Q,setShowTopInfo:Le,setShowBottomInfo:Ue},showCutLine:(at?nt:Ct)>1,showDivLine2:Mt,middleSections:gn,extraSelected:In,onExtraSelect:bn,showPaperBands:xe,showTopInfo:$e,showBottomInfo:Qe}),Yt&&Tt?t.jsx("div",{className:"word-table-block__pages",children:Tt.map((Ne,He)=>t.jsx(la,{orientation:Ie,contentTypes:Xe,cutLine:Ee,showOutline:Me,showDivLine:lt,count:nt,items:Ne,onRemoveItem:v,onReorder:_&&((wt,zt)=>_(wt+He*nt,zt+He*nt)),renderCellAction:P&&((wt,zt)=>P(wt+He*nt,zt)),brand:ze,code:p,contentRef:wt=>{me.current[He]=wt},pageNumber:{current:He+1,total:Tt.length},pageNumberPosition:Ke},He))}):t.jsx(la,{orientation:Ie,contentTypes:Xe,cutLine:Ee,showOutline:Me,showDivLine:lt,count:Ct,items:M?void 0:m??[],editCells:M?fe:void 0,activeCell:se,onActivateCell:M||A?ge:void 0,onRemoveCell:M?Nn:void 0,onRemoveItem:M?void 0:v,onReorder:M?void 0:_,renderCellAction:M?void 0:P,brand:ze,code:p,showFillerAdd:!!A,contentRef:ce}),I&&!B&&t.jsxs(dr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(Mn,{variant:"custom",label:D("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(Un,{required:!0,value:z??"",onChange:R,placeholder:L?L+D("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):D("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:D("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:V?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:Ne=>{(Ne.key==="Tab"&&!Ne.shiftKey||Ne.key===" ")&&!(z??"").trim()&&(L??"").trim()&&(Ne.preventDefault(),R?.(L??""))}})}),t.jsx(Mn,{variant:"custom",label:D("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Un,{value:q??"",onChange:j,placeholder:O?O+D("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):D("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:D("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:Ne=>{(Ne.key==="Tab"&&!Ne.shiftKey||Ne.key===" ")&&!(q??"").trim()&&(O??"").trim()&&(Ne.preventDefault(),j?.(O??""))}})})]})]}),!B&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!E&&b&&t.jsx(pe,{htmlType:"button",size:40,type:"bar",label:H,onClick:b}),!E&&F,!E&&g&&t.jsx(pe,{htmlType:"button",size:40,type:"bar",label:D("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:g}),!E&&t.jsx(pe,{htmlType:"button",size:40,type:"bar",label:D("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Rn})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[W&&t.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:W}),!E&&t.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:D("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:dn}),h&&t.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:h,onClick:()=>I?yt():G(!0),disabled:_t,onDisabledClick:()=>{We(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:w??D("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>G(!1),disabled:Rt,onDisabledClick:Lt})]})]}),t.jsx(ra,{message:Ye,type:Re,onClose:Fe})]})}function kc({items:e,className:n}){const a=e.length,r=a<=3?1:2,s=Math.ceil(a/r)||1,i=r*s;return t.jsx("div",{className:De("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,u)=>{const d=e[u];return d?t.jsx("div",{className:"word-table-thumb__cell",children:(d.words?.length?d.words:[{label:d.id}]).map((c,p)=>t.jsxs(o.Fragment,{children:[p>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:c.label})]},p))},u):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},u)})})}function y7({items:e,name:n,description:a,createdAt:r,code:s,published:i,publishedLabel:l,shared:u,sharedLabel:d,isNew:c,publisherName:p,publishedAt:m,likeCount:C,downloadCount:g,onPublisherClick:v,selected:b,onClick:y,onMore:w,titleNode:h,className:_}){const{t:f}=ye.useTranslation(),A=h!=null,x=p!=null||m!=null||C!=null||g!=null,N=k=>{k.target===k.currentTarget&&!A&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),y?.())};return t.jsxs("div",{className:De("word-table-button",b?"word-table-button--selected":"",x?"":"word-table-button--no-footer",_),role:"button",tabIndex:0,"aria-label":s?`${n} (${s})`:n,onClick:A?void 0:y,onKeyDown:N,children:[c&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":f("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(kc,{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:[h??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),w&&!A&&t.jsx(pe,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:f("common.moreFor",{name:n}),onClick:k=>{k.stopPropagation(),w(k)}})]}),(s||r||i||u)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta-left",children:t.jsx("span",{className:"word-table-button__meta caption-1",children:r?ci(r,f):""})}),t.jsxs("span",{className:"word-table-button__meta-right",children:[(i||u)&&t.jsxs("span",{className:"word-table-button__badges",children:[i&&t.jsx(xt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??f("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),u&&t.jsx(xt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:d??f("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),s&&t.jsx("span",{className:"word-table-button__code caption-1",children:s})]})]}),x&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[p&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:k=>{k.stopPropagation(),v?.()},children:p}),m&&t.jsx("span",{className:"training-card__date body-4",children:ci(m,f)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[C!=null&&t.jsx(xt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(C),"aria-label":f("common.likeCount",{count:C,defaultValue:`\uC88B\uC544\uC694 ${C}`})}),g!=null&&t.jsx(xt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(g),"aria-label":f("common.downloadCount",{count:g,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${g}`})})]})]})]})}/**
1048
+ `).map((l,u,d)=>t.jsxs(o.Fragment,{children:[l,u<d.length-1&&t.jsx("br",{})]},u))})}),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:io,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 ",s]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function $5({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:u,menuLabel:d}){const{t:c}=ye.useTranslation(),p=d??{open:c("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:c("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,C]=o.useState(!1),g=o.useId(),v=o.useRef(null);o.useEffect(()=>{if(!m)return;const w=zn(()=>{const f=document.getElementById(g);f&&f.contains(document.activeElement)&&v.current?.focus(),C(!1)}),h=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,_=f=>{f.matches&&C(!1)};return h&&(h.matches&&C(!1),h.addEventListener?.("change",_)),()=>{w(),h?.removeEventListener?.("change",_)}},[m,g]);const b=l?`${l} landing-header__inner`:"landing-header__inner",y=(w,h)=>u?u(w,{onClick:h}):t.jsx("a",{href:w.href,onClick:h,"aria-current":w.current?"page":void 0,children:w.label});return t.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[t.jsxs("div",{className:b,children:[e!=null&&(()=>{const w=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:w}):t.jsx("div",{className:"landing-header__brand",children:w})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map((w,h)=>t.jsx("span",{children:y(w)},`${h}:${w.href}`))}),t.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&t.jsx("button",{ref:v,type:"button",onClick:()=>C(w=>!w),"aria-expanded":m,"aria-controls":g,"aria-label":m?p.close:p.open,className:m?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:t.jsxs("span",{className:"landing-header__burger",children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})})]})]}),r.length>0&&t.jsx("nav",{id:g,hidden:!m,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map((w,h)=>t.jsx("span",{className:"landing-header__drawer-item",children:y(w,()=>C(!1))},`${h}:${w.href}`))})})]})}function R5({children:e,action:n,onClick:a,className:r}){const s=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:s,onClick:a,...lu(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const ca=9,P5=e=>Math.round(Math.min(ca,Math.max(0,e))/ca*100),I5=e=>e/100*ca,$a=2,Vu=.1,F5=e=>Math.min($a,Math.max(0,e)),O5=.1,H5=e=>Math.round(e*1e6)/1e6;function Ra(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return F5(n);const a=Math.min(ca,Math.max(0,Number(e.level)||0))/ca,r=Number(e.mainVolume);return r>0?a>0?H5(Math.min($a,Math.max(O5,a/r))):0:1}const Wu=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function qu(e){return Wu(e)}function Lo(e){return Wu(e)*Ra(e)}function $o(e,n=Ks()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,Lo(e)/a)}function Pa(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=Ra({level:a.level,mainVolume:a.mainVolume})),a}const Ia={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Ro=o.createContext(null);function lr(){return o.useContext(Ro)}const Po=e=>`${eC()}/${e}`,Uu=e=>Array.from({length:10},(n,a)=>Po(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),ur={get defaultNoise(){return Po("noise1.mp3")},get street(){return Uu("noise2")},get restaurant(){return Uu("noise3")},get buzz(){return Po("noise4.mp3")}};function z5(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return ur.defaultNoise;case"street":return ur.street[n];case"restaurant":return ur.restaurant[n];case"buzz":return ur.buzz;default:return null}}function V5({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=o.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const s=o.useRef(null),[i,l]=o.useState(null),u=o.useRef(null),d=o.useRef(null),c=o.useRef(null),p=o.useRef(null),m=o.useRef(0),C=o.useRef(null),g=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),C.current!==null&&(clearTimeout(C.current),C.current=null)},[]),v=o.useCallback((_,f=250)=>{const A=s.current;if(!A)return;const x=d.current;if(x){d.current=null;try{A.pause()}catch{}A.src=x,A.load()}if(!A.src)return;m.current+=1,g();try{Lr(),Ha(A).then(E=>{if(s.current===A)try{r.current?.("noise",E)}catch{}})}catch{}const N=A.paused?0:za(A);A.paused&&Sn(A,0),A.play().catch(()=>{});const k=performance.now(),B=()=>{const E=Math.min(1,(performance.now()-k)/f);try{Sn(A,N+(_-N)*E)}catch{}E<1?p.current=requestAnimationFrame(B):p.current=null};p.current=requestAnimationFrame(B)},[g]),b=o.useCallback((_=250,f)=>{const A=s.current;if(!A||A.paused){f?.();return}const x=++m.current;g();const N=performance.now(),k=za(A),B=()=>{const E=Math.min(1,(performance.now()-N)/_);try{Sn(A,k*(1-E))}catch{}if(E<1)p.current=requestAnimationFrame(B);else{p.current=null,C.current!==null&&(clearTimeout(C.current),C.current=null);try{A.pause()}catch{}f?.()}};p.current=requestAnimationFrame(B),C.current=setTimeout(()=>{if(C.current=null,m.current===x){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{A.paused||(Sn(A,0),A.pause(),f?.())}catch{}}},_+150)},[g]);o.useEffect(()=>{const _=document.createElement("audio");return _.loop=!0,_.crossOrigin="anonymous",s.current=_,()=>{g();try{_.pause(),_.src=""}catch{}s.current=null,u.current=null,d.current=null}},[g]);const y=e?$o(e.settings):0,w=!!e?.settings.enabled&&y>0;o.useEffect(()=>{if(!w)return;let _=0;const f=setInterval(()=>{const A=s.current;if(!A||A.paused){_=0;return}const x=n.current;if(x&&!x.paused&&!x.ended||a.current==="playing"){_=0;return}_+=1,_>=2&&(_=0,b())},400);return()=>clearInterval(f)},[b,w,n,a]),o.useEffect(()=>{const _=()=>{const f=s.current;if(document.hidden){if(f&&!f.paused){g();try{f.pause()}catch{}}return}if(!f||!f.paused)return;const A=n.current,x=!!A&&!A.paused&&!A.ended||a.current==="playing",N=c.current;x&&N?.enabled&&N.volume>0&&v(N.volume)};return document.addEventListener("visibilitychange",_),()=>document.removeEventListener("visibilitychange",_)},[g,v,n,a]),o.useEffect(()=>{c.current=e?{enabled:e.settings.enabled,volume:y,type:e.settings.type}:null},[e,e?.settings.enabled,y,e?.settings.type]);const h=o.useRef(null);return o.useEffect(()=>()=>{h.current?.(),h.current=null},[]),o.useEffect(()=>{const _=e?.settings,f=s.current;if(!f)return;const A=_?$o(_):0;if(!_||!_.enabled||A===0){b();return}if(u.current!==_.type){const x=z5(_.type);x&&(u.current=_.type,l(x),d.current=x,b(150,()=>{if(d.current!==x)return;d.current=null,f.src=x,f.load();const N=n.current;if(N&&!N.paused){h.current?.();const k=()=>{f.removeEventListener("canplay",k),h.current===B&&(h.current=null);const E=n.current,S=c.current;E&&!E.paused&&!E.ended&&S?.enabled&&S.volume>0&&v(S.volume)},B=()=>f.removeEventListener("canplay",k);h.current=B,f.addEventListener("canplay",k)}}))}else{const x=n.current,N=!!x&&!x.paused&&!x.ended||a.current==="playing";if(N&&d.current)v(A);else if(N&&f.paused&&f.src)v(A);else if(!f.paused)if(!N)b();else{g();const k=za(f),B=performance.now(),E=()=>{const S=Math.min(1,(performance.now()-B)/150);try{Sn(f,k+(A-k)*S)}catch{}S<1?p.current=requestAnimationFrame(E):p.current=null};p.current=requestAnimationFrame(E)}}},[e?.settings,e?.settings.enabled,y,e?.settings.type,g,v,b,n,a,c]),o.useEffect(()=>{const _=s.current;if(_)try{_.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:s,activeNoiseUrl:i,noiseSettingsRef:c,cancelNoiseFade:g,fadeInNoise:v,fadeOutNoise:b}}function W5({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:u,fadeInNoise:d,fadeOutNoise:c,noiseSettingsRef:p,onDoneRef:m,handleEndRef:C}){const g=o.useRef(null),v=o.useRef(0),b=o.useRef(null),y=o.useRef(0),w=o.useRef(!1);o.useEffect(()=>()=>{y.current++;try{if(b.current&&(cancelAnimationFrame(b.current),b.current=null),w.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}w.current=!1}}catch{}},[]);const h=(A,x=1)=>{try{const N=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(N*300/Math.max(.25,x)))}catch{return 1200}},_=o.useCallback(A=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!1)}catch{}return}const x=window.speechSynthesis,N=++y.current;try{try{x.cancel()}catch{}const k=A??e,B=Array.isArray(k)?k.filter(j=>!!j):[k||""];B.length===0&&B.push("");const E=Math.max(.3,Math.min(3,n));v.current=B.reduce((j,L)=>j+h(L,E||1),0),g.current=performance.now(),i(0),l("playing"),u("playMode");const S=p.current;S?.enabled&&(S?.volume??0)>0&&d(S.volume);const z=()=>{try{const j=g.current||performance.now(),L=performance.now()-j,O=v.current||1200,Z=Math.min(1,L/O);try{r.current&&(r.current.style.left=`${Z*100}%`),s.current&&s.current.style.setProperty("--progress",String(Z))}catch{}Z<1&&(b.current=requestAnimationFrame(z))}catch{}},R=()=>{if(N===y.current)try{b.current&&(cancelAnimationFrame(b.current),b.current=null),i(1),l("stopped");try{C.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},q=j=>{const L=new SpeechSynthesisUtterance(B[j]);try{L.rate=E}catch{}try{L.volume=Math.max(0,Math.min(1,a))}catch{}L.onend=()=>{if(N===y.current){if(j<B.length-1){try{q(j+1)}catch{R()}return}R()}},L.onerror=()=>{R()},L.onstart=()=>{if(!(j>0))try{b.current&&(cancelAnimationFrame(b.current),b.current=null),b.current=requestAnimationFrame(z)}catch{}},w.current=!0,x.speak(L)};try{q(0)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,n,a,d,r,s,i,l,u,p,m,C]),f=o.useCallback(()=>{y.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}b.current&&(cancelAnimationFrame(b.current),b.current=null),c(),g.current=null}catch{}l("stopped"),u("active"),i(0)},[c,l,u,i]);return{startTTS:_,stopTTS:f}}async function q5(e,n,a){let r=null;try{const s=window.AudioContext||window.webkitAudioContext;r=new s;const i=await r.decodeAudioData(e.slice(0)),l=i.numberOfChannels>0?i.getChannelData(0):null;if(!l)return null;const u=a&&a>0?Math.min(l.length,Math.floor(a*i.sampleRate)):l.length,d=Math.max(n,u),c=Math.floor(d/n)||1;return new Array(n).fill(0).map((p,m)=>{const C=m*c,g=Math.min(C+c,d);let v=0;for(let b=C;b<g;b++){const y=Math.abs(l[b]);y>v&&(v=y)}return v})}catch{return null}finally{try{r?.close?.()}catch{}}}async function Gu(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const s=await r.arrayBuffer();return await q5(s,n,a)}catch(r){try{const s=ri(r)}catch{}return null}}const Ku=45,U5=74,G5=2;function Fa(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function Io(e){return Fa(e)/45}const Yu=4;function K5(e){const{src:n,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:u=1,totalDuration:d=0,mainVolume:c=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,C=o.useRef(null),g=o.useRef(null),[v,b]=o.useState(null),[y,w]=o.useState(!1),[h,_]=o.useState(null),[f,A]=o.useState(2),[x,N]=o.useState(0),[k,B]=o.useState(null),[E,S]=o.useState(!1),[z,R]=o.useState(!1),q=3,j=3,L=1,O=300,Z=o.useRef(0),ee=o.useCallback(()=>{const be=C.current,V=g&&g.current?g.current:be?be.closest(".audio-player__wave"):null,Q=V?V.getBoundingClientRect():be?be.getBoundingClientRect():null,oe=Q?Q.width:0,Be=Q?Math.max(100,Q.width):320,Ce=Q?Q.height:0,se=Math.max(L,Math.min(O,Math.floor((Be+j)/(q+j)))),ge=se*q,fe=Math.max(0,se-1),xe=Math.max(0,fe>0?(Be-ge)/fe:j);return{bars:se,gap:xe,height:Ce,width:oe}},[]),W=o.useRef(void 0),U=o.useRef(null),P=o.useCallback(async(be,V,{quiet:Q=!1}={})=>{const oe=++Z.current,Be=()=>Z.current===oe;try{if(Q||w(!1),W.current=be,!be){Be()&&b(null);return}let Ce=V;if(!Ce)try{for(let fe=0;fe<4&&!(C.current||g.current);fe++)await new Promise(xe=>requestAnimationFrame(xe));await new Promise(fe=>requestAnimationFrame(fe));const ge=ee();ge.height>0&&N(ge.height),Ce=ge.bars,A(ge.gap)}catch{Ce=120}U.current=Ce;const se=await Gu(be,Ce);if(!Be())return;if(!se){b(null),w(!1);return}b(se),_(Ce),w(!0)}catch{if(!Be())return;b(null),w(!1)}},[w,b,N,A,_,ee]);o.useEffect(()=>{const be=g.current;if(!be||typeof ResizeObserver>"u")return;let V=null;const Q=new ResizeObserver(()=>{V!==null&&cancelAnimationFrame(V),V=requestAnimationFrame(()=>{V=null;try{const oe=ee();if(oe.width<=0||(oe.height>0&&N(oe.height),U.current===null||oe.bars===U.current))return;const Be=W.current;A(oe.gap),Be?P(Be,oe.bars,{quiet:!0}).catch(()=>{}):U.current=oe.bars}catch{}})});return Q.observe(be),()=>{Q.disconnect(),V!==null&&cancelAnimationFrame(V)}},[ee,P]),o.useEffect(()=>{const be=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;P(typeof be=="string"?be:void 0).catch(()=>{}),R(!1)},[n,a,P]),o.useEffect(()=>{let be=!1;if(S(!1),!i||!h){B(null);return}const V=d>0?d*(u||1):void 0;return Gu(i,h,V).then(Q=>{be||(B(Q),Q||S(!0))}).catch(()=>{be||(B(null),S(!0))}),()=>{be=!0}},[i,h,d,u]);const F=Math.max(0,Math.min(1,c)),D=o.useMemo(()=>v&&v.length&&Math.max(...v)||1,[v]),H=h||40,M=o.useMemo(()=>Array.from({length:H}).map((be,V)=>{const Q=v&&v[V]!=null?v[V]:null,oe=Q==null?null:Math.min(1,Q/D*F),Be=oe!=null&&x>0&&Fa(oe)<=Yu,Ce=oe==null?.15:Be?0:Io(oe),se=H>1?V/(H-1):0;return t.jsx("div",{className:Be?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":Ce,"--i":V,"--mix":se}},V)}),[H,v,D,F,x]),I={"--progress":String(Math.max(0,Math.min(1,r)))},$=i?Math.max(1,l):1,K={"--bar-gap":`${f}px`,"--wave-h":`${Fa($)}px`,"--wave-h1":`${Ku}px`},ne=F*Math.max(0,l)/Ks(),X=y&&(i?!!k||E:!0);o.useEffect(()=>{X&&R(!0)},[X]);const ae=z?y:X;o.useEffect(()=>{p?.(ae)},[ae,p]);const ue=h||40,le=o.useMemo(()=>Array.from({length:ue}).map((be,V)=>{const Q=k&&k[V]!=null?k[V]:null,oe=Q==null?0:Q/D*ne,Be=x>0&&Fa(oe)<=Yu,Ce=Be?0:Io(oe),se=ue>1?V/(ue-1):0;return t.jsx("div",{className:Be?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":Ce,"--i":V,"--mix":se}},V)}),[ue,k,D,ne,x]);return t.jsxs("div",{className:"audio-player__wave",ref:g,style:K,children:[i&&t.jsx("div",{className:`audio-player__wave-noise ${X?"is-ready":""}`,"aria-hidden":"true",children:le}),m&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ae?"is-ready":""}`,ref:C,children:M}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ae?"is-ready":""}`,ref:s,style:I,children:M})]})]})}const Y5={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 Fo(e,n){return new Promise((a,r)=>{const s=document.createElement("audio");let i=!1;const l=()=>{try{s.src=""}catch{}},u=()=>{if(i)return;i=!0;const c=isFinite(s.duration)&&s.duration||0;l(),a(c)},d=c=>{i||(i=!0,l(),n.rejectOnError?r(new Error(c)):a(0))};s.addEventListener("loadedmetadata",u),s.addEventListener("error",()=>d("audio load failed")),setTimeout(()=>d("audio load timeout"),n.timeoutMs),s.src=e})}const Z5=2e3;function Zu(e,n=Z5){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.addEventListener("canplay",s,{once:!0}),e.addEventListener("error",s,{once:!0}),setTimeout(s,n)})}function X5({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(d=>{if(r.current=d,!d||!s.current.length)return;const c=s.current;s.current=[];for(const p of c)p(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),u=o.useCallback(()=>!e&&!n||r.current?Promise.resolve(!0):new Promise(d=>{const c=m=>{clearTimeout(p),s.current=s.current.filter(C=>C!==c),d(m)},p=setTimeout(()=>c(!0),a);s.current.push(c)}),[e,n,a]);return o.useEffect(()=>()=>{const d=s.current;s.current=[];for(const c of d)c(!1)},[]),{onReadyChange:i,waitForReady:u,markNotReady:l}}function J5(){const e=o.useRef([]),n=o.useCallback(s=>(e.current.push(s),s),[]),a=o.useCallback(s=>{const i=new Set([...s].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const s of e.current)try{URL.revokeObjectURL(s)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function Q5({offsetY:e=8}={}){const n=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),i=o.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 o.useEffect(()=>{if(a)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[a,s]),{ref:n,rect:a,show:i,hide:s}}function e3({currentTime:e,sources:n,index:a,audioDuration:r}){const s=a||0,i=Array.isArray(n)&&n.length>0?n[s]:void 0,l=i?i.duration||r||0:r||0;if(!(l>0))return 0;const u=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,u/l))}function t3(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function n3({ended:e,completedByEnd:n}){return!!e||!!n}function a3(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function r3(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function o3(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],s=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;s.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){s.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),u=a(l,n);u&&s.push({code:l,resolvedPath:u})}}return s}function s3(e){if(!e)return 0;const n=e.duration;if(Number.isFinite(n)&&n>0)return n;if(n===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}function i3({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:s}){const i=o.useRef(null),l=o.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),u=o.useCallback(()=>{if(i.current!==null)return;const c=()=>{try{const p=e.current,m=Array.isArray(r.current)?r.current[s.current||0]:void 0,C=m&&Number.isFinite(m.duration)&&(m.duration??0)>0?0:s3(p),g=n.current;if(C===null)try{g&&g.style.visibility!=="hidden"&&(g.style.visibility="hidden")}catch{}else{const v=e3({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:s.current,audioDuration:C});try{g&&(g.style.visibility&&(g.style.visibility=""),g.style.left=`${v*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(v))}catch{}}}catch{}i.current=requestAnimationFrame(c)};i.current=requestAnimationFrame(c)},[e,n,a,r,s]),d=o.useCallback(c=>{l();try{n.current&&(n.current.style.visibility="",n.current.style.left=`${c*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(c))}catch{}},[l,n,a]);return o.useEffect(()=>l,[l]),{start:u,stop:l,settleTo:d}}function Oo({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:u=!0,showNoiseWaveForm:d=!0}){const{t:c}=ye.useTranslation(),p=e,m=lr(),C=o.useRef(m?.registerAnalyser);o.useEffect(()=>{C.current=m?.registerAnalyser});const g=o.useRef(null),v=o.useRef(null),b=o.useRef(null),y=J5(),w=o.useRef(null),h=o.useRef(!1),_=o.useRef(0),f=o.useRef(null),{ref:A,rect:x,show:N,hide:k}=Q5();o.useEffect(()=>()=>{C.current?.("main",null),C.current?.("noise",null)},[]);const[B,E]=o.useState(!1),[S,z]=o.useState("idle"),[R,q]=o.useState("stopped"),j=o.useRef("stopped");o.useEffect(()=>{j.current=R},[R]);const[L,O]=o.useState(0),[Z,ee]=o.useState("active"),W=o.useRef(!1);o.useEffect(()=>{if(Z!=="playMode"||!W.current)return;W.current=!1;const G=typeof document<"u"?document.activeElement:null;if(G&&G!==document.body)return;const ie=b.current?.querySelectorAll("button")[1];try{ie?.focus()}catch{}},[Z]);const[U,P]=o.useState(null),[F,D]=o.useState(null),[H,M]=o.useState(0),[I,$]=o.useState(!1),[K,ne]=o.useState(0),X=m?.playbackRate??1,ae=m?.mainVolume??1,ue=m?Lo(m.settings):0,le=m?qu(m.settings):ae,[be,V]=o.useState("idle"),[Q,oe]=o.useState(""),[Be]=o.useState("top"),Ce=o.useRef(null),se=o.useRef(0),ge=o.useRef(null),{start:fe,stop:xe,settleTo:$e}=i3({audioRef:g,fillRef:v,waveProgressRef:ge,sourcesRef:Ce,currentIndexRef:se}),{onReadyChange:Le,waitForReady:Qe,markNotReady:Ue}=X5({showSoundWaveForm:u,showNoiseWaveForm:d}),ze=o.useRef(null),Ie=o.useRef(s),st=o.useRef(r),Xe=o.useRef(null),Je=o.useRef(!1),[Ee,ke]=o.useState(!1),Me=o.useCallback(G=>{Je.current=G,ke(G)},[]),Ve=o.useRef(null),{activeNoiseUrl:lt,noiseSettingsRef:te,fadeInNoise:ce,fadeOutNoise:me}=V5({noisePlayer:m,audioRef:g,playbackStateRef:j}),{startTTS:Se,stopTTS:et}=W5({ttsText:i,playbackRate:X,mainVolume:le,fillRef:v,waveProgressRef:ge,setProgress:O,setPlaybackState:q,setStateLocal:ee,fadeInNoise:ce,fadeOutNoise:me,noiseSettingsRef:te,onDoneRef:st,handleEndRef:Ve});o.useEffect(()=>{We.current=et});const Ke=G=>{if(typeof window>"u"||!window.speechSynthesis){try{oe(c("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Se(G);return}Nt("tts"),Se(G)},bt=Array.isArray(n)?n.filter(Boolean):n?[n]:[],ut=(!bt||bt.length===0)&&!!i,it=Array.isArray(U)&&U.length>0?U:Array.isArray(F)&&F.length>0?F:null,tt=Math.max(Array.isArray(it)?it.length:0,bt.length),Ge=o.useRef(!0);o.useEffect(()=>(Ge.current=!0,()=>{Ge.current=!1}),[]);const Ye=o.useRef(0),Re=()=>{Ye.current+=1,_.current+=1},We=o.useRef(null),Fe=o.useRef(null),ct=o.useRef(null),Bt=o.useRef(null);Bt.current||(Bt.current=()=>{ct.current=null;const G=g.current;if(Fe.current==="audio"&&G&&!G.paused){Ye.current+=1,_.current+=1;try{G.pause()}catch{}Ge.current&&q("paused")}else if(Fe.current==="tts")try{We.current?.()}catch{}});const Nt=G=>{Fe.current=G,ct.current=Ja(Bt.current)},Ct=()=>{ct.current?.(),ct.current=null};o.useEffect(()=>()=>{Bt.current&&Qa(Bt.current)},[]);const dt=o.useCallback(async(G,ie=3,de=50)=>{const _e=Ye.current;for(let we=0;we<ie;we++){if(!Ge.current||_e!==Ye.current)return!1;try{return Nt("audio"),await G.play(),!0}catch(je){if((je instanceof Error||typeof je=="object"&&je&&"name"in je?je.name:void 0)==="AbortError"){if(_e!==Ye.current)return!1;await new Promise(rt=>setTimeout(rt,de));continue}try{oe(c("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{oe(c("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[c]),Oe=o.useCallback(()=>{const G=g.current;if(!G)return;const ie=()=>{q("playing"),ee("playMode"),$(!0),fe();try{Lr(),Ha(G).then(je=>{if(Ge.current)try{C.current?.("main",je)}catch{}})}catch{}const we=te.current;we?.enabled&&(we?.volume??0)>0&&ce(we.volume)},de=()=>{n3({ended:!!G?.ended,completedByEnd:Je.current})||(q("paused"),xe(),me())},_e=()=>{try{const we=Ce.current,je=t3(we,se.current);if(je!==null){se.current=je,M(je),$(!0);const rt=we?.[je]&&we[je].src;if(rt&&G){G.src=rt,G.load(),dt(G).catch(()=>{});return}}}catch{}q("stopped"),O(1);try{if(G)try{G.currentTime=0}catch{}}catch{}xe(),$(!1),me();try{!Ie.current&&Ve.current&&Ve.current()}catch{}};return G.addEventListener("play",ie),G.addEventListener("pause",de),G.addEventListener("ended",_e),()=>{try{G.removeEventListener("play",ie),G.removeEventListener("pause",de),G.removeEventListener("ended",_e),xe()}catch{}}},[ce,me,dt,te,fe,xe]);o.useEffect(()=>Oe(),[Oe]),o.useEffect(()=>{Ie.current=s},[s]),o.useEffect(()=>{st.current=r},[r]),o.useEffect(()=>{if(s||Z!=="active")return;const G=f.current;if(!G)return;let ie=null;const de=requestAnimationFrame(()=>{try{const _e=G.getTotalLength();if(!_e)return;const we=_e*.2;G.style.strokeDasharray=`${_e-we} ${we}`;const je="triFlow_"+Math.random().toString(36).slice(2);ie=document.createElement("style"),ie.textContent=`@keyframes ${je}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${_e}}}`,document.head.appendChild(ie),G.style.animation=`${je} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(de),ie?.remove()}},[Z,s]),o.useEffect(()=>{Ce.current=U},[U]),o.useEffect(()=>{se.current=H},[H]),o.useEffect(()=>{const G=b.current,ie=w.current;if(!G||!ie)return;let de=null;const _e=32,we=60,je=()=>{try{const yt=Array.from(G.querySelectorAll(":scope > .button"));let pt=0;yt.forEach(De=>{if(De===ie)return;const He=De.getBoundingClientRect();pt+=He.width});const _t=G.getBoundingClientRect().width,Rt=Math.max(0,Math.floor(_t-pt-8)),Lt=tt;if(!Lt||Rt<=0){Array.from(ie.children).forEach(De=>{try{De.style.width=""}catch{}});return}let nn=Math.floor(Rt/Lt);nn>we&&(nn=we),nn<_e&&(nn=Math.max(_e,Math.floor(Rt/Lt))),Array.from(ie.querySelectorAll(".button")).forEach(De=>{try{De.style.width=`${nn}px`}catch{}})}catch{}},rt=requestAnimationFrame(je);try{de=new ResizeObserver(()=>{requestAnimationFrame(je)}),de.observe(G),de.observe(ie),window.addEventListener("resize",je)}catch{}return()=>{try{cancelAnimationFrame(rt)}catch{}try{de&&(de.disconnect(),de=null)}catch{}try{window.removeEventListener("resize",je)}catch{}}},[U,F,tt]),o.useEffect(()=>()=>{try{ze.current&&(clearTimeout(ze.current),ze.current=null),Xe.current&&(clearTimeout(Xe.current),Xe.current=null)}catch{}},[]);const at=(G,ie)=>{P(G),ne(ie),Ue(),D(a3(G)),Ce.current=G},ft=async(G,ie)=>{Me(!1),h.current=!1,G.src=ie,G.load(),await Zu(G),await Qe()!==!1&&(E(!1),await dt(G),ee("playMode"),M(0),$(!0))},Ot=async(G,ie=!1)=>{const de=g.current;E(!0),z("measuring_duration");try{const _e=await Fo(G,{timeoutMs:1e4,rejectOnError:!0});at([{src:G,objectUrl:null,duration:_e}],_e),z("ready"),ie&&de&&await ft(de,G)}finally{h.current=!1,E(!1)}},nt=async(G,ie=!1)=>{const de=g.current;E(!0),z("measuring_duration");try{const _e=await Promise.all(G.map(je=>Fo(je,{timeoutMs:1e4})));if(!Ge.current)return;const we=G.map((je,rt)=>({src:je,objectUrl:null,duration:_e[rt]||0}));at(we,r3(we)),z("ready"),ie&&de&&we.length>0&&await ft(de,we[0].src)}finally{h.current=!1,E(!1)}},Tt=async(G=!1,ie=!0)=>{const de=g.current,_e=n?Array.isArray(n)?n:[n]:[];if(!_e||_e.length===0||!_e.some(Boolean))return!1;if(h.current)return null;h.current=!0,ie&&E(!0),z("resolving");try{const we=o3(n,a,qs),je=[];let rt=0;for(const yt of we){let pt=yt.src??null,_t=null;if(!pt&&yt.resolvedPath){try{z("getting_signed_url"),pt=await Us(yt.resolvedPath)}catch{pt=null}if(!Ge.current)return!1;if(!pt)try{z("downloading");const Lt=await Gs(yt.resolvedPath);if(!Ge.current)return!1;if(Lt){const nn=Lt instanceof Blob?Lt:new Blob([Lt]);_t=y.track(URL.createObjectURL(nn)),pt=_t}}catch{z("error");try{oe(c("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),ee("active")}catch{}}}if(!pt)continue;let Rt=0;try{z("measuring_duration"),Rt=await Fo(pt,{timeoutMs:3e3})}catch{Rt=0}if(!Ge.current){if(_t)try{URL.revokeObjectURL(_t)}catch{}for(const Lt of je)if(Lt.objectUrl)try{URL.revokeObjectURL(Lt.objectUrl)}catch{}return!1}rt+=Rt||0,je.push({...yt,src:pt,objectUrl:_t,duration:Rt})}if(at(je,rt),je.length>0&&G&&de){const yt=je[0];Me(!1);try{y.keepOnly(je.map(pt=>pt.objectUrl))}catch{}if(z("ready"),h.current=!1,yt.src&&de)try{if(de.src=yt.src,de.load(),await Zu(de),await Qe()===!1)return!1;ie&&E(!1),de&&await dt(de)}catch{ie&&E(!1)}else ie&&E(!1);ee("playMode"),M(0),$(!0)}return je.length>0}finally{h.current=!1,ie&&E(!1),z(we=>we==="ready"?"ready":"idle")}},Yt=async()=>{const G=g.current;if(!(!G&&!ut)){if(ut){const ie=window.speechSynthesis;if(Z==="active"){const de=jr(),_e=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(de&&_e.length>0){ee("load"),E(!0),z("resolving"),h.current=!0;try{const we=await Promise.all(_e.map(je=>Promise.resolve(de(je))));we.length>1?await nt(we,!0):await Ot(we[0],!0)}catch{h.current=!1,E(!1),ee("active"),Ke(_e.length>0?_e:void 0)}return}Ke(_e.length>0?_e:void 0);return}if(Z==="playMode"){const de=!!ie&&(ie.speaking||ie.paused)&&!(G&&(G.currentSrc||G.getAttribute("src")));if(G&&!de){if(G.paused){if(Je.current){await Mt();return}await dt(G),q("playing")}else Re(),G.pause(),q("paused");return}try{if(ie&&ie.paused)try{Nt("tts"),ie.resume(),q("playing")}catch{}else try{ie.pause(),q("paused")}catch{}}catch{}}return}if(Z==="active"){if(s&&Array.isArray(Ce.current)&&Ce.current.length>0){const de=Ce.current[0];try{if(de.src&&G)try{G.src=de.src,G.load(),G&&await dt(G)}catch{}ee("playMode"),M(0),$(!0);return}catch{}}ee("load");let ie;try{ie=await Tt(!0)}catch{ie=!1}if(ie===!1&&Ge.current){try{oe(c("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}ee("active")}return}if(Z!=="load"&&(Z==="playMode"||Z==="active"))try{if(G&&G.paused){if(Je.current){await Mt();return}G&&await dt(G),q("playing")}else G&&(Re(),G.pause(),q("paused"))}catch(ie){(ie instanceof Error||typeof ie=="object"&&ie&&"name"in ie)&&ie.name}}},Mt=async()=>{const G=g.current;if(G)try{const ie=Ce.current;if(Array.isArray(ie)&&ie.length>1){await Nn(0);return}Me(!1);try{G.currentTime=0}catch{}G&&await dt(G),q("playing"),ee("playMode")}catch{}},un=()=>{if(Re(),Ct(),ut){et();return}const G=g.current;try{if(G){try{G.pause()}catch{}try{G.currentTime=0}catch{}}}catch{}me(),q("stopped"),ee("active"),O(0),$(!1)},cn=async(G,{sameSegment:ie=!1}={})=>{const de=++_.current,_e=g.current,we=Ce.current?.[G]?.src;try{if(Me(!1),M(G),$(!0),se.current=G,!we||!_e||(ie||Ue(),_e.src=we,_e.load(),!ie&&await Qe()===!1)||de!==_.current||(await dt(_e),de!==_.current))return;q("playing"),ee("playMode")}catch{}},dn=async()=>{const G=Ce.current,ie=se.current||0;if(!G||ie<=0){await Mt();return}await cn(ie-1)},Rn=async()=>{const G=Ce.current,ie=se.current||0;if(!G||ie>=G.length-1){un();return}await cn(ie+1)},pn=()=>{if(Je.current)return;const G=200,ie=340;Me(!0),Re(),Ct();try{O(1)}catch{}$e(1);try{V("hold")}catch{}try{const de=g.current,_e=ut&&!!de?.src;if(!ut||_e){if(de){de.pause();try{de.currentTime=0}catch{}}}else et();me()}catch{}try{q("stopped")}catch{}if($(!1),!Ie.current)try{Xe.current&&(clearTimeout(Xe.current),Xe.current=null),Xe.current=setTimeout(()=>{try{V("out")}catch{}Xe.current=setTimeout(()=>{try{typeof st.current=="function"&&st.current(!0)}catch{}try{V("idle")}catch{}Xe.current=null},ie)},G)}catch{}};o.useEffect(()=>{Ve.current=pn});const Pn=o.useCallback(()=>oe(""),[]),Nn=async G=>{(Ce.current||[])[G]&&await cn(G,{sameSegment:G===se.current})},Dt=R==="playing",Cn=o.useMemo(()=>{if(!F||F.length<=1)return F;const G=F[H];return G?[G]:F},[F,H]),Ht=s===!0;o.useEffect(()=>{try{const G=g.current;G&&typeof G.playbackRate=="number"&&(G.playbackRate=X||1)}catch{}},[X]);const Zt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const G=g.current;if(!G)return;const ie=Math.max(0,Math.min(1,le)),de=Zt.current,_e=()=>{de.raf!==null&&(cancelAnimationFrame(de.raf),de.raf=null),de.timer!==null&&(clearTimeout(de.timer),de.timer=null)};_e();const we=za(G);if(G.paused||Math.abs(we-ie)<.001||typeof requestAnimationFrame!="function"){try{Sn(G,ie)}catch{}return}const je=performance.now(),rt=()=>{const yt=Math.min(1,(performance.now()-je)/150);try{Sn(G,we+(ie-we)*yt)}catch{}de.raf=yt<1?requestAnimationFrame(rt):null};return de.raf=requestAnimationFrame(rt),de.timer=setTimeout(()=>{_e();try{Sn(G,ie)}catch{}},200),_e},[le]);const fn=be==="hold",en=be==="out",gn=Z==="playMode"&&!B&&!Ee||fn||en,In=R!=="stopped"||fn||en,bn=R==="paused",re=Math.max(0,Math.min(100,(L||0)*100)),ve=Ne("audio-player__fill",gn?"is-visible":"",In?"is-expanded":"",bn?"is-paused":"",en?"is-out":"");return t.jsxs("div",{className:`audio-player ${Ht?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${Dt?"is-playing":""} ${B?"is-loading":""} ${Z!=="default"?"is-revealed":""}`,children:[B?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:c(`training.audioStatus.${S}`,{defaultValue:Y5[S]})})]}):null,Z==="active"?t.jsx("button",{className:"audio-player__button",type:"button",disabled:Ht,onClick:()=>{W.current=ar(),k(),Yt()},"aria-label":typeof p=="string"?p:c("training.listen","\uB4E3\uAE30"),onMouseEnter:N,onMouseLeave:k,onFocus:N,onBlur:k,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:f,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,x&&t.jsx(vn,{anchorRect:x,text:typeof p=="string"&&p?p:c("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${Z==="playMode"||Dt?"is-visible":""}`,inert:!(Z==="playMode"||Dt)||void 0,children:[t.jsxs("div",{ref:b,className:"audio-player__buttons",children:[t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:dn,ariaLabel:c("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Dt?"pause":"play",onClick:Yt,ariaLabel:c("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":Dt,width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}),t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:un,ariaLabel:c("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),tt>1?t.jsx("div",{ref:w,className:"audio-player__source-buttons",children:Array.from({length:tt}).map((G,ie)=>t.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(ie+1),onClick:()=>{try{Nn(ie)}catch{}},ariaLabel:c("training.sourcePlay",{n:ie+1}),variant:"transparent-white",selected:I&&H===ie,disabled:Z!=="playMode"||!(Array.isArray(U)&&U[ie]),showTooltipInfo:!0},ie))}):null,!Array.isArray(U)||U.length<=1?t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Mt,ariaLabel:c("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}):null,t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Rn,ariaLabel:c("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:Z!=="playMode"}),t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:pn,ariaLabel:c("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:ve,ref:v,style:{left:`${re}%`},"aria-hidden":"true"}),(u||d)&&t.jsx(K5,{segments:Cn,progress:L,totalDuration:K,waveProgressRef:ge,showSoundWaveForm:u,noiseSrc:d&&m?.settings.enabled&&ue>0?lt:null,noiseRatio:m?Ra(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:ae,onReadyChange:Le})]})]}),t.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!u&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Ze,{icon:"triangle-alert",size:14}),c("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(ra,{message:Q,position:Be,onClose:Pn})]})}function cr(e){const{t:n}=ye.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:u=!1}=e||{},[d,c]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",d)}catch{}},[d]);const{increase:p,decrease:m,canIncrease:C,canDecrease:g,fontSize:v,lineHeight:b}=tl({storageKey:"tooltip-fontScale"}),y=o.useCallback(()=>c(A=>A==="dark"?"light":"dark"),[]),w=o.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),h=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${v}px`,lineHeight:`${b}px`,"--tt-line-height":`${b}px`,"--tt-marker-size":"28px"},f=t.jsxs("div",{className:`tooltip-textbox__root ${d==="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:h.map((A,x)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[h.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:x+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},x))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(pe,{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:d==="dark"?"transparent-white":"transparent-gray",disabled:!g}),t.jsx(pe,{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:d==="dark"?"transparent-white":"transparent-gray",disabled:!C}),t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:d==="dark"?"moon":"sun-medium",onClick:y,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:d==="dark"?"transparent-white":"transparent-gray"}),t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:w,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:d==="dark"?"transparent-white":"transparent-gray"})]})]});return s?t.jsx(on,{anchorRect:s,className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:u,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:f}):t.jsx("div",{className:`tooltip-textbox ${d==="dark"?"is-dark":""}`,children:f})}function Xu({state:e="disabled"}){const{t:n}=ye.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Ze,{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 Ju(e,n,a){const r=o.useRef(n),s=o.useRef(a);o.useEffect(()=>{r.current=n,s.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let i=null,l=10;const u=()=>{i=null;const d=r.current(),c=d?Array.from(d.querySelectorAll(mn)).find(p=>!p.closest('[aria-hidden="true"]')):void 0;if(c){try{c.focus()}catch{}if(document.activeElement===c)return}--l>0&&(i=requestAnimationFrame(u))};return i=requestAnimationFrame(u),()=>{i!==null&&cancelAnimationFrame(i);const d=document.activeElement;if(!d||d===document.body||!document.contains(d)||d.closest(".tooltip-content")){const c=s.current();if(c)try{c.focus()}catch{}}}},[e])}function Qu({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:u,usePlayAllBtn:d=!1,onPlayAll:c,playAllActive:p=!1}){const{t:m}=ye.useTranslation(),C=tn("(max-width: 767px)"),g=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),v=`training-step__title-row training-step__title-row--${r}`.trim(),b=o.useRef(null),[y,w]=o.useState(!1),[h,_]=o.useState(null),[f,A]=o.useState(null);Ju(y&&!!h,()=>{if(typeof document>"u")return null;const E=Array.from(document.querySelectorAll(".tooltip-content"));for(let S=E.length-1;S>=0;S--)if(E[S].querySelector(".tooltip-textbox__root"))return E[S];return null},()=>b.current?.querySelector("button")??null);const x=o.useRef(i);o.useEffect(()=>{x.current=i});const N=o.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(E=>typeof E=="string"||typeof E=="number")?l.join(""):"",[l]),k=o.useCallback(()=>{w(!1),_(null),A(null)},[]);o.useEffect(()=>{if(!y)return;let E;try{typeof x.current=="function"&&(E=x.current())}catch{}if(E===!1){k();return}A(typeof E<"u"&&E!==null?E:null)},[N]);const B=o.useCallback(()=>{let E;try{typeof i=="function"&&(E=i())}catch{}if(E!==!1){if(A(typeof E<"u"&&E!==null?E:l),!b.current){w(S=>!S);return}if(y)w(!1),_(null),A(null);else{const S=b.current.getBoundingClientRect();_(S),w(!0)}}},[i,l,y]);return t.jsxs("div",{className:v,children:[t.jsx("p",{className:g,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),s||d?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[d&&t.jsx(pe,{htmlType:"button",size:32,type:C?"dot":"bar",icon:"play-circle",label:C?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:c,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),s&&t.jsx("div",{ref:b,children:t.jsx(pe,{htmlType:"button",size:32,type:C?"dot":"bar",icon:"eye",label:C?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:B,className:y?"is-selected":void 0,"aria-expanded":y,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),y&&t.jsx(cr,{text:f??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:h,onClose:k,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Ho(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Gn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:u=void 0,useTitleFaded:d=void 0}){const{t:c}=ye.useTranslation(),[p,m]=o.useState(()=>Ho(e,n));o.useEffect(()=>{const A=Ho(e,n);if(A!==p){const x=setTimeout(()=>m(A),0);return()=>clearTimeout(x)}},[e,n,p]);const C=o.useCallback((...A)=>{Ho(e,n)==="done"||p==="done"||typeof u=="function"&&u(...A)},[e,n,p,u]),[g,v]=o.useState(!1),[b,y]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),w=o.useCallback(A=>{if(!A)return null;try{const x=A;if(typeof A=="object"&&(x.currentTarget||x.target)&&(x.nativeEvent||x.type)){const B=x.currentTarget??x.target;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect()}if(A instanceof DOMRect)return A;const N=A;if(N&&typeof N.getBoundingClientRect=="function")return N.getBoundingClientRect();const k=A?.current;return k&&typeof k.getBoundingClientRect=="function"?k.getBoundingClientRect():null}catch{return null}},[]),h=o.useCallback((A,{text:x="",label:N="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:k=!1,alignX:B="center",alignY:E="top"}={})=>{const S=w(A);y({text:x,label:N,anchorRect:S,backdrop:k,alignX:B,alignY:E}),v(!0)},[w]),_=o.useCallback(()=>{v(!1),y(A=>({...A,anchorRect:null}))},[]),f=o.Children.map(i,A=>{if(o.isValidElement(A)){const x=A;if(typeof x.type=="string")return x;const N=x.props??{},k=typeof N.onDone=="function"?N.onDone:C,B=typeof N.disabled=="boolean";let E=p==="disabled";return B&&(E=!!N.disabled),o.cloneElement(x,{onDone:k,disabled:E,showTooltip:h,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(Xu,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(Qu,{state:p,title:r,...s,useFaded:d}),f]}),g?t.jsx(on,{anchorRect:b.anchorRect,backdrop:b.backdrop,onClose:_,ariaLabel:c("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(cr,{text:b.text,onClose:_})}):null]})}function ec({context:e,state:n="disabled",theme:a="light"}){const{t:r}=ye.useTranslation(),[s,i]=o.useState("disabled"),[l,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const d=()=>u(R=>R==="dark"?"light":"dark"),{increase:c,decrease:p,canIncrease:m,canDecrease:C,fontSize:g,lineHeight:v}=tl({storageKey:"textbox_fontScale"}),[b,y]=o.useState(""),w=o.useRef(null),h=o.useRef(!1),_=o.useCallback(()=>{h.current=ar()&&!!w.current&&w.current.contains(document.activeElement),i("active")},[]),f=o.useCallback(()=>y(""),[]),A=R=>{try{y(R)}catch{}},x=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(n!=="disabled"){const R=setTimeout(()=>i(n),0);return()=>clearTimeout(R)}},[n]);const N=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[k,B]=o.useState(N);k!==N&&(B(N),i("disabled"));const E=n==="disabled"?s:n,S=E==="disabled"?"training-text-box--disabled":E==="active"?"training-text-box--active":E==="done"?"training-text-box--done":"",z=o.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${v}px`}),[g,v]);return o.useEffect(()=>{if(E==="disabled"||!h.current)return;h.current=!1;const R=document.activeElement;R&&R!==document.body||w.current?.querySelector(".training-text-box__buttons button")?.focus()},[E]),t.jsxs("div",{ref:w,className:`training-text-box ${S} ${E!=="disabled"&&l==="dark"?"is-dark":""}`,children:[E==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(pe,{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":E==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:z,children:N})}),E!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":E==="disabled",children:[t.jsx(pe,{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:!C,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),t.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:c,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,...!x&&{width:"60px"}}),t.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:d,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(ra,{message:b,position:"top",onClose:f})]})}function zo({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:u,wrongAnswers:d,choices:c,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:C=!1,choiceIcons:g,shuffleChoices:v=!0}){const{t:b}=ye.useTranslation(),y=r??b("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),w=typeof e=="number"?e:-1,h=typeof n!="number"?"disabled":w<n?"done":w===n?"active":"disabled",_=Array.isArray(c)&&c.length?c:typeof u<"u"?[u].concat(Array.isArray(d)?d:[]):void 0,f=d?d.join("||"):"",A=c?c.join("||"):"",[x,N]=o.useState(()=>Array.isArray(_)?v?ya(_):_.slice():void 0);o.useEffect(()=>{Array.isArray(_)&&_.length?N(v?ya(_):_.slice()):N(void 0)},[u,f,A,v]);const[k,B]=o.useState(null),[E,S]=o.useState(()=>new Set);o.useEffect(()=>{B(null),S(new Set)},[A,u,f]);const z=o.useRef(void 0);o.useEffect(()=>{const j=z.current;typeof j=="number"&&typeof n=="number"&&typeof e=="number"&&j>=e&&n<e&&(B(null),S(new Set)),z.current=n},[n,e]);const R=o.useCallback(j=>{if(h!=="active")return;const L=x?.[j];if(L==null)return;const O=L,Z=h==="active"||h==="done";if(p){const ee=new Set(E),W=ee.has(O);W?ee.delete(O):ee.add(O),S(ee),typeof l=="function"&&l({selectedValues:[...ee],__ts:Date.now()}),Z&&(typeof m=="number"&&m>0?ee.size>=m:!W)&&typeof i=="function"&&h==="active"&&i({selectedValues:[...ee],__ts:Date.now()})}else B(O),typeof l=="function"&&l({selectedIndex:j,selectedValue:O,__ts:Date.now()}),Z&&typeof i=="function"&&h==="active"&&i({selectedIndex:j,selectedValue:O,__ts:Date.now()})},[x,h,p,l,i,m,E]),q=`training-step__buttons${Array.isArray(x)&&x.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:y,useTitleFaded:s,children:t.jsx("div",{className:q,children:Array.isArray(x)&&x.length>0?x.map((j,L)=>t.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:()=>R(L),ariaLabel:String(j),label:j,useLabel:!0,icon:g?g[String(j)]:void 0,variant:"default",disabled:h==="disabled",selected:p?E.has(j):k===j,useDisabledCovered:C,minWidth:0},String(j))):null})})}function Vo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:u}){const{t:d}=ye.useTranslation(),c=r??d("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",C=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",g=l&&typeof l=="object"?l.choices:void 0,[v,b]=o.useState(u??null),y=`${String(C)}\0${JSON.stringify(g??null)}`,[w,h]=o.useState(y);w!==y&&(h(y),u==null&&b(null));const[_,f]=o.useState(u);Object.is(_,u)||(f(u),b(u??null));const A=o.useRef(void 0);o.useEffect(()=>{const B=A.current;typeof B=="number"&&typeof n=="number"&&typeof e=="number"&&B>=e&&n<e&&u==null&&b(null),A.current=n},[n,e,u]);const x=o.useCallback(B=>{const E=typeof B=="object"&&B!==null?Object.assign({},B,{__ts:Date.now()}):{value:B,__ts:Date.now()};typeof i=="function"&&i(E),m==="active"&&typeof s=="function"&&s(E)},[i,m,s]),N=o.useCallback(()=>{m==="active"&&(b(!1),x(!1))},[x,m]),k=o.useCallback(()=>{m==="active"&&(b(!0),x(!0))},[x,m]);return t.jsxs(Gn,{index:e,stepIndex:n,isLast:a,title:c,onDone:s,useTitleFaded:!1,children:[t.jsx(ec,{context:l,state:m}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((B,E)=>t.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(b(E),x&&x(E))},disabled:m==="disabled",ariaLabel:String(B),label:B,variant:m,selected:v===E},E)):t.jsxs(t.Fragment,{children:[t.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:N,disabled:m==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:v===!1}),t.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:k,disabled:m==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:v===!0})]})})]})}function Wo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:u,usePreviewTextBtn:d,previewText:c=null,onPreviewTextBtn:p,disabled:m,_pageIndex:C,showSoundWaveForm:g,showNoiseWaveForm:v}){const{t:b}=ye.useTranslation(),y=r??b("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),w=m??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:y,onDone:s,titleProps:{usePreviewTextBtn:d,previewText:c,onPreviewTextBtn:p},children:t.jsx(Oo,{soundSrc:l,ttsText:l?null:c??y,bucketPath:u,btnLabel:i||b("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:w,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:v},`audio-p${C??0}-s${e}`)})}const l3=[];function qo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=l3}){const{t:u}=ye.useTranslation(),d=r??u("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),c=F=>typeof F=="string"?F:F&&(F.context||F.sentence||F.question||"")||"",[p,m]=o.useState(Array.isArray(l)?l:[]),[C,g]=o.useState(()=>(p||[]).map((F,D)=>({id:D,text:c(F)}))),v=o.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]),b=v!=="disabled",y=o.useRef(void 0);o.useEffect(()=>{if(y.current===l)return;y.current=l;const F=Array.isArray(l)?l:[];m(F);const D=(H=>{const M=(H||[]).map((ne,X)=>({id:X,text:c(ne)}));if(M.length<=1)return M;const I=(ne,X)=>{if(ne.length!==X.length)return!1;for(let ae=0;ae<ne.length;ae++)if(ne[ae].text!==X[ae].text)return!1;return!0};let $=ya(M),K=0;for(;I($,M)&&K<20;)$=ya(M),K+=1;return $})(F);g(D);try{if(typeof i=="function"){const H=D.filter((M,I)=>M.text===c(F[I])).length;i({shuffled:D,score:H,total:(F||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&v==="active"){const H=D.filter((M,I)=>M.text===c(F[I])).length;s({shuffled:D,score:H,total:(F||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const w=(F,D)=>{const H=[...C],M=F+D;if(M<0||M>=H.length)return;const I=H[M];H[M]=H[F],H[F]=I,L(H);try{if(typeof s=="function"&&v==="active"){const $=H.filter((K,ne)=>K.text===c(p[ne])).length;s({shuffled:H,score:$,total:(p||[]).length,__ts:Date.now()})}}catch{}},[h,_]=o.useState(null),f=o.useRef(null),A=o.useRef(null),x=o.useRef(null),N=o.useRef(null),k=o.useRef(null),B=o.useRef({x:0,y:0}),E=o.useRef(null),S=o.useRef({dx:0,dy:0}),z=()=>{if(E.current!==null)return;const F=()=>{if(!f.current){E.current=null;return}E.current=requestAnimationFrame(F);const D=B.current,H=S.current||{dx:0,dy:0};f.current&&(f.current.style.transform=`translate3d(${D.x-H.dx}px, ${D.y-H.dy}px, 0)`)};E.current=requestAnimationFrame(F)},R=o.useRef(new Map),q=o.useRef(new Map),j=()=>{const F=new Map;return R.current.forEach((D,H)=>{D&&D.getBoundingClientRect&&F.set(H,D.getBoundingClientRect())}),F},L=F=>{const D=j();g(F);try{if(typeof i=="function"){const H=F.filter((M,I)=>M.text===c(p[I])).length;i({shuffled:F,score:H,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const H=j();F.forEach(M=>{const I=D.get(M.id),$=H.get(M.id),K=R.current.get(M.id);if(!K||!I||!$)return;const ne=I.top-$.top;ne&&(K.style.transition="none",K.style.transform=`translateY(${ne}px)`,requestAnimationFrame(()=>{K.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",K.style.transform="";const X=()=>{K.style.transition="",K.removeEventListener("transitionend",X)};K.addEventListener("transitionend",X)}))})})},O=(F,D)=>{try{try{D.dataTransfer?.setData("text/plain",String(F))}catch{}try{D.dataTransfer&&(D.dataTransfer.effectAllowed="move")}catch{}try{const H=document.createElement("div");H.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(H),D.dataTransfer?.setDragImage(H,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(H)}catch{}})}catch{}}catch{}_(F);try{const H=C[F],M=document.createElement("div");M.className="order-list__dragging-object order-list__dragging-object--visible",M.textContent=H&&H.text?H.text:"",document.body.appendChild(M),f.current=M;const I=R.current.get(H.id);let $=D.clientX||0,K=D.clientY||0;try{if(I&&I.getBoundingClientRect){const be=I.getBoundingClientRect();$=be.left+be.width/2,K=be.top+be.height/2}}catch{}const ne=M.getBoundingClientRect(),X=ne.width/2,ae=ne.height/2;S.current={dx:X,dy:ae},M.style.transition="none",B.current={x:$,y:K},M.style.transform=`translate3d(${$-X}px, ${K-ae}px, 0)`,requestAnimationFrame(()=>{try{M.style.transition=""}catch{}z()});const ue=be=>{const V=be;B.current={x:V.clientX,y:V.clientY},z()};x.current=ue,document.addEventListener("mousemove",ue);const le=be=>{const V=be;B.current={x:V.clientX,y:V.clientY},z()};A.current=le,document.addEventListener("dragover",le);try{D.dataTransfer?.setData("text/plain",String(F));try{D.dataTransfer?.setData("application/json",JSON.stringify({idx:F}))}catch{}}catch{}}catch{}},Z=(F,D)=>{D.preventDefault();try{D.dataTransfer&&(D.dataTransfer.dropEffect="move")}catch{}try{k.current!==null&&(clearTimeout(k.current),k.current=null);const H=D.currentTarget&&D.currentTarget.closest?D.currentTarget.closest(".order-list__item"):null;if(H&&N.current!==H){if(N.current)try{N.current.classList.remove("drag-over")}catch{}try{H.classList.add("drag-over")}catch{}N.current=H}}catch{}},ee=(F,D)=>{D.preventDefault();const H=D.dataTransfer?.getData("text/plain")||"",M=H?parseInt(H,10):h,I=F;if(typeof M!="number"||isNaN(M)||M===I){_(null),P(),W();return}const $=kC(C,M,I);L($),_(null),W();try{if(typeof s=="function"&&v==="active"){const K=$.filter((ne,X)=>ne.text===c(p[X])).length;s({shuffled:$,score:K,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const K=document.querySelectorAll(".order-list .order-list__item")[I];if(!K)return;const ne=K.querySelector(".order-list__slot")||K;try{ne.classList.add("pulse"),ne.offsetHeight,ne.classList.add("to-dark");const X=()=>{ne.classList.remove("pulse","to-dark"),ne.removeEventListener("transitionend",X)};ne.addEventListener("transitionend",X)}catch{}})}catch{}P()},W=()=>{if(f.current){try{document.body.removeChild(f.current)}catch{}f.current=null}A.current&&(document.removeEventListener("dragover",A.current),A.current=null),x.current&&(document.removeEventListener("mousemove",x.current),x.current=null),E.current!==null&&(cancelAnimationFrame(E.current),E.current=null)},U=()=>{_(null),P(),W()};o.useEffect(()=>()=>W(),[]);const P=()=>{try{if(k.current!==null&&(clearTimeout(k.current),k.current=null),N.current){try{N.current.classList.remove("drag-over")}catch{}N.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(F=>F.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const F=Math.max(1,(C||[]).length);C.forEach((D,H)=>{const M=q.current.get(D.id);if(!M)return;let I=50;F>1&&(I=Math.round(H/(F-1)*100));try{M.style.setProperty("--marker-pos",I+"%")}catch{}})}catch{}},[C]),o.useEffect(()=>()=>{W(),k.current!==null&&(clearTimeout(k.current),k.current=null)},[]),t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:d,children:t.jsx("div",{className:"order-list",children:C.map((F,D)=>{const H=Math.max(1,(C||[]).length),M=H>1?Math.round(D/(H-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":v==="disabled","aria-disabled":v==="disabled",children:[v!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":M+"%"},ref:I=>{const $=q.current;I?$.set(F.id,I):$.delete(F.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:D+1})}):null,t.jsxs("div",{ref:I=>{const $=R.current;I?$.set(F.id,I):$.delete(F.id)},className:`order-list__draggable ${h===D?"dragging":""}`,"data-disabled":v==="disabled","aria-disabled":v==="disabled",tabIndex:v==="disabled"?-1:0,draggable:b,onDragStart:b?I=>O(D,I):void 0,onDragEnter:b?I=>Z(D,I):void 0,onDragOver:b?I=>Z(D,I):void 0,onDragLeave:b?()=>{try{k.current!==null&&clearTimeout(k.current),k.current=setTimeout(()=>{try{const I=document.querySelectorAll(".order-list .order-list__item");I&&I[D]&&(I[D].classList.remove("drag-over"),N.current===I[D]&&(N.current=null))}catch{}},80)}catch{}}:void 0,onDrop:b?I=>ee(D,I):void 0,onDragEnd:b?U:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:F.text}),b?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:()=>w(D,-1),ariaLabel:u("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:()=>w(D,1),ariaLabel:u("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===C.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},F.id)})})})}const u3=8e3;function c3(e,n){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,n)})}function tc({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:u=!1,hideLabel:d=!1,hideAudio:c=!1,maxCards:p}){const{t:m}=ye.useTranslation(),C=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),v=p??3,b=(g||[]).slice(0,v);(g||[]).length>v&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${v} shown`);const y=typeof e=="number"?e:-1,w=typeof n!="number"?"disabled":y<n?"done":y===n?"active":"disabled",[h,_]=o.useState(null),f=o.useRef([]),[A,x]=o.useState(!1),N=o.useRef(null),k=o.useRef(!0);o.useEffect(()=>(k.current=!0,()=>{k.current=!1}),[]);const B=o.useMemo(()=>g.map(q=>q?.id??q?.word??"").join("|"),[g]);o.useEffect(()=>{_(null)},[B]);const E=o.useRef(void 0);o.useEffect(()=>{const q=E.current;typeof q=="number"&&typeof n=="number"&&typeof e=="number"&&q>=e&&n<e&&_(null),E.current=n},[n,e]);const S=o.useCallback((q,j)=>{if(u)return;const L={item:q,index:j,__ts:Date.now()};try{typeof i=="function"&&i(L)}catch{}if(w==="active"&&typeof s=="function")try{s(L)}catch{}},[u,i,w,s]),z=o.useCallback(async()=>{if(A||w==="disabled")return;x(!0);let q=!1;const j=new Promise(L=>{N.current=()=>{q=!0,L()}});try{for(let L=0;L<b.length&&!(!k.current||q);L++){const O=f.current[L];O&&await Promise.race([c3(O.play(),u3),j])}}finally{N.current=null,x(!1)}},[A,w,b.length]),R=o.useCallback((q,j)=>{if(w!=="active")return;_(j);const L={selectedValue:q.word||q.title||"",selectedIndex:j,item:q,__ts:Date.now()};try{typeof i=="function"&&i(L)}catch{}if(w==="active"&&typeof s=="function")try{s(L)}catch{}},[i,w,s]);return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:C,onDone:s,titleProps:{usePlayAllBtn:!c&&b.length>0,onPlayAll:z,playAllActive:A},children:t.jsx("div",{className:"training-step__cards",onClickCapture:q=>{const j=N.current;if(!j)return;const L=q.target;L&&typeof L.closest=="function"&&L.closest(".training-word-card__bottom")&&j()},children:b.length===0?t.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):b.map((q,j)=>t.jsx(Bo,{ref:L=>{f.current[j]=L},item:q,disabled:w==="disabled",onPlayDone:()=>S(q,j),selectable:u,selected:u&&h===j,onSelect:u?()=>R(q,j):void 0,flipDelay:j*120,hideLabel:d,hideAudio:c},q&&q.id||j))})})}const d3=160,p3={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function m3(e,n){const a=p3[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}const nc=()=>{};function Mn(e){const n=o.useId();if(!("variant"in e)){const{label:h,sub:_,onClick:f,children:A,align:x="horizontal",icon:N,useFullWidth:k=!1}=e,B=E=>{f&&E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),f())};return t.jsxs("div",{className:Ne("panel-row",x==="vertical"?"panel-row--vertical":"",k?"panel-row--label-fixed panel-row--fill":"",f?"panel-row--clickable":""),onClick:f,onKeyDown:f?B:void 0,role:f?"button":void 0,tabIndex:f?0:void 0,children:[N!=null&&t.jsx("div",{className:"panel-row__icon",children:N}),h!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:h}),_&&t.jsx("div",{className:"panel-row__sub caption-1",children:_})]}),t.jsx("div",{className:"panel-row__right",children:A})]})}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(Ma,{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:s,onClick:i,required:l,error:u,align:d="horizontal",useFullWidth:c=!1,icon:p}=e,m=a==="button"?void 0:i;let C=null;const g=a==="toggle"?`panel-toggle-${n}`:void 0,v=u?`panel-error-${n}`:void 0,b=`panel-helper-${n}`;if(a==="toggle"){const h=e;C=t.jsx(zl,{checked:h.checked,onChange:h.onChange,id:g})}else if(a==="segmented"){const h=e;C=t.jsx(An,{options:h.options,value:h.value,onChange:h.onChange,size:h.size??40,ariaLabel:r})}else if(a==="dropdown"){const h=e,_=h.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${c?" panel-row__dropdown-group--full":""}`,children:h.dropdowns.map((f,A)=>t.jsx("div",{className:c?"panel-row__dropdown-item--full":void 0,children:t.jsx(ln,{options:f.options,value:f.value,onChange:f.onChange,placeholder:f.placeholder,block:c,error:!!u,ariaDescribedBy:v,ariaLabel:f.ariaLabel??([r,f.placeholder].filter(Boolean).join(" ")||void 0)})},A))}):t.jsx(ln,{options:h.options??[],value:h.value??"",onChange:h.onChange??nc,block:c,error:!!u,ariaLabel:r,ariaDescribedBy:v});C=u?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${c?" panel-row__dropdown-error-wrap--full":""}`,children:[_,t.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}):_}else if(a==="button"){const h=e;h.buttons?.length?C=t.jsx("div",{className:"panel-row__button-group",children:h.buttons.map((_,f)=>t.jsx(pe,{htmlType:"button",size:_.btnSize??40,variant:_.btnVariant??"default",disabled:_.disabled,onClick:_.onClick,children:_.label},f))}):C=t.jsx(pe,{htmlType:"button",size:h.btnSize??40,variant:h.btnVariant??"default",disabled:h.disabled,onClick:h.onClick,children:h.buttonLabel})}else if(a==="text"){const h=e;C=t.jsx("span",{className:`panel-row__text body-2${c?" panel-row__text--full":""}`,style:h.valueColor?{color:h.valueColor}:void 0,children:h.value})}else if(a==="input"){const h=e;C=t.jsxs("div",{className:`panel-row__input-wrap${c?" panel-row__input-wrap--full":""}`,children:[t.jsx(Un,{value:h.value,onChange:h.onChange??nc,onKeyDown:h.onKeyDown,onEnter:h.onEnter,placeholder:h.placeholder,ghostText:h.ghostText,ghostHint:h.ghostHint,inputMode:h.inputMode,readOnly:h.readOnly,disabled:h.disabled,type:h.type,autoComplete:h.autoComplete,maxLength:h.maxLength,showCount:h.showCount,multiline:h.multiline,rows:h.rows,fullWidth:c,error:u,ariaLabel:r,required:l,ariaDescribedBy:h.helperText?b:void 0}),h.helperText&&t.jsx("div",{id:b,className:"panel-row__helper caption-1",children:h.helperText})]})}else a==="custom"&&(C=e.children);u&&a!=="input"&&a!=="dropdown"&&(C=t.jsxs("div",{className:`panel-row__dropdown-error-wrap${c?" panel-row__dropdown-error-wrap--full":""}`,children:[C,t.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const y=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&c,w=h=>{m&&h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),m())};return t.jsxs("div",{className:Ne("panel-row",d==="vertical"?"panel-row--vertical":"",y?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?w: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:[g?t.jsxs("label",{htmlFor:g,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:"*"})]}),s&&t.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),t.jsx("div",{className:"panel-row__right",children:C})]})}function ac(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function h3({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=ye.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(s=>{const i=e[s],l=s==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return 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(pe,{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(s)})]}),i?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&t.jsx(xt,{size:"small",variant:su(i.device),fill:"soft",label:m3(i.device,r)}),ac(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:ac(i)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),_o(i.wornYear,i.wornMonth,i.wornDay)&&t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:_o(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")})]},s)})})}function dr({title:e,titleLevel:n=2,icon:a,disc:r,actions:s,size:i="medium",minHeight:l,maxWidth:u,className:d,scrollable:c,scrollbarGutter:p="auto",compactRows:m=!1,useBorder:C=!0,useBg:g=!0,useRowBorder:v=!0,labelWidth:b,form:y=!1,loading:w,empty:h,children:_}){const f=Ne("panel",`panel--${i}`,y?"panel--form":"",l!==void 0?"panel--fill":"",C?"":"panel--no-border",g?"":"panel--no-bg",v?"":"panel--no-row-border",m?"panel--compact-rows":"",d),A={};l!==void 0&&(A.minHeight=l),u!==void 0&&(A.maxWidth=typeof u=="number"?`${u}px`:u),b!==void 0&&(A["--panel-label-width"]=typeof b=="number"?`${b}px`:b);const x=n?`h${n}`:"div";return t.jsxs("div",{className:f,style:Object.keys(A).length?A:void 0,children:[(!!e||r!=null)&&t.jsxs("div",{className:Ne("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&t.jsx(Ze,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),t.jsxs("div",{className:"panel__title-group",children:[!!e&&t.jsx(x,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&t.jsx("p",{className:"panel__disc caption-1",children:r})]}),s&&t.jsx("div",{className:"panel__actions",children:s})]}),w?t.jsx(Mn,{variant:"loading"}):h!=null&&o.Children.toArray(_).length===0?t.jsx(Mn,{variant:"empty",children:h}):c?t.jsx("div",{className:Ne("panel__body--scroll",p==="stable"&&"panel__body--gutter-stable"),children:_}):_]})}function C3({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function f3(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 rc(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"}]}f3(St.t.bind(St)),rc(St.t.bind(St));const Uo="none",g3=.5,b3=1.5,y3=.25;function Go({title:e,valueLabel:n,value:a,min:r,max:s,step:i,tickStep:l,size:u,onChange:d}){return t.jsxs(Mn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(tu,{value:a,onChange:d,min:r,max:s,step:i,size:u,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),t.jsx("div",{className:"noise-settings__value button-1",children:n})]})}function oc({anchorRect:e,onClose:n}){const{t:a}=ye.useTranslation(),r=tn("(max-width: 767px)")?40:24,s=lr(),i=Ra(s?.settings??Ia),l=s?.settings.type??"defaultNoise",u=s?.settings.enabled??!0,d=s?.playbackRate??1,c=s?.mainVolume??1,p=Math.round(c*100),m=o.useCallback(b=>{try{s?.setMainVolume(Math.max(0,Math.min(1,b/100)))}catch{}},[s]),C=o.useCallback(b=>{try{s?.setPlaybackRate(b)}catch{}},[s]),g=o.useCallback(b=>{const y=Math.min($a,Math.max(0,Math.round(b*10)/10));try{s?.setSettings({noiseRatio:y})}catch{}},[s]),v=o.useCallback(b=>{try{b===Uo?s?.setSettings({enabled:!1}):s?.setSettings({type:b,enabled:!0})}catch{}},[s]);return t.jsx(on,{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(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(dr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(Go,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),t.jsx(Go,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:g3,max:b3,step:y3,size:r,onChange:C}),t.jsx(Mn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(An,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Uo,label:a("training.noise.type.none","\uC5C6\uC74C")},...rc(a).map(b=>({key:b.value,label:b.label}))],value:u?l:Uo,onChange:v})}),t.jsx(Go,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:$a,step:Vu,size:r,onChange:g})]})})}function sc({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:u=1,resultOpen:d=!1}){const{t:c}=ye.useTranslation(),[p,m]=o.useState(!1),[C,g]=o.useState(null),[v,b]=o.useState(!1),y=o.useRef(null),w=o.useRef(null),h=lr(),_=u>0,f=_&&l<u-1,A=!_||l>=u-1,x=s===Math.max(0,i);o.useEffect(()=>{e||(m(!1),g(null))},[e]);const N=o.useCallback(()=>{m(!1),g(null)},[]),k=o.useCallback(()=>{if(p){m(!1),g(null);return}const O=y?.current?.getBoundingClientRect();O&&g(O),n?.(),m(!0)},[p,n]),B=o.useCallback(()=>{if(p){m(!1),g(null);return}const O=w?.current?.getBoundingClientRect();O&&g(O),n?.(),m(!0)},[p,n]),E=tn("(max-width: 767px)"),S=o.useRef(null),[z,R]=o.useState(null),q=o.useCallback(()=>{b(O=>{const Z=!O;return R(Z?S.current?.getBoundingClientRect()??null:null),Z})},[]),j=o.useCallback(()=>{b(!1),R(null)},[]);o.useEffect(()=>{d&&(b(!1),R(null))},[d]);const L=t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:c("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(yo,{analyser:h?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:c("training.meter.sentence","\uC7AC\uC0DD")})]}),t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:c("training.meter.noise","\uC18C\uC74C")}),t.jsx(yo,{analyser:h?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:c("training.meter.noise","\uC18C\uC74C")})]})]});return Ju(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[y.current,w.current].map(O=>O?.querySelector("button")??null).find(O=>!!O&&O.getClientRects().length>0)??y.current?.querySelector("button")??null),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:y,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(pe,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:k,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:c("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:c("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:w,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(pe,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:B,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:c("training.settings","\uC124\uC815")})})})]}):null,e&&t.jsx("div",{ref:S,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:t.jsx(pe,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:q,selected:v,"aria-expanded":E?v:void 0,ariaLabel:c("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&v&&!E&&t.jsx("div",{className:"pp-bottom__meters",children:L})]}),e&&v&&E&&z&&t.jsx(on,{anchorRect:z,onClose:j,ariaLabel:c("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:t.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:L})}),t.jsxs("div",{className:"pp-bottom__right",children:[A&&t.jsx(pe,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:c("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:c("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!x}),f&&t.jsx(pe,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:c("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:c("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!x})]}),e&&p&&t.jsx(oc,{anchorRect:C,onClose:N})]})}function ic({title:e,subtitle:n,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:u,pageCount:d,progressMax:c,progressIndex:p,onBack:m,onClose:C}){const{t:g}=ye.useTranslation(),v=tn("(max-width: 767px)"),b=Number.isInteger(p)?p:u||0,y=Number.isInteger(c)?c:d||0,w=m||C,h=Array.isArray(r)?v?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,f=typeof n=="string"?n.trim():n,A=!!(_||f),x=A?_||f:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),N=h||(_?n:void 0),k=v&&typeof N=="string"&&(N.includes(" \xB7 ")||N.includes(" / "))?N.split(/\s[·/]\s/).pop():N,B=o.useMemo(()=>{const E=i&&typeof i=="object"?{...i}:{};return!("width"in E)&&!("height"in E)&&(E.width="40px",E.height="40px"),E},[i]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[w?t.jsx(pe,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:w,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:s?t.jsx(Ml,{icon:s,label:e,tooltip:l,wrapperStyle:B}):null}),t.jsxs("div",{className:"pp-title__text",children:[k?t.jsx("span",{className:"pp-title__depth caption-1",children:k}):null,t.jsx("span",{className:`pp-title__title h2${A?"":" pp-title__title--empty"}`,children:x}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(ou,{max:Math.max(0,y??0),index:Math.max(0,b??0)})]})}function v3(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function x3(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 lc=(e,n)=>{if(!n)return n;const a=typeof St?.t=="function"?St.t(e,{defaultValue:n}):void 0;return typeof a=="string"&&a?a:n};function uc(e,n,a){const r=e,s=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",i=mi().find(u=>u.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(u=>u.key===(r?.category_1||r?.category_sub_code));return{title:s,label:r?.title||s,depth:n,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?lc(`topic.${i.key}`,i.label):void 0,l?lc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Ko(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function _3(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function w3({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:u}){const d=uc(n,a,r),c=typeof u=="function"?u(d)||{}:u||{},p=n?.id||n?.title||s.length;return{id:`${e}:${p}`,meta:{...d,...c},pages:s,emptyMessage:i,buildResults:l}}function A3(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function B3(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 k3(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 cc(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function N3(e,n,a,r){return cc(e,n*a+r)}function D3({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const s=e;if(Array.isArray(s.selectedValues))return r.every(i=>s.selectedValues.includes(i))&&s.selectedValues.every(i=>r.includes(i));if(typeof s.correct=="boolean")return s.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[n]));if(typeof n<"u")return r.some(s=>String(s)===String(n))}}function E3(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 dc=o.createContext(null);function S3(){const e=o.useContext(dc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function j3({index:e,stepIndex:n,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:u}=ye.useTranslation(),d=typeof e=="number"?e:-1,c=typeof n!="number"?"disabled":d<n?"done":d===n?"active":"disabled",[p,m]=o.useState(()=>s.map(()=>null)),C=JSON.stringify(s),g=s.length;o.useEffect(()=>{m(Array.from({length:g},()=>null))},[C]);const v=o.useRef(void 0);o.useEffect(()=>{const h=v.current;typeof h=="number"&&typeof n=="number"&&typeof e=="number"&&h>=e&&n<e&&m(Array.from({length:g},()=>null)),v.current=n},[n,e,g]);const b=o.useMemo(()=>p.filter(h=>h!==null).length+1,[p]),y=o.useCallback(h=>{if(c!=="active")return;const _=p;let f;if(_[h]!=null){const x=_[h];f=_.map(N=>N!==null&&N>=x?null:N)}else f=[..._],f[h]=b;m(f);const A={selectedOrder:f,words:s,__ts:Date.now()};try{typeof l=="function"&&l(A)}catch{}if(_[h]==null&&f.length>0&&f.every(x=>x!==null))try{typeof i=="function"&&i(A)}catch{}},[c,p,b,l,i,s]),w=r??u("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:w,onDone:i,children:t.jsx("div",{className:"training-step__cards",children:s.map((h,_)=>t.jsx(Bo,{item:{word:h},disabled:c==="disabled",selectable:!0,selected:p[_]!==null,orderRank:p[_],onSelect:()=>y(_),flipDelay:_*120,hideLabel:!1,hideAudio:!0},`${h}-${_}`))})})}function pr(e){return null}pr.__isTrainingPage=!0;function da(e,n){const a=S3();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 pc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=da(e,n);return t.jsx(Wo,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function mc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(zo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function hc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(Vo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Cc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(qo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function fc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(tc,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function T3({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(j3,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Yo(...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 s of r){if(typeof s=="string"&&s.trim().length)return s.trim();if(typeof s=="number"||typeof s=="boolean")return String(s)}}}return null}function M3(e){return Yo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function gc(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=Yo(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 bc(e){const{score:n,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:u=!1,pending:d=!1}=e||{},{t:c}=ye.useTranslation(),p=o.useId(),m=o.useCallback(()=>!d,[d]);o.useEffect(()=>{const h=a??0;if(n!=null&&h>0&&n/h>.5){const _=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(_)}},[n,a]);const C=o.useCallback(h=>{const _=gc(h),f=Yo(h?.wording,h?.label);return _===!0?{variant:"main",label:f??c("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:_===!1?{variant:"danger",label:f??c("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:f??c("training.result.notJudged","\uBBF8\uD310\uC815")}},[c]),g=a??0,v=n??0,b=o.useMemo(()=>Array.isArray(r)?r:[],[r]),y=o.useMemo(()=>b.map(h=>{const _=h??{},f=M3(_)||c("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:A,label:x}=C(_),N=Array.isArray(_.corrects)?_.corrects:[],k=N.length?N.join(", "):_.answer!=null&&_.answer!==""?String(_.answer):null,B=typeof _.selectedText=="string"?_.selectedText:null,E=gc(_)===!0;return{problem:f,variant:A,label:x,answer:k,selectedText:B,isCorrect:E}}),[b,C,c]),w=o.useMemo(()=>y.some(h=>h.answer!==null||h.selectedText!==null),[y]);return t.jsx(Tn,{onClose:l,closeOnBackdrop:!1,inline:u,ariaLabel:c("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:m,footerClassName:"trp-result__foot",footer:({animateThen:h,closeWithAnimation:_})=>t.jsxs(t.Fragment,{children:[d&&t.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:c("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsxs("div",{className:"trp-actions",children:[t.jsx(pe,{htmlType:"button",size:56,type:"bar",label:c("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>h(i)}),t.jsx(pe,{htmlType:"button",size:56,type:"bar",label:c("training.result.done","\uC644\uB8CC"),variant:"main",onClick:_,disabled:d,onDisabledClick:d?()=>{}:void 0,"aria-describedby":d?p:void 0})]})]}),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:c("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:c("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&t.jsx("p",{className:"trp-result__subtitle body-3",children:s}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":c("training.result.scoreAria",{correct:v,total:g}),children:[t.jsx("span",{className:"trp-score__big",children:v}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:g})]})})]}),y.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${w?" result-table--answer":""}`,role:"table","aria-label":c("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:c("common.col.problem","\uBB38\uC81C")}),w&&t.jsx("span",{role:"columnheader",children:c("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:c("training.result.colJudge","\uD310\uC815")})]}),y.map((h,_)=>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(_+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:h.problem})]}),w&&t.jsxs("div",{className:"trp-row__answers",children:[h.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:c("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:h.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${h.isCorrect?"is-correct":"is-wrong"}`,children:c("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${h.isCorrect?"is-correct":"is-wrong"}`,children:h.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(xt,{variant:h.variant,label:h.label,fill:"soft",minWidth:80})})]},_))]})})]})})}function L3(e){o.useEffect(()=>{if(!e)return;const n=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const p=Date.now();a==null&&(a=p),r==null&&(r=p)},u=()=>{r!=null&&(s+=Date.now()-r,r=null)};n()&&l();const d=()=>{if(u(),a==null||s-i<1e3||i===0&&s<5e3)return;const p=a+i;i=s,EC({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+s).toISOString()})},c=()=>{n()?l():d()};return typeof document<"u"&&document.addEventListener("visibilitychange",c),typeof window<"u"&&window.addEventListener("pagehide",d),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",c),typeof window<"u"&&window.removeEventListener("pagehide",d),d()}},[e])}function Zo(e,n){return e&&e.id||`page-${n??0}`}function Xo(e,n){return e&&e.key||`step-${n??0}`}function mr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function $3(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const R3=300,P3=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Ln=Object.freeze({}),yc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function vc(e){const n=e,a=n?.results||n?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,s=Array.isArray(a)?a.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:a,correct:r!=null?s:null,total:r}}const I3=e=>t.jsx(bc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function F3(e){const{scenario:n,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:u,pageIndex:d,pageCount:c,stepIndex:p,stepCount:m,onBack:C,onComplete:g,onNext:v,onSettings:b,useNoiseSetting:y=!0,children:w,ariaLabel:h,label:_,buildResults:f,onResult:A,typeKey:x,entryPoint:N,dailyTotal:k,itemRef:B,renderResultPopup:E,noiseOverride:S}=e;L3(x&&!yc.has(x)?x:"");const z=o.useRef(0);o.useEffect(()=>{z.current=Date.now()},[]);const{t:R}=ye.useTranslation(),q=A,j=!!n,L=n?.id||null,O=n?.meta||{},Z=Array.isArray(n?.pages)?n.pages:[],ee=Array.isArray(w)||o.isValidElement(w)&&typeof w!="function"?o.Children.toArray(w).filter(o.isValidElement):[],W=ee.length>0,U=re=>re===pr||re?.__isTrainingPage===!0,P=W&&ee.some(re=>U(re.type)),F=P?ee.filter(re=>U(re.type)).map((re,ve)=>{const G=re.props||{};return{id:`children-page-${ve}`,steps:o.Children.toArray(G.children).filter(o.isValidElement),pageTop:G.pageTop||G.top||null,pageBottom:G.pageBottom||G.bottom||null}}):[{id:"children-page-0",steps:ee}],D=W&&!j&&typeof w!="function",H=D?Math.max(1,F.length):0;o.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),o.useEffect(()=>{if(typeof document>"u"||!document.body)return;const re=document.body;return re.dataset.ihabTrainingPopupCount=String(Number(re.dataset.ihabTrainingPopupCount||"0")+1),re.classList.add("ihab-training-popup-open"),()=>{const ve=Number(re.dataset.ihabTrainingPopupCount||"1")-1;ve>0?re.dataset.ihabTrainingPopupCount=String(ve):(delete re.dataset.ihabTrainingPopupCount,re.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return j4()},[]);const[M,I]=o.useState({...Ia,enabled:!1}),$=o.useRef(M);o.useEffect(()=>{$.current=M},[M]);const K=o.useRef(S),ne=o.useRef(!1),X=o.useRef(null);o.useEffect(()=>{let re=!1;const ve=G=>{if(re)return;ne.current=!0;const ie=G?Pa({...Ia,enabled:!1},G):{...Ia},de=X.current;X.current=null;const _e=de?Pa(ie,de):ie;$.current=_e,I(_e),de&&!K.current&&li(_e),qa(_e);const we=K.current;if(we){const je=typeof we=="function"?we(_e):we,rt=Pa(_e,je);$.current=rt,I(rt),qa(rt)}};return MC().then(ve),()=>{re=!0}},[]);const[ae,ue]=o.useState(null),[le,be]=o.useState(null),V=o.useCallback((re,ve)=>{re==="main"?ue(ve):be(ve)},[]),Q=o.useRef(null),oe=o.useRef(null),Be=o.useCallback(()=>{oe.current!==null&&(clearTimeout(oe.current),oe.current=null);const re=Q.current;Q.current=null,re&&li(re)},[]);o.useEffect(()=>{if(typeof window>"u")return;const re=()=>{document.visibilityState==="hidden"&&Be()};return window.addEventListener("pagehide",Be),document.addEventListener("visibilitychange",re),()=>{window.removeEventListener("pagehide",Be),document.removeEventListener("visibilitychange",re),Be()}},[Be]);const Ce=o.useCallback(re=>{const ve=Pa($.current,re);if($.current=ve,I(ve),!ne.current){X.current={...X.current??{},...re},qa(ve);return}K.current||(Q.current=ve,oe.current!==null&&clearTimeout(oe.current),oe.current=setTimeout(Be,R3)),qa(ve)},[Be]),se=M.mainSpeed,ge=M.mainVolume,fe=o.useCallback(re=>Ce({mainSpeed:re}),[Ce]),xe=o.useCallback(re=>Ce({mainVolume:re}),[Ce]),$e=o.useMemo(()=>({settings:M,setSettings:Ce,registerAnalyser:V,mainAnalyser:ae,noiseAnalyser:le,playbackRate:se,setPlaybackRate:fe,mainVolume:ge,setMainVolume:xe}),[M,Ce,V,ae,le,se,fe,ge,xe]),Le=o.useRef(null),[Qe,Ue]=o.useState(0),ze=o.useRef([]),[Ie,st]=o.useState("center"),[Xe,Je]=o.useState(!1),Ee=o.useRef(!1),ke=o.useRef(null),Me=o.useCallback(re=>{Ee.current||(Ee.current=!0,Je(!0),ke.current=setTimeout(()=>{try{re()}catch{Ee.current=!1,Je(!1)}},P3()?0:d3))},[]);o.useEffect(()=>()=>{ke.current&&clearTimeout(ke.current)},[]);const Ve=o.useRef(C);o.useEffect(()=>{Ve.current=C}),o.useEffect(()=>{const re=Le.current,ve=document.activeElement;if(qr(re,ve),re){const G=Array.from(re.querySelectorAll(mn)).filter(ie=>!ie.closest('[aria-hidden="true"]'))[0];if(G)try{G.focus()}catch{}}return()=>{const G=document.activeElement;if(!G||G===document.body||re&&re.contains(G))try{Ur(ve)?.focus?.()}catch{}}},[]),o.useEffect(()=>zn(()=>Me(()=>{const re=Ve.current;typeof re=="function"&&re()})),[Me]),Vr(Le,!0);const[lt,te]=o.useState(!1),ce=o.useRef(!1),[me,Se]=o.useState(null),et=o.useRef(0),Ke=()=>{et.current+=1,Se(null)},[bt,ut]=o.useState(""),[it,tt]=o.useState(()=>mr()),Ge=o.useRef(typeof d=="number"?d:null);o.useEffect(()=>{!j&&!D||(tt(mr()),Ke())},[j,L,D]),o.useEffect(()=>{D&&tt(re=>{const ve=Math.max(0,Math.min(re.pageIndex,Math.max(0,H-1)));return ve!==re.pageIndex?{...re,pageIndex:ve,stepIndex:0}:re})},[D,H]);const Ye=D?Math.max(0,Math.min(it.pageIndex,H-1)):0,Re=D?F[Ye]:null,We=D&&Re&&Array.isArray(Re.steps)?Re.steps:[],Fe=j?it.pageIndex:D?Ye:typeof d=="number"?d:0,ct=j?Z[Math.max(0,Math.min(it.pageIndex,Math.max(0,Z.length-1)))]:null,Bt=j&&ct&&Array.isArray(ct.steps)?ct.steps:[],Nt=j?Bt.length:D?We.length:typeof m=="number"?m:0,Ct=j||D?Math.max(0,Math.min(it.stepIndex,Math.max(0,Nt))):typeof p=="number"?p:0,dt=j?Z.length:D?H:typeof c=="number"?c:0;o.useLayoutEffect(()=>{const re=Ge.current;if(typeof Fe=="number"&&re!==null&&Fe!==re&&Fe>re)try{ut(R("training.problemNotice",{n:Fe+1}))}catch{}Ge.current=typeof Fe=="number"?Fe:Ge.current},[Fe,d,R]),o.useLayoutEffect(()=>{const re=Le.current;if(!re)return;const ve=()=>re.querySelector(".page-popup__scroll");let G=null,ie=null,de=null;const _e=pt=>{const _t=ve();if(!_t)return;const Rt=_t.scrollHeight<=_t.clientHeight;if(st(Rt?"center":"top"),pt&&!ce.current){ce.current=!0;try{te(!0)}catch{}try{rt.disconnect()}catch{}}},we=()=>{G!==null&&cancelAnimationFrame(G),G=requestAnimationFrame(()=>{ie!==null&&clearTimeout(ie),ie=setTimeout(()=>_e(!0),60)})},je=()=>{de!==null&&cancelAnimationFrame(de),de=requestAnimationFrame(()=>_e(!1))};we(),window.addEventListener("resize",je);const rt=new MutationObserver(we);rt.observe(re,{childList:!0,subtree:!0,attributes:!0});const yt=setTimeout(()=>{ce.current||_e(!0)},400);return()=>{window.removeEventListener("resize",je),G!==null&&cancelAnimationFrame(G),ie!==null&&clearTimeout(ie),de!==null&&cancelAnimationFrame(de),clearTimeout(yt);try{rt.disconnect()}catch{}}},[Le]);const Oe=o.useCallback(re=>{Le.current&&(Le.current._childOnNext=re)},[]),at=o.useCallback(re=>{Le.current&&(Le.current._childOnResult=re)},[]),ft=o.useCallback((re,ve,G)=>{tt(ie=>{const de=ie.answersByPage[re]||{},_e=de[ve],we=Ko(G),je=Ko(_e);return _e&&je>we?ie:{...ie,answersByPage:{...ie.answersByPage,[re]:{...de,[ve]:G}}}})},[tt]),Ot=o.useCallback((re,ve,G)=>{const ie=Zo(ct,Fe),de=Xo(re,ve);ft(ie,de,G)},[ct,Fe,ft]),nt=o.useCallback((re,ve,G)=>{const ie=Zo(ct,Fe),de=Xo(re,ve);ft(ie,de,G),!G?.allowChange&&re?.autoAdvance!==!1&&tt(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,ve+1)}))},[ct,Fe,ft,tt]),Tt=o.useCallback((re,ve)=>{const G=Re?.id||`children-page-${Fe??0}`,ie=typeof ve=="number"?ve:Ct??0,de=`step-${ie}`;ft(G,de,re),re?.allowChange||tt(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,ie+1)}))},[Re,Fe,Ct,ft,tt]),Yt=o.useCallback((re,ve)=>{const G=Re?.id||`children-page-${Fe??0}`,ie=`step-${typeof ve=="number"?ve:Ct??0}`;ft(G,ie,re)},[Re,Fe,Ct,ft]),Mt=D?{currentPageIndex:Fe??0,currentStepIndex:Ct??0,totalStepsInPage:We.length,handleStepDone:Tt,handleStepChange:Yt}:null,un=async()=>{const re=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:Z,flowState:it,answersByPage:it.answersByPage})):null;return typeof q=="function"&&await Promise.resolve(q(re))||re},cn=async()=>{const re=Re?.id||`children-page-${it.pageIndex}`,ve=it.answersByPage[re]||{},G=P?(()=>{const _e={};let we=0;return F.forEach(je=>{const rt=it.answersByPage[je.id]||{},yt=Array.isArray(je.steps)?je.steps.length:0;for(let pt=0;pt<yt;pt+=1){const _t=rt[`step-${pt}`];typeof _t<"u"&&(_e[`step-${we+pt}`]=_t)}we+=yt}),_e})():ve;if(typeof f=="function"){const _e=await Promise.resolve(f(G,{pageAnswers:ve,answersByPage:it.answersByPage,pages:F,currentPageId:re}));return typeof q=="function"&&await Promise.resolve(q(_e))||_e}const ie=Object.entries(ve).map(([_e,we],je)=>({index:je,key:_e,payload:we})),de={results:ie,answers:ie,score:0};return typeof q=="function"&&await Promise.resolve(q(de))||de},dn=()=>{const re=++et.current,ve=()=>re!==et.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 de=un();Se(Ln);const _e=de;Promise.resolve(_e).then(we=>{ve()||Se(we||{isEmpty:!0})}).catch(we=>{!ve()&&Se({isEmpty:!0})});return}if(D){const de=cn();Se(Ln);const _e=de;Promise.resolve(_e).then(we=>{ve()||Se(we||{isEmpty:!0})}).catch(we=>{!ve()&&Se({isEmpty:!0})});return}const G=Le.current&&Le.current._childOnResult,ie=de=>{try{return de?de():void 0}catch{return}};if(typeof G=="function"){const de=ie(G);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}de&&typeof de.then!="function"?Se(de):Se(de&&typeof de.then=="function"?Ln:{});const _e=()=>{ve()||Se(we=>we===Ln?{}:we)};Promise.resolve(de).then(we=>{we&&!ve()?Se(we):_e()}).catch(we=>{_e()});return}if(typeof q=="function"){const de=ie(q);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}de&&typeof de.then!="function"?Se(de):Se(de&&typeof de.then=="function"?Ln:{});const _e=()=>{ve()||Se(we=>we===Ln?{}:we)};Promise.resolve(de).then(we=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}we&&!ve()?Se(we):_e()}).catch(we=>{console.error("viewResults external handler failed",we),_e()});return}},Rn=()=>{if(j){if(typeof Fe=="number"&&typeof dt=="number"&&Fe<dt-1){tt(ve=>({...ve,pageIndex:ve.pageIndex+1,stepIndex:0}));return}return dn()}if(D){const ve=We.length;if(typeof Ct=="number"&&Ct<ve-1){tt(G=>({...G,stepIndex:G.stepIndex+1}));return}if(typeof Fe=="number"&&typeof dt=="number"&&Fe<dt-1){tt(G=>({...G,pageIndex:G.pageIndex+1,stepIndex:0}));return}return dn()}if(typeof v=="function"){try{v()}catch{}return}const re=Le.current&&Le.current._childOnNext;if(typeof re=="function"){try{re()}catch{}return}},pn=j?O.title||O.label||h||R("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(s)?s[s.length-1]:void 0)||h||R("common.popup","\uD31D\uC5C5"),Pn=h||pn,Nn=j?O.title??O.label??pn:a??_??pn,Dt=(re,ve)=>{const G=Zo(ct,Fe),ie=Xo(re,ve),de=it.answersByPage[G]?.[ie],_e=$3(re,{page:ct,pageIndex:Fe,step:re,stepIndex:ve,storedPayload:de,answersByPage:it.answersByPage,flowState:it}),we={key:ie,index:ve,stepIndex:Ct,isLast:ve===Bt.length-1};switch(re?.type){case"listen":return t.jsx(Wo,{...we,..._e,onDone:je=>nt(re,ve,je)});case"confirm":return t.jsx(zo,{...we,..._e,onDone:je=>nt(re,ve,je),onChange:je=>Ot(re,ve,je)});case"confirmWithText":return t.jsx(Vo,{...we,..._e,onDone:je=>nt(re,ve,je),onChange:je=>Ot(re,ve,je)});case"orderList":return t.jsx(qo,{...we,..._e,onDone:je=>nt(re,ve,je),onChange:je=>Ot(re,ve,je)});default:return null}},Cn=o.useRef(void 0);o.useEffect(()=>{const re=Cn.current;if(Cn.current=Fe,re===void 0||re===Fe||!ar())return;const ve=Le.current;if(!ve)return;const G=document.activeElement;if(!(!G||G===document.body||!ve.contains(G)||G.disabled===!0))return;const ie=ve.querySelector(`.training-steps ${mn.split(", ").join(", .training-steps ")}`)??Array.from(ve.querySelectorAll(mn)).find(de=>!de.closest('[aria-hidden="true"]'));try{ie?.focus()}catch{}},[Fe]);const Ht=j?Z.length>0?t.jsx("div",{className:"training-steps",children:Bt.map((re,ve)=>Dt(re,ve))},`replay-${Qe}`):t.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||R("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Zt=D?t.jsxs(dc.Provider,{value:Mt,children:[Re?.pageTop?t.jsx("div",{className:"training-page-top",children:Re.pageTop}):null,t.jsx("div",{className:"training-steps",children:We.map((re,ve)=>{const G=re;return o.cloneElement(G,{...G.props,_stepIndex:ve,_totalSteps:We.length,_stepKey:`step-${ve}`,_pageIndex:Fe})})},`replay-${Qe}`),Re?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:Re.pageBottom}):null]}):null,fn=o.useCallback(()=>{let re;if(x){const ve=me,{results:G,correct:ie,total:de}=vc(me);SC({items:TC(G),category:yc.has(x)?"sentence":"word",trainingType:x,entryPoint:N??"sentence",itemRef:B??null,correct:ie,total:de,score:typeof ve?.score=="number"?ve.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-z.current)/1e3)),dailyTotal:k??null}),re={correct:ie,total:de,attempt:ze.current.length+1,previousAttempts:[...ze.current]}}Ke(),Me(()=>{typeof g=="function"&&g(re),typeof C=="function"&&C()})},[g,C,x,N,k,B,me,Se,Me]),en=o.useCallback(()=>ut(""),[ut]),gn=o.useCallback(()=>{Me(()=>{typeof C=="function"&&C()})},[C,Me]),In=t.jsxs("div",{className:`page-popup${Xe?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Pn,children:[t.jsxs("div",{ref:Le,className:`page-popup__panel ${lt?"":"page-popup__panel--measuring"} ${Ie==="center"?"page-popup__panel--center":Ie==="top"?"page-popup__panel--top":""}`,children:[t.jsx(ic,{title:Nn,subtitle:j?O.subtitle||O.label:Array.isArray(s)?s.join(" / "):void 0,desc:j?void 0:r,depth:j?O.depth:s,icon:j?O.icon:i,wrapperStyle:j?O.wrapperStyle:l,iconTooltip:j?O.iconTooltip:u,progressMax:dt,progressIndex:Fe,pageIndex:Fe,pageCount:dt,onBack:gn,onClose:gn}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${Ie==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:D?Zt:j?Ht:typeof w=="function"?w({registerOnNext:Oe,registerOnResult:at,panelRef:Le,setResultOverlay:Se}):w})}),t.jsx(sc,{onSettings:b,onNext:Rn,onResult:dn,useNoiseSettingBtn:!!(j?O.useNoiseSetting??!0:y),stepIndex:Ct,stepCount:Nt,pageIndex:Fe,pageCount:dt,resultOpen:!!(me&&!me.isEmpty)})]}),me&&!me.isEmpty&&(E??I3)({score:me.score,results:me.results||me.answers||[],contextsLength:me.results?me.results.length:me.answers?me.answers.length:0,onReplay:()=>{if(z.current=Date.now(),me!==Ln){const{correct:re,total:ve}=vc(me);ze.current.push({correct:re,total:ve})}if(Ke(),Ue(re=>re+1),j){if(tt(mr()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(D){tt(mr());return}try{const re=Le.current&&Le.current._childOnResult;typeof re=="function"&&re({replay:!0})}catch{}},onClose:fn,pending:me===Ln}),me?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":R("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${e.contentFull?" page-popup__content--full":""}`,children:t.jsx("div",{className:"page-popup__empty",children:R("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(pe,{htmlType:"button",variant:"main",size:48,onClick:fn,label:R("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(ra,{message:bt,position:"top",onClose:en})]}),bn=t.jsx(Ro.Provider,{value:$e,children:In});return typeof document<"u"&&document.body?Xt.createPortal(bn,document.body):bn}const $n=F3;$n.Page=pr,$n.ListenStep=pc,$n.ConfirmStep=mc,$n.ConfirmWithTextStep=hc,$n.OrderListStep=Cc,$n.CardStep=fc,$n.CardOrderStep=T3;function O3({label:e,homonum:n}){const a=Xn()?.(e,n)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:u}=Ao(a);return i?t.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?0:1},onLoad:l,onError:u})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function xc({words:e,anchorRect:n}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,u=window.innerWidth;let d=n.left+n.width/2-i/2,c=n.top-l-8;c<8&&(c=n.bottom+8),d=Math.max(8,Math.min(d,u-i-8)),s({left:d,top:c})},[n]),!n||e.length===0?null:Xt.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(O3,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const H3=new Intl.Collator("ko");function z3({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:u,maxSelect:d,onClearSelection:c,onPrint:p,onPrintEmpty:m,className:C,emptyHint:g,sectionType:v="page",disc:b}){const{t:y,i18n:w}=ye.useTranslation(),h=w.language?.startsWith("ko")??!1,{anchorRect:_,openAt:f,close:A}=wa(),[x,N]=o.useState(null),k=o.useCallback(()=>{A(),N(null)},[A]);db(k,!!x);const B=(r??"").trim(),E=/^[^,[\]\s]+$/.test(B)?B:"",S=E.length>0,z=r===void 0&&n===void 0,R=S?"match":z?"original":"ganada",[q,j]=o.useState(()=>R),[L,O]=o.useState("50"),[Z,ee]=o.useState(1),[W,U]=o.useState(S);W!==S&&(U(S),j(R));const P=q==="match"&&!S||q==="original"&&!z?R:q,F=o.useMemo(()=>[...S?[{value:"match",label:y("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...z?[{value:"original",label:y("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:y("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:y("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:y("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:y("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:y("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:y("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[y,S,z]),D=o.useMemo(()=>["10","25","50","100"].map(se=>({value:se,label:y("wordSearch.pageSize",{count:Number(se),defaultValue:`${se}\uAC1C\uC529 \uBCF4\uAE30`})})),[y]),H=se=>se.words?.[0],M=o.useMemo(()=>{const se=[...E].length,ge=CC(E),fe=new Map;return xe=>{let $e=fe.get(xe);return $e===void 0&&($e=ge((xe.words?.[0]?.label??"").slice(0,se))?0:1,fe.set(xe,$e)),$e}},[E]),I=o.useCallback((se,ge)=>{const fe=Le=>H(Le)?.label??"",xe=Le=>H(Le)?.syllables??[...fe(Le)].length,$e=Le=>(Le.words??[]).reduce((Qe,Ue)=>{const ze=parseInt(Ue.grade??"",10);return Number.isFinite(ze)&&ze<Qe?ze:Qe},999);switch(P){case"match":return M(se)-M(ge)||H3.compare(fe(se),fe(ge));case"ganada":return fe(se).localeCompare(fe(ge),"ko");case"ganada_desc":return fe(ge).localeCompare(fe(se),"ko");case"syllable":return xe(se)-xe(ge)||fe(se).localeCompare(fe(ge),"ko");case"syllable_desc":return xe(ge)-xe(se)||fe(se).localeCompare(fe(ge),"ko");case"grade":return $e(se)-$e(ge)||fe(se).localeCompare(fe(ge),"ko");case"grade_desc":return $e(ge)-$e(se)||fe(se).localeCompare(fe(ge),"ko");default:return 0}},[P,M]),$=o.useMemo(()=>s.slice().sort(I),[s,I]),K=Number(L)||10,ne=o.useMemo(()=>(i??[]).flatMap(se=>se.items.slice().sort(I).map(ge=>({item:ge,label:se.label}))),[i,I]),X=i?ne.length:$.length,ae=Math.max(1,Math.ceil(X/K)),ue=Math.min(Z,ae),le=o.useMemo(()=>$.slice((ue-1)*K,ue*K),[$,ue,K]),be=o.useMemo(()=>{if(!i)return null;const se=ne.slice((ue-1)*K,ue*K),ge=new Map;for(const{item:fe,label:xe}of se)ge.has(xe)||ge.set(xe,[]),ge.get(xe).push(fe);return[...ge.entries()].map(([fe,xe])=>({label:fe,items:xe}))},[i,ne,ue,K]);o.useEffect(()=>{ee(1)},[q,L,X,r]);const V=X>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(ln,{size:40,options:F,value:P,onChange:j,ariaLabel:y("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(ln,{size:40,options:D,value:L,onChange:O,ariaLabel:y("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(er,{page:ue,totalPages:ae,onChange:ee})]}):void 0,Q=se=>{u&&u(se)},oe=n!==void 0&&a?t.jsxs(t.Fragment,{children:[y("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),y("wordSearch.resultTitleSuffix",{unit:h?wC(a):a})]}):void 0,Be=n!==void 0&&n>0&&d!==void 0&&a?y("wordSearch.resultDisc",{unit:h?BC(a):a,max:d,selected:l.length}):void 0,Ce=b??Be;return t.jsxs(sa,{type:v,className:Ne("word-search-result-block",C),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(oe||V||Ce)&&t.jsxs("div",{className:"word-search-result-block__head",children:[t.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&t.jsx(Ze,{icon:e,className:"word-search-result-block__head-icon"}),oe&&t.jsx("span",{className:"word-search-result-block__title h3",children:oe})]}),V&&t.jsx("div",{className:"word-search-result-block__head-actions",children:V}),Ce&&t.jsx("div",{className:"word-search-result-block__head-disc body-3",children:Ce})]}),(i?i.length===0:s.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:y("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(be??[]).map(se=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:se.items.map(ge=>{const fe=l.includes(ge.id);return t.jsx("div",{onMouseEnter:xe=>{f(xe.currentTarget),N(ge.words??[])},onMouseLeave:k,children:t.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(ge.words??[]).map(xe=>xe.label),subLabel:(ge.words??[]).some(xe=>xe.subLabel)?(ge.words??[]).map(xe=>xe.subLabel):void 0,selected:fe,onClick:()=>Q(ge.id),minWidth:200})},ge.id)})})},se.label)):t.jsx("div",{className:"word-search-result-block__items",children:le.map(se=>{const ge=l.includes(se.id);return t.jsx("div",{onMouseEnter:fe=>{f(fe.currentTarget),N(se.words??[])},onMouseLeave:k,children:t.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(se.words??[]).map(fe=>fe.label),subLabel:(se.words??[]).some(fe=>fe.subLabel)?(se.words??[]).map(fe=>fe.subLabel):void 0,selected:ge,onClick:()=>Q(se.id),minWidth:200})},se.id)})}),x&&_&&t.jsx(xc,{words:x,anchorRect:_})]}),ae>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(er,{page:ue,totalPages:ae,onChange:ee})}),(c||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[c&&t.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:y("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:c}),p&&t.jsx("div",{onClick:l.length===0?m:void 0,children:t.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:y("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function V3(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,s=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:s}})}function W3({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:u,onSelect:d,placeholder:c="-",className:p,title:m,titleIcon:C,disc:g,showInfoButton:v=!0,onClearPhoneme:b,onSearch:y,onSearchEmpty:w,searchDisabled:h=!1,searchLabel:_,searchChecking:f=!1,pairMode:A=!1,sectionType:x="page",beforeSearchContent:N,beforeContent:k,afterContent:B,hideCountControl:E=!1,ordinal:S=!1}){const{t:z}=ye.useTranslation(),R=o.useMemo(()=>z("wordPairs.infoNotes",{returnObjects:!0}),[z]),q=o.useMemo(()=>Array.from({length:s-i+1},(M,I)=>{const $=i+I;return{key:String($),label:z("wordPairs.count",{n:$})}}),[z,s,i]),j=o.useMemo(()=>z("wordPairs.ordinals",{returnObjects:!0}),[z]),L=o.useCallback(M=>S?z("wordPairs.phonemeOrdinalLabel",{ordinal:j[M-1]??M}):a===1?z("wordPairs.phonemeSingleLabel","\uC74C\uC808"):z("wordPairs.phonemeN",{n:M}),[S,j,a,z]),O=o.useCallback(M=>S?z("wordPairs.phonemeContrastOrdinalLabel",{ordinal:j[M-1]??M}):a===1?z("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):z("wordPairs.phonemeContrast",{n:M}),[S,j,a,z]),Z=o.useCallback((M,I)=>I?t.jsxs(t.Fragment,{children:[M,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):M,[]),{anchorRect:ee,toggleAt:W,close:U}=wa(),P=o.useCallback(M=>r(Number(M)),[r]),F=tn("(max-width: 767px)"),D=o.useCallback(M=>V3(M,e).map(({label:I,value:$,displayLabel:K})=>{const ne=!!$&&$!=="\uC5C6\uC74C";return t.jsxs("span",{className:Ne("phoneme-select-block__cell-jamo-part",$?"":"phoneme-select-block__cell-jamo-part--empty",ne?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${$==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:$==="\uC5C6\uC74C"?"x":$||c}),ne&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:K??I})]},I)}),[e,c]),H=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(pe,{htmlType:"button",size:40,type:F?"dot":void 0,icon:"info",label:F?void 0:z("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:z("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:ee?"is-selected":void 0,"aria-expanded":!!ee,"aria-haspopup":"dialog",onClick:M=>W(M.currentTarget)})}),ee&&t.jsx(Vn,{title:z("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:R,anchorRect:ee,onClose:U})]});return t.jsxs(sa,{type:x,title:m,icon:C,disc:g,action:v?H:void 0,className:Ne("phoneme-select-block",p),children:[k,!E&&t.jsx("div",{className:"phoneme-select-block__controls",children:t.jsx(An,{options:q,value:String(a),onChange:P,size:40,ariaLabel:z("wordPairs.countLabel","\uC74C\uC18C \uAC1C\uC218"),className:"phoneme-select-block__count-control"})}),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((M,I)=>{const $=n[I*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:D($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(I+1)})]},I)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:z("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((M,I)=>{const $=n[I*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:D($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:O(I+1)})]},I)})})]}):n.map((M,I)=>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:D(M)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(I+1)})]},I))}),(l||u)&&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((M,I)=>{const $=n[I*2]??{};return t.jsx(kn,{title:Z(L(I+1),I===0),sections:u?u($,I*2):l,selected:$,onSelect:d?.(I*2),align:"newline"},I)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((M,I)=>{const $=n[I*2+1]??{};return t.jsx(kn,{title:O(I+1),sections:u?u($,I*2+1):l,selected:$,onSelect:d?.(I*2+1),align:"newline"},I)})})]}):n.map((M,I)=>t.jsx(kn,{title:Z(L(I+1),I===0),sections:u?u(M,I):l,selected:M,onSelect:d?.(I),align:"newline"},I))})}),N&&t.jsx("div",{className:"phoneme-select-block__before-search",children:N}),(b||y||f)&&(()=>{const M=n.every(I=>Object.entries(I).every(([$,K])=>!K||$==="\uC885\uC131"&&K==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:M?w:void 0,children:[b&&t.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:z("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:M,onClick:M?void 0:b}),y?t.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:f?t.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:_??z("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:M||h||f,onDisabledClick:f?()=>{}:void 0,"aria-busy":f||void 0,onClick:y}):f?t.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??z("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),B]})}function q3({title:e,sections:n,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d,headerAction:c,className:p}){const{t:m}=ye.useTranslation();return t.jsx(kn,{className:p,title:e??m("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d,headerAction:c,align:"inline"})}function U3({title:e,headerAction:n,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=ye.useTranslation();return a.length===0?null:t.jsx(kn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:s,align:"newline"})}function G3({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:u,onInputModeChange:d,className:c}){const{t:p}=ye.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")},C=y=>p("wordPairs.count",{n:y}),g=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:t.jsx(Ea,{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(Ea,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[C(1),C(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:t.jsx(Ea,{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.")]})}],v={[m.searchMode]:n==="explicit"?m.explicit:n==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:C(i),[m.inputMode]:u==="phoneme"?m.pronInput:m.charInput},b=(y,w)=>{w===m.searchMode?a(y===m.explicit?"explicit":y===m.pick?"pick":"include"):w===m.phonemeOrder?s(y===m.orderMatch?"ordered":"unordered"):w===m.count?l(y===C(2)?2:1):w===m.inputMode&&d(y===m.pronInput?"phoneme":"word")};return t.jsx(kn,{className:c,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:v,onSelect:b,align:"inline"})}function K3(e){const{title:n,items:a,columns:r,gridTemplateColumns:s,mobileGridTemplateColumns:i,searchPlaceholder:l,searchFn:u,defaultSortKey:d,defaultSortAsc:c=!0,selectedId:p,selectedIds:m,onSelect:C,onClose:g,pageSizeOptions:v=[10,25,50,100],initialPageSize:b,emptyText:y,countLabel:w,topContent:h,className:_=""}=e,{t:f}=ye.useTranslation(),A=l??f("common.search","\uAC80\uC0C9"),x=y??f("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[N,k]=o.useState(""),[B,E]=o.useState(d??r[0]?.key??""),[S,z]=o.useState(c),[R,q]=o.useState(String(b??v[0]??10)),[j,L]=o.useState(1);o.useEffect(()=>{L(1)},[N,R]);const O=u!==null,Z=o.useCallback(($,K)=>{if(!K)return!0;const ne=K.toLowerCase();return r.some(X=>{const ae=$[X.key];return ae==null?!1:String(ae).toLowerCase().includes(ne)})},[r]),ee=u??Z,W=o.useMemo(()=>{const $=O?a.filter(K=>ee(K,N)):a;return B?[...$].sort((K,ne)=>{const X=K[B],ae=ne[B];return X===ae?0:eo(X,ae,S)}):$},[a,N,B,S,O,ee]),U=Math.max(1,Math.ceil(W.length/Number(R)));j>U&&L(U);const P=Math.min(j,U),F=W.slice((P-1)*Number(R),P*Number(R)),D=o.useCallback($=>{B===$?z(K=>!K):(E($),z(!0)),L(1)},[B]),H=o.useMemo(()=>{if(typeof w=="function"){const $=W.length,K=w($);if(typeof K=="string"){const ne=K.lastIndexOf(String($));if(ne>=0)return{prefix:K.slice(0,ne),suffix:K.slice(ne+String($).length)}}return{label:K}}if(typeof w=="string"&&w.includes("{n}")){const[$,K]=w.split("{n}");return{prefix:$,suffix:K}}return{prefix:f("common.totalCountPrefix","\uCD1D "),suffix:f("common.totalCountSuffix","\uAC1C")}},[w,W.length,f]),M=o.useMemo(()=>r.map($=>({label:$.label,onClick:$.sortable!==!1?()=>D($.key):void 0,className:$.className,sortDir:$.sortable!==!1&&B===$.key?S?"asc":"desc":null})),[r,B,S,D]),I=o.useMemo(()=>v.map($=>({value:String($),label:f("common.pageSizeLabel",{n:$})})),[v,f]);return t.jsxs(Tn,{className:`popup-list ${_}`,title:n,onClose:g,children:[h,"label"in H&&t.jsx("p",{className:"toolbar__count body-1",children:H.label}),t.jsx(po,{count:"label"in H?void 0:{value:W.length,prefix:H.prefix,suffix:H.suffix},search:O?{value:N,onChange:k,placeholder:A}:void 0,pageSize:{options:I,value:R,onChange:q},pagination:{page:P,total:U,onChange:L}}),t.jsx(xo,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:i,resizable:!0,fields:M,items:F,onRowClick:C,renderRow:$=>{const K=m!=null?$.id!=null&&m.has($.id):p!=null&&$.id===p;return r.map(ne=>({content:ne.render?ne.render($):$[ne.key]??"",className:Ne(ne.className,K&&"popup-list__row--selected")}))},empty:x})]})}function _c(e){const{title:n,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:u,hideCancel:d=!1,extraAction:c,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:C,closeOnConfirm:g=!0,onClose:v,inline:b,size:y="small",className:w,initialFocus:h="close"}=e,{t:_}=ye.useTranslation(),f=o.useRef(null);o.useEffect(()=>{if(b||h==="close")return;const E=f.current?.closest(".popup-panel"),S=Array.from(E?.querySelectorAll(".popup-footer--buttons button")??[]),z=h==="confirm"?S[S.length-1]:d?void 0:S[c?1:0];z&&!z.disabled&&z.focus()},[]);const A=o.useRef(!1),[x,N]=o.useState(!1),k=E=>{let S=!1;return{close:()=>{S=!0,E()},\uB2EB\uC558\uB098:()=>S}},B=async E=>{if(A.current)return;A.current=!0;const S=typeof document<"u"?document.activeElement:null;N(!0);let z=!1;try{z=await E()}catch(R){typeof console<"u"&&console.error(R)}finally{z||(A.current=!1,N(!1),requestAnimationFrame(()=>{const R=document.activeElement;(!R||R===document.body)&&S?.isConnected&&S.focus()}))}};return t.jsxs(Tn,{title:n,onClose:v,closeDisabled:x,inline:b,size:y,className:Ne("confirm-popup",r!=null&&"confirm-popup--has-top",w),buttons:[...c?[{label:c.label,variant:c.variant??"default",disabled:c.disabled||x,onClick:async({closeWithAnimation:E})=>{await B(async()=>{const S=k(E);await c.onClick(S.close);const z=c.closeOnClick??!0;return z&&E(),z||S.\uB2EB\uC558\uB098()})}}]:[],...d?[]:[{label:u??_("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:x,onClick:({closeWithAnimation:E})=>E()}],{label:l??_("common.confirm","\uD655\uC778"),variant:p,disabled:m||x,onClick:async({closeWithAnimation:E})=>{await B(async()=>{const S=k(E);return await C(S.close),g&&E(),g||S.\uB2EB\uC558\uB098()})}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&t.jsx(dr,{children:s.map((E,S)=>t.jsx(Mn,{label:E.label,children:t.jsx("span",{className:"panel-row__text body-2",children:E.value})},S))}),t.jsx("p",{ref:f,className:"body-2 confirm-popup__message",children:a}),i]})}function Y3(e,n,a={}){const{t:r}=ye.useTranslation(),[s,i]=o.useState(!1),l=o.useRef(!1),u=o.useCallback(()=>{l.current=!0},[]),d=o.useCallback(()=>l.current?(l.current=!1,!0):e?(i(!0),!1):!0,[e]),c=s?t.jsx(_c,{title:a.title??r("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:a.message??r("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:a.confirmLabel??r("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{i(!1),n()},onClose:()=>i(!1)}):null;return{beforeClose:d,discardPopup:c,allowClose:u}}function Z3({onApply:e,onCancel:n}){const{t:a}=ye.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[u,d]=o.useState(null),c=o.useRef(null);o.useEffect(()=>{c.current?.focus()},[]);const p=o.useCallback(async g=>{const v=r.trim();if(v){l(!0),d(null);try{await e(v),g()}catch(b){d(ri(b)),l(!1),requestAnimationFrame(()=>c.current?.focus())}}},[r,e]),m=o.useCallback((g,v)=>{g.key==="Enter"&&!g.nativeEvent.isComposing&&p(v)},[p]),C=g=>{s(g.target.value),d(null)};return t.jsx(Tn,{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:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:g})=>{p(g)}}],children:({closeWithAnimation:g})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:c,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:C,onKeyDown:v=>m(v,g),disabled:i,autoComplete:"off",spellCheck:!1}),u&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const wc=["var(--color-main)","var(--color-sub)"],X3=2e3;function J3(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 Jo({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const b=Math.floor(n/2),y=n-b,w=(h,_)=>Array.from({length:h}).map((f,A)=>{const x=6+Math.random()*12,N=Math.round(Math.min(18,x*Math.min(1.5,1+r*.4))),k=wc[Math.floor(Math.random()*wc.length)],B=Math.random()*300,E=(360+Math.random()*260)*r*1.2,S=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,z=Math.cos(S)*E,R=Math.sin(S)*E*1.35,q=Math.random()*720-360,j=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),L=Math.random()>.7?"50%":"3px";return{id:`${_}-${A}`,side:_,size:N,color:k,delay:B,vx:z,vy:R,angularVel:q,life:j,borderRadius:L}});return[...w(b,"left"),...w(y,"right")]},[n,r]),u=o.useRef(null),d=o.useRef({}),c=o.useRef(null),p=o.useRef(s);o.useEffect(()=>{p.current=s},[s]);const m=o.useRef(null),C=o.useRef(null),g=()=>{if(typeof document>"u")return null;let b=document.querySelector("[data-ihab-effect-root]");return b||(b=document.createElement("div"),b.className="app-effect",b.dataset.ihabEffectRoot="",b.style.position="fixed",b.style.inset="0",b.style.pointerEvents="none",b.style.zIndex="99998",document.body.appendChild(b)),b};if(typeof document<"u"&&C.current==null&&(C.current=g()),o.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 b=1200,y=performance.now(),w=C.current&&C.current!==document.body?C.current.getBoundingClientRect():null,h=Math.max(60,(window.innerHeight||800)*.05),_=U=>Math.max(40,(U||window.innerWidth)*.02),f=w?.width||window.innerWidth||375,A=w?.height||window.innerHeight||812,x=U=>{const P=[...U].sort((F,D)=>F-D);return P[Math.floor(P.length/2)]||1},N=x(l.map(U=>Math.abs(U.vy))),k=x(l.map(U=>Math.abs(U.vx))),B=Math.sqrt(2*b*(A*.72+h))/N,E=N*B/b,S=f*.5/(k*E),z=(U,P,F)=>Math.min(F,Math.max(P,U)),R=z(B,.8,2.4),q=z(S,.7,2.2),j=a>0?a/X3:1,L=l.map(U=>({...U,life:U.life*j,vx:U.vx*q,vy:U.vy*R,startTime:y+U.delay,ended:!1})),O=w?{x:w.left-_(w.width),y:w.top+w.height+h}:{x:-_(window.innerWidth),y:window.innerHeight+h},Z=w?{x:w.left+w.width+_(w.width),y:w.top+w.height+h}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+h},ee=U=>{let P=!1;for(const F of L){const D=d.current[F.id];if(!D||!D)continue;if(U<F.startTime){D.style.display="none",P=!0;continue}if(!F._inited){const le=F.side==="left"?O.x:Z.x,be=F.side==="left"?O.y:Z.y;D.style.left=`${le}px`,D.style.top=`${be}px`,D.style.transform="translate3d(0px, 0px, 0)",D.style.display="block",D.style.zIndex="100000",typeof F.color=="string"&&F.color.startsWith("var(")&&(D.style.background=J3(D,F.color)??"#FF0060"),F._inited=!0}const H=(U-F.startTime)/1e3;if(H<0)continue;const M=F.life/1e3;if(H>=M){D.style.opacity="0",D.style.display="none",F.ended=!0;continue}P=!0;const I=F.side==="left"?O.x:Z.x,$=F.side==="left"?O.y:Z.y,K=I+F.vx*H,ne=$+F.vy*H+.5*b*H*H,X=(F.angularVel||0)*H,ae=K-I,ue=ne-$;D.style.transform=`translate3d(${ae}px, ${ue}px, 0) rotate(${X}deg)`,D.style.opacity=`${Math.max(0,1-H/M)}`}P?c.current=requestAnimationFrame(ee):p.current?.()};c.current=requestAnimationFrame(ee);const W=setTimeout(()=>{try{if((C.current?C.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 F=document.createElement("span");F.className=`confetti confetti--${P.side}`,F.setAttribute("aria-hidden","true"),F.style.display="none",F.style.position="fixed",F.style.left="0px",F.style.top="0px",F.style.width=`${P.size}px`,F.style.height=`${Math.max(4,P.size*.6)}px`,F.style.background=P.color,F.style.borderRadius=P.borderRadius,F.style.transform="translate3d(0,0,0)",F.style.opacity="0",U.appendChild(F),d.current[P.id]=F}(document.body||C.current).appendChild(U),m.current=U}}catch{}},300);return()=>{if(c.current&&cancelAnimationFrame(c.current),clearTimeout(W),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const v=t.jsx("div",{className:"party-container",ref:u,children:l.map(b=>t.jsx("span",{"aria-hidden":!0,ref:y=>{d.current[b.id]=y},className:`confetti confetti--${b.side}`,style:{width:`${b.size}px`,height:`${Math.max(4,b.size*.6)}px`,background:b.color,borderRadius:b.borderRadius}},`${b.id}-${i}`))});return typeof document<"u"?Xt.createPortal(v,C.current||document.body):v}const Qo=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function Q3({trigger:e=0,active:n=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const u=l.detail??{};r(d=>({n:(d?.n??0)+1,count:Qo(u.count),strength:Qo(u.strength),duration:Qo(u.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const s=o.useCallback(()=>r(null),[]);return t.jsxs(t.Fragment,{children:[t.jsx(Jo,{active:n,trigger:e}),a&&t.jsx(Jo,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function e7({title:e,sub:n,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:u,backLabel:d,wrap:c=!1}){const{t:p}=ye.useTranslation();Zg(typeof e=="string"?e:l??null);const m=d??p("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:c?"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:[u&&t.jsx(pe,{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:u}),t.jsx("h1",{className:"page-title__title h1",children:e}),s&&t.jsx("div",{className:"page-title__badge",children:t.jsx(xt,{label:s,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 t7(e){return e??""}const Ac=o.createContext({words:[],loading:!1});function n7(){return o.useContext(Ac)}function a7({words:e,loading:n,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:d,children:c}){return t.jsx(Ac.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:d},children:c})}function r7({items:e,actions:n,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return t.jsx("section",{className:Ne("summary-strip",r&&"summary-strip--flat",s),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((u,d)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:u.label}),t.jsx("p",{className:"summary-strip__value body-3b",title:typeof u.value=="string"||typeof u.value=="number"?String(u.value):void 0,children:u.value})]},d))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const o7=(e,n)=>`${e} / ${n}`;function s7({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:s=o7,pageWidth:i,pageHeight:l,margin:u,className:d,style:c}){const{t:p}=ye.useTranslation(),m=o.useRef(null),C=o.useRef(null),g=o.useRef(null),v=o.useRef(null),[b,y]=o.useState(null),[w,h]=o.useState(!1);o.useEffect(()=>{const j=m.current;if(!j)return;const L=()=>h(j.scrollWidth>j.clientWidth+1);if(L(),typeof ResizeObserver>"u")return;const O=new ResizeObserver(L);return O.observe(j),()=>O.disconnect()},[b]);const _=e.map(j=>`${j.id}\0${j.section??""}\0${j.group??""}`).join(""),f=b&&b.shape===_?b.pages:null,[A,x]=o.useState(0);o.useEffect(()=>{const j=v.current;if(!j||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>x(j.offsetHeight));return L.observe(j),()=>L.disconnect()},[]);const[N,k]=o.useState(0);o.useEffect(()=>{const j=C.current;if(!j||typeof ResizeObserver>"u")return;let L=null;const O=typeof requestAnimationFrame=="function"?W=>requestAnimationFrame(W):W=>setTimeout(W,16),Z=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:W=>clearTimeout(W),ee=new ResizeObserver(()=>{L==null&&(L=O(()=>{L=null,k(W=>W+1)}))});return Array.from(j.children).forEach(W=>ee.observe(W)),()=>{ee.disconnect(),L!=null&&Z(L)}},[_]),o.useLayoutEffect(()=>{const j=C.current,L=v.current;if(!j||!L)return;const O=M=>M.getBoundingClientRect().height||M.offsetHeight,Z=new Map;g.current?.querySelectorAll("[data-chrome-section]").forEach(M=>{Z.set(M.dataset.chromeSection??"",O(M))});const ee=M=>O(L)-(Z.get(M??"")??0),W=Array.from(j.children).map(M=>O(M)),U=[];e.forEach((M,I)=>{const $=U[U.length-1],K=$?e[$[0]]:void 0;K&&M.group!=null&&K.group===M.group&&K.section===M.section?$.push(I):U.push([I])});const P=[];let F=[],D=0;const H=()=>{F.length&&P.push(F),F=[],D=0};U.forEach(M=>{const I=M.reduce((K,ne)=>K+W[ne],0),$=ee(e[M[0]].section);F.length&&e[F[0]].section!==e[M[0]].section&&H(),I>$?M.forEach(K=>{F.length&&D+W[K]>$+.01&&H(),F.push(K),D+=W[K]}):(F.length&&D+I>$+.01&&H(),M.forEach(K=>F.push(K)),D+=I)}),H(),y(M=>M&&M.shape===_&&JSON.stringify(M.pages)===JSON.stringify(P)?M:{shape:_,pages:P})},[_,A,i,l,u,N]);const B=io,E=B,S=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:E,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),z=(j,L,O)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:O!=null&&n?.[O]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:S}),t.jsx("span",{className:"report-doc__page-no",children:s(j,L)})]})}),R=Array.from(new Set(e.map(j=>j.section??""))),q={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...u?{"--report-margin":u}:null,...c};return t.jsxs("div",{ref:m,className:Ne("report-doc",d),style:q,tabIndex:w?0:void 0,role:w?"group":void 0,"aria-label":w?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:v,className:"report-doc__ruler"}),t.jsx("div",{ref:g,children:R.map(j=>{const L=z(1,1,j||void 0);return t.jsxs("div",{"data-chrome-section":j,children:[L.header,L.footer]},j)})}),t.jsx("div",{ref:C,className:"report-doc__measure-blocks",children:e.map(j=>t.jsx("div",{children:j.content},j.id))})]}),f&&t.jsx("div",{className:"report-doc__pages",children:f.map((j,L)=>{const{header:O,footer:Z}=z(L+1,f.length,e[j[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[O,j.map(ee=>t.jsx("div",{children:e[ee].content},e[ee].id)),Z]},L)})})]})}function i7({title:e,fields:n,columns:a=4,className:r,style:s}){return t.jsxs("div",{className:Ne("report-info",r),style:{"--report-info-cols":String(a),...s},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))})]})}const Kn=new Map;let hr=null;const l7=12;function u7(e){for(let n=e.parentElement;n&&n!==document.body;n=n.parentElement){const a=window.getComputedStyle(n);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return n}return document}function Cr(){const e=new Map;for(const n of Kn.keys()){if(!n.isConnected)continue;const a=u7(n),r=e.get(a)??[];r.push(n),e.set(a,r)}for(const n of e.values()){n.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of n){a>0?r.style.setProperty("--update-alert-stack-offset",`${a}px`):r.style.removeProperty("--update-alert-stack-offset");const s=r.getBoundingClientRect().height;s>0&&(a+=s+l7)}}}function c7(e){return typeof window>"u"?()=>{}:(Kn.set(e,(Kn.get(e)??0)+1),Kn.get(e)===1&&typeof ResizeObserver<"u"&&(hr??(hr=new ResizeObserver(()=>Cr())),hr.observe(e)),Cr(),()=>{const n=(Kn.get(e)??1)-1;if(n>0){Kn.set(e,n),Cr();return}Kn.delete(e),hr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),Cr()})}function d7({title:e,message:n,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:u}=ye.useTranslation(),d=a??u("common.update","\uC5C5\uB370\uC774\uD2B8"),c=o.useRef(null),p=o.useRef(!1);return o.useLayoutEffect(()=>{const m=c.current,C=m?.parentElement?.closest(".update-alert-stack")??m,g=C?c7(C):null;return()=>{g?.(),p.current&&m&&m.contains(document.activeElement)&&Ga(m)}},[]),t.jsxs("div",{ref:c,className:Ne("update-alert",l),role:"alert",children:[i&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{p.current=!0,i()},"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"}),t.jsxs("div",{className:"update-alert__top",children:[t.jsx("div",{className:"update-alert__icon",children:s??t.jsx(ds,{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(pe,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:d})]})}function p7({title:e,titleLevel:n=3,description:a,topActions:r,children:s,footerLeft:i,footerRight:l,onClick:u,draggable:d,onDragStart:c,onDragEnd:p,className:m}){const C=n?`h${n}`:"div",g=i!=null||l!=null,v=s!=null&&s!==!1,b=o.useCallback(y=>{u&&y.target===y.currentTarget&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),u())},[u]);return t.jsxs("div",{className:Ne("training-card",u?"training-card--clickable":"",m),onClick:u,onKeyDown:u?b:void 0,role:u?"button":void 0,tabIndex:u?0:void 0,draggable:d,onDragStart:c,onDragEnd:p,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx(C,{className:"training-card__title h4",children:e}):e,r!=null&&t.jsx("div",{className:"training-card__top-actions",onClick:y=>y.stopPropagation(),children:r})]}),a!=null?typeof a=="string"?t.jsx("p",{className:"training-card__description body-3",children:a}):a:t.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),v&&t.jsx("div",{className:"training-card__body",children:s}),g&&t.jsxs("div",{className:"training-card__footer",children:[i!=null&&t.jsx("div",{className:"training-card__footer-left",children:i}),l!=null&&t.jsx("div",{className:"training-card__meta",children:l})]})]})}function m7({title:e,titleLevel:n=3,count:a,collapsed:r=!1,onToggle:s,sort:i,actions:l,empty:u=!1,emptyContent:d,dragOver:c=!1,onDragOver:p,onDragLeave:m,onDrop:C,children:g,className:v}){const{t:b}=ye.useTranslation(),y=o.useId(),w=n?`h${n}`:"span",h=s!=null,_=Ne("training-card-group",c&&"training-card-group--dragover",r&&"training-card-group--collapsed",h&&"training-card-group--collapsible",v);return t.jsxs("div",{className:_,onDragOver:p,onDragLeave:m,onDrop:C,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?y:void 0,children:[t.jsxs("header",{className:"training-card-group__header",children:[h&&t.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:r?b("common.expand","\uD3BC\uCE58\uAE30"):b("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:s}),typeof e=="string"?t.jsx(w,{id:y,className:"training-card-group__title h5b",children:e}):e,a!==void 0&&t.jsx("span",{className:"training-card-group__count body-3b",children:a}),(i||l!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:f=>f.stopPropagation(),children:[i&&t.jsx(ln,{size:40,options:i.options,value:i.value,placeholder:i.placeholder,onChange:i.onChange}),l]})]}),!r&&(u?t.jsx("div",{className:"training-card-group__empty body-3",children:d}):t.jsx("div",{className:"training-card-group__grid",children:g}))]})}const h7="speechear:saved_word_tables";function C7(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 f7(){try{const e=localStorage.getItem(h7);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(C7):[]}catch{return[]}}function Bc(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function es(e){return e.map(n=>n.homonum!=null?`${n.word}#${n.homonum}`:n.word).join("|")}function g7(e){const n=new Set;return e.map(a=>{let r=a.id;for(let s=2;n.has(r);s++)r=`${a.id}~${s}`;return n.add(r),r===a.id?a:{...a,id:r}})}function b7({title:e,titleIcon:n,disc:a,filterTitle:r,filterCollapsible:s,filterDefaultCollapsed:i,filterCollapsed:l,onFilterCollapsedChange:u,filterHeaderSummary:d,brand:c,code:p,items:m,onSaveComplete:C,onLoad:g,onRemoveItem:v,onReset:b,resetLabel:y,saveButtonLabel:w,secondarySaveButtonLabel:h,onReorder:_,showCellCount:f,onAddItem:A,className:x,renderSavePopup:N,renderWordSearch:k,hideControls:B,saveOnly:E,tableName:S,nameValue:z,onNameChange:R,descriptionValue:q,onDescriptionChange:j,namePlaceholder:L,descriptionPlaceholder:O,existingNames:Z,editingName:ee,onCancel:W,initialItemsPerPage:U,renderCellAction:P,actionsLeftExtra:F}){const{t:D}=ye.useTranslation(),H=y??D("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),M=m===void 0,I=!!R,[$,K]=o.useState([]),ne=(z??"").trim(),X=ne||(L??"").trim(),ae=(q??"").trim()||(O??"").trim(),ue=(Z??[]).map(De=>De.trim().toLowerCase()),le=[ee?.trim().toLowerCase(),...$].filter(De=>!!De),be=[...ue];for(const De of le){const He=be.indexOf(De);He!==-1&&be.splice(He,1)}const V=ne!==""&&be.includes(ne.toLowerCase()),[Q,oe]=o.useState(Array(4).fill(null)),[Be,Ce]=o.useState(4),[se,ge]=o.useState(null),fe=Q.slice(0,Be),xe=!!c?.show,[$e,Le]=o.useState(!0),[Qe,Ue]=o.useState(!0),ze=c&&{...c,top:$e,bottom:Qe},[Ie,st]=o.useState("landscape"),[Xe,Je]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[Ee,ke]=o.useState("\uD45C\uC2DC"),[Me,Ve]=o.useState(!0),[lt,te]=o.useState(!0),ce=o.useRef(null),me=o.useRef([]),[Se,et]=o.useState(U==="all"?Number.POSITIVE_INFINITY:U??8),[Ke,bt]=o.useState("right"),[ut,it]=o.useState(!1),[tt,Ge]=o.useState(!1),{toastMessage:Ye,toastType:Re,showWarning:We,clearToast:Fe}=ul("warning"),ct=o.useCallback(()=>ge(null),[ge]);A&&!M&&!f&&an("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[Bt,Nt]=o.useState(()=>Math.max(m?.length??1,1)),Ct=M?Be:f?Math.max(Bt,m?.length??1,1):Math.max(m?.length??0,1),{width:dt,height:Oe}=ia[Ie],at=!M&&!f,ft=m?.length??0,Ot=Math.min(Se,Math.max(ft,1)),nt=at?Ot:Ct,Tt=at?Cu(m??[],nt):null,Yt=!!Tt&&Tt.length>1,Mt=M?fe.some(De=>De!==null&&De.length>1):(m??[]).some(De=>(De.words??[]).length>1),un=S?.trim()||`${di(va())} ${Mt?D("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):D("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,cn=o.useCallback(()=>Yt?me.current.filter(De=>De!==null):ce.current?[ce.current]:[],[Yt]),{print:dn,openNewWindow:Rn,downloadHtml:pn}=jo({getElements:cn,paperW:dt,paperH:Oe,fileName:un,onPopupBlocked:()=>{We(D("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."))}}),Pn=De=>{Ce(De),oe(He=>He.length>=De?He:[...He,...Array(De-He.length).fill(null)]),ge(null)},Nn=De=>{oe(He=>{const wt=[...He];return wt[De]=null,wt}),se===De&&ge(null)},Dt=De=>{if(se===null)return;const He=se;oe(zt=>{const Vt=[...zt];return Vt[He]=De.length>0?De:null,Vt});const wt=fe.findIndex((zt,Vt)=>Vt>He&&zt===null);ge(wt!==-1?wt:null)},Cn=M?fe.some(De=>De?.some(He=>!!He.colloquialPronunciation)):(m??[]).some(De=>(De.words??[]).some(He=>!!He.colloquialLabel)),Ht=o.useMemo(()=>Xn()?M?Q.slice(0,Be).flatMap(De=>(De??[]).map(He=>[He.word,He.homonum])):(m??[]).flatMap(De=>(De.words??[]).map(He=>[He.label,He.homonum])):[],[M,Q,Be,m]),[Zt,fn]=o.useState(!1);o.useEffect(()=>{if(Ht.length===0)return;let De=!1;return Promise.all(Ht.map(([He,wt])=>ei(He,wt))).then(He=>{De||fn(He.some(Boolean))},()=>{}),()=>{De=!0}},[Ht]);const en=Ht.length>0&&Zt,gn=o.useMemo(()=>[...M||f?[{label:D("wordTable.filter.columns","\uCE78 \uC218"),items:Qy.map(De=>({value:`${De}\uCE78`,displayLabel:D("wordTable.filter.column",{count:De})})),display:"segmented"}]:[],...at&&(m?.length??0)>0?[Tu(D,{hasPairs:Mt,itemCount:ft})]:[],...Yt?[e5(D)]:[]],[D,M,f,at,m?.length,Mt,ft,Yt]),In={...M||f?{[D("wordTable.filter.columns","\uCE78 \uC218")]:`${Ct}\uCE78`}:{},...at&&(m?.length??0)>0?{[D(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Ot}\uAC1C`}:{},...Yt?{[D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Lu[Ke]}:{}},bn=(De,He)=>{He===D("wordTable.filter.columns","\uCE78 \uC218")?M?Pn(parseInt(De)):Nt(parseInt(De)):He===D(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?et(Mu(parseInt(De),ft)):He===D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&bt($u(De))},re=M?g7(fe.filter(De=>De!==null&&De.length>0).map(De=>({id:es(De),words:De.map(Bc)}))):m??[],ve=()=>{M&&oe(De=>De.length>Be?De.slice(0,Be):De)},G=(De=!1)=>{if(Ge(De),I&&C){const He=X.trim().toLowerCase();He&&K(wt=>wt.includes(He)?wt:[...wt,He]),C(X,re,ae||void 0,De),ve();return}if(E&&C){C("",re,void 0,De),ve();return}if(C){it(!0);return}pn()},[ie,de]=o.useState(!1),[_e,we]=o.useState(""),je=_e.trim(),rt=je!==""&&ue.includes(je.toLowerCase()),yt=()=>{we(X?D("wordTable.save.copyName",{name:X,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),de(!0)},pt=()=>{!je||rt||!C||(C(je,re,ae||void 0,!0),ve(),de(!1))},_t=re.length===0,Rt=_t||I&&(X===""||V),Lt=()=>{if(_t){We(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(I&&X===""){We(D("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}I&&V&&We(D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},nn=t.jsx(la,{items:re,orientation:Ie,contentTypes:Xe,cutLine:Ee,showOutline:Me,showDivLine:lt,count:Ct});return t.jsxs(t.Fragment,{children:[t.jsxs(sa,{type:"page",icon:n,title:e,disc:a,className:Ne("word-table-block",x),children:[ie&&t.jsx(Tn,{size:"small",title:h??D("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>de(!1),footer:({closeWithAnimation:De})=>t.jsxs(t.Fragment,{children:[t.jsx(pe,{htmlType:"button",size:48,type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:De}),t.jsx(pe,{htmlType:"button",size:48,type:"bar",variant:"main",label:D("common.save","\uC800\uC7A5"),disabled:!je||rt,onClick:pt})]}),children:t.jsx(Un,{label:D("wordTable.save.nameLabel","\uC774\uB984"),value:_e,onChange:we,placeholder:D("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:pt,error:rt?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),ut&&C&&N?.({defaultName:typeof e=="string"?e:D("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:nn,previewW:dt,previewH:Oe,items:re,existingNames:f7().map(De=>De.name),saveAsNew:tt,onSave:(De,He)=>{C(De,re,He,tt),ve(),it(!1)},onCancel:()=>it(!1)}),(M||A)&&se!==null&&k?.({cellIndex:se,onConfirm:M?Dt:De=>{if(A){const He=De[0];if(He){const wt=new Set((m??[]).map(Vt=>Vt.id));let zt=es([He]);for(let Vt=2;wt.has(zt);Vt++)zt=`${es([He])}~${Vt}`;A({id:zt,words:[Bc(He)]})}}ge(null)},onClose:ct}),!B&&t.jsx(Do,{title:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:d,hasImage:en,hasColloquial:Cn,contentTypes:Xe,orientation:Ie,showOutline:Me,cutLine:Ee,showDivLine:lt,setters:{setContentTypes:Je,setOrientation:st,setShowOutline:Ve,setCutLine:ke,setShowDivLine:te,setShowTopInfo:Le,setShowBottomInfo:Ue},showCutLine:(at?nt:Ct)>1,showDivLine2:Mt,middleSections:gn,extraSelected:In,onExtraSelect:bn,showPaperBands:xe,showTopInfo:$e,showBottomInfo:Qe}),Yt&&Tt?t.jsx("div",{className:"word-table-block__pages",children:Tt.map((De,He)=>t.jsx(la,{orientation:Ie,contentTypes:Xe,cutLine:Ee,showOutline:Me,showDivLine:lt,count:nt,items:De,onRemoveItem:v,onReorder:_&&((wt,zt)=>_(wt+He*nt,zt+He*nt)),renderCellAction:P&&((wt,zt)=>P(wt+He*nt,zt)),brand:ze,code:p,contentRef:wt=>{me.current[He]=wt},pageNumber:{current:He+1,total:Tt.length},pageNumberPosition:Ke},He))}):t.jsx(la,{orientation:Ie,contentTypes:Xe,cutLine:Ee,showOutline:Me,showDivLine:lt,count:Ct,items:M?void 0:m??[],editCells:M?fe:void 0,activeCell:se,onActivateCell:M||A?ge:void 0,onRemoveCell:M?Nn:void 0,onRemoveItem:M?void 0:v,onReorder:M?void 0:_,renderCellAction:M?void 0:P,brand:ze,code:p,showFillerAdd:!!A,contentRef:ce}),I&&!B&&t.jsxs(dr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(Mn,{variant:"custom",label:D("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(Un,{required:!0,value:z??"",onChange:R,placeholder:L?L+D("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):D("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:D("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:V?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:De=>{(De.key==="Tab"&&!De.shiftKey||De.key===" ")&&!(z??"").trim()&&(L??"").trim()&&(De.preventDefault(),R?.(L??""))}})}),t.jsx(Mn,{variant:"custom",label:D("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Un,{value:q??"",onChange:j,placeholder:O?O+D("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):D("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:D("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:De=>{(De.key==="Tab"&&!De.shiftKey||De.key===" ")&&!(q??"").trim()&&(O??"").trim()&&(De.preventDefault(),j?.(O??""))}})})]})]}),!B&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!E&&b&&t.jsx(pe,{htmlType:"button",size:40,type:"bar",label:H,onClick:b}),!E&&F,!E&&g&&t.jsx(pe,{htmlType:"button",size:40,type:"bar",label:D("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:g}),!E&&t.jsx(pe,{htmlType:"button",size:40,type:"bar",label:D("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Rn})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[W&&t.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:W}),!E&&t.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:D("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:dn}),h&&t.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:h,onClick:()=>I?yt():G(!0),disabled:_t,onDisabledClick:()=>{We(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:w??D("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>G(!1),disabled:Rt,onDisabledClick:Lt})]})]}),t.jsx(ra,{message:Ye,type:Re,onClose:Fe})]})}function kc({items:e,className:n}){const a=e.length,r=a<=3?1:2,s=Math.ceil(a/r)||1,i=r*s;return t.jsx("div",{className:Ne("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,u)=>{const d=e[u];return d?t.jsx("div",{className:"word-table-thumb__cell",children:(d.words?.length?d.words:[{label:d.id}]).map((c,p)=>t.jsxs(o.Fragment,{children:[p>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:c.label})]},p))},u):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},u)})})}function y7({items:e,name:n,description:a,createdAt:r,code:s,published:i,publishedLabel:l,shared:u,sharedLabel:d,isNew:c,publisherName:p,publishedAt:m,likeCount:C,downloadCount:g,onPublisherClick:v,selected:b,onClick:y,onMore:w,titleNode:h,className:_}){const{t:f}=ye.useTranslation(),A=h!=null,x=p!=null||m!=null||C!=null||g!=null,N=k=>{k.target===k.currentTarget&&!A&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),y?.())};return t.jsxs("div",{className:Ne("word-table-button",b?"word-table-button--selected":"",x?"":"word-table-button--no-footer",_),role:"button",tabIndex:0,"aria-label":s?`${n} (${s})`:n,onClick:A?void 0:y,onKeyDown:N,children:[c&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":f("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(kc,{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:[h??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),w&&!A&&t.jsx(pe,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:f("common.moreFor",{name:n}),onClick:k=>{k.stopPropagation(),w(k)}})]}),(s||r||i||u)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta-left",children:t.jsx("span",{className:"word-table-button__meta caption-1",children:r?ci(r,f):""})}),t.jsxs("span",{className:"word-table-button__meta-right",children:[(i||u)&&t.jsxs("span",{className:"word-table-button__badges",children:[i&&t.jsx(xt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??f("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),u&&t.jsx(xt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:d??f("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),s&&t.jsx("span",{className:"word-table-button__code caption-1",children:s})]})]}),x&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[p&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:k=>{k.stopPropagation(),v?.()},children:p}),m&&t.jsx("span",{className:"training-card__date body-4",children:ci(m,f)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[C!=null&&t.jsx(xt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(C),"aria-label":f("common.likeCount",{count:C,defaultValue:`\uC88B\uC544\uC694 ${C}`})}),g!=null&&t.jsx(xt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(g),"aria-label":f("common.downloadCount",{count:g,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${g}`})})]})]})]})}/**
1049
1049
  * @license lucide-react v1.38.0 - ISC
1050
1050
  *
1051
1051
  * This source code is licensed under the ISC license.
@@ -1055,4 +1055,4 @@ ${f.badge}`:f.badge:void 0;if(x&&d(f.code))return null;if(!f.badge&&!p)return m(
1055
1055
  *
1056
1056
  * This source code is licensed under the ISC license.
1057
1057
  * See the LICENSE file in the root directory of this source tree.
1058
- */const _7=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],w7=J("circle-x",_7);function A7(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function ts({icon:e,label:n,state:a,pct:r,subText:s}){const{t:i}=ye.useTranslation(),l=a==="done",u=a==="pending",d=a==="error",c=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":d?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(Cs,{size:22,color:"white",strokeWidth:2.5}):d?t.jsx(w7,{size:22,color:"white",strokeWidth:2.5}):t.jsx("span",{className:`wdup-phase-card__icon-inner${u?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),t.jsxs("div",{className:"wdup-phase-card__body",children:[t.jsxs("div",{className:"wdup-phase-card__top",children:[t.jsx("span",{className:`wdup-phase-card__label body-2${u?" wdup-phase-card__label--pending":""}`,children:n}),l?t.jsx(xt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):d?t.jsx(xt,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(s||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[s,s&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!u&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":d?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||d?`${d?100:c}%`:void 0}})})]})]})}function B7({title:e,progress:n,onDone:a,onRetry:r,onClose:s,inline:i}){const{t:l}=ye.useTranslation(),{phase:u,error:d,wordCount:c,imagePage:p,imageDone:m,imageTotal:C,pairPercent:g}=n,v=A7(u),b=u==="done",y=!!d;function w(N){return y&&v===N?"error":v>N?"done":v===N?"active":"pending"}const h=w(1),_=w(2),f=w(3),A=u==="image-match"&&C?Math.round((m??0)/C*100):void 0,x=o.useMemo(()=>{if(_!=="done"){if(u==="image-list")return l("wordData.checkingPage",{page:p??1});if(u==="image-match"&&C)return l("wordData.imageCount",{done:zr(m),total:zr(C)})}},[_,u,p,C,m,l]);return t.jsx(Tn,{inline:i,className:"popup--word-data-update",title:e,footer:y&&r?t.jsx(pe,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):y?t.jsx(pe,{htmlType:"button",size:56,variant:"main",onClick:s??a,children:l("common.close","\uB2EB\uAE30")}):t.jsx(pe,{htmlType:"button",size:56,variant:"main",disabled:!b,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(ts,{icon:t.jsx(cs,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:h,subText:h==="active"?l("wordData.downloadingCount",{n:zr(c)}):void 0}),t.jsx(ts,{icon:t.jsx(x7,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:_,pct:A,subText:x}),t.jsx(ts,{icon:t.jsx(ms,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:f,pct:f==="active"?g??0:void 0,subText:void 0})]})})}function k7({enabled:e=!1,renderResultPopup:n}={}){const{t:a}=ye.useTranslation(),[r,s]=o.useState(null),[i,l]=o.useState(null),u=g=>{let v=null;g==="noise"?v={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:g==="short"?v={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:g==="long"?v={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:g==="order"&&(v={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(v),s(g)},d=o.useCallback(()=>{s(null),l(null)},[]),c=o.useCallback(()=>u("noise"),[]),p=o.useCallback(()=>u("short"),[]),m=o.useCallback(()=>u("long"),[]),C=o.useCallback(()=>u("order"),[]);return e?t.jsxs("div",{className:"debug-result-launcher",children:[t.jsxs("div",{className:"debug-buttons",children:[t.jsx("button",{type:"button",className:"debug-button",onClick:c,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:C,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&i?n?.({score:i.score,contextsLength:i.contextsLength,results:i.results,onReplay:d,onClose:d}):null]}):null}exports.Accordion=gb,exports.ActionCard=rf,exports.Alert=u4,exports.AppHeader=wb,exports.AudioMeter=yo,exports.AudioPlayer=Oo,exports.Avatar=f4,exports.Badge=xt,exports.BarChart=sy,exports.BarChartControls=Yl,exports.Board=L4,exports.BottomNav=pl,exports.BrandIdentity=gl,exports.Breadcrumb=y4,exports.BulkBar=G4,exports.Button=pe,exports.CORE_VERSION=JC,exports.Calendar=Dy,exports.CardStep=fc,exports.ChartLegend=mo,exports.ChartSection=ho,exports.ChartTotal=La,exports.Checkbox=Vl,exports.ChoiceChips=M5,exports.CircleBadge=o4,exports.CodeBox=q4,exports.ColorPicker=A4,exports.CompanyMeta=O4,exports.ConfirmPopup=_c,exports.ConfirmStep=mc,exports.ConfirmWithTextStep=hc,exports.ContrastFilterPanel=G3,exports.CoreScope=of,exports.CountTile=S4,exports.CouponInputPopup=Z3,exports.DEFAULT_NOISE_SETTINGS=Ia,exports.DatePicker=Q4,exports.DebugResultLauncher=k7,exports.DescriptionTooltip=Vn,exports.DeviceSideTable=By,exports.Dialog=M4,exports.Divider=s4,exports.Dropdown=ln,exports.EffectPartyPopper=Jo,exports.EffectPartyPopperHost=Q3,exports.EmptyState=nf,exports.ErrorState=af,exports.FILTER_ALL_VALUE=sn,exports.FileUpload=b4,exports.FilterPanel=kn,exports.FilterSectionInfo=Ea,exports.Footer=L5,exports.GameIntro=uy,exports.Header=bl,exports.Icon=Ze,exports.IconGridMenu=T5,exports.IconRenderer=Ze,exports.InfoTooltip=vn,exports.ItemActions=Y4,exports.LEVEL_MAX=ca,exports.LINE_CHART_HOVER_DELAY_MS=Zl,exports.LandingBottomSticky=R5,exports.LandingHeader=$5,exports.LineChart=ly,exports.ListPopup=K3,exports.ListenStep=pc,exports.Loader=Ma,exports.MARKS=sr,exports.MARK_ICON=pu,exports.MARK_VARIANT=mu,exports.MediaQueryOverrideContext=vi,exports.MenuTooltip=ka,exports.NOISE_RATIO_MAX=$a,exports.NOISE_RATIO_STEP=Vu,exports.NoisePlayerContext=Ro,exports.NoiseSettingsTooltip=oc,exports.NoticeBox=sf,exports.OrderListStep=Cc,exports.PASS_CARD_BG_VARS=qn,exports.POS_LABEL=fu,exports.PROMO_BANNER_BG_COMPONENTS=el,exports.PROMO_BANNER_BG_OPTIONS=Kg,exports.PROMO_BANNER_BG_VARS=_a,exports.Page=pr,exports.PageTitle=e7,exports.Pagination=er,exports.Panel=dr,exports.PanelGrid=C3,exports.PanelRow=Mn,exports.PanelRowDevice=h3,exports.PassCard=Dl,exports.PassCardBg=t4,exports.PassCardBgIHAB=n4,exports.PassCardBgLeftColorGrid=a4,exports.PassCardBgTwoCircle=wl,exports.PaymentPlan=e4,exports.PersonCard=$4,exports.PhonemeFilterPanel=U3,exports.PhonemeSelectBlock=W3,exports.Popup=Tn,exports.ProgressBar=fy,exports.ProgressIndicator=ou,exports.PromoBanner=hb,exports.PromoBannerBgDark=Fi,exports.PromoBannerBgDeep=Mi,exports.PromoBannerBgDiagonal=Vi,exports.PromoBannerBgDots=qi,exports.PromoBannerBgInstagram=Qi,exports.PromoBannerBgMain=Ni,exports.PromoBannerBgNaver=Xi,exports.PromoBannerBgOutline=Gi,exports.PromoBannerBgRadial=Hi,exports.PromoBannerBgSoft=Ei,exports.PromoBannerBgSoftSub=$i,exports.PromoBannerBgSub=ji,exports.PromoBannerBgSuccess=Yi,exports.PromoBannerBgWarm=Pi,exports.PublicationCard=P4,exports.Radio=Tl,exports.RadioGroup=i4,exports.Rating=x4,exports.ReportDocument=s7,exports.ReportInfoPanel=i7,exports.RingChart=dy,exports.SENTENCE_TRAINING_TYPES=To,exports.SearchSummary=p4,exports.Section=sa,exports.SectionHeadFloat=ql,exports.SectionHeader=F4,exports.SegmentedControl=An,exports.ShortcutBadge=jl,exports.SideNav=fl,exports.Slider=tu,exports.SoundCompass=r4,exports.SplashLogo=I4,exports.StatChart=py,exports.SummaryStrip=r7,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=Ll,exports.Table=xo,exports.TableFilterPanel=Do,exports.Tabs=m4,exports.TextBoxTooltip=cr,exports.TextField=Un,exports.Timeline=R4,exports.Toast=ra,exports.Toggle=zl,exports.Toolbar=po,exports.Tooltip=on,exports.TooltipInfo=vn,exports.TooltipTextBox=cr,exports.TopBanner=Cb,exports.TrainingBlock=Sy,exports.TrainingBlockButton=lo,exports.TrainingCard=p7,exports.TrainingCardGroup=m7,exports.TrainingPagePopup=$n,exports.TrainingPagePopupBottom=sc,exports.TrainingPagePopupTitle=ic,exports.TrainingResultPopup=bc,exports.TrainingStep=Gn,exports.TrainingStepAudioPlayer=Oo,exports.TrainingStepBullet=Xu,exports.TrainingStepCard=tc,exports.TrainingStepConfirm=zo,exports.TrainingStepConfirmWithText=Vo,exports.TrainingStepListen=Wo,exports.TrainingStepOrderList=qo,exports.TrainingStepTextBox=ec,exports.TrainingStepTitle=Qu,exports.TrainingTooltip=$l,exports.TrainingWordCard=Bo,exports.UpdateAlert=d7,exports.WAVE_A_MAX=G5,exports.WAVE_H1_PX=Ku,exports.WAVE_HMAX_PX=U5,exports.WORD_TABLE_PAPER=ia,exports.WORD_TYPE_LABEL=gu,exports.WordDataProvider=a7,exports.WordDataUpdatePopup=B7,exports.WordImageTooltip=xc,exports.WordSearchFilterPanel=q3,exports.WordSearchResultBlock=z3,exports.WordTable=la,exports.WordTableBlock=b7,exports.WordTableButton=y7,exports.WordTablePopup=r5,exports.WordTableThumbnail=kc,exports.buildMonthChartData=ty,exports.cellKey=p5,exports.cellLabel=d5,exports.cellsForLabels=A5,exports.clearPassCardBgTheme=wn,exports.clearPromoBannerBgTheme=Ft,exports.closeTrainingPopup=v3,exports.companyTypeLabel=t7,exports.createTrainingScenario=w3,exports.cx=De,exports.deriveNoiseContexts=E3,exports.derivePassCard=vl,exports.draftValues=S5,exports.effectiveNoiseVolume=Lo,exports.effectiveSpeechVolume=qu,exports.expandSlashLabel=No,exports.formatDuration=B5,exports.getControlDateRange=cy,exports.getPayloadTimestamp=Ko,exports.getPromoBannerBgTheme=Jr,exports.getSelectedFromPayload=B3,exports.getSelectedText=k3,exports.getStepPayload=cc,exports.getSteppedPayload=N3,exports.injectPassCardBgTheme=_n,exports.injectPromoBannerBgTheme=It,exports.isSelectionCorrect=D3,exports.labelOfCellKey=Hu,exports.labelsForSave=c5,exports.levelToPct=P5,exports.markAfterClick=du,exports.marksForSave=ko,exports.mergeNoiseSettings=Pa,exports.missesByType=v5,exports.nextFocus=f5,exports.nextMisses=y5,exports.noiseElementVolume=$o,exports.noiseRatioOf=Ra,exports.pageStartIndexes=hu,exports.passCardBgIhabTheme=El,exports.passCardBgLeftColorGridTheme=Sl,exports.passCardBgTwoCircleTheme=_l,exports.pctToLevel=I5,exports.printWordTable=Ry,exports.promoBannerBgDarkTheme=Ii,exports.promoBannerBgDeepTheme=Ti,exports.promoBannerBgDiagonalTheme=zi,exports.promoBannerBgDotsTheme=Wi,exports.promoBannerBgInstagramTheme=Ji,exports.promoBannerBgMainTheme=ki,exports.promoBannerBgNaverTheme=Zi,exports.promoBannerBgOutlineTheme=Ui,exports.promoBannerBgRadialTheme=Oi,exports.promoBannerBgSoftSubTheme=Li,exports.promoBannerBgSoftTheme=Di,exports.promoBannerBgSubTheme=Si,exports.promoBannerBgSuccessTheme=Ki,exports.promoBannerBgWarmTheme=Ri,exports.recommendTables=_5,exports.regenerateUnpinned=E5,exports.removeItem=D5,exports.resolveTrainingItems=_3,exports.resolveTrainingPopupMeta=uc,exports.reviewCells=s5,exports.reviewMeta=u5,exports.reviewSetPlan=x5,exports.reviewTableName=l5,exports.scoreKey=or,exports.scoreSheetHeader=m5,exports.shouldConfirmDiscard=$y,exports.splitTrainingVariants=x3,exports.summarize=Ly,exports.summarizeMisses=b5,exports.tableTrends=C5,exports.toDraft=k5,exports.toTrainingText=A3,exports.togglePin=N5,exports.uncoveredLabels=w5,exports.useAnchoredMenu=Ba,exports.useBarChartControl=Kl,exports.useCalendarMonth=Wl,exports.useComboboxSuggestions=Ol,exports.useDiscardGuard=Y3,exports.useFitScale=yu,exports.useNoisePlayer=lr,exports.useSoundCompassExam=mb,exports.useToastLifecycle=au,exports.useWordData=n7,exports.useWordTableDisplaySettings=Fu,exports.useWordTablePrint=jo,exports.waveBarPx=Fa,exports.waveBarVal=Io,exports.weakItems=h5;
1058
+ */const _7=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],w7=J("circle-x",_7);function A7(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function ts({icon:e,label:n,state:a,pct:r,subText:s}){const{t:i}=ye.useTranslation(),l=a==="done",u=a==="pending",d=a==="error",c=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":d?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(Cs,{size:22,color:"white",strokeWidth:2.5}):d?t.jsx(w7,{size:22,color:"white",strokeWidth:2.5}):t.jsx("span",{className:`wdup-phase-card__icon-inner${u?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),t.jsxs("div",{className:"wdup-phase-card__body",children:[t.jsxs("div",{className:"wdup-phase-card__top",children:[t.jsx("span",{className:`wdup-phase-card__label body-2${u?" wdup-phase-card__label--pending":""}`,children:n}),l?t.jsx(xt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):d?t.jsx(xt,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(s||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[s,s&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!u&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":d?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||d?`${d?100:c}%`:void 0}})})]})]})}function B7({title:e,progress:n,onDone:a,onRetry:r,onClose:s,inline:i}){const{t:l}=ye.useTranslation(),{phase:u,error:d,wordCount:c,imagePage:p,imageDone:m,imageTotal:C,pairPercent:g}=n,v=A7(u),b=u==="done",y=!!d;function w(N){return y&&v===N?"error":v>N?"done":v===N?"active":"pending"}const h=w(1),_=w(2),f=w(3),A=u==="image-match"&&C?Math.round((m??0)/C*100):void 0,x=o.useMemo(()=>{if(_!=="done"){if(u==="image-list")return l("wordData.checkingPage",{page:p??1});if(u==="image-match"&&C)return l("wordData.imageCount",{done:zr(m),total:zr(C)})}},[_,u,p,C,m,l]);return t.jsx(Tn,{inline:i,className:"popup--word-data-update",title:e,footer:y&&r?t.jsx(pe,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):y?t.jsx(pe,{htmlType:"button",size:56,variant:"main",onClick:s??a,children:l("common.close","\uB2EB\uAE30")}):t.jsx(pe,{htmlType:"button",size:56,variant:"main",disabled:!b,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(ts,{icon:t.jsx(cs,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:h,subText:h==="active"?l("wordData.downloadingCount",{n:zr(c)}):void 0}),t.jsx(ts,{icon:t.jsx(x7,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:_,pct:A,subText:x}),t.jsx(ts,{icon:t.jsx(ms,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:f,pct:f==="active"?g??0:void 0,subText:void 0})]})})}function k7({enabled:e=!1,renderResultPopup:n}={}){const{t:a}=ye.useTranslation(),[r,s]=o.useState(null),[i,l]=o.useState(null),u=g=>{let v=null;g==="noise"?v={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:g==="short"?v={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:g==="long"?v={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:g==="order"&&(v={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(v),s(g)},d=o.useCallback(()=>{s(null),l(null)},[]),c=o.useCallback(()=>u("noise"),[]),p=o.useCallback(()=>u("short"),[]),m=o.useCallback(()=>u("long"),[]),C=o.useCallback(()=>u("order"),[]);return e?t.jsxs("div",{className:"debug-result-launcher",children:[t.jsxs("div",{className:"debug-buttons",children:[t.jsx("button",{type:"button",className:"debug-button",onClick:c,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:C,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&i?n?.({score:i.score,contextsLength:i.contextsLength,results:i.results,onReplay:d,onClose:d}):null]}):null}exports.Accordion=gb,exports.ActionCard=rf,exports.Alert=u4,exports.AppHeader=wb,exports.AudioMeter=yo,exports.AudioPlayer=Oo,exports.Avatar=f4,exports.Badge=xt,exports.BarChart=sy,exports.BarChartControls=Yl,exports.Board=L4,exports.BottomNav=pl,exports.BrandIdentity=gl,exports.Breadcrumb=y4,exports.BulkBar=G4,exports.Button=pe,exports.CORE_VERSION=JC,exports.Calendar=Dy,exports.CardStep=fc,exports.ChartLegend=mo,exports.ChartSection=ho,exports.ChartTotal=La,exports.Checkbox=Vl,exports.ChoiceChips=M5,exports.CircleBadge=o4,exports.CodeBox=q4,exports.ColorPicker=A4,exports.CompanyMeta=O4,exports.ConfirmPopup=_c,exports.ConfirmStep=mc,exports.ConfirmWithTextStep=hc,exports.ContrastFilterPanel=G3,exports.CoreScope=of,exports.CountTile=S4,exports.CouponInputPopup=Z3,exports.DEFAULT_NOISE_SETTINGS=Ia,exports.DatePicker=Q4,exports.DebugResultLauncher=k7,exports.DescriptionTooltip=Vn,exports.DeviceSideTable=By,exports.Dialog=M4,exports.Divider=s4,exports.Dropdown=ln,exports.EffectPartyPopper=Jo,exports.EffectPartyPopperHost=Q3,exports.EmptyState=nf,exports.ErrorState=af,exports.FILTER_ALL_VALUE=sn,exports.FileUpload=b4,exports.FilterPanel=kn,exports.FilterSectionInfo=Ea,exports.Footer=L5,exports.GameIntro=uy,exports.Header=bl,exports.Icon=Ze,exports.IconGridMenu=T5,exports.IconRenderer=Ze,exports.InfoTooltip=vn,exports.ItemActions=Y4,exports.LEVEL_MAX=ca,exports.LINE_CHART_HOVER_DELAY_MS=Zl,exports.LandingBottomSticky=R5,exports.LandingHeader=$5,exports.LineChart=ly,exports.ListPopup=K3,exports.ListenStep=pc,exports.Loader=Ma,exports.MARKS=sr,exports.MARK_ICON=pu,exports.MARK_VARIANT=mu,exports.MediaQueryOverrideContext=vi,exports.MenuTooltip=ka,exports.NOISE_RATIO_MAX=$a,exports.NOISE_RATIO_STEP=Vu,exports.NoisePlayerContext=Ro,exports.NoiseSettingsTooltip=oc,exports.NoticeBox=sf,exports.OrderListStep=Cc,exports.PASS_CARD_BG_VARS=qn,exports.POS_LABEL=fu,exports.PROMO_BANNER_BG_COMPONENTS=el,exports.PROMO_BANNER_BG_OPTIONS=Kg,exports.PROMO_BANNER_BG_VARS=_a,exports.Page=pr,exports.PageTitle=e7,exports.Pagination=er,exports.Panel=dr,exports.PanelGrid=C3,exports.PanelRow=Mn,exports.PanelRowDevice=h3,exports.PassCard=Dl,exports.PassCardBg=t4,exports.PassCardBgIHAB=n4,exports.PassCardBgLeftColorGrid=a4,exports.PassCardBgTwoCircle=wl,exports.PaymentPlan=e4,exports.PersonCard=$4,exports.PhonemeFilterPanel=U3,exports.PhonemeSelectBlock=W3,exports.Popup=Tn,exports.ProgressBar=fy,exports.ProgressIndicator=ou,exports.PromoBanner=hb,exports.PromoBannerBgDark=Fi,exports.PromoBannerBgDeep=Mi,exports.PromoBannerBgDiagonal=Vi,exports.PromoBannerBgDots=qi,exports.PromoBannerBgInstagram=Qi,exports.PromoBannerBgMain=Ni,exports.PromoBannerBgNaver=Xi,exports.PromoBannerBgOutline=Gi,exports.PromoBannerBgRadial=Hi,exports.PromoBannerBgSoft=Ei,exports.PromoBannerBgSoftSub=$i,exports.PromoBannerBgSub=ji,exports.PromoBannerBgSuccess=Yi,exports.PromoBannerBgWarm=Pi,exports.PublicationCard=P4,exports.Radio=Tl,exports.RadioGroup=i4,exports.Rating=x4,exports.ReportDocument=s7,exports.ReportInfoPanel=i7,exports.RingChart=dy,exports.SENTENCE_TRAINING_TYPES=To,exports.SearchSummary=p4,exports.Section=sa,exports.SectionHeadFloat=ql,exports.SectionHeader=F4,exports.SegmentedControl=An,exports.ShortcutBadge=jl,exports.SideNav=fl,exports.Slider=tu,exports.SoundCompass=r4,exports.SplashLogo=I4,exports.StatChart=py,exports.SummaryStrip=r7,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=Ll,exports.Table=xo,exports.TableFilterPanel=Do,exports.Tabs=m4,exports.TextBoxTooltip=cr,exports.TextField=Un,exports.Timeline=R4,exports.Toast=ra,exports.Toggle=zl,exports.Toolbar=po,exports.Tooltip=on,exports.TooltipInfo=vn,exports.TooltipTextBox=cr,exports.TopBanner=Cb,exports.TrainingBlock=Sy,exports.TrainingBlockButton=lo,exports.TrainingCard=p7,exports.TrainingCardGroup=m7,exports.TrainingPagePopup=$n,exports.TrainingPagePopupBottom=sc,exports.TrainingPagePopupTitle=ic,exports.TrainingResultPopup=bc,exports.TrainingStep=Gn,exports.TrainingStepAudioPlayer=Oo,exports.TrainingStepBullet=Xu,exports.TrainingStepCard=tc,exports.TrainingStepConfirm=zo,exports.TrainingStepConfirmWithText=Vo,exports.TrainingStepListen=Wo,exports.TrainingStepOrderList=qo,exports.TrainingStepTextBox=ec,exports.TrainingStepTitle=Qu,exports.TrainingTooltip=$l,exports.TrainingWordCard=Bo,exports.UpdateAlert=d7,exports.WAVE_A_MAX=G5,exports.WAVE_H1_PX=Ku,exports.WAVE_HMAX_PX=U5,exports.WORD_TABLE_PAPER=ia,exports.WORD_TYPE_LABEL=gu,exports.WordDataProvider=a7,exports.WordDataUpdatePopup=B7,exports.WordImageTooltip=xc,exports.WordSearchFilterPanel=q3,exports.WordSearchResultBlock=z3,exports.WordTable=la,exports.WordTableBlock=b7,exports.WordTableButton=y7,exports.WordTablePopup=r5,exports.WordTableThumbnail=kc,exports.buildMonthChartData=ty,exports.cellKey=p5,exports.cellLabel=d5,exports.cellsForLabels=A5,exports.clearPassCardBgTheme=wn,exports.clearPromoBannerBgTheme=Ft,exports.closeTrainingPopup=v3,exports.companyTypeLabel=t7,exports.createTrainingScenario=w3,exports.cx=Ne,exports.deriveNoiseContexts=E3,exports.derivePassCard=vl,exports.draftValues=S5,exports.effectiveNoiseVolume=Lo,exports.effectiveSpeechVolume=qu,exports.expandSlashLabel=No,exports.formatDuration=B5,exports.getControlDateRange=cy,exports.getPayloadTimestamp=Ko,exports.getPromoBannerBgTheme=Jr,exports.getSelectedFromPayload=B3,exports.getSelectedText=k3,exports.getStepPayload=cc,exports.getSteppedPayload=N3,exports.injectPassCardBgTheme=_n,exports.injectPromoBannerBgTheme=It,exports.isSelectionCorrect=D3,exports.labelOfCellKey=Hu,exports.labelsForSave=c5,exports.levelToPct=P5,exports.markAfterClick=du,exports.marksForSave=ko,exports.mergeNoiseSettings=Pa,exports.missesByType=v5,exports.nextFocus=f5,exports.nextMisses=y5,exports.noiseElementVolume=$o,exports.noiseRatioOf=Ra,exports.pageStartIndexes=hu,exports.passCardBgIhabTheme=El,exports.passCardBgLeftColorGridTheme=Sl,exports.passCardBgTwoCircleTheme=_l,exports.pctToLevel=I5,exports.printWordTable=Ry,exports.promoBannerBgDarkTheme=Ii,exports.promoBannerBgDeepTheme=Ti,exports.promoBannerBgDiagonalTheme=zi,exports.promoBannerBgDotsTheme=Wi,exports.promoBannerBgInstagramTheme=Ji,exports.promoBannerBgMainTheme=ki,exports.promoBannerBgNaverTheme=Zi,exports.promoBannerBgOutlineTheme=Ui,exports.promoBannerBgRadialTheme=Oi,exports.promoBannerBgSoftSubTheme=Li,exports.promoBannerBgSoftTheme=Di,exports.promoBannerBgSubTheme=Si,exports.promoBannerBgSuccessTheme=Ki,exports.promoBannerBgWarmTheme=Ri,exports.recommendTables=_5,exports.regenerateUnpinned=E5,exports.removeItem=D5,exports.resolveTrainingItems=_3,exports.resolveTrainingPopupMeta=uc,exports.reviewCells=s5,exports.reviewMeta=u5,exports.reviewSetPlan=x5,exports.reviewTableName=l5,exports.scoreKey=or,exports.scoreSheetHeader=m5,exports.shouldConfirmDiscard=$y,exports.splitTrainingVariants=x3,exports.summarize=Ly,exports.summarizeMisses=b5,exports.tableTrends=C5,exports.toDraft=k5,exports.toTrainingText=A3,exports.togglePin=N5,exports.uncoveredLabels=w5,exports.useAnchoredMenu=Ba,exports.useBarChartControl=Kl,exports.useCalendarMonth=Wl,exports.useComboboxSuggestions=Ol,exports.useDiscardGuard=Y3,exports.useFitScale=yu,exports.useNoisePlayer=lr,exports.useSoundCompassExam=mb,exports.useToastLifecycle=au,exports.useWordData=n7,exports.useWordTableDisplaySettings=Fu,exports.useWordTablePrint=jo,exports.waveBarPx=Fa,exports.waveBarVal=Io,exports.weakItems=h5;