@ihabdevteam/core 0.373.0 → 0.374.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/dist/components.cjs.js +169 -169
- package/dist/hooks.cjs.js +1 -1
- package/dist/i18n.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +174 -174
- package/dist/ihabdevteam-core.d.ts +18 -2
- package/dist/packages/core/src/components/Word/WordTableBlock.d.ts +1 -1
- package/dist/packages/core/src/components/Word/WordTableBlock.js +11 -4
- package/dist/packages/core/src/components/Word/wordTableBlockTypes.d.ts +16 -0
- package/dist/packages/core/src/version.d.ts +1 -1
- package/dist/packages/core/src/version.js +1 -1
- package/dist/utils.cjs.js +1 -1
- package/package.json +1 -1
package/dist/components.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var n=require("react/jsx-runtime"),o=require("react"),Vt=require("i18next"),
|
|
1
|
+
"use strict";var n=require("react/jsx-runtime"),o=require("react"),Vt=require("i18next"),xe=require("react-i18next"),sn=require("react-dom"),Nn=typeof document<"u"?document.currentScript:null;function bd(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if(a!=="default"){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var Ms=bd(o);function Be(...e){return e.filter(Boolean).join(" ")}const Ls=new Set,Pn=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function Tt(e,...t){!Pn||Ls.has(e)||(Ls.add(e),console.warn(...t))}/**
|
|
2
2
|
* @license lucide-react v1.38.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const
|
|
11
|
+
*/const gd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
12
12
|
* @license lucide-react v1.38.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
@@ -28,774 +28,774 @@
|
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const vd=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},xd=o.createContext({}),_d=()=>o.useContext(xd),wd=o.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:s="",children:l,iconNode:i,...u},c)=>{const{size:d=24,strokeWidth:m=2,absoluteStrokeWidth:p=!1,color:h="currentColor",className:
|
|
31
|
+
*/const vd=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},xd=o.createContext({}),_d=()=>o.useContext(xd),wd=o.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:s="",children:l,iconNode:i,...u},c)=>{const{size:d=24,strokeWidth:m=2,absoluteStrokeWidth:p=!1,color:h="currentColor",className:g=""}=_d()??{},v=r??p?Number(a??m)*24/Number(t??d):a??m;return o.createElement("svg",{ref:c,...Pr,width:t??d??Pr.width,height:t??d??Pr.height,stroke:e??h,strokeWidth:v,className:$s("lucide",g,s),...!l&&!vd(u)&&{"aria-hidden":"true"},...u},[...i.map(([C,f])=>o.createElement(C,f)),...Array.isArray(l)?l:[l]])});/**
|
|
32
32
|
* @license lucide-react v1.38.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const
|
|
36
|
+
*/const te=(e,t)=>{const a=o.forwardRef(({className:r,...s},l)=>o.createElement(wd,{ref:l,iconNode:t,className:$s(`lucide-${gd(Rs(e))}`,`lucide-${e}`,r),...s}));return a.displayName=Rs(e),a};/**
|
|
37
37
|
* @license lucide-react v1.38.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const Bd=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ps=
|
|
41
|
+
*/const Bd=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ps=te("triangle-alert",Bd);/**
|
|
42
42
|
* @license lucide-react v1.38.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const kd=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],Ad=
|
|
46
|
+
*/const kd=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],Ad=te("align-start-vertical",kd);/**
|
|
47
47
|
* @license lucide-react v1.38.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const Nd=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Ed=
|
|
51
|
+
*/const Nd=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Ed=te("arrow-down",Nd);/**
|
|
52
52
|
* @license lucide-react v1.38.0 - ISC
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const Dd=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Sd=
|
|
56
|
+
*/const Dd=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Sd=te("arrow-left",Dd);/**
|
|
57
57
|
* @license lucide-react v1.38.0 - ISC
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the ISC license.
|
|
60
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const jd=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Td=
|
|
61
|
+
*/const jd=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Td=te("arrow-right",jd);/**
|
|
62
62
|
* @license lucide-react v1.38.0 - ISC
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the ISC license.
|
|
65
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const Md=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],Ld=
|
|
66
|
+
*/const Md=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],Ld=te("arrow-right-left",Md);/**
|
|
67
67
|
* @license lucide-react v1.38.0 - ISC
|
|
68
68
|
*
|
|
69
69
|
* This source code is licensed under the ISC license.
|
|
70
70
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const $d=[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]],Rd=
|
|
71
|
+
*/const $d=[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]],Rd=te("audio-lines",$d);/**
|
|
72
72
|
* @license lucide-react v1.38.0 - ISC
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the ISC license.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const Pd=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],Id=
|
|
76
|
+
*/const Pd=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],Id=te("ban",Pd);/**
|
|
77
77
|
* @license lucide-react v1.38.0 - ISC
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the ISC license.
|
|
80
80
|
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const Fd=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Od=
|
|
81
|
+
*/const Fd=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Od=te("bell",Fd);/**
|
|
82
82
|
* @license lucide-react v1.38.0 - ISC
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the ISC license.
|
|
85
85
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const zd=[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],Wd=
|
|
86
|
+
*/const zd=[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],Wd=te("book-marked",zd);/**
|
|
87
87
|
* @license lucide-react v1.38.0 - ISC
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the ISC license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const Hd=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]],Vd=
|
|
91
|
+
*/const Hd=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]],Vd=te("book-open",Hd);/**
|
|
92
92
|
* @license lucide-react v1.38.0 - ISC
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the ISC license.
|
|
95
95
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const qd=[["path",{d:"M17 3h4v4",key:"19p9u1"}],["path",{d:"M18.575 11.082a13 13 0 0 1 1.048 9.027 1.17 1.17 0 0 1-1.914.597L14 17",key:"12t3w9"}],["path",{d:"M7 10 3.29 6.29a1.17 1.17 0 0 1 .6-1.91 13 13 0 0 1 9.03 1.05",key:"ogng5l"}],["path",{d:"M7 14a1.7 1.7 0 0 0-1.207.5l-2.646 2.646A.5.5 0 0 0 3.5 18H5a1 1 0 0 1 1 1v1.5a.5.5 0 0 0 .854.354L9.5 18.207A1.7 1.7 0 0 0 10 17v-2a1 1 0 0 0-1-1z",key:"8v3fy2"}],["path",{d:"M9.707 14.293 21 3",key:"ydm3bn"}]],Ud=
|
|
96
|
+
*/const qd=[["path",{d:"M17 3h4v4",key:"19p9u1"}],["path",{d:"M18.575 11.082a13 13 0 0 1 1.048 9.027 1.17 1.17 0 0 1-1.914.597L14 17",key:"12t3w9"}],["path",{d:"M7 10 3.29 6.29a1.17 1.17 0 0 1 .6-1.91 13 13 0 0 1 9.03 1.05",key:"ogng5l"}],["path",{d:"M7 14a1.7 1.7 0 0 0-1.207.5l-2.646 2.646A.5.5 0 0 0 3.5 18H5a1 1 0 0 1 1 1v1.5a.5.5 0 0 0 .854.354L9.5 18.207A1.7 1.7 0 0 0 10 17v-2a1 1 0 0 0-1-1z",key:"8v3fy2"}],["path",{d:"M9.707 14.293 21 3",key:"ydm3bn"}]],Ud=te("bow-arrow",qd);/**
|
|
97
97
|
* @license lucide-react v1.38.0 - ISC
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the ISC license.
|
|
100
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const Gd=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],Kd=
|
|
101
|
+
*/const Gd=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],Kd=te("braces",Gd);/**
|
|
102
102
|
* @license lucide-react v1.38.0 - ISC
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const Yd=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],Zd=
|
|
106
|
+
*/const Yd=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],Zd=te("bug",Yd);/**
|
|
107
107
|
* @license lucide-react v1.38.0 - ISC
|
|
108
108
|
*
|
|
109
109
|
* This source code is licensed under the ISC license.
|
|
110
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const Xd=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],Jd=
|
|
111
|
+
*/const Xd=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],Jd=te("calendar-check",Xd);/**
|
|
112
112
|
* @license lucide-react v1.38.0 - ISC
|
|
113
113
|
*
|
|
114
114
|
* This source code is licensed under the ISC license.
|
|
115
115
|
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const Qd=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M8 17h.01",key:"p3bg7i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M16 17h.01",key:"ql8jdd"}]],ep=
|
|
116
|
+
*/const Qd=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M8 17h.01",key:"p3bg7i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M16 17h.01",key:"ql8jdd"}]],ep=te("calendar-days",Qd);/**
|
|
117
117
|
* @license lucide-react v1.38.0 - ISC
|
|
118
118
|
*
|
|
119
119
|
* This source code is licensed under the ISC license.
|
|
120
120
|
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const tp=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],np=
|
|
121
|
+
*/const tp=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],np=te("camera",tp);/**
|
|
122
122
|
* @license lucide-react v1.38.0 - ISC
|
|
123
123
|
*
|
|
124
124
|
* This source code is licensed under the ISC license.
|
|
125
125
|
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const ap=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],rp=
|
|
126
|
+
*/const ap=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],rp=te("chart-column",ap);/**
|
|
127
127
|
* @license lucide-react v1.38.0 - ISC
|
|
128
128
|
*
|
|
129
129
|
* This source code is licensed under the ISC license.
|
|
130
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const op=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],sp=
|
|
131
|
+
*/const op=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],sp=te("chart-line",op);/**
|
|
132
132
|
* @license lucide-react v1.38.0 - ISC
|
|
133
133
|
*
|
|
134
134
|
* This source code is licensed under the ISC license.
|
|
135
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const lp=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],ip=
|
|
136
|
+
*/const lp=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],ip=te("chart-pie",lp);/**
|
|
137
137
|
* @license lucide-react v1.38.0 - ISC
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the ISC license.
|
|
140
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const up=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Is=
|
|
141
|
+
*/const up=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Is=te("check",up);/**
|
|
142
142
|
* @license lucide-react v1.38.0 - ISC
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the ISC license.
|
|
145
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const cp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Fs=
|
|
146
|
+
*/const cp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Fs=te("chevron-left",cp);/**
|
|
147
147
|
* @license lucide-react v1.38.0 - ISC
|
|
148
148
|
*
|
|
149
149
|
* This source code is licensed under the ISC license.
|
|
150
150
|
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const dp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Os=
|
|
151
|
+
*/const dp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Os=te("chevron-right",dp);/**
|
|
152
152
|
* @license lucide-react v1.38.0 - ISC
|
|
153
153
|
*
|
|
154
154
|
* This source code is licensed under the ISC license.
|
|
155
155
|
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const pp=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],mp=
|
|
156
|
+
*/const pp=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],mp=te("clipboard-list",pp);/**
|
|
157
157
|
* @license lucide-react v1.38.0 - ISC
|
|
158
158
|
*
|
|
159
159
|
* This source code is licensed under the ISC license.
|
|
160
160
|
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const hp=[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]],Cp=
|
|
161
|
+
*/const hp=[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]],Cp=te("combine",hp);/**
|
|
162
162
|
* @license lucide-react v1.38.0 - ISC
|
|
163
163
|
*
|
|
164
164
|
* This source code is licensed under the ISC license.
|
|
165
165
|
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const fp=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],
|
|
166
|
+
*/const fp=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],bp=te("copy",fp);/**
|
|
167
167
|
* @license lucide-react v1.38.0 - ISC
|
|
168
168
|
*
|
|
169
169
|
* This source code is licensed under the ISC license.
|
|
170
170
|
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const
|
|
171
|
+
*/const gp=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"m17 7 5 5-5 5",key:"1xlxn0"}],["path",{d:"m7 7-5 5 5 5",key:"19njba"}],["path",{d:"M8 12h.01",key:"czm47f"}]],yp=te("chevrons-left-right-ellipsis",gp);/**
|
|
172
172
|
* @license lucide-react v1.38.0 - ISC
|
|
173
173
|
*
|
|
174
174
|
* This source code is licensed under the ISC license.
|
|
175
175
|
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const vp=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],xp=
|
|
176
|
+
*/const vp=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],xp=te("credit-card",vp);/**
|
|
177
177
|
* @license lucide-react v1.38.0 - ISC
|
|
178
178
|
*
|
|
179
179
|
* This source code is licensed under the ISC license.
|
|
180
180
|
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const _p=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],zs=
|
|
181
|
+
*/const _p=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],zs=te("database",_p);/**
|
|
182
182
|
* @license lucide-react v1.38.0 - ISC
|
|
183
183
|
*
|
|
184
184
|
* This source code is licensed under the ISC license.
|
|
185
185
|
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const wp=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],Bp=
|
|
186
|
+
*/const wp=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],Bp=te("diff",wp);/**
|
|
187
187
|
* @license lucide-react v1.38.0 - ISC
|
|
188
188
|
*
|
|
189
189
|
* This source code is licensed under the ISC license.
|
|
190
190
|
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const kp=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Ws=
|
|
191
|
+
*/const kp=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Ws=te("download",kp);/**
|
|
192
192
|
* @license lucide-react v1.38.0 - ISC
|
|
193
193
|
*
|
|
194
194
|
* This source code is licensed under the ISC license.
|
|
195
195
|
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const Ap=[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]],Np=
|
|
196
|
+
*/const Ap=[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]],Np=te("ear",Ap);/**
|
|
197
197
|
* @license lucide-react v1.38.0 - ISC
|
|
198
198
|
*
|
|
199
199
|
* This source code is licensed under the ISC license.
|
|
200
200
|
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const Ep=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Dp=
|
|
201
|
+
*/const Ep=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Dp=te("square-pen",Ep);/**
|
|
202
202
|
* @license lucide-react v1.38.0 - ISC
|
|
203
203
|
*
|
|
204
204
|
* This source code is licensed under the ISC license.
|
|
205
205
|
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const Sp=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],jp=
|
|
206
|
+
*/const Sp=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],jp=te("pen",Sp);/**
|
|
207
207
|
* @license lucide-react v1.38.0 - ISC
|
|
208
208
|
*
|
|
209
209
|
* This source code is licensed under the ISC license.
|
|
210
210
|
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const Tp=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Mp=
|
|
211
|
+
*/const Tp=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Mp=te("pen-line",Tp);/**
|
|
212
212
|
* @license lucide-react v1.38.0 - ISC
|
|
213
213
|
*
|
|
214
214
|
* This source code is licensed under the ISC license.
|
|
215
215
|
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const Lp=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Hs=
|
|
216
|
+
*/const Lp=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Hs=te("ellipsis",Lp);/**
|
|
217
217
|
* @license lucide-react v1.38.0 - ISC
|
|
218
218
|
*
|
|
219
219
|
* This source code is licensed under the ISC license.
|
|
220
220
|
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const $p=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],Rp=
|
|
221
|
+
*/const $p=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],Rp=te("eraser",$p);/**
|
|
222
222
|
* @license lucide-react v1.38.0 - ISC
|
|
223
223
|
*
|
|
224
224
|
* This source code is licensed under the ISC license.
|
|
225
225
|
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
-
*/const Pp=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ip=
|
|
226
|
+
*/const Pp=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ip=te("external-link",Pp);/**
|
|
227
227
|
* @license lucide-react v1.38.0 - ISC
|
|
228
228
|
*
|
|
229
229
|
* This source code is licensed under the ISC license.
|
|
230
230
|
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
-
*/const Fp=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Op=
|
|
231
|
+
*/const Fp=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Op=te("eye",Fp);/**
|
|
232
232
|
* @license lucide-react v1.38.0 - ISC
|
|
233
233
|
*
|
|
234
234
|
* This source code is licensed under the ISC license.
|
|
235
235
|
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/const zp=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Wp=
|
|
236
|
+
*/const zp=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Wp=te("file-text",zp);/**
|
|
237
237
|
* @license lucide-react v1.38.0 - ISC
|
|
238
238
|
*
|
|
239
239
|
* This source code is licensed under the ISC license.
|
|
240
240
|
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/const Hp=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3",key:"1i73f7"}],["path",{d:"M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3",key:"saxlbk"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]],Vp=
|
|
241
|
+
*/const Hp=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3",key:"1i73f7"}],["path",{d:"M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3",key:"saxlbk"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]],Vp=te("square-centerline-dashed-horizontal",Hp);/**
|
|
242
242
|
* @license lucide-react v1.38.0 - ISC
|
|
243
243
|
*
|
|
244
244
|
* This source code is licensed under the ISC license.
|
|
245
245
|
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
-
*/const qp=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Up=
|
|
246
|
+
*/const qp=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Up=te("folder-open",qp);/**
|
|
247
247
|
* @license lucide-react v1.38.0 - ISC
|
|
248
248
|
*
|
|
249
249
|
* This source code is licensed under the ISC license.
|
|
250
250
|
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
-
*/const Gp=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Kp=
|
|
251
|
+
*/const Gp=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Kp=te("folder-plus",Gp);/**
|
|
252
252
|
* @license lucide-react v1.38.0 - ISC
|
|
253
253
|
*
|
|
254
254
|
* This source code is licensed under the ISC license.
|
|
255
255
|
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
-
*/const Yp=[["line",{x1:"6",x2:"10",y1:"12",y2:"12",key:"161bw2"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"15",x2:"15.01",y1:"13",y2:"13",key:"dqpgro"}],["line",{x1:"18",x2:"18.01",y1:"11",y2:"11",key:"meh2c"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]],Zp=
|
|
256
|
+
*/const Yp=[["line",{x1:"6",x2:"10",y1:"12",y2:"12",key:"161bw2"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"15",x2:"15.01",y1:"13",y2:"13",key:"dqpgro"}],["line",{x1:"18",x2:"18.01",y1:"11",y2:"11",key:"meh2c"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]],Zp=te("gamepad",Yp);/**
|
|
257
257
|
* @license lucide-react v1.38.0 - ISC
|
|
258
258
|
*
|
|
259
259
|
* This source code is licensed under the ISC license.
|
|
260
260
|
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
-
*/const Xp=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]],Jp=
|
|
261
|
+
*/const Xp=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]],Jp=te("gavel",Xp);/**
|
|
262
262
|
* @license lucide-react v1.38.0 - ISC
|
|
263
263
|
*
|
|
264
264
|
* This source code is licensed under the ISC license.
|
|
265
265
|
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
-
*/const Qp=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Vs=
|
|
266
|
+
*/const Qp=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Vs=te("git-merge",Qp);/**
|
|
267
267
|
* @license lucide-react v1.38.0 - ISC
|
|
268
268
|
*
|
|
269
269
|
* This source code is licensed under the ISC license.
|
|
270
270
|
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
-
*/const em=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],tm=
|
|
271
|
+
*/const em=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],tm=te("globe",em);/**
|
|
272
272
|
* @license lucide-react v1.38.0 - ISC
|
|
273
273
|
*
|
|
274
274
|
* This source code is licensed under the ISC license.
|
|
275
275
|
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
-
*/const nm=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],am=
|
|
276
|
+
*/const nm=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],am=te("grip-vertical",nm);/**
|
|
277
277
|
* @license lucide-react v1.38.0 - ISC
|
|
278
278
|
*
|
|
279
279
|
* This source code is licensed under the ISC license.
|
|
280
280
|
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
-
*/const rm=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],om=
|
|
281
|
+
*/const rm=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],om=te("headphones",rm);/**
|
|
282
282
|
* @license lucide-react v1.38.0 - ISC
|
|
283
283
|
*
|
|
284
284
|
* This source code is licensed under the ISC license.
|
|
285
285
|
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
-
*/const sm=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],lm=
|
|
286
|
+
*/const sm=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],lm=te("heart",sm);/**
|
|
287
287
|
* @license lucide-react v1.38.0 - ISC
|
|
288
288
|
*
|
|
289
289
|
* This source code is licensed under the ISC license.
|
|
290
290
|
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
-
*/const im=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],um=
|
|
291
|
+
*/const im=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],um=te("house",im);/**
|
|
292
292
|
* @license lucide-react v1.38.0 - ISC
|
|
293
293
|
*
|
|
294
294
|
* This source code is licensed under the ISC license.
|
|
295
295
|
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
-
*/const cm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],dm=
|
|
296
|
+
*/const cm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],dm=te("info",cm);/**
|
|
297
297
|
* @license lucide-react v1.38.0 - ISC
|
|
298
298
|
*
|
|
299
299
|
* This source code is licensed under the ISC license.
|
|
300
300
|
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
-
*/const pm=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],mm=
|
|
301
|
+
*/const pm=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],mm=te("key-round",pm);/**
|
|
302
302
|
* @license lucide-react v1.38.0 - ISC
|
|
303
303
|
*
|
|
304
304
|
* This source code is licensed under the ISC license.
|
|
305
305
|
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
-
*/const hm=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z",key:"yxxwt6"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],Cm=
|
|
306
|
+
*/const hm=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z",key:"yxxwt6"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],Cm=te("landmark",hm);/**
|
|
307
307
|
* @license lucide-react v1.38.0 - ISC
|
|
308
308
|
*
|
|
309
309
|
* This source code is licensed under the ISC license.
|
|
310
310
|
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
-
*/const fm=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],
|
|
311
|
+
*/const fm=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],bm=te("layers",fm);/**
|
|
312
312
|
* @license lucide-react v1.38.0 - ISC
|
|
313
313
|
*
|
|
314
314
|
* This source code is licensed under the ISC license.
|
|
315
315
|
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
-
*/const
|
|
316
|
+
*/const gm=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],ym=te("layout-dashboard",gm);/**
|
|
317
317
|
* @license lucide-react v1.38.0 - ISC
|
|
318
318
|
*
|
|
319
319
|
* This source code is licensed under the ISC license.
|
|
320
320
|
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
-
*/const vm=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],xm=
|
|
321
|
+
*/const vm=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],xm=te("leaf",vm);/**
|
|
322
322
|
* @license lucide-react v1.38.0 - ISC
|
|
323
323
|
*
|
|
324
324
|
* This source code is licensed under the ISC license.
|
|
325
325
|
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
-
*/const _m=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],wm=
|
|
326
|
+
*/const _m=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],wm=te("lightbulb",_m);/**
|
|
327
327
|
* @license lucide-react v1.38.0 - ISC
|
|
328
328
|
*
|
|
329
329
|
* This source code is licensed under the ISC license.
|
|
330
330
|
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
-
*/const Bm=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],km=
|
|
331
|
+
*/const Bm=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],km=te("link",Bm);/**
|
|
332
332
|
* @license lucide-react v1.38.0 - ISC
|
|
333
333
|
*
|
|
334
334
|
* This source code is licensed under the ISC license.
|
|
335
335
|
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
-
*/const Am=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Nm=
|
|
336
|
+
*/const Am=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Nm=te("link-2",Am);/**
|
|
337
337
|
* @license lucide-react v1.38.0 - ISC
|
|
338
338
|
*
|
|
339
339
|
* This source code is licensed under the ISC license.
|
|
340
340
|
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
-
*/const Em=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],Dm=
|
|
341
|
+
*/const Em=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],Dm=te("link-2-off",Em);/**
|
|
342
342
|
* @license lucide-react v1.38.0 - ISC
|
|
343
343
|
*
|
|
344
344
|
* This source code is licensed under the ISC license.
|
|
345
345
|
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
-
*/const Sm=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],jm=
|
|
346
|
+
*/const Sm=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],jm=te("list",Sm);/**
|
|
347
347
|
* @license lucide-react v1.38.0 - ISC
|
|
348
348
|
*
|
|
349
349
|
* This source code is licensed under the ISC license.
|
|
350
350
|
* See the LICENSE file in the root directory of this source tree.
|
|
351
|
-
*/const Tm=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],Mm=
|
|
351
|
+
*/const Tm=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],Mm=te("list-checks",Tm);/**
|
|
352
352
|
* @license lucide-react v1.38.0 - ISC
|
|
353
353
|
*
|
|
354
354
|
* This source code is licensed under the ISC license.
|
|
355
355
|
* See the LICENSE file in the root directory of this source tree.
|
|
356
|
-
*/const Lm=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],$m=
|
|
356
|
+
*/const Lm=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],$m=te("list-ordered",Lm);/**
|
|
357
357
|
* @license lucide-react v1.38.0 - ISC
|
|
358
358
|
*
|
|
359
359
|
* This source code is licensed under the ISC license.
|
|
360
360
|
* See the LICENSE file in the root directory of this source tree.
|
|
361
|
-
*/const Rm=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Pm=
|
|
361
|
+
*/const Rm=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Pm=te("loader",Rm);/**
|
|
362
362
|
* @license lucide-react v1.38.0 - ISC
|
|
363
363
|
*
|
|
364
364
|
* This source code is licensed under the ISC license.
|
|
365
365
|
* See the LICENSE file in the root directory of this source tree.
|
|
366
|
-
*/const Im=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Fm=
|
|
366
|
+
*/const Im=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Fm=te("lock",Im);/**
|
|
367
367
|
* @license lucide-react v1.38.0 - ISC
|
|
368
368
|
*
|
|
369
369
|
* This source code is licensed under the ISC license.
|
|
370
370
|
* See the LICENSE file in the root directory of this source tree.
|
|
371
|
-
*/const Om=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],zm=
|
|
371
|
+
*/const Om=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],zm=te("log-out",Om);/**
|
|
372
372
|
* @license lucide-react v1.38.0 - ISC
|
|
373
373
|
*
|
|
374
374
|
* This source code is licensed under the ISC license.
|
|
375
375
|
* See the LICENSE file in the root directory of this source tree.
|
|
376
|
-
*/const Wm=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Hm=
|
|
376
|
+
*/const Wm=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Hm=te("mail",Wm);/**
|
|
377
377
|
* @license lucide-react v1.38.0 - ISC
|
|
378
378
|
*
|
|
379
379
|
* This source code is licensed under the ISC license.
|
|
380
380
|
* See the LICENSE file in the root directory of this source tree.
|
|
381
|
-
*/const Vm=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],qm=
|
|
381
|
+
*/const Vm=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],qm=te("map-pin",Vm);/**
|
|
382
382
|
* @license lucide-react v1.38.0 - ISC
|
|
383
383
|
*
|
|
384
384
|
* This source code is licensed under the ISC license.
|
|
385
385
|
* See the LICENSE file in the root directory of this source tree.
|
|
386
|
-
*/const Um=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Gm=
|
|
386
|
+
*/const Um=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Gm=te("message-circle",Um);/**
|
|
387
387
|
* @license lucide-react v1.38.0 - ISC
|
|
388
388
|
*
|
|
389
389
|
* This source code is licensed under the ISC license.
|
|
390
390
|
* See the LICENSE file in the root directory of this source tree.
|
|
391
|
-
*/const Km=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ym=
|
|
391
|
+
*/const Km=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ym=te("message-circle-question-mark",Km);/**
|
|
392
392
|
* @license lucide-react v1.38.0 - ISC
|
|
393
393
|
*
|
|
394
394
|
* This source code is licensed under the ISC license.
|
|
395
395
|
* See the LICENSE file in the root directory of this source tree.
|
|
396
|
-
*/const Zm=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Xm=
|
|
396
|
+
*/const Zm=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Xm=te("message-square",Zm);/**
|
|
397
397
|
* @license lucide-react v1.38.0 - ISC
|
|
398
398
|
*
|
|
399
399
|
* This source code is licensed under the ISC license.
|
|
400
400
|
* See the LICENSE file in the root directory of this source tree.
|
|
401
|
-
*/const Jm=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],Qm=
|
|
401
|
+
*/const Jm=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],Qm=te("message-square-text",Jm);/**
|
|
402
402
|
* @license lucide-react v1.38.0 - ISC
|
|
403
403
|
*
|
|
404
404
|
* This source code is licensed under the ISC license.
|
|
405
405
|
* See the LICENSE file in the root directory of this source tree.
|
|
406
|
-
*/const eh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],th=
|
|
406
|
+
*/const eh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],th=te("circle-minus",eh);/**
|
|
407
407
|
* @license lucide-react v1.38.0 - ISC
|
|
408
408
|
*
|
|
409
409
|
* This source code is licensed under the ISC license.
|
|
410
410
|
* See the LICENSE file in the root directory of this source tree.
|
|
411
|
-
*/const nh=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],ah=
|
|
411
|
+
*/const nh=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],ah=te("package",nh);/**
|
|
412
412
|
* @license lucide-react v1.38.0 - ISC
|
|
413
413
|
*
|
|
414
414
|
* This source code is licensed under the ISC license.
|
|
415
415
|
* See the LICENSE file in the root directory of this source tree.
|
|
416
|
-
*/const rh=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],oh=
|
|
416
|
+
*/const rh=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],oh=te("party-popper",rh);/**
|
|
417
417
|
* @license lucide-react v1.38.0 - ISC
|
|
418
418
|
*
|
|
419
419
|
* This source code is licensed under the ISC license.
|
|
420
420
|
* See the LICENSE file in the root directory of this source tree.
|
|
421
|
-
*/const sh=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],lh=
|
|
421
|
+
*/const sh=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],lh=te("pause",sh);/**
|
|
422
422
|
* @license lucide-react v1.38.0 - ISC
|
|
423
423
|
*
|
|
424
424
|
* This source code is licensed under the ISC license.
|
|
425
425
|
* See the LICENSE file in the root directory of this source tree.
|
|
426
|
-
*/const ih=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],uh=
|
|
426
|
+
*/const ih=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],uh=te("pencil",ih);/**
|
|
427
427
|
* @license lucide-react v1.38.0 - ISC
|
|
428
428
|
*
|
|
429
429
|
* This source code is licensed under the ISC license.
|
|
430
430
|
* See the LICENSE file in the root directory of this source tree.
|
|
431
|
-
*/const ch=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],dh=
|
|
431
|
+
*/const ch=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],dh=te("phone",ch);/**
|
|
432
432
|
* @license lucide-react v1.38.0 - ISC
|
|
433
433
|
*
|
|
434
434
|
* This source code is licensed under the ISC license.
|
|
435
435
|
* See the LICENSE file in the root directory of this source tree.
|
|
436
|
-
*/const ph=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],mh=
|
|
436
|
+
*/const ph=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],mh=te("play",ph);/**
|
|
437
437
|
* @license lucide-react v1.38.0 - ISC
|
|
438
438
|
*
|
|
439
439
|
* This source code is licensed under the ISC license.
|
|
440
440
|
* See the LICENSE file in the root directory of this source tree.
|
|
441
|
-
*/const hh=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ch=
|
|
441
|
+
*/const hh=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ch=te("circle-play",hh);/**
|
|
442
442
|
* @license lucide-react v1.38.0 - ISC
|
|
443
443
|
*
|
|
444
444
|
* This source code is licensed under the ISC license.
|
|
445
445
|
* See the LICENSE file in the root directory of this source tree.
|
|
446
|
-
*/const fh=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],
|
|
446
|
+
*/const fh=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],bh=te("plus",fh);/**
|
|
447
447
|
* @license lucide-react v1.38.0 - ISC
|
|
448
448
|
*
|
|
449
449
|
* This source code is licensed under the ISC license.
|
|
450
450
|
* See the LICENSE file in the root directory of this source tree.
|
|
451
|
-
*/const
|
|
451
|
+
*/const gh=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],yh=te("printer",gh);/**
|
|
452
452
|
* @license lucide-react v1.38.0 - ISC
|
|
453
453
|
*
|
|
454
454
|
* This source code is licensed under the ISC license.
|
|
455
455
|
* See the LICENSE file in the root directory of this source tree.
|
|
456
|
-
*/const vh=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],xh=
|
|
456
|
+
*/const vh=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],xh=te("refresh-cw",vh);/**
|
|
457
457
|
* @license lucide-react v1.38.0 - ISC
|
|
458
458
|
*
|
|
459
459
|
* This source code is licensed under the ISC license.
|
|
460
460
|
* See the LICENSE file in the root directory of this source tree.
|
|
461
|
-
*/const _h=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],wh=
|
|
461
|
+
*/const _h=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],wh=te("repeat",_h);/**
|
|
462
462
|
* @license lucide-react v1.38.0 - ISC
|
|
463
463
|
*
|
|
464
464
|
* This source code is licensed under the ISC license.
|
|
465
465
|
* See the LICENSE file in the root directory of this source tree.
|
|
466
|
-
*/const Bh=[["path",{d:"M14 4a1 1 0 0 1 1-1",key:"dhj8ez"}],["path",{d:"M15 10a1 1 0 0 1-1-1",key:"1mnyi5"}],["path",{d:"M21 4a1 1 0 0 0-1-1",key:"sfs9ap"}],["path",{d:"M21 9a1 1 0 0 1-1 1",key:"mp6qeo"}],["path",{d:"m3 7 3 3 3-3",key:"x25e72"}],["path",{d:"M6 10V5a2 2 0 0 1 2-2h2",key:"15xut4"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}]],kh=
|
|
466
|
+
*/const Bh=[["path",{d:"M14 4a1 1 0 0 1 1-1",key:"dhj8ez"}],["path",{d:"M15 10a1 1 0 0 1-1-1",key:"1mnyi5"}],["path",{d:"M21 4a1 1 0 0 0-1-1",key:"sfs9ap"}],["path",{d:"M21 9a1 1 0 0 1-1 1",key:"mp6qeo"}],["path",{d:"m3 7 3 3 3-3",key:"x25e72"}],["path",{d:"M6 10V5a2 2 0 0 1 2-2h2",key:"15xut4"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}]],kh=te("replace",Bh);/**
|
|
467
467
|
* @license lucide-react v1.38.0 - ISC
|
|
468
468
|
*
|
|
469
469
|
* This source code is licensed under the ISC license.
|
|
470
470
|
* See the LICENSE file in the root directory of this source tree.
|
|
471
|
-
*/const Ah=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],Nh=
|
|
471
|
+
*/const Ah=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],Nh=te("rocket",Ah);/**
|
|
472
472
|
* @license lucide-react v1.38.0 - ISC
|
|
473
473
|
*
|
|
474
474
|
* This source code is licensed under the ISC license.
|
|
475
475
|
* See the LICENSE file in the root directory of this source tree.
|
|
476
|
-
*/const Eh=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Dh=
|
|
476
|
+
*/const Eh=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Dh=te("rotate-ccw",Eh);/**
|
|
477
477
|
* @license lucide-react v1.38.0 - ISC
|
|
478
478
|
*
|
|
479
479
|
* This source code is licensed under the ISC license.
|
|
480
480
|
* See the LICENSE file in the root directory of this source tree.
|
|
481
|
-
*/const Sh=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],jh=
|
|
481
|
+
*/const Sh=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],jh=te("rotate-cw",Sh);/**
|
|
482
482
|
* @license lucide-react v1.38.0 - ISC
|
|
483
483
|
*
|
|
484
484
|
* This source code is licensed under the ISC license.
|
|
485
485
|
* See the LICENSE file in the root directory of this source tree.
|
|
486
|
-
*/const Th=[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]],Mh=
|
|
486
|
+
*/const Th=[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]],Mh=te("salad",Th);/**
|
|
487
487
|
* @license lucide-react v1.38.0 - ISC
|
|
488
488
|
*
|
|
489
489
|
* This source code is licensed under the ISC license.
|
|
490
490
|
* See the LICENSE file in the root directory of this source tree.
|
|
491
|
-
*/const Lh=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],$h=
|
|
491
|
+
*/const Lh=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],$h=te("scan-search",Lh);/**
|
|
492
492
|
* @license lucide-react v1.38.0 - ISC
|
|
493
493
|
*
|
|
494
494
|
* This source code is licensed under the ISC license.
|
|
495
495
|
* See the LICENSE file in the root directory of this source tree.
|
|
496
|
-
*/const Rh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],qs=
|
|
496
|
+
*/const Rh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],qs=te("circle-alert",Rh);/**
|
|
497
497
|
* @license lucide-react v1.38.0 - ISC
|
|
498
498
|
*
|
|
499
499
|
* This source code is licensed under the ISC license.
|
|
500
500
|
* See the LICENSE file in the root directory of this source tree.
|
|
501
|
-
*/const Ph=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Us=
|
|
501
|
+
*/const Ph=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Us=te("circle-check-big",Ph);/**
|
|
502
502
|
* @license lucide-react v1.38.0 - ISC
|
|
503
503
|
*
|
|
504
504
|
* This source code is licensed under the ISC license.
|
|
505
505
|
* See the LICENSE file in the root directory of this source tree.
|
|
506
|
-
*/const Ih=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Fh=
|
|
506
|
+
*/const Ih=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Fh=te("search",Ih);/**
|
|
507
507
|
* @license lucide-react v1.38.0 - ISC
|
|
508
508
|
*
|
|
509
509
|
* This source code is licensed under the ISC license.
|
|
510
510
|
* See the LICENSE file in the root directory of this source tree.
|
|
511
|
-
*/const Oh=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],zh=
|
|
511
|
+
*/const Oh=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],zh=te("scissors",Oh);/**
|
|
512
512
|
* @license lucide-react v1.38.0 - ISC
|
|
513
513
|
*
|
|
514
514
|
* This source code is licensed under the ISC license.
|
|
515
515
|
* See the LICENSE file in the root directory of this source tree.
|
|
516
|
-
*/const Wh=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Hh=
|
|
516
|
+
*/const Wh=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Hh=te("search-x",Wh);/**
|
|
517
517
|
* @license lucide-react v1.38.0 - ISC
|
|
518
518
|
*
|
|
519
519
|
* This source code is licensed under the ISC license.
|
|
520
520
|
* See the LICENSE file in the root directory of this source tree.
|
|
521
|
-
*/const Vh=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],qh=
|
|
521
|
+
*/const Vh=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],qh=te("send",Vh);/**
|
|
522
522
|
* @license lucide-react v1.38.0 - ISC
|
|
523
523
|
*
|
|
524
524
|
* This source code is licensed under the ISC license.
|
|
525
525
|
* See the LICENSE file in the root directory of this source tree.
|
|
526
|
-
*/const Uh=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Gh=
|
|
526
|
+
*/const Uh=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Gh=te("settings",Uh);/**
|
|
527
527
|
* @license lucide-react v1.38.0 - ISC
|
|
528
528
|
*
|
|
529
529
|
* This source code is licensed under the ISC license.
|
|
530
530
|
* See the LICENSE file in the root directory of this source tree.
|
|
531
|
-
*/const Kh=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Yh=
|
|
531
|
+
*/const Kh=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Yh=te("share-2",Kh);/**
|
|
532
532
|
* @license lucide-react v1.38.0 - ISC
|
|
533
533
|
*
|
|
534
534
|
* This source code is licensed under the ISC license.
|
|
535
535
|
* See the LICENSE file in the root directory of this source tree.
|
|
536
|
-
*/const Zh=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Xh=
|
|
536
|
+
*/const Zh=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Xh=te("shield-check",Zh);/**
|
|
537
537
|
* @license lucide-react v1.38.0 - ISC
|
|
538
538
|
*
|
|
539
539
|
* This source code is licensed under the ISC license.
|
|
540
540
|
* See the LICENSE file in the root directory of this source tree.
|
|
541
|
-
*/const Jh=[["path",{d:"m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18",key:"uebgi3"}],["path",{d:"M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25",key:"1j7c9p"}],["circle",{cx:"18",cy:"20",r:"2",key:"t9985n"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],Qh=
|
|
541
|
+
*/const Jh=[["path",{d:"m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18",key:"uebgi3"}],["path",{d:"M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25",key:"1j7c9p"}],["circle",{cx:"18",cy:"20",r:"2",key:"t9985n"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],Qh=te("shopping-cart",Jh);/**
|
|
542
542
|
* @license lucide-react v1.38.0 - ISC
|
|
543
543
|
*
|
|
544
544
|
* This source code is licensed under the ISC license.
|
|
545
545
|
* See the LICENSE file in the root directory of this source tree.
|
|
546
|
-
*/const e0=[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]],t0=
|
|
546
|
+
*/const e0=[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]],t0=te("shuffle",e0);/**
|
|
547
547
|
* @license lucide-react v1.38.0 - ISC
|
|
548
548
|
*
|
|
549
549
|
* This source code is licensed under the ISC license.
|
|
550
550
|
* See the LICENSE file in the root directory of this source tree.
|
|
551
|
-
*/const n0=[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]],a0=
|
|
551
|
+
*/const n0=[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]],a0=te("skip-back",n0);/**
|
|
552
552
|
* @license lucide-react v1.38.0 - ISC
|
|
553
553
|
*
|
|
554
554
|
* This source code is licensed under the ISC license.
|
|
555
555
|
* See the LICENSE file in the root directory of this source tree.
|
|
556
|
-
*/const r0=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],o0=
|
|
556
|
+
*/const r0=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],o0=te("skip-forward",r0);/**
|
|
557
557
|
* @license lucide-react v1.38.0 - ISC
|
|
558
558
|
*
|
|
559
559
|
* This source code is licensed under the ISC license.
|
|
560
560
|
* See the LICENSE file in the root directory of this source tree.
|
|
561
|
-
*/const s0=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],l0=
|
|
561
|
+
*/const s0=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],l0=te("square",s0);/**
|
|
562
562
|
* @license lucide-react v1.38.0 - ISC
|
|
563
563
|
*
|
|
564
564
|
* This source code is licensed under the ISC license.
|
|
565
565
|
* See the LICENSE file in the root directory of this source tree.
|
|
566
|
-
*/const i0=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],u0=
|
|
566
|
+
*/const i0=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],u0=te("star",i0);/**
|
|
567
567
|
* @license lucide-react v1.38.0 - ISC
|
|
568
568
|
*
|
|
569
569
|
* This source code is licensed under the ISC license.
|
|
570
570
|
* See the LICENSE file in the root directory of this source tree.
|
|
571
|
-
*/const c0=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],d0=
|
|
571
|
+
*/const c0=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],d0=te("store",c0);/**
|
|
572
572
|
* @license lucide-react v1.38.0 - ISC
|
|
573
573
|
*
|
|
574
574
|
* This source code is licensed under the ISC license.
|
|
575
575
|
* See the LICENSE file in the root directory of this source tree.
|
|
576
|
-
*/const p0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 3v1",key:"1asbbs"}],["path",{d:"M12 20v1",key:"1wcdkc"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M20 12h1",key:"1vloll"}],["path",{d:"m18.364 5.636-.707.707",key:"1hakh0"}],["path",{d:"m6.343 17.657-.707.707",key:"18m9nf"}],["path",{d:"m5.636 5.636.707.707",key:"1xv1c5"}],["path",{d:"m17.657 17.657.707.707",key:"vl76zb"}]],m0=
|
|
576
|
+
*/const p0=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 3v1",key:"1asbbs"}],["path",{d:"M12 20v1",key:"1wcdkc"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M20 12h1",key:"1vloll"}],["path",{d:"m18.364 5.636-.707.707",key:"1hakh0"}],["path",{d:"m6.343 17.657-.707.707",key:"18m9nf"}],["path",{d:"m5.636 5.636.707.707",key:"1xv1c5"}],["path",{d:"m17.657 17.657.707.707",key:"vl76zb"}]],m0=te("sun-medium",p0);/**
|
|
577
577
|
* @license lucide-react v1.38.0 - ISC
|
|
578
578
|
*
|
|
579
579
|
* This source code is licensed under the ISC license.
|
|
580
580
|
* See the LICENSE file in the root directory of this source tree.
|
|
581
|
-
*/const h0=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],C0=
|
|
581
|
+
*/const h0=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],C0=te("table",h0);/**
|
|
582
582
|
* @license lucide-react v1.38.0 - ISC
|
|
583
583
|
*
|
|
584
584
|
* This source code is licensed under the ISC license.
|
|
585
585
|
* See the LICENSE file in the root directory of this source tree.
|
|
586
|
-
*/const f0=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],
|
|
586
|
+
*/const f0=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],b0=te("table-2",f0);/**
|
|
587
587
|
* @license lucide-react v1.38.0 - ISC
|
|
588
588
|
*
|
|
589
589
|
* This source code is licensed under the ISC license.
|
|
590
590
|
* See the LICENSE file in the root directory of this source tree.
|
|
591
|
-
*/const
|
|
591
|
+
*/const g0=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],y0=te("tag",g0);/**
|
|
592
592
|
* @license lucide-react v1.38.0 - ISC
|
|
593
593
|
*
|
|
594
594
|
* This source code is licensed under the ISC license.
|
|
595
595
|
* See the LICENSE file in the root directory of this source tree.
|
|
596
|
-
*/const v0=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],x0=
|
|
596
|
+
*/const v0=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],x0=te("terminal",v0);/**
|
|
597
597
|
* @license lucide-react v1.38.0 - ISC
|
|
598
598
|
*
|
|
599
599
|
* This source code is licensed under the ISC license.
|
|
600
600
|
* See the LICENSE file in the root directory of this source tree.
|
|
601
|
-
*/const _0=[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]],w0=
|
|
601
|
+
*/const _0=[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]],w0=te("text-cursor-input",_0);/**
|
|
602
602
|
* @license lucide-react v1.38.0 - ISC
|
|
603
603
|
*
|
|
604
604
|
* This source code is licensed under the ISC license.
|
|
605
605
|
* See the LICENSE file in the root directory of this source tree.
|
|
606
|
-
*/const B0=[["path",{d:"M15 5h6",key:"1pr8yx"}],["path",{d:"M15 12h6",key:"upa0zy"}],["path",{d:"M3 19h18",key:"awlh7x"}],["path",{d:"m3 12 3.553-7.724a.5.5 0 0 1 .894 0L11 12",key:"6lvno8"}],["path",{d:"M3.92 10h6.16",key:"1tl8ex"}]],k0=
|
|
606
|
+
*/const B0=[["path",{d:"M15 5h6",key:"1pr8yx"}],["path",{d:"M15 12h6",key:"upa0zy"}],["path",{d:"M3 19h18",key:"awlh7x"}],["path",{d:"m3 12 3.553-7.724a.5.5 0 0 1 .894 0L11 12",key:"6lvno8"}],["path",{d:"M3.92 10h6.16",key:"1tl8ex"}]],k0=te("text-initial",B0);/**
|
|
607
607
|
* @license lucide-react v1.38.0 - ISC
|
|
608
608
|
*
|
|
609
609
|
* This source code is licensed under the ISC license.
|
|
610
610
|
* See the LICENSE file in the root directory of this source tree.
|
|
611
|
-
*/const A0=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],N0=
|
|
611
|
+
*/const A0=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],N0=te("ticket",A0);/**
|
|
612
612
|
* @license lucide-react v1.38.0 - ISC
|
|
613
613
|
*
|
|
614
614
|
* This source code is licensed under the ISC license.
|
|
615
615
|
* See the LICENSE file in the root directory of this source tree.
|
|
616
|
-
*/const E0=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],D0=
|
|
616
|
+
*/const E0=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],D0=te("trash-2",E0);/**
|
|
617
617
|
* @license lucide-react v1.38.0 - ISC
|
|
618
618
|
*
|
|
619
619
|
* This source code is licensed under the ISC license.
|
|
620
620
|
* See the LICENSE file in the root directory of this source tree.
|
|
621
|
-
*/const S0=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],j0=
|
|
621
|
+
*/const S0=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],j0=te("trash",S0);/**
|
|
622
622
|
* @license lucide-react v1.38.0 - ISC
|
|
623
623
|
*
|
|
624
624
|
* This source code is licensed under the ISC license.
|
|
625
625
|
* See the LICENSE file in the root directory of this source tree.
|
|
626
|
-
*/const T0=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],M0=
|
|
626
|
+
*/const T0=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],M0=te("trending-up",T0);/**
|
|
627
627
|
* @license lucide-react v1.38.0 - ISC
|
|
628
628
|
*
|
|
629
629
|
* This source code is licensed under the ISC license.
|
|
630
630
|
* See the LICENSE file in the root directory of this source tree.
|
|
631
|
-
*/const L0=[["path",{d:"M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2",key:"pwuv1l"}],["path",{d:"M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2",key:"1y54w1"}],["path",{d:"M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3",key:"e30mpu"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3",key:"i0yafy"}]],$0=
|
|
631
|
+
*/const L0=[["path",{d:"M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2",key:"pwuv1l"}],["path",{d:"M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2",key:"1y54w1"}],["path",{d:"M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3",key:"e30mpu"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3",key:"i0yafy"}]],$0=te("trophy",L0);/**
|
|
632
632
|
* @license lucide-react v1.38.0 - ISC
|
|
633
633
|
*
|
|
634
634
|
* This source code is licensed under the ISC license.
|
|
635
635
|
* See the LICENSE file in the root directory of this source tree.
|
|
636
|
-
*/const R0=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],P0=
|
|
636
|
+
*/const R0=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],P0=te("unlink",R0);/**
|
|
637
637
|
* @license lucide-react v1.38.0 - ISC
|
|
638
638
|
*
|
|
639
639
|
* This source code is licensed under the ISC license.
|
|
640
640
|
* See the LICENSE file in the root directory of this source tree.
|
|
641
|
-
*/const I0=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],F0=
|
|
641
|
+
*/const I0=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],F0=te("upload",I0);/**
|
|
642
642
|
* @license lucide-react v1.38.0 - ISC
|
|
643
643
|
*
|
|
644
644
|
* This source code is licensed under the ISC license.
|
|
645
645
|
* See the LICENSE file in the root directory of this source tree.
|
|
646
|
-
*/const O0=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Ir=
|
|
646
|
+
*/const O0=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Ir=te("user",O0);/**
|
|
647
647
|
* @license lucide-react v1.38.0 - ISC
|
|
648
648
|
*
|
|
649
649
|
* This source code is licensed under the ISC license.
|
|
650
650
|
* See the LICENSE file in the root directory of this source tree.
|
|
651
|
-
*/const z0=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],W0=
|
|
651
|
+
*/const z0=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],W0=te("user-plus",z0);/**
|
|
652
652
|
* @license lucide-react v1.38.0 - ISC
|
|
653
653
|
*
|
|
654
654
|
* This source code is licensed under the ISC license.
|
|
655
655
|
* See the LICENSE file in the root directory of this source tree.
|
|
656
|
-
*/const H0=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],V0=
|
|
656
|
+
*/const H0=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],V0=te("user-round",H0);/**
|
|
657
657
|
* @license lucide-react v1.38.0 - ISC
|
|
658
658
|
*
|
|
659
659
|
* This source code is licensed under the ISC license.
|
|
660
660
|
* See the LICENSE file in the root directory of this source tree.
|
|
661
|
-
*/const q0=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],U0=
|
|
661
|
+
*/const q0=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],U0=te("user-round-check",q0);/**
|
|
662
662
|
* @license lucide-react v1.38.0 - ISC
|
|
663
663
|
*
|
|
664
664
|
* This source code is licensed under the ISC license.
|
|
665
665
|
* See the LICENSE file in the root directory of this source tree.
|
|
666
|
-
*/const G0=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],K0=
|
|
666
|
+
*/const G0=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],K0=te("users",G0);/**
|
|
667
667
|
* @license lucide-react v1.38.0 - ISC
|
|
668
668
|
*
|
|
669
669
|
* This source code is licensed under the ISC license.
|
|
670
670
|
* See the LICENSE file in the root directory of this source tree.
|
|
671
|
-
*/const Y0=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],Z0=
|
|
671
|
+
*/const Y0=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],Z0=te("users-round",Y0);/**
|
|
672
672
|
* @license lucide-react v1.38.0 - ISC
|
|
673
673
|
*
|
|
674
674
|
* This source code is licensed under the ISC license.
|
|
675
675
|
* See the LICENSE file in the root directory of this source tree.
|
|
676
|
-
*/const X0=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Gs=
|
|
676
|
+
*/const X0=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Gs=te("volume-2",X0);/**
|
|
677
677
|
* @license lucide-react v1.38.0 - ISC
|
|
678
678
|
*
|
|
679
679
|
* This source code is licensed under the ISC license.
|
|
680
680
|
* See the LICENSE file in the root directory of this source tree.
|
|
681
|
-
*/const J0=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Q0=
|
|
681
|
+
*/const J0=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Q0=te("wrench",J0);/**
|
|
682
682
|
* @license lucide-react v1.38.0 - ISC
|
|
683
683
|
*
|
|
684
684
|
* This source code is licensed under the ISC license.
|
|
685
685
|
* See the LICENSE file in the root directory of this source tree.
|
|
686
|
-
*/const e1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ks=
|
|
686
|
+
*/const e1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ks=te("x",e1);/**
|
|
687
687
|
* @license lucide-react v1.38.0 - ISC
|
|
688
688
|
*
|
|
689
689
|
* This source code is licensed under the ISC license.
|
|
690
690
|
* See the LICENSE file in the root directory of this source tree.
|
|
691
|
-
*/const t1=[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],n1=
|
|
691
|
+
*/const t1=[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],n1=te("anchor",t1);/**
|
|
692
692
|
* @license lucide-react v1.38.0 - ISC
|
|
693
693
|
*
|
|
694
694
|
* This source code is licensed under the ISC license.
|
|
695
695
|
* See the LICENSE file in the root directory of this source tree.
|
|
696
|
-
*/const a1=[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"1qyhux"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],r1=
|
|
696
|
+
*/const a1=[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"1qyhux"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],r1=te("armchair",a1);/**
|
|
697
697
|
* @license lucide-react v1.38.0 - ISC
|
|
698
698
|
*
|
|
699
699
|
* This source code is licensed under the ISC license.
|
|
700
700
|
* See the LICENSE file in the root directory of this source tree.
|
|
701
|
-
*/const o1=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]],Ys=
|
|
701
|
+
*/const o1=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]],Ys=te("calendar",o1);/**
|
|
702
702
|
* @license lucide-react v1.38.0 - ISC
|
|
703
703
|
*
|
|
704
704
|
* This source code is licensed under the ISC license.
|
|
705
705
|
* See the LICENSE file in the root directory of this source tree.
|
|
706
|
-
*/const s1=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],l1=
|
|
706
|
+
*/const s1=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],l1=te("car",s1);/**
|
|
707
707
|
* @license lucide-react v1.38.0 - ISC
|
|
708
708
|
*
|
|
709
709
|
* This source code is licensed under the ISC license.
|
|
710
710
|
* See the LICENSE file in the root directory of this source tree.
|
|
711
|
-
*/const i1=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],u1=
|
|
711
|
+
*/const i1=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],u1=te("coffee",i1);/**
|
|
712
712
|
* @license lucide-react v1.38.0 - ISC
|
|
713
713
|
*
|
|
714
714
|
* This source code is licensed under the ISC license.
|
|
715
715
|
* See the LICENSE file in the root directory of this source tree.
|
|
716
|
-
*/const c1=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],d1=
|
|
716
|
+
*/const c1=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],d1=te("gamepad-2",c1);/**
|
|
717
717
|
* @license lucide-react v1.38.0 - ISC
|
|
718
718
|
*
|
|
719
719
|
* This source code is licensed under the ISC license.
|
|
720
720
|
* See the LICENSE file in the root directory of this source tree.
|
|
721
|
-
*/const p1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],m1=
|
|
721
|
+
*/const p1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],m1=te("clock",p1);/**
|
|
722
722
|
* @license lucide-react v1.38.0 - ISC
|
|
723
723
|
*
|
|
724
724
|
* This source code is licensed under the ISC license.
|
|
725
725
|
* See the LICENSE file in the root directory of this source tree.
|
|
726
|
-
*/const h1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],C1=
|
|
726
|
+
*/const h1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],C1=te("target",h1);/**
|
|
727
727
|
* @license lucide-react v1.38.0 - ISC
|
|
728
728
|
*
|
|
729
729
|
* This source code is licensed under the ISC license.
|
|
730
730
|
* See the LICENSE file in the root directory of this source tree.
|
|
731
|
-
*/const f1=[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]],
|
|
731
|
+
*/const f1=[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]],b1=te("percent",f1);/**
|
|
732
732
|
* @license lucide-react v1.38.0 - ISC
|
|
733
733
|
*
|
|
734
734
|
* This source code is licensed under the ISC license.
|
|
735
735
|
* See the LICENSE file in the root directory of this source tree.
|
|
736
|
-
*/const
|
|
736
|
+
*/const g1=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],y1=te("inbox",g1);/**
|
|
737
737
|
* @license lucide-react v1.38.0 - ISC
|
|
738
738
|
*
|
|
739
739
|
* This source code is licensed under the ISC license.
|
|
740
740
|
* See the LICENSE file in the root directory of this source tree.
|
|
741
|
-
*/const v1=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M8 11h.01",key:"1dfujw"}]],x1=
|
|
741
|
+
*/const v1=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M8 11h.01",key:"1dfujw"}]],x1=te("message-square-more",v1);/**
|
|
742
742
|
* @license lucide-react v1.38.0 - ISC
|
|
743
743
|
*
|
|
744
744
|
* This source code is licensed under the ISC license.
|
|
745
745
|
* See the LICENSE file in the root directory of this source tree.
|
|
746
|
-
*/const _1=[["path",{d:"M5 12h14",key:"1ays0h"}]],w1=
|
|
746
|
+
*/const _1=[["path",{d:"M5 12h14",key:"1ays0h"}]],w1=te("minus",_1);/**
|
|
747
747
|
* @license lucide-react v1.38.0 - ISC
|
|
748
748
|
*
|
|
749
749
|
* This source code is licensed under the ISC license.
|
|
750
750
|
* See the LICENSE file in the root directory of this source tree.
|
|
751
|
-
*/const B1=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],k1=
|
|
751
|
+
*/const B1=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],k1=te("sparkles",B1);/**
|
|
752
752
|
* @license lucide-react v1.38.0 - ISC
|
|
753
753
|
*
|
|
754
754
|
* This source code is licensed under the ISC license.
|
|
755
755
|
* See the LICENSE file in the root directory of this source tree.
|
|
756
|
-
*/const A1=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],N1=
|
|
756
|
+
*/const A1=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],N1=te("type",A1);/**
|
|
757
757
|
* @license lucide-react v1.38.0 - ISC
|
|
758
758
|
*
|
|
759
759
|
* This source code is licensed under the ISC license.
|
|
760
760
|
* See the LICENSE file in the root directory of this source tree.
|
|
761
|
-
*/const E1=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}]],D1=
|
|
761
|
+
*/const E1=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}]],D1=te("volume",E1);/**
|
|
762
762
|
* @license lucide-react v1.38.0 - ISC
|
|
763
763
|
*
|
|
764
764
|
* This source code is licensed under the ISC license.
|
|
765
765
|
* See the LICENSE file in the root directory of this source tree.
|
|
766
|
-
*/const S1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zs=
|
|
766
|
+
*/const S1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zs=te("chevron-down",S1);/**
|
|
767
767
|
* @license lucide-react v1.38.0 - ISC
|
|
768
768
|
*
|
|
769
769
|
* This source code is licensed under the ISC license.
|
|
770
770
|
* See the LICENSE file in the root directory of this source tree.
|
|
771
|
-
*/const j1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Xs=
|
|
771
|
+
*/const j1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Xs=te("chevron-up",j1);/**
|
|
772
772
|
* @license lucide-react v1.38.0 - ISC
|
|
773
773
|
*
|
|
774
774
|
* This source code is licensed under the ISC license.
|
|
775
775
|
* See the LICENSE file in the root directory of this source tree.
|
|
776
|
-
*/const T1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],M1=
|
|
776
|
+
*/const T1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],M1=te("circle",T1);/**
|
|
777
777
|
* @license lucide-react v1.38.0 - ISC
|
|
778
778
|
*
|
|
779
779
|
* This source code is licensed under the ISC license.
|
|
780
780
|
* See the LICENSE file in the root directory of this source tree.
|
|
781
|
-
*/const L1=[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]],$1=
|
|
781
|
+
*/const L1=[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]],$1=te("triangle",L1);/**
|
|
782
782
|
* @license lucide-react v1.38.0 - ISC
|
|
783
783
|
*
|
|
784
784
|
* This source code is licensed under the ISC license.
|
|
785
785
|
* See the LICENSE file in the root directory of this source tree.
|
|
786
|
-
*/const R1=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],P1=
|
|
786
|
+
*/const R1=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],P1=te("menu",R1);/**
|
|
787
787
|
* @license lucide-react v1.38.0 - ISC
|
|
788
788
|
*
|
|
789
789
|
* This source code is licensed under the ISC license.
|
|
790
790
|
* See the LICENSE file in the root directory of this source tree.
|
|
791
|
-
*/const I1=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],F1=
|
|
791
|
+
*/const I1=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],F1=te("moon",I1);/**
|
|
792
792
|
* @license lucide-react v1.38.0 - ISC
|
|
793
793
|
*
|
|
794
794
|
* This source code is licensed under the ISC license.
|
|
795
795
|
* See the LICENSE file in the root directory of this source tree.
|
|
796
|
-
*/const O1=[["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"}]],z1=
|
|
797
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z1(e,t){return G1(e)||K1(e,t)||X1(e,t)||Y1()}function X1(e,t){if(e){if(typeof e=="string")return el(e,t);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)?el(e,t):void 0}}const tl=Object.entries,nl=Object.setPrototypeOf,J1=Object.isFrozen,Q1=Object.getPrototypeOf,eC=Object.getOwnPropertyDescriptor;let Ft=Object.freeze,zt=Object.seal,ra=Object.create,al=typeof Reflect<"u"&&Reflect,Or=al.apply,zr=al.construct;Ft||(Ft=function(t){return t}),zt||(zt=function(t){return t}),Or||(Or=function(t,a){for(var r=arguments.length,s=new Array(r>2?r-2:0),l=2;l<r;l++)s[l-2]=arguments[l];return t.apply(a,s)}),zr||(zr=function(t){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 t(...r)});const Vn=Rt(Array.prototype.forEach),tC=Rt(Array.prototype.lastIndexOf),rl=Rt(Array.prototype.pop),_a=Rt(Array.prototype.push),nC=Rt(Array.prototype.splice),oa=Array.isArray,wa=Rt(String.prototype.toLowerCase),Wr=Rt(String.prototype.toString),ol=Rt(String.prototype.match),Ba=Rt(String.prototype.replace),sl=Rt(String.prototype.indexOf),aC=Rt(String.prototype.trim),rC=Rt(Number.prototype.toString),oC=Rt(Boolean.prototype.toString),ll=typeof BigInt>"u"?null:Rt(BigInt.prototype.toString),il=typeof Symbol>"u"?null:Rt(Symbol.prototype.toString),on=Rt(Object.prototype.hasOwnProperty),ka=Rt(Object.prototype.toString),Ut=Rt(RegExp.prototype.test),qn=sC(TypeError);function Rt(e){return function(t){t instanceof RegExp&&(t.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 Or(e,t,r)}}function sC(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return zr(e,a)}}function pt(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:wa;if(nl&&nl(e,null),!oa(t))return e;let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const l=a(s);l!==s&&(J1(t)||(t[r]=l),s=l)}e[s]=!0}return e}function lC(e){for(let t=0;t<e.length;t++)on(e,t)||(e[t]=null);return e}function dn(e){const t=ra(null);for(const r of tl(e)){var a=Z1(r,2);const s=a[0],l=a[1];on(e,s)&&(oa(l)?t[s]=lC(l):l&&typeof l=="object"&&l.constructor===Object?t[s]=dn(l):t[s]=l)}return t}function iC(e){switch(typeof e){case"string":return e;case"number":return rC(e);case"boolean":return oC(e);case"bigint":return ll?ll(e):"0";case"symbol":return il?il(e):"Symbol()";case"undefined":return ka(e);case"function":case"object":{if(e===null)return ka(e);const t=e,a=yn(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:ka(r)}return ka(e)}default:return ka(e)}}function yn(e,t){for(;e!==null;){const r=eC(e,t);if(r){if(r.get)return Rt(r.get);if(typeof r.value=="function")return Rt(r.value)}e=Q1(e)}function a(){return null}return a}function uC(e){try{return Ut(e,""),!0}catch{return!1}}const ul=Ft(["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"]),Hr=Ft(["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"]),Vr=Ft(["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"]),cC=Ft(["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"]),qr=Ft(["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"]),dC=Ft(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),cl=Ft(["#text"]),dl=Ft(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ur=Ft(["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"]),pl=Ft(["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"]),Qa=Ft(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pC=zt(/{{[\w\W]*|^[\w\W]*}}/g),mC=zt(/<%[\w\W]*|^[\w\W]*%>/g),hC=zt(/\${[\w\W]*/g),CC=zt(/^data-[\-\w.\u00B7-\uFFFF]+$/),fC=zt(/^aria-[\-\w]+$/),ml=zt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gC=zt(/^(?:\w+script|data):/i),bC=zt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),yC=zt(/^html$/i),vC=zt(/^[a-z][.\w]*(-[.\w]+)+$/i),hl=zt(/<[/\w!]/g),Cl=zt(/<[/\w]/g),xC=zt(/<\/no(script|embed|frames)/i),_C=zt(/\/>/i),pn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},fl=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],wC=Ft(pt({},fl)),BC=(function(){const e={};return Vn(fl,t=>{e[t]=zt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Ft(e)})(),kC=function(){return typeof window>"u"?null:window},AC=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";a&&a.hasAttribute(s)&&(r=a.getAttribute(s));const l="dompurify"+(r?"#"+r:"");try{return t.createPolicy(l,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}},gl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},In=function(t,a,r,s){return on(t,a)&&oa(t[a])?pt(s.base?dn(s.base):{},t[a],s.transform):r},Gr=function(t,a,r){const s=on(t,a)?t[a]:void 0;return s&&typeof s=="object"?dn(s):r()};function bl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kC();const t=be=>bl(be);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==pn.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,s=r.currentScript;e.DocumentFragment;const l=e.HTMLTemplateElement,i=e.Node,u=e.Element,c=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,p=e.trustedTypes,h=u.prototype,b=yn(h,"cloneNode"),v=yn(h,"remove"),C=yn(h,"nextSibling"),f=yn(h,"childNodes"),_=yn(h,"parentNode"),g=yn(h,"shadowRoot"),k=yn(h,"attributes"),x=i&&i.prototype?yn(i.prototype,"nodeType"):null,A=i&&i.prototype?yn(i.prototype,"nodeName"):null,y=i&&i.prototype?yn(i.prototype,"ownerDocument"):null,w=function(j){return x?x(j):j.nodeType},B=function(j){return A?A(j):j.nodeName};if(typeof l=="function"){const be=a.createElement("template");be.content&&be.content.ownerDocument&&(a=be.content.ownerDocument)}let E,D="",N,F=!1,$=0;const Y=function(){if($>0)throw qn('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.')},M=function(j){Y(),$++;try{return E.createHTML(j)}finally{$--}},P=function(j){Y(),$++;try{return E.createScriptURL(j)}finally{$--}},T=function(){return F||(N=AC(p,s),F=!0),N},K=a,V=K.implementation,O=K.createNodeIterator,Q=K.createDocumentFragment,I=K.getElementsByTagName,q=r.importNode;let z=gl();t.isSupported=typeof tl=="function"&&typeof _=="function"&&V&&V.createHTMLDocument!==void 0;const U=pC,S=mC,R=hC,L=CC,Z=fC,ue=gC,oe=bC,le=vC;let re=ml,W=null;const te=pt({},[...ul,...Hr,...Vr,...qr,...cl]);let H=null;const G=pt({},[...dl,...Ur,...pl,...Qa]);let pe=Object.seal(ra(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}})),Ne=null,ye=null;const me=Object.seal(ra(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let se=!0,ge=!0,Ce=!1,de=!0,Le=!1,ze=!0,Te=!1,Ge=!1,Ie=null,ct=null,at=!1,rt=!1,lt=!1,Ee=!1,Ye=!0,ke=!1;const He="user-content-";let Je=!0,dt=!1,kt={},At=null;const Pt=pt({},["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 et=null;const st=pt({},["audio","video","img","source","image","track"]);let Dt=null;const vt=pt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),we="http://www.w3.org/1998/Math/MathML",Re="http://www.w3.org/2000/svg",Se="http://www.w3.org/1999/xhtml";let Ve=Se,qe=!1,Bt=null;const mt=pt({},[we,Re,Se],Wr),ut=Ft(["mi","mo","mn","ms","mtext"]);let St=pt({},ut);const Ue=Ft(["annotation-xml"]);let ht=pt({},Ue);const jt=pt({},["title","style","font","a","script"]);let Me=null;const Ke=["application/xhtml+xml","text/html"],yt="text/html";let Qe=null,xt=null;const ae=a.createElement("form"),ve=function(j){return j instanceof RegExp||j instanceof Function},Oe=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(xt&&xt===j)return;(!j||typeof j!="object")&&(j={}),j=dn(j),Me=Ke.indexOf(j.PARSER_MEDIA_TYPE)===-1?yt:j.PARSER_MEDIA_TYPE,Qe=Me==="application/xhtml+xml"?Wr:wa,W=In(j,"ALLOWED_TAGS",te,{transform:Qe}),H=In(j,"ALLOWED_ATTR",G,{transform:Qe}),Bt=In(j,"ALLOWED_NAMESPACES",mt,{transform:Wr}),Dt=In(j,"ADD_URI_SAFE_ATTR",vt,{transform:Qe,base:vt}),et=In(j,"ADD_DATA_URI_TAGS",st,{transform:Qe,base:st}),At=In(j,"FORBID_CONTENTS",Pt,{transform:Qe}),Ne=In(j,"FORBID_TAGS",dn({}),{transform:Qe}),ye=In(j,"FORBID_ATTR",dn({}),{transform:Qe}),kt=on(j,"USE_PROFILES")?j.USE_PROFILES&&typeof j.USE_PROFILES=="object"?dn(j.USE_PROFILES):j.USE_PROFILES:!1,se=j.ALLOW_ARIA_ATTR!==!1,ge=j.ALLOW_DATA_ATTR!==!1,Ce=j.ALLOW_UNKNOWN_PROTOCOLS||!1,de=j.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=j.SAFE_FOR_TEMPLATES||!1,ze=j.SAFE_FOR_XML!==!1,Te=j.WHOLE_DOCUMENT||!1,rt=j.RETURN_DOM||!1,lt=j.RETURN_DOM_FRAGMENT||!1,Ee=j.RETURN_TRUSTED_TYPE||!1,at=j.FORCE_BODY||!1,Ye=j.SANITIZE_DOM!==!1,ke=j.SANITIZE_NAMED_PROPS||!1,Je=j.KEEP_CONTENT!==!1,dt=j.IN_PLACE||!1,re=uC(j.ALLOWED_URI_REGEXP)?j.ALLOWED_URI_REGEXP:ml,Ve=typeof j.NAMESPACE=="string"?j.NAMESPACE:Se,St=Gr(j,"MATHML_TEXT_INTEGRATION_POINTS",()=>pt({},ut)),ht=Gr(j,"HTML_INTEGRATION_POINTS",()=>pt({},Ue));const J=Gr(j,"CUSTOM_ELEMENT_HANDLING",()=>ra(null));if(pe=ra(null),on(J,"tagNameCheck")&&ve(J.tagNameCheck)&&(pe.tagNameCheck=J.tagNameCheck),on(J,"attributeNameCheck")&&ve(J.attributeNameCheck)&&(pe.attributeNameCheck=J.attributeNameCheck),on(J,"allowCustomizedBuiltInElements")&&typeof J.allowCustomizedBuiltInElements=="boolean"&&(pe.allowCustomizedBuiltInElements=J.allowCustomizedBuiltInElements),zt(pe),Le&&(ge=!1),lt&&(rt=!0),kt&&(W=pt({},cl),H=ra(null),kt.html===!0&&(pt(W,ul),pt(H,dl)),kt.svg===!0&&(pt(W,Hr),pt(H,Ur),pt(H,Qa)),kt.svgFilters===!0&&(pt(W,Vr),pt(H,Ur),pt(H,Qa)),kt.mathMl===!0&&(pt(W,qr),pt(H,pl),pt(H,Qa))),me.tagCheck=null,me.attributeCheck=null,on(j,"ADD_TAGS")&&(typeof j.ADD_TAGS=="function"?me.tagCheck=j.ADD_TAGS:oa(j.ADD_TAGS)&&(W===te&&(W=dn(W)),pt(W,j.ADD_TAGS,Qe))),on(j,"ADD_ATTR")&&(typeof j.ADD_ATTR=="function"?me.attributeCheck=j.ADD_ATTR:oa(j.ADD_ATTR)&&(H===G&&(H=dn(H)),pt(H,j.ADD_ATTR,Qe))),on(j,"ADD_FORBID_CONTENTS")&&oa(j.ADD_FORBID_CONTENTS)&&(At===Pt&&(At=dn(At)),pt(At,j.ADD_FORBID_CONTENTS,Qe)),Je&&(W["#text"]=!0),Te&&pt(W,["html","head","body"]),W.table&&(pt(W,["tbody"]),delete Ne.tbody),j.TRUSTED_TYPES_POLICY){if(typeof j.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof j.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const he=E;E=j.TRUSTED_TYPES_POLICY;try{D=M("")}catch(De){throw E=he,De}}else j.TRUSTED_TYPES_POLICY===null?(E=void 0,D=""):(E===void 0&&(E=T()),E&&typeof D=="string"&&(D=M("")));Ft&&Ft(j),xt=j},tt=pt({},[...Hr,...Vr,...cC]),gt=pt({},[...qr,...dC]),it=function(j,J,he){return J.namespaceURI===Se?j==="svg":J.namespaceURI===we?j==="svg"&&(he==="annotation-xml"||St[he]):!!tt[j]},It=function(j,J,he){return J.namespaceURI===Se?j==="math":J.namespaceURI===Re?j==="math"&&ht[he]:!!gt[j]},Gt=function(j,J,he){return J.namespaceURI===Re&&!ht[he]||J.namespaceURI===we&&!St[he]?!1:!gt[j]&&(jt[j]||!tt[j])},An=function(j){let J=_(j);(!J||!J.tagName)&&(J={namespaceURI:Ve,tagName:"template"});const he=wa(j.tagName),De=wa(J.tagName);return Bt[j.namespaceURI]?j.namespaceURI===Re?it(he,J,De):j.namespaceURI===we?It(he,J,De):j.namespaceURI===Se?Gt(he,J,De):!!(Me==="application/xhtml+xml"&&Bt[j.namespaceURI]):!1},Wt=function(j){_a(t.removed,{element:j});try{_(j).removeChild(j)}catch{if(v(j),!_(j))throw qn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Kt=function(j,J,he){try{j.removeAttributeNode(J)}catch{try{j.removeAttribute(he)}catch{}}},Nt=function(j){_t(j);const J=f(j);if(J){const De=[];Vn(J,Pe=>{_a(De,Pe)}),Vn(De,Pe=>{try{v(Pe)}catch{}})}const he=k(j);if(he)for(let De=he.length-1;De>=0;--De){const Pe=he[De],Xe=Pe&&Pe.name;typeof Xe=="string"&&Kt(j,Pe,Xe)}},Ct=function(j,J,he){if(!he)try{he=J.getAttributeNode(j)}catch{he=null}_a(t.removed,{attribute:he||null,from:J});try{he?J.removeAttributeNode(he):J.removeAttribute(j)}catch{try{J.removeAttribute(j)}catch{}}if(j==="is")if(rt||lt)try{Wt(J)}catch{}else try{J.setAttribute(j,"")}catch{}},ft=function(j){const J=k(j);if(J)for(let he=J.length-1;he>=0;--he){const De=J[he],Pe=De&&De.name;typeof Pe!="string"||H[Qe(Pe)]||Kt(j,De,Pe)}},_t=function(j){const J=[j];for(;J.length>0;){const he=J.pop();w(he)===pn.element&&ft(he);const Pe=f(he);if(Pe)for(let Xe=Pe.length-1;Xe>=0;--Xe)J.push(Pe[Xe])}},Yt=function(j,J){return ze?j==="patchsrc"?!0:j==="for"&&J!=="label"&&J!=="output":!1},gn=function(j){if(!ze)return;const J=[j];for(;J.length>0;){const he=J.pop(),De=w(he);if(De===pn.processingInstruction||De===pn.comment&&Ut(Cl,he.data)){try{v(he)}catch{}continue}if(De===pn.element){const Xe=he,wt=Qe(B(he));try{Xe.hasAttribute&&Xe.hasAttribute("patchsrc")&&Xe.removeAttribute("patchsrc"),Xe.hasAttribute&&Xe.hasAttribute("for")&&Yt("for",wt)&&Xe.removeAttribute("for")}catch{}}const Pe=f(he);if(Pe)for(let Xe=Pe.length-1;Xe>=0;--Xe)J.push(Pe[Xe])}},Nn=function(j){let J=null,he=null;if(at)j="<remove></remove>"+j;else{const Xe=ol(j,/^[\r\n\t ]+/);he=Xe&&Xe[0]}Me==="application/xhtml+xml"&&Ve===Se&&(j='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+j+"</body></html>");const De=E?M(j):j;if(Ve===Se)try{J=new m().parseFromString(De,Me)}catch{}if(!J||!J.documentElement){J=V.createDocument(Ve,"template",null);try{J.documentElement.innerHTML=qe?D:De}catch{}}const Pe=J.body||J.documentElement;return j&&he&&Pe.insertBefore(a.createTextNode(he),Pe.childNodes[0]||null),Ve===Se?I.call(J,Te?"html":"body")[0]:Te?J.documentElement:Pe},tn=function(j){const J=y?y(j):j.ownerDocument;return O.call(J||j,j,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Zt=function(j){return j=Ba(j,U," "),j=Ba(j,S," "),j=Ba(j,R," "),j},Ht=function(j){var J;j.normalize();const he=y?y(j):j.ownerDocument,De=O.call(he||j,j,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Pe=De.nextNode();for(;Pe;)Pe.data=Zt(Pe.data),Pe=De.nextNode();const Xe=(J=j.querySelectorAll)===null||J===void 0?void 0:J.call(j,"template");Xe&&Vn(Xe,wt=>{Xt(wt.content)&&Ht(wt.content)})},bn=function(j){const J=A?A(j):null;return typeof J!="string"||Qe(J)!=="form"?!1:typeof j.nodeName!="string"||typeof j.textContent!="string"||typeof j.removeChild!="function"||j.attributes!==k(j)||typeof j.removeAttribute!="function"||typeof j.setAttribute!="function"||typeof j.namespaceURI!="string"||typeof j.insertBefore!="function"||typeof j.hasChildNodes!="function"||j.nodeType!==x(j)||j.childNodes!==f(j)},Xt=function(j){if(!x||typeof j!="object"||j===null)return!1;try{return x(j)===pn.documentFragment}catch{return!1}},un=function(j){if(!x||typeof j!="object"||j===null)return!1;try{return typeof x(j)=="number"}catch{return!1}};function Ot(be,j,J){be.length!==0&&Vn(be,he=>{he.call(t,j,J,xt)})}const nn=function(j,J){return!!(ze&&j.hasChildNodes()&&!un(j.firstElementChild)&&Ut(hl,j.textContent)&&Ut(hl,j.innerHTML)||ze&&j.namespaceURI===Se&&wC[J]&&(un(j.firstElementChild)||typeof j.textContent=="string"&&Ut(BC[J],j.textContent))||j.nodeType===pn.processingInstruction||ze&&j.nodeType===pn.comment&&Ut(Cl,j.data))},ie=function(j,J){if(j instanceof RegExp)return Ut(j,J);if(j instanceof Function){for(var he=arguments.length,De=new Array(he>2?he-2:0),Pe=2;Pe<he;Pe++)De[Pe-2]=arguments[Pe];return!!j(J,...De)}return!1},Ae=function(j,J,he){if(!Ne[J]&&ee(J)&&ie(pe.tagNameCheck,J))return!1;if(Je&&!At[J]){const De=_(j),Pe=f(j);if(Pe&&De){const Xe=Pe.length;for(let wt=Xe-1;wt>=0;--wt){const Tt=j===he?b(Pe[wt],!0):Pe[wt];De.insertBefore(Tt,C(j))}}}return Wt(j),!0},je=function(j,J,he,De){return j.length===0?J:J===he||J===De?dn(J):J},Ze=function(j,J){return j===J||_(j)!==null?!1:(dt&&_t(j),!0)},Fe=function(j,J){if(Ot(z.beforeSanitizeElements,j,null),Ze(j,J))return!0;if(bn(j))return Wt(j),!0;const he=Qe(B(j));if(W=je(z.uponSanitizeElement,W,te,Ie),Ot(z.uponSanitizeElement,j,{tagName:he,allowedTags:W}),Ze(j,J))return!0;if(nn(j,he))return Wt(j),!0;if(Ne[he]||!(me.tagCheck instanceof Function&&me.tagCheck(he))&&!W[he]){const Pe=Ae(j,he,J);return Pe===!1&&Ot(z.afterSanitizeElements,j,null),Pe}if(w(j)===pn.element&&!An(j)||(he==="noscript"||he==="noembed"||he==="noframes")&&Ut(xC,j.innerHTML))return Wt(j),!0;if(Le&&j.nodeType===pn.text){const Pe=Zt(j.textContent);j.textContent!==Pe&&(_a(t.removed,{element:j.cloneNode()}),j.textContent=Pe)}return Ot(z.afterSanitizeElements,j,null),!1},X=function(j,J,he){if(ye[J]||Yt(J,j)||Ye&&(J==="id"||J==="name")&&(he in a||he in ae))return!1;const De=H[J]||me.attributeCheck instanceof Function&&me.attributeCheck(J,j);return ge&&Ut(L,J)||se&&Ut(Z,J)?!0:De?Dt[J]||Ut(re,Ba(he,oe,""))||(J==="src"||J==="xlink:href"||J==="href")&&j!=="script"&&sl(he,"data:")===0&&et[j]||Ce&&!Ut(ue,Ba(he,oe,""))?!0:!he:ee(j)&&ie(pe.tagNameCheck,j)&&ie(pe.attributeNameCheck,J,j)||J==="is"&&pe.allowCustomizedBuiltInElements&&ie(pe.tagNameCheck,he)},ce=pt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ee=function(j){return!ce[wa(j)]&&Ut(le,j)},xe=function(j,J,he,De){if(E&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!he)switch(p.getAttributeType(j,J)){case"TrustedHTML":return M(De);case"TrustedScriptURL":return P(De)}return De},$e=function(j,J,he,De){try{he?j.setAttributeNS(he,J,De):j.setAttribute(J,De),bn(j)?Wt(j):rl(t.removed)}catch{Ct(J,j)}},We=function(j){Ot(z.beforeSanitizeAttributes,j,null);const J=j.attributes;if(!J||bn(j))return;H=je(z.uponSanitizeAttribute,H,G,ct);const he={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0};let De=J.length;const Pe=Qe(j.nodeName);for(;De--;){const Xe=J[De],wt=Xe.name,Tt=Xe.namespaceURI,an=Xe.value,rn=Qe(wt),Rr=an;let Jt=wt==="value"?Rr:aC(Rr);if(he.attrName=rn,he.attrValue=Jt,he.keepAttr=!0,he.forceKeepAttr=void 0,Ot(z.uponSanitizeAttribute,j,he),Jt=he.attrValue,ke&&(rn==="id"||rn==="name")&&sl(Jt,He)!==0&&(Ct(wt,j,Xe),Jt=He+Jt),ze&&Ut(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Jt)){Ct(wt,j,Xe);continue}if(rn==="attributename"&&ol(Jt,"href")){Ct(wt,j,Xe);continue}if(!he.forceKeepAttr){if(!he.keepAttr){Ct(wt,j,Xe);continue}if(!de&&Ut(_C,Jt)){Ct(wt,j,Xe);continue}if(Le&&(Jt=Zt(Jt)),!X(Pe,rn,Jt)){Ct(wt,j,Xe);continue}Jt=xe(Pe,rn,Tt,Jt),Jt!==Rr&&$e(j,wt,Tt,Jt)}}Ot(z.afterSanitizeAttributes,j,null)},ot=function(j){let J=null;const he=tn(j);for(Ot(z.beforeSanitizeShadowDOM,j,null);J=he.nextNode();)if(Ot(z.uponSanitizeShadowNode,J,null),Fe(J,j),We(J),Xt(J.content)&&ot(J.content),w(J)===pn.element){const De=g(J);Xt(De)&&(bt(De),ot(De))}Ot(z.afterSanitizeShadowDOM,j,null)},bt=function(j){const J=[{node:j,shadow:null}];for(;J.length>0;){const he=J.pop();if(he.shadow){ot(he.shadow);continue}const De=he.node,Xe=w(De)===pn.element,wt=f(De);if(wt)for(let Tt=wt.length-1;Tt>=0;--Tt)J.push({node:wt[Tt],shadow:null});if(Xe){const Tt=A?A(De):null;if(typeof Tt=="string"&&Qe(Tt)==="template"){const an=De.content;Xt(an)&&J.push({node:an,shadow:null})}}if(Xe){const Tt=g(De);Xt(Tt)&&J.push({node:null,shadow:Tt},{node:Tt,shadow:null})}}};return t.sanitize=function(be){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=null,he=null,De=null,Pe=null;if(qe=!be,qe&&(be="<!-->"),typeof be!="string"&&!un(be)&&(be=iC(be),typeof be!="string"))throw qn("dirty is not a string, aborting");if(!t.isSupported)return be;Ge?(W=Ie,H=ct):Oe(j),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&(W=dn(W)),z.uponSanitizeAttribute.length>0&&(H=dn(H)),t.removed=[];const Xe=dt&&typeof be!="string"&&un(be);if(Xe){gn(be);const an=B(be);if(typeof an=="string"){const rn=Qe(an);if(!W[rn]||Ne[rn])throw Nt(be),qn("root node is forbidden and cannot be sanitized in-place")}if(bn(be))throw Nt(be),qn("root node is clobbered and cannot be sanitized in-place");try{bt(be)}catch(rn){throw Nt(be),rn}}else if(un(be))J=Nn("<!---->"),he=J.ownerDocument.importNode(be,!0),he.nodeType===pn.element&&he.nodeName==="BODY"||he.nodeName==="HTML"?J=he:J.appendChild(he),bt(he);else{if(!rt&&!Le&&!Te&&be.indexOf("<")===-1)return E&&Ee?M(be):be;if(J=Nn(be),!J)return rt?null:Ee?D:""}J&&at&&Wt(J.firstChild);const wt=Xe?be:J;try{const an=tn(wt);for(;De=an.nextNode();)Fe(De,wt),We(De),Xt(De.content)&&ot(De.content)}catch(an){throw Xe&&(Nt(be),Vn(t.removed,rn=>{rn.element&&_t(rn.element)})),an}if(Xe)return Vn(t.removed,an=>{an.element&&_t(an.element)}),Le&&Ht(be),be;if(rt){if(Le&&Ht(J),lt)for(Pe=Q.call(J.ownerDocument);J.firstChild;)Pe.appendChild(J.firstChild);else Pe=J;return(H.shadowroot||H.shadowrootmode)&&(Pe=q.call(r,Pe,!0)),Pe}let Tt=Te?J.outerHTML:J.innerHTML;return Te&&W["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&Ut(yC,J.ownerDocument.doctype.name)&&(Tt="<!DOCTYPE "+J.ownerDocument.doctype.name+`>
|
|
798
|
-
`+
|
|
796
|
+
*/const O1=[["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"}]],z1=te("thumbs-up",O1),Fr={"alert-triangle":Ps,"align-start-vertical":Ad,anchor:n1,armchair:r1,"arrow-down":Ed,"arrow-left":Sd,"arrow-right":Td,"arrow-right-left":Ld,"audio-lines":Rd,ban:Id,bell:Od,"book-marked":Wd,"book-open":Vd,"bow-arrow":Ud,braces:Kd,bug:Zd,calendar:Ys,"calendar-check":Jd,"calendar-days":ep,camera:np,car:l1,"chart-column":rp,"chart-line":sp,"chart-pie":ip,check:Is,"chevron-down":Zs,"chevron-left":Fs,"chevron-right":Os,"chevron-up":Xs,circle:M1,"clipboard-list":mp,coffee:u1,combine:Cp,copy:bp,"chevrons-left-right-ellipsis":yp,"credit-card":xp,database:zs,diff:Bp,download:Ws,ear:Np,edit:Dp,"edit-2":jp,"edit-3":Mp,ellipsis:Hs,eraser:Rp,"external-link":Ip,eye:Op,"file-text":Wp,"flip-horizontal":Vp,"folder-open":Up,"folder-plus":Kp,gamepad:Zp,"gamepad-2":d1,clock:m1,lock:Fm,"search-x":Hh,"share-2":Yh,tag:y0,target:C1,percent:b1,gavel:Jp,"git-merge":Vs,globe:tm,"grip-vertical":am,headphones:om,heart:lm,home:um,inbox:y1,info:dm,"key-round":mm,landmark:Cm,layers:bm,"layout-dashboard":ym,leaf:xm,lightbulb:wm,link:km,"link-2":Nm,"link-2-off":Dm,list:jm,"list-checks":Mm,"list-ordered":$m,loader:Pm,"log-out":zm,mail:Hm,"map-pin":qm,menu:P1,"message-circle":Gm,"message-circle-question-mark":Ym,"message-square":Xm,"message-square-more":x1,"message-square-text":Qm,minus:w1,"minus-circle":th,moon:F1,"more-horizontal":Hs,package:ah,"party-popper":oh,pause:lh,pencil:uh,phone:dh,play:mh,"play-circle":Ch,plus:bh,printer:yh,"refresh-cw":xh,repeat:wh,replace:kh,rocket:Nh,"rotate-ccw":Dh,"rotate-cw":jh,salad:Mh,"scan-search":$h,search:Fh,"circle-alert":qs,"alert-circle":qs,"check-circle":Us,scissors:zh,send:qh,settings:Gh,"shield-check":Xh,"shopping-cart":Qh,shuffle:t0,"skip-back":a0,"skip-forward":o0,sparkles:k1,square:l0,star:u0,store:d0,"sun-medium":m0,table:C0,"table-2":b0,terminal:x0,"text-cursor-input":w0,"text-initial":k0,"thumbs-up":z1,ticket:N0,trash:j0,triangle:$1,"trash-2":D0,"trending-up":M0,"triangle-alert":Ps,trophy:$0,type:N1,unlink:P0,upload:F0,user:Ir,"user-plus":W0,"user-round":V0,"user-round-check":U0,users:K0,"users-round":Z0,volume:D1,"volume-2":Gs,wrench:Q0,x:Ks};Object.freeze(Object.keys(Fr));function W1(e){return Fr[e]??null}const Js=new Set;function H1(e){return Pn&&!(e in Fr)&&!Js.has(e)&&(Js.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 V1=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 q1(e){const t=e.toLowerCase();if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")||e.includes("/assets/")||/\.(png|jpe?g|gif|webp|avif|bmp|ico)$/i.test(t))return null;const a=(e.split("/").pop()||"").replace(/\.svg$/,"");return a?V1(a):null}const Qs=new Map;function U1(e){const t=typeof e=="string"?q1(e):null,a=t?W1(t)??Qs.get(t)??null:null,[r,s]=o.useState(null);return o.useEffect(()=>{if(!t||a)return;let l=!1;return H1(t).then(i=>{Qs.set(t,i),l||s(i)}),()=>{l=!0}},[t,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 el(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function G1(e){if(Array.isArray(e))return e}function K1(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,s,l,i,u=[],c=!0,d=!1;try{if(l=(a=a.call(e)).next,t!==0)for(;!(c=(r=l.call(a)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(m){d=!0,s=m}finally{try{if(!c&&a.return!=null&&(i=a.return(),Object(i)!==i))return}finally{if(d)throw s}}return u}}function Y1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
797
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z1(e,t){return G1(e)||K1(e,t)||X1(e,t)||Y1()}function X1(e,t){if(e){if(typeof e=="string")return el(e,t);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)?el(e,t):void 0}}const tl=Object.entries,nl=Object.setPrototypeOf,J1=Object.isFrozen,Q1=Object.getPrototypeOf,eC=Object.getOwnPropertyDescriptor;let zt=Object.freeze,Wt=Object.seal,ra=Object.create,al=typeof Reflect<"u"&&Reflect,Or=al.apply,zr=al.construct;zt||(zt=function(t){return t}),Wt||(Wt=function(t){return t}),Or||(Or=function(t,a){for(var r=arguments.length,s=new Array(r>2?r-2:0),l=2;l<r;l++)s[l-2]=arguments[l];return t.apply(a,s)}),zr||(zr=function(t){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 t(...r)});const Vn=It(Array.prototype.forEach),tC=It(Array.prototype.lastIndexOf),rl=It(Array.prototype.pop),_a=It(Array.prototype.push),nC=It(Array.prototype.splice),oa=Array.isArray,wa=It(String.prototype.toLowerCase),Wr=It(String.prototype.toString),ol=It(String.prototype.match),Ba=It(String.prototype.replace),sl=It(String.prototype.indexOf),aC=It(String.prototype.trim),rC=It(Number.prototype.toString),oC=It(Boolean.prototype.toString),ll=typeof BigInt>"u"?null:It(BigInt.prototype.toString),il=typeof Symbol>"u"?null:It(Symbol.prototype.toString),an=It(Object.prototype.hasOwnProperty),ka=It(Object.prototype.toString),Ut=It(RegExp.prototype.test),qn=sC(TypeError);function It(e){return function(t){t instanceof RegExp&&(t.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 Or(e,t,r)}}function sC(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return zr(e,a)}}function Ct(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:wa;if(nl&&nl(e,null),!oa(t))return e;let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const l=a(s);l!==s&&(J1(t)||(t[r]=l),s=l)}e[s]=!0}return e}function lC(e){for(let t=0;t<e.length;t++)an(e,t)||(e[t]=null);return e}function ln(e){const t=ra(null);for(const r of tl(e)){var a=Z1(r,2);const s=a[0],l=a[1];an(e,s)&&(oa(l)?t[s]=lC(l):l&&typeof l=="object"&&l.constructor===Object?t[s]=ln(l):t[s]=l)}return t}function iC(e){switch(typeof e){case"string":return e;case"number":return rC(e);case"boolean":return oC(e);case"bigint":return ll?ll(e):"0";case"symbol":return il?il(e):"Symbol()";case"undefined":return ka(e);case"function":case"object":{if(e===null)return ka(e);const t=e,a=gn(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:ka(r)}return ka(e)}default:return ka(e)}}function gn(e,t){for(;e!==null;){const r=eC(e,t);if(r){if(r.get)return It(r.get);if(typeof r.value=="function")return It(r.value)}e=Q1(e)}function a(){return null}return a}function uC(e){try{return Ut(e,""),!0}catch{return!1}}const ul=zt(["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"]),Hr=zt(["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"]),Vr=zt(["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"]),cC=zt(["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"]),qr=zt(["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"]),dC=zt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),cl=zt(["#text"]),dl=zt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ur=zt(["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"]),pl=zt(["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"]),Qa=zt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pC=Wt(/{{[\w\W]*|^[\w\W]*}}/g),mC=Wt(/<%[\w\W]*|^[\w\W]*%>/g),hC=Wt(/\${[\w\W]*/g),CC=Wt(/^data-[\-\w.\u00B7-\uFFFF]+$/),fC=Wt(/^aria-[\-\w]+$/),ml=Wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bC=Wt(/^(?:\w+script|data):/i),gC=Wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),yC=Wt(/^html$/i),vC=Wt(/^[a-z][.\w]*(-[.\w]+)+$/i),hl=Wt(/<[/\w!]/g),Cl=Wt(/<[/\w]/g),xC=Wt(/<\/no(script|embed|frames)/i),_C=Wt(/\/>/i),un={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},fl=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],wC=zt(Ct({},fl)),BC=(function(){const e={};return Vn(fl,t=>{e[t]=Wt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),zt(e)})(),kC=function(){return typeof window>"u"?null:window},AC=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";a&&a.hasAttribute(s)&&(r=a.getAttribute(s));const l="dompurify"+(r?"#"+r:"");try{return t.createPolicy(l,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}},bl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},In=function(t,a,r,s){return an(t,a)&&oa(t[a])?Ct(s.base?ln(s.base):{},t[a],s.transform):r},Gr=function(t,a,r){const s=an(t,a)?t[a]:void 0;return s&&typeof s=="object"?ln(s):r()};function gl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kC();const t=Ce=>gl(Ce);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==un.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,s=r.currentScript;e.DocumentFragment;const l=e.HTMLTemplateElement,i=e.Node,u=e.Element,c=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,p=e.trustedTypes,h=u.prototype,g=gn(h,"cloneNode"),v=gn(h,"remove"),C=gn(h,"nextSibling"),f=gn(h,"childNodes"),_=gn(h,"parentNode"),b=gn(h,"shadowRoot"),k=gn(h,"attributes"),x=i&&i.prototype?gn(i.prototype,"nodeType"):null,N=i&&i.prototype?gn(i.prototype,"nodeName"):null,y=i&&i.prototype?gn(i.prototype,"ownerDocument"):null,w=function(j){return x?x(j):j.nodeType},B=function(j){return N?N(j):j.nodeName};if(typeof l=="function"){const Ce=a.createElement("template");Ce.content&&Ce.content.ownerDocument&&(a=Ce.content.ownerDocument)}let E,D="",A,F=!1,$=0;const K=function(){if($>0)throw qn('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.')},L=function(j){K(),$++;try{return E.createHTML(j)}finally{$--}},P=function(j){K(),$++;try{return E.createScriptURL(j)}finally{$--}},M=function(){return F||(A=AC(p,s),F=!0),A},G=a,H=G.implementation,O=G.createNodeIterator,Q=G.createDocumentFragment,I=G.getElementsByTagName,q=r.importNode;let Z=bl();t.isSupported=typeof tl=="function"&&typeof _=="function"&&H&&H.createHTMLDocument!==void 0;const V=pC,S=mC,R=hC,T=CC,Y=fC,ce=bC,re=gC,oe=vC;let ae=ml,z=null;const ee=Ct({},[...ul,...Hr,...Vr,...qr,...cl]);let W=null;const U=Ct({},[...dl,...Ur,...pl,...Qa]);let de=Object.seal(ra(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}})),De=null,ye=null;const pe=Object.seal(ra(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ie=!0,ge=!0,he=!1,se=!0,Le=!1,Oe=!0,Me=!1,qe=!1,We=null,dt=null,at=!1,st=!1,it=!1,Ee=!1,Ue=!0,Ae=!1;const He="user-content-";let et=!0,pt=!1,Dt={},vt=null;const Pt=Ct({},["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 nt=null;const lt=Ct({},["audio","video","img","source","image","track"]);let At=null;const Bt=Ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ke="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",je="http://www.w3.org/1999/xhtml";let Ve=je,Ge=!1,kt=null;const ut=Ct({},[ke,$e,je],Wr),mt=zt(["mi","mo","mn","ms","mtext"]);let St=Ct({},mt);const Ke=zt(["annotation-xml"]);let gt=Ct({},Ke);const xt=Ct({},["title","style","font","a","script"]);let Re=null;const Ye=["application/xhtml+xml","text/html"],ft="text/html";let tt=null,Nt=null;const ne=a.createElement("form"),ve=function(j){return j instanceof RegExp||j instanceof Function},Pe=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Nt&&Nt===j)return;(!j||typeof j!="object")&&(j={}),j=ln(j),Re=Ye.indexOf(j.PARSER_MEDIA_TYPE)===-1?ft:j.PARSER_MEDIA_TYPE,tt=Re==="application/xhtml+xml"?Wr:wa,z=In(j,"ALLOWED_TAGS",ee,{transform:tt}),W=In(j,"ALLOWED_ATTR",U,{transform:tt}),kt=In(j,"ALLOWED_NAMESPACES",ut,{transform:Wr}),At=In(j,"ADD_URI_SAFE_ATTR",Bt,{transform:tt,base:Bt}),nt=In(j,"ADD_DATA_URI_TAGS",lt,{transform:tt,base:lt}),vt=In(j,"FORBID_CONTENTS",Pt,{transform:tt}),De=In(j,"FORBID_TAGS",ln({}),{transform:tt}),ye=In(j,"FORBID_ATTR",ln({}),{transform:tt}),Dt=an(j,"USE_PROFILES")?j.USE_PROFILES&&typeof j.USE_PROFILES=="object"?ln(j.USE_PROFILES):j.USE_PROFILES:!1,ie=j.ALLOW_ARIA_ATTR!==!1,ge=j.ALLOW_DATA_ATTR!==!1,he=j.ALLOW_UNKNOWN_PROTOCOLS||!1,se=j.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=j.SAFE_FOR_TEMPLATES||!1,Oe=j.SAFE_FOR_XML!==!1,Me=j.WHOLE_DOCUMENT||!1,st=j.RETURN_DOM||!1,it=j.RETURN_DOM_FRAGMENT||!1,Ee=j.RETURN_TRUSTED_TYPE||!1,at=j.FORCE_BODY||!1,Ue=j.SANITIZE_DOM!==!1,Ae=j.SANITIZE_NAMED_PROPS||!1,et=j.KEEP_CONTENT!==!1,pt=j.IN_PLACE||!1,ae=uC(j.ALLOWED_URI_REGEXP)?j.ALLOWED_URI_REGEXP:ml,Ve=typeof j.NAMESPACE=="string"?j.NAMESPACE:je,St=Gr(j,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ct({},mt)),gt=Gr(j,"HTML_INTEGRATION_POINTS",()=>Ct({},Ke));const J=Gr(j,"CUSTOM_ELEMENT_HANDLING",()=>ra(null));if(de=ra(null),an(J,"tagNameCheck")&&ve(J.tagNameCheck)&&(de.tagNameCheck=J.tagNameCheck),an(J,"attributeNameCheck")&&ve(J.attributeNameCheck)&&(de.attributeNameCheck=J.attributeNameCheck),an(J,"allowCustomizedBuiltInElements")&&typeof J.allowCustomizedBuiltInElements=="boolean"&&(de.allowCustomizedBuiltInElements=J.allowCustomizedBuiltInElements),Wt(de),Le&&(ge=!1),it&&(st=!0),Dt&&(z=Ct({},cl),W=ra(null),Dt.html===!0&&(Ct(z,ul),Ct(W,dl)),Dt.svg===!0&&(Ct(z,Hr),Ct(W,Ur),Ct(W,Qa)),Dt.svgFilters===!0&&(Ct(z,Vr),Ct(W,Ur),Ct(W,Qa)),Dt.mathMl===!0&&(Ct(z,qr),Ct(W,pl),Ct(W,Qa))),pe.tagCheck=null,pe.attributeCheck=null,an(j,"ADD_TAGS")&&(typeof j.ADD_TAGS=="function"?pe.tagCheck=j.ADD_TAGS:oa(j.ADD_TAGS)&&(z===ee&&(z=ln(z)),Ct(z,j.ADD_TAGS,tt))),an(j,"ADD_ATTR")&&(typeof j.ADD_ATTR=="function"?pe.attributeCheck=j.ADD_ATTR:oa(j.ADD_ATTR)&&(W===U&&(W=ln(W)),Ct(W,j.ADD_ATTR,tt))),an(j,"ADD_FORBID_CONTENTS")&&oa(j.ADD_FORBID_CONTENTS)&&(vt===Pt&&(vt=ln(vt)),Ct(vt,j.ADD_FORBID_CONTENTS,tt)),et&&(z["#text"]=!0),Me&&Ct(z,["html","head","body"]),z.table&&(Ct(z,["tbody"]),delete De.tbody),j.TRUSTED_TYPES_POLICY){if(typeof j.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof j.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const fe=E;E=j.TRUSTED_TYPES_POLICY;try{D=L("")}catch(Se){throw E=fe,Se}}else j.TRUSTED_TYPES_POLICY===null?(E=void 0,D=""):(E===void 0&&(E=M()),E&&typeof D=="string"&&(D=L("")));zt&&zt(j),Nt=j},Qe=Ct({},[...Hr,...Vr,...cC]),yt=Ct({},[...qr,...dC]),ct=function(j,J,fe){return J.namespaceURI===je?j==="svg":J.namespaceURI===ke?j==="svg"&&(fe==="annotation-xml"||St[fe]):!!Qe[j]},Ft=function(j,J,fe){return J.namespaceURI===je?j==="math":J.namespaceURI===$e?j==="math"&>[fe]:!!yt[j]},Gt=function(j,J,fe){return J.namespaceURI===$e&&!gt[fe]||J.namespaceURI===ke&&!St[fe]?!1:!yt[j]&&(xt[j]||!Qe[j])},kn=function(j){let J=_(j);(!J||!J.tagName)&&(J={namespaceURI:Ve,tagName:"template"});const fe=wa(j.tagName),Se=wa(J.tagName);return kt[j.namespaceURI]?j.namespaceURI===$e?ct(fe,J,Se):j.namespaceURI===ke?Ft(fe,J,Se):j.namespaceURI===je?Gt(fe,J,Se):!!(Re==="application/xhtml+xml"&&kt[j.namespaceURI]):!1},Ht=function(j){_a(t.removed,{element:j});try{_(j).removeChild(j)}catch{if(v(j),!_(j))throw qn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Kt=function(j,J,fe){try{j.removeAttributeNode(J)}catch{try{j.removeAttribute(fe)}catch{}}},Rt=function(j){_t(j);const J=f(j);if(J){const Se=[];Vn(J,Ie=>{_a(Se,Ie)}),Vn(Se,Ie=>{try{v(Ie)}catch{}})}const fe=k(j);if(fe)for(let Se=fe.length-1;Se>=0;--Se){const Ie=fe[Se],Je=Ie&&Ie.name;typeof Je=="string"&&Kt(j,Ie,Je)}},bt=function(j,J,fe){if(!fe)try{fe=J.getAttributeNode(j)}catch{fe=null}_a(t.removed,{attribute:fe||null,from:J});try{fe?J.removeAttributeNode(fe):J.removeAttribute(j)}catch{try{J.removeAttribute(j)}catch{}}if(j==="is")if(st||it)try{Ht(J)}catch{}else try{J.setAttribute(j,"")}catch{}},ht=function(j){const J=k(j);if(J)for(let fe=J.length-1;fe>=0;--fe){const Se=J[fe],Ie=Se&&Se.name;typeof Ie!="string"||W[tt(Ie)]||Kt(j,Se,Ie)}},_t=function(j){const J=[j];for(;J.length>0;){const fe=J.pop();w(fe)===un.element&&ht(fe);const Ie=f(fe);if(Ie)for(let Je=Ie.length-1;Je>=0;--Je)J.push(Ie[Je])}},Yt=function(j,J){return Oe?j==="patchsrc"?!0:j==="for"&&J!=="label"&&J!=="output":!1},fn=function(j){if(!Oe)return;const J=[j];for(;J.length>0;){const fe=J.pop(),Se=w(fe);if(Se===un.processingInstruction||Se===un.comment&&Ut(Cl,fe.data)){try{v(fe)}catch{}continue}if(Se===un.element){const Je=fe,wt=tt(B(fe));try{Je.hasAttribute&&Je.hasAttribute("patchsrc")&&Je.removeAttribute("patchsrc"),Je.hasAttribute&&Je.hasAttribute("for")&&Yt("for",wt)&&Je.removeAttribute("for")}catch{}}const Ie=f(fe);if(Ie)for(let Je=Ie.length-1;Je>=0;--Je)J.push(Ie[Je])}},An=function(j){let J=null,fe=null;if(at)j="<remove></remove>"+j;else{const Je=ol(j,/^[\r\n\t ]+/);fe=Je&&Je[0]}Re==="application/xhtml+xml"&&Ve===je&&(j='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+j+"</body></html>");const Se=E?L(j):j;if(Ve===je)try{J=new m().parseFromString(Se,Re)}catch{}if(!J||!J.documentElement){J=H.createDocument(Ve,"template",null);try{J.documentElement.innerHTML=Ge?D:Se}catch{}}const Ie=J.body||J.documentElement;return j&&fe&&Ie.insertBefore(a.createTextNode(fe),Ie.childNodes[0]||null),Ve===je?I.call(J,Me?"html":"body")[0]:Me?J.documentElement:Ie},Rn=function(j){const J=y?y(j):j.ownerDocument;return O.call(J||j,j,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},pn=function(j){return j=Ba(j,V," "),j=Ba(j,S," "),j=Ba(j,R," "),j},Mt=function(j){var J;j.normalize();const fe=y?y(j):j.ownerDocument,Se=O.call(fe||j,j,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Ie=Se.nextNode();for(;Ie;)Ie.data=pn(Ie.data),Ie=Se.nextNode();const Je=(J=j.querySelectorAll)===null||J===void 0?void 0:J.call(j,"template");Je&&Vn(Je,wt=>{en(wt.content)&&Mt(wt.content)})},Qt=function(j){const J=N?N(j):null;return typeof J!="string"||tt(J)!=="form"?!1:typeof j.nodeName!="string"||typeof j.textContent!="string"||typeof j.removeChild!="function"||j.attributes!==k(j)||typeof j.removeAttribute!="function"||typeof j.setAttribute!="function"||typeof j.namespaceURI!="string"||typeof j.insertBefore!="function"||typeof j.hasChildNodes!="function"||j.nodeType!==x(j)||j.childNodes!==f(j)},en=function(j){if(!x||typeof j!="object"||j===null)return!1;try{return x(j)===un.documentFragment}catch{return!1}},mn=function(j){if(!x||typeof j!="object"||j===null)return!1;try{return typeof x(j)=="number"}catch{return!1}};function Ot(Ce,j,J){Ce.length!==0&&Vn(Ce,fe=>{fe.call(t,j,J,Nt)})}const bn=function(j,J){return!!(Oe&&j.hasChildNodes()&&!mn(j.firstElementChild)&&Ut(hl,j.textContent)&&Ut(hl,j.innerHTML)||Oe&&j.namespaceURI===je&&wC[J]&&(mn(j.firstElementChild)||typeof j.textContent=="string"&&Ut(BC[J],j.textContent))||j.nodeType===un.processingInstruction||Oe&&j.nodeType===un.comment&&Ut(Cl,j.data))},le=function(j,J){if(j instanceof RegExp)return Ut(j,J);if(j instanceof Function){for(var fe=arguments.length,Se=new Array(fe>2?fe-2:0),Ie=2;Ie<fe;Ie++)Se[Ie-2]=arguments[Ie];return!!j(J,...Se)}return!1},_e=function(j,J,fe){if(!De[J]&&Ne(J)&&le(de.tagNameCheck,J))return!1;if(et&&!vt[J]){const Se=_(j),Ie=f(j);if(Ie&&Se){const Je=Ie.length;for(let wt=Je-1;wt>=0;--wt){const jt=j===fe?g(Ie[wt],!0):Ie[wt];Se.insertBefore(jt,C(j))}}}return Ht(j),!0},Te=function(j,J,fe,Se){return j.length===0?J:J===fe||J===Se?ln(J):J},Ze=function(j,J){return j===J||_(j)!==null?!1:(pt&&_t(j),!0)},Fe=function(j,J){if(Ot(Z.beforeSanitizeElements,j,null),Ze(j,J))return!0;if(Qt(j))return Ht(j),!0;const fe=tt(B(j));if(z=Te(Z.uponSanitizeElement,z,ee,We),Ot(Z.uponSanitizeElement,j,{tagName:fe,allowedTags:z}),Ze(j,J))return!0;if(bn(j,fe))return Ht(j),!0;if(De[fe]||!(pe.tagCheck instanceof Function&&pe.tagCheck(fe))&&!z[fe]){const Ie=_e(j,fe,J);return Ie===!1&&Ot(Z.afterSanitizeElements,j,null),Ie}if(w(j)===un.element&&!kn(j)||(fe==="noscript"||fe==="noembed"||fe==="noframes")&&Ut(xC,j.innerHTML))return Ht(j),!0;if(Le&&j.nodeType===un.text){const Ie=pn(j.textContent);j.textContent!==Ie&&(_a(t.removed,{element:j.cloneNode()}),j.textContent=Ie)}return Ot(Z.afterSanitizeElements,j,null),!1},X=function(j,J,fe){if(ye[J]||Yt(J,j)||Ue&&(J==="id"||J==="name")&&(fe in a||fe in ne))return!1;const Se=W[J]||pe.attributeCheck instanceof Function&&pe.attributeCheck(J,j);return ge&&Ut(T,J)||ie&&Ut(Y,J)?!0:Se?At[J]||Ut(ae,Ba(fe,re,""))||(J==="src"||J==="xlink:href"||J==="href")&&j!=="script"&&sl(fe,"data:")===0&&nt[j]||he&&!Ut(ce,Ba(fe,re,""))?!0:!fe:Ne(j)&&le(de.tagNameCheck,j)&&le(de.attributeNameCheck,J,j)||J==="is"&&de.allowCustomizedBuiltInElements&&le(de.tagNameCheck,fe)},ue=Ct({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ne=function(j){return!ue[wa(j)]&&Ut(oe,j)},ze=function(j,J,fe,Se){if(E&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!fe)switch(p.getAttributeType(j,J)){case"TrustedHTML":return L(Se);case"TrustedScriptURL":return P(Se)}return Se},me=function(j,J,fe,Se){try{fe?j.setAttributeNS(fe,J,Se):j.setAttribute(J,Se),Qt(j)?Ht(j):rl(t.removed)}catch{bt(J,j)}},we=function(j){Ot(Z.beforeSanitizeAttributes,j,null);const J=j.attributes;if(!J||Qt(j))return;W=Te(Z.uponSanitizeAttribute,W,U,dt);const fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let Se=J.length;const Ie=tt(j.nodeName);for(;Se--;){const Je=J[Se],wt=Je.name,jt=Je.namespaceURI,tn=Je.value,nn=tt(wt),Rr=tn;let Zt=wt==="value"?Rr:aC(Rr);if(fe.attrName=nn,fe.attrValue=Zt,fe.keepAttr=!0,fe.forceKeepAttr=void 0,Ot(Z.uponSanitizeAttribute,j,fe),Zt=fe.attrValue,Ae&&(nn==="id"||nn==="name")&&sl(Zt,He)!==0&&(bt(wt,j,Je),Zt=He+Zt),Oe&&Ut(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Zt)){bt(wt,j,Je);continue}if(nn==="attributename"&&ol(Zt,"href")){bt(wt,j,Je);continue}if(!fe.forceKeepAttr){if(!fe.keepAttr){bt(wt,j,Je);continue}if(!se&&Ut(_C,Zt)){bt(wt,j,Je);continue}if(Le&&(Zt=pn(Zt)),!X(Ie,nn,Zt)){bt(wt,j,Je);continue}Zt=ze(Ie,nn,jt,Zt),Zt!==Rr&&me(j,wt,jt,Zt)}}Ot(Z.afterSanitizeAttributes,j,null)},Xe=function(j){let J=null;const fe=Rn(j);for(Ot(Z.beforeSanitizeShadowDOM,j,null);J=fe.nextNode();)if(Ot(Z.uponSanitizeShadowNode,J,null),Fe(J,j),we(J),en(J.content)&&Xe(J.content),w(J)===un.element){const Se=b(J);en(Se)&&(rt(Se),Xe(Se))}Ot(Z.afterSanitizeShadowDOM,j,null)},rt=function(j){const J=[{node:j,shadow:null}];for(;J.length>0;){const fe=J.pop();if(fe.shadow){Xe(fe.shadow);continue}const Se=fe.node,Je=w(Se)===un.element,wt=f(Se);if(wt)for(let jt=wt.length-1;jt>=0;--jt)J.push({node:wt[jt],shadow:null});if(Je){const jt=N?N(Se):null;if(typeof jt=="string"&&tt(jt)==="template"){const tn=Se.content;en(tn)&&J.push({node:tn,shadow:null})}}if(Je){const jt=b(Se);en(jt)&&J.push({node:null,shadow:jt},{node:jt,shadow:null})}}};return t.sanitize=function(Ce){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=null,fe=null,Se=null,Ie=null;if(Ge=!Ce,Ge&&(Ce="<!-->"),typeof Ce!="string"&&!mn(Ce)&&(Ce=iC(Ce),typeof Ce!="string"))throw qn("dirty is not a string, aborting");if(!t.isSupported)return Ce;qe?(z=We,W=dt):Pe(j),(Z.uponSanitizeElement.length>0||Z.uponSanitizeAttribute.length>0)&&(z=ln(z)),Z.uponSanitizeAttribute.length>0&&(W=ln(W)),t.removed=[];const Je=pt&&typeof Ce!="string"&&mn(Ce);if(Je){fn(Ce);const tn=B(Ce);if(typeof tn=="string"){const nn=tt(tn);if(!z[nn]||De[nn])throw Rt(Ce),qn("root node is forbidden and cannot be sanitized in-place")}if(Qt(Ce))throw Rt(Ce),qn("root node is clobbered and cannot be sanitized in-place");try{rt(Ce)}catch(nn){throw Rt(Ce),nn}}else if(mn(Ce))J=An("<!---->"),fe=J.ownerDocument.importNode(Ce,!0),fe.nodeType===un.element&&fe.nodeName==="BODY"||fe.nodeName==="HTML"?J=fe:J.appendChild(fe),rt(fe);else{if(!st&&!Le&&!Me&&Ce.indexOf("<")===-1)return E&&Ee?L(Ce):Ce;if(J=An(Ce),!J)return st?null:Ee?D:""}J&&at&&Ht(J.firstChild);const wt=Je?Ce:J;try{const tn=Rn(wt);for(;Se=tn.nextNode();)Fe(Se,wt),we(Se),en(Se.content)&&Xe(Se.content)}catch(tn){throw Je&&(Rt(Ce),Vn(t.removed,nn=>{nn.element&&_t(nn.element)})),tn}if(Je)return Vn(t.removed,tn=>{tn.element&&_t(tn.element)}),Le&&Mt(Ce),Ce;if(st){if(Le&&Mt(J),it)for(Ie=Q.call(J.ownerDocument);J.firstChild;)Ie.appendChild(J.firstChild);else Ie=J;return(W.shadowroot||W.shadowrootmode)&&(Ie=q.call(r,Ie,!0)),Ie}let jt=Me?J.outerHTML:J.innerHTML;return Me&&z["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&Ut(yC,J.ownerDocument.doctype.name)&&(jt="<!DOCTYPE "+J.ownerDocument.doctype.name+`>
|
|
798
|
+
`+jt),Le&&(jt=pn(jt)),E&&Ee?L(jt):jt},t.setConfig=function(){let Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pe(Ce),qe=!0,We=z,dt=W},t.clearConfig=function(){Nt=null,qe=!1,We=null,dt=null,E=A,D=""},t.isValidAttribute=function(Ce,j,J){Nt||Pe({});const fe=tt(Ce),Se=tt(j);return X(fe,Se,J)},t.addHook=function(Ce,j){typeof j=="function"&&an(Z,Ce)&&_a(Z[Ce],j)},t.removeHook=function(Ce,j){if(an(Z,Ce)){if(j!==void 0){const J=tC(Z[Ce],j);return J===-1?void 0:nC(Z[Ce],J,1)[0]}return rl(Z[Ce])}},t.removeHooks=function(Ce){an(Z,Ce)&&(Z[Ce]=[])},t.removeAllHooks=function(){Z=bl()},t}var sa=gl();let Kr=null;const NC=1500;function Yr(){Kr?.clear(),Kr=null}function EC(e,{onEnd:t,rate:a=.9}={}){if(typeof window>"u"||typeof SpeechSynthesisUtterance>"u"||!("speechSynthesis"in window)){t?.();return}const r=window.speechSynthesis;Yr();let s=!1;const l=()=>{if(!s){s=!0;try{t?.()}catch{}}};try{r.cancel()}catch{l();return}const i=()=>{Yr();try{r.cancel();const d=new SpeechSynthesisUtterance(e),m=r.getVoices().find(p=>p.lang.startsWith("ko"));m&&(d.voice=m),d.rate=a,d.onend=t?l:null,d.onerror=t?l:null,r.speak(d)}catch{l()}};let u;try{u=r.getVoices()}catch{l();return}if(u.length>0){i();return}const c=setTimeout(i,NC);try{r.addEventListener("voiceschanged",i,{once:!0})}catch{clearTimeout(c),l();return}Kr={clear:()=>{clearTimeout(c),r.removeEventListener("voiceschanged",i)}}}function Zr(){Yr(),typeof window<"u"&&"speechSynthesis"in window&&window.speechSynthesis.cancel()}const DC=/^(?:[a-z]+:)?\/\//i,SC="__ihab_core_asset_base_url__";function jC(){return globalThis[SC]??""}function Xr(e){const t=String(e||"").trim();if(!t)return"";if(DC.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=jC();return r?`${r}${a}`:a}const yl="__ihab_core_storage_resolvers__";function Aa(){return globalThis[yl]??null}function TC(e){globalThis[yl]=e}let vl=class extends Error{constructor(t){super(`
|
|
799
799
|
[ihabdevteam-core] ${t}() \uD638\uCD9C \uC2E4\uD328 \u2014 configureStorage()\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
|
|
800
800
|
|
|
801
801
|
\uC571 \uCD08\uAE30\uD654 \uC2DC\uC810(main.tsx \uB4F1)\uC5D0 \uC544\uB798\uC640 \uAC19\uC774 \uD55C \uBC88 \uD638\uCD9C\uD558\uC138\uC694:
|
|
@@ -815,20 +815,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
815
815
|
npm install @supabase/supabase-js
|
|
816
816
|
pnpm add @supabase/supabase-js
|
|
817
817
|
`),this.name="StorageNotConfiguredError"}};function MC(e){TC(e)}function xl(e,t){if(!e)return null;const a=Aa();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function _l(e){if(!e)return null;const t=Aa();if(!t)throw new vl("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function wl(e){const t=Aa();if(!t)throw new vl("downloadSound");return t.download(e)}function LC(){return Aa()?.noiseBaseUrl??"/sounds/noise"}function $C(){const e=Number(Aa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function RC(e){const t=AbortSignal.timeout;if(typeof t=="function")return t.call(AbortSignal,e);const a=new AbortController;return setTimeout(()=>a.abort(),e),a.signal}const Bl="__ihab_core_tts_config__";function Na(){return globalThis[Bl]?.urlResolver??null}function Jr(){return globalThis[Bl]?.fallbackUrlResolver??null}const PC="__ihab_core_pronunciation_resolver__";function IC(){return globalThis[PC]??null}let Fn=null;const Ea=new WeakMap,Qr=new WeakMap,eo=new WeakMap;let kl=!1;const Al=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function FC(){if(kl||typeof document>"u")return;kl=!0;const e=()=>{try{Fn&&Fn.state!=="running"&&Fn.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function Nl(){if(Fn)return Fn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(Fn=new e,FC(),Fn):null}catch{return null}}function to(){try{Fn?.resume()}catch{}}function no(e,t){const a=Ea.get(t);if(a)return a;try{const r=e.createMediaElementSource(t),s=e.createGain(),l=e.createAnalyser();l.fftSize=1024,l.smoothingTimeConstant=.6,s.gain.value=Al(Qr.get(t)??t.volume),r.connect(s),s.connect(l),s.connect(e.destination);try{t.volume=1}catch{}const i={gain:s,analyser:l};return Ea.set(t,i),i}catch{return null}}function er(e){if(!e)return Promise.resolve(null);const t=Ea.get(e);if(t)return Promise.resolve(t.analyser);const a=Nl();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(no(a,e)?.analyser??null);const r=eo.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?no(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{eo.delete(e)});return eo.set(e,s),s}function OC(e){if(!e)return null;const t=Ea.get(e);if(t)return t.analyser;const a=Nl();return a?a.state==="running"?no(a,e)?.analyser??null:(er(e),null):null}function On(e,t){const a=Al(t);Qr.set(e,a);const r=Ea.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const s=r.gain.gain;try{const l=r.gain.context.currentTime;s.cancelScheduledValues(l),s.setTargetAtTime(a,l,.01)}catch{try{s.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function tr(e){return Qr.get(e)??e.volume}function zC(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const s=t[r];a+=s*s}return Math.sqrt(a/t.length)}const WC="__ihab_core_image_config__";function la(){return globalThis[WC]??null}const El="word_image_existence_map_v1",HC="ihab:image-existence-updated";let Da=null;function VC(){Da!==null&&(clearTimeout(Da),Da=null),typeof window<"u"&&window.dispatchEvent(new Event(HC))}function qC(){Da===null&&(Da=setTimeout(VC,200))}let Un=null,ao=0;const Sa=new Map;function UC(){if(Un)return Un;try{const e=typeof localStorage<"u"?localStorage.getItem(El):null,t=e?JSON.parse(e):null,a={};if(t&&typeof t=="object"&&!Array.isArray(t))for(const[r,s]of Object.entries(t))typeof s=="boolean"&&(a[r]=s);Un=a}catch{Un={}}return Un}let ro=null;function GC(){ro===null&&(ro=setTimeout(()=>{ro=null;try{typeof localStorage<"u"&&Un&&localStorage.setItem(El,JSON.stringify(Un))}catch{}},200))}function KC(e,t){return`${e}_${t??1}`}async function YC(e,t,a=!1){const r=UC(),s=KC(e,t);if(!a&&s in r)return r[s];if(!a&&Sa.has(s))return Sa.get(s);const l=la();if(!l)return!1;let i;try{i=l(e,t)}catch{return!1}if(!i)return!1;let u;try{u=fetch(i,{method:"HEAD",signal:RC(8e3)})}catch{return!1}const c=u.then(d=>d.ok?!0:d.status===404||d.status===410?!1:null,()=>null).then(d=>Sa.get(s)!==c?d??!1:(Sa.delete(s),d===null?!1:(r[s]=d,ao++,GC(),d)));return Sa.set(s,c),c}async function Dl(e,t){const a=ao,r=await YC(e,t);return ao!==a&&qC(),r}const Sl=90;function jl(e){let t=0;for(const a of e){const r=a.codePointAt(0)??0;a===`
|
|
818
|
-
`||a==="\r"?t+=2:t+=r<128?1:2}return t}function ZC(e){return jl(e)>90?"LMS":"SMS"}function Tl(e,t=85){const a=jl(e),r=ZC(e),s=r==="SMS"?90:2e3,l=typeof t=="number"?t:null;return{bytes:a,type:r,limit:s,over:a>s,target:l,overTarget:l!==null&&a>l}}const XC=["onset","vowel","coda","glide"],Ml="none",JC={\uCD08\uC131:"onset",\uBAA8\uC74C:"vowel",\uC885\uC131:"coda",\uD65C\uC74C:"glide"},QC="\uC5C6\uC74C";function ef(e){return XC.includes(e)}function tf(e){const t={};for(const[a,r]of Object.entries(e)){const s=ef(a)?a:JC[a];s&&(t[s]=r===QC?Ml:r)}return t}const nf={\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"}},Ll=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],$l=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],af=["","\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 ja(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function rf(e){const t=ja(e[0]||"");return t?Ll[t.cho]:""}function of(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=i=>Ll.includes(i),r=i=>$l.includes(i),s=t.map(i=>a(i)?"cho":r(i)?"jung":ja(i)?"syl":"other"),l=t.map(i=>ja(i));if(s.includes("other")){const i=e.toLowerCase();return u=>u.normalize("NFC").toLowerCase().includes(i)}return i=>{const u=[...i.normalize("NFC")];for(let c=0;c+t.length<=u.length;c++){let d=!0;for(let m=0;m<t.length;m++){const p=u[c+m],h=s[m];if(h==="cho"){if(rf(p)!==t[m]){d=!1;break}}else if(h==="jung"){const b=ja(p);if(!b||$l[b.jung]!==t[m]){d=!1;break}}else{const b=l[m];if(b&&b.jong===0){const v=ja(p);if(!v||v.cho!==b.cho||v.jung!==b.jung){d=!1;break}}else if(p!==t[m]){d=!1;break}}}if(d)return!0}return!1}}const sf={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(sf).map(([e,t])=>[t.join(""),af[Number(e)]]));const lf="word_pair_index_v2",uf="word_pair_index_sig_v2";let nr=null;function cf(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;for(const t of Object.values(e)){if(t===null||typeof t!="object"||Array.isArray(t))return!1;const a=t;for(const r of["cho","jung","jong"])if(!Array.isArray(a[r])||!a[r].every(s=>typeof s=="string"))return!1}return!0}function df(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(lf),t=localStorage.getItem(uf);if(!e||!t)return null;const a=JSON.parse(e);return cf(a)?{index:a,sig:t}:null}catch{return null}}function pf(){if(nr)return nr;const e=df();return e?(nr=e.index,e.sig,nr):null}function mf(e,t,a){return!(e>0)||!(t>0)?1:Math.max(1,Math.floor((e+a)/(t+a)))}function hf(e,t){if(!(e>0))return 1;const a=Math.max(1,Math.floor(t));if(e<=a)return e;const r=Math.ceil(e/a);return Math.max(1,Math.ceil(e/r))}const oo=/[ㄱ-ㅎ]/,Cf=/[ㅏ-ㅣ]/;function Rl(e){e=e.normalize("NFC");for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||oo.test(a)||Cf.test(a))return a}return null}function ff(e){const t=Rl(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":oo.test(t)?"\uC774":"\uAC00"}function gf(e){return`${e}${ff(e)}`}function bf(e){const t=Rl(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":oo.test(t)?"\uC744":"\uB97C"}function yf(e){return`${e}${bf(e)}`}function vf(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function Ta(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(t()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const xf=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof Vt?.t=="function"?Vt.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function Pl(e,t){if(t===void 0&&(t=xf()),e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return t}const _f="__ihab_core_word_pool__";function Il(){return globalThis[_f]??null}const Fl=globalThis;function Ol(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function wf(e){Ol("time",()=>Fl.__ihabTrainingTimeLogger?.(e))}function Bf(e){Ol("completion",()=>Fl.__ihabTrainingCompletionLogger?.(e))}const kf="Asia/Seoul",Af=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function Ma(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=/^(\d{4}-\d{2}-\d{2})(?:$|[T ])/.exec(a)?.[1];if(r){const l=new Date(`${r}T00:00:00Z`);if(Number.isNaN(l.getTime())||l.toISOString().slice(0,10)!==r)return null}const s=Af.exec(a);t=new Date(s?`${s[1]}T${s[2]}:${s[3]??"00"}${s[4]?`.${s[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else t=new Date(e);return Number.isNaN(t.getTime())?null:t}function Nf(e){return Ma(e)!==null}const Ef=e=>Ma(e);function zl(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US",r=Ef(e);return r?r.toLocaleDateString(a,{timeZone:kf,year:"numeric",month:"short",day:"numeric"}):""}function Wl(e){return e&&e.startsWith("ko")?"ko-KR":e||"en-US"}function Df(e,t,a){return!Number.isFinite(e)||!Number.isFinite(t)||t<1||t>12?`${e}-${t}`:new Intl.DateTimeFormat(Wl(a),{year:"numeric",month:"long"}).format(new Date(e,t-1,1))}function so(e,t,a,r){return e("calendar.yearMonth",{year:a,month:r,defaultValue:""})||Df(a,r,t)}function La(){return io(new Date)}function lo(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)&&Ma(e)?.toISOString().slice(0,10)===e?e:La()}function ia(){return jf(La())}const Sf=540*60*1e3;function Hl(e,t,a){return new Date(Date.UTC(e,t,a)-Sf)}function jf(e){const[t,a,r]=e.split("-").map(Number);return new Date(t,(a||1)-1,r||1)}function io(e){if(e==null||e==="")return"";const t=Ma(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function Vl(e,t){if(!e)return"";const a=Ma(e);if(!a)return"";const r=a.getTime(),s=Math.max(0,Math.floor((Date.now()-r)/1e3)),l=Math.floor(s/60),i=Math.floor(l/60),u=Math.floor(i/24),c=Math.floor(u/7),d=Math.floor(u/30),m=Math.floor(u/365);return l<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):l<60?t("store.time.minutesAgo",{n:l}):i<24?t("store.time.hoursAgo",{n:i}):u<7?t("store.time.daysAgo",{n:u}):c<5?t("store.time.weeksAgo",{n:c}):u<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:m})}function ql(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:l="\u2014"}=t;if(!e)return l;const i=io(e instanceof Date?e:String(e));if(!i)return l;const[u,c,d]=i.split("-"),m=r?c:String(Number(c)),p=r?d:String(Number(d));return`${u}${a}${m}${a}${p}${s?".":""}`}function ar(e){if(typeof e=="string"){const t=e.trim();return t&&Nf(t)?t:null}if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(typeof e=="number"&&Number.isFinite(e)){const t=new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString()}return null}function sn(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function Tf(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function Mf(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:sn(r.contextCode)??sn(r.itemId)??sn(r.itemCode)??sn(r.id),question:sn(r.question)??sn(r.q)??sn(r.sentence)??sn(r.text)??sn(r.prompt)??sn(r.word)??sn(r.targetSyllable),answer:sn(r.answer),selected:sn(r.selectedText)??sn(r.selected),correct:Tf(r),shownAt:ar(r.shownAt)??ar(r.shown_at),answeredAt:ar(r.answeredAt)??ar(r.answered_at)}}):[]}const uo=globalThis;async function Lf(){try{return await uo.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function co(e){const t=a=>{};try{const a=uo.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function rr(e){try{uo.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function $f(e){if(typeof document<"u"){const t=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),t&&t!==document.activeElement&&typeof t.focus=="function"&&t.isConnected)try{t.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}function ua(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function Ul(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),s=Number(a[2]),l=a[1].padStart(2,"0");return s===0?t("date.timeH",{h:r,hh:l,mm:a[2]}):t("date.timeHM",{h:r,hh:l,m:s,mm:a[2]})}function po(e){return(e??0).toLocaleString("ko-KR")}const Rf=[{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"}]}],Pf=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"audio-lines",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 Gl(){return Rf}function If(){return Pf}const Ff=[],Of=[],zf=[],Wf=[];function Hf(){return{LISTEN_IN_NOISE:Ff,SHORT_STORY:Of,LONG_STORY:zf,ORDERING_SENTENCE:Wf}}const Vf=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"audio-lines",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],Kl={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function qf(e){return Vf.map(t=>{const a=Kl[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}var Uf={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",collapseFor:"{{name}} \uC811\uAE30",expandFor:"{{name}} \uD3BC\uCE58\uAE30",sortFor:"{{name}} \uC815\uB82C",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",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."},Gf={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],weekOrdinal:["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"],weekLabel:"{{ord}}\uC8FC",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704",visitCount:"\uBC29\uBB38 {{count}}\uAC74",statusCount:"{{label}} {{count}}\uAC74"},Kf={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"}},Yf={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Zf={selected:"\uC120\uD0DD\uB428"},Xf={placeholder:"\uC120\uD0DD"},Jf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},Qf={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"},eg={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"},tg={cache:{cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"}}}},ng={couponButton:"\uCFE0\uD3F0 \uC785\uB825"},ag={security:{password:{currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}}},rg={settings:"\uC124\uC815",filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\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",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",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",replaySound:"{{no}}\uBC88 \uB2E4\uC2DC \uB4E3\uAE30",replaySoundStop:"{{no}}\uBC88 \uB4E3\uAE30 \uBA48\uCDA4",done:"\uC644\uB8CC",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026",preparing:"\uC18C\uB9AC\uB97C \uC900\uBE44\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"}},og={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addButton:"\uAE30\uAE30 \uCD94\uAC00",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D"},visitHistory:{empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},sg={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"}}}},lg={input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9"},ig={showN:"{{n}}\uAC1C\uC529"},ug={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."}},cg={newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},dg={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},pg={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",viewLabel:"\uBCF4\uAE30 \uBC29\uC2DD",sortLabel:"\uC815\uB82C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},publisherFilter:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30",groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\uD2C0\uB9BC"},button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74, \uC790\uD310\uC73C\uB85C\uB294 \uCE78\uC5D0 \uCD08\uC810\uC774 \uAC00\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"},thumbMore:"+{{count}}"},mg={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",gradeNone:"\uC5C6\uC74C",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",field:"\uC758\uBBF8\uBC94\uC8FC",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193",original:"\uBC1B\uC740 \uC21C\uC11C"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30"},hg={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},Cg={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"}},fg={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C",type:{hearingAid:"\uBCF4\uCCAD\uAE30",cochlearImplant:"\uC778\uACF5\uC640\uC6B0",other:"\uAE30\uD0C0"}},gg={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"}},bg={phonemeSelect:{vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",countLabel:"\uC74C\uC18C \uAC1C\uC218",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:["1\uB4F1\uAE09 : \uD559\uB839\uC804\uAE30\uC5D0 \uC2B5\uB4DD\uD558\uC5EC \uD3C9\uC0DD\uC5D0 \uAC78\uCCD0 \uC77C\uC0C1 \uC5B8\uC5B4\uC0DD\uD65C\uC744 \uD558\uB294 \uB370 \uC0AC\uC6A9\uB418\uB294 \uC5B4\uD718","2\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 1-2\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","3\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 3-4\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","4\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 5-6\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","\uB4F1\uAE09\uC5C6\uC74C : \uAD6D\uB9BD\uAD6D\uC5B4\uC6D0 \uD45C\uC900 \uC5B4\uD718 \uC678 \uACE0\uBE48\uB3C4 \uC0DD\uD65C \uC5B4\uD718, \uC2E0\uC870\uC5B4 \uBC0F \uC678\uB798\uC5B4"],selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},yg={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
818
|
+
`||a==="\r"?t+=2:t+=r<128?1:2}return t}function ZC(e){return jl(e)>90?"LMS":"SMS"}function Tl(e,t=85){const a=jl(e),r=ZC(e),s=r==="SMS"?90:2e3,l=typeof t=="number"?t:null;return{bytes:a,type:r,limit:s,over:a>s,target:l,overTarget:l!==null&&a>l}}const XC=["onset","vowel","coda","glide"],Ml="none",JC={\uCD08\uC131:"onset",\uBAA8\uC74C:"vowel",\uC885\uC131:"coda",\uD65C\uC74C:"glide"},QC="\uC5C6\uC74C";function ef(e){return XC.includes(e)}function tf(e){const t={};for(const[a,r]of Object.entries(e)){const s=ef(a)?a:JC[a];s&&(t[s]=r===QC?Ml:r)}return t}const nf={\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"}},Ll=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],$l=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],af=["","\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 ja(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function rf(e){const t=ja(e[0]||"");return t?Ll[t.cho]:""}function of(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=i=>Ll.includes(i),r=i=>$l.includes(i),s=t.map(i=>a(i)?"cho":r(i)?"jung":ja(i)?"syl":"other"),l=t.map(i=>ja(i));if(s.includes("other")){const i=e.toLowerCase();return u=>u.normalize("NFC").toLowerCase().includes(i)}return i=>{const u=[...i.normalize("NFC")];for(let c=0;c+t.length<=u.length;c++){let d=!0;for(let m=0;m<t.length;m++){const p=u[c+m],h=s[m];if(h==="cho"){if(rf(p)!==t[m]){d=!1;break}}else if(h==="jung"){const g=ja(p);if(!g||$l[g.jung]!==t[m]){d=!1;break}}else{const g=l[m];if(g&&g.jong===0){const v=ja(p);if(!v||v.cho!==g.cho||v.jung!==g.jung){d=!1;break}}else if(p!==t[m]){d=!1;break}}}if(d)return!0}return!1}}const sf={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(sf).map(([e,t])=>[t.join(""),af[Number(e)]]));const lf="word_pair_index_v2",uf="word_pair_index_sig_v2";let nr=null;function cf(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;for(const t of Object.values(e)){if(t===null||typeof t!="object"||Array.isArray(t))return!1;const a=t;for(const r of["cho","jung","jong"])if(!Array.isArray(a[r])||!a[r].every(s=>typeof s=="string"))return!1}return!0}function df(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(lf),t=localStorage.getItem(uf);if(!e||!t)return null;const a=JSON.parse(e);return cf(a)?{index:a,sig:t}:null}catch{return null}}function pf(){if(nr)return nr;const e=df();return e?(nr=e.index,e.sig,nr):null}function mf(e,t,a){return!(e>0)||!(t>0)?1:Math.max(1,Math.floor((e+a)/(t+a)))}function hf(e,t){if(!(e>0))return 1;const a=Math.max(1,Math.floor(t));if(e<=a)return e;const r=Math.ceil(e/a);return Math.max(1,Math.ceil(e/r))}const oo=/[ㄱ-ㅎ]/,Cf=/[ㅏ-ㅣ]/;function Rl(e){e=e.normalize("NFC");for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||oo.test(a)||Cf.test(a))return a}return null}function ff(e){const t=Rl(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":oo.test(t)?"\uC774":"\uAC00"}function bf(e){return`${e}${ff(e)}`}function gf(e){const t=Rl(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":oo.test(t)?"\uC744":"\uB97C"}function yf(e){return`${e}${gf(e)}`}function vf(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function Ta(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(t()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const xf=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof Vt?.t=="function"?Vt.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function Pl(e,t){if(t===void 0&&(t=xf()),e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return t}const _f="__ihab_core_word_pool__";function Il(){return globalThis[_f]??null}const Fl=globalThis;function Ol(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function wf(e){Ol("time",()=>Fl.__ihabTrainingTimeLogger?.(e))}function Bf(e){Ol("completion",()=>Fl.__ihabTrainingCompletionLogger?.(e))}const kf="Asia/Seoul",Af=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function Ma(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=/^(\d{4}-\d{2}-\d{2})(?:$|[T ])/.exec(a)?.[1];if(r){const l=new Date(`${r}T00:00:00Z`);if(Number.isNaN(l.getTime())||l.toISOString().slice(0,10)!==r)return null}const s=Af.exec(a);t=new Date(s?`${s[1]}T${s[2]}:${s[3]??"00"}${s[4]?`.${s[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else t=new Date(e);return Number.isNaN(t.getTime())?null:t}function Nf(e){return Ma(e)!==null}const Ef=e=>Ma(e);function zl(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US",r=Ef(e);return r?r.toLocaleDateString(a,{timeZone:kf,year:"numeric",month:"short",day:"numeric"}):""}function Wl(e){return e&&e.startsWith("ko")?"ko-KR":e||"en-US"}function Df(e,t,a){return!Number.isFinite(e)||!Number.isFinite(t)||t<1||t>12?`${e}-${t}`:new Intl.DateTimeFormat(Wl(a),{year:"numeric",month:"long"}).format(new Date(e,t-1,1))}function so(e,t,a,r){return e("calendar.yearMonth",{year:a,month:r,defaultValue:""})||Df(a,r,t)}function La(){return io(new Date)}function lo(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)&&Ma(e)?.toISOString().slice(0,10)===e?e:La()}function ia(){return jf(La())}const Sf=540*60*1e3;function Hl(e,t,a){return new Date(Date.UTC(e,t,a)-Sf)}function jf(e){const[t,a,r]=e.split("-").map(Number);return new Date(t,(a||1)-1,r||1)}function io(e){if(e==null||e==="")return"";const t=Ma(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function Vl(e,t){if(!e)return"";const a=Ma(e);if(!a)return"";const r=a.getTime(),s=Math.max(0,Math.floor((Date.now()-r)/1e3)),l=Math.floor(s/60),i=Math.floor(l/60),u=Math.floor(i/24),c=Math.floor(u/7),d=Math.floor(u/30),m=Math.floor(u/365);return l<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):l<60?t("store.time.minutesAgo",{n:l}):i<24?t("store.time.hoursAgo",{n:i}):u<7?t("store.time.daysAgo",{n:u}):c<5?t("store.time.weeksAgo",{n:c}):u<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:m})}function ql(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:l="\u2014"}=t;if(!e)return l;const i=io(e instanceof Date?e:String(e));if(!i)return l;const[u,c,d]=i.split("-"),m=r?c:String(Number(c)),p=r?d:String(Number(d));return`${u}${a}${m}${a}${p}${s?".":""}`}function ar(e){if(typeof e=="string"){const t=e.trim();return t&&Nf(t)?t:null}if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(typeof e=="number"&&Number.isFinite(e)){const t=new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString()}return null}function rn(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function Tf(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function Mf(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:rn(r.contextCode)??rn(r.itemId)??rn(r.itemCode)??rn(r.id),question:rn(r.question)??rn(r.q)??rn(r.sentence)??rn(r.text)??rn(r.prompt)??rn(r.word)??rn(r.targetSyllable),answer:rn(r.answer),selected:rn(r.selectedText)??rn(r.selected),correct:Tf(r),shownAt:ar(r.shownAt)??ar(r.shown_at),answeredAt:ar(r.answeredAt)??ar(r.answered_at)}}):[]}const uo=globalThis;async function Lf(){try{return await uo.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function co(e){const t=a=>{};try{const a=uo.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function rr(e){try{uo.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function $f(e){if(typeof document<"u"){const t=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),t&&t!==document.activeElement&&typeof t.focus=="function"&&t.isConnected)try{t.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}function ua(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function Ul(e,t){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),s=Number(a[2]),l=a[1].padStart(2,"0");return s===0?t("date.timeH",{h:r,hh:l,mm:a[2]}):t("date.timeHM",{h:r,hh:l,m:s,mm:a[2]})}function po(e){return(e??0).toLocaleString("ko-KR")}const Rf=[{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"}]}],Pf=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"audio-lines",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 Gl(){return Rf}function If(){return Pf}const Ff=[],Of=[],zf=[],Wf=[];function Hf(){return{LISTEN_IN_NOISE:Ff,SHORT_STORY:Of,LONG_STORY:zf,ORDERING_SENTENCE:Wf}}const Vf=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"audio-lines",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],Kl={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function qf(e){return Vf.map(t=>{const a=Kl[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}var Uf={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",collapseFor:"{{name}} \uC811\uAE30",expandFor:"{{name}} \uD3BC\uCE58\uAE30",sortFor:"{{name}} \uC815\uB82C",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",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."},Gf={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],weekOrdinal:["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"],weekLabel:"{{ord}}\uC8FC",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704",visitCount:"\uBC29\uBB38 {{count}}\uAC74",statusCount:"{{label}} {{count}}\uAC74"},Kf={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"}},Yf={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Zf={selected:"\uC120\uD0DD\uB428"},Xf={placeholder:"\uC120\uD0DD"},Jf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},Qf={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"},eb={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"},tb={cache:{cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"}}}},nb={couponButton:"\uCFE0\uD3F0 \uC785\uB825"},ab={security:{password:{currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."}}},rb={settings:"\uC124\uC815",filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\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",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",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",replaySound:"{{no}}\uBC88 \uB2E4\uC2DC \uB4E3\uAE30",replaySoundStop:"{{no}}\uBC88 \uB4E3\uAE30 \uBA48\uCDA4",done:"\uC644\uB8CC",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026",preparing:"\uC18C\uB9AC\uB97C \uC900\uBE44\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"}},ob={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addButton:"\uAE30\uAE30 \uCD94\uAC00",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D"},visitHistory:{empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},sb={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"}}}},lb={input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9"},ib={showN:"{{n}}\uAC1C\uC529"},ub={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."}},cb={newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},db={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},pb={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",viewLabel:"\uBCF4\uAE30 \uBC29\uC2DD",sortLabel:"\uC815\uB82C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},publisherFilter:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30",groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\uD2C0\uB9BC"},button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74, \uC790\uD310\uC73C\uB85C\uB294 \uCE78\uC5D0 \uCD08\uC810\uC774 \uAC00\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"},thumbMore:"+{{count}}"},mb={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",gradeNone:"\uC5C6\uC74C",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",field:"\uC758\uBBF8\uBC94\uC8FC",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193",original:"\uBC1B\uC740 \uC21C\uC11C"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30"},hb={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},Cb={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"}},fb={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C",type:{hearingAid:"\uBCF4\uCCAD\uAE30",cochlearImplant:"\uC778\uACF5\uC640\uC6B0",other:"\uAE30\uD0C0"}},bb={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"}},gb={phonemeSelect:{vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",countLabel:"\uC74C\uC18C \uAC1C\uC218",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:["1\uB4F1\uAE09 : \uD559\uB839\uC804\uAE30\uC5D0 \uC2B5\uB4DD\uD558\uC5EC \uD3C9\uC0DD\uC5D0 \uAC78\uCCD0 \uC77C\uC0C1 \uC5B8\uC5B4\uC0DD\uD65C\uC744 \uD558\uB294 \uB370 \uC0AC\uC6A9\uB418\uB294 \uC5B4\uD718","2\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 1-2\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","3\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 3-4\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","4\uB4F1\uAE09 : \uCD08\uB4F1\uD559\uAD50 5-6\uD559\uB144 \uB09C\uC774\uB3C4 \uC5B4\uD718","\uB4F1\uAE09\uC5C6\uC74C : \uAD6D\uB9BD\uAD6D\uC5B4\uC6D0 \uD45C\uC900 \uC5B4\uD718 \uC678 \uACE0\uBE48\uB3C4 \uC0DD\uD65C \uC5B4\uD718, \uC2E0\uC870\uC5B4 \uBC0F \uC678\uB798\uC5B4"],selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},yb={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
819
819
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
820
|
-
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",bizNo:"\uC0AC\uC5C5\uC790\uB4F1\uB85D\uBC88\uD638",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638",bizNoValue:"526-81-02926"},vg={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},xg={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"},_g={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},wg={ariaLabel:"\uC120\uD0DD \uD0ED"},Bg={ariaLabel:"\uD0ED"},kg={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Ag={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Ng={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"}},Eg={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",done:"\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",detailFor:"{{name}} \uC0C1\uC138\uBCF4\uAE30"},Dg={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"}},Sg={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},jg={skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",runs:"{{count}}\uD310"},Tg={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"},Mg={viewWords:"\uB0B1\uB9D0"},Lg={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},$g={chooseDate:"\uB0A0\uC9DC \uC120\uD0DD",selectYear:"\uC5F0 \uC120\uD0DD",selectMonth:"\uC6D4 \uC120\uD0DD"},Rg={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Pg={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Ig={place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},Fg={clearSelection:"\uC120\uD0DD \uD574\uC81C"},Og={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},zg={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},Wg={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Hg={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Vg={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},qg={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},Ug={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"},Gg={common:Uf,calendar:Gf,passCard:Kf,rating:Yf,colorPicker:Zf,dropdown:Xf,accordion:Jf,header:Qf,nav:eg,settings:tg,usage:ng,account:ag,training:rg,customers:og,payment:sg,coupons:lg,visits:ig,trainingType:ug,myWordTable:cg,keyWords:dg,wordTable:pg,wordSearch:mg,wordPrint:hg,topic:Cg,device:fg,manager:gg,wordPairs:bg,footer:yg,date:vg,wordData:xg,textField:_g,segmentedControl:wg,tabs:Bg,fileUpload:kg,avatar:Ag,myHomework:Ng,trainingStatus:Eg,store:Dg,progress:Sg,trainingMiss:jg,table:Tg,wordScore:Mg,topBanner:Lg,datePicker:$g,report:Rg,tooltip:Pg,phonemeProfile:Ig,bulkBar:Fg,debug:Og,badge:zg,loader:Wg,soundCompass:Hg,breadcrumb:Vg,board:qg,promoBannerBg:Ug},Kg={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",collapseFor:"Collapse {{name}}",expandFor:"Expand {{name}}",sortFor:"Sort {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount_one:"{{count}} like",likeCount_other:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount_one:"{{count}} download",downloadCount_other:"{{count}} downloads",descriptionFor:"About {{name}}",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",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."},Yg={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekLabel:"Week {{ord}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit",visitCount_one:"{{count}} visit",visitCount_other:"{{count}} visits",statusCount:"{{count}} {{label}}",weekOrdinal:["1","2","3","4","5","6","7"]},Zg={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"}},Xg={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},Jg={selected:"selected"},Qg={placeholder:"Select"},eb={collapse:"Collapse",expand:"Expand"},tb={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},nb={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_one:"{{label}}, {{count}} notification inside",badgeInsideLabel_other:"{{label}}, {{count}} notifications inside"},ab={cache:{cleared:"Cache cleared successfully.",group:{wordData:{label:"Word Data",sub:"Word list and version info"},pairIndex:{label:"Pair Index",sub:"Onset\xB7vowel\xB7coda minimal pair analysis cache"},imageCache:{label:"Image Cache",sub:"Word image existence check results"}}}},rb={couponButton:"Enter Coupon"},ob={security:{password:{currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."}}},sb={settings:"Settings",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_one:"{{n}} question",countQuestions_other:"{{n}} questions",countSentences_one:"{{n}} sentence",countSentences_other:"{{n}} sentences",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",previewFor:"Preview {{name}}",stopFor:"Stop {{name}}",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",replaySound:"Replay item {{no}}",replaySoundStop:"Stop item {{no}}",done:"Done",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{synthesizing:"Preparing the sound\u2026",preparing:"Preparing sound\u2026"}},lb={totalCount:" customers",loadError:"Failed to load list",device:{title:"Hearing Devices",addButton:"Add device",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",historyTitle:"Hearing device history"},schedule:{registerTitle:" Register Schedule"},visitHistory:{empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"}},ib={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},ub={input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply"},cb={showN:"Show {{n}}"},db={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."}},pb={newBadge:"Newly created",publishedBadge:"Published",sharedBadge:"Shared"},mb={title:"Key Words",empty:"No key words available."},hb={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_one:"{{count}} word",itemCount_other:"{{count}} words",deleteAriaLabel:"Delete {{name}}",viewLabel:"View as",sortLabel:"Sort by",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},publisherFilter:"Show only tables by {{name}}",groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",markName:{o:"Correct",triangle:"Partial",x:"Incorrect"},button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse they appear when you hover the cell; with a keyboard, when focus reaches it.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved_one:"Saved {{count}} mark for {{name}}.",saved_other:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage_one:"Builds a new table from the {{count}} cell {{name}} got wrong or partial. Correct ones are left out.",reviewMessage_other:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated_one:"Created \u201C{{name}}\u201D \u2014 {{count}} cell.",reviewCreated_other:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage_one:"You marked {{count}} cell but have not saved. Leaving discards it.",discardMessage_other:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"},thumbMore:"+{{count}}"},Cb={filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",gradeNone:"None",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",field:"Semantic Category",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size"},fb={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},gb={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"}},bb={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant",other:"Other"}},yb={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"}},vb={phonemeSelect:{vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",countLabel:"Number of phonemes",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:["Level 1 \u2014 everyday vocabulary acquired before school age and used for life","Level 2 \u2014 difficulty of grades 1\u20132","Level 3 \u2014 difficulty of grades 3\u20134","Level 4 \u2014 difficulty of grades 5\u20136","No level \u2014 frequent everyday words outside the national standard list, plus coinages and loanwords"],selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},xb={lead:`IHAB builds trust
|
|
820
|
+
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",bizNo:"\uC0AC\uC5C5\uC790\uB4F1\uB85D\uBC88\uD638",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638",bizNoValue:"526-81-02926"},vb={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},xb={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"},_b={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},wb={ariaLabel:"\uC120\uD0DD \uD0ED"},Bb={ariaLabel:"\uD0ED"},kb={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Ab={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Nb={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"}},Eb={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",done:"\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",detailFor:"{{name}} \uC0C1\uC138\uBCF4\uAE30"},Db={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"}},Sb={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},jb={skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",runs:"{{count}}\uD310"},Tb={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"},Mb={viewWords:"\uB0B1\uB9D0"},Lb={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},$b={chooseDate:"\uB0A0\uC9DC \uC120\uD0DD",selectYear:"\uC5F0 \uC120\uD0DD",selectMonth:"\uC6D4 \uC120\uD0DD"},Rb={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Pb={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Ib={place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},Fb={clearSelection:"\uC120\uD0DD \uD574\uC81C"},Ob={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},zb={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},Wb={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Hb={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Vb={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},qb={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},Ub={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"},Gb={common:Uf,calendar:Gf,passCard:Kf,rating:Yf,colorPicker:Zf,dropdown:Xf,accordion:Jf,header:Qf,nav:eb,settings:tb,usage:nb,account:ab,training:rb,customers:ob,payment:sb,coupons:lb,visits:ib,trainingType:ub,myWordTable:cb,keyWords:db,wordTable:pb,wordSearch:mb,wordPrint:hb,topic:Cb,device:fb,manager:bb,wordPairs:gb,footer:yb,date:vb,wordData:xb,textField:_b,segmentedControl:wb,tabs:Bb,fileUpload:kb,avatar:Ab,myHomework:Nb,trainingStatus:Eb,store:Db,progress:Sb,trainingMiss:jb,table:Tb,wordScore:Mb,topBanner:Lb,datePicker:$b,report:Rb,tooltip:Pb,phonemeProfile:Ib,bulkBar:Fb,debug:Ob,badge:zb,loader:Wb,soundCompass:Hb,breadcrumb:Vb,board:qb,promoBannerBg:Ub},Kb={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",collapseFor:"Collapse {{name}}",expandFor:"Expand {{name}}",sortFor:"Sort {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount_one:"{{count}} like",likeCount_other:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount_one:"{{count}} download",downloadCount_other:"{{count}} downloads",descriptionFor:"About {{name}}",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",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."},Yb={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekLabel:"Week {{ord}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit",visitCount_one:"{{count}} visit",visitCount_other:"{{count}} visits",statusCount:"{{count}} {{label}}",weekOrdinal:["1","2","3","4","5","6","7"]},Zb={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"}},Xb={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},Jb={selected:"selected"},Qb={placeholder:"Select"},eg={collapse:"Collapse",expand:"Expand"},tg={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},ng={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_one:"{{label}}, {{count}} notification inside",badgeInsideLabel_other:"{{label}}, {{count}} notifications inside"},ag={cache:{cleared:"Cache cleared successfully.",group:{wordData:{label:"Word Data",sub:"Word list and version info"},pairIndex:{label:"Pair Index",sub:"Onset\xB7vowel\xB7coda minimal pair analysis cache"},imageCache:{label:"Image Cache",sub:"Word image existence check results"}}}},rg={couponButton:"Enter Coupon"},og={security:{password:{currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."}}},sg={settings:"Settings",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_one:"{{n}} question",countQuestions_other:"{{n}} questions",countSentences_one:"{{n}} sentence",countSentences_other:"{{n}} sentences",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",previewFor:"Preview {{name}}",stopFor:"Stop {{name}}",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",replaySound:"Replay item {{no}}",replaySoundStop:"Stop item {{no}}",done:"Done",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{synthesizing:"Preparing the sound\u2026",preparing:"Preparing sound\u2026"}},lg={totalCount:" customers",loadError:"Failed to load list",device:{title:"Hearing Devices",addButton:"Add device",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",historyTitle:"Hearing device history"},schedule:{registerTitle:" Register Schedule"},visitHistory:{empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"}},ig={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},ug={input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply"},cg={showN:"Show {{n}}"},dg={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."}},pg={newBadge:"Newly created",publishedBadge:"Published",sharedBadge:"Shared"},mg={title:"Key Words",empty:"No key words available."},hg={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_one:"{{count}} word",itemCount_other:"{{count}} words",deleteAriaLabel:"Delete {{name}}",viewLabel:"View as",sortLabel:"Sort by",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},publisherFilter:"Show only tables by {{name}}",groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",markName:{o:"Correct",triangle:"Partial",x:"Incorrect"},button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse they appear when you hover the cell; with a keyboard, when focus reaches it.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved_one:"Saved {{count}} mark for {{name}}.",saved_other:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage_one:"Builds a new table from the {{count}} cell {{name}} got wrong or partial. Correct ones are left out.",reviewMessage_other:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated_one:"Created \u201C{{name}}\u201D \u2014 {{count}} cell.",reviewCreated_other:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage_one:"You marked {{count}} cell but have not saved. Leaving discards it.",discardMessage_other:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"},thumbMore:"+{{count}}"},Cg={filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",gradeNone:"None",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",field:"Semantic Category",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size"},fg={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},bg={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"}},gg={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant",other:"Other"}},yg={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"}},vg={phonemeSelect:{vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",countLabel:"Number of phonemes",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:["Level 1 \u2014 everyday vocabulary acquired before school age and used for life","Level 2 \u2014 difficulty of grades 1\u20132","Level 3 \u2014 difficulty of grades 3\u20134","Level 4 \u2014 difficulty of grades 5\u20136","No level \u2014 frequent everyday words outside the national standard list, plus coinages and loanwords"],selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},xg={lead:`IHAB builds trust
|
|
821
821
|
through sound
|
|
822
|
-
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",bizNo:"Business no.",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Sicheong-gil, Chuncheon, Gangwon, Korea",bizNoValue:"526-81-02926"},_b={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},wb={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount_one:"Downloading {{n}} word",downloadingCount_other:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Bb={clearAriaLabel:"Clear input"},kb={ariaLabel:"Select tab"},Ab={ariaLabel:"Tabs"},Nb={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Eb={ariaLabel:"User avatar"},Db={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"}},Sb={weekly:{title:"Weekly Training",daily:"Daily Listening"},homework:{title:"Homework Progress",totalRate:"Overall rate",done:"Done"},today:{tooltipTotal:"Total",tooltipDone:"Done"},visit:{title:"Linked Visit Records"},detail:"Details",detailFor:"{{name}} details"},jb={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"}},Tb={steps:"Step {{current}} of {{total}}"},Mb={skippedOnly_one:"{{n}} older record was excluded \u2014 it does not say what was answered.",skippedOnly_other:"{{n}} older records were excluded \u2014 they do not say what was answered.",runs_one:"{{count}} run",runs_other:"{{count}} runs"},Lb={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},$b={viewWords:"Words"},Rb={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Pb={chooseDate:"Choose a date",selectYear:"Select year",selectMonth:"Select month"},Ib={previewRegion:"Report preview \u2014 scrollable sideways"},Fb={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Ob={place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},zb={clearSelection:"Clear selection"},Wb={showResult:"Show {{type}} result"},Hb={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Vb={loading:"Loading"},qb={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Ub={ariaLabel:"Breadcrumb"},Gb={empty:"No items yet."},Kb={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"},Yb={common:Kg,calendar:Yg,passCard:Zg,rating:Xg,colorPicker:Jg,dropdown:Qg,accordion:eb,header:tb,nav:nb,settings:ab,usage:rb,account:ob,training:sb,customers:lb,payment:ib,coupons:ub,visits:cb,trainingType:db,myWordTable:pb,keyWords:mb,wordTable:hb,wordSearch:Cb,wordPrint:fb,topic:gb,device:bb,manager:yb,wordPairs:vb,footer:xb,date:_b,wordData:wb,textField:Bb,segmentedControl:kb,tabs:Ab,fileUpload:Nb,avatar:Eb,myHomework:Db,trainingStatus:Sb,store:jb,progress:Tb,trainingMiss:Mb,table:Lb,wordScore:$b,topBanner:Rb,datePicker:Pb,report:Ib,tooltip:Fb,phonemeProfile:Ob,bulkBar:zb,debug:Wb,badge:Hb,loader:Vb,soundCompass:qb,breadcrumb:Ub,board:Gb,promoBannerBg:Kb};const Zb="0.373.0",Xb=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],mo="ko",Jb="ihab_display_language";function Yl(){if(typeof window>"u")return mo;try{const e=localStorage.getItem(Jb);if(e&&Xb.some(t=>t.code===e))return e}catch{}return mo}function Zl(e){try{document.documentElement.lang=e}catch{}}Vt.on("languageChanged",Zl),Zl(Yl()),Vt.use(_e.initReactI18next).init({resources:{ko:{translation:Gg},en:{translation:Yb}},lng:Yl(),fallbackLng:mo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Qb=new Map;try{Vt.store?.on?.("added",()=>Qb.clear())}catch{}let or=null,Xl=null,Jl=null;function ey(){const e=Il();if(e&&e.entries.length>0){const t=pf();if(or&&Xl===e&&Jl===t)return or;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:t?.[s.word]?[...t[s.word].cho??[],...t[s.word].jung??[],...t[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return or=r,Xl=e,Jl=t,or}return[]}new Proxy([],{get(e,t){const a=ey(),r=a[t];return typeof r=="function"?r.bind(a):r}});function ty(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const t=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(t)}function ny(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&ty(r.attrValue)&&(r.keepAttr=!1)};sa.addHook("uponSanitizeAttribute",t);try{return sa.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{sa.removeHook("uponSanitizeAttribute",t)}}function ay(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[l,i]=o.useState(null),[u,c]=o.useState(null),[d,m]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),i(null),c(null);return}const p=e.split("/").pop();let h=e;p&&(e.startsWith("/")?h=Xr(e):/^(Logo|Symbol)/i.test(p)?h=Xr(`logo/${p}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),h=e)),i(null),c(null),a(e),s(h)},[e]),o.useEffect(()=>{if(!r)return;let p=!1;async function h(){try{let b=await fetch(r);b.ok||(b=await fetch(r));const v=b.headers.get("content-type")||"";if(p)return;if(v.includes("svg")){i("mask");return}if(v.startsWith("image/")){i("img");return}const C=await fetch(r);if(!C.ok)throw new Error("not ok");const f=await C.text();if(p)return;if(/^\s*<svg[\s>]/i.test(f)){const _=ny(f);if(!_){i("none");return}c(_),i("inline");return}i("none")}catch{p||i("none")}}return h(),()=>{p=!0}},[r]),o.useEffect(()=>{let p=!1,h=null;return l==="mask"&&r&&fetch(r).then(b=>{if(!b.ok)throw new Error("fetch failed");return b.blob()}).then(b=>{p||(h=URL.createObjectURL(b),m(h))}).catch(()=>{p||i("img")}),()=>{p=!0,h&&URL.revokeObjectURL(h),m(null)}},[l,r]),t===e?{iconToUse:r,mode:l,svgText:u,blobUrl:d}:{iconToUse:null,mode:null,svgText:null,blobUrl:null}}function nt(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:l,svgClassName:i,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",m=s??"iconRenderer-icon-image",p=l??"iconRenderer-icon-mask",h=i??"iconRenderer-icon-svg",b=typeof t=="string"?t:null,v=U1(b),{iconToUse:C,mode:f,svgText:_,blobUrl:g}=ay(b),k=(B,E={})=>n.jsx("span",{className:d,style:u,...E,children:B}),x=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,A=(B,E={})=>n.jsx("img",{src:B,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:m,...E,style:x?{...E.style,...x}:E.style});if(!t)return null;if(typeof t!="string")return k(t);if(t==="none")return k(n.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(v)try{return k(o.createElement(v,{className:h,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(f==="mask"){const B={"--icon-url":g?`url(${g})`:`url(${C})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return k(n.jsx("span",{className:p,style:B}),{"aria-hidden":"true"})}return f==="img"?k(A(C,{onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):f==="inline"?k(n.jsx("span",{className:h,dangerouslySetInnerHTML:_?{__html:_}:void 0}),{"aria-hidden":"true"}):k(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return A(Xr(t),{style:u,onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}});const y=typeof c=="number"?c:20,w=`<svg width="${y}" height="${y}" 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 k(n.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:w}}),{"aria-hidden":"true"})}function Ql(e){const[t,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const l=o.useCallback(()=>{if(!e||r.current)return;const i=e();if(i&&typeof i.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};i.then(u,u)}},[e]);return{pending:t,press:l}}function ry({icon:e,title:t,message:a,action:r,className:s}){const{pending:l,press:i}=Ql(r?.onClick);return n.jsxs("div",{className:Be("empty-state",s),children:[e&&n.jsx(nt,{icon:e,size:48,className:"empty-state__icon"}),t&&n.jsx("p",{className:"empty-state__title h4",children:t}),a&&n.jsx("p",{className:"empty-state__message body-3",children:a}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i,disabled:l,"aria-busy":l||void 0,children:[r.icon&&n.jsx(nt,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function oy({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:l}){const{t:i}=_e.useTranslation(),{pending:u,press:c}=Ql(r);return n.jsxs("div",{className:Be("empty-state","error-state",l),role:"alert",children:[n.jsx(nt,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??i("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"error-state__hint caption-1",children:t}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:c,disabled:u,"aria-busy":u||void 0,children:[n.jsx(nt,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:s??i("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function sy({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:l=!1,onClick:i,className:u=""}){const c=o.useId(),d=`${c}-title`,m=`${c}-desc`,p=`${c}-cta`,h=()=>{l||i?.()};return n.jsx("section",{role:"button",tabIndex:l?-1:0,"aria-disabled":l||void 0,"aria-labelledby":d,"aria-describedby":`${m} ${p}`,onClick:h,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),h())},className:Be("action-card",`action-card--${s}`,l&&"action-card--disabled",u),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(nt,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:m,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:p,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(nt,{icon:"arrow-right",size:18})})]})]})})}function ly({as:e="div",className:t="",children:a,storage:r,...s}){r&&MC({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 l=Be("ihabdevteam-core-scope",t);return n.jsx(e,{className:l,...s,children:a})}function iy(e){if(e.closest('[aria-hidden="true"], [hidden], [inert]'))return!1;for(let t=e;t;t=t.parentElement){const a=window.getComputedStyle(t);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!1}return!0}function ho(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const l=Array.from(a.querySelectorAll(_n)).filter(iy);if(!l.length){s.preventDefault();return}const i=l[0],u=l[l.length-1],c=document.activeElement,d=c===a;s.shiftKey&&(c===i||d)?(s.preventDefault(),u.focus()):!s.shiftKey&&c===u&&(s.preventDefault(),i.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const _n='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Co=new WeakMap;function fo(e,t){e&&Co.set(e,t)}function go(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!Co.has(r);)r=r.parentElement;if(!r)return t;t=Co.get(r)??null}return t}function ei(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 sr(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(ei(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(_n)).filter(c=>!(e&&e.contains(c))&&ei(c));let l=null,i=null;for(const c of s)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?l=c:i||(i=c);const u=l??i;return u?.focus(),u}function uy({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:l=!1,className:i=""}){const{t:u}=_e.useTranslation(),[c,d]=o.useState(!1),m=o.useRef(null),p=o.useCallback(()=>{const C=m.current;C&&C.contains(document.activeElement)&&sr(C),d(!0)},[]);if(c)return null;const h=`notice-box notice-box--${s} body-2 ${i}`.trim(),b=l&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:h,role:"note",children:[a.map((C,f)=>n.jsxs("div",{className:"notice-box__inner",children:[C.title?n.jsx("span",{className:"notice-box__title body-3",children:C.title}):null,n.jsx("div",{className:"notice-box__body",children:C.lines&&C.lines.length?n.jsx("div",{children:C.lines.map((_,g)=>n.jsx("span",{className:"notice-box__line body-3",children:_},g))}):C.children??null})]},f)),b]});const v=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((C,f)=>n.jsx("li",{className:"notice-box__line",children:C},f))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:m,className:h,role:"note",children:[v,b]})}const ca=[];let lr=!1;function ti(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=ca[ca.length-1];t&&(e.stopPropagation(),t())}function Gn(e){return ca.push(e),!lr&&typeof document<"u"&&(document.addEventListener("keydown",ti),lr=!0),()=>{const t=ca.lastIndexOf(e);t>=0&&ca.splice(t,1),ca.length===0&&lr&&typeof document<"u"&&(document.removeEventListener("keydown",ti),lr=!1)}}const ni=o.createContext(null);function cy(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const ai=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function dy(e){const t=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Ms.useSyncExternalStore(t,()=>ai(e),()=>!1)}function py(e){const[t,a]=o.useState(ai(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=i=>a(i.matches),l=r;return l.addEventListener?l.addEventListener("change",s):l.addListener&&l.addListener(s),a(r.matches),()=>{l.removeEventListener?l.removeEventListener("change",s):l.removeListener&&l.removeListener(s)}},[e]),t}const my=typeof Ms.useSyncExternalStore=="function"?dy:py;function Cn(e){const t=o.useContext(ni),a=my(e);return t&&typeof t.mobile=="boolean"&&cy(e)?t.mobile:a}const hy="(prefers-reduced-motion: reduce)";function bo(){return Cn(hy)}function vn(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:l,closeOnOutsideClick:i=!0,className:u="",role:c="dialog",ariaLabel:d="",children:m,backdrop:p=!1,isMobilePopup:h=!1,useBorder:b=!0,header:v,focusOnOpen:C}=e||{},f=o.useRef(null),[_,g]=o.useState({position:"fixed",left:0,top:-9999}),[k,x]=o.useState(!1),[A,y]=o.useState("bottom"),[w,B]=o.useState(!1),[E,D]=o.useState(!1),N=!t&&!a,F=o.useRef(null),$=o.useCallback((I=!1,q=!1)=>{if(E&&h)return;const z=a?a.getBoundingClientRect():t,U=q&&F.current?F.current:z;if(!U||!f.current)return;const S=f.current,{offsetWidth:R,offsetHeight:L}=S,Z=window.innerWidth,ue=window.innerHeight,oe=Z-U.right,le=U.left,re=U.top,W=ue-U.bottom;let te=0,H=0,G="top";if(re>=L+r)G="top",H=U.top-r-L,te=U.left+U.width/2-R/2;else if(W>=L+r)G="bottom",H=U.bottom+r,te=U.left+U.width/2-R/2;else if(oe>=R+r)G="right",te=U.right+r,H=U.top+U.height/2-L/2;else if(le>=R+r)G="left",te=U.left-r-R,H=U.top+U.height/2-L/2;else{const me=Math.max(re,W,oe,le);me===re?(G="top",H=U.top-r-L,te=U.left+U.width/2-R/2):me===W?(G="bottom",H=U.bottom+r,te=U.left+U.width/2-R/2):me===oe?(G="right",te=U.right+r,H=U.top+U.height/2-L/2):(G="left",te=U.left-r-R,H=U.top+U.height/2-L/2)}const pe=Number.isFinite(Number(s))?Number(s):8;te=Math.min(Math.max(te,pe),Z-R-pe),H=Math.min(Math.max(H,pe),ue-L-pe);const Ne=Math.round(te),ye=Math.round(H);I&&f.current?(f.current.style.left=`${Ne}px`,f.current.style.top=`${ye}px`,f.current.dataset.placement=G):(y(G||A),g({position:"fixed",left:Ne,top:ye}),B(!0))},[E,h,a,t,r,s,A]);o.useEffect(()=>()=>{F.current=null},[a,t]),o.useLayoutEffect(()=>{if(N)return;if(E&&h){g({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),B(!0);return}F.current===null&&(F.current=a?a.getBoundingClientRect():t??null),$(!1,!0);const I=requestAnimationFrame(()=>$(!1,!0));return()=>cancelAnimationFrame(I)},[t,a,r,m,s,N,E,h,$]),o.useEffect(()=>{if(N||E&&h||!f.current||typeof ResizeObserver>"u")return;const I=new ResizeObserver(()=>{t&&$()});return I.observe(f.current),()=>I.disconnect()},[t,m,s,N,E,h,$]),o.useEffect(()=>{if(N||E&&h)return;let I=null;const q=()=>{if(a&&(F.current=a.getBoundingClientRect()),typeof requestAnimationFrame>"u"){$(!0);return}I===null&&(I=requestAnimationFrame(()=>{I=null,$(!0)}))},z=U=>{if(!a&&l){const S=U.target;if(S&&f.current&&f.current.contains(S))return;try{if(S&&S.closest&&S.closest("[data-tooltip-ignore]"))return}catch{}K.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",z,{passive:!0,capture:!0}),()=>{I!==null&&cancelAnimationFrame(I),window.removeEventListener("resize",q),document.removeEventListener("scroll",z,{capture:!0})}},[t,a,l,r,m,s,N,E,h,$]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const I=window.matchMedia("(max-width: 768px)"),q=()=>D(!!I.matches);q();try{I.addEventListener?I.addEventListener("change",q):I.addListener(q)}catch{try{I.addListener(q)}catch{}}return()=>{try{I.removeEventListener?I.removeEventListener("change",q):I.removeListener(q)}catch{}}},[]);const Y=o.useRef(!1),M=o.useRef(null),P=bo(),T=o.useCallback((I=!1)=>{if(l&&!(k||Y.current)){if(Y.current=!0,I){x(!0);try{l&&l()}catch{Y.current=!1,x(!1)}return}x(!0),M.current=setTimeout(()=>{M.current=null;try{l&&l()}catch{Y.current=!1,x(!1)}},P?0:200)}},[k,l,x,P]);o.useEffect(()=>()=>{M.current&&clearTimeout(M.current)},[]),o.useEffect(()=>{if(N)return;const I=U=>{const S=f.current;if(!S)return;const R=U.target;if(R&&!S.contains(R)){try{if(R.closest&&R.closest("[data-tooltip-ignore]"))return}catch{}i&&T(!0)}},q=U=>{const S=f.current;if(!S)return;const R=U.target;if(R&&!S.contains(R)){try{if(R.closest&&R.closest("[data-tooltip-ignore]"))return}catch{}i&&T(!0)}},z=U=>{if(U.key==="Tab"){const S=f.current;if(!S)return;const R=S.querySelectorAll(_n);if(!R||R.length===0)return;const L=R[0],Z=R[R.length-1],ue=document.activeElement;U.shiftKey?ue===L&&(U.preventDefault(),Z.focus()):ue===Z&&(U.preventDefault(),L.focus())}};return document.addEventListener("pointerdown",I,!0),document.addEventListener("click",q,!0),document.addEventListener("keydown",z),()=>{document.removeEventListener("pointerdown",I,!0),document.removeEventListener("click",q,!0),document.removeEventListener("keydown",z)}},[l,i,T,N]);const K=o.useRef(T);o.useEffect(()=>{K.current=T});const V=!!l;o.useEffect(()=>{if(!(N||!V))return Gn(()=>K.current())},[N,V]),o.useEffect(()=>{const I=()=>{T(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",I),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",I)}},[T]);const O=o.useRef(null);o.useEffect(()=>{if(N||C===!1||!w)return;const I=f.current;if(!I)return;const q=I.querySelector(_n);if(q)return O.current=document.activeElement,q.focus({preventScroll:!0}),()=>{const z=O.current;O.current=null,z&&document.contains(z)&&z.focus({preventScroll:!0})}},[N,C,w]),o.useEffect(()=>{c==="dialog"&&!d&&Mt("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.')},[c,d]);const Q=n.jsxs("div",{ref:f,className:`tooltip-content ${N?"tooltip-content--inline":""} ${b?"tooltip-content--bordered":""} ${k?"is-closing":""} ${u} ${E&&h?"is-mobile":""}`,role:c,"aria-label":d||void 0,style:N?{}:{..._,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":A,"data-left":N?"":_.left,"data-top":N?"":_.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[v!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:v}),m]});if(N||typeof document>"u")return Q;if(p||E&&h){const I=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{i&&T(!0)}}),Q]});return cn.createPortal(I,document.body)}return cn.createPortal(Q,document.body)}function Dn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:l="",ariaLabel:i}=e||{};return a?n.jsx(vn,{anchorRect:t,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${l}`,ariaLabel:i||a,children:n.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Kn(e){const{t}=_e.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:l=-1,showIndex:i=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0}=e||{},m=(Array.isArray(s)?s:s?[s]:[]).map(p=>typeof p=="string"?{text:p}:p);return!m.length&&!r?null:n.jsx(vn,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:"tooltip-description__box",children:[r&&n.jsx("span",{className:"tooltip-description__title body-2",children:r}),n.jsx("ol",{className:"tooltip-description__items",children:m.map((p,h)=>n.jsxs("li",{className:`tooltip-description__item body-3${h===l?" tooltip-description__item--active":""}`,children:[i&&m.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),p.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:p.color},"aria-hidden":"true"}),n.jsx("span",{children:p.text})]},h))})]})})}function $a(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let yo=0,ri=!1;function oi(){ri||typeof document>"u"||(ri=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(yo=Date.now())},!0),document.addEventListener("touchstart",()=>{yo=Date.now()},{capture:!0,passive:!0}))}oi();function da(e){return!!e&&e.pointerType==="touch"}function pa(e=1e3){return oi(),Date.now()-yo<e}function vo(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const l=$a(e),i=$a(t),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const m=p=>{const h=p,b=p.target,v=a.current,C=!!(b&&v&&v.contains(b));if(h.pointerType!=="touch"){C&&(u.current=null);return}if(C){u.current=l.current;return}u.current=null,l.current&&!(b&&b.closest?.(".tooltip-content"))&&i.current(!1,v)};return document.addEventListener("pointerdown",m,!0),()=>document.removeEventListener("pointerdown",m,!0)},[r,a,l,i]);const d=o.useCallback(m=>{const p=u.current;return p===null?!1:(u.current=null,c.current=Date.now(),i.current(!p,m??a.current),!0)},[a,i]);return o.useEffect(()=>{if(!r||!s)return;const m=a.current,p=m?.parentElement;if(!m||!p)return;let h=null;const b=f=>{const _=f.changedTouches?.[0];if(!_)return!1;const g=m.getBoundingClientRect();return _.clientX>=g.left&&_.clientX<=g.right&&_.clientY>=g.top&&_.clientY<=g.bottom},v=f=>{h=b(f)?l.current:null},C=f=>{const _=h;h=null,!(_===null||Date.now()-c.current<700||!b(f))&&(u.current=null,c.current=Date.now(),i.current(!_,m))};return p.addEventListener("touchstart",v,{passive:!0}),p.addEventListener("touchend",C),()=>{p.removeEventListener("touchstart",v),p.removeEventListener("touchend",C)}},[r,s,a,l,i]),{touchPress:d}}function Cy(e,t){const{size:a=48,type:r,htmlType:s,href:l,target:i,rel:u,icon:c,rightIcon:d,label:m,count:p,subLabel:h,children:b,ariaLabel:v,variant:C="default",align:f="center",nowrap:_=!1,selected:g,toggleable:k=!1,ariaExpanded:x,ariaControls:A,disabled:y=!1,useLabel:w=!0,useBorder:B=!0,useBG:E=!0,useDisabledCovered:D=!1,useDisabledInvisible:N=!1,useDisabledFilled:F=!1,width:$,minWidth:Y,onClick:M,onDisabledClick:P,showTooltipInfo:T=!1,tooltipInfoText:K=null,tooltipDescription:V=null,tooltipOnly:O=!1,iconSize:Q="medium",iconColor:I,shape:q="rounded",color:z,className:U,...S}=e,R=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),L=R.match(/^\d+$/)?`button${R}`:`button-${R}`,Z=Number(a),ue=!isNaN(Z)&&Z<40?"button-2":"button-1",oe=m??b,le=y||!!S.disabled,re=le?D?"disabled-covered":N?"disabled-invisibled":F?"disabled-filled":"disabled":C,W=re?`button--variant-${re}`:"",te=f?`button--align-${f}`:"",H=_?"button--nowrap":"",G=q?`button--shape-${q}`:"",pe=typeof I=="string"&&I.startsWith("--")?`var(${I})`:I,Ne={...$?{width:typeof $=="number"?`${$}px`:$}:{},...Y?{minWidth:typeof Y=="number"?`${Y}px`:Y}:{},...B?{}:{"--button-border":le?"0":"1px solid transparent"},...pe?{"--button-icon-color":pe}:{},...z?{"--color-main":z}:{}},ye=w===!1?"":oe,me=Array.isArray(ye)?ye.length>0:!!ye,se=!!d,ge=r??(me||c||se?"bar":"dot"),Ce=`${L}--${ge}`,de=o.useRef(null);o.useEffect(()=>{!Pn||s!==void 0||de.current?.closest("form")&&Mt(`button-in-form:${typeof oe=="string"?oe:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof oe=="string"&&oe?` \uB2E8\uCD94: ${oe}`:""))},[s,oe]);const Le=o.useRef(t);Le.current=t;const ze=o.useCallback(Me=>{de.current=Me;const Ke=Le.current;typeof Ke=="function"?Ke(Me):Ke&&(Ke.current=Me)},[]),Te=o.useRef(le),[Ge,Ie]=o.useState(!!g),[ct,at]=o.useState(!1),[rt,lt]=o.useState(null),Ee=o.useCallback(()=>at(!1),[]),[Ye,ke]=o.useState(!1),He=o.useId();o.useEffect(()=>{typeof g=="boolean"&&Ie(g)},[g]),o.useEffect(()=>{if(Te.current&&!le&&de.current){const Me=de.current;let Ke=!1;try{Ke=Me.matches(":focus:not(:focus-visible)")}catch{Ke=!1}Ke&&Me.blur(),Me.style.pointerEvents="none";const yt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{de.current&&(de.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(yt)}Te.current=le},[le]);const Je=typeof g=="boolean"?!!g:Ge,dt=typeof x=="boolean"?void 0:k||typeof g=="boolean"?Je?"true":"false":S["aria-pressed"],kt=Be("button",L,Ce,W,te,H,G,Je?"is-selected":null,E?null:"button--no-bg",O?"button--tooltip-only":null,U),At=`button__icon button__icon--${Q}`,Pt=Array.isArray(h)?h:h!==void 0?[h]:[],et=()=>{if(Array.isArray(ye))return ye.map((Ke,yt)=>{const Qe=Pt[yt];return n.jsxs("span",{className:`button__label-text${Qe!==void 0?" button__label-text--has-sub":""}`,children:[Ke,Qe!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:Qe})]},yt)});const Me=h!==void 0;return n.jsxs("span",{className:`button__label-text${Me?" button__label-text--has-sub":""}`,children:[ye,p!=null&&n.jsx("span",{className:"button__count",children:p}),Me&&n.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},st=Me=>{typeof g!="boolean"&&!k&&Ie(!1),Me.currentTarget.blur()},Dt=Me=>{le||(typeof S.onMouseLeave=="function"&&S.onMouseLeave(Me),st(Me))},vt=Me=>{if(O&&Se&&Ve.touchPress(Me.currentTarget),le){Se&&Ve.touchPress(Me.currentTarget),Me.preventDefault(),P?.(Me);return}typeof g!="boolean"&&k&&Ie(Ke=>!Ke),M?.(Me)},we=o.useCallback(()=>{(T||V)&&(at(!0),lt(de.current?.getBoundingClientRect()??null))},[T,V]),Re=o.useCallback(()=>{(T||V)&&(at(!1),lt(null))},[T,V]),Se=!!(T||V),Ve=vo(ct,Me=>{Me?we():Re()},de,{enabled:Se&&(le||O),fallbackOnParent:Se&&le}),qe={...S};delete qe.disabled,delete qe.className,delete qe.faded,delete qe.useFaded,delete qe.loading,delete qe.onMouseLeave,delete qe.onPointerEnter,delete qe.onPointerLeave,delete qe.onPointerUp,delete qe.onFocus,delete qe.onBlur,le&&(Object.keys(qe).forEach(Me=>{/^on[A-Z]/.test(Me)&&typeof qe[Me]=="function"&&delete qe[Me]}),qe["aria-disabled"]="true");const Bt=(typeof T=="string"?T:null)??(typeof K=="string"?K:null)??(typeof v=="string"?v:null)??(typeof oe=="string"?oe:null)??void 0,mt=typeof v=="string"?v:typeof oe=="string"?oe:Bt,ut=V?[V.title,...V.items??[]].filter(Boolean).join(". "):T&&Bt&&Bt!==mt?Bt:"",St=[typeof S["aria-describedby"]=="string"?S["aria-describedby"]:void 0,ut?He:null].filter(Boolean).join(" ")||void 0,Ue=(Me,Ke)=>n.jsx(nt,{icon:Me,label:Ke??mt,className:At,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),ht=()=>ge==="dot"?n.jsxs(n.Fragment,{children:[Ue(c),me&&n.jsx("span",{className:`button__label ${ue}`,children:et()})]}):f==="center"&&c?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:Ue(c)}),me&&n.jsx("span",{className:`button__label ${ue}`,children:et()})]}),se&&n.jsx("span",{className:"button__right",children:Ue(d)})]}):n.jsxs(n.Fragment,{children:[c&&n.jsx("span",{className:"button__left",children:Ue(c,v??oe)}),me&&n.jsx("span",{className:`button__label ${ue}`,children:et()}),se&&n.jsx("span",{className:"button__right",children:Ue(d)})]}),jt=!!l&&!le;return n.jsxs(n.Fragment,{children:[n.jsxs(jt?"a":"button",{...qe,ref:ze,...jt?{href:l,target:i,rel:u??(i==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:le&&!P&&!Ye},className:kt,"aria-pressed":dt,"aria-expanded":typeof x=="boolean"?x:S["aria-expanded"],"aria-controls":A??S["aria-controls"],"aria-label":mt,"aria-disabled":le&&(jt||P||Ye)?!0:void 0,"aria-describedby":St,style:Ne,onClick:vt,onMouseLeave:Dt,onPointerEnter:Me=>{da(Me)||we(),!le&&typeof S.onPointerEnter=="function"&&S.onPointerEnter(Me)},onPointerLeave:Me=>{da(Me)||Re(),!le&&typeof S.onPointerLeave=="function"&&S.onPointerLeave(Me)},onPointerUp:Me=>{le&&Se&&Ve.touchPress(Me.currentTarget),!le&&typeof S.onPointerUp=="function"&&S.onPointerUp(Me)},onFocus:Me=>{ke(!0),pa()||we(),!le&&typeof S.onFocus=="function"&&S.onFocus(Me)},onBlur:Me=>{ke(!1),le||st(Me),Re(),!le&&typeof S.onBlur=="function"&&S.onBlur(Me)},children:[ht(),ut?n.jsx("span",{id:He,hidden:!0,"aria-label":ut}):null]}),ct&&V?n.jsx(Kn,{anchorRect:rt,title:V.title,items:V.items,onClose:Ee}):ct&&Bt?n.jsx(Dn,{anchorRect:rt,text:Bt,onClose:Ee}):null]})}const fe=o.forwardRef(Cy);fe.displayName="Button";function Lt(e,t,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return t(s,e),()=>a(s)},[e,t,a]),r}const Ra={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},xo=new WeakMap;function _o(e){if(e)return xo.get(e)}function Qt(e,t){e&&(e.style.setProperty(Ra.title,t.title),e.style.setProperty(Ra.description,t.description),xo.set(e,t))}function en(e){e&&(e.style.removeProperty(Ra.title),e.style.removeProperty(Ra.description),xo.delete(e))}const si={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function li(){const e=Lt(si,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const ii={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function ui(){const e=Lt(ii,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const ci={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function di(){const e=Lt(ci,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const pi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function mi(){const e=Lt(pi,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const hi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ci(){const e=Lt(hi,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const fi={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function gi(){const e=Lt(fi,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const bi={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function yi(){const e=Lt(bi,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const vi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function xi(){const e=Lt(vi,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const _i={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function wi(){const e=Lt(_i,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Bi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function ki(){const e=Lt(Bi,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Ai={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Ni(){const e=Lt(Ai,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:n.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Ei={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Di(){const e=Lt(Ei,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Si={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function ji(){const e=Lt(Si,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Ti={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Mi(){const e=Lt(Ti,Qt,en);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const ln=(e,t,a)=>({key:e,get label(){return Vt.t(`promoBannerBg.${e}`,t)},textTone:a}),fy=[ln("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),ln("soft","\uC18C\uD504\uD2B8","dark"),ln("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),ln("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),ln("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),ln("warm","\uC6DC(\uAC15\uC870)","dark"),ln("dark","\uB2E4\uD06C","light"),ln("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),ln("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),ln("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),ln("outline","\uC544\uC6C3\uB77C\uC778","dark"),ln("success","\uC131\uACF5/\uC644\uB8CC","light"),ln("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),ln("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Li={main:li,soft:ui,sub:di,deep:mi,softSub:Ci,warm:gi,dark:yi,radial:xi,diagonal:wi,dots:ki,outline:Ni,success:Di,naver:ji,instagram:Mi};function $i({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:l=1.4}={}){const i=k=>Math.max(a,Math.min(r,Number(k))),u=k=>{try{const x=localStorage.getItem(k),A=x?Number(x):1;return Number.isFinite(A)?i(A):i(1)}catch{return i(1)}},[c,d]=o.useState(()=>u(e)),[m,p]=o.useState(e);m!==e&&(p(e),d(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const h=k=>{d(typeof k=="function"?x=>i(k(x)):i(k))},b=()=>h(k=>+(k+s).toFixed(6)),v=()=>h(k=>+(k-s).toFixed(6)),C=c<r-Number.EPSILON,f=c>a+Number.EPSILON,_=Math.round(t*c),g=Math.round(_*l);return{scale:c,setScale:h,increase:b,decrease:v,canIncrease:C,canDecrease:f,fontSize:_,lineHeight:g}}function Ri(e,t){const a=$a(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const wo=" \xB7 ",Pi=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(wo)?e.split(wo).pop()??e:e})(),gy=o.createContext(!1),Yn=[];let Ii=null;function by(e){const t=o.useContext(gy);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;Yn.length===0&&(Ii=document.title);const a={text:Pi?`${e}${wo}${Pi}`:e};return Yn.push(a),document.title=a.text,()=>{const r=Yn.lastIndexOf(a);r>=0&&Yn.splice(r,1),document.title=Yn.length?Yn[Yn.length-1].text:Ii??document.title}},[e,t])}const Bo=[{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"}],yy=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function mn(e,t){return yy().compare(e,t)}const ir=new Map;function vy(e){const t=ir.get(e);if(t)return t;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let l=r.exec(e);l;l=r.exec(e)){let i=l.index,u=l[0];u[0]==="-"&&i>0&&!/\s/.test(e[i-1])&&(i+=1,u=u.slice(1)),i>s&&a.push(e.slice(s,i)),a.push(Number(u)),s=l.index+l[0].length}return s<e.length&&a.push(e.slice(s)),ir.size>5e3&&ir.clear(),ir.set(e,a),a}function xy(e){if(!/^[\d\s-]+$/.test(e))return null;const t=e.replace(/\D/g,"");return t.length<9||t.length>11?null:t[0]==="0"||t[0]==="1"&&e!==t?t:null}function _y(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),s=a(t);if(r===s)return 0;const l=(d,m)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const p=xy(m);return p!==null?[p]:vy(m)},i=l(e,r),u=l(t,s),c=Math.min(i.length,u.length);for(let d=0;d<c;d++){const m=i[d],p=u[d];if(typeof m=="number"&&typeof p=="number"){if(m!==p)return m-p;continue}if(typeof m=="number")return-1;if(typeof p=="number")return 1;const h=mn(m,p);if(h!==0)return h}return i.length!==u.length?i.length-u.length:mn(r,s)}const Fi=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function ur(e,t,a){const r=Fi(e),s=Fi(t);if(r||s)return r===s?0:r?1:-1;const l=_y(e,t);return a?l:-l}function wy(e,t,a){const{t:r}=_e.useTranslation(),[s,l]=o.useState(()=>{const v=a?.initialPageSize;return v&&Bo.some(C=>C.value===v)?v:"25"}),[i,u]=o.useState(1),[c,d]=o.useState(t);Object.is(c,t)||(d(t),i!==1&&u(1));const m=o.useMemo(()=>Bo.map(v=>({...v,label:r("visits.showN",{n:v.value})})),[r]),p=o.useCallback(v=>{Bo.some(C=>C.value===v)&&(l(v),u(1))},[]),h=Math.max(1,Math.ceil(e.length/Number(s))),b=Math.min(Math.max(1,Number.isFinite(i)?Math.floor(i):1),h);return i!==b&&u(b),{pageRows:o.useMemo(()=>e.slice((b-1)*Number(s),b*Number(s)),[e,b,s]),pageSizeProps:{options:m,value:s,onChange:p},paginationProps:{page:b,total:h,onChange:u},setPage:u}}function By(e){const[t,a]=o.useState(()=>e?.defaultKey!=null?{key:e.defaultKey,asc:e.defaultAsc??!0}:null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const l=o.useCallback(c=>{const d=r.current,m=d?.key===c?{key:c,asc:!d.asc}:{key:c,asc:!0};r.current=m,a(m),s.current?.(m)},[]),i=o.useCallback((c,d)=>({label:c,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>l(d)}),[t,l]),u=o.useCallback((c,d)=>{if(!t)return c;const{key:m,asc:p}=t;return[...c].sort((h,b)=>ur(d(h,m),d(b,m),p))},[t]);return{sort:t,field:i,sortRows:u}}const xn="\uC804\uCCB4";Object.fromEntries(Object.entries(nf).map(([e,{nucleus:t}])=>[e,t]));const ky={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"})},Ay={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"})},Ny={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 Ey(e,t){if("place"in t)return ky[t.place](e);const a=Ay[t.vowel](e);return t.glide?`${a} \xB7 ${Ny[t.glide](e)}`:a}const Dy=(e,{defaultValue:t})=>t,Oi=(e,t)=>({jamos:e,phonetic:t,tooltip:Ey(Dy,t)}),Sn=(e,t)=>t.map(a=>Oi([a],{place:e})),qt=(e,t,a)=>Oi([...e],a?{vowel:t,glide:a}:{vowel:t}),ko={cho:[Sn("labial",["\u3142","\u3143","\u314D","\u3141"]),Sn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Sn("alveolar",["\u3145","\u3146"]),Sn("palatal",["\u3148","\u3149","\u314A"]),Sn("velar",["\u3131","\u3132","\u314B"]),Sn("glottal",["\u314E"])],jung:[[qt("\u3163","frontHigh"),qt("\u315F","frontHigh","w"),qt("\u3162","frontHigh","velar")],[qt("\u3161","backHighUnrounded")],[qt("\u315C","backHighRounded"),qt("\u3160","backHighRounded","j")],[qt("\u3154\u3150","frontMid"),qt("\u3156\u3152","frontMid","j"),qt("\u3159\u315A\u315E","frontMid","w")],[qt("\u3153","backMidUnrounded"),qt("\u3155","backMidUnrounded","j"),qt("\u315D","backMidUnrounded","w")],[qt("\u3157","backMidRounded"),qt("\u315B","backMidRounded","j")],[qt("\u314F","low"),qt("\u3151","low","j"),qt("\u3158","low","w")]],jong:[Sn("labial",["\u3142","\u3141"]),Sn("alveolar",["\u3137","\u3134","\u3139"]),Sn("velar",["\u3131","\u3147"])]},Sy=e=>e===jy?[]:Array.from(e),jy="__NO_CODA__",Ao=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),zi={cho:Ao(ko.cho),jung:Ao(ko.jung),jong:Ao(ko.jong)};zi.jung.flat().forEach(({v:e})=>{for(const t of Sy(e));}),new Set(zi.cho.flat().map(e=>e.v));function Ty(e,t=!0){const a=$a(e);o.useEffect(()=>{if(t)return Gn(()=>{a.current?.()})},[t,a])}function Pa(){const[e,t]=o.useState(null),a=o.useCallback(l=>t(l.getBoundingClientRect()),[]),r=o.useCallback(()=>t(null),[]),s=o.useCallback(l=>{const i=l.getBoundingClientRect();t(u=>u?null:i)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function My(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),l=o.useRef(null);o.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]);const i=o.useCallback((c,d)=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{a(c),s(d)},e)},[e]),u=o.useCallback(()=>{l.current&&clearTimeout(l.current),a(null),s(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:i,close:u}}function Wi(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[l,i]=o.useState(0),u=o.useCallback((p,h)=>{s(h),a(p),i(b=>b+1)},[]),c=o.useCallback(p=>u(p,"warning"),[u]),d=o.useCallback(p=>u(p,"normal"),[u]),m=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:l,showToast:u,showWarning:c,showNormal:d,clearToast:m}}function Ia(e){let t=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>t&&(t=r)}return t>0?`max(var(--z-menu, 1500), ${t+1})`:"var(--z-menu, 1500)"}function Fa({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,l]=o.useState(!1),[i,u]=o.useState({position:"fixed"}),c=o.useRef(null),d=o.useRef(null),m=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{s&&m()},[s,m]),o.useEffect(()=>{if(!s)return;let b=d.current?.offsetHeight??0;b>0&&m();let v=0,C=null;typeof ResizeObserver<"u"&&d.current&&(C=new ResizeObserver(()=>{const w=d.current?.offsetHeight??0;if(w!==b){if(b=w,++v>4){C?.disconnect(),C=null;return}m()}}),C.observe(d.current));const f=w=>{const B=w.target;r&&B.closest?.(r)||c.current?.contains(B)||d.current?.contains(B)||l(!1)};document.addEventListener("mousedown",f),document.addEventListener("pointerdown",f);let _=null;const g=()=>{if(typeof requestAnimationFrame>"u"){m();return}_===null&&(_=requestAnimationFrame(()=>{_=null,m()}))},k=w=>{d.current?.contains(w.target)||(t==="reposition"?g():t==="close"&&l(!1))};t!=="ignore"&&window.addEventListener("scroll",k,!0);const x=()=>{a==="reposition"?g():a==="close"&&l(!1)};let A=null;const y=()=>{x(),A&&clearTimeout(A),A=setTimeout(()=>{A=null,a==="reposition"&&m()},250)};return a!=="ignore"&&(window.addEventListener("resize",x),window.addEventListener("orientationchange",y)),()=>{_!==null&&cancelAnimationFrame(_),C?.disconnect(),document.removeEventListener("mousedown",f),document.removeEventListener("pointerdown",f),t!=="ignore"&&window.removeEventListener("scroll",k,!0),a!=="ignore"&&(window.removeEventListener("resize",x),window.removeEventListener("orientationchange",y)),A&&clearTimeout(A)}},[s,m,t,a,r]),o.useEffect(()=>{if(s)return Gn(()=>l(!1))},[s]);const p=o.useCallback(()=>l(b=>!b),[]),h=o.useCallback(()=>l(!1),[]);return{open:s,setOpen:l,toggle:p,close:h,style:i,triggerRef:c,menuRef:d}}function Ly(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:l=1100,feedbackMs:i=1500}={}){const[u,c]=o.useState([]),[d,m]=o.useState(0),[p,h]=o.useState("idle"),[b,v]=o.useState(null),[C,f]=o.useState([]),[_,g]=o.useState(null),[k,x]=o.useState(0),A=o.useRef(0),y=o.useCallback(I=>{A.current=typeof I=="function"?I(A.current):I,x(A.current)},[]),w=o.useRef(r),B=o.useRef(s);o.useEffect(()=>{w.current=r,B.current=s},[r,s]);const E=o.useRef([]),D=()=>{E.current.forEach(clearTimeout),E.current=[]},N=(I,q)=>{E.current.push(setTimeout(q,I))};o.useEffect(()=>()=>D(),[]);const F=u[d]?.id??null,$=o.useRef(null),Y=o.useCallback(()=>{D(),h("playing"),f([]),g(null),y(0);let I=0;e.forEach((q,z)=>{N(I,()=>{m(z),v(q.id),w.current?.(q)}),N(I+1e3,()=>{v(null),f(U=>[...U,q.id])}),I+=1300}),N(I,()=>{h("done"),B.current?.({score:0,total:e.length})})},[e,y]),M=o.useCallback((I,q)=>{if(q>=I.length){h("done"),B.current?.({score:A.current,total:I.length});return}$.current=null,m(q),g(null),h("playing"),v(I[q].id),w.current?.(I[q]),N(l,()=>{v(null),h("waiting")})},[l]),P=o.useCallback(()=>{D();const I=Ta(e);c(I),y(0),f([]),M(I,0)},[e,M,y]),T=o.useCallback(()=>{t==="playback"?(c(e),Y()):P()},[t,e,Y,P]),K=o.useCallback(()=>{D(),h("idle"),v(null),f([]),g(null),m(0),y(0),c([])},[y]),V=JSON.stringify(e.map(I=>[I.id,I.label,I.angleDeg,I.deg,I.row,I.shortcut]));o.useEffect(()=>(a?T():K(),()=>D()),[t,V,a]);const O=o.useCallback(I=>{p!=="waiting"||t==="playback"||$.current===d||($.current=d,g(I),I===u[d]?.id&&y(q=>q+1),t==="exam"?(h("playing"),N(400,()=>M(u,d+1))):(h("feedback"),N(i,()=>M(u,d+1))))},[p,t,u,d,M,i,y]),Q=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:b,playedIds:C,selectedId:_,answerId:F,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:O},index:d,total:Q,score:k,phase:p,done:p==="done",start:T,reset:K}}const No=new Map,Eo=new Map,$y=()=>()=>{},Ry=()=>!0,Py=()=>!1;function Hi(e){const t=/^data:image\/svg\+xml(;base64)?,([\s\S]*)$/.exec(e);if(!t)return null;try{if(!t[1])return decodeURIComponent(t[2]);const a=Uint8Array.from(atob(t[2]),r=>r.charCodeAt(0));return new TextDecoder("utf-8").decode(a)}catch{return null}}function Iy(e){if(typeof window>"u")return"";const t=(a,r)=>{const s=r.attrName.toLowerCase(),l=r.attrValue.trim();(s==="href"||s==="xlink:href")&&!l.startsWith("#")&&(r.keepAttr=!1),(s==="style"||l.includes("\\")&&l.includes("("))&&(r.keepAttr=!1);const i=l.replace(/url\s*\(\s*(['"]?)#[^)\s'"]+\1\s*\)/gi,"");/url\s*\(/i.test(i)&&(r.keepAttr=!1)};sa.addHook("uponSanitizeAttribute",t);try{return sa.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","style","foreignObject"]})}finally{sa.removeHook("uponSanitizeAttribute",t)}}function Fy(e,t){const a=new Set;for(const i of e.matchAll(/url\(\s*(['"]?)#([^)\s"']+)\1\s*\)/g))a.add(i[2]);for(const i of e.matchAll(/(?:xlink:)?href="#([^"]+)"/g))a.add(i[1]);const r=new Set([...e.matchAll(/id="([^"]*)"/g)].map(i=>i[1])),s=[...a].filter(i=>r.has(i));if(s.length===0)return e;let l=e;for(const i of s){const u=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=`${t}-${i}`;l=l.replace(new RegExp(`id="${u}"`,"g"),`id="${c}"`).replace(new RegExp(`url\\(\\s*(['"]?)#${u}\\1\\s*\\)`,"g"),(d,m)=>`url(${m}#${c}${m})`).replace(new RegExp(`((?:xlink:)?href)="#${u}"`,"g"),`$1="#${c}"`)}return l}function Oy(e){const t=Eo.get(e);if(t)return t;const a=fetch(e).then(r=>r.ok?r.text():null).then(r=>(r!=null&&No.set(e,r),r)).catch(()=>null).finally(()=>{Eo.delete(e)});return Eo.set(e,a),a}function zy(e,t=!0){const a=o.useSyncExternalStore($y,Ry,Py)&&t&&e?Hi(e)??No.get(e)??null:null,[r,s]=o.useState({src:e,enabled:t,svg:a});return o.useEffect(()=>{if(!t||!e){s({src:e,enabled:t,svg:null});return}const l=Hi(e)??No.get(e)??null;if(l!==null){s({src:e,enabled:t,svg:l});return}let i=!0;return Oy(e).then(u=>{i&&s({src:e,enabled:t,svg:u})}),()=>{i=!1}},[e,t]),r.src===e&&r.enabled===t?r.svg:a}function Wy({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:l,size:i="medium",actionVariant:u,titleColor:c,descriptionColor:d,className:m=""}){const p=s??l??"main",h=o.useRef(null),[b,v]=o.useState("main"),C=Cn("(max-width: 767px)"),f=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const k=h.current;if(!k)return;const x=_o(k),A=(y,w,B)=>{if(B!==void 0)k.style.setProperty(w,B),f.current[y]=!0;else if(f.current[y]){const E=x?.[y];E?k.style.setProperty(w,E):k.style.removeProperty(w),f.current[y]=!1}};A("title","--promo-banner-bg-title",c),A("description","--promo-banner-bg-description",d)},[c,d,p]),o.useLayoutEffect(()=>{const k=h.current;if(!k)return;const x=_o(k);v(x?.actionVariant??"main")},[p]);const _=Be("promo-banner",`promo-banner--${i}`,m),g=Li[p];return n.jsxs("div",{ref:h,className:_,role:"note",children:[n.jsx(g,{}),n.jsxs("div",{className:"promo-banner__text",children:[n.jsx("span",{className:`promo-banner__title ${i==="small"?"body-2":"h2"}`,children:e}),t&&n.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&n.jsx(fe,{htmlType:"button",size:40,variant:u??b,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...C?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function Hy({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":s}){const{t:l}=_e.useTranslation(),i=s??l("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[d,m]=o.useState(0),[p,h]=o.useState(!1),[b,v]=o.useState(!1),[C,f]=o.useState(!1),_=o.useRef(null),g=o.useRef(null),k=o.useRef(null),x=bo(),A=p||b||C,y=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||A||x)return;const B=window.setInterval(()=>m(E=>(Math.min(E,c-1)+1)%c),t);return()=>window.clearInterval(B)},[c,t,A,x]);const w=B=>{g.current!=null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{g.current=null,f(!1)},B)};return o.useEffect(()=>()=>{g.current!=null&&window.clearTimeout(g.current)},[]),o.useEffect(()=>{if(!C)return;const B=E=>{E.pointerType==="touch"&&(k.current&&k.current.contains(E.target)||(g.current!=null&&(window.clearTimeout(g.current),g.current=null),f(!1)))};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[C]),c===0?null:n.jsxs("section",{ref:k,className:Be("top-banner",r),"aria-label":i,"aria-roledescription":"carousel",onPointerEnter:B=>{_.current=B.pointerType},onPointerDown:B=>{_.current=B.pointerType,B.pointerType==="touch"&&(g.current!=null&&(window.clearTimeout(g.current),g.current=null),f(!0))},onPointerUp:B=>{B.pointerType==="touch"&&w(5e3)},onPointerCancel:B=>{B.pointerType==="touch"&&w(5e3)},onMouseEnter:()=>{_.current!=="touch"&&h(!0)},onMouseLeave:()=>h(!1),onFocus:B=>{let E=!0;try{E=B.target.matches(":focus-visible")}catch{E=!0}v(E)},onBlur:B=>{B.currentTarget.contains(B.relatedTarget)||v(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${y*100}%)`},children:u.map((B,E)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":E!==y,...E!==y?{inert:!0}:{},children:B},E))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[y]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((B,E)=>n.jsx("button",{type:"button",className:`top-banner__dot${E===y?" top-banner__dot--active":""}`,"aria-label":l("topBanner.dotAriaLabel",{count:c,index:E+1,defaultValue:`${c}\uAC1C \uC911 ${E+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":E===y,onClick:()=>m(E)},E))})]})}function Vy({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:l="body-2",bodyClassName:i="body-2",className:u=""}){const{t:c}=_e.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[n.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const m=d.currentTarget.closest('[role="list"]');if(!m)return;const p=Array.from(m.querySelectorAll("[data-accordion-header]")),h=p.indexOf(d.currentTarget);(d.key==="ArrowDown"?p[h+1]:p[h-1])?.focus()}},children:[s&&n.jsx("div",{className:"accordion-item__avatar",children:s}),n.jsx("div",{className:`accordion-item__title ${l}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(nt,{icon:a?"chevron-up":"chevron-down",label:a?c("accordion.collapse","\uC811\uAE30"):c("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&n.jsx("div",{className:`accordion-item__body ${i}`,children:typeof t=="string"?n.jsx("p",{children:t}):t})]})}function qy({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[l,i]=o.useState({index:t}),u=(c,d)=>l.id!=null&&c.id!=null?c.id===l.id:l.id==null&&d===l.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>n.jsx(Vy,{title:c.title,body:c.body,avatar:c.avatar,open:u(c,d),onToggle:()=>i(u(c,d)?{index:-1}:{index:d,id:c.id}),bodyClassName:s},c.id??d))})}function Uy(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:n.jsx("polyline",{points:"2,6 5,9 10,3"})})}function Gy(){return n.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[n.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),n.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function Ky(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:n.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function $t(e){const{t}=_e.useTranslation(),{type:a="bar",size:r,className:s="","aria-label":l,"aria-hidden":i}=e;if(a==="dot"){const{icon:A,number:y,position:w="top-right",onClick:B,animate:E=!1}=e,D=A??"check",N=y!==void 0?"number":D,F=typeof r=="number"?r:32,$=Be("circle-badge",`circle-badge--${N}`,`circle-badge--${w}`,`circle-badge--${F}`,E?"circle-badge--animate":"",B?"circle-badge--clickable":"",s),Y=y!==void 0?t("badge.nthSelected",{n:y,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:t("badge.selected","\uC120\uD0DD\uB428"),remove:t("badge.remove","\uC81C\uAC70"),minus:t("badge.exclude","\uC81C\uC678")}[D];return n.jsxs("span",{className:$,onClick:B,onKeyDown:B?M=>{M.key!=="Enter"&&M.key!==" "||(M.preventDefault(),M.currentTarget.click())}:void 0,"aria-label":i?void 0:l??Y,"aria-hidden":i||void 0,role:B?"button":i?void 0:"img",tabIndex:B?0:void 0,children:[y!==void 0&&y,y===void 0&&D==="check"&&n.jsx(Uy,{}),y===void 0&&D==="remove"&&n.jsx(Gy,{}),y===void 0&&D==="minus"&&n.jsx(Ky,{})]})}const{label:u,children:c,variant:d="default",fill:m="filled",minWidth:p,iconLeft:h,iconRight:b,color:v}=e,C=typeof r=="number"?"medium":r??"medium",f={small:"caption-2b",medium:"body-3b",large:"body-2b"}[C]??"body-2b",_={small:12,medium:14,large:16}[C]??14,g=Be("badge",`badge--${d}`,`badge--${C}`,m!=="filled"?`badge--${m}`:"",f,s),k=v?.startsWith("--")?`var(${v})`:v,x=p!==void 0||k?{...p!==void 0?{minWidth:typeof p=="number"?`${p}px`:p}:{},...k?{"--badge-color":k}:{}}:void 0;return n.jsxs("span",{className:g,style:x,"aria-label":i?void 0:l,role:l&&!i?"img":void 0,"aria-hidden":i||void 0,children:[h&&n.jsx(nt,{icon:h,size:_,className:"badge__icon"}),u??c,b&&n.jsx(nt,{icon:b,size:_,className:"badge__icon"})]})}function Oa({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:s}=_e.useTranslation(),l=r==="small"?40:48,[i,u]=o.useState([]),c=o.useMemo(()=>{const f=[{title:null,columns:e}];let _=e;for(const g of i){const k=_?.[g.ci]?.items?.[g.ii];if(!k||!Array.isArray(k.children)||!k.children.length)break;_=[{title:null,items:k.children}],f.push({title:k.label||null,columns:_})}return f},[e,i]),d=c[c.length-1],m=c.length-1,p=o.useCallback(()=>u(f=>f.slice(0,Math.max(0,Math.min(f.length,m)-1))),[m]),h=o.useRef(null),b=o.useRef(null),v=c.length;o.useEffect(()=>{b.current||(b.current=document.activeElement);let f=0,_=0;const g=()=>{const k=h.current?.querySelector("button:not([disabled])");if(k&&k.offsetParent){k.focus({preventScroll:!0});return}_++<20&&(f=requestAnimationFrame(g))};return f=requestAnimationFrame(g),()=>cancelAnimationFrame(f)},[v]),o.useEffect(()=>()=>{b.current?.focus?.({preventScroll:!0})},[]);const C=o.useCallback((f,_,g)=>{if(f){if(Array.isArray(f.children)&&f.children.length){u(k=>[...k.slice(0,m),{ci:_,ii:g}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,m]);return n.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(c.length>1||d.title)&&n.jsxs("div",{className:"tooltip-menu__header",children:[c.length>1?n.jsx(fe,{htmlType:"button",size:l,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:p,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),n.jsx("div",{className:"tooltip-menu__columns",ref:h,children:d.columns&&d.columns.map((f,_)=>n.jsxs("div",{className:"tooltip-menu__column",children:[f.title?n.jsx("div",{className:"tooltip-menu__column-title body-3",children:f.title}):null,n.jsx("div",{className:"tooltip-menu__items",children:(f.items||[]).map((g,k)=>n.jsxs(o.Fragment,{children:[g.separatorBefore&&k>0&&n.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),n.jsx(fe,{htmlType:"button",className:"tooltip-menu__item",size:l,type:g.label?"bar":"dot",icon:g.selected?"check":g.icon||"none",rightIcon:Array.isArray(g.children)&&g.children.length?"chevron-right":g.badgeCount?n.jsx($t,{type:"dot",position:"inline",number:Math.min(g.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:g.label,ariaLabel:g.label&&g.badgeCount&&g.badgeCount>0?s("nav.badgeLabel",{label:g.label,count:g.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):g.label,onClick:()=>C(g,_,k),selected:g.selected,disabled:g.disabled,showTooltipInfo:g.tooltip||!1,useBorder:!1,align:"left"})]},k))})]},_))})]})}const Vi=".content-area";function Do(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(Vi);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&Mt("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${Vi}) \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 So=52,cr=10,qi=e=>e&&e>0?e:0;function Ui({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:s,moreItems:l=[],scrollContainer:i}){const{t:u}=_e.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",m=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[h,b]=o.useState(0),v=e.length;o.useEffect(()=>{const I=p.current;if(!I)return;const q=()=>{const S=typeof getComputedStyle=="function"?getComputedStyle(I):null,R=I.clientWidth-(parseFloat(S?.paddingLeft??"")||0)-(parseFloat(S?.paddingRight??"")||0),L=I.querySelector(".bottom-nav__left"),Z=L?.nextElementSibling,ue=(L?.offsetWidth??0)+(L&&Z?.classList.contains("bottom-nav__divider")?Z.offsetWidth:0);b(Math.max(0,R-ue))};if(q(),typeof ResizeObserver>"u")return;const z=new ResizeObserver(q);z.observe(I);const U=I.querySelector(".bottom-nav__left");return U&&z.observe(U),()=>z.disconnect()},[s]);const C=So+1,f=I=>Math.max(0,Math.floor((I+cr)/(So+cr))),_=v*(So+cr)-cr<=h,g=h<=0||l.length===0&&_?v:Math.min(v,f(h-C)),k=h>0&&g<v,x=k?g:v,A=e.slice(0,x),y=e.slice(x),w=k||l.length>0,B=o.useCallback((I,q)=>({position:"fixed",bottom:window.innerHeight-I.top+8,right:window.innerWidth-I.right,zIndex:Ia(q)}),[]),E=o.useId(),{open:D,toggle:N,close:F,style:$,triggerRef:Y,menuRef:M}=Fa({computeStyle:B,onScroll:"ignore",onResize:"reposition"}),P=o.useCallback((I,q)=>q>0?u("nav.badgeLabel",{label:I,count:q,defaultValue:"{{label}}, {{count}}\uAC1C"}):I,[u]),T=o.useCallback((I,q)=>q>0?u("nav.badgeInsideLabel",{label:I,count:q,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):I,[u]),K=o.useCallback(()=>s?.(c),[s,c]),V=o.useMemo(()=>y.find(I=>!!I.key&&I.key===t)??l.find(I=>I.selected||I.key&&I.key===t),[y,t,l]),O=o.useMemo(()=>[{items:[...y.map(I=>({label:I.label,icon:I.icon,badgeCount:I.badgeCount,selected:!!I.key&&I.key===t,closeOnSelect:!0,disabled:I.state==="disabled",onClick:()=>{I.state!=="disabled"&&(I.key&&a&&(a(I.key),Do(i,"BottomNav")),F())}})),...l.map(I=>({label:I.label,icon:I.icon,badgeCount:I.badgeCount,selected:I.selected??(!!I.key&&I.key===t),closeOnSelect:!0,onClick:()=>{I.onClick?.(),F()}}))]}],[y,l,t,a,F]),Q=[...y,...l].reduce((I,q)=>I+qi(q.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:p,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__left",children:n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:d,ariaLabel:m,className:"bottom-nav-item",onClick:K})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:A.map((I,q)=>{const z=qi(I.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:I.icon,ariaLabel:P(I.label,z),selected:!!I.key&&I.key===t,disabled:I.state==="disabled",className:"bottom-nav-item",onClick:()=>{I.key&&(a?.(I.key),Do(i,"BottomNav"))}}),z>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx($t,{type:"dot",position:"top-right",number:Math.min(z,99),size:24})})]},I.key??`__slot-${q}`)})}),w&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),n.jsx("div",{className:"bottom-nav__right",children:n.jsxs("div",{ref:Y,className:"bottom-nav__slot",children:[n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:V?.icon??"ellipsis",ariaLabel:T(V?.label??u("nav.more","\uB354\uBCF4\uAE30"),Q),selected:!!V,className:"bottom-nav-item",onClick:N,"aria-expanded":D,"aria-controls":D?E:void 0}),Q>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx($t,{type:"dot",position:"top-right",number:Math.min(Q,99),size:24})}),D&&cn.createPortal(n.jsx("div",{id:E,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:$,ref:M,children:n.jsx(Oa,{columns:O,onClose:F})}),document.body)]})})]})]})}function Gi(e){if(typeof e!="string")return!1;let t="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(t+=r)}if(!t)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(t);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function Ki(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function Yy(e){const{t}=_e.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:l,onSetting:i,onHelp:u,onFeedback:c,onAccount:d}=e||{},m="default";return s||l||i||u||c||d?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),l&&n.jsxs("span",{className:"side-nav__notification-wrap",children:[n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bell",ariaLabel:Ki(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:l,selected:a==="notifications"}),!!r&&r>0&&n.jsx($t,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),i&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:i,selected:a==="settings"}),u&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),c&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),d&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function Yi(e){const{t}=_e.useTranslation(),{item:a,itemKey:r,label:s,icon:l,active:i,onClick:u,style:c,state:d,labelStyle:m}=e||{},p=a?.key??r??"",h=a?.label??s??"",b=a?.icon??l??"",v=a?.badge??0,C=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(nt,{icon:b,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),f=d==="disabled",_=`side-nav__item ${i?"active":""} ${d||""} ${f?"disabled":""} ${a?.child?"side-nav__item--child":""}`,g=o.useCallback(k=>{if(f)return;const x=k.detail>0;if(x)try{k.currentTarget.blur()}catch{}u?.(p,k.currentTarget,x)},[f,p,u]);return n.jsxs("button",{type:"button",className:_,onClick:g,"aria-label":typeof h=="string"?Ki(t,h,v):void 0,"aria-current":i?"page":void 0,style:c,"aria-disabled":f,children:[C,n.jsx("span",{className:"side-nav__label button-1 f",style:m,children:h}),v>0&&n.jsx($t,{type:"dot",position:"inline",number:Math.min(v,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function Zi(e){const{t}=_e.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:h,onAppModeChange:b,scrollContainer:v}=e||{},C=h==="manager",f=o.useCallback(()=>b?.(C?"malgwi":"manager"),[b,C]),_=o.useRef(null),[g,k]=o.useState(null);o.useEffect(()=>{const B=_.current;if(!B)return;let E=null;const D=()=>{const{scrollHeight:$,clientHeight:Y,scrollTop:M}=B;if($<=Y+1){k(O=>O===null?O:null);return}const P=Math.max(24,Y/$*Y),T=Y-P,K=$-Y,V={top:Math.round(M/K*T),height:Math.round(P)};k(O=>O&&O.top===V.top&&O.height===V.height?O:V)},N=()=>{if(typeof requestAnimationFrame>"u"){D();return}E===null&&(E=requestAnimationFrame(()=>{E=null,D()}))};D(),B.addEventListener("scroll",N,{passive:!0});const F=typeof ResizeObserver<"u"?new ResizeObserver(N):null;F?.observe(B);for(const $ of Array.from(B.children))F?.observe($);return()=>{E!==null&&cancelAnimationFrame(E),B.removeEventListener("scroll",N),F?.disconnect()}},[a]);const x=o.useRef(null),A=o.useCallback(B=>{const E=_.current;E&&(B.preventDefault(),x.current={y:B.clientY,top:E.scrollTop},B.currentTarget.setPointerCapture(B.pointerId))},[]),y=o.useCallback(B=>{const E=_.current,D=x.current;!E||!D||(E.scrollTop=D.top+(B.clientY-D.y)*(E.scrollHeight/E.clientHeight))},[]),w=o.useCallback(B=>{x.current=null,B.currentTarget.hasPointerCapture(B.pointerId)&&B.currentTarget.releasePointerCapture(B.pointerId)},[]);return n.jsxs("nav",{ref:_,"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[g&&n.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:n.jsx("div",{className:"side-nav__scroll-thumb",style:{top:g.top,height:g.height},onPointerDown:A,onPointerMove:y,onPointerUp:w,onPointerCancel:w})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(B=>!B.section&&(B.key||B.label)).map((B,E)=>n.jsxs(o.Fragment,{children:[B.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(Yi,{item:B,active:!!B.key&&B.key===r,state:B.disabled?"disabled":void 0,onClick:(D,N,F)=>{if(B.disabled)return;if(B.href){if(Gi(B.href)&&window.open(B.href,"_blank","noopener,noreferrer"),F)try{N?.blur()}catch{}return}if(s?.(B.key),Do(v,"SideNav"),!F)return;try{N?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const $=document.querySelector(".header");if($){const Y=typeof $.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&Y&&$.matches(":hover"))){$.classList.add("header--force-collapsed");const M=()=>{$.classList.remove("header--force-collapsed"),$.removeEventListener("mouseenter",M)};$.addEventListener("mouseenter",M)}}}})]},B.key??`side-nav__item-${E}`)),b&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),b&&n.jsx(Yi,{item:{key:"__mode-switch__",label:C?t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:C?"arrow-left":"arrow-right"},onClick:f})]}),n.jsx(Yy,{activeKey:r,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p})]})}var dr='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',jo='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',Zy='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_SpeechEar" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>';function Xi({appMode:e}){const{t}=_e.useTranslation(),a=e==="manager",r=a?jo:dr,s=Zy;return n.jsxs("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:[n.jsx("img",{src:s,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),n.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image brand-identity__image--logo"})]})}function Ji({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:h,onAppModeChange:b,scrollContainer:v}){const{t:C}=_e.useTranslation(),f=Cn("(max-width: 767px)"),_=o.useMemo(()=>(a??[]).filter($=>!$.section&&($.key||$.label)).map($=>({key:$.key,label:typeof $.label=="string"?$.label:void 0,icon:$.icon,state:$.disabled?"disabled":void 0,badgeCount:$.badge})),[a]),g=o.useCallback($=>{const Y=a?.find(M=>M.key===$);if(!Y?.disabled){if(Y?.href){Gi(Y.href)&&window.open(Y.href,"_blank","noopener,noreferrer");return}t?.($)}},[a,t]),k=o.useMemo(()=>{const $=[];return i&&$.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:i}),u&&$.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:l,onClick:u}),d&&$.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),m&&$.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),p&&$.push({key:"feedback",icon:"bug",label:C("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:p}),c&&$.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:c}),$},[C,i,u,d,m,p,c,l]),x=o.useCallback(($,Y)=>({position:"fixed",top:$.bottom+8,right:Math.max(8,window.innerWidth-$.right),zIndex:Ia(Y)}),[]),A=o.useId(),{open:y,toggle:w,close:B,style:E,triggerRef:D,menuRef:N}=Fa({computeStyle:x,onScroll:"ignore",onResize:"reposition"}),F=o.useMemo(()=>[{items:k.map($=>({label:$.label,icon:$.icon,badgeCount:$.badgeCount,selected:$.selected??(!!$.key&&$.key===e),closeOnSelect:!0,onClick:()=>{$.onClick?.(),B()}}))}],[k,e,B]);return n.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(Xi,{appMode:h}),n.jsxs("div",{className:"header__menu-button",ref:D,children:[n.jsx(fe,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&l&&l>0?C("nav.badgeInsideLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:l,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:w,"aria-expanded":y,"aria-controls":y?A:void 0}),!!u&&!!l&&l>0&&n.jsx($t,{type:"dot",number:Math.min(l,99),size:24,"aria-hidden":!0}),y&&cn.createPortal(n.jsx("div",{id:A,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:E,ref:N,children:n.jsx(Oa,{columns:F,onClose:B})}),document.body)]})]}),n.jsx(Zi,{scrollContainer:v,items:a,activeKey:e??void 0,onChange:t,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:h,onAppModeChange:b}),f&&n.jsx(Ui,{items:_,activeKey:e??void 0,onChange:g,scrollContainer:v,appMode:h,onAppModeChange:b})]})}const Xy=Ji,Jy=()=>Vt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function Qi(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const t=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(t))return ua(`${t.toLocaleString("ko-KR")}\uC6D0`)}return ua(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function Qy(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function e2(e){if(e.durationDays&&e.durationDays>0){const l=e.durationDays;return l%365===0?`${l/365}\uB144`:`${l}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[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||Jy()}function t2(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function eu(e){return{type:e.type??Qy(e),plan:e2(e),label:e.label,price:Qi(e.price),originalPrice:Qi(e.originalPrice),discountLabel:e.discountLabel}}var n2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko_mono" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',a2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko_mono" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z" fill="%23fff"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z" fill="%23fff"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',tu='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB_mono" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="%23fff"/></svg>';const Zn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},To=new WeakMap;function r2(e){if(e)return To.get(e)}function jn(e,t){e&&(e.style.setProperty(Zn.text,t.text),e.style.setProperty(Zn.sub,t.sub),t.copyrightColor&&e.style.setProperty(Zn.copyright,t.copyrightColor),To.set(e,t))}function Tn(e){e&&(e.style.removeProperty(Zn.text),e.style.removeProperty(Zn.sub),e.style.removeProperty(Zn.copyright),To.delete(e))}const nu={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#1a1a1a"};function au(e={}){const t=Lt(nu,jn,Tn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-two-circle__c1"}),n.jsx("div",{className:"pass-card-bg-two-circle__c3"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${tu}")`}})]})}const ru="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71Z",ma=240;var za='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB" xmlns="http://www.w3.org/2000/svg" width="240" height="240" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 240 240"><defs><linearGradient id="linear-gradient" x1="62.99" y1="62.99" x2="190.71" y2="190.71" gradientUnits="userSpaceOnUse"><stop offset=".2" stop-color="%23499cdf"/><stop offset=".8" stop-color="%234dcdc0"/></linearGradient></defs><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="url(%23linear-gradient)"/></svg>';const o2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"},s2=100,l2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function ou(e={}){const t=Lt(o2,jn,Tn),a="var(--color-main)",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[n.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:l2.map(({scale:l,opacity:i},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${l*s2/ma}) translate(${-ma/2} ${-ma/2})`,opacity:i,children:n.jsx("path",{d:ru,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${za}")`}})]})}const i2={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",logoColor:"_mono",copyrightColor:"#ffffff"},u2=100,c2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function d2(e={}){const t=Lt(i2,jn,Tn),a="#ffffff",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[n.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:c2.map(({scale:l,opacity:i},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${l*u2/ma}) translate(${-ma/2} ${-ma/2})`,opacity:i,children:n.jsx("path",{d:ru,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${tu}")`}})]})}const p2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function m2(e={}){const t=Lt(p2,jn,Tn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${za}")`}})]})}const h2={Logo_SpeechEar_ko:{"":dr,_mono:n2},Logo_SpeechEarManager_ko:{"":jo,_mono:a2}};function C2(e,t){if(e)return h2[e]?.[t??""]??void 0}const f2={speechear:dr,manager:jo},g2={speechear:"Logo_SpeechEar_ko",manager:"Logo_SpeechEarManager_ko"},su=10;function b2(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 lu(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const s=Math.floor(e/60);return s>0?t("passCard.remainingMinute",{n:s}):t("passCard.remainingSecond",{n:Math.floor(e)})}function y2(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),s=a==="\uC624\uD508\uD2B9\uAC00"||a===Vt.t("passCard.specialLabel");return r?n.jsx(m2,{}):s?n.jsx(d2,{}):n.jsx(ou,{})}return n.jsx(au,{})}function iu({ariaLabel:e,product:t,showPrice:a=!1,plan:r,type:s,endDate:l,remainingSeconds:i,endInclusive:u=!1,state:c="active",bg:d,bgOnly:m=!1,textColor:p,subColor:h,copyrightColor:b,logoSrc:v,label:C,price:f,originalPrice:_,discountLabel:g,onUse:k,onRefund:x,onDelete:A}){const{t:y}=_e.useTranslation(),w=t?eu(t):void 0,B=s??w?.type??"speechear",E=r??w?.plan??y("passCard.planSuffix","\uC774\uC6A9\uAD8C"),D=C??w?.label,N=f??(a?w?.price:void 0),F=_??(a?w?.originalPrice:void 0),$=g??w?.discountLabel,Y=o.useMemo(()=>{if(N)return null;const H=t?.durationDays??t2(t?.code);if(!H||H<=0)return i!=null?{percent:null,remainingLabel:lu(i,y)}:null;const G=H*86400;let pe;if(i!=null)pe=i;else if((c==="active"||c==="expired")&&l){const me=new Date(l).getTime();if(Number.isNaN(me))return null;const se=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(l)),ge=/^(\d{4})-(\d{2})-(\d{2})/.exec(La()),Ce=Math.round(se&&ge?(Date.UTC(+se[1],+se[2]-1,+se[3])-Date.UTC(+ge[1],+ge[2]-1,+ge[3]))/864e5:(me-Date.now())/864e5);pe=Math.max(0,u?Ce+1:Ce)*86400}else c==="expired"?pe=0:pe=G;const Ne=b2(pe),ye=Math.max(0,Math.min(100,Math.floor(Math.min(Ne,G)/G*100)));return c==="pending"&&ye>=100?null:{percent:ye,remainingLabel:c==="expired"?y("passCard.expired","\uB9CC\uB8CC\uB428"):lu(pe,y)}},[N,c,l,i,u,t?.durationDays,t?.code,y]),M=o.useRef(null),[P,T]=o.useState({}),[K,V]=o.useState(null),O=!!(k||x||A),Q=o.useRef(!1),I=o.useRef(void 0),[q,z]=o.useState(v);o.useLayoutEffect(()=>{z(v)},[v]),o.useLayoutEffect(()=>{const H=M.current;H&&(p!==void 0&&H.style.setProperty("--pass-card-text",p),h!==void 0&&H.style.setProperty("--pass-card-sub",h),b!==void 0&&H.style.setProperty("--pass-card-copyright",b))},[p,h,b]),o.useLayoutEffect(()=>{const H=M.current;if(!H)return;const G=r2(H);if(!v){const pe=g2[B],Ne=c==="expired"?"_mono":G?.logoColor??"",ye=C2(pe,Ne);z(ye)}},[d,v,B,c]);const U=H=>{const G=M.current;if(!G)return null;const{left:pe,top:Ne,width:ye,height:me}=G.getBoundingClientRect(),se=(H.clientX-pe)/ye-.5;return{rotateX:-((H.clientY-Ne)/me-.5)*su,rotateY:se*su}},S=(H,G)=>{const pe=G*-.7,Ne=H*.7+10,ye=20+(Math.abs(H)+Math.abs(G))*.4;return`${pe}px ${Ne}px ${ye}px rgba(0, 0, 0, 0.18)`},R=o.useCallback(H=>{if(pa())return;Q.current=!0,clearTimeout(I.current),I.current=setTimeout(()=>{Q.current=!1},200);const G=U(H);G&&T({transform:`perspective(800px) rotateX(${G.rotateX}deg) rotateY(${G.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:S(G.rotateX,G.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),L=o.useCallback(H=>{if(pa())return;const G=U(H);if(!G)return;const pe=Q.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";T({transform:`perspective(800px) rotateX(${G.rotateX}deg) rotateY(${G.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:S(G.rotateX,G.rotateY),transition:pe})},[]),Z=o.useCallback(()=>{clearTimeout(I.current),Q.current=!1,T({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),ue=o.useCallback(()=>V(null),[]),oe=o.useMemo(()=>{const H=y("passCard.planSuffix","\uC774\uC6A9\uAD8C"),G=E.replace("\uC774\uC6A9\uAD8C","").replace(H==="\uC774\uC6A9\uAD8C"?"":H,"").trim(),pe=G.match(/^(.*?)(일|년)$/);return pe?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:pe[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:pe[2]==="\uB144"?y("passCard.unitYear","\uB144"):y("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:G})},[E,y]),le=o.useMemo(()=>{const H=ua(N);if(!H)return null;const G=H.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!G)return n.jsx("span",{className:"h1",children:H});const[,pe,Ne,ye]=G;return n.jsxs(n.Fragment,{children:[pe&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:pe}),n.jsx("span",{className:"h1 pass-card__price-amount",children:Ne}),ye.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:ye.trim()})]})},[N]),re=o.useCallback(()=>{O&&V(H=>{if(H)return null;const G=M.current?.getBoundingClientRect();if(!G)return null;const pe=50;return{left:G.left,right:G.right,width:G.width,height:G.height,x:G.x,y:G.y+pe,top:G.top+pe,bottom:G.bottom+pe}})},[O]),W=o.useCallback(H=>{O&&(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),re())},[O,re]),te=[{items:[...k?[{label:y("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{k(),V(null)},closeOnSelect:!0}]:[],...x?[{label:y("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),V(null)},closeOnSelect:!0}]:[],...A?[{label:y("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{A(),V(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:M,className:`pass-card pass-card--${c}${O?" pass-card--clickable":""}`,style:P,onMouseEnter:R,onMouseMove:L,onMouseLeave:Z,onPointerUp:H=>{H.pointerType==="touch"&&Z()},onPointerCancel:H=>{H.pointerType==="touch"&&Z()},onClick:re,onKeyDown:O?W:void 0,role:O?"button":void 0,tabIndex:O?0:void 0,"aria-label":e,"aria-haspopup":O?"menu":void 0,"aria-expanded":O?!!K:void 0,children:[d??y2(B,E,D),!m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card__top",children:n.jsxs("div",{className:"pass-card__top-left",children:[n.jsx("img",{src:q??f2[B],className:"pass-card__logo",alt:B==="manager"?y("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):y("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:oe}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:D?y("passCard.labeledPlan",{label:D}):y("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),N?n.jsxs("div",{className:"pass-card__price-area",children:[$&&n.jsx("span",{className:"pass-card__discount body-3",children:$}),n.jsxs("div",{className:"pass-card__price",children:[F&&n.jsx("span",{className:"pass-card__price-original body-3",children:ua(F)}),le]})]}):Y?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:Y.remainingLabel}),Y.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:Y.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),K&&n.jsx(vn,{anchorRect:K,onClose:ue,ariaLabel:y("tooltip.menu","\uBA54\uB274"),children:n.jsx(Oa,{columns:te,onClose:ue,size:"small"})})]})}const v2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#1a1a1a"};function x2(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=Lt(v2,jn,Tn);return n.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[n.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:[n.jsx("defs",{children:n.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[n.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),n.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),n.jsx("g",{transform:"translate(25, 45)",children:n.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(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${za}")`}})]})}const _2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function w2(e={}){const t=Lt(_2,jn,Tn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${za}")`}})]})}function B2(e,t){if(e){if(t==="manager_pro")return n.jsx(w2,{});if(t==="manager_standard")return n.jsx(x2,{});if(t==="manager_lite")return n.jsx(ou,{})}}function k2(e){const t=ua(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,s,l]=a;return n.jsxs(n.Fragment,{children:[r&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,l.trim()&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:l.trim()})]})}function A2(e){const{t}=_e.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:l,period:i="monthly",ownedCodes:u}=e||{},c=x=>!!x&&!!u?.includes(x),d=x=>x.onceOnly??/오픈\s*특가/.test(x.label??""),m=(s.tiers||[]).some(x=>d(x)&&c(x.code)),p=x=>{const A=x.prices?x.prices[i]:x.price;return A?(s.tiers||[]).some(y=>!!y.badge&&y.originals?.[i]===A):!1},h=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",b=t("payment.plan.freePrice","\uBB34\uB8CC"),v=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=x=>x.prices?x.prices[i]:x.price,f=(s.tiers||[]).length>0&&(s.tiers||[]).every(x=>{const A=C(x);return A==="\uBB34\uB8CC"||A===b||A==="0\uC6D0"||typeof A=="string"&&/\d/.test(A)&&!/[1-9]/.test(A)}),_=(s.tiers||[]).length>0&&(s.tiers||[]).every(x=>{const A=C(x);return A==="\uBB38\uC758"||A===v}),g=s.group==="org",k=g?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx($t,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),n.jsxs("div",{className:"payment-plan__title",children:[n.jsx("p",{className:"payment-plan__quote body-3b",style:{color:h},children:s.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((x,A)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(nt,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),x]},A))})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.features||[]).map((x,A)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(nt,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),x]},A))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:f?null:_?n.jsx(fe,{htmlType:"button",className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&l?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):n.jsx(n.Fragment,{children:n.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(x=>{const A=x.label||a,y=d(x),w=y||x.openPromo===!0,B=A.replace(/^오픈\s*특가\s*/,"")||a,E=x.prices?x.prices[i]:x.price,D=x.badge?w?`${r}
|
|
823
|
-
${x.badge}`:x.badge:void 0;if(y&&c(x.code))return null;if(!x.badge&&!m)return p(x)?null:n.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${x.highlight?" payment-plan__pricing-row--highlight":""}`,children:[n.jsx("div",{className:"payment-plan__pricing-row-title",children:n.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:x.label})}),n.jsx("div",{className:"payment-plan__pricing-row-price",children:n.jsx("span",{className:"payment-plan__pricing-current h1",children:k2(E)})})]},x.id);const N=s.tier??(g?s.title:void 0),F=n.jsx(iu,{showPrice:!0,product:{type:k,code:x.code,name:B,label:N,price:E,originalPrice:x.originals?.[i]??void 0,discountLabel:D},bg:B2(g,s.id)}),$=()=>l?.({...x,productId:s.id,productTitle:s.title,preview:F});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:$,onKeyDown:l?Y=>{Y.target===Y.currentTarget&&(Y.key==="Enter"||Y.key===" ")&&(Y.preventDefault(),$())}:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,children:F},x.id)})})})})]})}function N2({variant:e="default"}){return n.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var Mo='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_IHAB_en" xmlns="http://www.w3.org/2000/svg" width="765.08" height="240" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 765.08 240"><defs><linearGradient id="linear-gradient" x1="62.99" y1="62.99" x2="190.71" y2="190.71" gradientUnits="userSpaceOnUse"><stop offset=".2" stop-color="%23499cdf"/><stop offset=".8" stop-color="%234dcdc0"/></linearGradient></defs><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="url(%23linear-gradient)"/><g id="text"><path d="M316.21,190.6h-36.74V50.61h36.74v139.99Z"/><path d="M335.16,50.61h36.74v55.11h51.63v-55.11h36.93v139.99h-36.93v-55.11h-51.63v55.11h-36.74V50.61Z"/><path d="M473.99,190.6l46.6-139.99h50.08l46.41,139.99h-39.64l-8.31-27.46h-46.99l-8.31,27.46h-39.83ZM560.62,135.3l-14.5-46.99h-1.16l-14.31,46.99h29.97Z"/><path d="M631,50.61h59.94c31.9,0,48.73,13.73,48.73,35.19,0,15.47-11.02,27.26-26.88,30.55v1.35c17.6.58,32.29,13.54,32.29,33.45,0,22.82-18.56,39.45-49.11,39.45h-64.97V50.61ZM701.77,93.53c0-8.89-6.96-13.92-17.02-13.92h-17.02v27.84h16.44c10.25,0,17.6-5.03,17.6-13.92ZM706.22,146.51c0-10.25-7.35-16.05-19.14-16.05h-19.34v30.55h18.76c13.15,0,19.72-5.03,19.72-14.5Z"/></g></svg>';const uu={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#c9c9c9"};function E2(){const e=Lt(uu,jn,Tn);return n.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${Mo}")`}})})}const cu={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEarManager_ko",logoColor:"_mono",copyrightColor:"#ffffff"};function D2(e={}){const t=Lt(cu,jn,Tn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),n.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${za}")`}})]})}function du({keys:e,anchor:t="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return n.jsx("span",{className:Be("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.map((l,i)=>n.jsxs("span",{className:"shortcut-badge__group",children:[i>0&&n.jsx("span",{className:"shortcut-badge__plus",children:"+"}),n.jsx("kbd",{className:"shortcut-badge__key",children:l})]},`${l}-${i}`))})}const Wa=(e,t,a)=>e+(t-e)*a;function S2({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:l=null,answerId:i=null,showFeedback:u=!1,pulseSelected:c=!1,pulseSelectedDuration:d,pulseScale:m,clickable:p=!1,onSelectSpeaker:h,buttonSize:b=40,showIcon:v=!0,onCenterClick:C,centerLabel:f,centerDisabled:_=!1,centerAttention:g=!1,shortcutAnchor:k="top-right",shortcutScale:x,scaleShortcut:A=!1}){const{t:y}=_e.useTranslation(),w=Math.max(0,Math.min(1,a)),B=t/2,E=110/300,D=.18,N=H=>t*(E+(H-1)*D),F=H=>{const G=N(H.row??1),pe=H.angleDeg*Math.PI/180;return{x:B+G*Math.cos(pe),y:B+G*Math.sin(pe)}},$=Math.max(...e.map(H=>H.row??1),1),Y=t*.08,M=t*.1,P=t*.24,T=t-2*Y,K=t-M-P,V=t-P/2,O=o.useMemo(()=>[...new Set(e.map(H=>H.deg))].sort((H,G)=>H-G),[e]),Q=O.length,I=Math.max(68,Q>1?T/(Q-1):0),q=o.useMemo(()=>new Map(O.map((H,G)=>[H,G])),[O]),z=H=>{const G=q.get(H.deg)??0,pe=B+(G-(Q-1)/2)*I,Ne=$>1?Math.min(68,K/($-1)):0,ye=Ne*($-1),me=M+(K-ye)/2,se=$===1?M+K*.4:me+($-(H.row??1))*Ne;return{x:pe,y:se}},U=H=>{const G=F(H),pe=z(H);return{x:Wa(G.x,pe.x,w),y:Wa(G.y,pe.y,w)}},S={x:B,y:Wa(B,V,w)},R=Math.round(b*1.2),L=Math.round(Math.max(16,Math.min(80,b*.7))),Z=[],ue=new Map;for(const H of e){const G=H.row??1;ue.has(G)||ue.set(G,[]),ue.get(G).push(H)}for(const[H,G]of ue.entries()){if(G.length<2)continue;const pe=[...G].sort((Ie,ct)=>Ie.deg-ct.deg),Ne=pe.map(Ie=>U(Ie)),ye=pe.map(Ie=>Ie.deg),me=ye[ye.length-1]-ye[0],se=me/(ye.length-1),ge=360-me,Ce=pe.length>=3&&se>0&&ge<=se*1.5,de=Math.round(N(H)*1e3)/1e3,Le=(Ie,ct,at,rt)=>{const lt=(ct.angleDeg-Ie.angleDeg+540)%360-180;if(lt===0)return`L ${rt.x} ${rt.y}`;if(w===0)return`A ${de} ${de} 0 0 ${lt>0?1:0} ${rt.x} ${rt.y}`;const Ee=(Ie.angleDeg+lt/2)*Math.PI/180,Ye={x:B+de*Math.cos(Ee),y:B+de*Math.sin(Ee)},ke={x:(at.x+rt.x)/2,y:(at.y+rt.y)/2},He={x:Wa(Ye.x,ke.x,w),y:Wa(Ye.y,ke.y,w)},Je={x:2*He.x-ke.x,y:2*He.y-ke.y};return`Q ${Je.x} ${Je.y} ${rt.x} ${rt.y}`},ze=Ce?[...pe,pe[0]]:pe,Te=Ce?[...Ne,Ne[0]]:Ne;let Ge=`M ${Te[0].x} ${Te[0].y}`;for(let Ie=1;Ie<Te.length;Ie++)Ge+=" "+Le(ze[Ie-1],ze[Ie],Te[Ie-1],Te[Ie]);Z.push({key:`arc-${H}`,d:Ge})}const oe=o.useMemo(()=>new Set(s??[]),[s]),le=H=>({idle:"",active:y("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:y("soundCompass.state.played","\uB4E4\uC74C"),correct:y("soundCompass.state.correct","\uC815\uB2F5"),wrong:y("soundCompass.state.wrong","\uC624\uB2F5")})[H],re=H=>{if(r===H.id)return"active";if(u){if(H.id===i)return"correct";if(H.id===l&&l!==i)return"wrong"}return oe.has(H.id)?"played":"idle"},W=H=>r===H.id?"loop":u?H.id===i?"loop":null:c&&H.id===l?"once":null,te=(H,G)=>{switch(H){case"played":case"correct":return n.jsx(Is,{size:G});case"wrong":return n.jsx(Ks,{size:G});default:return n.jsx(Gs,{size:G})}};return n.jsx("div",{className:"sound-compass",children:n.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[n.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[w===0&&e.map(H=>{const{x:G,y:pe}=U(H);return n.jsx("line",{x1:S.x,y1:S.y,x2:G,y2:pe,stroke:"#dde3ec",strokeWidth:"1"},H.id)}),Z.map(H=>n.jsx("path",{d:H.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},H.key))]}),g&&!_&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:R,height:R,left:S.x-R/2,top:S.y-R/2}}),C?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${_?" sound-compass__center--disabled":""}`,style:{width:R,height:R,left:S.x,top:S.y},"aria-label":f,"aria-disabled":_||void 0,tabIndex:_?-1:0,onClick:_?void 0:C,children:n.jsx(Ir,{size:L,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:R,height:R,left:S.x,top:S.y},children:n.jsx(Ir,{size:L,color:"currentColor",strokeWidth:1.5})}),e.map((H,G)=>{const{x:pe,y:Ne}=U(H),ye=re(H),me=W(H),se={...x!==void 0||A?{"--shortcut-badge-scale":String(x??Math.max(.75,Math.min(3,b/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:ye!=="idle"?10:1},ge=b,Ce=Math.round(Math.max(10,Math.min(56,ge*.38))),de=Math.round(Math.max(7,Math.min(18,ge*.2))),Le=Math.round(Math.max(10,Math.min(56,ge*.4))),ze=v==="answered"&&(ye==="played"||ye==="correct"||ye==="wrong"),Te=v===!0||ze,Ge=!ze;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...se,left:pe-ge/2,top:Ne-ge/2},children:[me&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ye}`+(me==="once"?" sound-compass__pulse--once":""),style:{width:ge,height:ge,...me==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),n.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>h?.(H.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ye}`,style:{width:ge,height:ge},"aria-label":le(ye)?`${H.label}, ${le(ye)}`:H.label,"aria-pressed":l!=null?H.id===l:void 0,children:[Te&&te(ye,Ce),Ge&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:v===!0?de:Le},children:G+1})]}),H.shortcut&&n.jsx(du,{keys:H.shortcut,anchor:k,className:"sound-compass__speaker-shortcut"})]},H.id)})]})})}function j2({children:e,position:t="top-left",size:a=24,className:r=""}){return n.jsx("span",{className:Be("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}function T2({orientation:e="horizontal",label:t,className:a=""}){const r=Be("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?n.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?n.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[n.jsx("span",{className:"divider__line"}),n.jsx("span",{className:"divider__label caption-1",children:t}),n.jsx("span",{className:"divider__line"})]}):n.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function pu({checked:e,onChange:t,name:a,value:r,disabled:s=!1,label:l,className:i=""}){const u=o.useId();return n.jsxs("label",{className:`radio${s?" radio--disabled":""} ${i}`.trim(),htmlFor:u,children:[n.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:c=>t?.(c.target.checked)}),n.jsx("span",{className:"radio__dot"}),l&&n.jsx("span",{className:"radio__label body-2",children:l})]})}function M2({options:e,value:t,onChange:a,name:r,disabled:s=!1,direction:l="vertical",className:i="",ariaLabel:u}){const c=o.useId(),d=r??`radio-group-${c}`;return n.jsx("div",{className:`radio-group radio-group--${l} ${i}`.trim(),role:"radiogroup","aria-label":u,children:e.map(m=>n.jsx(pu,{name:d,value:m.value,checked:t===m.value,disabled:s||m.disabled,label:m.label,onChange:p=>{p&&a?.(m.value)}},m.value))})}const L2={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function $2({tone:e="info",title:t,message:a,children:r,dismissible:s=!1,onDismiss:l,live:i,className:u=""}){const{t:c}=_e.useTranslation(),[d,m]=o.useState(!1),p=o.useRef(null),h=o.useCallback(()=>{const g=p.current;g&&g.contains(document.activeElement)&&sr(g),m(!0),l?.()},[l]);if(d)return null;const b=Be("alert",`alert--${e}`,u),v=i??(e==="danger"||e==="warning"?"assertive":"polite"),C=v==="assertive"?"alert":v==="polite"?"status":void 0,f=!!t,_=!!(a||r);return n.jsxs("div",{ref:p,className:b,role:C,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(nt,{icon:L2[e],size:20,className:"alert__icon"}),f&&n.jsx("span",{className:"alert__title body-2",children:t}),!f&&_&&n.jsx("div",{className:"alert__message body-3",children:a||r})]}),f&&_&&n.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:h,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const R2={ready:"search",guide:"info",error:"circle-alert"};function P2(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let s=0,l=0;for(const i of a){const u=e.indexOf(i,s);u<0||(u>s&&r.push(e.slice(s,u)),r.push(n.jsx("strong",{className:"search-summary__em body-2",children:i},l++)),s=u+i.length)}return s<e.length&&r.push(e.slice(s)),r}function I2({status:e="guide",label:t,children:a,emphasis:r,icon:s,className:l=""}){const i=s===!1?null:s??R2[e],u=Be("search-summary",`search-summary--${e}`,l),c=t??a,d=typeof c=="string"&&r&&r.length>0?P2(c,r):c;return n.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[i!=null&&n.jsx(nt,{icon:i,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function Ha({title:e,items:t}){const{t:a}=_e.useTranslation(),{anchorRect:r,openAt:s,close:l}=Pa(),i=o.useRef(null),u=vo(!!r,(c,d)=>{c&&d?s(i.current?.querySelector("button")??d):l()},i);return n.jsxs("span",{ref:i,style:{display:"contents"},children:[n.jsx(fe,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:c=>{da(c)||s(c.currentTarget)},onPointerLeave:c=>{da(c)||l()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{pa()||s(c.currentTarget)},onBlur:l}),r&&n.jsx(Kn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:l})]})}function F2({items:e=[],value:t,onChange:a,className:r="",size:s=40}){const l=o.useId(),{t:i}=_e.useTranslation(),u=o.useRef(null),c=e.find(C=>!C.disabled)?.key,d=e.some(C=>C.key===t)?t:c??e[0]?.key,m=e.find(C=>C.key===d&&!C.disabled)?.key??c,p=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(C,f=p())=>{if(f.length===0)return;const _=(C%f.length+f.length)%f.length;f[_]?.focus(),f[_]?.click()},b=C=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(C.key))return;C.preventDefault();const f=p(),_=f.indexOf(C.currentTarget);C.key==="ArrowRight"||C.key==="ArrowDown"?h(_+1,f):C.key==="ArrowLeft"||C.key==="ArrowUp"?h(_-1,f):C.key==="Home"?h(0,f):h(f.length-1,f)},v=e.find(C=>C.key===d);return n.jsxs("div",{className:`tabs ${r}`.trim(),children:[n.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,role:"tablist","aria-label":i("tabs.ariaLabel","\uD0ED"),children:e.map(C=>n.jsx("button",{id:`tabs__tab-${l}-${C.key}`,type:"button",role:"tab","aria-selected":C.key===d,"aria-controls":`tabs__panel-${l}-${C.key}`,disabled:C.disabled,tabIndex:C.key===m?0:-1,className:`tabs__tab body-2${C.key===d?" tabs__tab--active":""}`,onClick:()=>{C.key!==t&&a?.(C.key)},onKeyDown:b,children:C.label},C.key))}),v&&n.jsx("div",{id:`tabs__panel-${l}-${v.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${l}-${v.key}`,tabIndex:0,className:"tabs__panel",children:v.panel},v.key)]})}const O2={xs:12,sm:16,md:20,lg:28,xl:36};function z2(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function W2({src:e,name:t,size:a="md",shape:r="circle",className:s=""}){const{t:l}=_e.useTranslation(),[i,u]=o.useState(null),c=!!e&&i===e,d=t?z2(t):"",m=!!e&&!c,p=!m&&!!d,h=t||l("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return n.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":h,children:[m&&n.jsx("img",{className:"avatar__image",src:e,alt:h,onError:()=>u(e??null)}),!m&&p&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!m&&!p&&n.jsx(nt,{icon:"user-round",size:O2[a],className:"avatar__icon"})]})}function H2(e,t){if(!t)return!0;const a=t.split(",").map(l=>l.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),s=e.type.toLowerCase();return a.some(l=>{const i=l.toLowerCase();return i.startsWith(".")?r.endsWith(i):i.endsWith("/*")?s.startsWith(i.slice(0,-1)):s===i})}function V2({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:l,onRemove:i,className:u=""}){const{t:c}=_e.useTranslation(),d=o.useRef(null),[m,p]=o.useState(!1),[h,b]=o.useState([]),v=l??h,C=y=>{if(!y||y.length===0)return;const w=Array.from(y).filter(E=>H2(E,t));if(w.length===0)return;const B=a?w:w.slice(0,1);if(l===void 0){const E=a?[...v,...B]:B;b(E),e?.(E)}else e?.(B)},f=y=>{y.preventDefault(),!r&&p(!0)},_=y=>{y.preventDefault(),p(!1)},g=y=>{y.preventDefault(),p(!1),!r&&C(y.dataTransfer.files)},k=y=>{const w=y.target;try{C(w.files)}finally{w.value=""}},x=()=>{r||d.current?.click()},A=y=>{if(!r&&(i?.(y),l===void 0)){const w=v.filter((B,E)=>E!==y);b(w),i||e?.(w)}};return n.jsxs("div",{className:`file-upload ${u}`.trim(),children:[n.jsxs("div",{className:Be("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:x,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),x())},onDragOver:f,onDragLeave:_,onDrop:g,children:[n.jsx(nt,{icon:"upload",size:24,className:"file-upload__icon"}),n.jsx("span",{className:"file-upload__prompt body-2",children:c("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),n.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:y=>{y.stopPropagation(),x()},children:c("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:k,tabIndex:-1})]}),s&&v.length>0&&n.jsx("ul",{className:"file-upload__list",children:v.map((y,w)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:y.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:y.name}),disabled:r,onClick:()=>A(w),children:n.jsx(nt,{icon:"x",size:14})})]},`${y.name}-${w}`))})]})}function q2({items:e,className:t=""}){const{t:a}=_e.useTranslation();return n.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:n.jsx("ol",{className:"breadcrumb__list",children:e.map((r,s)=>{const l=s===e.length-1;return n.jsxs("li",{className:"breadcrumb__item",children:[l?n.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):r.href?n.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?n.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):n.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!l&&n.jsx(nt,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const U2={small:14,medium:20,large:28};function G2({value:e,onChange:t,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:l,className:i=""}){const{t:u}=_e.useTranslation(),c=r||!t,[d,m]=o.useState(null),p=c?e:Number.isFinite(e)?Math.round(e):0,h=d??p,b=U2[s],v=y=>{y!==e&&t?.(y)},C=y=>{c||v(y)},f=y=>{c||pa()||m(y)},_=o.useRef(null),g=y=>{const w=Math.min(a,Math.max(1,y));v(w),Array.from(_.current?.querySelectorAll("[data-star]")??[]).find(B=>B.dataset.star===String(w))?.focus()},k=y=>{if(!c){switch(y.key){case"ArrowRight":case"ArrowUp":g((p||0)+1);break;case"ArrowLeft":case"ArrowDown":g((p||1)-1);break;case"Home":g(1);break;case"End":g(a);break;default:return}y.preventDefault()}},x=p>=1&&p<=a?Math.round(p):1,A=()=>{c||m(null)};return n.jsx("div",{className:`rating rating--${s}${c?" rating--readOnly":""} ${i}`.trim(),ref:_,onKeyDown:k,role:c?"img":"radiogroup","aria-label":c?u("rating.valueLabel",{value:e,max:a}):l??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:A,onPointerUp:y=>{y.pointerType==="touch"&&A()},onPointerCancel:y=>{y.pointerType==="touch"&&A()},children:Array.from({length:a},(y,w)=>{const B=w+1,E=Math.max(0,Math.min(1,h-w)),D=E>0&&E<1,N=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(nt,{icon:"star",size:b,className:"rating__star rating__star--empty"}),E>0&&n.jsx("span",{className:`rating__star-fill${D?" rating__star-fill--half":""}`,style:D?{width:`${E*100}%`}:void 0,children:n.jsx(nt,{icon:"star",size:b,className:"rating__star rating__star--filled"})})]});return c?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:N},B):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":p===B,"aria-label":u("rating.starLabel",{n:B}),"data-star":B,tabIndex:B===x?0:-1,onClick:()=>C(B),onMouseEnter:()=>f(B),children:N},B)})})}const K2=20,Y2=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function Z2({value:e,onChange:t,palette:a=Y2,size:r=40,className:s="",ariaLabel:l}){const{t:i}=_e.useTranslation();return n.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":l,children:a.map(u=>{const c=e?.toLowerCase()===u.toLowerCase();return n.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>t(u),"aria-pressed":c,"aria-label":c?`${u} ${i("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:c&&n.jsx(nt,{icon:"check",size:K2,className:"color-picker__check"})},u)})})}function mu({icon:e,label:t,tooltip:a,wrapperStyle:r,color:s,bgColor:l,useHover:i=!0,iconSize:u="medium"}){const{t:c}=_e.useTranslation(),d=u==="small",m=Be("category-icon",d?"category-icon--small":""),p=d?16:20,h=o.useRef(null),[b,v]=o.useState(!1),C=o.useMemo(()=>{const B=r&&typeof r=="object"?{...r}:{};return!s&&!l?B:{...B,...s?{color:s,"--t-item-fg":s}:{},...l?{"--t-item-bg":l}:{}}},[r,s,l]),f=a||t,_=i&&!!f,[g,k]=o.useState(null);o.useLayoutEffect(()=>{b&&k(h.current?.getBoundingClientRect()??null)},[b]),o.useEffect(()=>{if(!i&&b)try{v(!1)}catch{}},[i,b]),o.useEffect(()=>{if(!b)return;const B=E=>{const D=h.current;if(!D)return;const N=E.target;N&&!D.contains(N)&&v(!1)};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[b]);const x=o.useCallback(()=>{i&&v(!0)},[i]),A=o.useCallback(()=>{i&&v(!1)},[i]),y=o.useCallback(()=>v(!1),[]),w=o.useCallback(B=>{if(B.key==="Escape"){v(!1);return}(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),v(E=>!E))},[]);return n.jsxs("span",{ref:h,className:Be("category-icon__wrap",_&&"category-icon__wrap--interactive"),onPointerEnter:x,onPointerLeave:A,onFocus:x,onBlur:A,onKeyDown:w,role:"button",tabIndex:0,"aria-label":typeof f=="string"?c("common.descriptionFor",{name:f,defaultValue:`${f} \uC124\uBA85`}):void 0,"aria-haspopup":!!f,"aria-expanded":b,"data-tooltip-ignore":!0,children:[n.jsx(nt,{icon:e,label:t,className:m,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:C,size:p}),b&&f&&n.jsx(Dn,{anchorRect:g,text:typeof f=="string"?f:void 0,offset:8,onClose:y,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}let zn=null;function pr(e){if(zn&&zn!==e)try{zn()}catch{}return zn=e,()=>{zn===e&&(zn=null)}}function mr(e){if(zn===e){zn=null;try{e()}catch{}}}function hr(e,t){let a=()=>{};const r=new Promise(u=>{a=u});if(typeof e!="string"||e.trim()===""){Mt("one-shot-empty-url","[core] playOneShot \uC5D0 \uBE48 \uC8FC\uC18C\uAC00 \uC654\uB2E4 \u2014 \uC548 \uD2BC\uB2E4. \uBD80\uB974\uB294 \uCABD\uC774 \uC8FC\uC18C\uB97C \uC5BB\uAE30 \uC804\uC5D0 \uBD88\uB800\uB2E4.",new Error("playOneShot(empty)").stack),a(!1);try{t?.(!1)}catch{}return{el:{},stop:()=>{},done:r}}let s=!1;const l=u=>{if(!s){s=!0;try{t?.(u)}catch{}a(u)}};let i;try{i=new Audio(e)}catch{return l(!1),{el:{},stop:()=>{},done:r}}i.onended=()=>l(!0),i.onerror=()=>l(!1);try{i.play().catch(()=>l(!1))}catch{l(!1)}return{el:i,stop:()=>{try{i.pause()}catch{}l(!1)},done:r}}function X2(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=i=>i.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const i=a.sentences||a.items||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const i=a.items||a.sentences||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const i=a.items||a.sentences||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const i=a.sentences||a.items||[],u=Array.isArray(i)&&i.length>0?r(i):[];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||[],l=r(Array.isArray(s)?s:[]);return l.length===0&&(a.contextCode||a.context_code)&&l.push(String(a.contextCode||a.context_code)),{previewCodes:l,previewBucket:null}}function J2(e,t){const[a,r]=o.useState(!1),[s,l]=o.useState(-1),[i,u]=o.useState({key:"",urls:[]}),c=o.useRef(null),d=o.useRef(!1),m=o.useRef(null),p=o.useRef(null),[h,b]=o.useState(!1),v=o.useRef([]),{previewCodes:C,previewBucket:f}=X2(e,t),_=`${C.join(",")}|${f??""}`,g=o.useMemo(()=>i.key===_?i.urls:[],[i,_]);o.useEffect(()=>{if(!C.length)return;let x=!1;return(async()=>{const A=[],y=[];for(const w of C)try{const B=xl(w,f);if(!B){A.push("");continue}let E=null;try{E=await _l(B)}catch{}if(!E)try{const D=await wl(B);D&&(E=URL.createObjectURL(D),y.push(E))}catch{}A.push(E??"")}catch{A.push("")}x?y.forEach(w=>{try{URL.revokeObjectURL(w)}catch{}}):(v.current.forEach(w=>{try{URL.revokeObjectURL(w)}catch{}}),v.current=y,u({key:_,urls:A}))})(),()=>{x=!0}},[C.join(","),f]),o.useEffect(()=>()=>{v.current.forEach(x=>{try{URL.revokeObjectURL(x)}catch{}}),v.current=[]},[]);const k=o.useCallback(async x=>{if(x.stopPropagation(),x.preventDefault(),d.current){m.current&&mr(m.current),d.current=!1;try{c.current?.pause()}catch{}r(!1),l(-1);return}if(!g.filter(Boolean).length)return;let A=null;const y=()=>{d.current=!1,A?.stop()};m.current=y;const w=pr(y);d.current=!0,r(!0);for(let B=0;B<g.length&&d.current;B++){const E=g[B];if(E&&(l(B),A=hr(E),c.current=A.el,!await A.done))break}w(),m.current===y&&(m.current=null,d.current=!1,r(!1),l(-1))},[g]);return o.useEffect(()=>()=>{m.current&&mr(m.current),d.current=!1;try{c.current?.pause()}catch{}c.current=null},[]),{playing:a,playingIndex:s,previewUrls:g,previewHover:h,setPreviewHover:b,previewBtnRef:p,handlePreview:k}}const Q2=e=>{if(!e)return[];const t=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(t)return[String(t)];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:t,type:a,trainingData:r,ariaLabel:s,depth:l,renderPopup:i,completed:u,completedIds:c,selectedIds:d,tooltipText:m,useDescriptionTooltip:p=!1,onRemove:h,hideCheckBadge:b=!1,showTypeLabel:v=!1,onComplete:C,onSelect:f,onMore:_,countLabelOverride:g,size:k="square"}=e||{},{t:x}=_e.useTranslation(),[A,y]=o.useState(!1),w=o.useRef(null),[B,E]=o.useState(!1);o.useEffect(()=>{w.current?.matches(":hover")&&E(!0)},[]);const{playing:D,playingIndex:N,previewUrls:F,previewHover:$,setPreviewHover:Y,previewBtnRef:M,handlePreview:P}=J2(r,a?.key),T=o.useCallback(()=>{f?f():y(!0)},[f]),K=o.useCallback(()=>y(!1),[]),V=o.useCallback(()=>E(!0),[]),O=o.useCallback(()=>E(!1),[]),Q=o.useCallback(()=>Y(!0),[Y]),I=o.useCallback(()=>Y(!1),[Y]),[q,z]=o.useState(null);o.useLayoutEffect(()=>{$&&z(M.current?.getBoundingClientRect()??null)},[$,M]);const[U,S]=o.useState(null);o.useLayoutEffect(()=>{B&&!A&&p&&S(w.current?.getBoundingClientRect()??null)},[B,A,p]);const R=o.useCallback(ke=>{ke.target===ke.currentTarget&&(ke.key==="Enter"||ke.key===" ")&&(ke.preventDefault(),T())},[T]),L=r||null,Z=o.useMemo(()=>{if(!p)return null;const ke=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,He=ke&&ke.length>0?ke:Q2(L);return He&&He.length>0?He:null},[p,m,L]),ue=o.useCallback(ke=>{ke.stopPropagation(),h?.()},[h]),oe=o.useCallback(ke=>ke.stopPropagation(),[]),le=o.useCallback(ke=>{typeof C=="function"&&C(ke)},[C]),re=u||(c&&r?.id!=null?c.has(String(r.id)):!1),W=!re&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);Ri("speechear.popup.close",K);const te=Gl(),H=`${a?.label||""} ${t+1}`,G=L?.title||L?.name||H;let pe=a?.icon,Ne,ye="",me="";try{const ke=L?.category_0||L?.category_main_code||L?.category_main,He=L?.category_1||L?.category_sub_code||L?.category_sub,Je=te.find(dt=>dt.key===ke);Je?.icon&&(pe=Je.icon),!Ne&&Je?.color&&(Ne={"--t-item-fg":Je.color}),!Ne&&L?.iconColor&&(Ne={"--t-item-fg":L.iconColor}),ye=Je?x(`topic.${Je.key}`,{defaultValue:Je.label||""}):"";try{const dt=Je?.subs?.find(kt=>kt.key===He);me=dt?x(`topic.sub.${dt.key}`,{defaultValue:dt.label||""}):""}catch{}}catch{}const se=me?`${ye} / ${me}`:ye||a?.label||G,ge=ke=>x("training.countQuestions",{n:ke,count:ke}),Ce=ke=>x("training.countSentences",{n:ke,count:ke});let de="";try{if(L)if(a?.key==="LISTEN_IN_NOISE"){let ke=0;Array.isArray(L.items)&&L.items.length>0?ke=L.items.length:Array.isArray(L.sentences)&&L.sentences.length>0?ke=L.sentences.length:L.sentences&&(ke=1),de=Ce(ke)}else if(a?.key==="SHORT_STORY"){let ke=1;Array.isArray(r?.items)?ke=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?ke=r.raw.items.length:Array.isArray(L?.questions)?ke=L.questions.length:Array.isArray(L?.sentences)&&(ke=L.sentences.length),de=ge(ke)}else if(a?.key==="LONG_STORY"){let ke=1;if(Array.isArray(L.items)&&L.items.length>0){const He=L.items.reduce((Je,dt)=>{const kt=dt.questionItems;return Array.isArray(kt)?Je+kt.length:Array.isArray(dt.questions)?Je+dt.questions.length:Je},0);ke=He>0?He:L.items.length}else Array.isArray(L.questions)&&L.questions.length>0?ke=L.questions.length:Array.isArray(L.sentences)&&L.sentences.length>0&&(ke=L.sentences.length);de=ge(ke)}else if(a?.key==="ORDERING_SENTENCE"){let ke=1;Array.isArray(L.items)&&L.items.length>0?ke=L.items.length:Array.isArray(L.sentences)&&L.sentences.length>0&&(ke=L.sentences.length),de=Ce(ke)}else Array.isArray(L.items)&&(de=L.items.length>0?ge(L.items.length):"")}catch{}const Le=k==="row",ze=k==="list"||Le,Te=k==="compact",Ge=k==="small",Ie=Ge&&a?.key?If().find(ke=>ke.key===a.key):void 0,ct=Ie?Kl[Ie.key]:void 0,at=Ie?ct?x(`trainingType.${ct}.title`,{defaultValue:Ie.label}):Ie.label??"":"",rt=v&&a?.label&&a.label!==String(G)?String(a.label):Ge&&at&&at!==String(G)?at:"",lt=!!rt,Ee=g!==void 0?g:de,Ye=[rt,typeof G=="string"?G:"",Ee].map(ke=>String(ke??"").trim()).filter(Boolean).join(" ");return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:w,className:`training-block-button${ze?" training-block-button--list":""}${Le?" training-block-button--row":""}${Te?" training-block-button--compact":""}${Ge?" training-block-button--small":""}${re?" training-block-button--completed":""}${W?" training-block-button--selected":""}${lt&&!Ge?" training-block-button--withType":""}${Ge&&!lt?" training-block-button--no-type-label":""}`,onClick:T,onPointerEnter:V,onPointerLeave:O,role:"button",tabIndex:0,onKeyDown:R,"aria-label":typeof s=="string"?s:Ye||void 0,title:!p&&m&&(Array.isArray(m)?m.filter(Boolean).join(`
|
|
824
|
-
`):m)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[v&&a?.label&&a.label!==String(G)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ge&&at&&at!==String(G)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:at}),n.jsx(mu,{icon:pe,label:G,tooltip:se,wrapperStyle:Ne,iconSize:Ge||Te?"small":"medium"}),!b&&(re||W)&&!(h&&B)&&n.jsx($t,{className:h?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":re?x("training.completed","\uD6C8\uB828 \uC644\uB8CC"):x("training.selected","\uC120\uD0DD\uB428")}),h&&n.jsx($t,{className:`training-block-button__remove${B?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":x("common.remove","\uC81C\uAC70"),onClick:ue}),n.jsx("div",{className:`training-block-button__title ${Te?"body-3":Ge?"body-3b":"h3"}`,children:String(G)}),n.jsxs("div",{className:"training-block-button__description",children:[Ee?n.jsx("div",{className:`training-block-button__count ${Ge?"caption-2":"caption-1"}`,children:Ee}):null,n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(nt,{icon:"chevron-right",label:x("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:Ge?12:20})})]}),(ze&&!Le||Ge)&&F.length>0&&n.jsx("div",{ref:M,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:oe,onPointerEnter:Q,onPointerLeave:I,children:n.jsx(fe,{htmlType:"button",size:Ge?28:32,type:"dot",icon:D?"pause":"play",variant:Ge?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:String(G).trim()?D?x("training.stopFor",{name:G,defaultValue:`${G} \uC815\uC9C0`}):x("training.previewFor",{name:G,defaultValue:`${G} \uBBF8\uB9AC \uB4E3\uAE30`}):D?x("training.stop","\uC815\uC9C0"):x("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:P})})]}),_&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:ke=>{ke.stopPropagation(),_(ke)},children:n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(G).trim()?x("common.moreFor",{name:G}):x("common.more","\uB354\uBCF4\uAE30")})})]}),$&&n.jsx(Dn,{anchorRect:q,text:D?x("training.stop","\uC815\uC9C0"):x("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:I}),B&&!A&&p&&(Z?n.jsx(Kn,{anchorRect:U,items:Z,activeIndex:N,onClose:O}):L?.subTitle?n.jsx(Dn,{anchorRect:U,text:L.subTitle,offset:8,onClose:O}):null),A&&i&&i({trainingData:L,typeKey:a?.key??"",onClose:K,onComplete:le,popupTitle:String(G),popupSubTitle:a?.subTitle,depth:l!=null?String(l):void 0,popupIcon:pe,popupIconTooltip:String(se),popupWrapperStyle:Ne})]})}const hu=200;function ev(e){return e.itemId?(Hf()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function Cu({plan:e,groups:t,anchorRect:a,offset:r=12,onClose:s}){const{t:l}=_e.useTranslation(),i=o.useMemo(()=>t?t.map((c,d)=>({key:c.key??c.type?.key??String(d),label:c.label,type:c.type,data:c.items??[]})).filter(c=>c.data.length>0):qf(l).map(c=>{const d=(e?.items??[]).filter(m=>m.trainingType===c.key);return{key:c.key,label:c.label,type:c,pickedCount:d.length,data:d.map(ev).filter(m=>m!=null)}}).filter(c=>c.pickedCount>0),[t,e?.items,l]);if(i.length===0)return null;const u=n.jsx("div",{className:"tooltip-training__box",children:n.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({key:c,label:d,type:m,data:p},h)=>[h>0?n.jsx("div",{className:"tooltip-training__divider"},`div-${c}`):null,n.jsxs("div",{className:"tooltip-training__section",children:[n.jsx("div",{className:"tooltip-training__section-header",children:n.jsx("span",{className:"tooltip-training__type-label body-3b",children:d})}),n.jsx("div",{className:"tooltip-training__items",children:p.map((b,v)=>n.jsx(Lo,{index:v,type:m,trainingData:b,size:"compact",hideCheckBadge:!0},String(b.id??v)))})]},c)])})});return a?n.jsx(vn,{anchorRect:a,offset:r,onClose:s,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:l("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:u}):u}const tv=200;function nv({icon:e,count:t,title:a,plan:r,tooltip:s=!0,hoverAccent:l=!1,className:i="",onClick:u,onMouseEnter:c,onMouseLeave:d}){const m=!!u||!!c||s&&!!r,p=Be("count-tile",m&&"count-tile--interactive",m&&l&&"count-tile--accent",u&&"count-tile--clickable",i),h=o.useRef(null),[b,v]=o.useState(null),C=o.useRef(null),f=o.useRef(null),_=!!(b&&r&&s),g=o.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null),f.current&&(clearTimeout(f.current),f.current=null)},[]),k=o.useCallback(()=>{g(),v(null)},[g]),x=o.useCallback(()=>{!s||!r||(g(),C.current=setTimeout(()=>{C.current=null,v(h.current?.getBoundingClientRect()??null)},hu))},[s,r,g]),A=o.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null),!f.current&&(f.current=setTimeout(()=>{f.current=null,v(null)},tv))},[]);return o.useEffect(()=>()=>{g()},[g]),o.useEffect(()=>{(!s||!r)&&k()},[s,r,k]),o.useEffect(()=>{if(!_)return;const y=B=>B instanceof Element&&(h.current?.contains(B)||!!B.closest(".tooltip-training")),w=B=>{y(B.target)?g():A()};return document.addEventListener("pointerover",w,!0),()=>document.removeEventListener("pointerover",w,!0)},[_,g,A]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:h,className:p,onClick:u?y=>{k(),u(y)}:void 0,onKeyDown:u?y=>{y.key!=="Enter"&&y.key!==" "||(y.preventDefault(),y.currentTarget.click())}:void 0,onPointerEnter:y=>{y.pointerType==="touch"||y.pointerType==="pen"?k():x()},onMouseEnter:c,onMouseLeave:y=>{A(),d?.(y)},role:u?"button":"img",tabIndex:u?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(nt,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]}),b&&r&&n.jsx(Cu,{plan:r,anchorRect:b,onClose:k})]})}let Va=0,fu="",$o="",qa=0;function gu(){return bu(!1)}function av(){return bu(!0)}function bu(e){const t=typeof document<"u";Va===0&&t&&(fu=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(qa===0&&($o=document.body.style.paddingRight),qa++,document.body.style.paddingRight="0px"),Va++;let a=!1;return()=>{a||(a=!0,Va=Math.max(0,Va-1),e&&t&&(qa=Math.max(0,qa-1),qa===0&&($o?document.body.style.paddingRight=$o:document.body.style.removeProperty("padding-right"))),Va===0&&t&&(document.body.style.overflow=fu))}}function rv(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:n.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function ov({open:e,onClose:t,ariaLabel:a,title:r,children:s,size:l="md",closeOnBackdrop:i=!0,closeOnEscape:u=!0,showClose:c=!0,className:d,contentClassName:m}){const{t:p}=_e.useTranslation(),h=o.useId(),b=o.useRef(null),v=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const g=document.activeElement,k=gu(),x=b.current;return fo(x,g),x?.focus(),()=>{k();const A=document.activeElement;(!A||A===document.body||x&&x.contains(A))&&go(g)?.focus?.()}},[e]);const C=o.useRef(v),f=o.useRef(u);o.useEffect(()=>{C.current=v,f.current=u}),o.useEffect(()=>{if(e)return Gn(()=>{f.current&&C.current()})},[e]);const _=o.useRef(!1);return ho(b,e),!e||typeof document>"u"?null:cn.createPortal(n.jsx("div",{className:Be("dialog",d),onPointerDown:i?g=>{_.current=g.target===g.currentTarget}:void 0,onMouseDown:g=>{g.target===g.currentTarget&&g.preventDefault()},onClick:i?g=>{const k=_.current;_.current=!1,k&&g.target===g.currentTarget&&v()}:void 0,children:n.jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:Be("dialog__surface",`dialog__surface--${l}`,m),onClick:g=>g.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,c?n.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:v,children:n.jsx(rv,{})}):null,n.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function sv({columns:e,rows:t,rowKey:a,title:r,toolbar:s,empty:l,loading:i,caption:u,className:c=""}){const{t:d}=_e.useTranslation(),m=!i&&t.length===0;return n.jsxs("div",{className:Be("board",c),children:[r||s?n.jsxs("div",{className:"board__head",children:[r?n.jsx("h2",{className:"board__title",children:r}):n.jsx("span",{}),s?n.jsx("div",{className:"board__toolbar",children:s}):null]}):null,n.jsxs("table",{className:"board__table",children:[u?n.jsx("caption",{className:"board__caption",children:u}):null,n.jsx("thead",{children:n.jsx("tr",{children:e.map(p=>n.jsx("th",{scope:"col",className:Be("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),n.jsx("tbody",{children:i?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):m?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:l??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((p,h)=>n.jsx("tr",{className:"board__row",children:e.map(b=>n.jsx("td",{className:Be("board__td",`board__cell--${b.align??"left"}`),children:b.render(p,h)},b.key))},a(p,h)))})]})]})}function lv({name:e,role:t,photo:a,media:r,credentials:s,size:l=190,className:i=""}){return n.jsxs("div",{className:Be("person-card",i),children:[n.jsx("div",{className:"person-card__photo",style:{width:l,height:l},children:r??(a?n.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),n.jsx("h3",{className:"person-card__name",children:e}),t?n.jsx("p",{className:"person-card__role",children:t}):null,s?.length?n.jsx("ul",{className:"person-card__credentials",children:s.map(u=>n.jsx("li",{children:u},u))}):null]})}function iv({groups:e,className:t=""}){return n.jsx("div",{className:Be("timeline",t),children:e.map(a=>n.jsxs("section",{className:"timeline__group",children:[n.jsx("h3",{className:"timeline__title",children:a.title}),n.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,s)=>n.jsxs("li",{className:"timeline__row",children:[r.label?n.jsx("span",{className:"timeline__label",children:r.label}):null,n.jsx("div",{className:"timeline__items",children:r.items.map((l,i)=>n.jsx("p",{children:l},i))})]},`${r.label??""}-${s}`))})]},a.title))})}function uv({title:e,kind:t,body:a,badge:r,badgeSrc:s,footer:l,width:i,className:u=""}){const c=r??(s?n.jsx("img",{src:s,alt:""}):null);return n.jsxs("div",{className:Be("publication-card",u),style:i?{width:i,flexShrink:0}:void 0,children:[c?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:c}):null,n.jsx("h3",{className:"publication-card__title",children:e}),t?n.jsx("p",{className:"publication-card__kind",children:t}):null,n.jsx("p",{className:"publication-card__body",children:a}),l?n.jsx("div",{className:"publication-card__footer",children:l}):null]})}function cv({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const s=$a(a);return o.useEffect(()=>{const l=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(l)},[r,s]),n.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:n.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}function dv({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:s=2,tone:l="dark",className:i=""}){const u=s===1?"h1":"h2";return n.jsxs("div",{className:Be("section-header",`section-header--${l}`,i),children:[e?n.jsxs("p",{className:"section-header__eyebrow",children:[t?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"section-header__index",children:t}),n.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?n.jsx(u,{className:"section-header__title",children:a}):null,r?n.jsx("div",{className:"section-header__description",children:r}):null]})}function pv({items:e,className:t=""}){return n.jsx("ul",{className:Be("company-meta",t),children:e.map((a,r)=>n.jsxs("li",{className:"company-meta__item",children:[r>0?n.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function yu(e){return typeof e=="string"?e:e.label}function vu({value:e,onChange:t,suggestions:a,openOnFocus:r=!1,filterSuggestions:s,onSelectSuggestion:l,autoActiveFirst:i=!1}){const u=o.useId(),[c,d]=o.useState(!1),[m,p]=o.useState(-1),h=o.useRef(null),b=o.useMemo(()=>{if(!a.length)return[];const N=e??"";return s===!1?a:N?typeof s=="function"?s(a,N):a.filter(F=>yu(F).toLowerCase().includes(N.toLowerCase())):r?a:[]},[a,e,r,s]),[v,C]=o.useState(!1),f=o.useRef([]),_=v&&b.length===0?f.current:b;o.useEffect(()=>{_.length&&(f.current=_)},[_]);const g=o.useCallback(()=>C(!0),[]),k=o.useCallback(()=>C(!1),[]),x=i?0:-1;o.useEffect(()=>{c||p(x)},[c,x]),o.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const A=m<_.length?m:x<_.length?x:-1,y=o.useCallback(N=>{l?l(N):t?.(yu(N)),d(!1)},[t,l]),w=o.useCallback(()=>d(!0),[]),B=o.useCallback(()=>{d(!0),p(x)},[x]),E=o.useCallback(()=>{h.current=setTimeout(()=>d(!1),120)},[]),D=o.useCallback(N=>{N.nativeEvent.isComposing||N.keyCode===229||(N.key==="ArrowDown"?(N.preventDefault(),d(!0),p(F=>Math.min(_.length-1,(F<_.length?F:x)+1))):N.key==="ArrowUp"?(N.preventDefault(),p(F=>Math.max(x,(F<_.length?F:_.length)-1))):N.key==="Enter"?A>=0&&y(_[A]):N.key==="Escape"&&c&&(N.preventDefault(),d(!1)))},[_,A,c,y,x]);return{listId:u,open:c,activeIdx:A,filtered:_,handleFocus:w,handleBlur:E,handleInput:B,handleKeyDown:D,handleSelect:y,handleCompositionStart:g,handleCompositionEnd:k}}const Ro=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Xn(e){const{value:t,defaultValue:a,name:r,inputRef:s,onChange:l,label:i,ariaLabel:u,ariaDescribedBy:c,required:d,placeholder:m,ghostText:p,ghostHint:h,type:b="text",disabled:v=!1,readOnly:C=!1,error:f,helperText:_,maxLength:g,size:k=40,variant:x="input",fullWidth:A=!1,newline:y=!1,multiline:w=!1,rows:B=3,leftIcon:E,rightIcon:D,clearable:N=!1,list:F,showCount:$=!0,className:Y="",onFocus:M,onBlur:P,onKeyDown:T,onEnter:K,inputMode:V,autoComplete:O,autoFocus:Q,suggestions:I,filterSuggestions:q,onSelectSuggestion:z,autoActiveFirst:U,openOnFocus:S=!1}=e,R=C||v?void 0:I,{t:L}=_e.useTranslation(),Z=o.useId();!i&&!u&&Mt(`TextField:unnamed:${Z}`,"[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 ue=`tf-${Z}`,oe=`tf-helper-${Z}`,le=o.useRef(null),re=vu({value:t??"",onChange:l,suggestions:R??[],openOnFocus:S,filterSuggestions:q,onSelectSuggestion:z,autoActiveFirst:U}),W=!!R&&re.open&&re.filtered.length>0,te=o.useRef(null),[H,G]=o.useState(null),pe=o.useCallback(()=>{const Ee=te.current;if(!Ee||typeof window>"u")return;const Ye=Ee.getBoundingClientRect(),ke=230,He=window.innerHeight-Ye.bottom<ke+8&&Ye.top>ke+8;G({position:"fixed",left:Ye.left,width:Ye.width,...He?{bottom:window.innerHeight-Ye.top+8}:{top:Ye.bottom+8},zIndex:Ia(Ee)})},[]);Ro(()=>{if(!W)return;pe();let Ee=null;const Ye=()=>{if(typeof requestAnimationFrame>"u"){pe();return}Ee===null&&(Ee=requestAnimationFrame(()=>{Ee=null,pe()}))},ke=He=>{const Je=He.target;Je&&Je.nodeType===1&&Je.closest?.(".text-field__suggestions")||Ye()};return window.addEventListener("scroll",ke,!0),window.addEventListener("resize",Ye),()=>{Ee!==null&&cancelAnimationFrame(Ee),window.removeEventListener("scroll",ke,!0),window.removeEventListener("resize",Ye)}},[W,pe]);const Ne=o.useCallback(Ee=>{le.current=Ee,typeof s=="function"?s(Ee):s&&(s.current=Ee)},[s]),ye=p?`${p}${h??L("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:m,me=t!==void 0,se=me&&b==="password",[ge,Ce]=o.useState((a??"").length),de=me?(t??"").length:ge,Le=o.useRef(t);Ro(()=>{Le.current=t}),o.useEffect(()=>{const Ee=le.current;if(!se||!Ee)return;const Ye=t??"";Ee.value!==Ye&&(Ee.value=Ye)},[se,t]),o.useEffect(()=>{if(!y||!le.current)return;const Ee=le.current;Ee.style.height="",Ee.scrollHeight>Ee.clientHeight&&(Ee.style.height=`${Ee.scrollHeight}px`)},[t,ge,y]);const ze=g!=null&&de>g,Te=k===32?16:20,Ge=Be("text-field",`text-field--s${k}`,x==="display"?"text-field--display":"",A?"text-field--full-width":"",v?"text-field--disabled":"",C?"text-field--readonly":"",f?"text-field--error":"",E?"text-field--has-left-icon":"",D||N?"text-field--has-right-icon":"",Y),Ie={id:ue,...se?{}:me?{value:t}:{defaultValue:a},ref:Ne,placeholder:ye,name:r,disabled:v,readOnly:C,autoFocus:Q,maxLength:g,list:F,inputMode:V,autoComplete:O,"aria-label":!i&&u?u:void 0,"aria-required":d,"aria-invalid":!!f,"aria-describedby":[_||f?oe:null,c].filter(Boolean).join(" ")||void 0,role:R?"combobox":void 0,"aria-autocomplete":R?"list":void 0,"aria-haspopup":R?"listbox":void 0,"aria-expanded":R?W:void 0,"aria-controls":W?re.listId:void 0,"aria-activedescendant":W&&re.activeIdx>=0?`${re.listId}-option-${re.activeIdx}`:void 0,onChange:Ee=>{const Ye=Ee.target;me||Ce(Ye.value.length),l?.(Ye.value),R&&re.handleInput(),se&&queueMicrotask(()=>{const ke=Le.current??"";Ye.value!==ke&&(Ye.value=ke)})},onCompositionStart:R?re.handleCompositionStart:void 0,onCompositionEnd:R?re.handleCompositionEnd:void 0,onFocus:(Ee=>{M?.(Ee),R&&re.handleFocus()}),onBlur:(Ee=>{P?.(Ee),R&&re.handleBlur()}),onKeyDown:(Ee=>{const Ye=(Ee.key==="Tab"&&!Ee.shiftKey||Ee.key===" ")&&!Ee.nativeEvent.isComposing;if(p&&Ye&&!C&&!v&&!(Ee.currentTarget.value??"").trim()){Ee.preventDefault();const ke=Ee.currentTarget;me||(ke.value=p,Ce(p.length)),l?.(p);return}R&&Ee.key==="Enter"&&!Ee.nativeEvent.isComposing&&re.activeIdx>=0?Ee.preventDefault():K&&Ee.key==="Enter"&&!Ee.nativeEvent.isComposing&&(Ee.preventDefault(),K()),T?.(Ee),R&&re.handleKeyDown(Ee)})},ct=N&&!v&&!C&&de>0,at=()=>y?n.jsx("textarea",{...Ie,className:"text-field__input text-field__input--auto body-2",rows:1}):w?n.jsx("textarea",{...Ie,className:"text-field__input text-field__input--textarea body-2",rows:B}):n.jsx("input",{...Ie,type:b,className:"text-field__input body-2"}),rt=x==="display"&&!y&&!w&&!!ye,lt=()=>n.jsxs(n.Fragment,{children:[at(),rt&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:ye})]});return n.jsxs("div",{ref:te,className:Ge,children:[i&&n.jsxs("label",{htmlFor:ue,className:"text-field__label caption-1",children:[i,d&&n.jsx("span",{className:"text-field__required",children:"*"})]}),n.jsxs("div",{className:"text-field__wrap",children:[E&&n.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(nt,{icon:E,label:"",className:"",svgClassName:"text-field__icon-svg",size:Te})}),lt(),g!=null&&$&&n.jsxs("span",{className:`text-field__count caption-2${ze?" text-field__count--over":""}`,children:[de,"/",g]}),ct&&n.jsx(fe,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:L("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:Ee=>{Ee.preventDefault()},onClick:()=>{!me&&le.current&&(le.current.value="",Ce(0)),l?.("")},tabIndex:-1}),D&&!ct&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(nt,{icon:D,label:"",className:"",svgClassName:"text-field__icon-svg",size:Te})})]}),!!R&&n.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:re.open&&(t??"").length>0&&re.filtered.length===0?L("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),W&&(typeof document>"u"?null:cn.createPortal(n.jsx("ul",{id:re.listId,className:"text-field__suggestions",role:"listbox",style:H??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:re.filtered.map((Ee,Ye)=>n.jsx("li",{id:`${re.listId}-option-${Ye}`,role:"option","aria-selected":Ye===re.activeIdx,className:`text-field__suggestion body-2${Ye===re.activeIdx?" is-active":""}`,onMouseDown:ke=>ke.preventDefault(),onClick:()=>{re.handleSelect(Ee),le.current?.focus()},children:typeof Ee=="string"?Ee:n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-field__suggestion-label",children:Ee.label}),Ee.hint&&n.jsx("span",{className:"text-field__suggestion-hint caption-1",children:Ee.hint})]})},typeof Ee=="string"?`${Ee}-${Ye}`:Ee.id))}),document.body)),(_||f)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:oe,className:"text-field__helper caption-1",role:f?"alert":void 0,children:f||_})})]})}function fn({options:e,value:t,onChange:a,placeholder:r,disabled:s=!1,block:l=!1,size:i=48,error:u=!1,className:c="",ariaLabel:d,ariaDescribedBy:m}){const{t:p}=_e.useTranslation(),h=r??p("dropdown.placeholder","\uC120\uD0DD"),b=o.useId(),v=o.useId(),C=o.useRef(null),f=o.useCallback((M,P)=>{const T=window.innerHeight-M.bottom<260&&M.top>260;return{position:"fixed",left:M.left,minWidth:M.width,...T?{bottom:window.innerHeight-M.top+6}:{top:M.bottom+6},zIndex:Ia(P)}},[]),{open:_,setOpen:g,toggle:k,style:x,triggerRef:A,menuRef:y}=Fa({computeStyle:f}),[w,B]=o.useState(-1),E=o.useCallback(()=>B(-1),[]),D=e.find(M=>M.value===t);o.useEffect(()=>{if(_){const M=e.findIndex(P=>P.value===t);B(M>=0?M:e.length?0:-1),requestAnimationFrame(()=>{const P=y.current;if(!P)return;const T=P.querySelectorAll(".dropdown__option")[M];T&&(P.scrollTop=Math.max(0,T.offsetTop-P.clientHeight/2+T.clientHeight/2))})}},[_]),o.useEffect(()=>{_&&B(M=>{if(M>=0&&M<e.length)return M;const P=e.findIndex(T=>T.value===t);return P>=0?P:e.length?0:-1})},[_,e.length]);const N=o.useCallback(()=>{s||k()},[s,k]),F=o.useCallback(M=>{M.disabled||s||(M.value!==t&&a?.(M.value),g(!1))},[a,g,s,t]);o.useEffect(()=>{s&&g(!1)},[s,g]);const $=o.useCallback(M=>{if(!s){if(!_){(M.key==="Enter"||M.key===" "||M.key==="ArrowDown")&&(M.preventDefault(),g(!0));return}if(M.key==="Escape"){M.preventDefault(),g(!1);return}M.key==="ArrowDown"?(M.preventDefault(),B(P=>{let T=P+1;for(;T<e.length&&e[T].disabled;)T++;return T<e.length?T:P})):M.key==="ArrowUp"?(M.preventDefault(),B(P=>{let T=P-1;for(;T>=0&&e[T].disabled;)T--;return T>=0?T:P})):(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),e[w]?F(e[w]):g(!1))}},[s,_,e,w,F,g]),Y=_?n.jsx("div",{ref:y,id:b,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:x,onMouseLeave:E,onMouseDown:M=>M.preventDefault(),children:e.map((M,P)=>n.jsxs("button",{id:`${b}-option-${P}`,type:"button",role:"option","aria-selected":M.value===t,className:Be("dropdown__option body-2",M.value===t?"dropdown__option--active":"",P===w?"dropdown__option--active":"",M.disabled?"dropdown__option--disabled":""),onMouseDown:T=>T.preventDefault(),onClick:()=>F(M),onMouseEnter:()=>B(P),disabled:M.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:M.value===t&&n.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),M.label]},M.value))}):null;return n.jsxs("div",{ref:C,className:Be("dropdown",`dropdown--s${i}`,_?"dropdown--open":"",l?"dropdown--block":"",u?"dropdown--error":"",c),onKeyDown:$,children:[n.jsxs("button",{ref:A,type:"button",className:"dropdown__trigger",role:"combobox","aria-haspopup":"listbox","aria-expanded":_,"aria-controls":_?b:void 0,"aria-activedescendant":_&&w>=0?`${b}-option-${w}`:void 0,"aria-label":d,"aria-describedby":[d&&D?v:"",m??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:N,onBlur:M=>{_&&!y.current?.contains(M.relatedTarget)&&g(!1)},children:[n.jsx("span",{id:v,className:`dropdown__trigger-label body-2${D?"":" dropdown__trigger-label--placeholder"}`,children:D?D.label:h}),n.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&cn.createPortal(Y,C.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Cr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:s,className:l=""}){const{t:i}=_e.useTranslation(),u=r??i("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),c=s??i("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,t),m=()=>a(Math.max(1,Math.min(d,e-1))),p=()=>a(Math.min(d,e+1));return n.jsxs("div",{className:Be("pagination",l),children:[n.jsx(fe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:m}),n.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),n.jsx(fe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:c,disabled:e>=t,onClick:p})]})}const Ua=new Map;function wn(e){const{t}=_e.useTranslation(),{options:a=[],value:r=a.find(x=>!x.disabled)?.key??a[0]?.key,onChange:s=x=>{},className:l="",size:i=40,shape:u="pill",useBG:c=!0,fullWidth:d=!1,minButtonWidth:m,ariaLabel:p}=e||{},h=o.useRef(null),b=a.filter(x=>!x.disabled),v=o.useId(),C=a.map(x=>x.key).join("\xB7");o.useEffect(()=>{if(!(!Pn||p!=null&&p!=="")){if(Ua.set(v,C||"(\uBCF4\uAE30 \uC5C6\uC74C)"),Ua.size>1){const x=[...Ua.values()].sort();Mt(`segmented-control-unnamed:${x.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${Ua.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): ${x.join(" / ")}`)}return()=>{Ua.delete(v)}}},[p,C,v]);const f=x=>{if(!b.length)return;const A=Math.max(0,b.findIndex(w=>w.key===r)),y=x==="first"?b[0]:x==="last"?b[b.length-1]:b[(A+x+b.length)%b.length];y&&(s(y.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(w=>w.dataset.segkey===y.key)?.focus())},_=x=>{switch(x.key){case"ArrowRight":case"ArrowDown":f(1);break;case"ArrowLeft":case"ArrowUp":f(-1);break;case"Home":f("first");break;case"End":f("last");break;default:return}x.preventDefault()},g=x=>{const A=y=>typeof y=="string"||typeof y=="number";if(!(!A(x.label)||x.count==null||x.count===!1||!A(x.count)))return`${x.label}, ${x.count}`},k=b.some(x=>x.key===r)?r:b[0]?.key;return n.jsx("div",{ref:h,onKeyDown:_,className:Be("segmented-control",`segmented-control--${u}`,`segmented-control--${i}`,d&&"segmented-control--full",!c&&"segmented-control--no-bg",m!=null&&"segmented-control--min",l),style:m!=null?{"--segmented-min-button-w":`${m}px`}:void 0,role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(x=>n.jsx(fe,{htmlType:"button",role:"radio","aria-checked":x.key===r,"data-segkey":x.key,tabIndex:x.key===k?0:-1,label:x.label,count:x.count,ariaLabel:g(x),disabled:x.disabled,className:x.key===r?"is-selected":"",onClick:()=>{x.disabled||s(x.key)},size:i,shape:u,useBorder:!1,useBG:!1},x.key))})}function Po({count:e,search:t,segment:a,filters:r,pageSize:s,pagination:l,actions:i,className:u}){const{t:c}=_e.useTranslation(),d=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??c("common.totalPrefix","\uCD1D "),n.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||s||l||i);return n.jsxs("div",{className:Be("toolbar",u),children:[n.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((p,h)=>n.jsx(wn,{size:40,...p},p.ariaLabel??h))]}),m&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(Xn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??c("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??c("common.search","\uAC80\uC0C9"),autoFocus:t.autoFocus,clearable:!0}),r?.map((p,h)=>n.jsx(fn,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},h)),(s||l)&&n.jsxs("div",{className:"toolbar__pager",children:[s&&n.jsx(fn,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??c("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),l&&n.jsx(Cr,{page:l.page,totalPages:l.total,onChange:l.onChange,prevLabel:l.prevLabel,nextLabel:l.nextLabel})]}),i]})})]})}function xu(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(xu).join(""):""}function mv(e){let t=e.replace(/\r\n/g,`
|
|
822
|
+
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",bizNo:"Business no.",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Sicheong-gil, Chuncheon, Gangwon, Korea",bizNoValue:"526-81-02926"},_g={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},wg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount_one:"Downloading {{n}} word",downloadingCount_other:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Bg={clearAriaLabel:"Clear input"},kg={ariaLabel:"Select tab"},Ag={ariaLabel:"Tabs"},Ng={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Eg={ariaLabel:"User avatar"},Dg={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"}},Sg={weekly:{title:"Weekly Training",daily:"Daily Listening"},homework:{title:"Homework Progress",totalRate:"Overall rate",done:"Done"},today:{tooltipTotal:"Total",tooltipDone:"Done"},visit:{title:"Linked Visit Records"},detail:"Details",detailFor:"{{name}} details"},jg={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"}},Tg={steps:"Step {{current}} of {{total}}"},Mg={skippedOnly_one:"{{n}} older record was excluded \u2014 it does not say what was answered.",skippedOnly_other:"{{n}} older records were excluded \u2014 they do not say what was answered.",runs_one:"{{count}} run",runs_other:"{{count}} runs"},Lg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},$g={viewWords:"Words"},Rg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Pg={chooseDate:"Choose a date",selectYear:"Select year",selectMonth:"Select month"},Ig={previewRegion:"Report preview \u2014 scrollable sideways"},Fg={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Og={place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},zg={clearSelection:"Clear selection"},Wg={showResult:"Show {{type}} result"},Hg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Vg={loading:"Loading"},qg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Ug={ariaLabel:"Breadcrumb"},Gg={empty:"No items yet."},Kg={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"},Yg={common:Kb,calendar:Yb,passCard:Zb,rating:Xb,colorPicker:Jb,dropdown:Qb,accordion:eg,header:tg,nav:ng,settings:ag,usage:rg,account:og,training:sg,customers:lg,payment:ig,coupons:ug,visits:cg,trainingType:dg,myWordTable:pg,keyWords:mg,wordTable:hg,wordSearch:Cg,wordPrint:fg,topic:bg,device:gg,manager:yg,wordPairs:vg,footer:xg,date:_g,wordData:wg,textField:Bg,segmentedControl:kg,tabs:Ag,fileUpload:Ng,avatar:Eg,myHomework:Dg,trainingStatus:Sg,store:jg,progress:Tg,trainingMiss:Mg,table:Lg,wordScore:$g,topBanner:Rg,datePicker:Pg,report:Ig,tooltip:Fg,phonemeProfile:Og,bulkBar:zg,debug:Wg,badge:Hg,loader:Vg,soundCompass:qg,breadcrumb:Ug,board:Gg,promoBannerBg:Kg};const Zg="0.374.0",Xg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],mo="ko",Jg="ihab_display_language";function Yl(){if(typeof window>"u")return mo;try{const e=localStorage.getItem(Jg);if(e&&Xg.some(t=>t.code===e))return e}catch{}return mo}function Zl(e){try{document.documentElement.lang=e}catch{}}Vt.on("languageChanged",Zl),Zl(Yl()),Vt.use(xe.initReactI18next).init({resources:{ko:{translation:Gb},en:{translation:Yg}},lng:Yl(),fallbackLng:mo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Qg=new Map;try{Vt.store?.on?.("added",()=>Qg.clear())}catch{}let or=null,Xl=null,Jl=null;function ey(){const e=Il();if(e&&e.entries.length>0){const t=pf();if(or&&Xl===e&&Jl===t)return or;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:t?.[s.word]?[...t[s.word].cho??[],...t[s.word].jung??[],...t[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return or=r,Xl=e,Jl=t,or}return[]}new Proxy([],{get(e,t){const a=ey(),r=a[t];return typeof r=="function"?r.bind(a):r}});function ty(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const t=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(t)}function ny(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&ty(r.attrValue)&&(r.keepAttr=!1)};sa.addHook("uponSanitizeAttribute",t);try{return sa.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{sa.removeHook("uponSanitizeAttribute",t)}}function ay(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[l,i]=o.useState(null),[u,c]=o.useState(null),[d,m]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),i(null),c(null);return}const p=e.split("/").pop();let h=e;p&&(e.startsWith("/")?h=Xr(e):/^(Logo|Symbol)/i.test(p)?h=Xr(`logo/${p}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),h=e)),i(null),c(null),a(e),s(h)},[e]),o.useEffect(()=>{if(!r)return;let p=!1;async function h(){try{let g=await fetch(r);g.ok||(g=await fetch(r));const v=g.headers.get("content-type")||"";if(p)return;if(v.includes("svg")){i("mask");return}if(v.startsWith("image/")){i("img");return}const C=await fetch(r);if(!C.ok)throw new Error("not ok");const f=await C.text();if(p)return;if(/^\s*<svg[\s>]/i.test(f)){const _=ny(f);if(!_){i("none");return}c(_),i("inline");return}i("none")}catch{p||i("none")}}return h(),()=>{p=!0}},[r]),o.useEffect(()=>{let p=!1,h=null;return l==="mask"&&r&&fetch(r).then(g=>{if(!g.ok)throw new Error("fetch failed");return g.blob()}).then(g=>{p||(h=URL.createObjectURL(g),m(h))}).catch(()=>{p||i("img")}),()=>{p=!0,h&&URL.revokeObjectURL(h),m(null)}},[l,r]),t===e?{iconToUse:r,mode:l,svgText:u,blobUrl:d}:{iconToUse:null,mode:null,svgText:null,blobUrl:null}}function ot(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:l,svgClassName:i,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",m=s??"iconRenderer-icon-image",p=l??"iconRenderer-icon-mask",h=i??"iconRenderer-icon-svg",g=typeof t=="string"?t:null,v=U1(g),{iconToUse:C,mode:f,svgText:_,blobUrl:b}=ay(g),k=(B,E={})=>n.jsx("span",{className:d,style:u,...E,children:B}),x=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,N=(B,E={})=>n.jsx("img",{src:B,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:m,...E,style:x?{...E.style,...x}:E.style});if(!t)return null;if(typeof t!="string")return k(t);if(t==="none")return k(n.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(v)try{return k(o.createElement(v,{className:h,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(f==="mask"){const B={"--icon-url":b?`url(${b})`:`url(${C})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return k(n.jsx("span",{className:p,style:B}),{"aria-hidden":"true"})}return f==="img"?k(N(C,{onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):f==="inline"?k(n.jsx("span",{className:h,dangerouslySetInnerHTML:_?{__html:_}:void 0}),{"aria-hidden":"true"}):k(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return N(Xr(t),{style:u,onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}});const y=typeof c=="number"?c:20,w=`<svg width="${y}" height="${y}" 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 k(n.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:w}}),{"aria-hidden":"true"})}function Ql(e){const[t,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const l=o.useCallback(()=>{if(!e||r.current)return;const i=e();if(i&&typeof i.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};i.then(u,u)}},[e]);return{pending:t,press:l}}function ry({icon:e,title:t,message:a,action:r,className:s}){const{pending:l,press:i}=Ql(r?.onClick);return n.jsxs("div",{className:Be("empty-state",s),children:[e&&n.jsx(ot,{icon:e,size:48,className:"empty-state__icon"}),t&&n.jsx("p",{className:"empty-state__title h4",children:t}),a&&n.jsx("p",{className:"empty-state__message body-3",children:a}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i,disabled:l,"aria-busy":l||void 0,children:[r.icon&&n.jsx(ot,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function oy({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:l}){const{t:i}=xe.useTranslation(),{pending:u,press:c}=Ql(r);return n.jsxs("div",{className:Be("empty-state","error-state",l),role:"alert",children:[n.jsx(ot,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??i("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"error-state__hint caption-1",children:t}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:c,disabled:u,"aria-busy":u||void 0,children:[n.jsx(ot,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:s??i("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function sy({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:l=!1,onClick:i,className:u=""}){const c=o.useId(),d=`${c}-title`,m=`${c}-desc`,p=`${c}-cta`,h=()=>{l||i?.()};return n.jsx("section",{role:"button",tabIndex:l?-1:0,"aria-disabled":l||void 0,"aria-labelledby":d,"aria-describedby":`${m} ${p}`,onClick:h,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),h())},className:Be("action-card",`action-card--${s}`,l&&"action-card--disabled",u),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(ot,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:m,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:p,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(ot,{icon:"arrow-right",size:18})})]})]})})}function ly({as:e="div",className:t="",children:a,storage:r,...s}){r&&MC({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 l=Be("ihabdevteam-core-scope",t);return n.jsx(e,{className:l,...s,children:a})}function iy(e){if(e.closest('[aria-hidden="true"], [hidden], [inert]'))return!1;for(let t=e;t;t=t.parentElement){const a=window.getComputedStyle(t);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!1}return!0}function ho(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const l=Array.from(a.querySelectorAll(xn)).filter(iy);if(!l.length){s.preventDefault();return}const i=l[0],u=l[l.length-1],c=document.activeElement,d=c===a;s.shiftKey&&(c===i||d)?(s.preventDefault(),u.focus()):!s.shiftKey&&c===u&&(s.preventDefault(),i.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const xn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Co=new WeakMap;function fo(e,t){e&&Co.set(e,t)}function bo(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!Co.has(r);)r=r.parentElement;if(!r)return t;t=Co.get(r)??null}return t}function ei(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 sr(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(ei(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(xn)).filter(c=>!(e&&e.contains(c))&&ei(c));let l=null,i=null;for(const c of s)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?l=c:i||(i=c);const u=l??i;return u?.focus(),u}function uy({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:l=!1,className:i=""}){const{t:u}=xe.useTranslation(),[c,d]=o.useState(!1),m=o.useRef(null),p=o.useCallback(()=>{const C=m.current;C&&C.contains(document.activeElement)&&sr(C),d(!0)},[]);if(c)return null;const h=`notice-box notice-box--${s} body-2 ${i}`.trim(),g=l&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:h,role:"note",children:[a.map((C,f)=>n.jsxs("div",{className:"notice-box__inner",children:[C.title?n.jsx("span",{className:"notice-box__title body-3",children:C.title}):null,n.jsx("div",{className:"notice-box__body",children:C.lines&&C.lines.length?n.jsx("div",{children:C.lines.map((_,b)=>n.jsx("span",{className:"notice-box__line body-3",children:_},b))}):C.children??null})]},f)),g]});const v=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((C,f)=>n.jsx("li",{className:"notice-box__line",children:C},f))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:m,className:h,role:"note",children:[v,g]})}const ca=[];let lr=!1;function ti(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=ca[ca.length-1];t&&(e.stopPropagation(),t())}function Gn(e){return ca.push(e),!lr&&typeof document<"u"&&(document.addEventListener("keydown",ti),lr=!0),()=>{const t=ca.lastIndexOf(e);t>=0&&ca.splice(t,1),ca.length===0&&lr&&typeof document<"u"&&(document.removeEventListener("keydown",ti),lr=!1)}}const ni=o.createContext(null);function cy(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const ai=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function dy(e){const t=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Ms.useSyncExternalStore(t,()=>ai(e),()=>!1)}function py(e){const[t,a]=o.useState(ai(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=i=>a(i.matches),l=r;return l.addEventListener?l.addEventListener("change",s):l.addListener&&l.addListener(s),a(r.matches),()=>{l.removeEventListener?l.removeEventListener("change",s):l.removeListener&&l.removeListener(s)}},[e]),t}const my=typeof Ms.useSyncExternalStore=="function"?dy:py;function hn(e){const t=o.useContext(ni),a=my(e);return t&&typeof t.mobile=="boolean"&&cy(e)?t.mobile:a}const hy="(prefers-reduced-motion: reduce)";function go(){return hn(hy)}function yn(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:l,closeOnOutsideClick:i=!0,className:u="",role:c="dialog",ariaLabel:d="",children:m,backdrop:p=!1,isMobilePopup:h=!1,useBorder:g=!0,header:v,focusOnOpen:C}=e||{},f=o.useRef(null),[_,b]=o.useState({position:"fixed",left:0,top:-9999}),[k,x]=o.useState(!1),[N,y]=o.useState("bottom"),[w,B]=o.useState(!1),[E,D]=o.useState(!1),A=!t&&!a,F=o.useRef(null),$=o.useCallback((I=!1,q=!1)=>{if(E&&h)return;const Z=a?a.getBoundingClientRect():t,V=q&&F.current?F.current:Z;if(!V||!f.current)return;const S=f.current,{offsetWidth:R,offsetHeight:T}=S,Y=window.innerWidth,ce=window.innerHeight,re=Y-V.right,oe=V.left,ae=V.top,z=ce-V.bottom;let ee=0,W=0,U="top";if(ae>=T+r)U="top",W=V.top-r-T,ee=V.left+V.width/2-R/2;else if(z>=T+r)U="bottom",W=V.bottom+r,ee=V.left+V.width/2-R/2;else if(re>=R+r)U="right",ee=V.right+r,W=V.top+V.height/2-T/2;else if(oe>=R+r)U="left",ee=V.left-r-R,W=V.top+V.height/2-T/2;else{const pe=Math.max(ae,z,re,oe);pe===ae?(U="top",W=V.top-r-T,ee=V.left+V.width/2-R/2):pe===z?(U="bottom",W=V.bottom+r,ee=V.left+V.width/2-R/2):pe===re?(U="right",ee=V.right+r,W=V.top+V.height/2-T/2):(U="left",ee=V.left-r-R,W=V.top+V.height/2-T/2)}const de=Number.isFinite(Number(s))?Number(s):8;ee=Math.min(Math.max(ee,de),Y-R-de),W=Math.min(Math.max(W,de),ce-T-de);const De=Math.round(ee),ye=Math.round(W);I&&f.current?(f.current.style.left=`${De}px`,f.current.style.top=`${ye}px`,f.current.dataset.placement=U):(y(U||N),b({position:"fixed",left:De,top:ye}),B(!0))},[E,h,a,t,r,s,N]);o.useEffect(()=>()=>{F.current=null},[a,t]),o.useLayoutEffect(()=>{if(A)return;if(E&&h){b({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),B(!0);return}F.current===null&&(F.current=a?a.getBoundingClientRect():t??null),$(!1,!0);const I=requestAnimationFrame(()=>$(!1,!0));return()=>cancelAnimationFrame(I)},[t,a,r,m,s,A,E,h,$]),o.useEffect(()=>{if(A||E&&h||!f.current||typeof ResizeObserver>"u")return;const I=new ResizeObserver(()=>{t&&$()});return I.observe(f.current),()=>I.disconnect()},[t,m,s,A,E,h,$]),o.useEffect(()=>{if(A||E&&h)return;let I=null;const q=()=>{if(a&&(F.current=a.getBoundingClientRect()),typeof requestAnimationFrame>"u"){$(!0);return}I===null&&(I=requestAnimationFrame(()=>{I=null,$(!0)}))},Z=V=>{if(!a&&l){const S=V.target;if(S&&f.current&&f.current.contains(S))return;try{if(S&&S.closest&&S.closest("[data-tooltip-ignore]"))return}catch{}G.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",Z,{passive:!0,capture:!0}),()=>{I!==null&&cancelAnimationFrame(I),window.removeEventListener("resize",q),document.removeEventListener("scroll",Z,{capture:!0})}},[t,a,l,r,m,s,A,E,h,$]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const I=window.matchMedia("(max-width: 768px)"),q=()=>D(!!I.matches);q();try{I.addEventListener?I.addEventListener("change",q):I.addListener(q)}catch{try{I.addListener(q)}catch{}}return()=>{try{I.removeEventListener?I.removeEventListener("change",q):I.removeListener(q)}catch{}}},[]);const K=o.useRef(!1),L=o.useRef(null),P=go(),M=o.useCallback((I=!1)=>{if(l&&!(k||K.current)){if(K.current=!0,I){x(!0);try{l&&l()}catch{K.current=!1,x(!1)}return}x(!0),L.current=setTimeout(()=>{L.current=null;try{l&&l()}catch{K.current=!1,x(!1)}},P?0:200)}},[k,l,x,P]);o.useEffect(()=>()=>{L.current&&clearTimeout(L.current)},[]),o.useEffect(()=>{if(A)return;const I=V=>{const S=f.current;if(!S)return;const R=V.target;if(R&&!S.contains(R)){try{if(R.closest&&R.closest("[data-tooltip-ignore]"))return}catch{}i&&M(!0)}},q=V=>{const S=f.current;if(!S)return;const R=V.target;if(R&&!S.contains(R)){try{if(R.closest&&R.closest("[data-tooltip-ignore]"))return}catch{}i&&M(!0)}},Z=V=>{if(V.key==="Tab"){const S=f.current;if(!S)return;const R=S.querySelectorAll(xn);if(!R||R.length===0)return;const T=R[0],Y=R[R.length-1],ce=document.activeElement;V.shiftKey?ce===T&&(V.preventDefault(),Y.focus()):ce===Y&&(V.preventDefault(),T.focus())}};return document.addEventListener("pointerdown",I,!0),document.addEventListener("click",q,!0),document.addEventListener("keydown",Z),()=>{document.removeEventListener("pointerdown",I,!0),document.removeEventListener("click",q,!0),document.removeEventListener("keydown",Z)}},[l,i,M,A]);const G=o.useRef(M);o.useEffect(()=>{G.current=M});const H=!!l;o.useEffect(()=>{if(!(A||!H))return Gn(()=>G.current())},[A,H]),o.useEffect(()=>{const I=()=>{M(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",I),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",I)}},[M]);const O=o.useRef(null);o.useEffect(()=>{if(A||C===!1||!w)return;const I=f.current;if(!I)return;const q=I.querySelector(xn);if(q)return O.current=document.activeElement,q.focus({preventScroll:!0}),()=>{const Z=O.current;O.current=null,Z&&document.contains(Z)&&Z.focus({preventScroll:!0})}},[A,C,w]),o.useEffect(()=>{c==="dialog"&&!d&&Tt("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.')},[c,d]);const Q=n.jsxs("div",{ref:f,className:`tooltip-content ${A?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${k?"is-closing":""} ${u} ${E&&h?"is-mobile":""}`,role:c,"aria-label":d||void 0,style:A?{}:{..._,visibility:w?"visible":"hidden"},tabIndex:-1,"data-placement":N,"data-left":A?"":_.left,"data-top":A?"":_.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[v!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:v}),m]});if(A||typeof document>"u")return Q;if(p||E&&h){const I=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{i&&M(!0)}}),Q]});return sn.createPortal(I,document.body)}return sn.createPortal(Q,document.body)}function En(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:l="",ariaLabel:i}=e||{};return a?n.jsx(yn,{anchorRect:t,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${l}`,ariaLabel:i||a,children:n.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Kn(e){const{t}=xe.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:l=-1,showIndex:i=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0}=e||{},m=(Array.isArray(s)?s:s?[s]:[]).map(p=>typeof p=="string"?{text:p}:p);return!m.length&&!r?null:n.jsx(yn,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:"tooltip-description__box",children:[r&&n.jsx("span",{className:"tooltip-description__title body-2",children:r}),n.jsx("ol",{className:"tooltip-description__items",children:m.map((p,h)=>n.jsxs("li",{className:`tooltip-description__item body-3${h===l?" tooltip-description__item--active":""}`,children:[i&&m.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),p.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:p.color},"aria-hidden":"true"}),n.jsx("span",{children:p.text})]},h))})]})})}function $a(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let yo=0,ri=!1;function oi(){ri||typeof document>"u"||(ri=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(yo=Date.now())},!0),document.addEventListener("touchstart",()=>{yo=Date.now()},{capture:!0,passive:!0}))}oi();function da(e){return!!e&&e.pointerType==="touch"}function pa(e=1e3){return oi(),Date.now()-yo<e}function vo(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const l=$a(e),i=$a(t),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const m=p=>{const h=p,g=p.target,v=a.current,C=!!(g&&v&&v.contains(g));if(h.pointerType!=="touch"){C&&(u.current=null);return}if(C){u.current=l.current;return}u.current=null,l.current&&!(g&&g.closest?.(".tooltip-content"))&&i.current(!1,v)};return document.addEventListener("pointerdown",m,!0),()=>document.removeEventListener("pointerdown",m,!0)},[r,a,l,i]);const d=o.useCallback(m=>{const p=u.current;return p===null?!1:(u.current=null,c.current=Date.now(),i.current(!p,m??a.current),!0)},[a,i]);return o.useEffect(()=>{if(!r||!s)return;const m=a.current,p=m?.parentElement;if(!m||!p)return;let h=null;const g=f=>{const _=f.changedTouches?.[0];if(!_)return!1;const b=m.getBoundingClientRect();return _.clientX>=b.left&&_.clientX<=b.right&&_.clientY>=b.top&&_.clientY<=b.bottom},v=f=>{h=g(f)?l.current:null},C=f=>{const _=h;h=null,!(_===null||Date.now()-c.current<700||!g(f))&&(u.current=null,c.current=Date.now(),i.current(!_,m))};return p.addEventListener("touchstart",v,{passive:!0}),p.addEventListener("touchend",C),()=>{p.removeEventListener("touchstart",v),p.removeEventListener("touchend",C)}},[r,s,a,l,i]),{touchPress:d}}function Cy(e,t){const{size:a=48,type:r,htmlType:s,href:l,target:i,rel:u,icon:c,rightIcon:d,label:m,count:p,subLabel:h,children:g,ariaLabel:v,variant:C="default",align:f="center",nowrap:_=!1,selected:b,toggleable:k=!1,ariaExpanded:x,ariaControls:N,disabled:y=!1,useLabel:w=!0,useBorder:B=!0,useBG:E=!0,useDisabledCovered:D=!1,useDisabledInvisible:A=!1,useDisabledFilled:F=!1,width:$,minWidth:K,onClick:L,onDisabledClick:P,showTooltipInfo:M=!1,tooltipInfoText:G=null,tooltipDescription:H=null,tooltipOnly:O=!1,iconSize:Q="medium",iconColor:I,shape:q="rounded",color:Z,className:V,...S}=e,R=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),T=R.match(/^\d+$/)?`button${R}`:`button-${R}`,Y=Number(a),ce=!isNaN(Y)&&Y<40?"button-2":"button-1",re=m??g,oe=y||!!S.disabled,ae=oe?D?"disabled-covered":A?"disabled-invisibled":F?"disabled-filled":"disabled":C,z=ae?`button--variant-${ae}`:"",ee=f?`button--align-${f}`:"",W=_?"button--nowrap":"",U=q?`button--shape-${q}`:"",de=typeof I=="string"&&I.startsWith("--")?`var(${I})`:I,De={...$?{width:typeof $=="number"?`${$}px`:$}:{},...K?{minWidth:typeof K=="number"?`${K}px`:K}:{},...B?{}:{"--button-border":oe?"0":"1px solid transparent"},...de?{"--button-icon-color":de}:{},...Z?{"--color-main":Z}:{}},ye=w===!1?"":re,pe=Array.isArray(ye)?ye.length>0:!!ye,ie=!!d,ge=r??(pe||c||ie?"bar":"dot"),he=`${T}--${ge}`,se=o.useRef(null);o.useEffect(()=>{!Pn||s!==void 0||se.current?.closest("form")&&Tt(`button-in-form:${typeof re=="string"?re:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof re=="string"&&re?` \uB2E8\uCD94: ${re}`:""))},[s,re]);const Le=o.useRef(t);Le.current=t;const Oe=o.useCallback(Re=>{se.current=Re;const Ye=Le.current;typeof Ye=="function"?Ye(Re):Ye&&(Ye.current=Re)},[]),Me=o.useRef(oe),[qe,We]=o.useState(!!b),[dt,at]=o.useState(!1),[st,it]=o.useState(null),Ee=o.useCallback(()=>at(!1),[]),[Ue,Ae]=o.useState(!1),He=o.useId();o.useEffect(()=>{typeof b=="boolean"&&We(b)},[b]),o.useEffect(()=>{if(Me.current&&!oe&&se.current){const Re=se.current;let Ye=!1;try{Ye=Re.matches(":focus:not(:focus-visible)")}catch{Ye=!1}Ye&&Re.blur(),Re.style.pointerEvents="none";const ft=requestAnimationFrame(()=>{requestAnimationFrame(()=>{se.current&&(se.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(ft)}Me.current=oe},[oe]);const et=typeof b=="boolean"?!!b:qe,pt=typeof x=="boolean"?void 0:k||typeof b=="boolean"?et?"true":"false":S["aria-pressed"],Dt=Be("button",T,he,z,ee,W,U,et?"is-selected":null,E?null:"button--no-bg",O?"button--tooltip-only":null,V),vt=`button__icon button__icon--${Q}`,Pt=Array.isArray(h)?h:h!==void 0?[h]:[],nt=()=>{if(Array.isArray(ye))return ye.map((Ye,ft)=>{const tt=Pt[ft];return n.jsxs("span",{className:`button__label-text${tt!==void 0?" button__label-text--has-sub":""}`,children:[Ye,tt!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:tt})]},ft)});const Re=h!==void 0;return n.jsxs("span",{className:`button__label-text${Re?" button__label-text--has-sub":""}`,children:[ye,p!=null&&n.jsx("span",{className:"button__count",children:p}),Re&&n.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},lt=Re=>{typeof b!="boolean"&&!k&&We(!1),Re.currentTarget.blur()},At=Re=>{oe||(typeof S.onMouseLeave=="function"&&S.onMouseLeave(Re),lt(Re))},Bt=Re=>{if(O&&je&&Ve.touchPress(Re.currentTarget),oe){je&&Ve.touchPress(Re.currentTarget),Re.preventDefault(),P?.(Re);return}typeof b!="boolean"&&k&&We(Ye=>!Ye),L?.(Re)},ke=o.useCallback(()=>{(M||H)&&(at(!0),it(se.current?.getBoundingClientRect()??null))},[M,H]),$e=o.useCallback(()=>{(M||H)&&(at(!1),it(null))},[M,H]),je=!!(M||H),Ve=vo(dt,Re=>{Re?ke():$e()},se,{enabled:je&&(oe||O),fallbackOnParent:je&&oe}),Ge={...S};delete Ge.disabled,delete Ge.className,delete Ge.faded,delete Ge.useFaded,delete Ge.loading,delete Ge.onMouseLeave,delete Ge.onPointerEnter,delete Ge.onPointerLeave,delete Ge.onPointerUp,delete Ge.onFocus,delete Ge.onBlur,oe&&(Object.keys(Ge).forEach(Re=>{/^on[A-Z]/.test(Re)&&typeof Ge[Re]=="function"&&delete Ge[Re]}),Ge["aria-disabled"]="true");const kt=(typeof M=="string"?M:null)??(typeof G=="string"?G:null)??(typeof v=="string"?v:null)??(typeof re=="string"?re:null)??void 0,ut=typeof v=="string"?v:typeof re=="string"?re:kt,mt=H?[H.title,...H.items??[]].filter(Boolean).join(". "):M&&kt&&kt!==ut?kt:"",St=[typeof S["aria-describedby"]=="string"?S["aria-describedby"]:void 0,mt?He:null].filter(Boolean).join(" ")||void 0,Ke=(Re,Ye)=>n.jsx(ot,{icon:Re,label:Ye??ut,className:vt,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),gt=()=>ge==="dot"?n.jsxs(n.Fragment,{children:[Ke(c),pe&&n.jsx("span",{className:`button__label ${ce}`,children:nt()})]}):f==="center"&&c?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:Ke(c)}),pe&&n.jsx("span",{className:`button__label ${ce}`,children:nt()})]}),ie&&n.jsx("span",{className:"button__right",children:Ke(d)})]}):n.jsxs(n.Fragment,{children:[c&&n.jsx("span",{className:"button__left",children:Ke(c,v??re)}),pe&&n.jsx("span",{className:`button__label ${ce}`,children:nt()}),ie&&n.jsx("span",{className:"button__right",children:Ke(d)})]}),xt=!!l&&!oe;return n.jsxs(n.Fragment,{children:[n.jsxs(xt?"a":"button",{...Ge,ref:Oe,...xt?{href:l,target:i,rel:u??(i==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:oe&&!P&&!Ue},className:Dt,"aria-pressed":pt,"aria-expanded":typeof x=="boolean"?x:S["aria-expanded"],"aria-controls":N??S["aria-controls"],"aria-label":ut,"aria-disabled":oe&&(xt||P||Ue)?!0:void 0,"aria-describedby":St,style:De,onClick:Bt,onMouseLeave:At,onPointerEnter:Re=>{da(Re)||ke(),!oe&&typeof S.onPointerEnter=="function"&&S.onPointerEnter(Re)},onPointerLeave:Re=>{da(Re)||$e(),!oe&&typeof S.onPointerLeave=="function"&&S.onPointerLeave(Re)},onPointerUp:Re=>{oe&&je&&Ve.touchPress(Re.currentTarget),!oe&&typeof S.onPointerUp=="function"&&S.onPointerUp(Re)},onFocus:Re=>{Ae(!0),pa()||ke(),!oe&&typeof S.onFocus=="function"&&S.onFocus(Re)},onBlur:Re=>{Ae(!1),oe||lt(Re),$e(),!oe&&typeof S.onBlur=="function"&&S.onBlur(Re)},children:[gt(),mt?n.jsx("span",{id:He,hidden:!0,"aria-label":mt}):null]}),dt&&H?n.jsx(Kn,{anchorRect:st,title:H.title,items:H.items,onClose:Ee}):dt&&kt?n.jsx(En,{anchorRect:st,text:kt,onClose:Ee}):null]})}const be=o.forwardRef(Cy);be.displayName="Button";function Lt(e,t,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return t(s,e),()=>a(s)},[e,t,a]),r}const Ra={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},xo=new WeakMap;function _o(e){if(e)return xo.get(e)}function Xt(e,t){e&&(e.style.setProperty(Ra.title,t.title),e.style.setProperty(Ra.description,t.description),xo.set(e,t))}function Jt(e){e&&(e.style.removeProperty(Ra.title),e.style.removeProperty(Ra.description),xo.delete(e))}const si={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function li(){const e=Lt(si,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const ii={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function ui(){const e=Lt(ii,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const ci={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function di(){const e=Lt(ci,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const pi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function mi(){const e=Lt(pi,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const hi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ci(){const e=Lt(hi,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const fi={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function bi(){const e=Lt(fi,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const gi={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function yi(){const e=Lt(gi,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const vi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function xi(){const e=Lt(vi,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const _i={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function wi(){const e=Lt(_i,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Bi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function ki(){const e=Lt(Bi,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Ai={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Ni(){const e=Lt(Ai,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:n.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Ei={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Di(){const e=Lt(Ei,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Si={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function ji(){const e=Lt(Si,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Ti={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Mi(){const e=Lt(Ti,Xt,Jt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const on=(e,t,a)=>({key:e,get label(){return Vt.t(`promoBannerBg.${e}`,t)},textTone:a}),fy=[on("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),on("soft","\uC18C\uD504\uD2B8","dark"),on("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),on("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),on("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),on("warm","\uC6DC(\uAC15\uC870)","dark"),on("dark","\uB2E4\uD06C","light"),on("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),on("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),on("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),on("outline","\uC544\uC6C3\uB77C\uC778","dark"),on("success","\uC131\uACF5/\uC644\uB8CC","light"),on("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),on("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Li={main:li,soft:ui,sub:di,deep:mi,softSub:Ci,warm:bi,dark:yi,radial:xi,diagonal:wi,dots:ki,outline:Ni,success:Di,naver:ji,instagram:Mi};function $i({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:l=1.4}={}){const i=k=>Math.max(a,Math.min(r,Number(k))),u=k=>{try{const x=localStorage.getItem(k),N=x?Number(x):1;return Number.isFinite(N)?i(N):i(1)}catch{return i(1)}},[c,d]=o.useState(()=>u(e)),[m,p]=o.useState(e);m!==e&&(p(e),d(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const h=k=>{d(typeof k=="function"?x=>i(k(x)):i(k))},g=()=>h(k=>+(k+s).toFixed(6)),v=()=>h(k=>+(k-s).toFixed(6)),C=c<r-Number.EPSILON,f=c>a+Number.EPSILON,_=Math.round(t*c),b=Math.round(_*l);return{scale:c,setScale:h,increase:g,decrease:v,canIncrease:C,canDecrease:f,fontSize:_,lineHeight:b}}function Ri(e,t){const a=$a(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const wo=" \xB7 ",Pi=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(wo)?e.split(wo).pop()??e:e})(),by=o.createContext(!1),Yn=[];let Ii=null;function gy(e){const t=o.useContext(by);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;Yn.length===0&&(Ii=document.title);const a={text:Pi?`${e}${wo}${Pi}`:e};return Yn.push(a),document.title=a.text,()=>{const r=Yn.lastIndexOf(a);r>=0&&Yn.splice(r,1),document.title=Yn.length?Yn[Yn.length-1].text:Ii??document.title}},[e,t])}const Bo=[{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"}],yy=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function cn(e,t){return yy().compare(e,t)}const ir=new Map;function vy(e){const t=ir.get(e);if(t)return t;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let l=r.exec(e);l;l=r.exec(e)){let i=l.index,u=l[0];u[0]==="-"&&i>0&&!/\s/.test(e[i-1])&&(i+=1,u=u.slice(1)),i>s&&a.push(e.slice(s,i)),a.push(Number(u)),s=l.index+l[0].length}return s<e.length&&a.push(e.slice(s)),ir.size>5e3&&ir.clear(),ir.set(e,a),a}function xy(e){if(!/^[\d\s-]+$/.test(e))return null;const t=e.replace(/\D/g,"");return t.length<9||t.length>11?null:t[0]==="0"||t[0]==="1"&&e!==t?t:null}function _y(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),s=a(t);if(r===s)return 0;const l=(d,m)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const p=xy(m);return p!==null?[p]:vy(m)},i=l(e,r),u=l(t,s),c=Math.min(i.length,u.length);for(let d=0;d<c;d++){const m=i[d],p=u[d];if(typeof m=="number"&&typeof p=="number"){if(m!==p)return m-p;continue}if(typeof m=="number")return-1;if(typeof p=="number")return 1;const h=cn(m,p);if(h!==0)return h}return i.length!==u.length?i.length-u.length:cn(r,s)}const Fi=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function ur(e,t,a){const r=Fi(e),s=Fi(t);if(r||s)return r===s?0:r?1:-1;const l=_y(e,t);return a?l:-l}function wy(e,t,a){const{t:r}=xe.useTranslation(),[s,l]=o.useState(()=>{const v=a?.initialPageSize;return v&&Bo.some(C=>C.value===v)?v:"25"}),[i,u]=o.useState(1),[c,d]=o.useState(t);Object.is(c,t)||(d(t),i!==1&&u(1));const m=o.useMemo(()=>Bo.map(v=>({...v,label:r("visits.showN",{n:v.value})})),[r]),p=o.useCallback(v=>{Bo.some(C=>C.value===v)&&(l(v),u(1))},[]),h=Math.max(1,Math.ceil(e.length/Number(s))),g=Math.min(Math.max(1,Number.isFinite(i)?Math.floor(i):1),h);return i!==g&&u(g),{pageRows:o.useMemo(()=>e.slice((g-1)*Number(s),g*Number(s)),[e,g,s]),pageSizeProps:{options:m,value:s,onChange:p},paginationProps:{page:g,total:h,onChange:u},setPage:u}}function By(e){const[t,a]=o.useState(()=>e?.defaultKey!=null?{key:e.defaultKey,asc:e.defaultAsc??!0}:null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const l=o.useCallback(c=>{const d=r.current,m=d?.key===c?{key:c,asc:!d.asc}:{key:c,asc:!0};r.current=m,a(m),s.current?.(m)},[]),i=o.useCallback((c,d)=>({label:c,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>l(d)}),[t,l]),u=o.useCallback((c,d)=>{if(!t)return c;const{key:m,asc:p}=t;return[...c].sort((h,g)=>ur(d(h,m),d(g,m),p))},[t]);return{sort:t,field:i,sortRows:u}}const vn="\uC804\uCCB4";Object.fromEntries(Object.entries(nf).map(([e,{nucleus:t}])=>[e,t]));const ky={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"})},Ay={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"})},Ny={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 Ey(e,t){if("place"in t)return ky[t.place](e);const a=Ay[t.vowel](e);return t.glide?`${a} \xB7 ${Ny[t.glide](e)}`:a}const Dy=(e,{defaultValue:t})=>t,Oi=(e,t)=>({jamos:e,phonetic:t,tooltip:Ey(Dy,t)}),Dn=(e,t)=>t.map(a=>Oi([a],{place:e})),qt=(e,t,a)=>Oi([...e],a?{vowel:t,glide:a}:{vowel:t}),ko={cho:[Dn("labial",["\u3142","\u3143","\u314D","\u3141"]),Dn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Dn("alveolar",["\u3145","\u3146"]),Dn("palatal",["\u3148","\u3149","\u314A"]),Dn("velar",["\u3131","\u3132","\u314B"]),Dn("glottal",["\u314E"])],jung:[[qt("\u3163","frontHigh"),qt("\u315F","frontHigh","w"),qt("\u3162","frontHigh","velar")],[qt("\u3161","backHighUnrounded")],[qt("\u315C","backHighRounded"),qt("\u3160","backHighRounded","j")],[qt("\u3154\u3150","frontMid"),qt("\u3156\u3152","frontMid","j"),qt("\u3159\u315A\u315E","frontMid","w")],[qt("\u3153","backMidUnrounded"),qt("\u3155","backMidUnrounded","j"),qt("\u315D","backMidUnrounded","w")],[qt("\u3157","backMidRounded"),qt("\u315B","backMidRounded","j")],[qt("\u314F","low"),qt("\u3151","low","j"),qt("\u3158","low","w")]],jong:[Dn("labial",["\u3142","\u3141"]),Dn("alveolar",["\u3137","\u3134","\u3139"]),Dn("velar",["\u3131","\u3147"])]},Sy=e=>e===jy?[]:Array.from(e),jy="__NO_CODA__",Ao=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),zi={cho:Ao(ko.cho),jung:Ao(ko.jung),jong:Ao(ko.jong)};zi.jung.flat().forEach(({v:e})=>{for(const t of Sy(e));}),new Set(zi.cho.flat().map(e=>e.v));function Ty(e,t=!0){const a=$a(e);o.useEffect(()=>{if(t)return Gn(()=>{a.current?.()})},[t,a])}function Pa(){const[e,t]=o.useState(null),a=o.useCallback(l=>t(l.getBoundingClientRect()),[]),r=o.useCallback(()=>t(null),[]),s=o.useCallback(l=>{const i=l.getBoundingClientRect();t(u=>u?null:i)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function My(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),l=o.useRef(null);o.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]);const i=o.useCallback((c,d)=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{a(c),s(d)},e)},[e]),u=o.useCallback(()=>{l.current&&clearTimeout(l.current),a(null),s(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:i,close:u}}function Wi(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[l,i]=o.useState(0),u=o.useCallback((p,h)=>{s(h),a(p),i(g=>g+1)},[]),c=o.useCallback(p=>u(p,"warning"),[u]),d=o.useCallback(p=>u(p,"normal"),[u]),m=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:l,showToast:u,showWarning:c,showNormal:d,clearToast:m}}function Ia(e){let t=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>t&&(t=r)}return t>0?`max(var(--z-menu, 1500), ${t+1})`:"var(--z-menu, 1500)"}function Fa({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,l]=o.useState(!1),[i,u]=o.useState({position:"fixed"}),c=o.useRef(null),d=o.useRef(null),m=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{s&&m()},[s,m]),o.useEffect(()=>{if(!s)return;let g=d.current?.offsetHeight??0;g>0&&m();let v=0,C=null;typeof ResizeObserver<"u"&&d.current&&(C=new ResizeObserver(()=>{const w=d.current?.offsetHeight??0;if(w!==g){if(g=w,++v>4){C?.disconnect(),C=null;return}m()}}),C.observe(d.current));const f=w=>{const B=w.target;r&&B.closest?.(r)||c.current?.contains(B)||d.current?.contains(B)||l(!1)};document.addEventListener("mousedown",f),document.addEventListener("pointerdown",f);let _=null;const b=()=>{if(typeof requestAnimationFrame>"u"){m();return}_===null&&(_=requestAnimationFrame(()=>{_=null,m()}))},k=w=>{d.current?.contains(w.target)||(t==="reposition"?b():t==="close"&&l(!1))};t!=="ignore"&&window.addEventListener("scroll",k,!0);const x=()=>{a==="reposition"?b():a==="close"&&l(!1)};let N=null;const y=()=>{x(),N&&clearTimeout(N),N=setTimeout(()=>{N=null,a==="reposition"&&m()},250)};return a!=="ignore"&&(window.addEventListener("resize",x),window.addEventListener("orientationchange",y)),()=>{_!==null&&cancelAnimationFrame(_),C?.disconnect(),document.removeEventListener("mousedown",f),document.removeEventListener("pointerdown",f),t!=="ignore"&&window.removeEventListener("scroll",k,!0),a!=="ignore"&&(window.removeEventListener("resize",x),window.removeEventListener("orientationchange",y)),N&&clearTimeout(N)}},[s,m,t,a,r]),o.useEffect(()=>{if(s)return Gn(()=>l(!1))},[s]);const p=o.useCallback(()=>l(g=>!g),[]),h=o.useCallback(()=>l(!1),[]);return{open:s,setOpen:l,toggle:p,close:h,style:i,triggerRef:c,menuRef:d}}function Ly(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:l=1100,feedbackMs:i=1500}={}){const[u,c]=o.useState([]),[d,m]=o.useState(0),[p,h]=o.useState("idle"),[g,v]=o.useState(null),[C,f]=o.useState([]),[_,b]=o.useState(null),[k,x]=o.useState(0),N=o.useRef(0),y=o.useCallback(I=>{N.current=typeof I=="function"?I(N.current):I,x(N.current)},[]),w=o.useRef(r),B=o.useRef(s);o.useEffect(()=>{w.current=r,B.current=s},[r,s]);const E=o.useRef([]),D=()=>{E.current.forEach(clearTimeout),E.current=[]},A=(I,q)=>{E.current.push(setTimeout(q,I))};o.useEffect(()=>()=>D(),[]);const F=u[d]?.id??null,$=o.useRef(null),K=o.useCallback(()=>{D(),h("playing"),f([]),b(null),y(0);let I=0;e.forEach((q,Z)=>{A(I,()=>{m(Z),v(q.id),w.current?.(q)}),A(I+1e3,()=>{v(null),f(V=>[...V,q.id])}),I+=1300}),A(I,()=>{h("done"),B.current?.({score:0,total:e.length})})},[e,y]),L=o.useCallback((I,q)=>{if(q>=I.length){h("done"),B.current?.({score:N.current,total:I.length});return}$.current=null,m(q),b(null),h("playing"),v(I[q].id),w.current?.(I[q]),A(l,()=>{v(null),h("waiting")})},[l]),P=o.useCallback(()=>{D();const I=Ta(e);c(I),y(0),f([]),L(I,0)},[e,L,y]),M=o.useCallback(()=>{t==="playback"?(c(e),K()):P()},[t,e,K,P]),G=o.useCallback(()=>{D(),h("idle"),v(null),f([]),b(null),m(0),y(0),c([])},[y]),H=JSON.stringify(e.map(I=>[I.id,I.label,I.angleDeg,I.deg,I.row,I.shortcut]));o.useEffect(()=>(a?M():G(),()=>D()),[t,H,a]);const O=o.useCallback(I=>{p!=="waiting"||t==="playback"||$.current===d||($.current=d,b(I),I===u[d]?.id&&y(q=>q+1),t==="exam"?(h("playing"),A(400,()=>L(u,d+1))):(h("feedback"),A(i,()=>L(u,d+1))))},[p,t,u,d,L,i,y]),Q=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:g,playedIds:C,selectedId:_,answerId:F,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:O},index:d,total:Q,score:k,phase:p,done:p==="done",start:M,reset:G}}const No=new Map,Eo=new Map,$y=()=>()=>{},Ry=()=>!0,Py=()=>!1;function Hi(e){const t=/^data:image\/svg\+xml(;base64)?,([\s\S]*)$/.exec(e);if(!t)return null;try{if(!t[1])return decodeURIComponent(t[2]);const a=Uint8Array.from(atob(t[2]),r=>r.charCodeAt(0));return new TextDecoder("utf-8").decode(a)}catch{return null}}function Iy(e){if(typeof window>"u")return"";const t=(a,r)=>{const s=r.attrName.toLowerCase(),l=r.attrValue.trim();(s==="href"||s==="xlink:href")&&!l.startsWith("#")&&(r.keepAttr=!1),(s==="style"||l.includes("\\")&&l.includes("("))&&(r.keepAttr=!1);const i=l.replace(/url\s*\(\s*(['"]?)#[^)\s'"]+\1\s*\)/gi,"");/url\s*\(/i.test(i)&&(r.keepAttr=!1)};sa.addHook("uponSanitizeAttribute",t);try{return sa.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","style","foreignObject"]})}finally{sa.removeHook("uponSanitizeAttribute",t)}}function Fy(e,t){const a=new Set;for(const i of e.matchAll(/url\(\s*(['"]?)#([^)\s"']+)\1\s*\)/g))a.add(i[2]);for(const i of e.matchAll(/(?:xlink:)?href="#([^"]+)"/g))a.add(i[1]);const r=new Set([...e.matchAll(/id="([^"]*)"/g)].map(i=>i[1])),s=[...a].filter(i=>r.has(i));if(s.length===0)return e;let l=e;for(const i of s){const u=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=`${t}-${i}`;l=l.replace(new RegExp(`id="${u}"`,"g"),`id="${c}"`).replace(new RegExp(`url\\(\\s*(['"]?)#${u}\\1\\s*\\)`,"g"),(d,m)=>`url(${m}#${c}${m})`).replace(new RegExp(`((?:xlink:)?href)="#${u}"`,"g"),`$1="#${c}"`)}return l}function Oy(e){const t=Eo.get(e);if(t)return t;const a=fetch(e).then(r=>r.ok?r.text():null).then(r=>(r!=null&&No.set(e,r),r)).catch(()=>null).finally(()=>{Eo.delete(e)});return Eo.set(e,a),a}function zy(e,t=!0){const a=o.useSyncExternalStore($y,Ry,Py)&&t&&e?Hi(e)??No.get(e)??null:null,[r,s]=o.useState({src:e,enabled:t,svg:a});return o.useEffect(()=>{if(!t||!e){s({src:e,enabled:t,svg:null});return}const l=Hi(e)??No.get(e)??null;if(l!==null){s({src:e,enabled:t,svg:l});return}let i=!0;return Oy(e).then(u=>{i&&s({src:e,enabled:t,svg:u})}),()=>{i=!1}},[e,t]),r.src===e&&r.enabled===t?r.svg:a}function Wy({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:l,size:i="medium",actionVariant:u,titleColor:c,descriptionColor:d,className:m=""}){const p=s??l??"main",h=o.useRef(null),[g,v]=o.useState("main"),C=hn("(max-width: 767px)"),f=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const k=h.current;if(!k)return;const x=_o(k),N=(y,w,B)=>{if(B!==void 0)k.style.setProperty(w,B),f.current[y]=!0;else if(f.current[y]){const E=x?.[y];E?k.style.setProperty(w,E):k.style.removeProperty(w),f.current[y]=!1}};N("title","--promo-banner-bg-title",c),N("description","--promo-banner-bg-description",d)},[c,d,p]),o.useLayoutEffect(()=>{const k=h.current;if(!k)return;const x=_o(k);v(x?.actionVariant??"main")},[p]);const _=Be("promo-banner",`promo-banner--${i}`,m),b=Li[p];return n.jsxs("div",{ref:h,className:_,role:"note",children:[n.jsx(b,{}),n.jsxs("div",{className:"promo-banner__text",children:[n.jsx("span",{className:`promo-banner__title ${i==="small"?"body-2":"h2"}`,children:e}),t&&n.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&n.jsx(be,{htmlType:"button",size:40,variant:u??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...C?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function Hy({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":s}){const{t:l}=xe.useTranslation(),i=s??l("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[d,m]=o.useState(0),[p,h]=o.useState(!1),[g,v]=o.useState(!1),[C,f]=o.useState(!1),_=o.useRef(null),b=o.useRef(null),k=o.useRef(null),x=go(),N=p||g||C,y=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||N||x)return;const B=window.setInterval(()=>m(E=>(Math.min(E,c-1)+1)%c),t);return()=>window.clearInterval(B)},[c,t,N,x]);const w=B=>{b.current!=null&&window.clearTimeout(b.current),b.current=window.setTimeout(()=>{b.current=null,f(!1)},B)};return o.useEffect(()=>()=>{b.current!=null&&window.clearTimeout(b.current)},[]),o.useEffect(()=>{if(!C)return;const B=E=>{E.pointerType==="touch"&&(k.current&&k.current.contains(E.target)||(b.current!=null&&(window.clearTimeout(b.current),b.current=null),f(!1)))};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[C]),c===0?null:n.jsxs("section",{ref:k,className:Be("top-banner",r),"aria-label":i,"aria-roledescription":"carousel",onPointerEnter:B=>{_.current=B.pointerType},onPointerDown:B=>{_.current=B.pointerType,B.pointerType==="touch"&&(b.current!=null&&(window.clearTimeout(b.current),b.current=null),f(!0))},onPointerUp:B=>{B.pointerType==="touch"&&w(5e3)},onPointerCancel:B=>{B.pointerType==="touch"&&w(5e3)},onMouseEnter:()=>{_.current!=="touch"&&h(!0)},onMouseLeave:()=>h(!1),onFocus:B=>{let E=!0;try{E=B.target.matches(":focus-visible")}catch{E=!0}v(E)},onBlur:B=>{B.currentTarget.contains(B.relatedTarget)||v(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${y*100}%)`},children:u.map((B,E)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":E!==y,...E!==y?{inert:!0}:{},children:B},E))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[y]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((B,E)=>n.jsx("button",{type:"button",className:`top-banner__dot${E===y?" top-banner__dot--active":""}`,"aria-label":l("topBanner.dotAriaLabel",{count:c,index:E+1,defaultValue:`${c}\uAC1C \uC911 ${E+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":E===y,onClick:()=>m(E)},E))})]})}function Vy({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:l="body-2",bodyClassName:i="body-2",className:u=""}){const{t:c}=xe.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[n.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const m=d.currentTarget.closest('[role="list"]');if(!m)return;const p=Array.from(m.querySelectorAll("[data-accordion-header]")),h=p.indexOf(d.currentTarget);(d.key==="ArrowDown"?p[h+1]:p[h-1])?.focus()}},children:[s&&n.jsx("div",{className:"accordion-item__avatar",children:s}),n.jsx("div",{className:`accordion-item__title ${l}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(ot,{icon:a?"chevron-up":"chevron-down",label:a?c("accordion.collapse","\uC811\uAE30"):c("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&n.jsx("div",{className:`accordion-item__body ${i}`,children:typeof t=="string"?n.jsx("p",{children:t}):t})]})}function qy({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[l,i]=o.useState({index:t}),u=(c,d)=>l.id!=null&&c.id!=null?c.id===l.id:l.id==null&&d===l.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>n.jsx(Vy,{title:c.title,body:c.body,avatar:c.avatar,open:u(c,d),onToggle:()=>i(u(c,d)?{index:-1}:{index:d,id:c.id}),bodyClassName:s},c.id??d))})}function Uy(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:n.jsx("polyline",{points:"2,6 5,9 10,3"})})}function Gy(){return n.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[n.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),n.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function Ky(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:n.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function $t(e){const{t}=xe.useTranslation(),{type:a="bar",size:r,className:s="","aria-label":l,"aria-hidden":i}=e;if(a==="dot"){const{icon:N,number:y,position:w="top-right",onClick:B,animate:E=!1}=e,D=N??"check",A=y!==void 0?"number":D,F=typeof r=="number"?r:32,$=Be("circle-badge",`circle-badge--${A}`,`circle-badge--${w}`,`circle-badge--${F}`,E?"circle-badge--animate":"",B?"circle-badge--clickable":"",s),K=y!==void 0?t("badge.nthSelected",{n:y,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:t("badge.selected","\uC120\uD0DD\uB428"),remove:t("badge.remove","\uC81C\uAC70"),minus:t("badge.exclude","\uC81C\uC678")}[D];return n.jsxs("span",{className:$,onClick:B,onKeyDown:B?L=>{L.key!=="Enter"&&L.key!==" "||(L.preventDefault(),L.currentTarget.click())}:void 0,"aria-label":i?void 0:l??K,"aria-hidden":i||void 0,role:B?"button":i?void 0:"img",tabIndex:B?0:void 0,children:[y!==void 0&&y,y===void 0&&D==="check"&&n.jsx(Uy,{}),y===void 0&&D==="remove"&&n.jsx(Gy,{}),y===void 0&&D==="minus"&&n.jsx(Ky,{})]})}const{label:u,children:c,variant:d="default",fill:m="filled",minWidth:p,iconLeft:h,iconRight:g,color:v}=e,C=typeof r=="number"?"medium":r??"medium",f={small:"caption-2b",medium:"body-3b",large:"body-2b"}[C]??"body-2b",_={small:12,medium:14,large:16}[C]??14,b=Be("badge",`badge--${d}`,`badge--${C}`,m!=="filled"?`badge--${m}`:"",f,s),k=v?.startsWith("--")?`var(${v})`:v,x=p!==void 0||k?{...p!==void 0?{minWidth:typeof p=="number"?`${p}px`:p}:{},...k?{"--badge-color":k}:{}}:void 0;return n.jsxs("span",{className:b,style:x,"aria-label":i?void 0:l,role:l&&!i?"img":void 0,"aria-hidden":i||void 0,children:[h&&n.jsx(ot,{icon:h,size:_,className:"badge__icon"}),u??c,g&&n.jsx(ot,{icon:g,size:_,className:"badge__icon"})]})}function Oa({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:s}=xe.useTranslation(),l=r==="small"?40:48,[i,u]=o.useState([]),c=o.useMemo(()=>{const f=[{title:null,columns:e}];let _=e;for(const b of i){const k=_?.[b.ci]?.items?.[b.ii];if(!k||!Array.isArray(k.children)||!k.children.length)break;_=[{title:null,items:k.children}],f.push({title:k.label||null,columns:_})}return f},[e,i]),d=c[c.length-1],m=c.length-1,p=o.useCallback(()=>u(f=>f.slice(0,Math.max(0,Math.min(f.length,m)-1))),[m]),h=o.useRef(null),g=o.useRef(null),v=c.length;o.useEffect(()=>{g.current||(g.current=document.activeElement);let f=0,_=0;const b=()=>{const k=h.current?.querySelector("button:not([disabled])");if(k&&k.offsetParent){k.focus({preventScroll:!0});return}_++<20&&(f=requestAnimationFrame(b))};return f=requestAnimationFrame(b),()=>cancelAnimationFrame(f)},[v]),o.useEffect(()=>()=>{g.current?.focus?.({preventScroll:!0})},[]);const C=o.useCallback((f,_,b)=>{if(f){if(Array.isArray(f.children)&&f.children.length){u(k=>[...k.slice(0,m),{ci:_,ii:b}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,m]);return n.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(c.length>1||d.title)&&n.jsxs("div",{className:"tooltip-menu__header",children:[c.length>1?n.jsx(be,{htmlType:"button",size:l,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:p,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),n.jsx("div",{className:"tooltip-menu__columns",ref:h,children:d.columns&&d.columns.map((f,_)=>n.jsxs("div",{className:"tooltip-menu__column",children:[f.title?n.jsx("div",{className:"tooltip-menu__column-title body-3",children:f.title}):null,n.jsx("div",{className:"tooltip-menu__items",children:(f.items||[]).map((b,k)=>n.jsxs(o.Fragment,{children:[b.separatorBefore&&k>0&&n.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),n.jsx(be,{htmlType:"button",className:"tooltip-menu__item",size:l,type:b.label?"bar":"dot",icon:b.selected?"check":b.icon||"none",rightIcon:Array.isArray(b.children)&&b.children.length?"chevron-right":b.badgeCount?n.jsx($t,{type:"dot",position:"inline",number:Math.min(b.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:b.label,ariaLabel:b.label&&b.badgeCount&&b.badgeCount>0?s("nav.badgeLabel",{label:b.label,count:b.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):b.label,onClick:()=>C(b,_,k),selected:b.selected,disabled:b.disabled,showTooltipInfo:b.tooltip||!1,useBorder:!1,align:"left"})]},k))})]},_))})]})}const Vi=".content-area";function Do(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(Vi);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&Tt("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${Vi}) \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 So=52,cr=10,qi=e=>e&&e>0?e:0;function Ui({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:s,moreItems:l=[],scrollContainer:i}){const{t:u}=xe.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",m=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[h,g]=o.useState(0),v=e.length;o.useEffect(()=>{const I=p.current;if(!I)return;const q=()=>{const S=typeof getComputedStyle=="function"?getComputedStyle(I):null,R=I.clientWidth-(parseFloat(S?.paddingLeft??"")||0)-(parseFloat(S?.paddingRight??"")||0),T=I.querySelector(".bottom-nav__left"),Y=T?.nextElementSibling,ce=(T?.offsetWidth??0)+(T&&Y?.classList.contains("bottom-nav__divider")?Y.offsetWidth:0);g(Math.max(0,R-ce))};if(q(),typeof ResizeObserver>"u")return;const Z=new ResizeObserver(q);Z.observe(I);const V=I.querySelector(".bottom-nav__left");return V&&Z.observe(V),()=>Z.disconnect()},[s]);const C=So+1,f=I=>Math.max(0,Math.floor((I+cr)/(So+cr))),_=v*(So+cr)-cr<=h,b=h<=0||l.length===0&&_?v:Math.min(v,f(h-C)),k=h>0&&b<v,x=k?b:v,N=e.slice(0,x),y=e.slice(x),w=k||l.length>0,B=o.useCallback((I,q)=>({position:"fixed",bottom:window.innerHeight-I.top+8,right:window.innerWidth-I.right,zIndex:Ia(q)}),[]),E=o.useId(),{open:D,toggle:A,close:F,style:$,triggerRef:K,menuRef:L}=Fa({computeStyle:B,onScroll:"ignore",onResize:"reposition"}),P=o.useCallback((I,q)=>q>0?u("nav.badgeLabel",{label:I,count:q,defaultValue:"{{label}}, {{count}}\uAC1C"}):I,[u]),M=o.useCallback((I,q)=>q>0?u("nav.badgeInsideLabel",{label:I,count:q,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):I,[u]),G=o.useCallback(()=>s?.(c),[s,c]),H=o.useMemo(()=>y.find(I=>!!I.key&&I.key===t)??l.find(I=>I.selected||I.key&&I.key===t),[y,t,l]),O=o.useMemo(()=>[{items:[...y.map(I=>({label:I.label,icon:I.icon,badgeCount:I.badgeCount,selected:!!I.key&&I.key===t,closeOnSelect:!0,disabled:I.state==="disabled",onClick:()=>{I.state!=="disabled"&&(I.key&&a&&(a(I.key),Do(i,"BottomNav")),F())}})),...l.map(I=>({label:I.label,icon:I.icon,badgeCount:I.badgeCount,selected:I.selected??(!!I.key&&I.key===t),closeOnSelect:!0,onClick:()=>{I.onClick?.(),F()}}))]}],[y,l,t,a,F]),Q=[...y,...l].reduce((I,q)=>I+qi(q.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:p,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__left",children:n.jsx(be,{htmlType:"button",size:52,type:"dot",icon:d,ariaLabel:m,className:"bottom-nav-item",onClick:G})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:N.map((I,q)=>{const Z=qi(I.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(be,{htmlType:"button",size:52,type:"dot",icon:I.icon,ariaLabel:P(I.label,Z),selected:!!I.key&&I.key===t,disabled:I.state==="disabled",className:"bottom-nav-item",onClick:()=>{I.key&&(a?.(I.key),Do(i,"BottomNav"))}}),Z>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx($t,{type:"dot",position:"top-right",number:Math.min(Z,99),size:24})})]},I.key??`__slot-${q}`)})}),w&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),n.jsx("div",{className:"bottom-nav__right",children:n.jsxs("div",{ref:K,className:"bottom-nav__slot",children:[n.jsx(be,{htmlType:"button",size:52,type:"dot",icon:H?.icon??"ellipsis",ariaLabel:M(H?.label??u("nav.more","\uB354\uBCF4\uAE30"),Q),selected:!!H,className:"bottom-nav-item",onClick:A,"aria-expanded":D,"aria-controls":D?E:void 0}),Q>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx($t,{type:"dot",position:"top-right",number:Math.min(Q,99),size:24})}),D&&sn.createPortal(n.jsx("div",{id:E,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:$,ref:L,children:n.jsx(Oa,{columns:O,onClose:F})}),document.body)]})})]})]})}function Gi(e){if(typeof e!="string")return!1;let t="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(t+=r)}if(!t)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(t);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function Ki(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function Yy(e){const{t}=xe.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:l,onSetting:i,onHelp:u,onFeedback:c,onAccount:d}=e||{},m="default";return s||l||i||u||c||d?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),l&&n.jsxs("span",{className:"side-nav__notification-wrap",children:[n.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bell",ariaLabel:Ki(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:l,selected:a==="notifications"}),!!r&&r>0&&n.jsx($t,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),i&&n.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:i,selected:a==="settings"}),u&&n.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),c&&n.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),d&&n.jsx(be,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function Yi(e){const{t}=xe.useTranslation(),{item:a,itemKey:r,label:s,icon:l,active:i,onClick:u,style:c,state:d,labelStyle:m}=e||{},p=a?.key??r??"",h=a?.label??s??"",g=a?.icon??l??"",v=a?.badge??0,C=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(ot,{icon:g,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),f=d==="disabled",_=`side-nav__item ${i?"active":""} ${d||""} ${f?"disabled":""} ${a?.child?"side-nav__item--child":""}`,b=o.useCallback(k=>{if(f)return;const x=k.detail>0;if(x)try{k.currentTarget.blur()}catch{}u?.(p,k.currentTarget,x)},[f,p,u]);return n.jsxs("button",{type:"button",className:_,onClick:b,"aria-label":typeof h=="string"?Ki(t,h,v):void 0,"aria-current":i?"page":void 0,style:c,"aria-disabled":f,children:[C,n.jsx("span",{className:"side-nav__label button-1 f",style:m,children:h}),v>0&&n.jsx($t,{type:"dot",position:"inline",number:Math.min(v,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function Zi(e){const{t}=xe.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:h,onAppModeChange:g,scrollContainer:v}=e||{},C=h==="manager",f=o.useCallback(()=>g?.(C?"malgwi":"manager"),[g,C]),_=o.useRef(null),[b,k]=o.useState(null);o.useEffect(()=>{const B=_.current;if(!B)return;let E=null;const D=()=>{const{scrollHeight:$,clientHeight:K,scrollTop:L}=B;if($<=K+1){k(O=>O===null?O:null);return}const P=Math.max(24,K/$*K),M=K-P,G=$-K,H={top:Math.round(L/G*M),height:Math.round(P)};k(O=>O&&O.top===H.top&&O.height===H.height?O:H)},A=()=>{if(typeof requestAnimationFrame>"u"){D();return}E===null&&(E=requestAnimationFrame(()=>{E=null,D()}))};D(),B.addEventListener("scroll",A,{passive:!0});const F=typeof ResizeObserver<"u"?new ResizeObserver(A):null;F?.observe(B);for(const $ of Array.from(B.children))F?.observe($);return()=>{E!==null&&cancelAnimationFrame(E),B.removeEventListener("scroll",A),F?.disconnect()}},[a]);const x=o.useRef(null),N=o.useCallback(B=>{const E=_.current;E&&(B.preventDefault(),x.current={y:B.clientY,top:E.scrollTop},B.currentTarget.setPointerCapture(B.pointerId))},[]),y=o.useCallback(B=>{const E=_.current,D=x.current;!E||!D||(E.scrollTop=D.top+(B.clientY-D.y)*(E.scrollHeight/E.clientHeight))},[]),w=o.useCallback(B=>{x.current=null,B.currentTarget.hasPointerCapture(B.pointerId)&&B.currentTarget.releasePointerCapture(B.pointerId)},[]);return n.jsxs("nav",{ref:_,"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[b&&n.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:n.jsx("div",{className:"side-nav__scroll-thumb",style:{top:b.top,height:b.height},onPointerDown:N,onPointerMove:y,onPointerUp:w,onPointerCancel:w})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(B=>!B.section&&(B.key||B.label)).map((B,E)=>n.jsxs(o.Fragment,{children:[B.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(Yi,{item:B,active:!!B.key&&B.key===r,state:B.disabled?"disabled":void 0,onClick:(D,A,F)=>{if(B.disabled)return;if(B.href){if(Gi(B.href)&&window.open(B.href,"_blank","noopener,noreferrer"),F)try{A?.blur()}catch{}return}if(s?.(B.key),Do(v,"SideNav"),!F)return;try{A?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const $=document.querySelector(".header");if($){const K=typeof $.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&K&&$.matches(":hover"))){$.classList.add("header--force-collapsed");const L=()=>{$.classList.remove("header--force-collapsed"),$.removeEventListener("mouseenter",L)};$.addEventListener("mouseenter",L)}}}})]},B.key??`side-nav__item-${E}`)),g&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),g&&n.jsx(Yi,{item:{key:"__mode-switch__",label:C?t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:C?"arrow-left":"arrow-right"},onClick:f})]}),n.jsx(Yy,{activeKey:r,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p})]})}var dr='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',jo='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',Zy='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_SpeechEar" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>';function Xi({appMode:e}){const{t}=xe.useTranslation(),a=e==="manager",r=a?jo:dr,s=Zy;return n.jsxs("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:[n.jsx("img",{src:s,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),n.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image brand-identity__image--logo"})]})}function Ji({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:h,onAppModeChange:g,scrollContainer:v}){const{t:C}=xe.useTranslation(),f=hn("(max-width: 767px)"),_=o.useMemo(()=>(a??[]).filter($=>!$.section&&($.key||$.label)).map($=>({key:$.key,label:typeof $.label=="string"?$.label:void 0,icon:$.icon,state:$.disabled?"disabled":void 0,badgeCount:$.badge})),[a]),b=o.useCallback($=>{const K=a?.find(L=>L.key===$);if(!K?.disabled){if(K?.href){Gi(K.href)&&window.open(K.href,"_blank","noopener,noreferrer");return}t?.($)}},[a,t]),k=o.useMemo(()=>{const $=[];return i&&$.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:i}),u&&$.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:l,onClick:u}),d&&$.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),m&&$.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),p&&$.push({key:"feedback",icon:"bug",label:C("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:p}),c&&$.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:c}),$},[C,i,u,d,m,p,c,l]),x=o.useCallback(($,K)=>({position:"fixed",top:$.bottom+8,right:Math.max(8,window.innerWidth-$.right),zIndex:Ia(K)}),[]),N=o.useId(),{open:y,toggle:w,close:B,style:E,triggerRef:D,menuRef:A}=Fa({computeStyle:x,onScroll:"ignore",onResize:"reposition"}),F=o.useMemo(()=>[{items:k.map($=>({label:$.label,icon:$.icon,badgeCount:$.badgeCount,selected:$.selected??(!!$.key&&$.key===e),closeOnSelect:!0,onClick:()=>{$.onClick?.(),B()}}))}],[k,e,B]);return n.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(Xi,{appMode:h}),n.jsxs("div",{className:"header__menu-button",ref:D,children:[n.jsx(be,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&l&&l>0?C("nav.badgeInsideLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:l,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:w,"aria-expanded":y,"aria-controls":y?N:void 0}),!!u&&!!l&&l>0&&n.jsx($t,{type:"dot",number:Math.min(l,99),size:24,"aria-hidden":!0}),y&&sn.createPortal(n.jsx("div",{id:N,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:E,ref:A,children:n.jsx(Oa,{columns:F,onClose:B})}),document.body)]})]}),n.jsx(Zi,{scrollContainer:v,items:a,activeKey:e??void 0,onChange:t,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:h,onAppModeChange:g}),f&&n.jsx(Ui,{items:_,activeKey:e??void 0,onChange:b,scrollContainer:v,appMode:h,onAppModeChange:g})]})}const Xy=Ji,Jy=()=>Vt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function Qi(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const t=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(t))return ua(`${t.toLocaleString("ko-KR")}\uC6D0`)}return ua(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function Qy(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function e2(e){if(e.durationDays&&e.durationDays>0){const l=e.durationDays;return l%365===0?`${l/365}\uB144`:`${l}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[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||Jy()}function t2(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function eu(e){return{type:e.type??Qy(e),plan:e2(e),label:e.label,price:Qi(e.price),originalPrice:Qi(e.originalPrice),discountLabel:e.discountLabel}}var n2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko_mono" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',a2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko_mono" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z" fill="%23fff"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z" fill="%23fff"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',tu='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB_mono" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="%23fff"/></svg>';const Zn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},To=new WeakMap;function r2(e){if(e)return To.get(e)}function Sn(e,t){e&&(e.style.setProperty(Zn.text,t.text),e.style.setProperty(Zn.sub,t.sub),t.copyrightColor&&e.style.setProperty(Zn.copyright,t.copyrightColor),To.set(e,t))}function jn(e){e&&(e.style.removeProperty(Zn.text),e.style.removeProperty(Zn.sub),e.style.removeProperty(Zn.copyright),To.delete(e))}const nu={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#1a1a1a"};function au(e={}){const t=Lt(nu,Sn,jn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-two-circle__c1"}),n.jsx("div",{className:"pass-card-bg-two-circle__c3"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${tu}")`}})]})}const ru="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71Z",ma=240;var za='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB" xmlns="http://www.w3.org/2000/svg" width="240" height="240" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 240 240"><defs><linearGradient id="linear-gradient" x1="62.99" y1="62.99" x2="190.71" y2="190.71" gradientUnits="userSpaceOnUse"><stop offset=".2" stop-color="%23499cdf"/><stop offset=".8" stop-color="%234dcdc0"/></linearGradient></defs><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="url(%23linear-gradient)"/></svg>';const o2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"},s2=100,l2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function ou(e={}){const t=Lt(o2,Sn,jn),a="var(--color-main)",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[n.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:l2.map(({scale:l,opacity:i},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${l*s2/ma}) translate(${-ma/2} ${-ma/2})`,opacity:i,children:n.jsx("path",{d:ru,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${za}")`}})]})}const i2={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",logoColor:"_mono",copyrightColor:"#ffffff"},u2=100,c2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function d2(e={}){const t=Lt(i2,Sn,jn),a="#ffffff",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[n.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:c2.map(({scale:l,opacity:i},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${l*u2/ma}) translate(${-ma/2} ${-ma/2})`,opacity:i,children:n.jsx("path",{d:ru,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${tu}")`}})]})}const p2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function m2(e={}){const t=Lt(p2,Sn,jn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${za}")`}})]})}const h2={Logo_SpeechEar_ko:{"":dr,_mono:n2},Logo_SpeechEarManager_ko:{"":jo,_mono:a2}};function C2(e,t){if(e)return h2[e]?.[t??""]??void 0}const f2={speechear:dr,manager:jo},b2={speechear:"Logo_SpeechEar_ko",manager:"Logo_SpeechEarManager_ko"},su=10;function g2(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 lu(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const s=Math.floor(e/60);return s>0?t("passCard.remainingMinute",{n:s}):t("passCard.remainingSecond",{n:Math.floor(e)})}function y2(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),s=a==="\uC624\uD508\uD2B9\uAC00"||a===Vt.t("passCard.specialLabel");return r?n.jsx(m2,{}):s?n.jsx(d2,{}):n.jsx(ou,{})}return n.jsx(au,{})}function iu({ariaLabel:e,product:t,showPrice:a=!1,plan:r,type:s,endDate:l,remainingSeconds:i,endInclusive:u=!1,state:c="active",bg:d,bgOnly:m=!1,textColor:p,subColor:h,copyrightColor:g,logoSrc:v,label:C,price:f,originalPrice:_,discountLabel:b,onUse:k,onRefund:x,onDelete:N}){const{t:y}=xe.useTranslation(),w=t?eu(t):void 0,B=s??w?.type??"speechear",E=r??w?.plan??y("passCard.planSuffix","\uC774\uC6A9\uAD8C"),D=C??w?.label,A=f??(a?w?.price:void 0),F=_??(a?w?.originalPrice:void 0),$=b??w?.discountLabel,K=o.useMemo(()=>{if(A)return null;const W=t?.durationDays??t2(t?.code);if(!W||W<=0)return i!=null?{percent:null,remainingLabel:lu(i,y)}:null;const U=W*86400;let de;if(i!=null)de=i;else if((c==="active"||c==="expired")&&l){const pe=new Date(l).getTime();if(Number.isNaN(pe))return null;const ie=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(l)),ge=/^(\d{4})-(\d{2})-(\d{2})/.exec(La()),he=Math.round(ie&&ge?(Date.UTC(+ie[1],+ie[2]-1,+ie[3])-Date.UTC(+ge[1],+ge[2]-1,+ge[3]))/864e5:(pe-Date.now())/864e5);de=Math.max(0,u?he+1:he)*86400}else c==="expired"?de=0:de=U;const De=g2(de),ye=Math.max(0,Math.min(100,Math.floor(Math.min(De,U)/U*100)));return c==="pending"&&ye>=100?null:{percent:ye,remainingLabel:c==="expired"?y("passCard.expired","\uB9CC\uB8CC\uB428"):lu(de,y)}},[A,c,l,i,u,t?.durationDays,t?.code,y]),L=o.useRef(null),[P,M]=o.useState({}),[G,H]=o.useState(null),O=!!(k||x||N),Q=o.useRef(!1),I=o.useRef(void 0),[q,Z]=o.useState(v);o.useLayoutEffect(()=>{Z(v)},[v]),o.useLayoutEffect(()=>{const W=L.current;W&&(p!==void 0&&W.style.setProperty("--pass-card-text",p),h!==void 0&&W.style.setProperty("--pass-card-sub",h),g!==void 0&&W.style.setProperty("--pass-card-copyright",g))},[p,h,g]),o.useLayoutEffect(()=>{const W=L.current;if(!W)return;const U=r2(W);if(!v){const de=b2[B],De=c==="expired"?"_mono":U?.logoColor??"",ye=C2(de,De);Z(ye)}},[d,v,B,c]);const V=W=>{const U=L.current;if(!U)return null;const{left:de,top:De,width:ye,height:pe}=U.getBoundingClientRect(),ie=(W.clientX-de)/ye-.5;return{rotateX:-((W.clientY-De)/pe-.5)*su,rotateY:ie*su}},S=(W,U)=>{const de=U*-.7,De=W*.7+10,ye=20+(Math.abs(W)+Math.abs(U))*.4;return`${de}px ${De}px ${ye}px rgba(0, 0, 0, 0.18)`},R=o.useCallback(W=>{if(pa())return;Q.current=!0,clearTimeout(I.current),I.current=setTimeout(()=>{Q.current=!1},200);const U=V(W);U&&M({transform:`perspective(800px) rotateX(${U.rotateX}deg) rotateY(${U.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:S(U.rotateX,U.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)"})},[]),T=o.useCallback(W=>{if(pa())return;const U=V(W);if(!U)return;const de=Q.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";M({transform:`perspective(800px) rotateX(${U.rotateX}deg) rotateY(${U.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:S(U.rotateX,U.rotateY),transition:de})},[]),Y=o.useCallback(()=>{clearTimeout(I.current),Q.current=!1,M({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)"})},[]),ce=o.useCallback(()=>H(null),[]),re=o.useMemo(()=>{const W=y("passCard.planSuffix","\uC774\uC6A9\uAD8C"),U=E.replace("\uC774\uC6A9\uAD8C","").replace(W==="\uC774\uC6A9\uAD8C"?"":W,"").trim(),de=U.match(/^(.*?)(일|년)$/);return de?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:de[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:de[2]==="\uB144"?y("passCard.unitYear","\uB144"):y("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:U})},[E,y]),oe=o.useMemo(()=>{const W=ua(A);if(!W)return null;const U=W.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!U)return n.jsx("span",{className:"h1",children:W});const[,de,De,ye]=U;return n.jsxs(n.Fragment,{children:[de&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:de}),n.jsx("span",{className:"h1 pass-card__price-amount",children:De}),ye.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:ye.trim()})]})},[A]),ae=o.useCallback(()=>{O&&H(W=>{if(W)return null;const U=L.current?.getBoundingClientRect();if(!U)return null;const de=50;return{left:U.left,right:U.right,width:U.width,height:U.height,x:U.x,y:U.y+de,top:U.top+de,bottom:U.bottom+de}})},[O]),z=o.useCallback(W=>{O&&(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),ae())},[O,ae]),ee=[{items:[...k?[{label:y("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{k(),H(null)},closeOnSelect:!0}]:[],...x?[{label:y("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),H(null)},closeOnSelect:!0}]:[],...N?[{label:y("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{N(),H(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:L,className:`pass-card pass-card--${c}${O?" pass-card--clickable":""}`,style:P,onMouseEnter:R,onMouseMove:T,onMouseLeave:Y,onPointerUp:W=>{W.pointerType==="touch"&&Y()},onPointerCancel:W=>{W.pointerType==="touch"&&Y()},onClick:ae,onKeyDown:O?z:void 0,role:O?"button":void 0,tabIndex:O?0:void 0,"aria-label":e,"aria-haspopup":O?"menu":void 0,"aria-expanded":O?!!G:void 0,children:[d??y2(B,E,D),!m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card__top",children:n.jsxs("div",{className:"pass-card__top-left",children:[n.jsx("img",{src:q??f2[B],className:"pass-card__logo",alt:B==="manager"?y("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):y("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:re}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:D?y("passCard.labeledPlan",{label:D}):y("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),A?n.jsxs("div",{className:"pass-card__price-area",children:[$&&n.jsx("span",{className:"pass-card__discount body-3",children:$}),n.jsxs("div",{className:"pass-card__price",children:[F&&n.jsx("span",{className:"pass-card__price-original body-3",children:ua(F)}),oe]})]}):K?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:K.remainingLabel}),K.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:K.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),G&&n.jsx(yn,{anchorRect:G,onClose:ce,ariaLabel:y("tooltip.menu","\uBA54\uB274"),children:n.jsx(Oa,{columns:ee,onClose:ce,size:"small"})})]})}const v2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#1a1a1a"};function x2(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=Lt(v2,Sn,jn);return n.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[n.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:[n.jsx("defs",{children:n.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[n.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),n.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),n.jsx("g",{transform:"translate(25, 45)",children:n.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(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${za}")`}})]})}const _2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function w2(e={}){const t=Lt(_2,Sn,jn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${za}")`}})]})}function B2(e,t){if(e){if(t==="manager_pro")return n.jsx(w2,{});if(t==="manager_standard")return n.jsx(x2,{});if(t==="manager_lite")return n.jsx(ou,{})}}function k2(e){const t=ua(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,s,l]=a;return n.jsxs(n.Fragment,{children:[r&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,l.trim()&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:l.trim()})]})}function A2(e){const{t}=xe.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:l,period:i="monthly",ownedCodes:u}=e||{},c=x=>!!x&&!!u?.includes(x),d=x=>x.onceOnly??/오픈\s*특가/.test(x.label??""),m=(s.tiers||[]).some(x=>d(x)&&c(x.code)),p=x=>{const N=x.prices?x.prices[i]:x.price;return N?(s.tiers||[]).some(y=>!!y.badge&&y.originals?.[i]===N):!1},h=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",g=t("payment.plan.freePrice","\uBB34\uB8CC"),v=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=x=>x.prices?x.prices[i]:x.price,f=(s.tiers||[]).length>0&&(s.tiers||[]).every(x=>{const N=C(x);return N==="\uBB34\uB8CC"||N===g||N==="0\uC6D0"||typeof N=="string"&&/\d/.test(N)&&!/[1-9]/.test(N)}),_=(s.tiers||[]).length>0&&(s.tiers||[]).every(x=>{const N=C(x);return N==="\uBB38\uC758"||N===v}),b=s.group==="org",k=b?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx($t,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),n.jsxs("div",{className:"payment-plan__title",children:[n.jsx("p",{className:"payment-plan__quote body-3b",style:{color:h},children:s.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((x,N)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(ot,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),x]},N))})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.features||[]).map((x,N)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(ot,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),x]},N))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:f?null:_?n.jsx(be,{htmlType:"button",className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&l?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):n.jsx(n.Fragment,{children:n.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(x=>{const N=x.label||a,y=d(x),w=y||x.openPromo===!0,B=N.replace(/^오픈\s*특가\s*/,"")||a,E=x.prices?x.prices[i]:x.price,D=x.badge?w?`${r}
|
|
823
|
+
${x.badge}`:x.badge:void 0;if(y&&c(x.code))return null;if(!x.badge&&!m)return p(x)?null:n.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${x.highlight?" payment-plan__pricing-row--highlight":""}`,children:[n.jsx("div",{className:"payment-plan__pricing-row-title",children:n.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:x.label})}),n.jsx("div",{className:"payment-plan__pricing-row-price",children:n.jsx("span",{className:"payment-plan__pricing-current h1",children:k2(E)})})]},x.id);const A=s.tier??(b?s.title:void 0),F=n.jsx(iu,{showPrice:!0,product:{type:k,code:x.code,name:B,label:A,price:E,originalPrice:x.originals?.[i]??void 0,discountLabel:D},bg:B2(b,s.id)}),$=()=>l?.({...x,productId:s.id,productTitle:s.title,preview:F});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:$,onKeyDown:l?K=>{K.target===K.currentTarget&&(K.key==="Enter"||K.key===" ")&&(K.preventDefault(),$())}:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,children:F},x.id)})})})})]})}function N2({variant:e="default"}){return n.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var Mo='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_IHAB_en" xmlns="http://www.w3.org/2000/svg" width="765.08" height="240" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 765.08 240"><defs><linearGradient id="linear-gradient" x1="62.99" y1="62.99" x2="190.71" y2="190.71" gradientUnits="userSpaceOnUse"><stop offset=".2" stop-color="%23499cdf"/><stop offset=".8" stop-color="%234dcdc0"/></linearGradient></defs><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="url(%23linear-gradient)"/><g id="text"><path d="M316.21,190.6h-36.74V50.61h36.74v139.99Z"/><path d="M335.16,50.61h36.74v55.11h51.63v-55.11h36.93v139.99h-36.93v-55.11h-51.63v55.11h-36.74V50.61Z"/><path d="M473.99,190.6l46.6-139.99h50.08l46.41,139.99h-39.64l-8.31-27.46h-46.99l-8.31,27.46h-39.83ZM560.62,135.3l-14.5-46.99h-1.16l-14.31,46.99h29.97Z"/><path d="M631,50.61h59.94c31.9,0,48.73,13.73,48.73,35.19,0,15.47-11.02,27.26-26.88,30.55v1.35c17.6.58,32.29,13.54,32.29,33.45,0,22.82-18.56,39.45-49.11,39.45h-64.97V50.61ZM701.77,93.53c0-8.89-6.96-13.92-17.02-13.92h-17.02v27.84h16.44c10.25,0,17.6-5.03,17.6-13.92ZM706.22,146.51c0-10.25-7.35-16.05-19.14-16.05h-19.34v30.55h18.76c13.15,0,19.72-5.03,19.72-14.5Z"/></g></svg>';const uu={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#c9c9c9"};function E2(){const e=Lt(uu,Sn,jn);return n.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${Mo}")`}})})}const cu={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEarManager_ko",logoColor:"_mono",copyrightColor:"#ffffff"};function D2(e={}){const t=Lt(cu,Sn,jn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),n.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${za}")`}})]})}function du({keys:e,anchor:t="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return n.jsx("span",{className:Be("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.map((l,i)=>n.jsxs("span",{className:"shortcut-badge__group",children:[i>0&&n.jsx("span",{className:"shortcut-badge__plus",children:"+"}),n.jsx("kbd",{className:"shortcut-badge__key",children:l})]},`${l}-${i}`))})}const Wa=(e,t,a)=>e+(t-e)*a;function S2({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:l=null,answerId:i=null,showFeedback:u=!1,pulseSelected:c=!1,pulseSelectedDuration:d,pulseScale:m,clickable:p=!1,onSelectSpeaker:h,buttonSize:g=40,showIcon:v=!0,onCenterClick:C,centerLabel:f,centerDisabled:_=!1,centerAttention:b=!1,shortcutAnchor:k="top-right",shortcutScale:x,scaleShortcut:N=!1}){const{t:y}=xe.useTranslation(),w=Math.max(0,Math.min(1,a)),B=t/2,E=110/300,D=.18,A=W=>t*(E+(W-1)*D),F=W=>{const U=A(W.row??1),de=W.angleDeg*Math.PI/180;return{x:B+U*Math.cos(de),y:B+U*Math.sin(de)}},$=Math.max(...e.map(W=>W.row??1),1),K=t*.08,L=t*.1,P=t*.24,M=t-2*K,G=t-L-P,H=t-P/2,O=o.useMemo(()=>[...new Set(e.map(W=>W.deg))].sort((W,U)=>W-U),[e]),Q=O.length,I=Math.max(68,Q>1?M/(Q-1):0),q=o.useMemo(()=>new Map(O.map((W,U)=>[W,U])),[O]),Z=W=>{const U=q.get(W.deg)??0,de=B+(U-(Q-1)/2)*I,De=$>1?Math.min(68,G/($-1)):0,ye=De*($-1),pe=L+(G-ye)/2,ie=$===1?L+G*.4:pe+($-(W.row??1))*De;return{x:de,y:ie}},V=W=>{const U=F(W),de=Z(W);return{x:Wa(U.x,de.x,w),y:Wa(U.y,de.y,w)}},S={x:B,y:Wa(B,H,w)},R=Math.round(g*1.2),T=Math.round(Math.max(16,Math.min(80,g*.7))),Y=[],ce=new Map;for(const W of e){const U=W.row??1;ce.has(U)||ce.set(U,[]),ce.get(U).push(W)}for(const[W,U]of ce.entries()){if(U.length<2)continue;const de=[...U].sort((We,dt)=>We.deg-dt.deg),De=de.map(We=>V(We)),ye=de.map(We=>We.deg),pe=ye[ye.length-1]-ye[0],ie=pe/(ye.length-1),ge=360-pe,he=de.length>=3&&ie>0&&ge<=ie*1.5,se=Math.round(A(W)*1e3)/1e3,Le=(We,dt,at,st)=>{const it=(dt.angleDeg-We.angleDeg+540)%360-180;if(it===0)return`L ${st.x} ${st.y}`;if(w===0)return`A ${se} ${se} 0 0 ${it>0?1:0} ${st.x} ${st.y}`;const Ee=(We.angleDeg+it/2)*Math.PI/180,Ue={x:B+se*Math.cos(Ee),y:B+se*Math.sin(Ee)},Ae={x:(at.x+st.x)/2,y:(at.y+st.y)/2},He={x:Wa(Ue.x,Ae.x,w),y:Wa(Ue.y,Ae.y,w)},et={x:2*He.x-Ae.x,y:2*He.y-Ae.y};return`Q ${et.x} ${et.y} ${st.x} ${st.y}`},Oe=he?[...de,de[0]]:de,Me=he?[...De,De[0]]:De;let qe=`M ${Me[0].x} ${Me[0].y}`;for(let We=1;We<Me.length;We++)qe+=" "+Le(Oe[We-1],Oe[We],Me[We-1],Me[We]);Y.push({key:`arc-${W}`,d:qe})}const re=o.useMemo(()=>new Set(s??[]),[s]),oe=W=>({idle:"",active:y("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:y("soundCompass.state.played","\uB4E4\uC74C"),correct:y("soundCompass.state.correct","\uC815\uB2F5"),wrong:y("soundCompass.state.wrong","\uC624\uB2F5")})[W],ae=W=>{if(r===W.id)return"active";if(u){if(W.id===i)return"correct";if(W.id===l&&l!==i)return"wrong"}return re.has(W.id)?"played":"idle"},z=W=>r===W.id?"loop":u?W.id===i?"loop":null:c&&W.id===l?"once":null,ee=(W,U)=>{switch(W){case"played":case"correct":return n.jsx(Is,{size:U});case"wrong":return n.jsx(Ks,{size:U});default:return n.jsx(Gs,{size:U})}};return n.jsx("div",{className:"sound-compass",children:n.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[n.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[w===0&&e.map(W=>{const{x:U,y:de}=V(W);return n.jsx("line",{x1:S.x,y1:S.y,x2:U,y2:de,stroke:"#dde3ec",strokeWidth:"1"},W.id)}),Y.map(W=>n.jsx("path",{d:W.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},W.key))]}),b&&!_&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:R,height:R,left:S.x-R/2,top:S.y-R/2}}),C?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${_?" sound-compass__center--disabled":""}`,style:{width:R,height:R,left:S.x,top:S.y},"aria-label":f,"aria-disabled":_||void 0,tabIndex:_?-1:0,onClick:_?void 0:C,children:n.jsx(Ir,{size:T,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:R,height:R,left:S.x,top:S.y},children:n.jsx(Ir,{size:T,color:"currentColor",strokeWidth:1.5})}),e.map((W,U)=>{const{x:de,y:De}=V(W),ye=ae(W),pe=z(W),ie={...x!==void 0||N?{"--shortcut-badge-scale":String(x??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:ye!=="idle"?10:1},ge=g,he=Math.round(Math.max(10,Math.min(56,ge*.38))),se=Math.round(Math.max(7,Math.min(18,ge*.2))),Le=Math.round(Math.max(10,Math.min(56,ge*.4))),Oe=v==="answered"&&(ye==="played"||ye==="correct"||ye==="wrong"),Me=v===!0||Oe,qe=!Oe;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...ie,left:de-ge/2,top:De-ge/2},children:[pe&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ye}`+(pe==="once"?" sound-compass__pulse--once":""),style:{width:ge,height:ge,...pe==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),n.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>h?.(W.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ye}`,style:{width:ge,height:ge},"aria-label":oe(ye)?`${W.label}, ${oe(ye)}`:W.label,"aria-pressed":l!=null?W.id===l:void 0,children:[Me&&ee(ye,he),qe&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:v===!0?se:Le},children:U+1})]}),W.shortcut&&n.jsx(du,{keys:W.shortcut,anchor:k,className:"sound-compass__speaker-shortcut"})]},W.id)})]})})}function j2({children:e,position:t="top-left",size:a=24,className:r=""}){return n.jsx("span",{className:Be("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}function T2({orientation:e="horizontal",label:t,className:a=""}){const r=Be("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?n.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?n.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[n.jsx("span",{className:"divider__line"}),n.jsx("span",{className:"divider__label caption-1",children:t}),n.jsx("span",{className:"divider__line"})]}):n.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function pu({checked:e,onChange:t,name:a,value:r,disabled:s=!1,label:l,className:i=""}){const u=o.useId();return n.jsxs("label",{className:`radio${s?" radio--disabled":""} ${i}`.trim(),htmlFor:u,children:[n.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:c=>t?.(c.target.checked)}),n.jsx("span",{className:"radio__dot"}),l&&n.jsx("span",{className:"radio__label body-2",children:l})]})}function M2({options:e,value:t,onChange:a,name:r,disabled:s=!1,direction:l="vertical",className:i="",ariaLabel:u}){const c=o.useId(),d=r??`radio-group-${c}`;return n.jsx("div",{className:`radio-group radio-group--${l} ${i}`.trim(),role:"radiogroup","aria-label":u,children:e.map(m=>n.jsx(pu,{name:d,value:m.value,checked:t===m.value,disabled:s||m.disabled,label:m.label,onChange:p=>{p&&a?.(m.value)}},m.value))})}const L2={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function $2({tone:e="info",title:t,message:a,children:r,dismissible:s=!1,onDismiss:l,live:i,className:u=""}){const{t:c}=xe.useTranslation(),[d,m]=o.useState(!1),p=o.useRef(null),h=o.useCallback(()=>{const b=p.current;b&&b.contains(document.activeElement)&&sr(b),m(!0),l?.()},[l]);if(d)return null;const g=Be("alert",`alert--${e}`,u),v=i??(e==="danger"||e==="warning"?"assertive":"polite"),C=v==="assertive"?"alert":v==="polite"?"status":void 0,f=!!t,_=!!(a||r);return n.jsxs("div",{ref:p,className:g,role:C,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(ot,{icon:L2[e],size:20,className:"alert__icon"}),f&&n.jsx("span",{className:"alert__title body-2",children:t}),!f&&_&&n.jsx("div",{className:"alert__message body-3",children:a||r})]}),f&&_&&n.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:h,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const R2={ready:"search",guide:"info",error:"circle-alert"};function P2(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let s=0,l=0;for(const i of a){const u=e.indexOf(i,s);u<0||(u>s&&r.push(e.slice(s,u)),r.push(n.jsx("strong",{className:"search-summary__em body-2",children:i},l++)),s=u+i.length)}return s<e.length&&r.push(e.slice(s)),r}function I2({status:e="guide",label:t,children:a,emphasis:r,icon:s,className:l=""}){const i=s===!1?null:s??R2[e],u=Be("search-summary",`search-summary--${e}`,l),c=t??a,d=typeof c=="string"&&r&&r.length>0?P2(c,r):c;return n.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[i!=null&&n.jsx(ot,{icon:i,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function Ha({title:e,items:t}){const{t:a}=xe.useTranslation(),{anchorRect:r,openAt:s,close:l}=Pa(),i=o.useRef(null),u=vo(!!r,(c,d)=>{c&&d?s(i.current?.querySelector("button")??d):l()},i);return n.jsxs("span",{ref:i,style:{display:"contents"},children:[n.jsx(be,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:c=>{da(c)||s(c.currentTarget)},onPointerLeave:c=>{da(c)||l()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{pa()||s(c.currentTarget)},onBlur:l}),r&&n.jsx(Kn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:l})]})}function F2({items:e=[],value:t,onChange:a,className:r="",size:s=40}){const l=o.useId(),{t:i}=xe.useTranslation(),u=o.useRef(null),c=e.find(C=>!C.disabled)?.key,d=e.some(C=>C.key===t)?t:c??e[0]?.key,m=e.find(C=>C.key===d&&!C.disabled)?.key??c,p=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(C,f=p())=>{if(f.length===0)return;const _=(C%f.length+f.length)%f.length;f[_]?.focus(),f[_]?.click()},g=C=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(C.key))return;C.preventDefault();const f=p(),_=f.indexOf(C.currentTarget);C.key==="ArrowRight"||C.key==="ArrowDown"?h(_+1,f):C.key==="ArrowLeft"||C.key==="ArrowUp"?h(_-1,f):C.key==="Home"?h(0,f):h(f.length-1,f)},v=e.find(C=>C.key===d);return n.jsxs("div",{className:`tabs ${r}`.trim(),children:[n.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,role:"tablist","aria-label":i("tabs.ariaLabel","\uD0ED"),children:e.map(C=>n.jsx("button",{id:`tabs__tab-${l}-${C.key}`,type:"button",role:"tab","aria-selected":C.key===d,"aria-controls":`tabs__panel-${l}-${C.key}`,disabled:C.disabled,tabIndex:C.key===m?0:-1,className:`tabs__tab body-2${C.key===d?" tabs__tab--active":""}`,onClick:()=>{C.key!==t&&a?.(C.key)},onKeyDown:g,children:C.label},C.key))}),v&&n.jsx("div",{id:`tabs__panel-${l}-${v.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${l}-${v.key}`,tabIndex:0,className:"tabs__panel",children:v.panel},v.key)]})}const O2={xs:12,sm:16,md:20,lg:28,xl:36};function z2(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function W2({src:e,name:t,size:a="md",shape:r="circle",className:s=""}){const{t:l}=xe.useTranslation(),[i,u]=o.useState(null),c=!!e&&i===e,d=t?z2(t):"",m=!!e&&!c,p=!m&&!!d,h=t||l("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return n.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":h,children:[m&&n.jsx("img",{className:"avatar__image",src:e,alt:h,onError:()=>u(e??null)}),!m&&p&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!m&&!p&&n.jsx(ot,{icon:"user-round",size:O2[a],className:"avatar__icon"})]})}function H2(e,t){if(!t)return!0;const a=t.split(",").map(l=>l.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),s=e.type.toLowerCase();return a.some(l=>{const i=l.toLowerCase();return i.startsWith(".")?r.endsWith(i):i.endsWith("/*")?s.startsWith(i.slice(0,-1)):s===i})}function V2({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:l,onRemove:i,className:u=""}){const{t:c}=xe.useTranslation(),d=o.useRef(null),[m,p]=o.useState(!1),[h,g]=o.useState([]),v=l??h,C=y=>{if(!y||y.length===0)return;const w=Array.from(y).filter(E=>H2(E,t));if(w.length===0)return;const B=a?w:w.slice(0,1);if(l===void 0){const E=a?[...v,...B]:B;g(E),e?.(E)}else e?.(B)},f=y=>{y.preventDefault(),!r&&p(!0)},_=y=>{y.preventDefault(),p(!1)},b=y=>{y.preventDefault(),p(!1),!r&&C(y.dataTransfer.files)},k=y=>{const w=y.target;try{C(w.files)}finally{w.value=""}},x=()=>{r||d.current?.click()},N=y=>{if(!r&&(i?.(y),l===void 0)){const w=v.filter((B,E)=>E!==y);g(w),i||e?.(w)}};return n.jsxs("div",{className:`file-upload ${u}`.trim(),children:[n.jsxs("div",{className:Be("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:x,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),x())},onDragOver:f,onDragLeave:_,onDrop:b,children:[n.jsx(ot,{icon:"upload",size:24,className:"file-upload__icon"}),n.jsx("span",{className:"file-upload__prompt body-2",children:c("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),n.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:y=>{y.stopPropagation(),x()},children:c("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:k,tabIndex:-1})]}),s&&v.length>0&&n.jsx("ul",{className:"file-upload__list",children:v.map((y,w)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:y.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:y.name}),disabled:r,onClick:()=>N(w),children:n.jsx(ot,{icon:"x",size:14})})]},`${y.name}-${w}`))})]})}function q2({items:e,className:t=""}){const{t:a}=xe.useTranslation();return n.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:n.jsx("ol",{className:"breadcrumb__list",children:e.map((r,s)=>{const l=s===e.length-1;return n.jsxs("li",{className:"breadcrumb__item",children:[l?n.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):r.href?n.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?n.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):n.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!l&&n.jsx(ot,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const U2={small:14,medium:20,large:28};function G2({value:e,onChange:t,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:l,className:i=""}){const{t:u}=xe.useTranslation(),c=r||!t,[d,m]=o.useState(null),p=c?e:Number.isFinite(e)?Math.round(e):0,h=d??p,g=U2[s],v=y=>{y!==e&&t?.(y)},C=y=>{c||v(y)},f=y=>{c||pa()||m(y)},_=o.useRef(null),b=y=>{const w=Math.min(a,Math.max(1,y));v(w),Array.from(_.current?.querySelectorAll("[data-star]")??[]).find(B=>B.dataset.star===String(w))?.focus()},k=y=>{if(!c){switch(y.key){case"ArrowRight":case"ArrowUp":b((p||0)+1);break;case"ArrowLeft":case"ArrowDown":b((p||1)-1);break;case"Home":b(1);break;case"End":b(a);break;default:return}y.preventDefault()}},x=p>=1&&p<=a?Math.round(p):1,N=()=>{c||m(null)};return n.jsx("div",{className:`rating rating--${s}${c?" rating--readOnly":""} ${i}`.trim(),ref:_,onKeyDown:k,role:c?"img":"radiogroup","aria-label":c?u("rating.valueLabel",{value:e,max:a}):l??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:N,onPointerUp:y=>{y.pointerType==="touch"&&N()},onPointerCancel:y=>{y.pointerType==="touch"&&N()},children:Array.from({length:a},(y,w)=>{const B=w+1,E=Math.max(0,Math.min(1,h-w)),D=E>0&&E<1,A=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(ot,{icon:"star",size:g,className:"rating__star rating__star--empty"}),E>0&&n.jsx("span",{className:`rating__star-fill${D?" rating__star-fill--half":""}`,style:D?{width:`${E*100}%`}:void 0,children:n.jsx(ot,{icon:"star",size:g,className:"rating__star rating__star--filled"})})]});return c?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:A},B):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":p===B,"aria-label":u("rating.starLabel",{n:B}),"data-star":B,tabIndex:B===x?0:-1,onClick:()=>C(B),onMouseEnter:()=>f(B),children:A},B)})})}const K2=20,Y2=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function Z2({value:e,onChange:t,palette:a=Y2,size:r=40,className:s="",ariaLabel:l}){const{t:i}=xe.useTranslation();return n.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":l,children:a.map(u=>{const c=e?.toLowerCase()===u.toLowerCase();return n.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>t(u),"aria-pressed":c,"aria-label":c?`${u} ${i("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:c&&n.jsx(ot,{icon:"check",size:K2,className:"color-picker__check"})},u)})})}function mu({icon:e,label:t,tooltip:a,wrapperStyle:r,color:s,bgColor:l,useHover:i=!0,iconSize:u="medium"}){const{t:c}=xe.useTranslation(),d=u==="small",m=Be("category-icon",d?"category-icon--small":""),p=d?16:20,h=o.useRef(null),[g,v]=o.useState(!1),C=o.useMemo(()=>{const B=r&&typeof r=="object"?{...r}:{};return!s&&!l?B:{...B,...s?{color:s,"--t-item-fg":s}:{},...l?{"--t-item-bg":l}:{}}},[r,s,l]),f=a||t,_=i&&!!f,[b,k]=o.useState(null);o.useLayoutEffect(()=>{g&&k(h.current?.getBoundingClientRect()??null)},[g]),o.useEffect(()=>{if(!i&&g)try{v(!1)}catch{}},[i,g]),o.useEffect(()=>{if(!g)return;const B=E=>{const D=h.current;if(!D)return;const A=E.target;A&&!D.contains(A)&&v(!1)};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[g]);const x=o.useCallback(()=>{i&&v(!0)},[i]),N=o.useCallback(()=>{i&&v(!1)},[i]),y=o.useCallback(()=>v(!1),[]),w=o.useCallback(B=>{if(B.key==="Escape"){v(!1);return}(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),v(E=>!E))},[]);return n.jsxs("span",{ref:h,className:Be("category-icon__wrap",_&&"category-icon__wrap--interactive"),onPointerEnter:x,onPointerLeave:N,onFocus:x,onBlur:N,onKeyDown:w,role:"button",tabIndex:0,"aria-label":typeof f=="string"?c("common.descriptionFor",{name:f,defaultValue:`${f} \uC124\uBA85`}):void 0,"aria-haspopup":!!f,"aria-expanded":g,"data-tooltip-ignore":!0,children:[n.jsx(ot,{icon:e,label:t,className:m,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:C,size:p}),g&&f&&n.jsx(En,{anchorRect:b,text:typeof f=="string"?f:void 0,offset:8,onClose:y,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}let zn=null;function pr(e){if(zn&&zn!==e)try{zn()}catch{}return zn=e,()=>{zn===e&&(zn=null)}}function mr(e){if(zn===e){zn=null;try{e()}catch{}}}function hr(e,t){let a=()=>{};const r=new Promise(u=>{a=u});if(typeof e!="string"||e.trim()===""){Tt("one-shot-empty-url","[core] playOneShot \uC5D0 \uBE48 \uC8FC\uC18C\uAC00 \uC654\uB2E4 \u2014 \uC548 \uD2BC\uB2E4. \uBD80\uB974\uB294 \uCABD\uC774 \uC8FC\uC18C\uB97C \uC5BB\uAE30 \uC804\uC5D0 \uBD88\uB800\uB2E4.",new Error("playOneShot(empty)").stack),a(!1);try{t?.(!1)}catch{}return{el:{},stop:()=>{},done:r}}let s=!1;const l=u=>{if(!s){s=!0;try{t?.(u)}catch{}a(u)}};let i;try{i=new Audio(e)}catch{return l(!1),{el:{},stop:()=>{},done:r}}i.onended=()=>l(!0),i.onerror=()=>l(!1);try{i.play().catch(()=>l(!1))}catch{l(!1)}return{el:i,stop:()=>{try{i.pause()}catch{}l(!1)},done:r}}function X2(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=i=>i.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const i=a.sentences||a.items||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const i=a.items||a.sentences||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const i=a.items||a.sentences||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const i=a.sentences||a.items||[],u=Array.isArray(i)&&i.length>0?r(i):[];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||[],l=r(Array.isArray(s)?s:[]);return l.length===0&&(a.contextCode||a.context_code)&&l.push(String(a.contextCode||a.context_code)),{previewCodes:l,previewBucket:null}}function J2(e,t){const[a,r]=o.useState(!1),[s,l]=o.useState(-1),[i,u]=o.useState({key:"",urls:[]}),c=o.useRef(null),d=o.useRef(!1),m=o.useRef(null),p=o.useRef(null),[h,g]=o.useState(!1),v=o.useRef([]),{previewCodes:C,previewBucket:f}=X2(e,t),_=`${C.join(",")}|${f??""}`,b=o.useMemo(()=>i.key===_?i.urls:[],[i,_]);o.useEffect(()=>{if(!C.length)return;let x=!1;return(async()=>{const N=[],y=[];for(const w of C)try{const B=xl(w,f);if(!B){N.push("");continue}let E=null;try{E=await _l(B)}catch{}if(!E)try{const D=await wl(B);D&&(E=URL.createObjectURL(D),y.push(E))}catch{}N.push(E??"")}catch{N.push("")}x?y.forEach(w=>{try{URL.revokeObjectURL(w)}catch{}}):(v.current.forEach(w=>{try{URL.revokeObjectURL(w)}catch{}}),v.current=y,u({key:_,urls:N}))})(),()=>{x=!0}},[C.join(","),f]),o.useEffect(()=>()=>{v.current.forEach(x=>{try{URL.revokeObjectURL(x)}catch{}}),v.current=[]},[]);const k=o.useCallback(async x=>{if(x.stopPropagation(),x.preventDefault(),d.current){m.current&&mr(m.current),d.current=!1;try{c.current?.pause()}catch{}r(!1),l(-1);return}if(!b.filter(Boolean).length)return;let N=null;const y=()=>{d.current=!1,N?.stop()};m.current=y;const w=pr(y);d.current=!0,r(!0);for(let B=0;B<b.length&&d.current;B++){const E=b[B];if(E&&(l(B),N=hr(E),c.current=N.el,!await N.done))break}w(),m.current===y&&(m.current=null,d.current=!1,r(!1),l(-1))},[b]);return o.useEffect(()=>()=>{m.current&&mr(m.current),d.current=!1;try{c.current?.pause()}catch{}c.current=null},[]),{playing:a,playingIndex:s,previewUrls:b,previewHover:h,setPreviewHover:g,previewBtnRef:p,handlePreview:k}}const Q2=e=>{if(!e)return[];const t=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(t)return[String(t)];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:t,type:a,trainingData:r,ariaLabel:s,depth:l,renderPopup:i,completed:u,completedIds:c,selectedIds:d,tooltipText:m,useDescriptionTooltip:p=!1,onRemove:h,hideCheckBadge:g=!1,showTypeLabel:v=!1,onComplete:C,onSelect:f,onMore:_,countLabelOverride:b,size:k="square"}=e||{},{t:x}=xe.useTranslation(),[N,y]=o.useState(!1),w=o.useRef(null),[B,E]=o.useState(!1);o.useEffect(()=>{w.current?.matches(":hover")&&E(!0)},[]);const{playing:D,playingIndex:A,previewUrls:F,previewHover:$,setPreviewHover:K,previewBtnRef:L,handlePreview:P}=J2(r,a?.key),M=o.useCallback(()=>{f?f():y(!0)},[f]),G=o.useCallback(()=>y(!1),[]),H=o.useCallback(()=>E(!0),[]),O=o.useCallback(()=>E(!1),[]),Q=o.useCallback(()=>K(!0),[K]),I=o.useCallback(()=>K(!1),[K]),[q,Z]=o.useState(null);o.useLayoutEffect(()=>{$&&Z(L.current?.getBoundingClientRect()??null)},[$,L]);const[V,S]=o.useState(null);o.useLayoutEffect(()=>{B&&!N&&p&&S(w.current?.getBoundingClientRect()??null)},[B,N,p]);const R=o.useCallback(Ae=>{Ae.target===Ae.currentTarget&&(Ae.key==="Enter"||Ae.key===" ")&&(Ae.preventDefault(),M())},[M]),T=r||null,Y=o.useMemo(()=>{if(!p)return null;const Ae=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,He=Ae&&Ae.length>0?Ae:Q2(T);return He&&He.length>0?He:null},[p,m,T]),ce=o.useCallback(Ae=>{Ae.stopPropagation(),h?.()},[h]),re=o.useCallback(Ae=>Ae.stopPropagation(),[]),oe=o.useCallback(Ae=>{typeof C=="function"&&C(Ae)},[C]),ae=u||(c&&r?.id!=null?c.has(String(r.id)):!1),z=!ae&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);Ri("speechear.popup.close",G);const ee=Gl(),W=`${a?.label||""} ${t+1}`,U=T?.title||T?.name||W;let de=a?.icon,De,ye="",pe="";try{const Ae=T?.category_0||T?.category_main_code||T?.category_main,He=T?.category_1||T?.category_sub_code||T?.category_sub,et=ee.find(pt=>pt.key===Ae);et?.icon&&(de=et.icon),!De&&et?.color&&(De={"--t-item-fg":et.color}),!De&&T?.iconColor&&(De={"--t-item-fg":T.iconColor}),ye=et?x(`topic.${et.key}`,{defaultValue:et.label||""}):"";try{const pt=et?.subs?.find(Dt=>Dt.key===He);pe=pt?x(`topic.sub.${pt.key}`,{defaultValue:pt.label||""}):""}catch{}}catch{}const ie=pe?`${ye} / ${pe}`:ye||a?.label||U,ge=Ae=>x("training.countQuestions",{n:Ae,count:Ae}),he=Ae=>x("training.countSentences",{n:Ae,count:Ae});let se="";try{if(T)if(a?.key==="LISTEN_IN_NOISE"){let Ae=0;Array.isArray(T.items)&&T.items.length>0?Ae=T.items.length:Array.isArray(T.sentences)&&T.sentences.length>0?Ae=T.sentences.length:T.sentences&&(Ae=1),se=he(Ae)}else if(a?.key==="SHORT_STORY"){let Ae=1;Array.isArray(r?.items)?Ae=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Ae=r.raw.items.length:Array.isArray(T?.questions)?Ae=T.questions.length:Array.isArray(T?.sentences)&&(Ae=T.sentences.length),se=ge(Ae)}else if(a?.key==="LONG_STORY"){let Ae=1;if(Array.isArray(T.items)&&T.items.length>0){const He=T.items.reduce((et,pt)=>{const Dt=pt.questionItems;return Array.isArray(Dt)?et+Dt.length:Array.isArray(pt.questions)?et+pt.questions.length:et},0);Ae=He>0?He:T.items.length}else Array.isArray(T.questions)&&T.questions.length>0?Ae=T.questions.length:Array.isArray(T.sentences)&&T.sentences.length>0&&(Ae=T.sentences.length);se=ge(Ae)}else if(a?.key==="ORDERING_SENTENCE"){let Ae=1;Array.isArray(T.items)&&T.items.length>0?Ae=T.items.length:Array.isArray(T.sentences)&&T.sentences.length>0&&(Ae=T.sentences.length),se=he(Ae)}else Array.isArray(T.items)&&(se=T.items.length>0?ge(T.items.length):"")}catch{}const Le=k==="row",Oe=k==="list"||Le,Me=k==="compact",qe=k==="small",We=qe&&a?.key?If().find(Ae=>Ae.key===a.key):void 0,dt=We?Kl[We.key]:void 0,at=We?dt?x(`trainingType.${dt}.title`,{defaultValue:We.label}):We.label??"":"",st=v&&a?.label&&a.label!==String(U)?String(a.label):qe&&at&&at!==String(U)?at:"",it=!!st,Ee=b!==void 0?b:se,Ue=[st,typeof U=="string"?U:"",Ee].map(Ae=>String(Ae??"").trim()).filter(Boolean).join(" ");return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:w,className:`training-block-button${Oe?" training-block-button--list":""}${Le?" training-block-button--row":""}${Me?" training-block-button--compact":""}${qe?" training-block-button--small":""}${ae?" training-block-button--completed":""}${z?" training-block-button--selected":""}${it&&!qe?" training-block-button--withType":""}${qe&&!it?" training-block-button--no-type-label":""}`,onClick:M,onPointerEnter:H,onPointerLeave:O,role:"button",tabIndex:0,onKeyDown:R,"aria-label":typeof s=="string"?s:Ue||void 0,title:!p&&m&&(Array.isArray(m)?m.filter(Boolean).join(`
|
|
824
|
+
`):m)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[v&&a?.label&&a.label!==String(U)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),qe&&at&&at!==String(U)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:at}),n.jsx(mu,{icon:de,label:U,tooltip:ie,wrapperStyle:De,iconSize:qe||Me?"small":"medium"}),!g&&(ae||z)&&!(h&&B)&&n.jsx($t,{className:h?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":ae?x("training.completed","\uD6C8\uB828 \uC644\uB8CC"):x("training.selected","\uC120\uD0DD\uB428")}),h&&n.jsx($t,{className:`training-block-button__remove${B?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":x("common.remove","\uC81C\uAC70"),onClick:ce}),n.jsx("div",{className:`training-block-button__title ${Me?"body-3":qe?"body-3b":"h3"}`,children:String(U)}),n.jsxs("div",{className:"training-block-button__description",children:[Ee?n.jsx("div",{className:`training-block-button__count ${qe?"caption-2":"caption-1"}`,children:Ee}):null,n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(ot,{icon:"chevron-right",label:x("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:qe?12:20})})]}),(Oe&&!Le||qe)&&F.length>0&&n.jsx("div",{ref:L,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:re,onPointerEnter:Q,onPointerLeave:I,children:n.jsx(be,{htmlType:"button",size:qe?28:32,type:"dot",icon:D?"pause":"play",variant:qe?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:String(U).trim()?D?x("training.stopFor",{name:U,defaultValue:`${U} \uC815\uC9C0`}):x("training.previewFor",{name:U,defaultValue:`${U} \uBBF8\uB9AC \uB4E3\uAE30`}):D?x("training.stop","\uC815\uC9C0"):x("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:P})})]}),_&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:Ae=>{Ae.stopPropagation(),_(Ae)},children:n.jsx(be,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(U).trim()?x("common.moreFor",{name:U}):x("common.more","\uB354\uBCF4\uAE30")})})]}),$&&n.jsx(En,{anchorRect:q,text:D?x("training.stop","\uC815\uC9C0"):x("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:I}),B&&!N&&p&&(Y?n.jsx(Kn,{anchorRect:V,items:Y,activeIndex:A,onClose:O}):T?.subTitle?n.jsx(En,{anchorRect:V,text:T.subTitle,offset:8,onClose:O}):null),N&&i&&i({trainingData:T,typeKey:a?.key??"",onClose:G,onComplete:oe,popupTitle:String(U),popupSubTitle:a?.subTitle,depth:l!=null?String(l):void 0,popupIcon:de,popupIconTooltip:String(ie),popupWrapperStyle:De})]})}const hu=200;function ev(e){return e.itemId?(Hf()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function Cu({plan:e,groups:t,anchorRect:a,offset:r=12,onClose:s}){const{t:l}=xe.useTranslation(),i=o.useMemo(()=>t?t.map((c,d)=>({key:c.key??c.type?.key??String(d),label:c.label,type:c.type,data:c.items??[]})).filter(c=>c.data.length>0):qf(l).map(c=>{const d=(e?.items??[]).filter(m=>m.trainingType===c.key);return{key:c.key,label:c.label,type:c,pickedCount:d.length,data:d.map(ev).filter(m=>m!=null)}}).filter(c=>c.pickedCount>0),[t,e?.items,l]);if(i.length===0)return null;const u=n.jsx("div",{className:"tooltip-training__box",children:n.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({key:c,label:d,type:m,data:p},h)=>[h>0?n.jsx("div",{className:"tooltip-training__divider"},`div-${c}`):null,n.jsxs("div",{className:"tooltip-training__section",children:[n.jsx("div",{className:"tooltip-training__section-header",children:n.jsx("span",{className:"tooltip-training__type-label body-3b",children:d})}),n.jsx("div",{className:"tooltip-training__items",children:p.map((g,v)=>n.jsx(Lo,{index:v,type:m,trainingData:g,size:"compact",hideCheckBadge:!0},String(g.id??v)))})]},c)])})});return a?n.jsx(yn,{anchorRect:a,offset:r,onClose:s,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:l("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:u}):u}const tv=200;function nv({icon:e,count:t,title:a,plan:r,tooltip:s=!0,hoverAccent:l=!1,className:i="",onClick:u,onMouseEnter:c,onMouseLeave:d}){const m=!!u||!!c||s&&!!r,p=Be("count-tile",m&&"count-tile--interactive",m&&l&&"count-tile--accent",u&&"count-tile--clickable",i),h=o.useRef(null),[g,v]=o.useState(null),C=o.useRef(null),f=o.useRef(null),_=!!(g&&r&&s),b=o.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null),f.current&&(clearTimeout(f.current),f.current=null)},[]),k=o.useCallback(()=>{b(),v(null)},[b]),x=o.useCallback(()=>{!s||!r||(b(),C.current=setTimeout(()=>{C.current=null,v(h.current?.getBoundingClientRect()??null)},hu))},[s,r,b]),N=o.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null),!f.current&&(f.current=setTimeout(()=>{f.current=null,v(null)},tv))},[]);return o.useEffect(()=>()=>{b()},[b]),o.useEffect(()=>{(!s||!r)&&k()},[s,r,k]),o.useEffect(()=>{if(!_)return;const y=B=>B instanceof Element&&(h.current?.contains(B)||!!B.closest(".tooltip-training")),w=B=>{y(B.target)?b():N()};return document.addEventListener("pointerover",w,!0),()=>document.removeEventListener("pointerover",w,!0)},[_,b,N]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:h,className:p,onClick:u?y=>{k(),u(y)}:void 0,onKeyDown:u?y=>{y.key!=="Enter"&&y.key!==" "||(y.preventDefault(),y.currentTarget.click())}:void 0,onPointerEnter:y=>{y.pointerType==="touch"||y.pointerType==="pen"?k():x()},onMouseEnter:c,onMouseLeave:y=>{N(),d?.(y)},role:u?"button":"img",tabIndex:u?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(ot,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]}),g&&r&&n.jsx(Cu,{plan:r,anchorRect:g,onClose:k})]})}let Va=0,fu="",$o="",qa=0;function bu(){return gu(!1)}function av(){return gu(!0)}function gu(e){const t=typeof document<"u";Va===0&&t&&(fu=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(qa===0&&($o=document.body.style.paddingRight),qa++,document.body.style.paddingRight="0px"),Va++;let a=!1;return()=>{a||(a=!0,Va=Math.max(0,Va-1),e&&t&&(qa=Math.max(0,qa-1),qa===0&&($o?document.body.style.paddingRight=$o:document.body.style.removeProperty("padding-right"))),Va===0&&t&&(document.body.style.overflow=fu))}}function rv(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:n.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function ov({open:e,onClose:t,ariaLabel:a,title:r,children:s,size:l="md",closeOnBackdrop:i=!0,closeOnEscape:u=!0,showClose:c=!0,className:d,contentClassName:m}){const{t:p}=xe.useTranslation(),h=o.useId(),g=o.useRef(null),v=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const b=document.activeElement,k=bu(),x=g.current;return fo(x,b),x?.focus(),()=>{k();const N=document.activeElement;(!N||N===document.body||x&&x.contains(N))&&bo(b)?.focus?.()}},[e]);const C=o.useRef(v),f=o.useRef(u);o.useEffect(()=>{C.current=v,f.current=u}),o.useEffect(()=>{if(e)return Gn(()=>{f.current&&C.current()})},[e]);const _=o.useRef(!1);return ho(g,e),!e||typeof document>"u"?null:sn.createPortal(n.jsx("div",{className:Be("dialog",d),onPointerDown:i?b=>{_.current=b.target===b.currentTarget}:void 0,onMouseDown:b=>{b.target===b.currentTarget&&b.preventDefault()},onClick:i?b=>{const k=_.current;_.current=!1,k&&b.target===b.currentTarget&&v()}:void 0,children:n.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:Be("dialog__surface",`dialog__surface--${l}`,m),onClick:b=>b.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,c?n.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:v,children:n.jsx(rv,{})}):null,n.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function sv({columns:e,rows:t,rowKey:a,title:r,toolbar:s,empty:l,loading:i,caption:u,className:c=""}){const{t:d}=xe.useTranslation(),m=!i&&t.length===0;return n.jsxs("div",{className:Be("board",c),children:[r||s?n.jsxs("div",{className:"board__head",children:[r?n.jsx("h2",{className:"board__title",children:r}):n.jsx("span",{}),s?n.jsx("div",{className:"board__toolbar",children:s}):null]}):null,n.jsxs("table",{className:"board__table",children:[u?n.jsx("caption",{className:"board__caption",children:u}):null,n.jsx("thead",{children:n.jsx("tr",{children:e.map(p=>n.jsx("th",{scope:"col",className:Be("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),n.jsx("tbody",{children:i?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):m?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:l??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((p,h)=>n.jsx("tr",{className:"board__row",children:e.map(g=>n.jsx("td",{className:Be("board__td",`board__cell--${g.align??"left"}`),children:g.render(p,h)},g.key))},a(p,h)))})]})]})}function lv({name:e,role:t,photo:a,media:r,credentials:s,size:l=190,className:i=""}){return n.jsxs("div",{className:Be("person-card",i),children:[n.jsx("div",{className:"person-card__photo",style:{width:l,height:l},children:r??(a?n.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),n.jsx("h3",{className:"person-card__name",children:e}),t?n.jsx("p",{className:"person-card__role",children:t}):null,s?.length?n.jsx("ul",{className:"person-card__credentials",children:s.map(u=>n.jsx("li",{children:u},u))}):null]})}function iv({groups:e,className:t=""}){return n.jsx("div",{className:Be("timeline",t),children:e.map(a=>n.jsxs("section",{className:"timeline__group",children:[n.jsx("h3",{className:"timeline__title",children:a.title}),n.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,s)=>n.jsxs("li",{className:"timeline__row",children:[r.label?n.jsx("span",{className:"timeline__label",children:r.label}):null,n.jsx("div",{className:"timeline__items",children:r.items.map((l,i)=>n.jsx("p",{children:l},i))})]},`${r.label??""}-${s}`))})]},a.title))})}function uv({title:e,kind:t,body:a,badge:r,badgeSrc:s,footer:l,width:i,className:u=""}){const c=r??(s?n.jsx("img",{src:s,alt:""}):null);return n.jsxs("div",{className:Be("publication-card",u),style:i?{width:i,flexShrink:0}:void 0,children:[c?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:c}):null,n.jsx("h3",{className:"publication-card__title",children:e}),t?n.jsx("p",{className:"publication-card__kind",children:t}):null,n.jsx("p",{className:"publication-card__body",children:a}),l?n.jsx("div",{className:"publication-card__footer",children:l}):null]})}function cv({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const s=$a(a);return o.useEffect(()=>{const l=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(l)},[r,s]),n.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:n.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}function dv({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:s=2,tone:l="dark",className:i=""}){const u=s===1?"h1":"h2";return n.jsxs("div",{className:Be("section-header",`section-header--${l}`,i),children:[e?n.jsxs("p",{className:"section-header__eyebrow",children:[t?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"section-header__index",children:t}),n.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?n.jsx(u,{className:"section-header__title",children:a}):null,r?n.jsx("div",{className:"section-header__description",children:r}):null]})}function pv({items:e,className:t=""}){return n.jsx("ul",{className:Be("company-meta",t),children:e.map((a,r)=>n.jsxs("li",{className:"company-meta__item",children:[r>0?n.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function yu(e){return typeof e=="string"?e:e.label}function vu({value:e,onChange:t,suggestions:a,openOnFocus:r=!1,filterSuggestions:s,onSelectSuggestion:l,autoActiveFirst:i=!1}){const u=o.useId(),[c,d]=o.useState(!1),[m,p]=o.useState(-1),h=o.useRef(null),g=o.useMemo(()=>{if(!a.length)return[];const A=e??"";return s===!1?a:A?typeof s=="function"?s(a,A):a.filter(F=>yu(F).toLowerCase().includes(A.toLowerCase())):r?a:[]},[a,e,r,s]),[v,C]=o.useState(!1),f=o.useRef([]),_=v&&g.length===0?f.current:g;o.useEffect(()=>{_.length&&(f.current=_)},[_]);const b=o.useCallback(()=>C(!0),[]),k=o.useCallback(()=>C(!1),[]),x=i?0:-1;o.useEffect(()=>{c||p(x)},[c,x]),o.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const N=m<_.length?m:x<_.length?x:-1,y=o.useCallback(A=>{l?l(A):t?.(yu(A)),d(!1)},[t,l]),w=o.useCallback(()=>d(!0),[]),B=o.useCallback(()=>{d(!0),p(x)},[x]),E=o.useCallback(()=>{h.current=setTimeout(()=>d(!1),120)},[]),D=o.useCallback(A=>{A.nativeEvent.isComposing||A.keyCode===229||(A.key==="ArrowDown"?(A.preventDefault(),d(!0),p(F=>Math.min(_.length-1,(F<_.length?F:x)+1))):A.key==="ArrowUp"?(A.preventDefault(),p(F=>Math.max(x,(F<_.length?F:_.length)-1))):A.key==="Enter"?N>=0&&y(_[N]):A.key==="Escape"&&c&&(A.preventDefault(),d(!1)))},[_,N,c,y,x]);return{listId:u,open:c,activeIdx:N,filtered:_,handleFocus:w,handleBlur:E,handleInput:B,handleKeyDown:D,handleSelect:y,handleCompositionStart:b,handleCompositionEnd:k}}const Ro=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Xn(e){const{value:t,defaultValue:a,name:r,inputRef:s,onChange:l,label:i,ariaLabel:u,ariaDescribedBy:c,required:d,placeholder:m,ghostText:p,ghostHint:h,type:g="text",disabled:v=!1,readOnly:C=!1,error:f,helperText:_,maxLength:b,size:k=40,variant:x="input",fullWidth:N=!1,newline:y=!1,multiline:w=!1,rows:B=3,leftIcon:E,rightIcon:D,clearable:A=!1,list:F,showCount:$=!0,className:K="",onFocus:L,onBlur:P,onKeyDown:M,onEnter:G,inputMode:H,autoComplete:O,autoFocus:Q,suggestions:I,filterSuggestions:q,onSelectSuggestion:Z,autoActiveFirst:V,openOnFocus:S=!1}=e,R=C||v?void 0:I,{t:T}=xe.useTranslation(),Y=o.useId();!i&&!u&&Tt(`TextField:unnamed:${Y}`,"[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 ce=`tf-${Y}`,re=`tf-helper-${Y}`,oe=o.useRef(null),ae=vu({value:t??"",onChange:l,suggestions:R??[],openOnFocus:S,filterSuggestions:q,onSelectSuggestion:Z,autoActiveFirst:V}),z=!!R&&ae.open&&ae.filtered.length>0,ee=o.useRef(null),[W,U]=o.useState(null),de=o.useCallback(()=>{const Ee=ee.current;if(!Ee||typeof window>"u")return;const Ue=Ee.getBoundingClientRect(),Ae=230,He=window.innerHeight-Ue.bottom<Ae+8&&Ue.top>Ae+8;U({position:"fixed",left:Ue.left,width:Ue.width,...He?{bottom:window.innerHeight-Ue.top+8}:{top:Ue.bottom+8},zIndex:Ia(Ee)})},[]);Ro(()=>{if(!z)return;de();let Ee=null;const Ue=()=>{if(typeof requestAnimationFrame>"u"){de();return}Ee===null&&(Ee=requestAnimationFrame(()=>{Ee=null,de()}))},Ae=He=>{const et=He.target;et&&et.nodeType===1&&et.closest?.(".text-field__suggestions")||Ue()};return window.addEventListener("scroll",Ae,!0),window.addEventListener("resize",Ue),()=>{Ee!==null&&cancelAnimationFrame(Ee),window.removeEventListener("scroll",Ae,!0),window.removeEventListener("resize",Ue)}},[z,de]);const De=o.useCallback(Ee=>{oe.current=Ee,typeof s=="function"?s(Ee):s&&(s.current=Ee)},[s]),ye=p?`${p}${h??T("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:m,pe=t!==void 0,ie=pe&&g==="password",[ge,he]=o.useState((a??"").length),se=pe?(t??"").length:ge,Le=o.useRef(t);Ro(()=>{Le.current=t}),o.useEffect(()=>{const Ee=oe.current;if(!ie||!Ee)return;const Ue=t??"";Ee.value!==Ue&&(Ee.value=Ue)},[ie,t]),o.useEffect(()=>{if(!y||!oe.current)return;const Ee=oe.current;Ee.style.height="",Ee.scrollHeight>Ee.clientHeight&&(Ee.style.height=`${Ee.scrollHeight}px`)},[t,ge,y]);const Oe=b!=null&&se>b,Me=k===32?16:20,qe=Be("text-field",`text-field--s${k}`,x==="display"?"text-field--display":"",N?"text-field--full-width":"",v?"text-field--disabled":"",C?"text-field--readonly":"",f?"text-field--error":"",E?"text-field--has-left-icon":"",D||A?"text-field--has-right-icon":"",K),We={id:ce,...ie?{}:pe?{value:t}:{defaultValue:a},ref:De,placeholder:ye,name:r,disabled:v,readOnly:C,autoFocus:Q,maxLength:b,list:F,inputMode:H,autoComplete:O,"aria-label":!i&&u?u:void 0,"aria-required":d,"aria-invalid":!!f,"aria-describedby":[_||f?re:null,c].filter(Boolean).join(" ")||void 0,role:R?"combobox":void 0,"aria-autocomplete":R?"list":void 0,"aria-haspopup":R?"listbox":void 0,"aria-expanded":R?z:void 0,"aria-controls":z?ae.listId:void 0,"aria-activedescendant":z&&ae.activeIdx>=0?`${ae.listId}-option-${ae.activeIdx}`:void 0,onChange:Ee=>{const Ue=Ee.target;pe||he(Ue.value.length),l?.(Ue.value),R&&ae.handleInput(),ie&&queueMicrotask(()=>{const Ae=Le.current??"";Ue.value!==Ae&&(Ue.value=Ae)})},onCompositionStart:R?ae.handleCompositionStart:void 0,onCompositionEnd:R?ae.handleCompositionEnd:void 0,onFocus:(Ee=>{L?.(Ee),R&&ae.handleFocus()}),onBlur:(Ee=>{P?.(Ee),R&&ae.handleBlur()}),onKeyDown:(Ee=>{const Ue=(Ee.key==="Tab"&&!Ee.shiftKey||Ee.key===" ")&&!Ee.nativeEvent.isComposing;if(p&&Ue&&!C&&!v&&!(Ee.currentTarget.value??"").trim()){Ee.preventDefault();const Ae=Ee.currentTarget;pe||(Ae.value=p,he(p.length)),l?.(p);return}R&&Ee.key==="Enter"&&!Ee.nativeEvent.isComposing&&ae.activeIdx>=0?Ee.preventDefault():G&&Ee.key==="Enter"&&!Ee.nativeEvent.isComposing&&(Ee.preventDefault(),G()),M?.(Ee),R&&ae.handleKeyDown(Ee)})},dt=A&&!v&&!C&&se>0,at=()=>y?n.jsx("textarea",{...We,className:"text-field__input text-field__input--auto body-2",rows:1}):w?n.jsx("textarea",{...We,className:"text-field__input text-field__input--textarea body-2",rows:B}):n.jsx("input",{...We,type:g,className:"text-field__input body-2"}),st=x==="display"&&!y&&!w&&!!ye,it=()=>n.jsxs(n.Fragment,{children:[at(),st&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:ye})]});return n.jsxs("div",{ref:ee,className:qe,children:[i&&n.jsxs("label",{htmlFor:ce,className:"text-field__label caption-1",children:[i,d&&n.jsx("span",{className:"text-field__required",children:"*"})]}),n.jsxs("div",{className:"text-field__wrap",children:[E&&n.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(ot,{icon:E,label:"",className:"",svgClassName:"text-field__icon-svg",size:Me})}),it(),b!=null&&$&&n.jsxs("span",{className:`text-field__count caption-2${Oe?" text-field__count--over":""}`,children:[se,"/",b]}),dt&&n.jsx(be,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:T("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:Ee=>{Ee.preventDefault()},onClick:()=>{!pe&&oe.current&&(oe.current.value="",he(0)),l?.("")},tabIndex:-1}),D&&!dt&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(ot,{icon:D,label:"",className:"",svgClassName:"text-field__icon-svg",size:Me})})]}),!!R&&n.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:ae.open&&(t??"").length>0&&ae.filtered.length===0?T("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),z&&(typeof document>"u"?null:sn.createPortal(n.jsx("ul",{id:ae.listId,className:"text-field__suggestions",role:"listbox",style:W??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:ae.filtered.map((Ee,Ue)=>n.jsx("li",{id:`${ae.listId}-option-${Ue}`,role:"option","aria-selected":Ue===ae.activeIdx,className:`text-field__suggestion body-2${Ue===ae.activeIdx?" is-active":""}`,onMouseDown:Ae=>Ae.preventDefault(),onClick:()=>{ae.handleSelect(Ee),oe.current?.focus()},children:typeof Ee=="string"?Ee:n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-field__suggestion-label",children:Ee.label}),Ee.hint&&n.jsx("span",{className:"text-field__suggestion-hint caption-1",children:Ee.hint})]})},typeof Ee=="string"?`${Ee}-${Ue}`:Ee.id))}),document.body)),(_||f)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:re,className:"text-field__helper caption-1",role:f?"alert":void 0,children:f||_})})]})}function Cn({options:e,value:t,onChange:a,placeholder:r,disabled:s=!1,block:l=!1,size:i=48,error:u=!1,className:c="",ariaLabel:d,ariaDescribedBy:m}){const{t:p}=xe.useTranslation(),h=r??p("dropdown.placeholder","\uC120\uD0DD"),g=o.useId(),v=o.useId(),C=o.useRef(null),f=o.useCallback((L,P)=>{const M=window.innerHeight-L.bottom<260&&L.top>260;return{position:"fixed",left:L.left,minWidth:L.width,...M?{bottom:window.innerHeight-L.top+6}:{top:L.bottom+6},zIndex:Ia(P)}},[]),{open:_,setOpen:b,toggle:k,style:x,triggerRef:N,menuRef:y}=Fa({computeStyle:f}),[w,B]=o.useState(-1),E=o.useCallback(()=>B(-1),[]),D=e.find(L=>L.value===t);o.useEffect(()=>{if(_){const L=e.findIndex(P=>P.value===t);B(L>=0?L:e.length?0:-1),requestAnimationFrame(()=>{const P=y.current;if(!P)return;const M=P.querySelectorAll(".dropdown__option")[L];M&&(P.scrollTop=Math.max(0,M.offsetTop-P.clientHeight/2+M.clientHeight/2))})}},[_]),o.useEffect(()=>{_&&B(L=>{if(L>=0&&L<e.length)return L;const P=e.findIndex(M=>M.value===t);return P>=0?P:e.length?0:-1})},[_,e.length]);const A=o.useCallback(()=>{s||k()},[s,k]),F=o.useCallback(L=>{L.disabled||s||(L.value!==t&&a?.(L.value),b(!1))},[a,b,s,t]);o.useEffect(()=>{s&&b(!1)},[s,b]);const $=o.useCallback(L=>{if(!s){if(!_){(L.key==="Enter"||L.key===" "||L.key==="ArrowDown")&&(L.preventDefault(),b(!0));return}if(L.key==="Escape"){L.preventDefault(),b(!1);return}L.key==="ArrowDown"?(L.preventDefault(),B(P=>{let M=P+1;for(;M<e.length&&e[M].disabled;)M++;return M<e.length?M:P})):L.key==="ArrowUp"?(L.preventDefault(),B(P=>{let M=P-1;for(;M>=0&&e[M].disabled;)M--;return M>=0?M:P})):(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),e[w]?F(e[w]):b(!1))}},[s,_,e,w,F,b]),K=_?n.jsx("div",{ref:y,id:g,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:x,onMouseLeave:E,onMouseDown:L=>L.preventDefault(),children:e.map((L,P)=>n.jsxs("button",{id:`${g}-option-${P}`,type:"button",role:"option","aria-selected":L.value===t,className:Be("dropdown__option body-2",L.value===t?"dropdown__option--active":"",P===w?"dropdown__option--active":"",L.disabled?"dropdown__option--disabled":""),onMouseDown:M=>M.preventDefault(),onClick:()=>F(L),onMouseEnter:()=>B(P),disabled:L.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:L.value===t&&n.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),L.label]},L.value))}):null;return n.jsxs("div",{ref:C,className:Be("dropdown",`dropdown--s${i}`,_?"dropdown--open":"",l?"dropdown--block":"",u?"dropdown--error":"",c),onKeyDown:$,children:[n.jsxs("button",{ref:N,type:"button",className:"dropdown__trigger",role:"combobox","aria-haspopup":"listbox","aria-expanded":_,"aria-controls":_?g:void 0,"aria-activedescendant":_&&w>=0?`${g}-option-${w}`:void 0,"aria-label":d,"aria-describedby":[d&&D?v:"",m??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:A,onBlur:L=>{_&&!y.current?.contains(L.relatedTarget)&&b(!1)},children:[n.jsx("span",{id:v,className:`dropdown__trigger-label body-2${D?"":" dropdown__trigger-label--placeholder"}`,children:D?D.label:h}),n.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&sn.createPortal(K,C.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Cr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:s,className:l=""}){const{t:i}=xe.useTranslation(),u=r??i("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),c=s??i("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,t),m=()=>a(Math.max(1,Math.min(d,e-1))),p=()=>a(Math.min(d,e+1));return n.jsxs("div",{className:Be("pagination",l),children:[n.jsx(be,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:m}),n.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),n.jsx(be,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:c,disabled:e>=t,onClick:p})]})}const Ua=new Map;function _n(e){const{t}=xe.useTranslation(),{options:a=[],value:r=a.find(x=>!x.disabled)?.key??a[0]?.key,onChange:s=x=>{},className:l="",size:i=40,shape:u="pill",useBG:c=!0,fullWidth:d=!1,minButtonWidth:m,ariaLabel:p}=e||{},h=o.useRef(null),g=a.filter(x=>!x.disabled),v=o.useId(),C=a.map(x=>x.key).join("\xB7");o.useEffect(()=>{if(!(!Pn||p!=null&&p!=="")){if(Ua.set(v,C||"(\uBCF4\uAE30 \uC5C6\uC74C)"),Ua.size>1){const x=[...Ua.values()].sort();Tt(`segmented-control-unnamed:${x.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${Ua.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): ${x.join(" / ")}`)}return()=>{Ua.delete(v)}}},[p,C,v]);const f=x=>{if(!g.length)return;const N=Math.max(0,g.findIndex(w=>w.key===r)),y=x==="first"?g[0]:x==="last"?g[g.length-1]:g[(N+x+g.length)%g.length];y&&(s(y.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(w=>w.dataset.segkey===y.key)?.focus())},_=x=>{switch(x.key){case"ArrowRight":case"ArrowDown":f(1);break;case"ArrowLeft":case"ArrowUp":f(-1);break;case"Home":f("first");break;case"End":f("last");break;default:return}x.preventDefault()},b=x=>{const N=y=>typeof y=="string"||typeof y=="number";if(!(!N(x.label)||x.count==null||x.count===!1||!N(x.count)))return`${x.label}, ${x.count}`},k=g.some(x=>x.key===r)?r:g[0]?.key;return n.jsx("div",{ref:h,onKeyDown:_,className:Be("segmented-control",`segmented-control--${u}`,`segmented-control--${i}`,d&&"segmented-control--full",!c&&"segmented-control--no-bg",m!=null&&"segmented-control--min",l),style:m!=null?{"--segmented-min-button-w":`${m}px`}:void 0,role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(x=>n.jsx(be,{htmlType:"button",role:"radio","aria-checked":x.key===r,"data-segkey":x.key,tabIndex:x.key===k?0:-1,label:x.label,count:x.count,ariaLabel:b(x),disabled:x.disabled,className:x.key===r?"is-selected":"",onClick:()=>{x.disabled||s(x.key)},size:i,shape:u,useBorder:!1,useBG:!1},x.key))})}function Po({count:e,search:t,segment:a,filters:r,pageSize:s,pagination:l,actions:i,className:u}){const{t:c}=xe.useTranslation(),d=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??c("common.totalPrefix","\uCD1D "),n.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||s||l||i);return n.jsxs("div",{className:Be("toolbar",u),children:[n.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((p,h)=>n.jsx(_n,{size:40,...p},p.ariaLabel??h))]}),m&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(Xn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??c("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??c("common.search","\uAC80\uC0C9"),autoFocus:t.autoFocus,clearable:!0}),r?.map((p,h)=>n.jsx(Cn,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},h)),(s||l)&&n.jsxs("div",{className:"toolbar__pager",children:[s&&n.jsx(Cn,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??c("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),l&&n.jsx(Cr,{page:l.page,totalPages:l.total,onChange:l.onChange,prevLabel:l.prevLabel,nextLabel:l.nextLabel})]}),i]})})]})}function xu(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(xu).join(""):""}function mv(e){let t=e.replace(/\r\n/g,`
|
|
825
825
|
`).replace(/\r/g,`
|
|
826
826
|
`);t=t.replace(/^\n+/,"").replace(/\n+$/,"");const a=t.split(`
|
|
827
827
|
`).map(l=>l.replace(/\t/g," ")),r=a.filter(l=>l.trim().length>0),s=r.length>0?Math.min(...r.map(l=>l.match(/^ */)?.[0].length??0)):0;return a.map(l=>l.slice(s)).join(`
|
|
828
828
|
`)}const hv=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),Cv=/^(?: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 fv(e,t){let a=e;const r=[],s=/^(?:sh|bash|zsh|shell|console)$/.test(t.toLowerCase()),l=(i,u)=>r.push({type:i,content:u});for(;a.length>0;){const i=a.match(/^\s+/);if(i){l("whitespace",i[0]),a=a.slice(i[0].length);continue}if(!s&&a.startsWith("//")){const v=a.indexOf(`
|
|
829
829
|
`),C=v===-1?a:a.slice(0,v);l("comment",C),a=a.slice(C.length);continue}if(s&&a.startsWith("#")){const v=a.indexOf(`
|
|
830
|
-
`),C=v===-1?a:a.slice(0,v);l("comment",C),a=a.slice(C.length);continue}const u=a.match(/^\/\*[\s\S]*?\*\//);if(u){l("comment",u[0]),a=a.slice(u[0].length);continue}const c=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(c){l("string",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){l("number",d[0]),a=a.slice(d[0].length);continue}const m=a.match(Cv);if(m){l("keyword",m[0]),a=a.slice(m[0].length);continue}const p=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const v=p[0];l(s&&hv.has(v)?"command":"identifier",v),a=a.slice(v.length);continue}const h=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(h){l("operator",h[0]),a=a.slice(h[0].length);continue}const b=a.match(/^[()[\]{};.,]/);if(b){l("punctuation",b[0]),a=a.slice(1);continue}l("other",a[0]),a=a.slice(1)}return r}function gv({children:e,language:t="bash",title:a="",showCopy:r=!0,size:s="default",className:l=""}){const{t:i}=_e.useTranslation(),[u,c]=o.useState(!1),d=mv(xu(e)),m=o.useRef(null);o.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const p=async()=>{try{if(!await $f(d))return;c(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>c(!1),2e3)}catch{}},h=fv(d,t),b=s==="small"?"caption-1":"body-3";return n.jsxs("div",{className:Be("code-box",s==="small"?"code-box--small":"",l),children:[(a||r)&&n.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":i("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[n.jsx("div",{className:"code-box__title caption-1",children:a}),r&&n.jsx(fe,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:u?"check":"copy",onClick:p,ariaLabel:u?i("common.copied","\uBCF5\uC0AC\uB428"):i("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),n.jsx("pre",{className:"code-box__inner","data-lang":t,children:n.jsx("code",{children:h.map((v,C)=>n.jsx("span",{className:`code-token ${v.type} ${b}`,children:v.content},C))})})]})}const bv={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Ga(e){const{t}=_e.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:l}=e||{},i=l||t("loader.loading","Loading");if(a==="bar"){const c=s==null||!Number.isFinite(Number(s)),d=c?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:d,"aria-label":i,children:n.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${d}%`}})})}const u=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":i,children:[n.jsx("span",{style:bv,children:i}),n.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[n.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),n.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}function _u({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:s,labelPosition:l="right",className:i="",id:u}){const c=r&&n.jsx("span",{className:"toggle__label body-3",children:r});return n.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${i}`.trim(),children:[l==="left"&&c,n.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&s?s:void 0}),n.jsx("span",{className:"toggle__slider"}),l==="right"&&c]})}function wu({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:s,size:l="medium",className:i,title:u,ariaLabel:c}){const d=o.useRef(null),m=o.useId(),p=o.useRef(!!r);return p.current=!!r,o.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),n.jsxs("label",{className:Be("checkbox",l==="small"&&"checkbox--small",l==="large"&&"checkbox--large",a&&"checkbox--disabled",i),htmlFor:m,title:u,children:[n.jsx("input",{ref:d,id:m,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>{t?.(h.target.checked),d.current&&(d.current.indeterminate=p.current)},disabled:a,"aria-label":!s&&c?c:void 0}),n.jsx("span",{className:"checkbox__box"}),s&&n.jsx("span",{className:"checkbox__label body-3",children:s})]})}function yv({count:e,actions:t,onClear:a,clearLabel:r,visible:s,content:l,max:i}){const{t:u}=_e.useTranslation(),c=s!==void 0?s:e>0,d=r??u("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),m=o.useRef(null),p=o.useRef(null),h=o.useRef(null),b=o.useRef(c);o.useLayoutEffect(()=>{const g=p.current,k=b.current;if(b.current=c,c&&!k){const x=typeof document<"u"?document.activeElement:null;h.current=x&&x!==document.body&&!g?.contains(x)?x:null}else!c&&k&&g&&g.contains(document.activeElement)&&sr(g,h.current)},[c]);const[v,C]=o.useState(!1),f=o.useRef(!1),_=o.useRef(null);return o.useEffect(()=>{const g=m.current;if(!g)return;const k=E=>{f.current=E,C(E)},x=()=>{const E=g.firstElementChild??g,D=Array.from(E.children);if(D.length<2){k(!1);return}const N=D[0].offsetTop,F=D.some(T=>T.offsetTop!==N);if(!f.current){_.current=g.clientWidth,F&&k(!0);return}if(F)return;const $=D[0],Y=D[D.length-1],M=Y.offsetLeft+Y.offsetWidth-$.offsetLeft,P=_.current;(P==null||M<=P)&&k(!1)};if(x(),typeof ResizeObserver>"u")return;const A=new ResizeObserver(x);A.observe(g);const y=g.parentElement;let w=y?.clientWidth??0;const B=new ResizeObserver(()=>{const E=y?.clientWidth??0;E!==w&&(w=E,_.current=null,x())});return y&&B.observe(y),()=>{A.disconnect(),B.disconnect()}},[l,e]),n.jsxs("div",{ref:p,className:`bulk-bar ${c?"bulk-bar--visible":""}`,inert:!c||void 0,"aria-hidden":c?void 0:!0,children:[n.jsx("span",{ref:m,className:"bulk-bar__count body-2",role:"status",children:l??n.jsx("b",{children:u("common.selectedCount",{count:e})})}),i!==void 0&&n.jsx($t,{size:"small",fill:"soft",variant:"main",label:`${e} / ${i}`,"aria-label":u("common.selectedOfMax",{count:e,max:i,defaultValue:`\uCD5C\uB300 ${i}\uAC1C \uC911 ${e}\uAC1C`})}),n.jsxs("div",{className:`bulk-bar__actions${v?" bulk-bar__actions--stacked":""}`,children:[n.jsx(fe,{htmlType:"button",size:40,label:d,onClick:a}),t.map((g,k)=>n.jsx(fe,{htmlType:"button",size:40,variant:g.variant??"default",icon:g.icon,label:g.label,onClick:g.onClick},k))]})]})}const vv=[{key:"edit",icon:"edit-2",closeFirst:!0},{key:"duplicate",icon:"copy",closeFirst:!1},{key:"publish",icon:"book-marked",closeFirst:!1},{key:"copyLink",icon:"link",closeFirst:!1},{key:"remove",icon:"trash-2",closeFirst:!0}];function xv(e){const{onClose:t,className:a}=e;return n.jsx("div",{className:Be("item-actions",a),children:vv.map(({key:r,icon:s,closeFirst:l})=>{const i=e[r];if(!i)return null;const u=r==="publish"?i.published?i.unpublish:i.publish:i;return n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:s,ariaLabel:u.label,showTooltipInfo:u.label,onClick:()=>{l&&t(),u.onClick()}},r)})})}function Bu(e,t){const a=()=>{if(e){const[C,f]=e.split("-");return{y:+C,m:+f-1}}const[b,v]=lo(t).split("-");return{y:+b,m:+v-1}},[r,s]=o.useState(()=>a().y),[l,i]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const b=a();s(b.y),i(b.m)},[e]);const c=o.useRef({y:r,m:l});o.useEffect(()=>{c.current={y:r,m:l}},[r,l]);const d=o.useCallback(b=>{const v=c.current.y*12+c.current.m+b,C=Math.floor(v/12),f=v-C*12;c.current={y:C,m:f},s(C),i(f)},[]),m=o.useCallback(()=>d(-1),[d]),p=o.useCallback(()=>d(1),[d]),h=o.useCallback((b,v)=>{c.current={y:b,m:v},s(b),i(v)},[]);return{viewY:r,viewM:l,prevMonth:m,nextMonth:p,setViewYM:h}}function fr(e,t){return new Date(e,t+1,0).getDate()}function _v(e,t){return new Date(e,t,1).getDay()}function Ka(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function wv(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function Bv(e){const t=e.replace(/\D/g,"");if(t.length!==8)return null;const a=+t.slice(0,4),r=+t.slice(4,6),s=+t.slice(6,8);if(r<1||r>12||s<1||s>31)return null;const l=new Date(a,r-1,s);return l.getFullYear()!==a||l.getMonth()!==r-1||l.getDate()!==s?null:Ka(a,r-1,s)}const kv=1900;function Av(e,t,a,r,s){const l=r?+r.split("-")[0]:Math.min(kv,e),i=s?+s.split("-")[0]:Math.max(t+10,e),u=[];for(let c=l;c<=i;c++)u.push({value:String(c),label:a(c)});return u}function ku(e,t,a,r){const s=[];for(let l=1;l<=12;l++){const i=`${e}-${String(l).padStart(2,"0")}`;a&&i<a.slice(0,7)||r&&i>r.slice(0,7)||s.push({value:String(l),label:t(e,l)})}return s}function Nv({value:e,onChange:t,size:a=48,min:r,max:s,disabled:l,placeholder:i,className:u,today:c}){const{t:d,i18n:m}=_e.useTranslation(),p=i??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),h=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),b=lo(c),{viewY:v,viewM:C,prevMonth:f,nextMonth:_,setViewYM:g}=Bu(e,c),k=o.useId(),x=o.useCallback((W,te)=>{const H=window.innerHeight,G=window.innerWidth,pe=typeof document<"u"?document.getElementById(k):null,Ne=Math.max(pe?.offsetHeight||0,pe?.scrollHeight||0)||300,ye=Math.max(W.width,pe?.offsetWidth||0,260),me=H-W.bottom,se=W.top,ge=me<Ne&&se>me,Ce=8,de=(Le,ze)=>Math.min(Math.max(Ce,Le),Math.max(Ce,ze));return{position:"fixed",left:de(W.left,G-ye-Ce),width:W.width,minWidth:260,...ge?{top:"auto",bottom:de(H-W.top+6,H-Ne-Ce)}:{bottom:"auto",top:de(W.bottom+6,H-Ne-Ce)},zIndex:Ia(te)}},[k]),{open:A,setOpen:y,toggle:w,style:B,triggerRef:E,menuRef:D}=Fa({computeStyle:x,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!A)return;const W=D.current;return(W?.querySelector(".date-picker__day--selected:not(:disabled)")??W?.querySelector(".date-picker__day--today:not(:disabled)")??W?.querySelector(".date-picker__day:not(:disabled)")??W?.querySelector(_n)??W)?.focus?.(),()=>{const te=document.activeElement;(!te||te===document.body)&&E.current?.focus?.()}},[A,D,E]);const[N,F]=o.useState(1),$=o.useRef(null),Y=o.useRef(null);o.useEffect(()=>{if(!A)return;const W=e&&e.slice(0,7)===`${v}-${String(C+1).padStart(2,"0")}`?+e.slice(8):b.slice(0,7)===`${v}-${String(C+1).padStart(2,"0")}`?+b.slice(8):1;F(W)},[A]),o.useEffect(()=>{if(Y.current==null)return;const W=Y.current;Y.current=null,$.current?.querySelector(`[data-day="${W}"]`)?.focus()}),o.useEffect(()=>{F(W=>Math.min(W,fr(v,C)))},[v,C]);const M=o.useCallback(W=>{let te=Ka(W.getFullYear(),W.getMonth(),W.getDate());r&&te<r&&(te=r),s&&te>s&&(te=s);const[H,G,pe]=te.split("-").map(Number);(H!==v||G-1!==C)&&g(H,G-1),F(pe),Y.current=pe},[r,s,v,C,g]),P=o.useCallback(W=>{const te=new Date(v,C,N),H=pe=>{te.setDate(te.getDate()+pe),M(te)},G=pe=>{const Ne=te.getFullYear()*12+te.getMonth()+pe,ye=Math.floor(Ne/12),me=Ne-ye*12;M(new Date(ye,me,Math.min(te.getDate(),fr(ye,me))))};switch(W.key){case"ArrowLeft":H(-1);break;case"ArrowRight":H(1);break;case"ArrowUp":H(-7);break;case"ArrowDown":H(7);break;case"Home":H(-te.getDay());break;case"End":H(6-te.getDay());break;case"PageUp":W.shiftKey?G(-12):G(-1);break;case"PageDown":W.shiftKey?G(12):G(1);break;default:return}W.preventDefault()},[v,C,N,M]),T=o.useCallback(W=>{l||(t(Ka(v,C,W)),y(!1))},[v,C,t,y,l]);o.useEffect(()=>{l&&y(!1)},[l,y]);const K=W=>{const te=Ka(v,C,W);return!!(r&&te<r||s&&te>s)},V=(()=>{const W=fr(v,C);if(N>=1&&N<=W&&!K(N))return N;for(let te=1;te<=W;te++)if(!K(te))return te;return-1})(),O=[];for(let W=0;W<_v(v,C);W++)O.push(null);for(let W=1;W<=fr(v,C);W++)O.push(W);const Q=a===64?20:a===40?16:18,I=Wl(m.language),q=W=>new Intl.DateTimeFormat(I,{year:"numeric"}).format(new Date(W,0,1)),z=(W,te)=>new Intl.DateTimeFormat(I,{month:"long"}).format(new Date(W,te-1,1)),U=Av(v,+b.slice(0,4),q,r,s),S=ku(v,z,r,s),R=W=>{const te=ku(W,z,r,s);if(te.length===0)return;const H=te.some(G=>+G.value===C+1);g(W,H?C:+te[0].value-1)},[L,Z]=o.useState(null);o.useEffect(()=>{Z(null)},[e]);const ue=o.useCallback(W=>{Z(W);const te=Bv(W);if(!te||r&&te<r||s&&te>s)return;t(te);const[H,G]=te.split("-");g(+H,+G-1)},[r,s,t,g]),oe=o.useCallback(()=>{Z(null)},[]),le=o.useCallback(W=>{W.key==="Enter"?(W.preventDefault(),oe(),y(!1)):W.key==="Escape"?(oe(),y(!1)):W.key==="ArrowDown"&&!A&&(W.preventDefault(),y(!0))},[oe,y,A]),re=A?cn.createPortal(n.jsxs("div",{ref:D,id:k,className:"date-picker__dropdown",style:B,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[n.jsxs("div",{className:"date-picker__nav",children:[n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(Fs,{size:16,strokeWidth:2})}),n.jsxs("div",{className:"date-picker__nav-ym",children:[n.jsx(fn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYear","\uC5F0 \uC120\uD0DD"),options:U,value:String(v),onChange:W=>R(+W),size:40}),n.jsx(fn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectMonth","\uC6D4 \uC120\uD0DD"),options:S,value:String(C+1),onChange:W=>g(v,+W-1),size:40})]}),n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:_,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(Os,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:$,onKeyDown:P,children:[h.map(W=>n.jsx("div",{className:"date-picker__dow caption-1",children:W},W)),O.map((W,te)=>{if(W===null)return n.jsx("div",{},`e${te}`);const H=Ka(v,C,W),G=H===e,pe=H===b,Ne=K(W),ye=te%7;return n.jsx("button",{type:"button",disabled:Ne,"data-day":W,tabIndex:W===V?0:-1,"aria-current":pe?"date":void 0,onClick:()=>!Ne&&T(W),className:Be("date-picker__day caption-1",G&&"date-picker__day--selected",pe&&!G&&"date-picker__day--today",Ne&&"date-picker__day--disabled",ye===0&&"date-picker__day--sun",ye===6&&"date-picker__day--sat"),children:W},W)})]})]}),document.body):null;return n.jsxs("div",{className:Be("date-picker",`date-picker--s${a}`,A&&"date-picker--open",u),children:[n.jsxs("div",{className:"date-picker__field",children:[n.jsx("input",{ref:E,type:"text",className:"date-picker__trigger body-2",value:L??wv(e),placeholder:p,onChange:W=>ue(W.target.value),onClick:()=>!l&&!A&&w(),onKeyDown:le,onBlur:oe,disabled:l,"aria-haspopup":"dialog","aria-expanded":A,inputMode:"numeric",autoComplete:"off"}),n.jsx("button",{type:"button",className:"date-picker__icon-btn",onClick:()=>!l&&w(),disabled:l,tabIndex:-1,"aria-label":p,"aria-haspopup":"dialog","aria-expanded":A,children:n.jsx(Ys,{size:Q,className:"date-picker__icon",strokeWidth:1.5})})]}),re]})}function Ev({items:e,className:t,ariaLabel:a="\uC54C\uB9BC \uAE00",titleLevel:r=4,targetBytes:s}){const l=r?`h${r}`:"div";return n.jsx("div",{className:`notify-text-preview${t?` ${t}`:""}`,role:"group","aria-label":a,children:e.map(i=>{const u=s===void 0?Tl(i.sms):Tl(i.sms,s),c=u.type==="LMS";return n.jsxs("section",{className:"notify-text-preview__item",children:[n.jsxs("header",{className:"notify-text-preview__head",children:[n.jsx(l,{className:"notify-text-preview__name h5b",children:i.name}),i.meta&&Object.keys(i.meta).length>0?n.jsx("dl",{className:"notify-text-preview__meta caption-1",children:Object.entries(i.meta).map(([d,m])=>n.jsxs("div",{className:"notify-text-preview__meta-row",children:[n.jsx("dt",{children:d}),n.jsx("dd",{children:m})]},d))}):null]}),n.jsxs("div",{className:"notify-text-preview__body",children:[n.jsxs("div",{className:"notify-text-preview__col",children:[n.jsxs("div",{className:"notify-text-preview__col-head caption-1",children:[n.jsx("span",{children:"\uBB38\uC790"}),n.jsxs("span",{className:`notify-text-preview__bytes${c?" is-over":u.overTarget?" is-over-target":""}`,title:u.over?`${u.limit}\uBC14\uC774\uD2B8\uB97C \uB118\uC5C8\uB2E4 \u2014 \uBCF4\uB0BC \uB54C \uC798\uB9B0\uB2E4`:c?`${Sl}\uBC14\uC774\uD2B8\uB97C \uB118\uC5B4 \uC7A5\uBB38\uC774\uB2E4 \u2014 \uD55C \uD1B5 \uAC12\uC774 \uB2E8\uBB38\uC758 \uB450 \uBC30 \uBC18\uC774\uB2E4`:u.overTarget?`\uACA8\uB204\uB294 ${u.target}\uBC14\uC774\uD2B8\uB97C \uB118\uC5C8\uB2E4 \u2014 \uD55C \uAE00\uC790\uB9CC \uB298\uC5B4\uB3C4 ${Sl}\uC744 \uB118\uC5B4 \uC7A5\uBB38\uC774 \uB41C\uB2E4`:void 0,children:[u.bytes,u.target!==null?` / \uBAA9\uD45C ${u.target}`:"","\uBC14\uC774\uD2B8 \xB7 ",c?"\uC7A5\uBB38":"\uB2E8\uBB38",u.over?" \xB7 \uD55C\uACC4 \uB118\uC74C":c?" \xB7 \uAC12\uC774 \uB450 \uBC30 \uBC18":u.overTarget?" \xB7 \uBAA9\uD45C \uB118\uC74C":""]})]}),n.jsx("pre",{className:"notify-text-preview__text",children:i.sms})]}),i.ata?n.jsxs("div",{className:"notify-text-preview__col",children:[n.jsx("div",{className:"notify-text-preview__col-head caption-1",children:n.jsx("span",{children:"\uC54C\uB9BC\uD1A1"})}),n.jsx("pre",{className:"notify-text-preview__text",children:i.ata})]}):null]})]},i.name)})})}function Dv({src:e,alt:t,className:a,style:r,tone:s,textColor:l}){const i=!s&&!!l,u=zy(e,i),c="bl"+o.useId().replace(/[^a-zA-Z0-9]/g,"");return s?n.jsx("span",{className:Be("brand-logo","brand-logo--tone",a),role:t?"img":void 0,"aria-label":t||void 0,"aria-hidden":t?void 0:!0,style:{...r,"--brand-logo-src":`url("${e}")`,"--brand-logo-tone":s},children:n.jsx("img",{src:e,alt:"","aria-hidden":"true",className:"brand-logo__sizer",draggable:!1})}):i&&u?n.jsx("span",{className:Be("brand-logo","brand-logo--inline",a),role:t?"img":void 0,"aria-label":t||void 0,"aria-hidden":t?void 0:!0,style:{...r,"--brand-logo-text-color":l},dangerouslySetInnerHTML:{__html:Fy(Iy(u),c)}}):n.jsx("img",{src:e,alt:t,className:Be("brand-logo",a),style:r,draggable:!1})}function Au({children:e,className:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useEffect(()=>{s(a.current?.parentElement??null)},[]),o.useEffect(()=>{const l=a.current;if(!l||!r)return;const i=()=>{const c=typeof window<"u"&&window.getComputedStyle(l).position==="absolute"?Math.ceil(l.getBoundingClientRect().width):0;c>0?r.style.setProperty("--section-head-float-w",`${c}px`):r.style.removeProperty("--section-head-float-w")};if(i(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const u=new ResizeObserver(()=>i());return u.observe(l),u.observe(r),()=>{u.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),n.jsx("div",{ref:a,className:Be("section-head-float",t),children:e})}function Io({items:e,className:t}){return n.jsx("div",{className:t?`manager-bar-chart-legend ${t}`:"manager-bar-chart-legend",children:e.map((a,r)=>n.jsxs("span",{className:"manager-bar-chart-legend-item",children:[n.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function Ya({label:e,children:t}){return e?n.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[n.jsx("span",{className:"barchart-total__label body-3",children:e}),n.jsx("span",{className:"barchart-total__value",children:t})]}):n.jsx("div",{className:"barchart-total",children:t})}function Fo({title:e,titleClassName:t="h3",titleLevel:a=3,icon:r,disc:s,headRight:l,headFloat:i,headSegment:u,headMenuItems:c,collapseBelow:d=420,onClick:m,ariaLabel:p,tooltip:h,totalNum:b,totalUnit:v,totalLabel:C,subRow:f,subRowAlign:_="start",className:g,inGrid:k=!1,children:x}){const{t:A}=_e.useTranslation(),y=o.useRef(null),{anchorRect:w,openAt:B,close:E}=Pa(),D=o.useCallback(()=>{h&&y.current&&B(y.current)},[h,B]),[N,F]=o.useState(!1);Ro(()=>{const S=y.current;if(!S||!u)return;const R=Z=>F(Z>0&&Z<d);if(R(S.clientWidth),typeof ResizeObserver>"u")return;const L=new ResizeObserver(Z=>R(Z[0].contentRect.width));return L.observe(S),()=>L.disconnect()},[u,d]);const[$,Y]=o.useState(null),M=o.useCallback(()=>Y(null),[]),P=o.useCallback(S=>{const R=S.currentTarget.getBoundingClientRect();Y(L=>L?null:{left:R.left,right:R.right,top:R.top,bottom:R.bottom,width:R.width,height:R.height,x:R.x,y:R.y})},[]),T=!!u&&N;o.useEffect(()=>{T||Y(null)},[T]);const K=u?[...u.options.map(S=>({label:S.label,icon:S.icon,selected:S.key===u.value,disabled:S.disabled,onClick:()=>u.onChange(S.key),closeOnSelect:!0})),...(c??[]).map((S,R)=>R===0?{...S,separatorBefore:!0}:S)]:[],V=o.useCallback(S=>{if(!m)return;const R=S.target;R&&typeof R.closest=="function"&&R.closest('button, a, input, select, textarea, [role="radiogroup"]')||m()},[m]),O=o.useCallback(S=>{m&&S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),m())},[m]),Q=typeof l=="function"?l({collapsed:T}):l,I=b!=null||C?n.jsxs(Ya,{label:C,children:[b!=null&&n.jsx("span",{className:"barchart-total__num h0",children:b}),v&&n.jsx("span",{className:"barchart-total__unit h5",children:v})]}):null,q=Q||u?n.jsxs("div",{className:"manager-section__head-right",children:[u&&(T?n.jsx(fe,{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":!!$,onClick:P}):n.jsx(wn,{size:32,ariaLabel:u.ariaLabel,options:u.options.map(S=>({key:S.key,label:S.label,disabled:S.disabled})),value:u.value,onChange:u.onChange})),Q]}):null,z=o.useId(),U=a?`h${a}`:"div";return n.jsxs("section",{ref:y,className:["manager-section",k&&"manager-section--grid",m&&"manager-section--clickable",g].filter(Boolean).join(" "),onClick:m?V:void 0,onKeyDown:m?O:void 0,onPointerEnter:h?D:void 0,onPointerLeave:h?E:void 0,onFocus:h?D:void 0,onBlur:h?E:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,"aria-label":m?p??(typeof e=="string"?e:void 0):void 0,"aria-labelledby":!m&&e!=null?z:void 0,children:[h&&w&&n.jsx(Dn,{anchorRect:{left:w.left,top:w.top+21,right:w.right,bottom:w.bottom,width:w.width,height:w.height},text:h}),i&&n.jsx(Au,{children:i}),n.jsxs("div",{className:"manager-section__head",children:[n.jsxs("div",{className:"manager-section__title-row",children:[r&&n.jsx(nt,{icon:r,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),n.jsx(U,{id:z,className:["manager-section__title",t].filter(Boolean).join(" "),children:e})]}),q,s&&n.jsx("div",{className:"manager-section__disc body-3",children:s})]}),(I||f)&&n.jsxs("div",{className:["barchart-sub-row",_!=="start"&&`barchart-sub-row--${_}`].filter(Boolean).join(" "),children:[I,f]}),x,$&&n.jsx(vn,{anchorRect:$,onClose:M,ariaLabel:u?.ariaLabel??A("tooltip.menu","\uBA54\uB274"),children:n.jsx(Oa,{columns:[{items:K}],onClose:M,size:"small"})})]})}const Za=(e,t)=>`${e}-${String(t).padStart(2,"0")}`,Oo=e=>Za(e.getFullYear(),e.getMonth()+1);function ha(e){const t=/^(\d{4})-(\d{2})$/.exec(e);if(!t)return null;const a=Number(t[2]);return a>=1&&a<=12?{year:Number(t[1]),month1:a}:null}const zo=(e,t)=>`${e}#${t}`;function Bn(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function Sv(){const e=ia();let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<Bn(t,a)){const i=new Date(t,a,0);t=i.getFullYear(),a=i.getMonth(),r=i.getDate()}const s=Math.floor((r-Bn(t,a))/7),l=Za(t,a+1);return{monthKey:l,value:zo(l,s)}}function jv(e){const t=ia(),a=Oo(t),r=(c,d)=>Za(c,d+1),s=new Map;s.set(a,[]);for(const c of e){if(isNaN(c.date.getTime()))continue;const d=r(c.date.getFullYear(),c.date.getMonth());s.has(d)||s.set(d,[]),s.get(d).push(c)}for(const[c,d]of[...s.entries()]){const m=ha(c);if(!m)continue;const p=m.year,h=m.month1-1,b=Bn(p,h);if(!(c===a&&t.getDate()<b)&&!d.some(f=>f.date.getDate()<b))continue;const v=new Date(p,h,0),C=r(v.getFullYear(),v.getMonth());s.has(C)||s.set(C,[])}const l=new Map;for(const[c,d]of s){const m=ha(c);if(!m)continue;const p=m.year,h=m.month1-1,b=new Date(p,h+1,0).getDate(),v=d.reduce((x,A)=>Math.max(x,A.parts?.length??0,A.partsB?.length??0),0),C=d.some(x=>x.partsB),f=new Array(b+1).fill(0),_=new Array(b+1).fill(0),g=Array.from({length:b+1},()=>new Array(v).fill(0)),k=Array.from({length:b+1},()=>new Array(v).fill(0));for(const x of d){const A=x.date.getDate();if(f[A]+=x.a,_[A]+=x.b,x.parts)for(let y=0;y<v;y++)g[A][y]+=x.parts[y]??0;if(x.partsB)for(let y=0;y<v;y++)k[A][y]+=x.partsB[y]??0}l.set(c,{year:p,month:h,daysInMonth:b,partsLen:v,hasPartsB:C,dayA:f,dayB:_,dayParts:g,dayPartsB:k})}const i=(c,d,m)=>new Date(c,d,m).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),u={};for(const[c,d]of l){const{year:m,month:p,daysInMonth:h,dayA:b,dayB:v,dayParts:C,dayPartsB:f}=d,_=m===t.getFullYear()&&p===t.getMonth(),g=t.getDate(),k=l.get(r(p===11?m+1:m,(p+1)%12)),x=d.partsLen,A=[];for(let w=1;w<=h;w++){const B=_&&w>g;A.push({label:String(w),...B&&b[w]===0&&v[w]===0?{future:!0}:{},a:B&&b[w]===0&&v[w]===0?-1:b[w],b:v[w],...x?{parts:C[w]}:{},...x&&d.hasPartsB?{partsB:f[w]}:{}})}const y=[];for(let w=Bn(m,p);w<=h;w+=7){const B=Math.max(0,w+6-h),E=B&&k?Math.max(x,k.partsLen):x,D=d.hasPartsB||!!(B&&k?.hasPartsB);let N=0,F=0;const $=new Array(E).fill(0),Y=new Array(E).fill(0);for(let P=w;P<=Math.min(w+6,h);P++){N+=b[P],F+=v[P];for(let T=0;T<x;T++)$[T]+=C[P][T],Y[T]+=f[P][T]}if(B&&k)for(let P=1;P<=B&&!i(k.year,k.month,P);P++){N+=k.dayA[P],F+=k.dayB[P];for(let T=0;T<k.partsLen;T++)$[T]+=k.dayParts[P][T],Y[T]+=k.dayPartsB[P][T]}const M=B?`${(p+1)%12+1}/${B}`:`${w+6}`;y.push({label:`${y.length+1}\uC8FC`,sublabel:`[${w}\uC77C~${M}\uC77C]`,a:N,b:F,...E?{parts:$}:{},...E&&D?{partsB:Y}:{}})}u[c]={weekly:y,daily:A}}return u}function Nu(){const e=ia(),t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let s=2024;s<=t;s++){const l=s===t?a:12;for(let i=1;i<=l;i++)r.push({value:Za(s,i),year:s,month:i})}return r.reverse()}Nu();function Tv(){return Nu()}function Eu(e,t){const a=e("calendar.weekOrdinal",{returnObjects:!0,defaultValue:[]}),r=Array.isArray(a)&&typeof a[t]=="string"?a[t]:null;return e("calendar.weekLabel",{ord:r??String(t+1)})}function Du(e){const{t,i18n:a}=_e.useTranslation(),[r,s]=o.useState("week"),l=o.useMemo(()=>Tv().filter(E=>E.value in e),[e]),i=o.useMemo(()=>{const E=[];for(const D of l){const N=new Date(D.year,D.month,0).getDate(),F=Bn(D.year,D.month-1),$=Math.ceil((N-F+1)/7);for(let Y=$-1;Y>=0;Y--)E.push({value:zo(D.value,Y),monthKey:D.value,year:D.year,month:D.month,week:Y})}return E},[l]),u=o.useCallback(E=>`${so(t,a.language,E.year,E.month)} ${Eu(t,E.week)}`,[t]),c=o.useMemo(()=>l.map(E=>({value:E.value,label:so(t,a.language,E.year,E.month)})),[t,a.language,l]),d=o.useMemo(()=>i.map(E=>({value:E.value,label:u(E)})),[i,u]),m=o.useMemo(()=>Sv(),[e]),p=o.useMemo(()=>l.find(E=>E.value===m.monthKey)?.value??l[0]?.value??"",[l,m]),h=o.useMemo(()=>i.find(E=>E.value===m.value)?.value??i[0]?.value??"",[i,m]),[b,v]=o.useState(""),[C,f]=o.useState("");o.useEffect(()=>{l.find(E=>E.value===b)||v(p)},[l,b,p]),o.useEffect(()=>{i.find(E=>E.value===C)||f(h)},[i,C,h]);const _=r==="month"?c:d,g=r==="month"?b:C,k=r==="month"?v:f,x=o.useMemo(()=>{const E=t("calendar.dow",{returnObjects:!0});return Array.isArray(E)?E:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),A=_.findIndex(E=>E.value===g),y=o.useCallback(()=>{const E=_.findIndex(D=>D.value===g);E<_.length-1&&k(_[E+1].value)},[_,g,k]),w=o.useCallback(()=>{const E=_.findIndex(D=>D.value===g);E>0&&k(_[E-1].value)},[_,g,k]),B=o.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:s,range:g,setRange:k,activeOptions:_,activeIdx:A,handlePrev:y,handleNext:w,periodOptions:B,monthRange:b,weekRange:C,weekRanges:i,DOW:x}}const Et=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function Mn(e,t=!0){return e.future===!0||t&&e.a===-1}function Mv({data:e,colorA:t,colorB:a,labelA:r,labelB:s,barWidth:l=10,barGap:i=1,height:u=140,maxOverride:c,tightMax:d,seriesColors:m,seriesLabels:p,rateLabels:h,grouped:b=!1,baseline:v,focusableBars:C=!1}){const f=!a,_=!!(m&&m.length>0),g=v,k=o.useMemo(()=>_?Math.max(0,...e.filter(O=>!Mn(O,g==null)).map(O=>b?Math.max(0,...(O.parts??[]).map(Et)):(O.parts??[]).reduce((Q,I)=>Q+Math.max(0,Et(I)),0))):Math.max(0,...e.filter(O=>!Mn(O,g==null)).flatMap(O=>f?[Et(O.a)]:[Et(O.a),Et(O.b)])),[e,f,_,b]),x=o.useMemo(()=>{if(g==null)return 0;const O=e.filter(Q=>!Mn(Q,g==null)).flatMap(Q=>_?(Q.parts??[]).map(Et):f?[Et(Q.a)]:[Et(Q.a),Et(Q.b)]);return Math.max(0,...O.map(Q=>Math.abs(Q-g)))},[e,g,_,f]),A=o.useMemo(()=>{const O=g!=null?x:k;return c??(d?O>0?O:10:Math.ceil(O/10)*10||10)},[k,x,g,c,d]),y=u,w=_?b?Math.max(1,m.length):1:f?1:2,B={"--bar-width":`${o.useMemo(()=>{const O=Math.max(1,e.length);return Math.max(2,Math.min(l,Math.round(120/(O*w)+6)))},[e.length,w,l])}px`},E={"--bar-group-gap":`${Math.max(0,i)}px`},D=o.useMemo(()=>{const O=Math.round(A/2);return g!=null?[g+A,...O!==A?[g+O]:[],g,...O!==A?[g-O]:[],g-A]:O!==A?[A,O,0]:[A,0]},[A,g]),N=O=>g!=null?1-(O-(g-A))/(2*A):1-O/A,[F,$]=o.useState(null),Y=o.useCallback(()=>$(null),[]),M=o.useCallback((O,Q)=>{const I=[O.label,O.sublabel].filter(Boolean).join(" ");let q;if(_&&b&&O.rawPartsB)q=(p??[]).map((z,U)=>{const S=O.rawPartsB[U]??0;return{text:S>0?`${z}: ${Q[U]??0}% (${O.rawParts?.[U]??0}/${S})`:`${z}: -`,color:(m??[])[U]}});else if(_&&b)q=(p??[]).map((z,U)=>({text:`${z}: ${K(Q[U]??0)}`,color:(m??[])[U]}));else if(_){const z=(p??[]).map((S,R)=>({text:`${S}: ${Q[R]??0}`,color:(m??[])[R]})),U=z.filter((S,R)=>(Q[R]??0)>0);q=U.length?U:z}else h&&!f?q=[{text:`${r} ${Et(O.a)}%`,color:t},{text:`${s} ${Et(O.b)}%`,color:a}]:h&&O.rawB!==void 0?q=[{text:`${h.total} ${O.rawB}`},{text:`${h.done} ${O.rawA??0}`,color:t}]:f?q=[{text:`${r}: ${Et(O.a)}`,color:t}]:q=[{text:`${r}: ${Et(O.a)}`,color:t},{text:`${s}: ${Et(O.b)}`,color:a}];return{title:I,items:q}},[_,b,p,m,h,f,r,s,t,a,g]),P=o.useCallback((O,Q,I)=>{const q=O.getBoundingClientRect(),{title:z,items:U}=M(Q,I);$({rect:{left:q.left,top:q.top,right:q.right,bottom:q.bottom,width:q.width,height:q.height},title:z,items:U})},[M]),T=o.useCallback((O,Q)=>{const{title:I,items:q}=M(O,Q);return[I,...q.map(z=>z.text)].filter(Boolean).join(", ")},[M]),K=O=>g!=null&&O>g?`+${O}`:`${O}`,V=F!=null;return o.useEffect(()=>{if(!V)return;const O=()=>$(null),Q=I=>{const q=I.target;q&&typeof q.closest=="function"&&q.closest(".manager-bar-chart-col")||$(null)};return window.addEventListener("scroll",O,!0),document.addEventListener("pointerdown",Q,!0),()=>{window.removeEventListener("scroll",O,!0),document.removeEventListener("pointerdown",Q,!0)}},[V]),n.jsxs("div",{className:"manager-bar-chart-wrap",style:E,children:[n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsx("div",{className:"manager-bar-chart-scroll",children:n.jsxs("div",{className:"manager-bar-chart-area",children:[n.jsxs("div",{className:"manager-bar-chart-plot",style:{height:y},children:[D.slice(0,-1).map((O,Q)=>n.jsx("div",{className:`manager-bar-chart-gridline${g!=null&&O===g?" manager-bar-chart-gridline--baseline":""}`,style:{top:N(O)*y},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:O})},Q)),e.map((O,Q)=>{const I=Mn(O,g==null),q=y/2,z=L=>g!=null?Math.min(q,Math.abs(Et(L)-g)/A*q):Math.min(y,Math.max(0,Et(L)/A*y)),U=I?0:z(O.a),S=I?0:z(O.b),R=(O.parts??[]).map(Et);return n.jsx("div",{className:`manager-bar-chart-col${b&&_?" manager-bar-chart-col--group":""}`,style:{cursor:I?"default":"pointer"},tabIndex:C&&!I?0:void 0,role:C&&!I?"img":void 0,"aria-label":C&&!I?T(O,R):void 0,onMouseEnter:I?void 0:L=>P(L.currentTarget,O,R),onFocus:I||!C?void 0:L=>P(L.currentTarget,O,R),onBlur:C?Y:void 0,onMouseLeave:Y,children:!I&&(_&&b?(m??[]).map((L,Z)=>{const ue=R[Z]??0;if(g==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:z(ue),background:L}},Z);const oe=Et(ue)<g;return n.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!oe&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:z(ue),background:L}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:oe&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:z(ue),background:L}})})]},Z)}):_?n.jsx("div",{className:"manager-bar-chart-stack",style:B,children:(()=>{const L=R.reduce((ue,oe,le)=>oe>0?le:ue,-1);let Z=y;return R.map((ue,oe)=>{if(ue<=0)return null;const le=Math.min(Z,ue/A*y);return Z-=le,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:le,background:(m??[])[oe],borderRadius:oe===L?"6px 6px 0 0":void 0}},oe)})})()}):g!=null?n.jsx(n.Fragment,{children:[{v:Et(O.a),c:t},...f?[]:[{v:Et(O.b),c:a}]].map(({v:L,c:Z},ue)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:L>=g&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:z(L),background:Z}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:L<g&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:z(L),background:Z}})})]},ue))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:U,background:t}}),!f&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:S,background:a}})]}))},Q)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((O,Q)=>{const I=Mn(O,g==null);return n.jsxs("span",{className:`manager-bar-chart-x-axis__label${I?" manager-bar-chart-x-axis__label--future":""}`,children:[n.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[O.isToday&&n.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),O.label]}),O.sublabel&&n.jsx("span",{className:"caption-1",children:O.sublabel})]},Q)})})]})})}),F&&n.jsx(Kn,{anchorRect:F.rect,title:F.title,items:F.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Su({control:e}){const{t}=_e.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:l,handlePrev:i,handleNext:u,periodOptions:c,period:d,setPeriod:m}=e,p=d==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),h=d==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return n.jsxs("div",{className:"manager-section-controls",children:[n.jsx(fe,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===a.length-1,onClick:i}),n.jsx(fn,{value:s,onChange:l,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),n.jsx(fe,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:h,showTooltipInfo:h,disabled:r<=0,onClick:u}),n.jsx(wn,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:c,value:d,onChange:b=>m(b),size:40})]})}function Wo(e,t,a,r=!0){const s=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(l,i)=>{const u=new Date(t);u.setDate(t.getDate()+i);const c=(e[Oo(u)]?.daily??[])[u.getDate()-1],d=c!=null&&Mn(c,r)||u>s;return{dt:u,entry:c,isFuture:d}})}function Lv(e,t,a,r=!0){const{period:s,monthRange:l,weekRange:i,weekRanges:u,DOW:c}=t,d=ia(),m=d.getFullYear(),p=d.getMonth()+1,h=d.getDate();if(s==="month"){const C=e[l]??{weekly:[],daily:[]},f=ha(l),_=f?f.year:null,g=f?f.month1:null,k=_&&g?Bn(_,g-1):1;return C.weekly.map((x,A)=>{const y=A+1;let w=x.label,B=!1,E=!1;if(_&&g){const D=k+A*7,N=new Date(_,g-1,D+6),F=N.getMonth()+1,$=N.getDate(),Y=F===g?`${$}`:`${F}/${$}`;w=a("manager.chart.weekRange",{start:D,end:Y});const M=new Date(m,p-1,h).getTime();B=M>=new Date(_,g-1,D).getTime()&&M<=N.getTime(),E=_>m||_===m&&(g>p||g===p&&D>h)}return{...x,label:w,sublabel:Eu(a,y-1),isToday:B,future:x.future===!0||E||void 0,a:E?-1:x.a,b:E?0:x.b}})}const b=u.find(C=>C.value===i);if(!b)return[];const v=new Date(b.year,b.month-1,Bn(b.year,b.month-1)+b.week*7);return Wo(e,v,d,r).map(({dt:C,entry:f,isFuture:_})=>{const g=C.getMonth()+1,k=C.getDate(),x=C.getFullYear();return{label:g===b.month&&x===b.year?`${k}`:`${g}/${k}`,sublabel:c[C.getDay()]??"",future:_||void 0,a:_?-1:f&&f.a>0?f.a:0,b:_?0:f&&f.b>0?f.b:0,isToday:x===m&&g===p&&k===h,...f?.parts?{parts:_?f.parts.map(()=>0):f.parts}:{},...f?.partsB?{partsB:_?f.partsB.map(()=>0):f.partsB}:{}}})}const $v={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function Rv({focusableBars:e,size:t="medium",barWidth:a,titleKey:r,titleLevel:s,data:l,colorA:i,colorB:u,labelAKey:c,labelBKey:d,showTotal:m=!1,totalUnitKey:p,totalLabelKey:h,control:b,hideControls:v=!1,rate:C=!1,rateAgg:f="dayMean",tightMax:_=!1,avgMode:g=!1,totalFormat:k,series:x,seriesMode:A="stack",loading:y=!1,onDetail:w,headExtra:B,headSegment:E,icon:D,disc:N,onClick:F,cardAriaLabel:$,cardTooltip:Y,detailSize:M=32,barGap:P,baseline:T,className:K,inGrid:V=!1}){const{t:O}=_e.useTranslation(),Q=$v[t],I=Du(l),q=b??I,z=o.useMemo(()=>Lv(l,q,O,T==null),[l,q,O,T]),U=A==="group"&&!!x&&x.length>0;P!=null&&!U&&Mt("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 S=o.useMemo(()=>{if(!C)return z;const re=q.period==="month"?ha(q.monthRange):null,W=ia(),te=x?.length??0,H=G=>{const pe=[],Ne=[],ye=[];for(let me=0;me<te;me++){let se=0,ge=0,Ce=0;for(const de of G){const Le=Et(de.a[me]),ze=Et(de.b[me]);ze<=0||(se+=Le,ge+=ze,Ce+=Le/ze*100)}pe.push(f==="weighted"?ge>0?Math.round(se/ge*100):0:G.length?Math.round(Ce/G.length):0),Ne.push(se),ye.push(ge)}return{pct:pe,ra:Ne,rb:ye}};return z.map((G,pe)=>{let Ne=G.a===-1?-1:G.b>0?Math.round(G.a/G.b*100):0;if(re&&!Mn(G)){const me=re.year,se=re.month1-1,ge=Wo(l,new Date(me,se,Bn(me,se)+pe*7),W).filter(Ce=>!Ce.isFuture);if(f==="weighted"){let Ce=0,de=0;for(const{entry:Le}of ge)Le&&Le.b>0&&(Ce+=Le.a,de+=Le.b);Ne=de>0?Math.round(Ce/de*100):0}else Ne=ge.length?Math.round(ge.reduce((Ce,{entry:de})=>Ce+(de&&de.b>0?de.a/de.b*100:0),0)/ge.length):0}let ye=null;if(U&&!Mn(G)){let me;if(re){const ge=re.year,Ce=re.month1-1;me=Wo(l,new Date(ge,Ce,Bn(ge,Ce)+pe*7),W).filter(de=>!de.isFuture).map(({entry:de})=>({a:de?.parts??[],b:de?.partsB??[]}))}else me=[{a:G.parts??[],b:G.partsB??[]}];const se=H(me);ye={parts:se.pct,rawParts:se.ra,rawPartsB:se.rb}}return{...G,a:Ne,b:G.a===-1?0:d&&G.parts&&G.parts[1]>0?Math.round(G.parts[0]/G.parts[1]*100):0,rawA:G.a===-1?-1:G.a,rawB:G.b,...ye??{}}})},[z,C,f,d,q.period,q.monthRange,l,U,x?.length]),R=o.useMemo(()=>{if(C||g){const W=(q.period==="week"?z:l[q.monthRange]?.daily??[]).filter(H=>H.a!==-1);if(W.length===0)return 0;if(C&&f==="weighted"){let H=0,G=0;for(const pe of W)pe.b>0&&(H+=pe.a,G+=pe.b);return G>0?Math.round(H/G*100):0}const te=C?W.reduce((H,G)=>H+(G.b>0?G.a/G.b*100:0),0):W.reduce((H,G)=>H+(G.a>0?G.a:0),0);return Math.round(te/W.length)}const re=q.period==="month"?l[q.monthRange]?.daily??[]:S;return T!=null?re.reduce((W,te)=>W+(Mn(te,!1)?0:Et(te.a)+(d?Et(te.b):0)),0):re.reduce((W,te)=>W+(te.a>0?te.a:0)+(d&&te.b>0?te.b:0),0)},[S,z,C,f,g,T,d,q.period,q.monthRange,l]),L=x&&x.length>0?x.map(re=>({color:re.color,label:re.label})):[{color:i,label:O(c)},...d?[{color:u,label:O(d)}]:[]],Z=t==="small",ue=[Z?"manager-section--compact":t==="large"?"manager-section--full":void 0,K].filter(Boolean).join(" ")||void 0,oe=r?O(r):"",le=oe?O("trainingStatus.detailFor",{name:oe,defaultValue:"{{name}} \uC0C1\uC138\uBCF4\uAE30"}):O("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30");return n.jsx(Fo,{className:ue,inGrid:V,icon:D,disc:N,onClick:F,ariaLabel:$,tooltip:Y,headSegment:E,headMenuItems:w?[{label:le,icon:"list",onClick:w,closeOnSelect:!0}]:void 0,title:O(r),titleLevel:s,titleClassName:Z?"h5 chart-section-title--small":void 0,headRight:Z?B??void 0:({collapsed:re})=>n.jsxs(n.Fragment,{children:[!v&&n.jsx(Su,{control:q}),B,w&&!re&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(fe,{htmlType:"button",size:M,type:"dot",icon:"list",ariaLabel:le,showTooltipInfo:le,onClick:w})})]}),subRow:n.jsxs(n.Fragment,{children:[m?C||g||h&&k?n.jsx(Ya,{label:Z?void 0:`${O(q.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${O(h??c)}`,children:k?(k(R).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((re,W)=>/\d/.test(re)?n.jsx("span",{className:"barchart-total__num h0",children:re},W):n.jsx("span",{className:"barchart-total__unit h5",children:re},W)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:R}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:O(p)})]})}):n.jsxs(Ya,{children:[n.jsx("span",{className:"barchart-total__num h0",children:R}),n.jsx("span",{className:"barchart-total__unit h5",children:O(c)}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:O(p)})]}):n.jsx("span",{}),n.jsx(Io,{items:L,className:"caption-1"})]}),children:y?n.jsx("div",{className:"manager-bar-chart-wrap manager-bar-chart-loading","aria-busy":"true",children:n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsxs("div",{className:"manager-bar-chart-area manager-bar-chart-area--loading",children:[n.jsx("div",{className:"manager-bar-chart-plot manager-bar-chart-plot--loading",style:{height:Q.height},children:n.jsx(Ga,{size:32})}),n.jsx("div",{className:"manager-bar-chart-x-axis","aria-hidden":"true",children:n.jsxs("span",{className:"manager-bar-chart-x-axis__label",children:[n.jsx("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:"\xA0"}),S.some(re=>!!re.sublabel)&&n.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):n.jsx(Mv,{focusableBars:e,data:S,colorA:i,colorB:d?u:void 0,labelA:O(c),labelB:d?O(d):void 0,barWidth:a??Q.barWidth,barGap:P,baseline:T,height:Q.height,maxOverride:C?100:void 0,tightMax:_,seriesColors:x?.map(re=>re.color),seriesLabels:x?.map(re=>re.label),rateLabels:C?{total:O("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:O("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:U})})}const ju=120,Pv={left:38,right:16,top:26,bottom:24};function Iv({points:e=[],range:t,ticks:a=[],axisTitle:r,color:s,height:l=156,fallbackWidth:i=320,insets:u,overlay:c,ariaLabel:d,className:m}){const[p,h]=o.useState(null),[b,v]=o.useState(null);o.useEffect(()=>{if(!b)return;const T=V=>h(Math.round(V)||null);if(T(b.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const K=new ResizeObserver(([V])=>T(V.contentRect.width));return K.observe(b),()=>{K.disconnect()}},[b]);const{payload:C,anchorRect:f,openAfterDelay:_,close:g}=My(ju),k=o.useCallback((T,K)=>{T&&_(T,K.getBoundingClientRect())},[_]),x=p??i,A=l,{left:y,right:w,top:B,bottom:E}={...Pv,...u},[D,N]=t,F=T=>N===D?y:y+(x-y-w)*(T-D)/(N-D),$=T=>B+(A-B-E)*(100-T)/100,Y={x:F,y:$,plot:{left:y,right:x-w,top:B,bottom:A-E,width:Math.max(0,x-y-w),height:Math.max(0,A-B-E)}},M=e.filter(T=>!T.hollow),P=s??"var(--color-main)";return n.jsxs(n.Fragment,{children:[n.jsxs("svg",{ref:v,className:Be("line-chart",m),viewBox:`0 0 ${x} ${A}`,role:"img","aria-label":d??e.map(T=>T.description).filter(Boolean).join(", "),children:[r&&n.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(T=>n.jsxs("g",{children:[n.jsx("line",{className:"line-chart__grid",x1:y,x2:x-w,y1:$(T),y2:$(T)}),n.jsxs("text",{className:"line-chart__tick",x:y-6,y:$(T)+4,textAnchor:"end",children:[T,"%"]})]},T)),c?.(Y),a.map(T=>n.jsx("text",{className:"line-chart__tick",x:F(T.x),y:A-5,textAnchor:"middle",children:T.label},T.x)),M.length>1&&n.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:P,points:M.map(T=>`${F(T.x)},${$(T.pct)}`).join(" ")}),e.map(T=>n.jsxs("g",{className:"line-chart__dot",onPointerEnter:K=>k(T.description,K.currentTarget),onPointerLeave:g,children:[n.jsx("circle",{className:"line-chart__dot-hit",cx:F(T.x),cy:$(T.pct),r:12}),n.jsx("circle",{className:Be("line-chart__dot-main",T.hollow&&"is-hollow"),cx:F(T.x),cy:$(T.pct),r:4,stroke:P,fill:T.hollow?void 0:P})]},T.x))]}),C!=null&&n.jsx(vn,{anchorRect:f,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:C,children:C})]})}function Fv({icon:e,iconSize:t=56,title:a,titleClass:r="h2",description:s,tipGroups:l,start:i,className:u}){return n.jsxs("div",{className:Be("game-intro",u),children:[e!=null&&n.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${t}px`},children:e}),n.jsx("h2",{className:Be("game-intro__title",r),children:a}),s!=null&&n.jsx("p",{className:"game-intro__description body-3",children:s}),l?.map((c,d)=>n.jsxs("div",{className:"game-intro__tips",children:[c.title!=null&&n.jsx("span",{className:"game-intro__tips-title body-3",children:c.title}),c.tips.map((m,p)=>n.jsxs("span",{className:"game-intro__tip body-3",children:[m.icon!=null&&n.jsx("span",{"aria-hidden":"true",children:m.icon}),n.jsx("span",{children:m.text})]},p))]},d)),i&&n.jsx(fe,{htmlType:"button",className:i.className,variant:"main",color:i.color,size:48,width:"100%",disabled:i.disabled,onClick:i.onClick,children:i.label})]})}const Tu=(e,t,a)=>{const r=new Date(Date.UTC(e,t,a));return`${r.getUTCFullYear()}-${String(r.getUTCMonth()+1).padStart(2,"0")}-${String(r.getUTCDate()).padStart(2,"0")}`},Mu=(e,t,a,r)=>({from:Hl(e,t,a),to:new Date(Hl(e,t,a+r).getTime()-1),fromYmd:Tu(e,t,a),toYmd:Tu(e,t,a+r-1)});function Ov(e,t=0){if(e.period==="month"){const s=ha(e.monthRange),l=ia(),i=s?s.year:l.getFullYear(),u=(s?s.month1:l.getMonth()+1)-1+t,c=new Date(Date.UTC(i,u+1,0)).getUTCDate();return Mu(i,u,1,c)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,l=La();return{from:s,to:s,fromYmd:l,toYmd:l}}const r=Bn(a.year,a.month-1);return Mu(a.year,a.month-1,r+(a.week+t)*7,7)}const Ho={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Lu(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function $u({done:e,total:t,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:l,label:i="%",hideCenter:u=!1,hideLabel:c=!1}){const d=typeof s=="number"?s:Ho[s].diameter,m=l??(typeof s=="number"?12:Ho[s].strokeWidth),p=d/2,h=(d-m)/2,b=2*Math.PI*h;if(a&&a.length>0){const _=a.reduce((g,k)=>{const x=g.length>0?g[g.length-1].acc:0,A=Number.isFinite(k.ratio)?k.ratio:0,y=Math.max(0,Math.min(A,1-x));return g.push({color:k.color,rotate:-90+x*360,dash:b*y,acc:x+y}),g},[]);return n.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),_.map((g,k)=>g.dash>0&&n.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:g.color,strokeWidth:m,strokeDasharray:`${g.dash} ${b}`,strokeLinecap:"round",transform:`rotate(${g.rotate} ${p} ${p})`},k))]})})}const v=(t??0)>0?Math.min((e??0)/t,1):0,C=b*v,f=b-C;return n.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),v>0&&n.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${C} ${f}`,strokeLinecap:v<.02||v>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!u&&n.jsxs("div",{className:`ring-chart__center${c?"":` ${d<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[n.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:Lu(v)}),!c&&n.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||s==="medium"?" ring-chart__label--tight":""}`,children:i})]})]})}function zv({titleKey:e,titleLevel:t,headRight:a,icon:r,showTotal:s,totalLabelKey:l,legend:i,loading:u,className:c,inGrid:d=!1,onClick:m,ariaLabel:p,tooltip:h,...b}){const{t:v}=_e.useTranslation();if(!e)return n.jsx($u,{...b});const C=(b.total??0)>0?Lu(Math.min((b.done??0)/b.total,1)):0,f=b.size==="small",_=typeof b.size=="number"?b.size:Ho[b.size??"medium"].diameter,g=b.size==="large",k=[c,f?"manager-section--compact":g?"manager-section--full":""].filter(Boolean).join(" ")||void 0,x=r&&n.jsx("span",{className:"chart-section-icon",children:n.jsx(nt,{icon:r,className:"chart-section-icon-inner"})});return n.jsx(Fo,{className:k,inGrid:d,onClick:m,ariaLabel:p,tooltip:h,title:v(e),titleLevel:t,titleClassName:f?"h5 chart-section-title--small":void 0,headRight:x||(f?void 0:a),subRow:(s||i)&&n.jsxs(n.Fragment,{children:[s?n.jsxs(Ya,{label:!f&&l?v(l):void 0,children:[n.jsx("span",{className:"barchart-total__num h0",children:C}),n.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):n.jsx("span",{}),i&&n.jsx(Io,{items:i})]}),children:u?n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:_,height:_},"aria-busy":"true",children:n.jsx(Ga,{size:32})})}):n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx($u,{...b,hideCenter:b.hideCenter??f})})})}function Wv({label:e,value:t,change:a,changeType:r,icon:s,tooltip:l,onClick:i,children:u}){const c=o.useRef(null),{anchorRect:d,openAt:m,close:p}=Pa(),h=o.useCallback(()=>{l&&c.current&&m(c.current)},[l,m]),b=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),v=a===void 0?void 0:a>0?`+${a}`:`${a}`,C=o.useCallback(f=>{i&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i())},[i]);return n.jsxs("div",{ref:c,className:`manager-stat-card${i?" manager-stat-card--clickable":""}`,onClick:i,onKeyDown:i?C:void 0,onPointerEnter:h,onPointerLeave:p,onFocus:h,onBlur:p,role:i?"button":void 0,tabIndex:i?0:void 0,"aria-label":i?[e,t,v].filter(f=>f!==void 0&&f!=="").join(" "):void 0,children:[l&&d&&n.jsx(Dn,{anchorRect:{left:d.left,top:d.top+21,right:d.right,bottom:d.bottom,width:d.width,height:d.height},text:l}),n.jsxs("div",{className:"manager-stat-card__label-row",children:[n.jsx("span",{className:"manager-stat-card__label h5",children:e}),s&&n.jsx("span",{className:"manager-stat-card__icon",children:n.jsx(nt,{icon:s,className:"manager-stat-card__icon-inner"})})]}),n.jsxs("div",{className:"manager-stat-card__content",children:[n.jsxs("div",{className:"manager-stat-card__left",children:[n.jsx("div",{className:"manager-stat-card__value h2",children:t}),v&&n.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${b??"neutral"} caption-1`,children:v})]}),u&&n.jsx("div",{className:"manager-stat-card__body",children:u})]})]})}function Ru({value:e,onChange:t,min:a=0,max:r=100,step:s=1,orientation:l="horizontal",size:i=24,disabled:u=!1,ariaLabel:c,length:d,className:m,label:p,formatValue:h,labelPos:b,labelAlign:v="right",showMinMax:C=!1,minLabel:f,maxLabel:_,showBgTick:g=!1,showFillTick:k=!1,tickStep:x,tickShape:A="dot"}){t&&!c&&Mt("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 y=Math.min(r,Math.max(a,e)),w=r>a?(y-a)/(r-a):0,B=l==="vertical",E=!t,D=z=>t?.(Number(z.target.value)),N=typeof d=="number"?`${d}px`:d,F={"--slider-ratio":String(w),"--slider-thumb":`${i}px`,...N?B?{height:N}:{width:N}:{}},$=x??s,Y=(g||k)&&$>0&&r>a?Math.floor((r-a)/$+1e-6):0;if(Y>0&&Y<=100){const z=A!=="dash",U=ue=>z?`radial-gradient(circle, ${ue} 0.5px, transparent 1px)`:B?`linear-gradient(to bottom, transparent calc(50% - 2px), ${ue} calc(50% - 2px), ${ue} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${ue} calc(50% - 2px), ${ue} calc(50% + 2px), transparent calc(50% + 2px))`,S=z?"2px":"4px",R=[],L=[],Z=[];for(let ue=0;ue<=Y;ue++){const oe=ue*$/(r-a);if(oe>1+1e-6)break;const le=`${((B?1-oe:oe)*100).toFixed(4)}%`,re=oe<=w+1e-6;if(re?!k:!g)continue;const W=re?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";R.push(U(W)),L.push(B?`${S} var(--slider-thumb)`:`var(--slider-thumb) ${S}`),Z.push(B?`center ${le}`:`${le} center`)}R.push(B?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),L.push("100% 100%"),Z.push("0 0"),F.backgroundImage=R.join(", "),F.backgroundSize=L.join(", "),F.backgroundPosition=Z.join(", "),F.backgroundRepeat="no-repeat"}const M=h?h(y):p==="percent"?`${Math.round(r>a?(y-a)/(r-a)*100:0)}%`:p==="count"?`${y} / ${r}`:y===a&&f?f:y===r&&_?_:void 0,P=n.jsx("input",{type:"range",className:Be("slider",`slider--${l}`,E&&"slider--static",!p&&!C&&m),min:a,max:r,step:s,value:y,disabled:u,readOnly:E,tabIndex:E?-1:void 0,"aria-label":c,"aria-valuetext":M,"aria-orientation":l,onChange:D,style:F});if(!p&&!C)return P;const T=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:f??a}),K=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??r}),V=C?n.jsxs("div",{className:Be("slider-track-group",`slider-track-group--${l}`,!p&&m),children:[B?K:T,P,B?T:K]}):P;if(!p)return V;const O=b??(B?"bottom":"right"),Q=`${Math.round(r>a?(y-a)/(r-a)*100:0)}%`,I=h?h(y):p==="percent"?Q:p==="count"?`${y} / ${r}`:String(y),q=n.jsx("span",{className:"slider-wrap__value body-3b",children:I});return n.jsxs("div",{className:Be("slider-wrap",`slider-wrap--${l}`,`slider-wrap--label-${O}`,`slider-wrap--align-${v}`,m),children:[V,q]})}const Hv=.86,Vv=250,Vo=(e,t,a,r)=>Math.round(Math.min(r,Math.max(a,e-t))),qo=(e,t,a,r)=>{const s=Vo(e,t,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function Uo({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:s,labelPos:l,labelAlign:i="right",floorDb:u=-60,refDb:c=-35,displayMin:d=-5,displayMax:m=25,className:p,ariaLabel:h}){const b=o.useRef(null),v=o.useRef(null),C=o.useRef(null),f=o.useRef(null),[_,g]=o.useState(null);o.useEffect(()=>{const y=P=>{const T=qo(P,c,d,m);C.current&&(C.current.textContent=T);const K=b.current;K&&(K.setAttribute("aria-valuenow",String(Vo(P,c,d,m))),K.setAttribute("aria-valuetext",T))},w=e??OC(t)??(_&&_.el===t?_.node:null),B=v.current;if(!w||!B){B?.style.setProperty("--meter-level","0"),y(u);let P=!1;return!e&&t&&er(t).then(T=>{!P&&T&&g({el:t,node:T})}),()=>{P=!0}}to();const E=new Float32Array(w.fftSize);let D=0,N=0,F=0,$=0,Y=null;const M=P=>{const T=zC(w,E);D=T>D?T:D*Hv;const K=D>1e-5?20*Math.log10(D):-1/0,V=Math.max(u,K),O=V-c,Q=Math.min(1,Math.max(0,(O-d)/(m-d)));if(B.style.setProperty("--meter-level",Q.toFixed(3)),N+=V,F+=1,P-$>=Vv){const I=N/F;Y=Y==null?I:Y*.6+I*.4,y(Y),N=0,F=0,$=P}f.current=requestAnimationFrame(M)};return f.current=requestAnimationFrame(M),()=>{f.current!=null&&cancelAnimationFrame(f.current),f.current=null}},[e,t,_,u,c,d,m]);const k=typeof r=="number"?`${r}px`:r,x=n.jsx("div",{className:"audio-meter__track",style:k?a==="vertical"?{height:k}:{width:k}:{},children:n.jsx("div",{ref:v,className:"audio-meter__fill"})}),A=l??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:b,className:Be("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${A}`,s&&`audio-meter--align-${i}`,p),role:"meter","aria-label":h,"aria-valuemin":d,"aria-valuemax":m,"aria-valuenow":Vo(u,c,d,m),"aria-valuetext":qo(u,c,d,m),children:[x,s&&n.jsx("span",{ref:C,className:"audio-meter__value caption-2",children:qo(u,c,d,m)})]})}const Pu=260;function Iu({message:e,position:t,duration:a,onClose:r}){const[s,l]=o.useState(!1),[i,u]=o.useState(!1),c=o.useRef(i),d=o.useRef(s);o.useEffect(()=>{c.current=i},[i]),o.useEffect(()=>{d.current=s},[s]);const m=o.useRef(null),p=o.useRef(""),h=o.useRef(r);o.useEffect(()=>{h.current=r});const b=a,v=o.useRef(null),C=o.useRef(0),f=o.useRef(0),_=o.useRef(!1),g=o.useRef(null),k=o.useRef(null),x=o.useRef(null),A=o.useRef(null),y=o.useRef(()=>{});y.current=E=>{E<0||(C.current=Date.now(),f.current=E,v.current=setTimeout(()=>{v.current=null,l(!1),g.current=setTimeout(()=>{u(!1);try{h.current()}catch{}},Pu)},E))};const w=o.useCallback(()=>{_.current||!v.current||(_.current=!0,clearTimeout(v.current),v.current=null,f.current=Math.max(0,f.current-(Date.now()-C.current)))},[]),B=o.useCallback(()=>{_.current&&(_.current=!1,y.current(f.current))},[]);return o.useEffect(()=>{if(e!==p.current&&(v.current&&(clearTimeout(v.current),v.current=null),g.current&&(clearTimeout(g.current),g.current=null)),e){if(d.current)return b>0&&!v.current&&(_.current?f.current=b:y.current(b)),p.current=e,()=>{v.current&&(clearTimeout(v.current),v.current=null),g.current&&(clearTimeout(g.current),g.current=null)};const E=()=>{const D=m.current;if(D)try{D.classList.remove("is-visible"),D.style.transition="none",t==="top"?D.style.transform="translateX(-50%) translateY(-16px)":D.style.transform="translateX(-50%) translateY(16px)",D.style.opacity="0",D.offsetWidth,D.style.transition="",D.classList.add("is-visible"),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{A.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};c.current?(E(),l(!0)):(u(!0),k.current=requestAnimationFrame(()=>{x.current=requestAnimationFrame(()=>{E(),l(!0)})})),b>0&&(_.current=!1,y.current(b))}else l(!1),g.current=setTimeout(()=>u(!1),Pu);return p.current=e,()=>{v.current&&clearTimeout(v.current),g.current&&clearTimeout(g.current),k.current&&cancelAnimationFrame(k.current),x.current&&cancelAnimationFrame(x.current),A.current&&clearTimeout(A.current),v.current=null,g.current=null,k.current=null,x.current=null,A.current=null}},[e,b,t]),{mounted:i,showing:s,popupRef:m,pause:w,resume:B}}function Ca({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:l,showing:i,popupRef:u,pause:c,resume:d}=Iu({message:e,position:t,duration:s,onClose:r}),m=o.useRef(null),[p,h]=o.useState(!1);if(o.useEffect(()=>{i?h(!0):l||h(!1)},[i,l]),!l)return null;const b=a==="notice"||a==="warning"?a:"normal",v=n.jsx("div",{ref:u,className:`toast toast--${t} ${i?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:C=>{m.current=C.pointerType},onMouseEnter:()=>{m.current!=="touch"&&c()},onMouseLeave:d,onFocusCapture:c,onBlurCapture:d,children:n.jsx("div",{className:`toast__inner toast__inner--${b} body-2`,"aria-hidden":p||i?void 0:!0,children:n.jsx("span",{className:"toast__text",children:e})})});return typeof document<"u"?cn.createPortal(v,document.body):v}const qv=24;function Uv({value:e,max:t=100,size:a=8,color:r,trackColor:s,label:l,formatValue:i,labelPos:u,labelAlign:c="right",ariaLabel:d,className:m}){const p=Number.isFinite(t)&&t>0?t:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),b=h/p*100,v=Number.isFinite(t)&&t>0?t:0,C=u??(a>=qv?"inside":"bottom"),f=C==="center"?"inside":C,_=f==="inside"&&(c==="left"?b>=15:c==="center"?b>=50:b>=85),g={};return r&&(g["--progress-bar-fill"]=r),s&&(g["--progress-bar-track"]=s),n.jsxs("div",{className:Be("progress-bar",`progress-bar--${a}`,`progress-bar--label-${f}`,l&&`progress-bar--align-${c}`,l&&_&&"progress-bar--label-on-fill",m),style:g,children:[n.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":v,"aria-valuetext":l?i?i(h):l==="percent"?void 0:l==="raw"?String(h):`${h} / ${v}`:void 0,"aria-label":d,children:n.jsx("div",{className:"progress-bar__fill",style:{width:`${b}%`}})}),l&&n.jsx("span",{className:"progress-bar__label caption-1b",children:i?i(h):l==="percent"?`${Math.round(b)}%`:l==="raw"?String(h):`${h} / ${v}`})]})}const Fu={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Gv="rgba(255, 255, 255, 0.16)";function Ou({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:s,variant:l="numbered",announce:i=!1,ariaLabel:u}){const{t:c}=_e.useTranslation(),d=Cn("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const m=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,p=u??c("progress.steps",{current:m+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};if(a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),s&&(a||(h["--pi-inactive-bg"]=Gv),r||(h["--pi-inactive-color"]="var(--color-white)")),l==="dot")return n.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:h,role:i?"status":"img","aria-label":i?void 0:p,children:[i&&n.jsx("span",{style:Fu,children:p}),Array.from({length:e}).map((v,C)=>n.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${C<m?" done":C===m?" active":""}`},C))]});const b=i?n.jsx("span",{role:"status",style:Fu,children:p}):null;return d?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:h,role:"list","aria-label":p,children:n.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[m+1," / ",e]})}),b]}):n.jsxs(n.Fragment,{children:[b,n.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":p,children:Array.from({length:e}).map((v,C)=>n.jsx("span",{role:"listitem","aria-current":C===m?"step":void 0,className:`progress-indicator-dot ${C<m?" done":C===m?" active":""} body-3`,children:C+1},C))})]})}function Kv(e){if(!e)return[];const t=[];let a=0,r="";for(const s of e.trim()){if(s==="("?a++:s===")"&&a--,/\s/.test(s)&&a===0){r&&(t.push(r),r="");continue}r+=s}return r&&t.push(r),t}function Yv({children:e,className:t,style:a,rowLabel:r,onRowClick:s}){return n.jsx("div",{role:"cell",className:t?`table-cell ${t}`:"table-cell",style:a,children:r&&s?n.jsx("button",{type:"button",className:"table-cell__row-button","aria-label":r,children:e}):e})}function Go({variant:e="default",children:t,className:a,draggable:r,onClick:s,onMouseEnter:l,onMouseLeave:i,onDragStart:u,onDragEnd:c,expandedContent:d,colSpan:m,describedBy:p,rowHasButton:h}){const b=o.useCallback(v=>{s&&v.target===v.currentTarget&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),s())},[s]);return e==="loading"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--loading",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:n.jsx(Ga,{size:28})})})}):e==="empty"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--empty body-3",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:t})})}):n.jsxs("div",{role:"presentation",className:"table-row-wrap",children:[n.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:s,onKeyDown:s?b:void 0,onMouseEnter:l,onMouseLeave:i,onDragStart:u,onDragEnd:c,role:"row",tabIndex:s&&!h?0:void 0,"aria-describedby":s&&!h?p:void 0,children:t}),d&&n.jsx("div",{role:"row",className:"table-row-expand",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row-expand__cell",children:d})})]})}function Zv({dir:e}){return n.jsx(e==="asc"?Xs:Zs,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Xv({children:e,onClick:t,className:a,sortDir:r,ariaSort:s,onResizeStart:l}){const i=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(Zv,{dir:r})]});return n.jsxs("div",{onClick:t,role:"columnheader","aria-sort":s,className:Be("table-field body-3",a,r?"table-field--sorted":"",l?"table-field--resizable":""),children:[t?n.jsx("button",{type:"button",className:"table-field__button",children:i}):i,l&&n.jsx("span",{className:"table-field__resizer",onPointerDown:l,onClick:u=>u.stopPropagation(),"aria-hidden":"true"})]})}function zu(e){return e&&e!=="left"?`table-col--${e}`:void 0}function Ko({fields:e=[],sort:t,sortable:a=!0,headerGroups:r,items:s=[],renderRow:l,onRowClick:i,isRowClickable:u,onRowMouseEnter:c,onRowMouseLeave:d,onRowDragStart:m,onRowDragEnd:p,draggingId:h,gridTemplateColumns:b,mobileGridTemplateColumns:v,resizable:C=!0,resizeMode:f="grow",resizeStorageKey:_,size:g="small",title:k,icon:x,count:A,collapsed:y=!1,onToggleCollapse:w,headerActions:B,empty:E,loading:D,dragOver:N=!1,onDragOver:F,onDragLeave:$,onDrop:Y,renderExpandedRow:M,expandedId:P}){const{t:T}=_e.useTranslation(),K=o.useId(),V=`table-title-${K}`,O=`table-row-hint-${K}`,[Q,I]=o.useState(null),q=o.useCallback((ae,ve)=>{const Oe=e[ve];if(!Oe)return;if(Oe.sortValue)return Oe.sortValue(ae);if(Oe.sortKey)return ae[Oe.sortKey];const tt=l(ae)[ve]?.content;return typeof tt=="string"||typeof tt=="number"?tt:void 0},[e,l]),z=!t&&a&&!e.some(ae=>ae.sortDir!==void 0||ae.onClick),U=o.useCallback(ae=>{const ve=e[ae];if(!ve||ve.sortable===!1)return!1;if(ve.sortValue||ve.sortKey)return!0;const Oe=s[0];return Oe!==void 0&&q(Oe,ae)!==void 0},[e,s,q]),S=o.useMemo(()=>t?e.map(ae=>{if(!ae.sortKey||ae.sortDir!==void 0)return ae;const ve=t.field(String(ae.label??""),ae.sortKey);return{...ae,sortDir:ve.sortDir,onClick:ae.onClick??ve.onClick}}):z?e.map((ae,ve)=>U(ve)?{...ae,sortDir:Q?.index===ve?Q.asc?"asc":"desc":null,onClick:()=>I(Oe=>Oe?.index===ve?{index:ve,asc:!Oe.asc}:{index:ve,asc:!0})}:ae):e,[e,t,z,Q,U]),R=o.useMemo(()=>{if(!z||!Q)return s;const{index:ae,asc:ve}=Q;return[...s].sort((Oe,tt)=>ur(q(Oe,ae),q(tt,ae),ve))},[s,z,Q,q]),L=Cn("(max-width: 767px)"),Z=v&&L?v:null,ue=C&&!L,oe=o.useRef(ue);oe.current=ue;const le=48,re=40,W=o.useRef(()=>le),te=_?`table-cols:${_}`:null,H=o.useRef(null),G=o.useRef(null),pe=o.useRef(null),Ne=o.useRef(null),[ye,me]=o.useState(!1),[se,ge]=o.useState(0),Ce=o.useCallback(()=>{const ae=pe.current;if(!ae)return;const ve=Ne.current,Oe=H.current;if(ve&&(ve.style.minWidth="",Oe)){const tt=Oe.scrollWidth,gt=oe.current?re:0;ve.style.minWidth=tt>ae.clientWidth+1?`${tt+gt}px`:""}me(ae.scrollWidth>ae.clientWidth+1),ge(ae.clientWidth)},[]),de=o.useCallback((ae,ve)=>{const Oe=ae.current;Oe&&G.current&&G.current.unobserve(Oe),ae.current=ve,ve?(!G.current&&typeof ResizeObserver<"u"&&(G.current=new ResizeObserver(()=>Ce())),G.current?.observe(ve)):!pe.current&&!Ne.current&&(G.current?.disconnect(),G.current=null),Ce()},[Ce]),Le=o.useCallback(ae=>de(pe,ae),[de]),ze=o.useCallback(ae=>de(Ne,ae),[de]);o.useEffect(()=>{Ce()}),o.useEffect(()=>{if(typeof window>"u")return;const ae=typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>Ce()):null;return window.addEventListener("resize",Ce),()=>{ae!=null&&cancelAnimationFrame(ae),window.removeEventListener("resize",Ce)}},[Ce]);const Te=o.useRef(()=>!1),Ge=o.useRef([]),Ie=o.useRef(null),ct=ae=>{if(!ae||typeof window>"u")return null;try{const ve=JSON.parse(window.localStorage.getItem(ae)??"null");return Array.isArray(ve)&&ve.length>0&&ve.every(Oe=>typeof Oe=="number"&&Number.isFinite(Oe)&&Oe>0)?ve:null}catch{return null}},[at,rt]=o.useState(()=>ct(te)),[lt,Ee]=o.useState(te),[Ye,ke]=o.useState(()=>ct(te)!==null);if(lt!==te){Ee(te);const ae=ct(te);rt(ae),ke(ae!==null)}const He=o.useRef(at);o.useEffect(()=>{He.current=at},[at]);const Je=o.useCallback(ae=>{const ve=Ie.current;if(!ve)return;const Oe=He.current;if(Oe){const tt=[...Oe],gt=()=>le;if(ve.next!=null&&ve.startWNext!=null){const it=ae.clientX-ve.startX,It=Math.max(gt()-ve.startW,Math.min(ve.startWNext-gt(),it));tt[ve.index]=ve.startW+It,tt[ve.next]=ve.startWNext-It}else tt[ve.index]=Math.max(gt(),ve.startW+(ae.clientX-ve.startX));He.current=tt,rt(tt)}},[]),dt=o.useCallback(()=>{if(Ie.current=null,window.removeEventListener("pointermove",Je),window.removeEventListener("pointerup",dt),window.removeEventListener("pointercancel",dt),document.body.style.cursor="",document.body.style.userSelect="",te&&He.current)try{window.localStorage.setItem(te,JSON.stringify(He.current))}catch{}},[Je,te]),kt=o.useCallback((ae,ve)=>{ve.preventDefault(),ve.stopPropagation();const Oe=H.current;if(!Oe)return;const tt=Array.from(Oe.children).map(it=>it.getBoundingClientRect().width),gt=f==="fit"?S.findIndex((it,It)=>It>ae&&it.resizable!==!1):-1;Ie.current=gt>=0?{index:ae,startX:ve.clientX,startW:tt[ae],next:gt,startWNext:tt[gt]}:{index:ae,startX:ve.clientX,startW:tt[ae]},He.current=tt,rt(tt),ke(!0),window.addEventListener("pointermove",Je),window.addEventListener("pointerup",dt),window.addEventListener("pointercancel",dt),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[Je,dt,f,S]),At=o.useCallback(()=>{const ae=H.current,ve=ae?.closest(".table-wrap");if(!ae||!ve)return null;const Oe=ve.style.getPropertyValue("--table-grid-cols");ve.style.setProperty("--table-grid-cols",S.map(()=>"max-content").join(" "));const tt=Array.from(ve.querySelectorAll(".table-row")).filter(Nt=>!Nt.classList.contains("table-row--loading")&&!Nt.classList.contains("table-row--empty")),gt=S.map((Nt,Ct)=>{let ft=ae.children[Ct]?.getBoundingClientRect().width??0;for(const Yt of tt){const gn=Yt.children[Ct];gn&&(ft=Math.max(ft,gn.getBoundingClientRect().width))}const _t=Te.current(Ct)?parseFloat(Ge.current[Ct]):NaN;return Number.isFinite(_t)&&Math.ceil(ft)>_t&&Mt(`table-fixed-col-overflow:${Ct}:${_t}`,`[ihabdevteam-core] Table \uC758 ${Ct+1}\uBC88\uC9F8 \uC5F4\uC744 ${_t}px \uB85C \uC815\uD574 \uB450\uC5C8\uB294\uB370 \uC548\uC758 \uB0B4\uC6A9\uC740 ${Math.ceil(ft)}px \uAC00 \uD544\uC694\uD569\uB2C8\uB2E4 \u2014 \uADF8\uB9CC\uD07C \uC798\uB824 \uB098\uAC11\uB2C8\uB2E4. gridTemplateColumns(\uB610\uB294 fields[].width)\uC758 \uADF8 \uC5F4\uC744 ${Math.ceil(ft)}px \uC774\uC0C1\uC73C\uB85C \uB298\uB9AC\uC138\uC694.`),Number.isFinite(_t)?_t:Math.max(W.current(Ct),Math.ceil(ft))}),it=window.getComputedStyle(ae),It=ae.clientWidth-(parseFloat(it.paddingLeft)||0)-(parseFloat(it.paddingRight)||0);Oe?ve.style.setProperty("--table-grid-cols",Oe):ve.style.removeProperty("--table-grid-cols");let Gt=gt;const An=gt.reduce((Nt,Ct,ft)=>Nt+(Te.current(ft)?Ct:0),0),Wt=gt.reduce((Nt,Ct,ft)=>Nt+(Te.current(ft)?0:Ct),0),Kt=It-An;if(It>0&&Wt>0&&Kt>0){const Nt=Kt/Wt;Gt=gt.map((ft,_t)=>Te.current(_t)?ft:Math.max(W.current(_t),Math.round(ft*Nt)));const Ct=Math.round(Kt-Gt.reduce((ft,_t,Yt)=>ft+(Te.current(Yt)?0:_t),0));if(Ct!==0){let ft=-1;Gt.forEach((_t,Yt)=>{!Te.current(Yt)&&(ft<0||_t>Gt[ft])&&(ft=Yt)}),ft>=0&&(Gt[ft]=Math.max(W.current(ft),Gt[ft]+Ct))}}return Gt},[S,f]),Pt=(ae,ve)=>ae!==null&&ae.length===ve.length&&ae.every((Oe,tt)=>Oe===ve[tt]),et=o.useRef(At);o.useEffect(()=>{et.current=At});const[st,Dt]=o.useState(0),vt=R.length>0,we=`${te??""}|${st}|${S.length}|${se}`,Re=!Ye&&ue&&te!==null&&!D?`${we}|${vt?1:0}`:null,Se=o.useRef(null);o.useEffect(()=>{if(Re===null||!vt||Se.current===we)return;const ae=et.current();ae&&(Se.current=we,rt(ve=>Pt(ve,ae)?ve:ae))},[Re]);const Ve=o.useCallback(()=>{if(te)try{window.localStorage.removeItem(te)}catch{}ke(!1);const ae=et.current();rt(ae),He.current=ae,Dt(ve=>ve+1)},[te]);o.useEffect(()=>()=>{Ie.current&&(window.removeEventListener("pointermove",Je),window.removeEventListener("pointerup",dt),window.removeEventListener("pointercancel",dt),document.body.style.cursor="",document.body.style.userSelect="")},[Je,dt]);const qe=S.length>0&&S.every(ae=>ae.width!=null)?S.map(ae=>typeof ae.width=="number"?`${ae.width}px`:String(ae.width)).join(" "):null;S.some(ae=>ae.width!=null)&&!qe&&Mt(`table-field-width:${S.map(ae=>ae.width==null?"-":"w").join("")}`,"[ihabdevteam-core] Table \uC758 fields \uC911 \uC77C\uBD80\uC5D0\uB9CC width \uAC00 \uC788\uC2B5\uB2C8\uB2E4. **\uBAA8\uB4E0 \uC5F4\uC5D0 \uC801\uC5B4\uC57C** \uC4F0\uC785\uB2C8\uB2E4 \u2014 \uC9C0\uAE08\uC740 gridTemplateColumns \uB97C \uC501\uB2C8\uB2E4. \uD55C \uC5F4\uB9CC \uACE0\uC815\uD558\uACE0 \uC2F6\uC73C\uBA74 \uB098\uBA38\uC9C0\uC5D0 `minmax(0, 1fr)` \uCC98\uB7FC \uC801\uC5B4 \uC8FC\uC138\uC694."),qe&&b&&Mt("table-field-width-conflict","[ihabdevteam-core] Table \uC5D0 fields[].width \uC640 gridTemplateColumns \uAC00 \uB458 \uB2E4 \uC788\uC2B5\uB2C8\uB2E4. gridTemplateColumns \uAC00 \uC774\uAE41\uB2C8\uB2E4 \u2014 \uD55C\uCABD\uB9CC \uB450\uC138\uC694.");const Bt=b??qe??void 0,mt=Kv(Bt),ut=mt.filter(ae=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(ae));ut.length>0&&Mt(`table-content-track:${b}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${ut.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: ${b})`);const St=S.findIndex(ae=>!!ae.sortDir);S.filter(ae=>!!ae.sortDir).length>1&&Mt("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 Ue=ae=>ae===St?S[ae].sortDir==="asc"?"ascending":"descending":S[ae].onClick?"none":void 0,ht=ae=>/^\d+(\.\d+)?px$/.test(mt[ae]??""),jt=ae=>{const ve=mt[ae]??"",Oe=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(ve)??/^(\d+(?:\.\d+)?)px$/.exec(ve);return Oe?parseFloat(Oe[1]):le};Te.current=ht,W.current=jt,Ge.current=mt;const Me=ae=>f==="fit"&&!ht(ae)?"fr":"px",Ke=at&&at.length===S.length&&!L,yt=Z??(Ke?S.map((ae,ve)=>ae.resizable===!1&&mt[ve]?mt[ve]:`${at[ve]}${Me(ve)}`).join(" "):Bt),Qe=yt?{"--table-grid-cols":yt}:void 0,xt=k!==void 0;return n.jsxs("div",{ref:Le,className:`table-wrap table-wrap--${g}${ue?" table-wrap--resizable":""}${N?" table-wrap--dragover":""}${y?" table-wrap--collapsed":""}`,style:Qe,onDragOver:F,onDragLeave:$,onDrop:Y,tabIndex:ye?0:void 0,role:ye?"region":void 0,"aria-label":ye?typeof k=="string"?k:T("table.scrollRegion","\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"):void 0,children:[!!i&&n.jsx("span",{id:O,className:"table-row-hint",children:T("table.rowActionHint","\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4")}),n.jsxs("div",{ref:ze,role:"table","aria-labelledby":xt&&typeof k=="string"?V:void 0,className:"table body-2",children:[xt&&n.jsxs("div",{className:Be("table-header",w&&"table-header--clickable"),onClick:w,role:"caption",children:[w&&n.jsx(fe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:y?"chevron-right":"chevron-down",ariaLabel:y?T("common.expand","\uD3BC\uCE58\uAE30"):T("common.collapse","\uC811\uAE30"),ariaExpanded:!y,className:"table-header__chevron"}),x&&n.jsx(nt,{icon:x,label:typeof k=="string"?k:void 0,className:"table-header__icon"}),n.jsx("span",{id:V,className:"table-header__title h5b",children:k}),A!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:A}),B&&n.jsx("span",{className:"table-header__actions",onClick:ae=>ae.stopPropagation(),children:B})]}),!y&&n.jsxs(n.Fragment,{children:[r&&r.length>0&&n.jsx("div",{role:"row",className:"table-fields table-fields--groups",children:r.map((ae,ve)=>n.jsx("div",{role:"columnheader","aria-colspan":ae.span,className:Be("table-field body-3",ae.className),style:{gridColumn:`span ${ae.span}`},children:ae.label},ve))}),n.jsxs("div",{role:"presentation",className:Be("table-fields-strip",ue&&"table-fields-strip--resizable"),children:[n.jsx("div",{role:"row",className:"table-fields",ref:H,children:S.map((ae,ve)=>n.jsx(Xv,{onClick:ae.onClick,className:Be(ae.className,zu(ae.align)),sortDir:ae.sortDir,ariaSort:Ue(ve),onResizeStart:ue&&ve<S.length-1&&ae.resizable!==!1&&(f!=="fit"||S.some((Oe,tt)=>tt>ve&&Oe.resizable!==!1))?Oe=>kt(ve,Oe):void 0,children:ae.label},ve))}),ue&&n.jsx(fe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:T("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:T("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:Ve})]}),n.jsx("div",{role:"rowgroup",className:"table-body",children:D?n.jsx(Go,{variant:"loading",colSpan:S.length||void 0}):R.length===0&&E?n.jsx(Go,{variant:"empty",colSpan:S.length||void 0,children:E}):R.map((ae,ve)=>{const Oe=h!=null&&ae.id===h,tt=!!i&&(u?u(ae):!0),gt=P!=null&&ae.id!=null&&(P instanceof Set?P.has(ae.id)||[...P].some(it=>String(it)===String(ae.id)):String(ae.id)===String(P));return n.jsx(Go,{className:`${tt?" table-row--clickable":""}${m?" table-row--draggable":""}${Oe?" table-row--dragging":""}`.trim(),draggable:!!m,onClick:tt?()=>i(ae):void 0,colSpan:S.length||void 0,rowHasButton:l(ae).some(it=>!!it.rowLabel),describedBy:O,onMouseEnter:c?it=>c(ae,it):void 0,onMouseLeave:d?it=>d(ae,it):void 0,onDragStart:m?it=>m(ae,it):void 0,onDragEnd:p?it=>p(ae,it):void 0,expandedContent:gt&&M?M(ae):void 0,children:l(ae).map((it,It)=>n.jsx(Yv,{className:Be(it.className,zu(S[It]?.align)),style:it.style,rowLabel:tt?it.rowLabel:void 0,onRowClick:tt?()=>i(ae):void 0,children:it.content},It))},ae.id!=null?`${typeof ae.id}:${ae.id}`:`__idx:${ve}`)})})]})]})]})}const Jv={hearingAid:"hearingAid",cochlearImplant:"cochlearImplant",other:"other",\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant",\uAE30\uD0C0:"other"};function Wu(e){return e?Jv[e]??null:null}function Hu(e){switch(Wu(e)){case"hearingAid":return"main";case"cochlearImplant":return"sub";default:return"default"}}function Vu(e,t){const a=Wu(e);return a?t(`device.type.${a}`,{defaultValue:e??""}):e??""}const fa=e=>e==null?"":String(e).trim();function Yo(e,t,a,r){const s=fa(e),l=fa(t),i=fa(a);if(r&&s&&l&&i){const c=`${s.padStart(4,"0")}-${l.padStart(2,"0")}-${i.padStart(2,"0")}`,d=new Date(c);if(!Number.isNaN(d.getTime())&&d.toISOString().slice(0,10)===c){const m=zl(c,r);if(m)return m}}const u=[s,l,i];for(;u.length>0&&u[u.length-1]==="";)u.pop();return u.join(".")}function Qv(e,t,a){const r=fa(e);return r?`${r}-${fa(t).padStart(2,"0")}-${fa(a).padStart(2,"0")}`:""}function qu(e,t){return t!=="wornAt"?String(e[t]??""):Qv(e.wornYear,e.wornMonth,e.wornDay)}function e4({rows:e,loading:t,onSelect:a,onDelete:r,onWear:s,onRelease:l,onAdd:i}){const{t:u,i18n:c}=_e.useTranslation(),d=f=>f==="left"?u("device.direction.left","\uC88C"):u("device.direction.right","\uC6B0"),{sort:m,field:p}=By(),h=o.useMemo(()=>{if(!m)return e;const{key:f,asc:_}=m;return[...e].sort((g,k)=>{if(f==="worn"){const x=Number(k.worn)-Number(g.worn);return _?x:-x}return ur(qu(g,f),qu(k,f),_)})},[e,m]),{pageRows:b,pageSizeProps:v,paginationProps:C}=wy(h,m);return n.jsxs("div",{className:"dlp-side-table",children:[n.jsx(Po,{count:{value:e.length,unit:u("customers.device.unit","\uAC1C")},pageSize:v,pagination:C,actions:i&&n.jsx(fe,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:u("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),n.jsx(Ko,{loading:t,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:b.map((f,_)=>({id:f.id??`${f.side}-${_}`,row:f})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${r?" 80px":""}`,renderRow:({row:f})=>[{content:n.jsx("span",{className:"dlp-worn-check",onClick:_=>_.stopPropagation(),children:n.jsx(wu,{checked:f.worn,disabled:f.worn?!l:!s,ariaLabel:f.worn?u("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):u("customers.device.wear","\uCC29\uC6A9"),onChange:_=>{_?s?.(f):l?.(f)}})})},{content:n.jsx("span",{children:d(f.side)})},{content:f.device?n.jsx($t,{size:"small",variant:Hu(f.device),fill:"soft",label:Vu(f.device,u)}):n.jsx("span",{})},{content:n.jsx("span",{children:f.brand})},{content:n.jsx("span",{children:f.fitType||"-"})},{content:n.jsx("span",{children:f.productName||"-"})},{content:n.jsx("span",{className:"dlp-date",children:Yo(f.wornYear,f.wornMonth,f.wornDay,c.language)||"-"})},...r?[{content:n.jsx("span",{className:"dlp-row-actions",children:n.jsx(fe,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:u("common.delete","\uC0AD\uC81C"),onClick:_=>{_?.stopPropagation(),r(f)}})})}]:[]],onRowClick:({row:f})=>a(f),empty:u("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function Uu(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function t4(e,t){return new Date(e,t+1,0).getDate()}function n4(e,t){return new Date(e,t,1).getDay()}function a4({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r,today:s}){const{t:l,i18n:i}=_e.useTranslation(),u=o.useMemo(()=>l("calendar.dow",{returnObjects:!0}),[l]),c=lo(s),[d,m]=o.useState(()=>Number(c.slice(0,4))),[p,h]=o.useState(()=>Number(c.slice(5,7))-1),[b,v]=o.useState(null),C=o.useRef(null),f=o.useMemo(()=>{const y={};return e.forEach(w=>{y[w.date]||(y[w.date]=[]),y[w.date].push(w)}),y},[e]),_=o.useMemo(()=>{const y=t4(d,p),w=n4(d,p),B=[];for(let E=0;E<w;E++)B.push(null);for(let E=1;E<=y;E++)B.push(E);for(;B.length<35;)B.push(null);return B},[d,p]),g=o.useCallback(()=>{p===0?(m(y=>y-1),h(11)):h(y=>y-1)},[p]),k=o.useCallback(()=>{p===11?(m(y=>y+1),h(0)):h(y=>y+1)},[p]),x=y=>`${d}-${String(p+1).padStart(2,"0")}-${String(y).padStart(2,"0")}`,A=y=>x(y)===c;return n.jsxs("div",{children:[n.jsxs("div",{className:"calendar-nav",children:[n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:g,"aria-label":l("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(nt,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:so(l,i.language,d,p+1)}),n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:k,"aria-label":l("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(nt,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsxs("div",{className:"calendar-nav__legend",children:[n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),n.jsx("span",{className:"caption-1",children:l("calendar.legend.visited","\uBC29\uBB38")}),n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),n.jsx("span",{className:"caption-1",children:l("calendar.legend.scheduled","\uC608\uC57D")}),n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),n.jsx("span",{className:"caption-1",children:l("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),n.jsxs("div",{className:"calendar-grid",children:[u.map(y=>n.jsx("div",{className:"calendar-day-header body-3",children:y},y)),_.map((y,w)=>{if(y===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${w}`);const B=y,E=x(B),D=f[E]??[],N=zl(E,i.language),F=b===E;return n.jsxs("div",{className:`calendar-cell${A(B)?" today":""}${F?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?l("calendar.addOnDate",{date:E}):void 0,"aria-current":A(B)?"date":void 0,onClick:r?()=>r(E):void 0,onKeyDown:r?$=>{$.target===$.currentTarget&&($.key!=="Enter"&&$.key!==" "||($.preventDefault(),r(E)))}:void 0,onDragOver:a?$=>{$.preventDefault(),v(E)}:void 0,onDragLeave:a?$=>{$.currentTarget.contains($.relatedTarget)||v(null)}:void 0,onDrop:a?$=>{$.preventDefault(),C.current!=null&&(a(C.current,E),C.current=null),v(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:B}),D.length>0&&(()=>{const $=[{key:"visited",label:l("calendar.legend.visited","\uBC29\uBB38"),count:D.filter(M=>(M.status??"visited")==="visited").length},{key:"scheduled",label:l("calendar.legend.scheduled","\uC608\uC57D"),count:D.filter(M=>M.status==="scheduled").length},{key:"noVisit",label:l("calendar.legend.noVisit","\uBBF8\uBC29\uBB38"),count:D.filter(M=>M.status==="noVisit").length}].filter(M=>M.count>0),Y=$.length===1&&$[0].key==="visited"?l("calendar.visitCount",{count:D.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}):$.map(M=>l("calendar.statusCount",{label:M.label,count:M.count,defaultValue:"{{label}} {{count}}\uAC74"})).join(" \xB7 ");return n.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":`${N} ${Y}`,children:[$.map(M=>n.jsx("span",{className:`calendar-cell__visit-dot calendar-cell__visit-dot--${M.key}`,"aria-hidden":"true"},M.key)),D.length]})})(),n.jsx("div",{className:"calendar-cell__badges",children:D.map(($,Y)=>n.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${$.status==="noVisit"?" calendar-visit-badge--no-visit":$.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?M=>{C.current=$.id,M.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{C.current=null,v(null)}:void 0,onClick:t?M=>{M.stopPropagation(),t($)}:void 0,...Uu(t?()=>t($):void 0),"aria-label":[N,$.time?Ul($.time,l):null,$.customer,l($.status==="noVisit"?"calendar.legend.noVisit":$.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[$.time&&n.jsx("span",{className:"calendar-visit-badge__time body-3",children:Ul($.time,l)}),n.jsx("span",{className:"calendar-visit-badge__name body-3",children:$.customer}),$.status==="noVisit"&&n.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:l("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},$.id??Y))})]},B)})]})]})}const r4={page:"h3",pagePopup:"h4",popup:"h5"};function ga({type:e="page",title:t,headingLevel:a=2,icon:r,action:s,disc:l,children:i,inGrid:u=!1,className:c,style:d}){const m=r4[e],p=t||l||s||r,h=a?`h${a}`:"div";return n.jsxs("div",{className:Be("section",`section--${e}`,u&&"section--in-grid",c),style:d,children:[p&&n.jsxs("div",{className:"section__header",children:[n.jsxs("div",{className:"section__title-row",children:[r&&n.jsx(nt,{icon:r,label:typeof t=="string"?t:void 0,className:"section__icon"}),n.jsxs("div",{className:"section__title-group",children:[t&&n.jsx(h,{className:`section__title ${m}`,children:t}),l&&n.jsx("div",{className:"section__disc body-3",children:l})]})]}),s&&n.jsx("div",{className:"section__action",children:s})]}),i]})}let Zo=null,Gu=!1;function Ku(){if(Gu||typeof document>"u")return;Gu=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(Zo="keyboard")},!0);const e=()=>{Zo="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}Ku();function gr(){return Ku(),Zo==="keyboard"}const br=20;function o4(e){const{t}=_e.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:l,completedIds:i,selectedIds:u,onItemComplete:c,size:d,useDescriptionTooltip:m,onRemove:p,onMore:h,sectionType:b="page"}=e||{},[,v]=o.useState(0),C=typeof r<"u"?Array.isArray(r)?r:[]:[],f=C.length,[_,g]=o.useState(Math.min(f,br)),k=o.useMemo(()=>Array.isArray(s)?[...s,a?.label].filter(Boolean).join(" \xB7 "):[s||"",a?.label].filter(Boolean).join(" \xB7 "),[s,a?.label]);o.useEffect(()=>{g(Math.min(f,br))},[f]),Ri("speechear.data.updated",()=>v(w=>w+1));const x=o.useRef(null),A=o.useRef(null);function y(){const w=document.activeElement;A.current=gr()&&w&&w.closest?.(".training-block__more")?_:null,g(B=>Math.min(f,B+br))}return o.useEffect(()=>{const w=A.current;if(w==null)return;A.current=null;const B=document.activeElement;B&&B!==document.body||x.current?.querySelectorAll(".training-block-button")[w]?.focus()},[_]),n.jsxs(ga,{type:b,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[n.jsx("div",{className:"training-list",ref:x,children:(C||[]).slice(0,_).map((w,B)=>{const E=w;return n.jsx(Lo,{index:B,type:a,trainingData:E,depth:k,renderPopup:l,completedIds:i,selectedIds:u,size:d,useDescriptionTooltip:m,onRemove:typeof p=="function"&&u!=null&&E?.id!=null&&u.has(String(E.id))?()=>p(E):void 0,onComplete:typeof c=="function"&&E?.id!=null?()=>c(String(E.id)):void 0,onMore:typeof h=="function"?D=>h(E,D):void 0},E?.id!=null?`${a?.key||"t"}-${String(E.id)}`:`${a?.key||"t"}-${B}`)})}),f>br&&_<f&&n.jsx("div",{className:"training-block__more",children:n.jsx(fe,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:y,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function s4(e){let t=0;const a=r=>{Array.isArray(r)?r.forEach(a):r!=null&&r!==!1&&r!==!0&&r!==""&&t++};return a(e),t}function l4({gap:e=10,count:t,className:a,children:r}){const s=o.useRef(null),[l,i]=o.useState({width:0,card:0}),u=t??s4(r);o.useLayoutEffect(()=>{const h=s.current;if(!h)return;const b=()=>{const C=h.style.maxWidth;h.style.maxWidth="none";const f=h.clientWidth;h.style.maxWidth=C;const _=h.firstElementChild?.offsetWidth??0;i(g=>g.width===f&&g.card===_?g:{width:f,card:_})};if(b(),typeof ResizeObserver>"u")return;const v=new ResizeObserver(b);return v.observe(h),()=>v.disconnect()},[u,e]);const c=l.card>0?l.card:0,d=c>0?mf(l.width,c,e):0,m=d>0?hf(u,d):0,p={"--block-grid-gap":`${e}px`,...m>0?{"--block-grid-cols":m,"--block-grid-card":`${c}px`}:{}};return n.jsx("div",{ref:s,className:Be("training-block-grid",m>0&&"training-block-grid--measured",a),style:p,"data-cols":m>0?m:void 0,children:r})}function Xo(e){const t=o.useRef(null),a=o.useRef(e);a.current=e;const[r,s]=o.useState({url:e,loading:!!e,failed:!1}),l=r.url===e?r:{loading:!!e,failed:!1};o.useEffect(()=>{const c=t.current;s({url:e,failed:!1,loading:!!e&&!(c?.complete&&c.naturalWidth>0)})},[e]);const i=o.useCallback(()=>{a.current===e&&s({url:e,loading:!1,failed:!1})},[e]),u=o.useCallback(()=>{a.current===e&&s({url:e,loading:!1,failed:!0})},[e]);return{imgRef:t,loading:l.loading,failed:l.failed,hasImage:!!e&&!l.failed,onLoad:i,onError:u}}var i4='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_SpeechEar_mono" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><g id="symbol"><g opacity=".3"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>';const u4=i4,Jo=o.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:s=!1,onSelect:l,flipDelay:i=0,hideLabel:u=!1,hideAudio:c=!1,orderRank:d=null},m){const{t:p}=_e.useTranslation(),h=e.word||e.title||"",b=t||!h,v=e.audio??e.sound??e.audioKey,C=e.subLabel||e.pronunciation||"",f=e.colloquialLabel||"",[_,g]=o.useState({label:h,subLabel:C,colloquialLabel:f,homonum:e.homonum});h&&(_.label!==h||_.subLabel!==C||_.colloquialLabel!==f||!Object.is(_.homonum,e.homonum))&&g({label:h,subLabel:C,colloquialLabel:f,homonum:e.homonum});const k=o.useRef(null),x=Cn("(max-width: 767px)"),[A,y]=o.useState(!1),w=`${typeof v=="string"?v:v?.src??""}\0${h}`,[B,E]=o.useState({for:"",url:""}),D=B.for===w?B.url:"",N=Il(),F=e.textOnly??(!e.image&&!!_.label&&!!N&&N.entries.length>0&&!N.byWord.has(_.label)),$=F?"":la()?.(_.label,_.homonum)??e.image??"",{imgRef:Y,loading:M,hasImage:P,onLoad:T,onError:K}=Xo($);o.useEffect(()=>{let R=!1;return(async()=>{if(v){if(typeof v=="string"){if(v.startsWith("http")||v.includes("/")){E({for:w,url:v});return}}else if(typeof v=="object"&&!Array.isArray(v)){const Z=v.src;if(Z){E({for:w,url:Z});return}}}const L=Na();if(L&&h)try{const Z=await Promise.resolve(L(h));!R&&Z&&E({for:w,url:Z})}catch{}})(),()=>{R=!0}},[v,h,w]);const V=o.useRef(!0),O=o.useRef(null);o.useEffect(()=>(V.current=!0,()=>{V.current=!1,O.current&&mr(O.current),O.current=null;try{k.current?.pause()}catch{}k.current=null}),[]);const Q=o.useCallback(()=>new Promise(R=>{if(typeof window<"u"&&window.speechSynthesis&&h){y(!0),window.speechSynthesis.cancel();const L=new SpeechSynthesisUtterance(h);L.lang="ko-KR",L.onend=()=>{y(!1);try{a?.()}catch{}R()},L.onerror=()=>{y(!1),R()},window.speechSynthesis.speak(L)}else R()}),[h,a]),I=o.useCallback(R=>{const L=hr(R,Z=>{if(y(!1),Z)try{a?.()}catch{}});return k.current=L.el,L.done},[a]),q=o.useCallback(async()=>{if(t||!V.current)return;const R=()=>{O.current===R&&(O.current=null);try{k.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}y(!1)},L=pr(R);O.current=R;try{window.speechSynthesis?.cancel()}catch{}try{if(D&&(y(!0),await I(D)))return;const Z=Jr();if(Z&&h)try{const ue=await Promise.resolve(Z(h));if(!V.current||O.current!==R||ue&&(y(!0),await I(ue)))return}catch{}if(!V.current||O.current!==R)return;await Q()}finally{L(),O.current===R&&(O.current=null)}},[t,D,h,I,Q]);o.useImperativeHandle(m,()=>({play:()=>q()}),[q]);const z=R=>R.stopPropagation(),U=o.useCallback(R=>{if(R.stopPropagation(),!t){if(A){try{k.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}y(!1);return}q()}},[t,A,q]),S=Be("training-word-card",t?"training-word-card--disabled":"",b?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return n.jsx("div",{className:S,onClick:r&&!t?l:void 0,role:r?"button":void 0,"aria-pressed":r?s:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?R=>{R.target===R.currentTarget&&(R.key==="Enter"||R.key===" "||R.key==="Spacebar")&&(R.preventDefault(),l?.())}:void 0,children:n.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:b?"0ms":`${i}ms`},children:[n.jsxs("div",{className:"training-word-card__front",children:[s&&n.jsx("div",{className:"training-word-card__selected-badge",onClick:z,children:n.jsx($t,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?p("training.nthSelected",{n:d}):p("training.selected","\uC120\uD0DD\uB428")})}),n.jsx("div",{className:"training-word-card__image-wrap",children:F?n.jsx("div",{className:"training-word-card__text-face",children:_.label}):P?n.jsxs(n.Fragment,{children:[M&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:Y,className:"training-word-card__image",src:$,alt:_.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:M?0:1},onLoad:T,onError:K})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!u&&n.jsxs("div",{className:"training-word-card__body",children:[!F&&n.jsx("div",{className:"training-word-card__word",children:_.label}),_.subLabel&&n.jsxs("div",{className:"training-word-card__pronunciation",children:["[",_.subLabel,"]"]}),_.colloquialLabel&&n.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",_.colloquialLabel,"]"]})]}),!c&&n.jsx("div",{className:"training-word-card__bottom",onClick:r?z:void 0,children:n.jsx(fe,{htmlType:"button",size:x?40:48,type:x?"dot":"bar",icon:A?"pause":"play",label:x?void 0:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:A,onClick:U,disabled:t,ariaLabel:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),n.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:n.jsx("span",{className:"training-word-card__disabled-symbol",style:{"--disabled-symbol-src":`url("${u4}")`}})})]})})}),c4=260;function Wn(e){const{t}=_e.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:l,children:i,buttons:u,footer:c,footerStart:d,footerEnd:m,footerNote:p,footerNoteDivider:h=!1,footerClassName:b="",footerLayout:v="center",onClose:C,closeDisabled:f=!1,beforeClose:_,closeOnBackdrop:g=!0,className:k="",ariaLabel:x,useTitle:A=!0,inline:y=!1,size:w,layer:B="modal",height:E,fillBody:D=!1,resetScrollKey:N}=e||{},[F,$]=o.useState(!1),Y=o.useRef(!1),M=o.useRef(null),P=o.useId(),T=o.useRef(null);o.useEffect(()=>{},[y,a,x,k]),o.useEffect(()=>{N!==void 0&&T.current&&(T.current.scrollTop=0)},[N]);const[K,V]=o.useState(!1);o.useEffect(()=>{const W=T.current;if(!W)return;const te=()=>V(W.scrollHeight>W.clientHeight+1);if(te(),typeof ResizeObserver>"u")return;const H=new ResizeObserver(te);H.observe(W);const G=W.firstElementChild;return G&&H.observe(G),()=>H.disconnect()},[i,N]),o.useEffect(()=>{if(!y)return gu()},[y]);const O=o.useRef(typeof document>"u"?null:document.activeElement);o.useEffect(()=>{if(y)return;const W=O.current,te=M.current;return fo(te,W),te&&!te.contains(document.activeElement)&&(te.querySelector(_n)??te).focus(),()=>{const H=document.activeElement;(!H||H===document.body||te&&te.contains(H))&&go(W)?.focus?.()}},[y]),ho(M,!y);const Q=o.useRef(!0),I=bo(),q=o.useRef(null);o.useEffect(()=>(Q.current=!0,()=>{Q.current=!1,q.current&&(clearTimeout(q.current),q.current=null)}),[]);const z=o.useCallback(()=>{!Q.current||!Y.current||(Y.current=!1,$(!1))},[]),U=o.useCallback((W,te=!1)=>{if(te&&!Q.current||Y.current)return;Y.current=!0,$(!0);const H=setTimeout(()=>{q.current===H&&(q.current=null);let G;try{G=W?W():void 0}catch{z();return}G&&typeof G.then=="function"&&G.then(()=>{setTimeout(z,120)},z)},I?0:c4);te&&(q.current=H)},[z,I]),S=o.useCallback(()=>{f||_&&_()===!1||U(C,!0)},[U,C,f,_]),R=o.useRef(S);o.useEffect(()=>{R.current=S});const L=!y&&!!C;o.useEffect(()=>{if(L)return Gn(()=>R.current())},[L]);const Z=L&&g,ue=o.useRef(!1),oe=W=>{ue.current=W.target===W.currentTarget},le=W=>{const te=ue.current;ue.current=!1,te&&W.target===W.currentTarget&&S()},re=n.jsx("div",{className:`popup ${y?"popup--inline":""} ${B==="belowPagePopup"?"popup--below-page-popup":""} ${F?"popup--closing":""} ${k}`,onPointerDown:Z?oe:void 0,onClick:Z?le:void 0,onMouseDown:y?void 0:W=>{W.target===W.currentTarget&&W.preventDefault()},children:n.jsxs("div",{ref:M,className:`popup-panel${w?` popup-panel--${w}`:""}${E!=null?" popup-panel--has-height":""}${D?" popup-panel--fill-body":""}`,style:E!=null?{"--popup-height":typeof E=="number"?`${E}px`:E}:void 0,tabIndex:-1,role:y?void 0:"dialog","aria-modal":y?void 0:!0,"aria-labelledby":!y&&A&&a?P:void 0,"aria-label":!y&&!(A&&a)?x??(typeof a=="string"?a:void 0):void 0,children:[!A&&(s||C)?n.jsxs("div",{className:"popup-close-float",children:[s,C&&n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:S,disabled:f,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||s||C?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[a?n.jsx("h2",{id:P,className:"popup-title popup-title--left h2",children:a}):n.jsx("span",{id:P,className:"popup-title popup-title--left h2"}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),l&&n.jsx("div",{className:"popup-header-segment",children:n.jsx(wn,{size:40,ariaLabel:l.ariaLabel,options:l.options.map(W=>({key:W.key,label:W.label,disabled:W.disabled})),value:l.value,onChange:l.onChange})}),n.jsxs("div",{className:"popup-header-actions",children:[s,C&&n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:S,disabled:f,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:T,tabIndex:K?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:U,closeWithAnimation:S}):i})}),p!=null&&p!==!1&&n.jsx("div",{className:`popup-footer-note caption-1${h?" popup-footer-note--divider":""}`,role:"note",children:p}),d||m?n.jsxs("div",{className:`popup-footer popup-footer--bar${b?` ${b}`:""}`,children:[n.jsx("div",{className:"popup-footer__start",children:typeof d=="function"?d({animateThen:U,closeWithAnimation:S}):d}),n.jsx("div",{className:"popup-footer__end",children:typeof m=="function"?m({animateThen:U,closeWithAnimation:S}):m})]}):u?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${v!=="center"?` popup-footer--${v}`:""}`,children:u.map((W,te)=>n.jsx(fe,{htmlType:"button",size:48,variant:W.variant??"default",label:W.label,disabled:W.disabled,onClick:()=>W.onClick?.({animateThen:U,closeWithAnimation:S})},te))}):c?n.jsx("div",{className:`popup-footer${v!=="center"?` popup-footer--${v}`:""}${b?` ${b}`:""}`,children:typeof c=="function"?c({animateThen:U,closeWithAnimation:S}):c}):null]})});return y||typeof document>"u"?re:cn.createPortal(re,document.body)}function yr(e){return String(e)}const vr=["o","triangle","x"];function Yu(e,t){return e===t?null:t}const Zu={o:"circle",triangle:"triangle",x:"x"},Xu={o:"main",triangle:"warn",x:"danger"};function d4(e){let t=0,a=0,r=0;for(const l of Object.values(e))l==="o"?t++:l==="triangle"?a++:l==="x"&&r++;const s=t+a+r;return{marked:s,o:t,triangle:a,x:r,rate:s===0?null:(t+a*.5)/s}}function Qo(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function Ju(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function p4(e,t){return!t&&e>0}const Jn={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 m4(e="landscape"){Mt("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:t,printW:a,printH:r}=Jn[e],s=document.createElement("style");s.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(s);const l=()=>{document.head.removeChild(s),window.removeEventListener("afterprint",l)};window.addEventListener("afterprint",l),window.print()}function Qu(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let s=0;s<e.length;s+=a)r.push(e.slice(s,s+a));return r}const h4={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},13:{cols:5,rows:3},14:{cols:5,rows:3},15:{cols:5,rows:3},16:{cols:6,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},13:{cols:4,rows:4},14:{cols:4,rows:4},15:{cols:4,rows:4},16:{cols:4,rows:4}}};function ec(e,t){const a=h4[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),s=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let l,i;return e==="landscape"?(i=s,l=Math.ceil(r/i)):(l=s,i=Math.ceil(r/l)),(e==="landscape"?l<i:i<l)&&([l,i]=[i,l]),{cols:l,rows:i}}function C4(e,t){const a=ec(e==="landscape"?"portrait":"landscape",t),r=Math.max(1,Math.ceil(t));if(r<=1)return a;const s=Jn[e],l=e==="landscape"?s.width/2:s.width,i=e==="landscape"?s.height:s.height/2,u=(h,b)=>Math.min(l/h/oc,i/b/sc),c=Math.max(0,a.cols*a.rows-r),d=u(a.cols,a.rows);let m=a,p=d;for(let h=1;h<=r;h++){const b=Math.ceil(r/h);if(h*b-r>c)continue;const v=u(h,b);v>p&&(m={cols:h,rows:b},p=v)}return p>d*1.05?m:a}const f4={show:"word-table-block__content--cut-show",dashed:"",corner:"word-table-block__content--cut-corner",hide:""},tc={\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"},nc={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"},es={\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"},ts={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function ac(e){return Object.fromEntries(Object.entries(tc).map(([t,a])=>[t,es[t]?e(`wordTable.pos.${es[t]}`,{defaultValue:a}):a]))}function rc(e){return Object.fromEntries(Object.entries(nc).map(([t,a])=>[t,ts[t]?e(`wordSearch.filter.type.${ts[t]}`,{defaultValue:a}):a]))}const g4={pos:es,wordType:ts};function ns(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function as(e,t,a,r){if(r!=="dashed")return{};const s=e%t,l=Math.floor(e/t),i=s<t-1,u=l<a-1;if(!i&&!u)return{};const c="#ddd",d=b=>`repeating-linear-gradient(to ${b}, ${c} 0, ${c} 5px, transparent 5px, transparent 10px)`,m=[],p=[],h=[];return i&&(m.push(d("bottom")),p.push("1px 100%"),h.push("right center")),u&&(m.push(d("right")),p.push("100% 1px"),h.push("center bottom")),{backgroundImage:m.join(", "),backgroundSize:p.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const oc=280,b4=240,y4=280,sc=400,v4=120,x4=280;function lc(e,t){const a=o.useRef(null),[r,s]=o.useState(1),[l,i]=o.useState(0),u=o.useCallback((c,d)=>{if(!(c>0))return;const m=c/e,p=t&&d>0?d/t:1/0,h=Math.min(1,m,p);s(h),i(Math.max(0,(c-e*h)/2))},[e,t]);return o.useEffect(()=>{const c=a.current;if(!c)return;const d=t?c.parentElement??c:c;if(u(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const m=new ResizeObserver(([p])=>u(p.contentRect.width,p.contentRect.height));return m.observe(d),()=>m.disconnect()},[u,t]),{scalerRef:a,scale:r,offset:l}}const _4=24,w4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},B4=400,ic=8;function rs({label:e,subLabel:t,colloquialLabel:a,captionLabel:r,homonum:s,showWord:l=!0,showImage:i=!0,showPronunciation:u=!0,showColloquial:c=!0,buttonSize:d=40,wordInfo:m,outerScale:p=1}){const{t:h}=_e.useTranslation(),b=o.useRef(null),v=o.useRef(null),C=o.useRef(null),[f,_]=o.useState(1),[g,k]=o.useState(!1),[x,A]=o.useState({for:"",url:""}),[y,w]=o.useState(null),B=t&&t.length>0?t:IC()?.(e,s)??"",E=la()?.(e,s)??"",{imgRef:D,loading:N,failed:F,onLoad:$,onError:Y}=Xo(E),M=o.useCallback(()=>w(v.current?.getBoundingClientRect()??null),[]),P=o.useCallback(()=>w(null),[]),T=vo(!!y,L=>{L?M():P()},v),K=o.useMemo(()=>{if(!m)return null;const L=[];return m.grade&&L.push(h("wordTable.info.grade",{n:m.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),m.syllables&&L.push(h("wordTable.info.syllables",{n:m.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),m.pos&&L.push(h("wordTable.info.pos",{v:ns(m.pos,ac(h)),defaultValue:"\uD488\uC0AC: {{v}}"})),m.wordType&&L.push(h("wordTable.info.wordType",{v:ns(m.wordType,rc(h)),defaultValue:"\uC720\uD615: {{v}}"})),L.length?L:null},[m,h]),V=B||e,O=x.for===V?x.url:"";o.useEffect(()=>{const L=Na(),Z=B||e;if(!L||!Z)return;let ue=!1;return Promise.resolve(L(Z)).then(oe=>{!ue&&oe&&A({for:Z,url:oe})}),()=>{ue=!0}},[B,e]);const Q=o.useRef(null),I=o.useRef(null);o.useEffect(()=>()=>{C.current?.pause(),I.current?.()},[]);const q=o.useCallback(L=>{if(L.stopPropagation(),g){Q.current?.();return}if(!O)return;k(!0);const Z=hr(O,()=>{k(!1),I.current?.()});C.current=Z.el,Q.current=Z.stop,I.current=pr(Z.stop)},[g,O]),z=i&&!!E&&!F,U=z&&l?oc:z?y4:b4,S=z&&l?sc:z?x4:v4;o.useEffect(()=>{const L=b.current;if(!L||typeof ResizeObserver>"u")return;const Z=new ResizeObserver(([ue])=>{const{width:oe,height:le}=ue.contentRect;_(Math.min(oe/U,le/S))});return Z.observe(L),()=>Z.disconnect()},[U,S]);const R=d*p<_4;return n.jsxs("div",{ref:b,className:Be("word-table-cell",R&&"word-table-cell--tap-too-small",z?"word-table-cell--with-image":""),"data-ref-w":U,"data-ref-h":S,children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${f})`},children:[z&&n.jsxs("div",{className:"word-table-cell__image-wrap",children:[N&&n.jsx("div",{className:"word-table-cell__spinner"}),n.jsx("img",{ref:D,className:"word-table-cell__image",src:E,alt:e,draggable:!1,style:{opacity:N?0:1},onLoad:$,onError:Y})]}),l&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),r&&n.jsx("span",{className:"word-table-cell__caption h5",children:r}),u&&B&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",B,"]"]}),c&&a&&n.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),n.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":O,children:[n.jsx("span",{"data-play-state":"play",style:{display:g?"none":void 0},children:n.jsx(fe,{htmlType:"button",size:d,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:h("common.play","\uC7AC\uC0DD"),ariaLabel:e?h("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):h("common.play","\uC7AC\uC0DD"),onClick:q})}),n.jsx("span",{"data-play-state":"pause",style:{display:g?void 0:"none"},children:n.jsx(fe,{htmlType:"button",size:d,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:h("common.pause","\uBA48\uCDA4"),ariaLabel:e?h("common.pauseFor",{name:e,defaultValue:`${e} \uBA48\uCDA4`}):h("common.pause","\uBA48\uCDA4"),onClick:q})})]}),m&&n.jsxs("div",{ref:v,className:"word-table-cell__info-button",onPointerEnter:L=>{da(L)||M()},onPointerLeave:L=>{da(L)||P()},onFocus:()=>{pa()||M()},onBlur:P,children:[n.jsx(fe,{htmlType:"button",size:d,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:h("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:L=>{L.stopPropagation(),T.touchPress()}}),y&&K&&n.jsx(Kn,{anchorRect:y,items:K,showIndex:!1})]})]})}function ba({title:e,titleIcon:t,disc:a,className:r,orientation:s="landscape",contentTypes:l=["image","word","standardPron"],baseItem:i,baseContentTypes:u,cutLine:c="show",showOutline:d=!0,showDivLine:m=!0,items:p,editCells:h,count:b,activeCell:v=null,onActivateCell:C,onRemoveCell:f,onRemoveItem:_,onReorder:g,renderCellAction:k,showFillerAdd:x=!1,contentRef:A,buttonSize:y=40,brand:w,code:B,pageNumber:E,pageNumberPosition:D="right",fitHeight:N=!1,scoring:F=!1,marks:$,onMarkClick:Y,scoreIndexOffset:M=0}){const P=o.useCallback((we,Re)=>{Y?.(M+we,Re)},[Y,M]),T=(we,Re)=>{const Se=$?.[yr(M+we)]??null;return n.jsx("div",{className:Be("word-table-cell__score",Se?"word-table-cell__score--marked":""),style:st>1?{transform:`translateX(-50%) scale(${st})`,transformOrigin:"bottom center"}:void 0,children:vr.map(Ve=>n.jsx("span",{className:Be("word-table-cell__score-slot",Se===Ve?"word-table-cell__score-slot--on":""),children:n.jsx(fe,{htmlType:"button",size:y,type:"dot",shape:"pill",icon:Zu[Ve],variant:Se===Ve?Xu[Ve]:"default",selected:Se===Ve,useBorder:!1,...et?{}:{tabIndex:-1,role:"img"},showTooltipInfo:K(`wordTable.scoring.markName.${Ve}`,{defaultValue:Ve}),ariaLabel:K(`wordTable.scoring.${Ve}`,{word:Re,defaultValue:`${Re} ${Ve}`}),onClick:et?qe=>{qe.stopPropagation(),P(we,Ve)}:void 0})},Ve))})},{t:K}=_e.useTranslation(),V=h!==void 0,O=e!=null||!!t||!!a,Q=Cn("(max-width: 767px)"),I=o.useRef(null),[q,z]=o.useState(null),U=p?.length??0,[S,R]=o.useState(null),[L,Z]=o.useState(""),ue=o.useRef(null),oe=o.useRef(null),le=o.useRef(null),re=o.useRef(null),W=o.useCallback(we=>{oe.current=we,typeof A=="function"?A(we):A&&(A.current=we)},[A]),te=o.useCallback((we,Re)=>{ue.current=Re,g?.(we,Re),Z(K("wordTable.reorder.moved",{n:Re+1,total:U,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[g,K,U]);o.useEffect(()=>{const we=ue.current;we!=null&&(ue.current=null,oe.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler):not(.word-table-block__card--base)")?.[we]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{re.current?.()},[]);const H=o.useCallback((we,Re)=>{if(!g||!we.altKey||we.ctrlKey||we.metaKey)return;const Se=we.key==="ArrowRight";if(!Se&&we.key!=="ArrowLeft")return;we.preventDefault();const Ve=Re+(Se?1:-1);Ve<0||Ve>=U||te(Re,Ve)},[g,U,te]),G=o.useCallback((we,Re)=>{if(!g||we.pointerType==="mouse")return;const Se=we.target.closest?.("button");if(Se&&!Se.closest(".word-table-block__card-handle"))return;re.current?.();const Ve={x:we.clientX,y:we.clientY};let qe=!1;const Bt=Ke=>{qe&&Ke.cancelable&&Ke.preventDefault()};let mt=null,ut=null;const St=()=>{const Ke=ut;if(!Ke)return;const yt=document.elementFromPoint?.(Ke.x,Ke.y)?.closest?.("[data-wordtable-cell]"),Qe=yt?Number(yt.dataset.wordtableCell):NaN,xt=Number.isInteger(Qe)?Qe:null;le.current=xt,z(ae=>ae===xt?ae:xt)},Ue=Ke=>{if(!qe){(Math.abs(Ke.clientX-Ve.x)>ic||Math.abs(Ke.clientY-Ve.y)>ic)&&Me();return}if(ut={x:Ke.clientX,y:Ke.clientY},typeof requestAnimationFrame>"u"){St();return}mt===null&&(mt=requestAnimationFrame(()=>{mt=null,St()}))},ht=()=>{mt!==null&&(cancelAnimationFrame(mt),mt=null,St());const Ke=le.current,yt=qe;Me(),yt&&Ke!=null&&Ke!==Re&&te(Re,Ke)},jt=setTimeout(()=>{qe=!0,R(Re),le.current=Re,z(Re),window.addEventListener("touchmove",Bt,{passive:!1})},B4);function Me(){clearTimeout(jt),window.removeEventListener("pointermove",Ue),window.removeEventListener("pointerup",ht),window.removeEventListener("pointercancel",ht),window.removeEventListener("touchmove",Bt),qe=!1,mt!==null&&(cancelAnimationFrame(mt),mt=null),le.current=null,re.current=null,R(null),z(null)}re.current=Me,window.addEventListener("pointermove",Ue),window.addEventListener("pointerup",ht),window.addEventListener("pointercancel",ht)},[g,te]),{width:pe,height:Ne}=Jn[s],ye=typeof N=="number"?N:N&&typeof N=="object"?Q?N.narrow:N.wide:null,{scalerRef:me,scale:se,offset:ge}=lc(pe,N?Ne:void 0),Ce=V?h?.length??0:p?.length??0,de=Math.max(b??Ce,1),Le=!V&&!!i,ze=C4(s,de),Te=ec(s,de),Ge=Le?ze.cols:Te.cols,Ie=Le?ze.rows:Te.rows,ct=Le&&s==="landscape"?ze.cols*2:Ge,at=Le&&s==="portrait"?ze.rows*2:Ie,rt=we=>({word:we.length===0||we.includes("word"),image:we.length===0||we.includes("image"),pron:we.length===0||we.includes("standardPron"),colloq:we.length===0||we.includes("colloquialPron")}),lt=rt(l),Ee=rt(u??l),Ye=V?(h??[]).some(we=>we!==null&&we.length>1):(p??[]).some(we=>(we.words??[]).length>1),ke=!!w?.show,He=!!w?.show&&w?.top!==!1,Je=!!w?.show&&w?.bottom!==!1,dt=w?.copyright??"\xA9 IHAB, Inc. All rights reserved.",kt=Be("word-table-block__content",f4[c],d&&"word-table-block__content--outline",m&&Ye&&"word-table-block__content--div-line",!ke&&E&&D!=="none"&&"word-table-block__content--page-number",He&&"word-table-block__content--brand-top",Je&&"word-table-block__content--brand-bottom"),At={transform:`scale(${1/se})`,transformOrigin:"center center"},Pt=y*vr.length+4*(vr.length-1),et=!!Y,st=et?Math.max(1,Math.min(1/se,pe/ct/Pt)):1,Dt=n.jsxs("div",{ref:me,className:"word-table__scaler",style:{height:Ne*se},children:[n.jsx("div",{className:Be("word-table",F&&!et&&"word-table--score-readonly",!O&&r),style:{width:pe,height:Ne,transform:`scale(${se})`,transformOrigin:"top left",marginLeft:ge},children:n.jsxs("div",{ref:W,className:kt,style:{gridTemplateColumns:`repeat(${ct}, 1fr)`,gridTemplateRows:`repeat(${at}, 1fr)`},children:[V?n.jsx(n.Fragment,{children:(h??[]).map((we,Re)=>n.jsx("div",{className:Be("word-table-block__edit-cell",we?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",v===Re?"word-table-block__edit-cell--active":""),style:as(Re,ct,at,c),children:we?n.jsxs(n.Fragment,{children:[we.map((Se,Ve)=>n.jsxs(o.Fragment,{children:[Ve>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(rs,{outerScale:se,label:Se.word,subLabel:Se.pronunciation,colloquialLabel:Se.colloquialPronunciation,homonum:Se.homonum,showWord:lt.word,showImage:lt.image,showPronunciation:lt.pron,showColloquial:lt.colloq,buttonSize:y})]},Ve)),F&&T(Re,we.map(Se=>Se.word).join(" / ")),f&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(fe,{htmlType:"button",size:y,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:we.length>1?K("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):K("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:we.length>1?K("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):K("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(Re)})})]}):C&&n.jsx("div",{style:At,children:n.jsx(fe,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:K("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C(Re)})})},Re))}):n.jsxs(n.Fragment,{children:[Le&&i&&n.jsx("div",{className:"word-table-block__card word-table-block__card--base",style:{gridColumn:`1 / span ${ze.cols}`,gridRow:`1 / span ${ze.rows}`,...as(0,s==="landscape"?2:1,s==="landscape"?1:2,c)},children:(i.words??[]).map((we,Re)=>n.jsxs(o.Fragment,{children:[Re>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(rs,{outerScale:se,label:we.label,subLabel:we.subLabel,colloquialLabel:we.colloquialLabel,captionLabel:we.captionLabel,homonum:we.homonum,showWord:Ee.word,showImage:Ee.image,showPronunciation:Ee.pron,showColloquial:Ee.colloq,buttonSize:y,wordInfo:we.grade||we.syllables!=null||we.pos||we.wordType?{grade:we.grade,syllables:we.syllables,pos:we.pos,wordType:we.wordType}:void 0})]},Re))}),(p??[]).map((we,Re)=>n.jsxs("div",{"data-wordtable-cell":g?Re:void 0,className:`word-table-block__card${g?" word-table-block__card--draggable":""}${q===Re?" word-table-block__card--drag-over":""}${S===Re?" word-table-block__card--dragging":""}`,style:as(Re,Ge,Ie,c),draggable:!!g,onPointerDown:g?Se=>G(Se,Re):void 0,onKeyDown:g?Se=>H(Se,Re):void 0,onDragStart:g?()=>{I.current=Re}:void 0,onDragOver:g?Se=>{Se.preventDefault(),z(Re)}:void 0,onDragLeave:g?()=>z(null):void 0,onDrop:g?Se=>{Se.preventDefault(),I.current!==null&&I.current!==Re&&g(I.current,Re),I.current=null,z(null)}:void 0,onDragEnd:g?()=>{I.current=null,z(null)}:void 0,children:[(we.words??[]).map((Se,Ve)=>n.jsxs(o.Fragment,{children:[Ve>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(rs,{outerScale:se,label:Se.label,subLabel:Se.subLabel,colloquialLabel:Se.colloquialLabel,captionLabel:Se.captionLabel,homonum:Se.homonum,showWord:lt.word,showImage:lt.image,showPronunciation:lt.pron,showColloquial:lt.colloq,buttonSize:y,wordInfo:Se.grade||Se.syllables!=null||Se.pos||Se.wordType?{grade:Se.grade,syllables:Se.syllables,pos:Se.pos,wordType:Se.wordType}:void 0})]},Ve)),F&&T(Re,(we.words??[]).map(Se=>Se.label).join(" / ")),g&&n.jsx("div",{className:"word-table-block__card-handle",children:n.jsx(fe,{htmlType:"button",size:y,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:K("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:K("wordTable.reorder.handle",{word:(we.words??[]).map(Se=>Se.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),(k||_)&&n.jsxs("div",{className:"word-table-block__card-actions",children:[k?.(Re,we),_&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(fe,{htmlType:"button",size:y,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(we.words??[]).length>1?K("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):K("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(we.words??[]).length>1?K("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):K("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>_(we.id)})})]})]},Re)),Array.from({length:Math.max(0,Ge*Ie-(p?.length??0))}).map((we,Re)=>{const Se=(p?.length??0)+Re<de;return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:x&&C&&Se&&n.jsx("div",{style:At,children:n.jsx(fe,{htmlType:"button",size:y,type:"bar",icon:"plus",label:K("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C((p?.length??0)+Re)})})},`filler-${Re}`)})]}),He&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--top",children:[n.jsx("img",{className:"word-table__brand-logo",src:w?.topLogo?.src??dr,alt:w?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const we=[w?.title&&n.jsx("span",{className:"word-table__paper-title",children:w.title},"t"),w?.owner&&n.jsx("span",{className:"word-table__owner",children:w.owner},"o"),B&&n.jsx("span",{className:"word-table__code",children:B},"c")].filter(Boolean);return we.length===0?null:n.jsx("span",{className:"word-table__ident",children:we.map((Re,Se)=>n.jsxs(o.Fragment,{children:[Se>0&&n.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),Re]},Se))})})()]})}),Je&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[n.jsxs("span",{className:"word-table__brand-by",children:[w?.bottomLogo?n.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:w.bottomLogo.src,alt:w.bottomLogo.alt}):n.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),n.jsx("span",{className:"word-table__copyright",children:dt})]}),n.jsxs("span",{className:"word-table__band-end",children:[w?.link&&n.jsx("span",{className:"word-table__link",children:w.link}),E&&D!=="none"&&n.jsx("span",{className:"word-table__page-count",children:K("wordTable.filter.pageIndicator",{current:E.current,total:E.total})})]})]})}),!ke&&E&&D!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${D}`,children:K("wordTable.filter.pageIndicator",{current:E.current,total:E.total})})]})}),g&&n.jsx("span",{role:"status",style:w4,children:L})]}),vt=ye==null?Dt:n.jsx("div",{className:"word-table__frame",style:{height:ye},children:Dt});return O?n.jsx(ga,{type:"page",icon:t,title:e,disc:a,className:Be("word-table-block",r),children:vt}):vt}function k4(e,t,a){const r=[];for(const s of e??[]){if(s.type==="note"||s.type==="input")continue;const l=s.displayLabel??s.label,i=A4(s,t?.[s.label],a);i!==null&&r.push(`${l} ${i}`)}return r.join(" \xB7 ")}function A4(e,t,a){const r=(Array.isArray(t)?t:t===void 0?[]:[t]).filter(s=>s!==xn);return r.length===0?e.allOption?e.allLabel??a:null:r.map(s=>N4(e,s)).join(", ")}function N4(e,t){const a=[...e.items??[],...(e.groups??[]).flat()];for(const r of a)if(r!=null){if(typeof r=="string"){if(r===t)return r;continue}if(r.value===t)return r.displayLabel??r.labels?.join(" ")??r.value}return t}function Ln({title:e,titleLevel:t=2,headerAction:a,headerSummary:r,collapsible:s=!1,defaultCollapsed:l=!1,collapsed:i,onCollapsedChange:u,footer:c,sections:d,selected:m={},onSelect:p,align:h,sectionAlign:b,className:v}){const C=(h??(b==="vertical"?"newline":"inline"))==="inline",{t:f}=_e.useTranslation(),[_,g]=o.useState(l),k=i??_,x=()=>{const N=!k;g(N),u?.(N)},A=N=>{if(!s)return;const F=N.target;!F||typeof F.closest!="function"||F.closest(".filter-panel__collapse-toggle")||F.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||x()},y=o.useMemo(()=>r!==void 0||!k?"":k4(d,m,f("common.all","\uC804\uCCB4")),[r,k,d,m,f]),w=r??(y?n.jsx("span",{className:"filter-panel__header-summary body-3",children:y}):null),B=e||a||r||s,E=o.useId(),D=t?`h${t}`:"span";return n.jsxs("div",{className:Be("filter-panel",s?"filter-panel--collapsible":"",k?"filter-panel--collapsed":"",v),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?E:void 0,children:[B&&n.jsxs("div",{className:"filter-panel__header",onClick:s?A:void 0,children:[n.jsx("div",{className:"filter-panel__title-row",children:e&&n.jsx(D,{id:E,className:"filter-panel__title h4",children:e})}),n.jsxs("div",{className:"filter-panel__header-actions",children:[k?w:a,s&&n.jsx(fe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:k?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:k?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),showTooltipInfo:k?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),"aria-expanded":!k,onClick:x})]})]}),!k&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Be("filter-panel__sections",C?"filter-panel__sections--row":""),children:d.map(N=>{const F=m[N.label],$=F===void 0||(Array.isArray(F)?F.length===0:!1),Y=(N.items??[]).filter(P=>P!=null);N.allOption&&Y.some(P=>(typeof P=="string"?P:P.value)===xn)&&Mt(`filter-panel-all-value:${N.label}`,`[FilterPanel] '${N.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${xn}' \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 M=P=>{const T=typeof P=="string"?P:P.value,K=typeof P!="string"&&!!P.disabled,V=typeof P!="string"?P.labels:void 0,O=typeof P!="string"?P.displayLabel:void 0,Q=typeof P!="string"?P.tooltip:void 0,I=typeof P!="string"?P.descriptionTooltip:void 0,q=typeof P!="string"?P.shape:void 0,z=Array.isArray(F)?F.includes(T):F===T;return n.jsx(fe,{htmlType:"button",size:"keyboard",label:V??O??T,type:N.itemType??(V?"bar":T.length===1?"dot":void 0),selected:z,disabled:K,shape:q,showTooltipInfo:!!Q,tooltipInfoText:Q,tooltipDescription:I,onClick:()=>p?.(T,N.label)},T)};return n.jsxs(o.Fragment,{children:[N.groupLabel&&n.jsxs("div",{className:"filter-panel__group-label-row",children:[n.jsx("div",{className:"filter-panel__group-label body-2",children:N.groupLabel}),N.groupAction]}),n.jsxs("div",{className:Be("filter-panel__section",N.layout==="row"?"filter-panel__section--row":"",N.block?"filter-panel__section--block":""),children:[n.jsxs("div",{className:"filter-panel__section-label-row",children:[n.jsx("span",{className:"filter-panel__section-label body-3",children:N.displayLabel??N.label}),N.labelAction??(N.labelInfo?n.jsx(Ha,{...N.labelInfo}):null)]}),N.type==="note"?n.jsx("div",{className:"filter-panel__note body-3",children:N.content}):N.type==="input"?n.jsx(Xn,{className:"filter-panel__textfield",placeholder:N.placeholder,ariaLabel:N.displayLabel??N.label,value:m[N.label]??"",onChange:P=>p?.(P,N.label),error:N.error}):!N.multiple&&N.display==="segmented"?n.jsx(wn,{ariaLabel:N.displayLabel??N.label,options:[...N.allOption?[{key:xn,label:N.allLabel??f("common.all","\uC804\uCCB4"),disabled:N.allOptionDisabled}]:[],...Y.map(P=>{const T=typeof P=="string"?P:P.value,K=typeof P!="string"?P.displayLabel:void 0,V=typeof P!="string"?P.disabled:void 0;return{key:T,label:K??T,disabled:V}})],value:$&&N.allOption?xn:m[N.label]??"",onChange:P=>p?.(P,N.label),size:32}):!N.multiple&&N.display==="dropdown"?n.jsx(fn,{className:"filter-panel__dropdown",ariaLabel:typeof N.label=="string"?N.label:void 0,size:40,options:[...N.allOption?[{value:xn,label:N.allLabel??f("common.all","\uC804\uCCB4"),disabled:N.allOptionDisabled}]:[],...Y.map(P=>{const T=typeof P=="string"?P:P.value,K=typeof P!="string"?P.displayLabel:void 0,V=typeof P!="string"?P.disabled:void 0;return{value:T,label:K??T,disabled:V}})],value:$&&N.allOption?xn:m[N.label],onChange:P=>p?.(P,N.label)}):n.jsxs("div",{className:N.groups?"filter-panel__item-groups":"filter-panel__items",children:[N.allOption&&!N.groups&&n.jsx(fe,{htmlType:"button",size:"keyboard",label:N.allLabel??f("common.all","\uC804\uCCB4"),selected:$,disabled:N.allOptionDisabled,onClick:()=>p?.(xn,N.label)}),N.groups?N.groups.map((P,T)=>n.jsxs("div",{className:"filter-panel__item-group",children:[T===0&&N.allOption&&n.jsx(fe,{htmlType:"button",size:"keyboard",label:N.allLabel??f("common.all","\uC804\uCCB4"),selected:$,disabled:N.allOptionDisabled,onClick:()=>p?.(xn,N.label)}),P.filter(K=>K!=null).map(M)]},T)):Y.map(M)]})]})]},N.label)})}),c!=null&&c!==!1&&n.jsx("div",{className:"filter-panel__footer body-3",children:c})]})]})}const E4=[1,2,3,4,5,6,7,8,9,10,11,12],uc=[8,6,4,2,1],hn="show",kn="hide";function cc(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"image",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"word",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"standardPron",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"colloquialPron",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function dc(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"landscape",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"portrait",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function pc(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:hn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:kn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function mc(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),items:[{value:hn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:kn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function hc(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),items:[{value:hn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:kn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Cc(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:hn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"dashed",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"corner",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:kn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function fc(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:hn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:kn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function gc(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...uc.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function bc(e,t){return e===t||!uc.includes(e)?Number.POSITIVE_INFINITY:e}function D4(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"left",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"center",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"right",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:kn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function yc(e){return e==="left"||e==="center"||e==="right"?e:"none"}function vc(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation,[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?hn:kn,[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?hn:kn,...t.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:t.showTopInfo?hn:kn}:{},...t.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:t.showBottomInfo?hn:kn}:{}}}function xc(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===xn?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(s=>s.includes(t)?s.filter(l=>l!==t):[...s,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="landscape"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t===hn),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t===hn),!0):a===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(t===hn),!0):a===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(t===hn),!0):!1}function S4(e){return"sections"in e}function os(e){const{t}=_e.useTranslation(),{title:a,className:r,collapsible:s,defaultCollapsed:l,collapsed:i,onCollapsedChange:u,headerSummary:c}=e,d={collapsible:s,defaultCollapsed:l,collapsed:i,onCollapsedChange:u,headerSummary:c};if(S4(e))return n.jsx(Ln,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...d,align:"inline"});const{hasImage:m,hasColloquial:p,contentTypes:h,orientation:b,showOutline:v,cutLine:C,showDivLine:f,setters:_,showCutLine:g=!1,showDivLine2:k=!1,middleSections:x=[],extraSelected:A={},onExtraSelect:y,showPaperBands:w=!1,showTopInfo:B=!0,showBottomInfo:E=!0}=e,D=[cc(t,{hasImage:m,hasColloquial:p}),dc(t),...x,pc(t),...g?[Cc(t)]:[],...k?[fc(t)]:[],...w?[mc(t),hc(t)]:[]],N={...vc(t,{contentTypes:h,orientation:b,showOutline:v,cutLine:C,showDivLine:f,showTopInfo:B,showBottomInfo:E}),...A},F=($,Y)=>{xc(t,$,Y,_)||y?.($,Y)};return n.jsx(Ln,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:D,selected:N,onSelect:F,...d,sectionAlign:"horizontal"})}function ss(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function j4(e){return ss(e).replace(/"/g,""").replace(/'/g,"'")}function ls(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let xr=null,ya=null;function T4(e,t,a,r="",s=""){if(e.length===0||ya&&ya.iframe.isConnected&&Date.now()-ya.at<1e4)return;const l=r?ls(r):"";xr?.();let i=null;if(l){const d=document.title;document.title=l,i=()=>{document.title=d,window.removeEventListener("afterprint",i),xr===i&&(xr=null)},xr=i,window.addEventListener("afterprint",i)}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 c=u.contentDocument;if(!c){u.remove();return}ya={iframe:u,at:Date.now()},c.open(),c.write(is(e,t,a,!0,l,s)),c.close(),u.contentWindow?.addEventListener("afterprint",()=>{i?.(),setTimeout(()=>{u.remove(),ya?.iframe===u&&(ya=null)},0)})}function is(e,t,a,r=!1,s="",l=""){s=s?ls(s):"";const i=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(h=>h.cssText)}catch{return[]}}).join(`
|
|
831
|
-
`),u="light",c=(()=>{try{return document.documentElement.lang||""}catch{return""}})(),d=l?`<div class="paper-head">${ss(l)}</div>`:"",m=e.map(p=>{const h=p.cloneNode(!0);return h.querySelectorAll('[data-play-state="play"]').forEach(
|
|
830
|
+
`),C=v===-1?a:a.slice(0,v);l("comment",C),a=a.slice(C.length);continue}const u=a.match(/^\/\*[\s\S]*?\*\//);if(u){l("comment",u[0]),a=a.slice(u[0].length);continue}const c=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(c){l("string",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){l("number",d[0]),a=a.slice(d[0].length);continue}const m=a.match(Cv);if(m){l("keyword",m[0]),a=a.slice(m[0].length);continue}const p=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const v=p[0];l(s&&hv.has(v)?"command":"identifier",v),a=a.slice(v.length);continue}const h=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(h){l("operator",h[0]),a=a.slice(h[0].length);continue}const g=a.match(/^[()[\]{};.,]/);if(g){l("punctuation",g[0]),a=a.slice(1);continue}l("other",a[0]),a=a.slice(1)}return r}function bv({children:e,language:t="bash",title:a="",showCopy:r=!0,size:s="default",className:l=""}){const{t:i}=xe.useTranslation(),[u,c]=o.useState(!1),d=mv(xu(e)),m=o.useRef(null);o.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const p=async()=>{try{if(!await $f(d))return;c(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>c(!1),2e3)}catch{}},h=fv(d,t),g=s==="small"?"caption-1":"body-3";return n.jsxs("div",{className:Be("code-box",s==="small"?"code-box--small":"",l),children:[(a||r)&&n.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":i("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[n.jsx("div",{className:"code-box__title caption-1",children:a}),r&&n.jsx(be,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:u?"check":"copy",onClick:p,ariaLabel:u?i("common.copied","\uBCF5\uC0AC\uB428"):i("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),n.jsx("pre",{className:"code-box__inner","data-lang":t,children:n.jsx("code",{children:h.map((v,C)=>n.jsx("span",{className:`code-token ${v.type} ${g}`,children:v.content},C))})})]})}const gv={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Ga(e){const{t}=xe.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:l}=e||{},i=l||t("loader.loading","Loading");if(a==="bar"){const c=s==null||!Number.isFinite(Number(s)),d=c?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:d,"aria-label":i,children:n.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${d}%`}})})}const u=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":i,children:[n.jsx("span",{style:gv,children:i}),n.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[n.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),n.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}function _u({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:s,labelPosition:l="right",className:i="",id:u}){const c=r&&n.jsx("span",{className:"toggle__label body-3",children:r});return n.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${i}`.trim(),children:[l==="left"&&c,n.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&s?s:void 0}),n.jsx("span",{className:"toggle__slider"}),l==="right"&&c]})}function wu({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:s,size:l="medium",className:i,title:u,ariaLabel:c}){const d=o.useRef(null),m=o.useId(),p=o.useRef(!!r);return p.current=!!r,o.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),n.jsxs("label",{className:Be("checkbox",l==="small"&&"checkbox--small",l==="large"&&"checkbox--large",a&&"checkbox--disabled",i),htmlFor:m,title:u,children:[n.jsx("input",{ref:d,id:m,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>{t?.(h.target.checked),d.current&&(d.current.indeterminate=p.current)},disabled:a,"aria-label":!s&&c?c:void 0}),n.jsx("span",{className:"checkbox__box"}),s&&n.jsx("span",{className:"checkbox__label body-3",children:s})]})}function yv({count:e,actions:t,onClear:a,clearLabel:r,visible:s,content:l,max:i}){const{t:u}=xe.useTranslation(),c=s!==void 0?s:e>0,d=r??u("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),m=o.useRef(null),p=o.useRef(null),h=o.useRef(null),g=o.useRef(c);o.useLayoutEffect(()=>{const b=p.current,k=g.current;if(g.current=c,c&&!k){const x=typeof document<"u"?document.activeElement:null;h.current=x&&x!==document.body&&!b?.contains(x)?x:null}else!c&&k&&b&&b.contains(document.activeElement)&&sr(b,h.current)},[c]);const[v,C]=o.useState(!1),f=o.useRef(!1),_=o.useRef(null);return o.useEffect(()=>{const b=m.current;if(!b)return;const k=E=>{f.current=E,C(E)},x=()=>{const E=b.firstElementChild??b,D=Array.from(E.children);if(D.length<2){k(!1);return}const A=D[0].offsetTop,F=D.some(M=>M.offsetTop!==A);if(!f.current){_.current=b.clientWidth,F&&k(!0);return}if(F)return;const $=D[0],K=D[D.length-1],L=K.offsetLeft+K.offsetWidth-$.offsetLeft,P=_.current;(P==null||L<=P)&&k(!1)};if(x(),typeof ResizeObserver>"u")return;const N=new ResizeObserver(x);N.observe(b);const y=b.parentElement;let w=y?.clientWidth??0;const B=new ResizeObserver(()=>{const E=y?.clientWidth??0;E!==w&&(w=E,_.current=null,x())});return y&&B.observe(y),()=>{N.disconnect(),B.disconnect()}},[l,e]),n.jsxs("div",{ref:p,className:`bulk-bar ${c?"bulk-bar--visible":""}`,inert:!c||void 0,"aria-hidden":c?void 0:!0,children:[n.jsx("span",{ref:m,className:"bulk-bar__count body-2",role:"status",children:l??n.jsx("b",{children:u("common.selectedCount",{count:e})})}),i!==void 0&&n.jsx($t,{size:"small",fill:"soft",variant:"main",label:`${e} / ${i}`,"aria-label":u("common.selectedOfMax",{count:e,max:i,defaultValue:`\uCD5C\uB300 ${i}\uAC1C \uC911 ${e}\uAC1C`})}),n.jsxs("div",{className:`bulk-bar__actions${v?" bulk-bar__actions--stacked":""}`,children:[n.jsx(be,{htmlType:"button",size:40,label:d,onClick:a}),t.map((b,k)=>n.jsx(be,{htmlType:"button",size:40,variant:b.variant??"default",icon:b.icon,label:b.label,onClick:b.onClick},k))]})]})}const vv=[{key:"edit",icon:"edit-2",closeFirst:!0},{key:"duplicate",icon:"copy",closeFirst:!1},{key:"publish",icon:"book-marked",closeFirst:!1},{key:"copyLink",icon:"link",closeFirst:!1},{key:"remove",icon:"trash-2",closeFirst:!0}];function xv(e){const{onClose:t,className:a}=e;return n.jsx("div",{className:Be("item-actions",a),children:vv.map(({key:r,icon:s,closeFirst:l})=>{const i=e[r];if(!i)return null;const u=r==="publish"?i.published?i.unpublish:i.publish:i;return n.jsx(be,{htmlType:"button",size:40,type:"dot",icon:s,ariaLabel:u.label,showTooltipInfo:u.label,onClick:()=>{l&&t(),u.onClick()}},r)})})}function Bu(e,t){const a=()=>{if(e){const[C,f]=e.split("-");return{y:+C,m:+f-1}}const[g,v]=lo(t).split("-");return{y:+g,m:+v-1}},[r,s]=o.useState(()=>a().y),[l,i]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const g=a();s(g.y),i(g.m)},[e]);const c=o.useRef({y:r,m:l});o.useEffect(()=>{c.current={y:r,m:l}},[r,l]);const d=o.useCallback(g=>{const v=c.current.y*12+c.current.m+g,C=Math.floor(v/12),f=v-C*12;c.current={y:C,m:f},s(C),i(f)},[]),m=o.useCallback(()=>d(-1),[d]),p=o.useCallback(()=>d(1),[d]),h=o.useCallback((g,v)=>{c.current={y:g,m:v},s(g),i(v)},[]);return{viewY:r,viewM:l,prevMonth:m,nextMonth:p,setViewYM:h}}function fr(e,t){return new Date(e,t+1,0).getDate()}function _v(e,t){return new Date(e,t,1).getDay()}function Ka(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function wv(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function Bv(e){const t=e.replace(/\D/g,"");if(t.length!==8)return null;const a=+t.slice(0,4),r=+t.slice(4,6),s=+t.slice(6,8);if(r<1||r>12||s<1||s>31)return null;const l=new Date(a,r-1,s);return l.getFullYear()!==a||l.getMonth()!==r-1||l.getDate()!==s?null:Ka(a,r-1,s)}const kv=1900;function Av(e,t,a,r,s){const l=r?+r.split("-")[0]:Math.min(kv,e),i=s?+s.split("-")[0]:Math.max(t+10,e),u=[];for(let c=l;c<=i;c++)u.push({value:String(c),label:a(c)});return u}function ku(e,t,a,r){const s=[];for(let l=1;l<=12;l++){const i=`${e}-${String(l).padStart(2,"0")}`;a&&i<a.slice(0,7)||r&&i>r.slice(0,7)||s.push({value:String(l),label:t(e,l)})}return s}function Nv({value:e,onChange:t,size:a=48,min:r,max:s,disabled:l,placeholder:i,className:u,today:c}){const{t:d,i18n:m}=xe.useTranslation(),p=i??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),h=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),g=lo(c),{viewY:v,viewM:C,prevMonth:f,nextMonth:_,setViewYM:b}=Bu(e,c),k=o.useId(),x=o.useCallback((z,ee)=>{const W=window.innerHeight,U=window.innerWidth,de=typeof document<"u"?document.getElementById(k):null,De=Math.max(de?.offsetHeight||0,de?.scrollHeight||0)||300,ye=Math.max(z.width,de?.offsetWidth||0,260),pe=W-z.bottom,ie=z.top,ge=pe<De&&ie>pe,he=8,se=(Le,Oe)=>Math.min(Math.max(he,Le),Math.max(he,Oe));return{position:"fixed",left:se(z.left,U-ye-he),width:z.width,minWidth:260,...ge?{top:"auto",bottom:se(W-z.top+6,W-De-he)}:{bottom:"auto",top:se(z.bottom+6,W-De-he)},zIndex:Ia(ee)}},[k]),{open:N,setOpen:y,toggle:w,style:B,triggerRef:E,menuRef:D}=Fa({computeStyle:x,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!N)return;const z=D.current;return(z?.querySelector(".date-picker__day--selected:not(:disabled)")??z?.querySelector(".date-picker__day--today:not(:disabled)")??z?.querySelector(".date-picker__day:not(:disabled)")??z?.querySelector(xn)??z)?.focus?.(),()=>{const ee=document.activeElement;(!ee||ee===document.body)&&E.current?.focus?.()}},[N,D,E]);const[A,F]=o.useState(1),$=o.useRef(null),K=o.useRef(null);o.useEffect(()=>{if(!N)return;const z=e&&e.slice(0,7)===`${v}-${String(C+1).padStart(2,"0")}`?+e.slice(8):g.slice(0,7)===`${v}-${String(C+1).padStart(2,"0")}`?+g.slice(8):1;F(z)},[N]),o.useEffect(()=>{if(K.current==null)return;const z=K.current;K.current=null,$.current?.querySelector(`[data-day="${z}"]`)?.focus()}),o.useEffect(()=>{F(z=>Math.min(z,fr(v,C)))},[v,C]);const L=o.useCallback(z=>{let ee=Ka(z.getFullYear(),z.getMonth(),z.getDate());r&&ee<r&&(ee=r),s&&ee>s&&(ee=s);const[W,U,de]=ee.split("-").map(Number);(W!==v||U-1!==C)&&b(W,U-1),F(de),K.current=de},[r,s,v,C,b]),P=o.useCallback(z=>{const ee=new Date(v,C,A),W=de=>{ee.setDate(ee.getDate()+de),L(ee)},U=de=>{const De=ee.getFullYear()*12+ee.getMonth()+de,ye=Math.floor(De/12),pe=De-ye*12;L(new Date(ye,pe,Math.min(ee.getDate(),fr(ye,pe))))};switch(z.key){case"ArrowLeft":W(-1);break;case"ArrowRight":W(1);break;case"ArrowUp":W(-7);break;case"ArrowDown":W(7);break;case"Home":W(-ee.getDay());break;case"End":W(6-ee.getDay());break;case"PageUp":z.shiftKey?U(-12):U(-1);break;case"PageDown":z.shiftKey?U(12):U(1);break;default:return}z.preventDefault()},[v,C,A,L]),M=o.useCallback(z=>{l||(t(Ka(v,C,z)),y(!1))},[v,C,t,y,l]);o.useEffect(()=>{l&&y(!1)},[l,y]);const G=z=>{const ee=Ka(v,C,z);return!!(r&&ee<r||s&&ee>s)},H=(()=>{const z=fr(v,C);if(A>=1&&A<=z&&!G(A))return A;for(let ee=1;ee<=z;ee++)if(!G(ee))return ee;return-1})(),O=[];for(let z=0;z<_v(v,C);z++)O.push(null);for(let z=1;z<=fr(v,C);z++)O.push(z);const Q=a===64?20:a===40?16:18,I=Wl(m.language),q=z=>new Intl.DateTimeFormat(I,{year:"numeric"}).format(new Date(z,0,1)),Z=(z,ee)=>new Intl.DateTimeFormat(I,{month:"long"}).format(new Date(z,ee-1,1)),V=Av(v,+g.slice(0,4),q,r,s),S=ku(v,Z,r,s),R=z=>{const ee=ku(z,Z,r,s);if(ee.length===0)return;const W=ee.some(U=>+U.value===C+1);b(z,W?C:+ee[0].value-1)},[T,Y]=o.useState(null);o.useEffect(()=>{Y(null)},[e]);const ce=o.useCallback(z=>{Y(z);const ee=Bv(z);if(!ee||r&&ee<r||s&&ee>s)return;t(ee);const[W,U]=ee.split("-");b(+W,+U-1)},[r,s,t,b]),re=o.useCallback(()=>{Y(null)},[]),oe=o.useCallback(z=>{z.key==="Enter"?(z.preventDefault(),re(),y(!1)):z.key==="Escape"?(re(),y(!1)):z.key==="ArrowDown"&&!N&&(z.preventDefault(),y(!0))},[re,y,N]),ae=N?sn.createPortal(n.jsxs("div",{ref:D,id:k,className:"date-picker__dropdown",style:B,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[n.jsxs("div",{className:"date-picker__nav",children:[n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(Fs,{size:16,strokeWidth:2})}),n.jsxs("div",{className:"date-picker__nav-ym",children:[n.jsx(Cn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYear","\uC5F0 \uC120\uD0DD"),options:V,value:String(v),onChange:z=>R(+z),size:40}),n.jsx(Cn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectMonth","\uC6D4 \uC120\uD0DD"),options:S,value:String(C+1),onChange:z=>b(v,+z-1),size:40})]}),n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:_,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(Os,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:$,onKeyDown:P,children:[h.map(z=>n.jsx("div",{className:"date-picker__dow caption-1",children:z},z)),O.map((z,ee)=>{if(z===null)return n.jsx("div",{},`e${ee}`);const W=Ka(v,C,z),U=W===e,de=W===g,De=G(z),ye=ee%7;return n.jsx("button",{type:"button",disabled:De,"data-day":z,tabIndex:z===H?0:-1,"aria-current":de?"date":void 0,onClick:()=>!De&&M(z),className:Be("date-picker__day caption-1",U&&"date-picker__day--selected",de&&!U&&"date-picker__day--today",De&&"date-picker__day--disabled",ye===0&&"date-picker__day--sun",ye===6&&"date-picker__day--sat"),children:z},z)})]})]}),document.body):null;return n.jsxs("div",{className:Be("date-picker",`date-picker--s${a}`,N&&"date-picker--open",u),children:[n.jsxs("div",{className:"date-picker__field",children:[n.jsx("input",{ref:E,type:"text",className:"date-picker__trigger body-2",value:T??wv(e),placeholder:p,onChange:z=>ce(z.target.value),onClick:()=>!l&&!N&&w(),onKeyDown:oe,onBlur:re,disabled:l,"aria-haspopup":"dialog","aria-expanded":N,inputMode:"numeric",autoComplete:"off"}),n.jsx("button",{type:"button",className:"date-picker__icon-btn",onClick:()=>!l&&w(),disabled:l,tabIndex:-1,"aria-label":p,"aria-haspopup":"dialog","aria-expanded":N,children:n.jsx(Ys,{size:Q,className:"date-picker__icon",strokeWidth:1.5})})]}),ae]})}function Ev({items:e,className:t,ariaLabel:a="\uC54C\uB9BC \uAE00",titleLevel:r=4,targetBytes:s}){const l=r?`h${r}`:"div";return n.jsx("div",{className:`notify-text-preview${t?` ${t}`:""}`,role:"group","aria-label":a,children:e.map(i=>{const u=s===void 0?Tl(i.sms):Tl(i.sms,s),c=u.type==="LMS";return n.jsxs("section",{className:"notify-text-preview__item",children:[n.jsxs("header",{className:"notify-text-preview__head",children:[n.jsx(l,{className:"notify-text-preview__name h5b",children:i.name}),i.meta&&Object.keys(i.meta).length>0?n.jsx("dl",{className:"notify-text-preview__meta caption-1",children:Object.entries(i.meta).map(([d,m])=>n.jsxs("div",{className:"notify-text-preview__meta-row",children:[n.jsx("dt",{children:d}),n.jsx("dd",{children:m})]},d))}):null]}),n.jsxs("div",{className:"notify-text-preview__body",children:[n.jsxs("div",{className:"notify-text-preview__col",children:[n.jsxs("div",{className:"notify-text-preview__col-head caption-1",children:[n.jsx("span",{children:"\uBB38\uC790"}),n.jsxs("span",{className:`notify-text-preview__bytes${c?" is-over":u.overTarget?" is-over-target":""}`,title:u.over?`${u.limit}\uBC14\uC774\uD2B8\uB97C \uB118\uC5C8\uB2E4 \u2014 \uBCF4\uB0BC \uB54C \uC798\uB9B0\uB2E4`:c?`${Sl}\uBC14\uC774\uD2B8\uB97C \uB118\uC5B4 \uC7A5\uBB38\uC774\uB2E4 \u2014 \uD55C \uD1B5 \uAC12\uC774 \uB2E8\uBB38\uC758 \uB450 \uBC30 \uBC18\uC774\uB2E4`:u.overTarget?`\uACA8\uB204\uB294 ${u.target}\uBC14\uC774\uD2B8\uB97C \uB118\uC5C8\uB2E4 \u2014 \uD55C \uAE00\uC790\uB9CC \uB298\uC5B4\uB3C4 ${Sl}\uC744 \uB118\uC5B4 \uC7A5\uBB38\uC774 \uB41C\uB2E4`:void 0,children:[u.bytes,u.target!==null?` / \uBAA9\uD45C ${u.target}`:"","\uBC14\uC774\uD2B8 \xB7 ",c?"\uC7A5\uBB38":"\uB2E8\uBB38",u.over?" \xB7 \uD55C\uACC4 \uB118\uC74C":c?" \xB7 \uAC12\uC774 \uB450 \uBC30 \uBC18":u.overTarget?" \xB7 \uBAA9\uD45C \uB118\uC74C":""]})]}),n.jsx("pre",{className:"notify-text-preview__text",children:i.sms})]}),i.ata?n.jsxs("div",{className:"notify-text-preview__col",children:[n.jsx("div",{className:"notify-text-preview__col-head caption-1",children:n.jsx("span",{children:"\uC54C\uB9BC\uD1A1"})}),n.jsx("pre",{className:"notify-text-preview__text",children:i.ata})]}):null]})]},i.name)})})}function Dv({src:e,alt:t,className:a,style:r,tone:s,textColor:l}){const i=!s&&!!l,u=zy(e,i),c="bl"+o.useId().replace(/[^a-zA-Z0-9]/g,"");return s?n.jsx("span",{className:Be("brand-logo","brand-logo--tone",a),role:t?"img":void 0,"aria-label":t||void 0,"aria-hidden":t?void 0:!0,style:{...r,"--brand-logo-src":`url("${e}")`,"--brand-logo-tone":s},children:n.jsx("img",{src:e,alt:"","aria-hidden":"true",className:"brand-logo__sizer",draggable:!1})}):i&&u?n.jsx("span",{className:Be("brand-logo","brand-logo--inline",a),role:t?"img":void 0,"aria-label":t||void 0,"aria-hidden":t?void 0:!0,style:{...r,"--brand-logo-text-color":l},dangerouslySetInnerHTML:{__html:Fy(Iy(u),c)}}):n.jsx("img",{src:e,alt:t,className:Be("brand-logo",a),style:r,draggable:!1})}function Au({children:e,className:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useEffect(()=>{s(a.current?.parentElement??null)},[]),o.useEffect(()=>{const l=a.current;if(!l||!r)return;const i=()=>{const c=typeof window<"u"&&window.getComputedStyle(l).position==="absolute"?Math.ceil(l.getBoundingClientRect().width):0;c>0?r.style.setProperty("--section-head-float-w",`${c}px`):r.style.removeProperty("--section-head-float-w")};if(i(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const u=new ResizeObserver(()=>i());return u.observe(l),u.observe(r),()=>{u.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),n.jsx("div",{ref:a,className:Be("section-head-float",t),children:e})}function Io({items:e,className:t}){return n.jsx("div",{className:t?`manager-bar-chart-legend ${t}`:"manager-bar-chart-legend",children:e.map((a,r)=>n.jsxs("span",{className:"manager-bar-chart-legend-item",children:[n.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function Ya({label:e,children:t}){return e?n.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[n.jsx("span",{className:"barchart-total__label body-3",children:e}),n.jsx("span",{className:"barchart-total__value",children:t})]}):n.jsx("div",{className:"barchart-total",children:t})}function Fo({title:e,titleClassName:t="h3",titleLevel:a=3,icon:r,disc:s,headRight:l,headFloat:i,headSegment:u,headMenuItems:c,collapseBelow:d=420,onClick:m,ariaLabel:p,tooltip:h,totalNum:g,totalUnit:v,totalLabel:C,subRow:f,subRowAlign:_="start",className:b,inGrid:k=!1,children:x}){const{t:N}=xe.useTranslation(),y=o.useRef(null),{anchorRect:w,openAt:B,close:E}=Pa(),D=o.useCallback(()=>{h&&y.current&&B(y.current)},[h,B]),[A,F]=o.useState(!1);Ro(()=>{const S=y.current;if(!S||!u)return;const R=Y=>F(Y>0&&Y<d);if(R(S.clientWidth),typeof ResizeObserver>"u")return;const T=new ResizeObserver(Y=>R(Y[0].contentRect.width));return T.observe(S),()=>T.disconnect()},[u,d]);const[$,K]=o.useState(null),L=o.useCallback(()=>K(null),[]),P=o.useCallback(S=>{const R=S.currentTarget.getBoundingClientRect();K(T=>T?null:{left:R.left,right:R.right,top:R.top,bottom:R.bottom,width:R.width,height:R.height,x:R.x,y:R.y})},[]),M=!!u&&A;o.useEffect(()=>{M||K(null)},[M]);const G=u?[...u.options.map(S=>({label:S.label,icon:S.icon,selected:S.key===u.value,disabled:S.disabled,onClick:()=>u.onChange(S.key),closeOnSelect:!0})),...(c??[]).map((S,R)=>R===0?{...S,separatorBefore:!0}:S)]:[],H=o.useCallback(S=>{if(!m)return;const R=S.target;R&&typeof R.closest=="function"&&R.closest('button, a, input, select, textarea, [role="radiogroup"]')||m()},[m]),O=o.useCallback(S=>{m&&S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),m())},[m]),Q=typeof l=="function"?l({collapsed:M}):l,I=g!=null||C?n.jsxs(Ya,{label:C,children:[g!=null&&n.jsx("span",{className:"barchart-total__num h0",children:g}),v&&n.jsx("span",{className:"barchart-total__unit h5",children:v})]}):null,q=Q||u?n.jsxs("div",{className:"manager-section__head-right",children:[u&&(M?n.jsx(be,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:u.ariaLabel??N("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:u.ariaLabel??N("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!$,onClick:P}):n.jsx(_n,{size:32,ariaLabel:u.ariaLabel,options:u.options.map(S=>({key:S.key,label:S.label,disabled:S.disabled})),value:u.value,onChange:u.onChange})),Q]}):null,Z=o.useId(),V=a?`h${a}`:"div";return n.jsxs("section",{ref:y,className:["manager-section",k&&"manager-section--grid",m&&"manager-section--clickable",b].filter(Boolean).join(" "),onClick:m?H:void 0,onKeyDown:m?O:void 0,onPointerEnter:h?D:void 0,onPointerLeave:h?E:void 0,onFocus:h?D:void 0,onBlur:h?E:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,"aria-label":m?p??(typeof e=="string"?e:void 0):void 0,"aria-labelledby":!m&&e!=null?Z:void 0,children:[h&&w&&n.jsx(En,{anchorRect:{left:w.left,top:w.top+21,right:w.right,bottom:w.bottom,width:w.width,height:w.height},text:h}),i&&n.jsx(Au,{children:i}),n.jsxs("div",{className:"manager-section__head",children:[n.jsxs("div",{className:"manager-section__title-row",children:[r&&n.jsx(ot,{icon:r,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),n.jsx(V,{id:Z,className:["manager-section__title",t].filter(Boolean).join(" "),children:e})]}),q,s&&n.jsx("div",{className:"manager-section__disc body-3",children:s})]}),(I||f)&&n.jsxs("div",{className:["barchart-sub-row",_!=="start"&&`barchart-sub-row--${_}`].filter(Boolean).join(" "),children:[I,f]}),x,$&&n.jsx(yn,{anchorRect:$,onClose:L,ariaLabel:u?.ariaLabel??N("tooltip.menu","\uBA54\uB274"),children:n.jsx(Oa,{columns:[{items:G}],onClose:L,size:"small"})})]})}const Za=(e,t)=>`${e}-${String(t).padStart(2,"0")}`,Oo=e=>Za(e.getFullYear(),e.getMonth()+1);function ha(e){const t=/^(\d{4})-(\d{2})$/.exec(e);if(!t)return null;const a=Number(t[2]);return a>=1&&a<=12?{year:Number(t[1]),month1:a}:null}const zo=(e,t)=>`${e}#${t}`;function wn(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function Sv(){const e=ia();let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<wn(t,a)){const i=new Date(t,a,0);t=i.getFullYear(),a=i.getMonth(),r=i.getDate()}const s=Math.floor((r-wn(t,a))/7),l=Za(t,a+1);return{monthKey:l,value:zo(l,s)}}function jv(e){const t=ia(),a=Oo(t),r=(c,d)=>Za(c,d+1),s=new Map;s.set(a,[]);for(const c of e){if(isNaN(c.date.getTime()))continue;const d=r(c.date.getFullYear(),c.date.getMonth());s.has(d)||s.set(d,[]),s.get(d).push(c)}for(const[c,d]of[...s.entries()]){const m=ha(c);if(!m)continue;const p=m.year,h=m.month1-1,g=wn(p,h);if(!(c===a&&t.getDate()<g)&&!d.some(f=>f.date.getDate()<g))continue;const v=new Date(p,h,0),C=r(v.getFullYear(),v.getMonth());s.has(C)||s.set(C,[])}const l=new Map;for(const[c,d]of s){const m=ha(c);if(!m)continue;const p=m.year,h=m.month1-1,g=new Date(p,h+1,0).getDate(),v=d.reduce((x,N)=>Math.max(x,N.parts?.length??0,N.partsB?.length??0),0),C=d.some(x=>x.partsB),f=new Array(g+1).fill(0),_=new Array(g+1).fill(0),b=Array.from({length:g+1},()=>new Array(v).fill(0)),k=Array.from({length:g+1},()=>new Array(v).fill(0));for(const x of d){const N=x.date.getDate();if(f[N]+=x.a,_[N]+=x.b,x.parts)for(let y=0;y<v;y++)b[N][y]+=x.parts[y]??0;if(x.partsB)for(let y=0;y<v;y++)k[N][y]+=x.partsB[y]??0}l.set(c,{year:p,month:h,daysInMonth:g,partsLen:v,hasPartsB:C,dayA:f,dayB:_,dayParts:b,dayPartsB:k})}const i=(c,d,m)=>new Date(c,d,m).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),u={};for(const[c,d]of l){const{year:m,month:p,daysInMonth:h,dayA:g,dayB:v,dayParts:C,dayPartsB:f}=d,_=m===t.getFullYear()&&p===t.getMonth(),b=t.getDate(),k=l.get(r(p===11?m+1:m,(p+1)%12)),x=d.partsLen,N=[];for(let w=1;w<=h;w++){const B=_&&w>b;N.push({label:String(w),...B&&g[w]===0&&v[w]===0?{future:!0}:{},a:B&&g[w]===0&&v[w]===0?-1:g[w],b:v[w],...x?{parts:C[w]}:{},...x&&d.hasPartsB?{partsB:f[w]}:{}})}const y=[];for(let w=wn(m,p);w<=h;w+=7){const B=Math.max(0,w+6-h),E=B&&k?Math.max(x,k.partsLen):x,D=d.hasPartsB||!!(B&&k?.hasPartsB);let A=0,F=0;const $=new Array(E).fill(0),K=new Array(E).fill(0);for(let P=w;P<=Math.min(w+6,h);P++){A+=g[P],F+=v[P];for(let M=0;M<x;M++)$[M]+=C[P][M],K[M]+=f[P][M]}if(B&&k)for(let P=1;P<=B&&!i(k.year,k.month,P);P++){A+=k.dayA[P],F+=k.dayB[P];for(let M=0;M<k.partsLen;M++)$[M]+=k.dayParts[P][M],K[M]+=k.dayPartsB[P][M]}const L=B?`${(p+1)%12+1}/${B}`:`${w+6}`;y.push({label:`${y.length+1}\uC8FC`,sublabel:`[${w}\uC77C~${L}\uC77C]`,a:A,b:F,...E?{parts:$}:{},...E&&D?{partsB:K}:{}})}u[c]={weekly:y,daily:N}}return u}function Nu(){const e=ia(),t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let s=2024;s<=t;s++){const l=s===t?a:12;for(let i=1;i<=l;i++)r.push({value:Za(s,i),year:s,month:i})}return r.reverse()}Nu();function Tv(){return Nu()}function Eu(e,t){const a=e("calendar.weekOrdinal",{returnObjects:!0,defaultValue:[]}),r=Array.isArray(a)&&typeof a[t]=="string"?a[t]:null;return e("calendar.weekLabel",{ord:r??String(t+1)})}function Du(e){const{t,i18n:a}=xe.useTranslation(),[r,s]=o.useState("week"),l=o.useMemo(()=>Tv().filter(E=>E.value in e),[e]),i=o.useMemo(()=>{const E=[];for(const D of l){const A=new Date(D.year,D.month,0).getDate(),F=wn(D.year,D.month-1),$=Math.ceil((A-F+1)/7);for(let K=$-1;K>=0;K--)E.push({value:zo(D.value,K),monthKey:D.value,year:D.year,month:D.month,week:K})}return E},[l]),u=o.useCallback(E=>`${so(t,a.language,E.year,E.month)} ${Eu(t,E.week)}`,[t]),c=o.useMemo(()=>l.map(E=>({value:E.value,label:so(t,a.language,E.year,E.month)})),[t,a.language,l]),d=o.useMemo(()=>i.map(E=>({value:E.value,label:u(E)})),[i,u]),m=o.useMemo(()=>Sv(),[e]),p=o.useMemo(()=>l.find(E=>E.value===m.monthKey)?.value??l[0]?.value??"",[l,m]),h=o.useMemo(()=>i.find(E=>E.value===m.value)?.value??i[0]?.value??"",[i,m]),[g,v]=o.useState(""),[C,f]=o.useState("");o.useEffect(()=>{l.find(E=>E.value===g)||v(p)},[l,g,p]),o.useEffect(()=>{i.find(E=>E.value===C)||f(h)},[i,C,h]);const _=r==="month"?c:d,b=r==="month"?g:C,k=r==="month"?v:f,x=o.useMemo(()=>{const E=t("calendar.dow",{returnObjects:!0});return Array.isArray(E)?E:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),N=_.findIndex(E=>E.value===b),y=o.useCallback(()=>{const E=_.findIndex(D=>D.value===b);E<_.length-1&&k(_[E+1].value)},[_,b,k]),w=o.useCallback(()=>{const E=_.findIndex(D=>D.value===b);E>0&&k(_[E-1].value)},[_,b,k]),B=o.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:s,range:b,setRange:k,activeOptions:_,activeIdx:N,handlePrev:y,handleNext:w,periodOptions:B,monthRange:g,weekRange:C,weekRanges:i,DOW:x}}const Et=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function Tn(e,t=!0){return e.future===!0||t&&e.a===-1}function Mv({data:e,colorA:t,colorB:a,labelA:r,labelB:s,barWidth:l=10,barGap:i=1,height:u=140,maxOverride:c,tightMax:d,seriesColors:m,seriesLabels:p,rateLabels:h,grouped:g=!1,baseline:v,focusableBars:C=!1}){const f=!a,_=!!(m&&m.length>0),b=v,k=o.useMemo(()=>_?Math.max(0,...e.filter(O=>!Tn(O,b==null)).map(O=>g?Math.max(0,...(O.parts??[]).map(Et)):(O.parts??[]).reduce((Q,I)=>Q+Math.max(0,Et(I)),0))):Math.max(0,...e.filter(O=>!Tn(O,b==null)).flatMap(O=>f?[Et(O.a)]:[Et(O.a),Et(O.b)])),[e,f,_,g]),x=o.useMemo(()=>{if(b==null)return 0;const O=e.filter(Q=>!Tn(Q,b==null)).flatMap(Q=>_?(Q.parts??[]).map(Et):f?[Et(Q.a)]:[Et(Q.a),Et(Q.b)]);return Math.max(0,...O.map(Q=>Math.abs(Q-b)))},[e,b,_,f]),N=o.useMemo(()=>{const O=b!=null?x:k;return c??(d?O>0?O:10:Math.ceil(O/10)*10||10)},[k,x,b,c,d]),y=u,w=_?g?Math.max(1,m.length):1:f?1:2,B={"--bar-width":`${o.useMemo(()=>{const O=Math.max(1,e.length);return Math.max(2,Math.min(l,Math.round(120/(O*w)+6)))},[e.length,w,l])}px`},E={"--bar-group-gap":`${Math.max(0,i)}px`},D=o.useMemo(()=>{const O=Math.round(N/2);return b!=null?[b+N,...O!==N?[b+O]:[],b,...O!==N?[b-O]:[],b-N]:O!==N?[N,O,0]:[N,0]},[N,b]),A=O=>b!=null?1-(O-(b-N))/(2*N):1-O/N,[F,$]=o.useState(null),K=o.useCallback(()=>$(null),[]),L=o.useCallback((O,Q)=>{const I=[O.label,O.sublabel].filter(Boolean).join(" ");let q;if(_&&g&&O.rawPartsB)q=(p??[]).map((Z,V)=>{const S=O.rawPartsB[V]??0;return{text:S>0?`${Z}: ${Q[V]??0}% (${O.rawParts?.[V]??0}/${S})`:`${Z}: -`,color:(m??[])[V]}});else if(_&&g)q=(p??[]).map((Z,V)=>({text:`${Z}: ${G(Q[V]??0)}`,color:(m??[])[V]}));else if(_){const Z=(p??[]).map((S,R)=>({text:`${S}: ${Q[R]??0}`,color:(m??[])[R]})),V=Z.filter((S,R)=>(Q[R]??0)>0);q=V.length?V:Z}else h&&!f?q=[{text:`${r} ${Et(O.a)}%`,color:t},{text:`${s} ${Et(O.b)}%`,color:a}]:h&&O.rawB!==void 0?q=[{text:`${h.total} ${O.rawB}`},{text:`${h.done} ${O.rawA??0}`,color:t}]:f?q=[{text:`${r}: ${Et(O.a)}`,color:t}]:q=[{text:`${r}: ${Et(O.a)}`,color:t},{text:`${s}: ${Et(O.b)}`,color:a}];return{title:I,items:q}},[_,g,p,m,h,f,r,s,t,a,b]),P=o.useCallback((O,Q,I)=>{const q=O.getBoundingClientRect(),{title:Z,items:V}=L(Q,I);$({rect:{left:q.left,top:q.top,right:q.right,bottom:q.bottom,width:q.width,height:q.height},title:Z,items:V})},[L]),M=o.useCallback((O,Q)=>{const{title:I,items:q}=L(O,Q);return[I,...q.map(Z=>Z.text)].filter(Boolean).join(", ")},[L]),G=O=>b!=null&&O>b?`+${O}`:`${O}`,H=F!=null;return o.useEffect(()=>{if(!H)return;const O=()=>$(null),Q=I=>{const q=I.target;q&&typeof q.closest=="function"&&q.closest(".manager-bar-chart-col")||$(null)};return window.addEventListener("scroll",O,!0),document.addEventListener("pointerdown",Q,!0),()=>{window.removeEventListener("scroll",O,!0),document.removeEventListener("pointerdown",Q,!0)}},[H]),n.jsxs("div",{className:"manager-bar-chart-wrap",style:E,children:[n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsx("div",{className:"manager-bar-chart-scroll",children:n.jsxs("div",{className:"manager-bar-chart-area",children:[n.jsxs("div",{className:"manager-bar-chart-plot",style:{height:y},children:[D.slice(0,-1).map((O,Q)=>n.jsx("div",{className:`manager-bar-chart-gridline${b!=null&&O===b?" manager-bar-chart-gridline--baseline":""}`,style:{top:A(O)*y},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:O})},Q)),e.map((O,Q)=>{const I=Tn(O,b==null),q=y/2,Z=T=>b!=null?Math.min(q,Math.abs(Et(T)-b)/N*q):Math.min(y,Math.max(0,Et(T)/N*y)),V=I?0:Z(O.a),S=I?0:Z(O.b),R=(O.parts??[]).map(Et);return n.jsx("div",{className:`manager-bar-chart-col${g&&_?" manager-bar-chart-col--group":""}`,style:{cursor:I?"default":"pointer"},tabIndex:C&&!I?0:void 0,role:C&&!I?"img":void 0,"aria-label":C&&!I?M(O,R):void 0,onMouseEnter:I?void 0:T=>P(T.currentTarget,O,R),onFocus:I||!C?void 0:T=>P(T.currentTarget,O,R),onBlur:C?K:void 0,onMouseLeave:K,children:!I&&(_&&g?(m??[]).map((T,Y)=>{const ce=R[Y]??0;if(b==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:Z(ce),background:T}},Y);const re=Et(ce)<b;return n.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!re&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:Z(ce),background:T}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:re&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:Z(ce),background:T}})})]},Y)}):_?n.jsx("div",{className:"manager-bar-chart-stack",style:B,children:(()=>{const T=R.reduce((ce,re,oe)=>re>0?oe:ce,-1);let Y=y;return R.map((ce,re)=>{if(ce<=0)return null;const oe=Math.min(Y,ce/N*y);return Y-=oe,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:oe,background:(m??[])[re],borderRadius:re===T?"6px 6px 0 0":void 0}},re)})})()}):b!=null?n.jsx(n.Fragment,{children:[{v:Et(O.a),c:t},...f?[]:[{v:Et(O.b),c:a}]].map(({v:T,c:Y},ce)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:B,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:T>=b&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:Z(T),background:Y}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:T<b&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:Z(T),background:Y}})})]},ce))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:V,background:t}}),!f&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...B,height:S,background:a}})]}))},Q)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((O,Q)=>{const I=Tn(O,b==null);return n.jsxs("span",{className:`manager-bar-chart-x-axis__label${I?" manager-bar-chart-x-axis__label--future":""}`,children:[n.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[O.isToday&&n.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),O.label]}),O.sublabel&&n.jsx("span",{className:"caption-1",children:O.sublabel})]},Q)})})]})})}),F&&n.jsx(Kn,{anchorRect:F.rect,title:F.title,items:F.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Su({control:e}){const{t}=xe.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:l,handlePrev:i,handleNext:u,periodOptions:c,period:d,setPeriod:m}=e,p=d==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),h=d==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return n.jsxs("div",{className:"manager-section-controls",children:[n.jsx(be,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===a.length-1,onClick:i}),n.jsx(Cn,{value:s,onChange:l,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),n.jsx(be,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:h,showTooltipInfo:h,disabled:r<=0,onClick:u}),n.jsx(_n,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:c,value:d,onChange:g=>m(g),size:40})]})}function Wo(e,t,a,r=!0){const s=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(l,i)=>{const u=new Date(t);u.setDate(t.getDate()+i);const c=(e[Oo(u)]?.daily??[])[u.getDate()-1],d=c!=null&&Tn(c,r)||u>s;return{dt:u,entry:c,isFuture:d}})}function Lv(e,t,a,r=!0){const{period:s,monthRange:l,weekRange:i,weekRanges:u,DOW:c}=t,d=ia(),m=d.getFullYear(),p=d.getMonth()+1,h=d.getDate();if(s==="month"){const C=e[l]??{weekly:[],daily:[]},f=ha(l),_=f?f.year:null,b=f?f.month1:null,k=_&&b?wn(_,b-1):1;return C.weekly.map((x,N)=>{const y=N+1;let w=x.label,B=!1,E=!1;if(_&&b){const D=k+N*7,A=new Date(_,b-1,D+6),F=A.getMonth()+1,$=A.getDate(),K=F===b?`${$}`:`${F}/${$}`;w=a("manager.chart.weekRange",{start:D,end:K});const L=new Date(m,p-1,h).getTime();B=L>=new Date(_,b-1,D).getTime()&&L<=A.getTime(),E=_>m||_===m&&(b>p||b===p&&D>h)}return{...x,label:w,sublabel:Eu(a,y-1),isToday:B,future:x.future===!0||E||void 0,a:E?-1:x.a,b:E?0:x.b}})}const g=u.find(C=>C.value===i);if(!g)return[];const v=new Date(g.year,g.month-1,wn(g.year,g.month-1)+g.week*7);return Wo(e,v,d,r).map(({dt:C,entry:f,isFuture:_})=>{const b=C.getMonth()+1,k=C.getDate(),x=C.getFullYear();return{label:b===g.month&&x===g.year?`${k}`:`${b}/${k}`,sublabel:c[C.getDay()]??"",future:_||void 0,a:_?-1:f&&f.a>0?f.a:0,b:_?0:f&&f.b>0?f.b:0,isToday:x===m&&b===p&&k===h,...f?.parts?{parts:_?f.parts.map(()=>0):f.parts}:{},...f?.partsB?{partsB:_?f.partsB.map(()=>0):f.partsB}:{}}})}const $v={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function Rv({focusableBars:e,size:t="medium",barWidth:a,titleKey:r,titleLevel:s,data:l,colorA:i,colorB:u,labelAKey:c,labelBKey:d,showTotal:m=!1,totalUnitKey:p,totalLabelKey:h,control:g,hideControls:v=!1,rate:C=!1,rateAgg:f="dayMean",tightMax:_=!1,avgMode:b=!1,totalFormat:k,series:x,seriesMode:N="stack",loading:y=!1,onDetail:w,headExtra:B,headSegment:E,icon:D,disc:A,onClick:F,cardAriaLabel:$,cardTooltip:K,detailSize:L=32,barGap:P,baseline:M,className:G,inGrid:H=!1}){const{t:O}=xe.useTranslation(),Q=$v[t],I=Du(l),q=g??I,Z=o.useMemo(()=>Lv(l,q,O,M==null),[l,q,O,M]),V=N==="group"&&!!x&&x.length>0;P!=null&&!V&&Tt("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 S=o.useMemo(()=>{if(!C)return Z;const ae=q.period==="month"?ha(q.monthRange):null,z=ia(),ee=x?.length??0,W=U=>{const de=[],De=[],ye=[];for(let pe=0;pe<ee;pe++){let ie=0,ge=0,he=0;for(const se of U){const Le=Et(se.a[pe]),Oe=Et(se.b[pe]);Oe<=0||(ie+=Le,ge+=Oe,he+=Le/Oe*100)}de.push(f==="weighted"?ge>0?Math.round(ie/ge*100):0:U.length?Math.round(he/U.length):0),De.push(ie),ye.push(ge)}return{pct:de,ra:De,rb:ye}};return Z.map((U,de)=>{let De=U.a===-1?-1:U.b>0?Math.round(U.a/U.b*100):0;if(ae&&!Tn(U)){const pe=ae.year,ie=ae.month1-1,ge=Wo(l,new Date(pe,ie,wn(pe,ie)+de*7),z).filter(he=>!he.isFuture);if(f==="weighted"){let he=0,se=0;for(const{entry:Le}of ge)Le&&Le.b>0&&(he+=Le.a,se+=Le.b);De=se>0?Math.round(he/se*100):0}else De=ge.length?Math.round(ge.reduce((he,{entry:se})=>he+(se&&se.b>0?se.a/se.b*100:0),0)/ge.length):0}let ye=null;if(V&&!Tn(U)){let pe;if(ae){const ge=ae.year,he=ae.month1-1;pe=Wo(l,new Date(ge,he,wn(ge,he)+de*7),z).filter(se=>!se.isFuture).map(({entry:se})=>({a:se?.parts??[],b:se?.partsB??[]}))}else pe=[{a:U.parts??[],b:U.partsB??[]}];const ie=W(pe);ye={parts:ie.pct,rawParts:ie.ra,rawPartsB:ie.rb}}return{...U,a:De,b:U.a===-1?0:d&&U.parts&&U.parts[1]>0?Math.round(U.parts[0]/U.parts[1]*100):0,rawA:U.a===-1?-1:U.a,rawB:U.b,...ye??{}}})},[Z,C,f,d,q.period,q.monthRange,l,V,x?.length]),R=o.useMemo(()=>{if(C||b){const z=(q.period==="week"?Z:l[q.monthRange]?.daily??[]).filter(W=>W.a!==-1);if(z.length===0)return 0;if(C&&f==="weighted"){let W=0,U=0;for(const de of z)de.b>0&&(W+=de.a,U+=de.b);return U>0?Math.round(W/U*100):0}const ee=C?z.reduce((W,U)=>W+(U.b>0?U.a/U.b*100:0),0):z.reduce((W,U)=>W+(U.a>0?U.a:0),0);return Math.round(ee/z.length)}const ae=q.period==="month"?l[q.monthRange]?.daily??[]:S;return M!=null?ae.reduce((z,ee)=>z+(Tn(ee,!1)?0:Et(ee.a)+(d?Et(ee.b):0)),0):ae.reduce((z,ee)=>z+(ee.a>0?ee.a:0)+(d&&ee.b>0?ee.b:0),0)},[S,Z,C,f,b,M,d,q.period,q.monthRange,l]),T=x&&x.length>0?x.map(ae=>({color:ae.color,label:ae.label})):[{color:i,label:O(c)},...d?[{color:u,label:O(d)}]:[]],Y=t==="small",ce=[Y?"manager-section--compact":t==="large"?"manager-section--full":void 0,G].filter(Boolean).join(" ")||void 0,re=r?O(r):"",oe=re?O("trainingStatus.detailFor",{name:re,defaultValue:"{{name}} \uC0C1\uC138\uBCF4\uAE30"}):O("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30");return n.jsx(Fo,{className:ce,inGrid:H,icon:D,disc:A,onClick:F,ariaLabel:$,tooltip:K,headSegment:E,headMenuItems:w?[{label:oe,icon:"list",onClick:w,closeOnSelect:!0}]:void 0,title:O(r),titleLevel:s,titleClassName:Y?"h5 chart-section-title--small":void 0,headRight:Y?B??void 0:({collapsed:ae})=>n.jsxs(n.Fragment,{children:[!v&&n.jsx(Su,{control:q}),B,w&&!ae&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(be,{htmlType:"button",size:L,type:"dot",icon:"list",ariaLabel:oe,showTooltipInfo:oe,onClick:w})})]}),subRow:n.jsxs(n.Fragment,{children:[m?C||b||h&&k?n.jsx(Ya,{label:Y?void 0:`${O(q.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${O(h??c)}`,children:k?(k(R).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((ae,z)=>/\d/.test(ae)?n.jsx("span",{className:"barchart-total__num h0",children:ae},z):n.jsx("span",{className:"barchart-total__unit h5",children:ae},z)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:R}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:O(p)})]})}):n.jsxs(Ya,{children:[n.jsx("span",{className:"barchart-total__num h0",children:R}),n.jsx("span",{className:"barchart-total__unit h5",children:O(c)}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:O(p)})]}):n.jsx("span",{}),n.jsx(Io,{items:T,className:"caption-1"})]}),children:y?n.jsx("div",{className:"manager-bar-chart-wrap manager-bar-chart-loading","aria-busy":"true",children:n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsxs("div",{className:"manager-bar-chart-area manager-bar-chart-area--loading",children:[n.jsx("div",{className:"manager-bar-chart-plot manager-bar-chart-plot--loading",style:{height:Q.height},children:n.jsx(Ga,{size:32})}),n.jsx("div",{className:"manager-bar-chart-x-axis","aria-hidden":"true",children:n.jsxs("span",{className:"manager-bar-chart-x-axis__label",children:[n.jsx("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:"\xA0"}),S.some(ae=>!!ae.sublabel)&&n.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):n.jsx(Mv,{focusableBars:e,data:S,colorA:i,colorB:d?u:void 0,labelA:O(c),labelB:d?O(d):void 0,barWidth:a??Q.barWidth,barGap:P,baseline:M,height:Q.height,maxOverride:C?100:void 0,tightMax:_,seriesColors:x?.map(ae=>ae.color),seriesLabels:x?.map(ae=>ae.label),rateLabels:C?{total:O("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:O("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:V})})}const ju=120,Pv={left:38,right:16,top:26,bottom:24};function Iv({points:e=[],range:t,ticks:a=[],axisTitle:r,color:s,height:l=156,fallbackWidth:i=320,insets:u,overlay:c,ariaLabel:d,className:m}){const[p,h]=o.useState(null),[g,v]=o.useState(null);o.useEffect(()=>{if(!g)return;const M=H=>h(Math.round(H)||null);if(M(g.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const G=new ResizeObserver(([H])=>M(H.contentRect.width));return G.observe(g),()=>{G.disconnect()}},[g]);const{payload:C,anchorRect:f,openAfterDelay:_,close:b}=My(ju),k=o.useCallback((M,G)=>{M&&_(M,G.getBoundingClientRect())},[_]),x=p??i,N=l,{left:y,right:w,top:B,bottom:E}={...Pv,...u},[D,A]=t,F=M=>A===D?y:y+(x-y-w)*(M-D)/(A-D),$=M=>B+(N-B-E)*(100-M)/100,K={x:F,y:$,plot:{left:y,right:x-w,top:B,bottom:N-E,width:Math.max(0,x-y-w),height:Math.max(0,N-B-E)}},L=e.filter(M=>!M.hollow),P=s??"var(--color-main)";return n.jsxs(n.Fragment,{children:[n.jsxs("svg",{ref:v,className:Be("line-chart",m),viewBox:`0 0 ${x} ${N}`,role:"img","aria-label":d??e.map(M=>M.description).filter(Boolean).join(", "),children:[r&&n.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(M=>n.jsxs("g",{children:[n.jsx("line",{className:"line-chart__grid",x1:y,x2:x-w,y1:$(M),y2:$(M)}),n.jsxs("text",{className:"line-chart__tick",x:y-6,y:$(M)+4,textAnchor:"end",children:[M,"%"]})]},M)),c?.(K),a.map(M=>n.jsx("text",{className:"line-chart__tick",x:F(M.x),y:N-5,textAnchor:"middle",children:M.label},M.x)),L.length>1&&n.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:P,points:L.map(M=>`${F(M.x)},${$(M.pct)}`).join(" ")}),e.map(M=>n.jsxs("g",{className:"line-chart__dot",onPointerEnter:G=>k(M.description,G.currentTarget),onPointerLeave:b,children:[n.jsx("circle",{className:"line-chart__dot-hit",cx:F(M.x),cy:$(M.pct),r:12}),n.jsx("circle",{className:Be("line-chart__dot-main",M.hollow&&"is-hollow"),cx:F(M.x),cy:$(M.pct),r:4,stroke:P,fill:M.hollow?void 0:P})]},M.x))]}),C!=null&&n.jsx(yn,{anchorRect:f,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:C,children:C})]})}function Fv({icon:e,iconSize:t=56,title:a,titleClass:r="h2",description:s,tipGroups:l,start:i,className:u}){return n.jsxs("div",{className:Be("game-intro",u),children:[e!=null&&n.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${t}px`},children:e}),n.jsx("h2",{className:Be("game-intro__title",r),children:a}),s!=null&&n.jsx("p",{className:"game-intro__description body-3",children:s}),l?.map((c,d)=>n.jsxs("div",{className:"game-intro__tips",children:[c.title!=null&&n.jsx("span",{className:"game-intro__tips-title body-3",children:c.title}),c.tips.map((m,p)=>n.jsxs("span",{className:"game-intro__tip body-3",children:[m.icon!=null&&n.jsx("span",{"aria-hidden":"true",children:m.icon}),n.jsx("span",{children:m.text})]},p))]},d)),i&&n.jsx(be,{htmlType:"button",className:i.className,variant:"main",color:i.color,size:48,width:"100%",disabled:i.disabled,onClick:i.onClick,children:i.label})]})}const Tu=(e,t,a)=>{const r=new Date(Date.UTC(e,t,a));return`${r.getUTCFullYear()}-${String(r.getUTCMonth()+1).padStart(2,"0")}-${String(r.getUTCDate()).padStart(2,"0")}`},Mu=(e,t,a,r)=>({from:Hl(e,t,a),to:new Date(Hl(e,t,a+r).getTime()-1),fromYmd:Tu(e,t,a),toYmd:Tu(e,t,a+r-1)});function Ov(e,t=0){if(e.period==="month"){const s=ha(e.monthRange),l=ia(),i=s?s.year:l.getFullYear(),u=(s?s.month1:l.getMonth()+1)-1+t,c=new Date(Date.UTC(i,u+1,0)).getUTCDate();return Mu(i,u,1,c)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,l=La();return{from:s,to:s,fromYmd:l,toYmd:l}}const r=wn(a.year,a.month-1);return Mu(a.year,a.month-1,r+(a.week+t)*7,7)}const Ho={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Lu(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function $u({done:e,total:t,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:l,label:i="%",hideCenter:u=!1,hideLabel:c=!1}){const d=typeof s=="number"?s:Ho[s].diameter,m=l??(typeof s=="number"?12:Ho[s].strokeWidth),p=d/2,h=(d-m)/2,g=2*Math.PI*h;if(a&&a.length>0){const _=a.reduce((b,k)=>{const x=b.length>0?b[b.length-1].acc:0,N=Number.isFinite(k.ratio)?k.ratio:0,y=Math.max(0,Math.min(N,1-x));return b.push({color:k.color,rotate:-90+x*360,dash:g*y,acc:x+y}),b},[]);return n.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),_.map((b,k)=>b.dash>0&&n.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:b.color,strokeWidth:m,strokeDasharray:`${b.dash} ${g}`,strokeLinecap:"round",transform:`rotate(${b.rotate} ${p} ${p})`},k))]})})}const v=(t??0)>0?Math.min((e??0)/t,1):0,C=g*v,f=g-C;return n.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),v>0&&n.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${C} ${f}`,strokeLinecap:v<.02||v>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!u&&n.jsxs("div",{className:`ring-chart__center${c?"":` ${d<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[n.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:Lu(v)}),!c&&n.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||s==="medium"?" ring-chart__label--tight":""}`,children:i})]})]})}function zv({titleKey:e,titleLevel:t,headRight:a,icon:r,showTotal:s,totalLabelKey:l,legend:i,loading:u,className:c,inGrid:d=!1,onClick:m,ariaLabel:p,tooltip:h,...g}){const{t:v}=xe.useTranslation();if(!e)return n.jsx($u,{...g});const C=(g.total??0)>0?Lu(Math.min((g.done??0)/g.total,1)):0,f=g.size==="small",_=typeof g.size=="number"?g.size:Ho[g.size??"medium"].diameter,b=g.size==="large",k=[c,f?"manager-section--compact":b?"manager-section--full":""].filter(Boolean).join(" ")||void 0,x=r&&n.jsx("span",{className:"chart-section-icon",children:n.jsx(ot,{icon:r,className:"chart-section-icon-inner"})});return n.jsx(Fo,{className:k,inGrid:d,onClick:m,ariaLabel:p,tooltip:h,title:v(e),titleLevel:t,titleClassName:f?"h5 chart-section-title--small":void 0,headRight:x||(f?void 0:a),subRow:(s||i)&&n.jsxs(n.Fragment,{children:[s?n.jsxs(Ya,{label:!f&&l?v(l):void 0,children:[n.jsx("span",{className:"barchart-total__num h0",children:C}),n.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):n.jsx("span",{}),i&&n.jsx(Io,{items:i})]}),children:u?n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:_,height:_},"aria-busy":"true",children:n.jsx(Ga,{size:32})})}):n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx($u,{...g,hideCenter:g.hideCenter??f})})})}function Wv({label:e,value:t,change:a,changeType:r,icon:s,tooltip:l,onClick:i,children:u}){const c=o.useRef(null),{anchorRect:d,openAt:m,close:p}=Pa(),h=o.useCallback(()=>{l&&c.current&&m(c.current)},[l,m]),g=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),v=a===void 0?void 0:a>0?`+${a}`:`${a}`,C=o.useCallback(f=>{i&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i())},[i]);return n.jsxs("div",{ref:c,className:`manager-stat-card${i?" manager-stat-card--clickable":""}`,onClick:i,onKeyDown:i?C:void 0,onPointerEnter:h,onPointerLeave:p,onFocus:h,onBlur:p,role:i?"button":void 0,tabIndex:i?0:void 0,"aria-label":i?[e,t,v].filter(f=>f!==void 0&&f!=="").join(" "):void 0,children:[l&&d&&n.jsx(En,{anchorRect:{left:d.left,top:d.top+21,right:d.right,bottom:d.bottom,width:d.width,height:d.height},text:l}),n.jsxs("div",{className:"manager-stat-card__label-row",children:[n.jsx("span",{className:"manager-stat-card__label h5",children:e}),s&&n.jsx("span",{className:"manager-stat-card__icon",children:n.jsx(ot,{icon:s,className:"manager-stat-card__icon-inner"})})]}),n.jsxs("div",{className:"manager-stat-card__content",children:[n.jsxs("div",{className:"manager-stat-card__left",children:[n.jsx("div",{className:"manager-stat-card__value h2",children:t}),v&&n.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${g??"neutral"} caption-1`,children:v})]}),u&&n.jsx("div",{className:"manager-stat-card__body",children:u})]})]})}function Ru({value:e,onChange:t,min:a=0,max:r=100,step:s=1,orientation:l="horizontal",size:i=24,disabled:u=!1,ariaLabel:c,length:d,className:m,label:p,formatValue:h,labelPos:g,labelAlign:v="right",showMinMax:C=!1,minLabel:f,maxLabel:_,showBgTick:b=!1,showFillTick:k=!1,tickStep:x,tickShape:N="dot"}){t&&!c&&Tt("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 y=Math.min(r,Math.max(a,e)),w=r>a?(y-a)/(r-a):0,B=l==="vertical",E=!t,D=Z=>t?.(Number(Z.target.value)),A=typeof d=="number"?`${d}px`:d,F={"--slider-ratio":String(w),"--slider-thumb":`${i}px`,...A?B?{height:A}:{width:A}:{}},$=x??s,K=(b||k)&&$>0&&r>a?Math.floor((r-a)/$+1e-6):0;if(K>0&&K<=100){const Z=N!=="dash",V=ce=>Z?`radial-gradient(circle, ${ce} 0.5px, transparent 1px)`:B?`linear-gradient(to bottom, transparent calc(50% - 2px), ${ce} calc(50% - 2px), ${ce} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${ce} calc(50% - 2px), ${ce} calc(50% + 2px), transparent calc(50% + 2px))`,S=Z?"2px":"4px",R=[],T=[],Y=[];for(let ce=0;ce<=K;ce++){const re=ce*$/(r-a);if(re>1+1e-6)break;const oe=`${((B?1-re:re)*100).toFixed(4)}%`,ae=re<=w+1e-6;if(ae?!k:!b)continue;const z=ae?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";R.push(V(z)),T.push(B?`${S} var(--slider-thumb)`:`var(--slider-thumb) ${S}`),Y.push(B?`center ${oe}`:`${oe} center`)}R.push(B?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),T.push("100% 100%"),Y.push("0 0"),F.backgroundImage=R.join(", "),F.backgroundSize=T.join(", "),F.backgroundPosition=Y.join(", "),F.backgroundRepeat="no-repeat"}const L=h?h(y):p==="percent"?`${Math.round(r>a?(y-a)/(r-a)*100:0)}%`:p==="count"?`${y} / ${r}`:y===a&&f?f:y===r&&_?_:void 0,P=n.jsx("input",{type:"range",className:Be("slider",`slider--${l}`,E&&"slider--static",!p&&!C&&m),min:a,max:r,step:s,value:y,disabled:u,readOnly:E,tabIndex:E?-1:void 0,"aria-label":c,"aria-valuetext":L,"aria-orientation":l,onChange:D,style:F});if(!p&&!C)return P;const M=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:f??a}),G=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??r}),H=C?n.jsxs("div",{className:Be("slider-track-group",`slider-track-group--${l}`,!p&&m),children:[B?G:M,P,B?M:G]}):P;if(!p)return H;const O=g??(B?"bottom":"right"),Q=`${Math.round(r>a?(y-a)/(r-a)*100:0)}%`,I=h?h(y):p==="percent"?Q:p==="count"?`${y} / ${r}`:String(y),q=n.jsx("span",{className:"slider-wrap__value body-3b",children:I});return n.jsxs("div",{className:Be("slider-wrap",`slider-wrap--${l}`,`slider-wrap--label-${O}`,`slider-wrap--align-${v}`,m),children:[H,q]})}const Hv=.86,Vv=250,Vo=(e,t,a,r)=>Math.round(Math.min(r,Math.max(a,e-t))),qo=(e,t,a,r)=>{const s=Vo(e,t,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function Uo({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:s,labelPos:l,labelAlign:i="right",floorDb:u=-60,refDb:c=-35,displayMin:d=-5,displayMax:m=25,className:p,ariaLabel:h}){const g=o.useRef(null),v=o.useRef(null),C=o.useRef(null),f=o.useRef(null),[_,b]=o.useState(null);o.useEffect(()=>{const y=P=>{const M=qo(P,c,d,m);C.current&&(C.current.textContent=M);const G=g.current;G&&(G.setAttribute("aria-valuenow",String(Vo(P,c,d,m))),G.setAttribute("aria-valuetext",M))},w=e??OC(t)??(_&&_.el===t?_.node:null),B=v.current;if(!w||!B){B?.style.setProperty("--meter-level","0"),y(u);let P=!1;return!e&&t&&er(t).then(M=>{!P&&M&&b({el:t,node:M})}),()=>{P=!0}}to();const E=new Float32Array(w.fftSize);let D=0,A=0,F=0,$=0,K=null;const L=P=>{const M=zC(w,E);D=M>D?M:D*Hv;const G=D>1e-5?20*Math.log10(D):-1/0,H=Math.max(u,G),O=H-c,Q=Math.min(1,Math.max(0,(O-d)/(m-d)));if(B.style.setProperty("--meter-level",Q.toFixed(3)),A+=H,F+=1,P-$>=Vv){const I=A/F;K=K==null?I:K*.6+I*.4,y(K),A=0,F=0,$=P}f.current=requestAnimationFrame(L)};return f.current=requestAnimationFrame(L),()=>{f.current!=null&&cancelAnimationFrame(f.current),f.current=null}},[e,t,_,u,c,d,m]);const k=typeof r=="number"?`${r}px`:r,x=n.jsx("div",{className:"audio-meter__track",style:k?a==="vertical"?{height:k}:{width:k}:{},children:n.jsx("div",{ref:v,className:"audio-meter__fill"})}),N=l??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:g,className:Be("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${N}`,s&&`audio-meter--align-${i}`,p),role:"meter","aria-label":h,"aria-valuemin":d,"aria-valuemax":m,"aria-valuenow":Vo(u,c,d,m),"aria-valuetext":qo(u,c,d,m),children:[x,s&&n.jsx("span",{ref:C,className:"audio-meter__value caption-2",children:qo(u,c,d,m)})]})}const Pu=260;function Iu({message:e,position:t,duration:a,onClose:r}){const[s,l]=o.useState(!1),[i,u]=o.useState(!1),c=o.useRef(i),d=o.useRef(s);o.useEffect(()=>{c.current=i},[i]),o.useEffect(()=>{d.current=s},[s]);const m=o.useRef(null),p=o.useRef(""),h=o.useRef(r);o.useEffect(()=>{h.current=r});const g=a,v=o.useRef(null),C=o.useRef(0),f=o.useRef(0),_=o.useRef(!1),b=o.useRef(null),k=o.useRef(null),x=o.useRef(null),N=o.useRef(null),y=o.useRef(()=>{});y.current=E=>{E<0||(C.current=Date.now(),f.current=E,v.current=setTimeout(()=>{v.current=null,l(!1),b.current=setTimeout(()=>{u(!1);try{h.current()}catch{}},Pu)},E))};const w=o.useCallback(()=>{_.current||!v.current||(_.current=!0,clearTimeout(v.current),v.current=null,f.current=Math.max(0,f.current-(Date.now()-C.current)))},[]),B=o.useCallback(()=>{_.current&&(_.current=!1,y.current(f.current))},[]);return o.useEffect(()=>{if(e!==p.current&&(v.current&&(clearTimeout(v.current),v.current=null),b.current&&(clearTimeout(b.current),b.current=null)),e){if(d.current)return g>0&&!v.current&&(_.current?f.current=g:y.current(g)),p.current=e,()=>{v.current&&(clearTimeout(v.current),v.current=null),b.current&&(clearTimeout(b.current),b.current=null)};const E=()=>{const D=m.current;if(D)try{D.classList.remove("is-visible"),D.style.transition="none",t==="top"?D.style.transform="translateX(-50%) translateY(-16px)":D.style.transform="translateX(-50%) translateY(16px)",D.style.opacity="0",D.offsetWidth,D.style.transition="",D.classList.add("is-visible"),N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{N.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};c.current?(E(),l(!0)):(u(!0),k.current=requestAnimationFrame(()=>{x.current=requestAnimationFrame(()=>{E(),l(!0)})})),g>0&&(_.current=!1,y.current(g))}else l(!1),b.current=setTimeout(()=>u(!1),Pu);return p.current=e,()=>{v.current&&clearTimeout(v.current),b.current&&clearTimeout(b.current),k.current&&cancelAnimationFrame(k.current),x.current&&cancelAnimationFrame(x.current),N.current&&clearTimeout(N.current),v.current=null,b.current=null,k.current=null,x.current=null,N.current=null}},[e,g,t]),{mounted:i,showing:s,popupRef:m,pause:w,resume:B}}function Ca({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:l,showing:i,popupRef:u,pause:c,resume:d}=Iu({message:e,position:t,duration:s,onClose:r}),m=o.useRef(null),[p,h]=o.useState(!1);if(o.useEffect(()=>{i?h(!0):l||h(!1)},[i,l]),!l)return null;const g=a==="notice"||a==="warning"?a:"normal",v=n.jsx("div",{ref:u,className:`toast toast--${t} ${i?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:C=>{m.current=C.pointerType},onMouseEnter:()=>{m.current!=="touch"&&c()},onMouseLeave:d,onFocusCapture:c,onBlurCapture:d,children:n.jsx("div",{className:`toast__inner toast__inner--${g} body-2`,"aria-hidden":p||i?void 0:!0,children:n.jsx("span",{className:"toast__text",children:e})})});return typeof document<"u"?sn.createPortal(v,document.body):v}const qv=24;function Uv({value:e,max:t=100,size:a=8,color:r,trackColor:s,label:l,formatValue:i,labelPos:u,labelAlign:c="right",ariaLabel:d,className:m}){const p=Number.isFinite(t)&&t>0?t:1,h=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),g=h/p*100,v=Number.isFinite(t)&&t>0?t:0,C=u??(a>=qv?"inside":"bottom"),f=C==="center"?"inside":C,_=f==="inside"&&(c==="left"?g>=15:c==="center"?g>=50:g>=85),b={};return r&&(b["--progress-bar-fill"]=r),s&&(b["--progress-bar-track"]=s),n.jsxs("div",{className:Be("progress-bar",`progress-bar--${a}`,`progress-bar--label-${f}`,l&&`progress-bar--align-${c}`,l&&_&&"progress-bar--label-on-fill",m),style:b,children:[n.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":h,"aria-valuemin":0,"aria-valuemax":v,"aria-valuetext":l?i?i(h):l==="percent"?void 0:l==="raw"?String(h):`${h} / ${v}`:void 0,"aria-label":d,children:n.jsx("div",{className:"progress-bar__fill",style:{width:`${g}%`}})}),l&&n.jsx("span",{className:"progress-bar__label caption-1b",children:i?i(h):l==="percent"?`${Math.round(g)}%`:l==="raw"?String(h):`${h} / ${v}`})]})}const Fu={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Gv="rgba(255, 255, 255, 0.16)";function Ou({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:s,variant:l="numbered",announce:i=!1,ariaLabel:u}){const{t:c}=xe.useTranslation(),d=hn("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const m=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,p=u??c("progress.steps",{current:m+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),h={};if(a&&(h["--pi-inactive-bg"]=a),r&&(h["--pi-inactive-color"]=r),s&&(a||(h["--pi-inactive-bg"]=Gv),r||(h["--pi-inactive-color"]="var(--color-white)")),l==="dot")return n.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:h,role:i?"status":"img","aria-label":i?void 0:p,children:[i&&n.jsx("span",{style:Fu,children:p}),Array.from({length:e}).map((v,C)=>n.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${C<m?" done":C===m?" active":""}`},C))]});const g=i?n.jsx("span",{role:"status",style:Fu,children:p}):null;return d?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:h,role:"list","aria-label":p,children:n.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[m+1," / ",e]})}),g]}):n.jsxs(n.Fragment,{children:[g,n.jsx("div",{className:"progress-indicator",style:h,role:"list","aria-label":p,children:Array.from({length:e}).map((v,C)=>n.jsx("span",{role:"listitem","aria-current":C===m?"step":void 0,className:`progress-indicator-dot ${C<m?" done":C===m?" active":""} body-3`,children:C+1},C))})]})}function Kv(e){if(!e)return[];const t=[];let a=0,r="";for(const s of e.trim()){if(s==="("?a++:s===")"&&a--,/\s/.test(s)&&a===0){r&&(t.push(r),r="");continue}r+=s}return r&&t.push(r),t}function Yv({children:e,className:t,style:a,rowLabel:r,onRowClick:s}){return n.jsx("div",{role:"cell",className:t?`table-cell ${t}`:"table-cell",style:a,children:r&&s?n.jsx("button",{type:"button",className:"table-cell__row-button","aria-label":r,children:e}):e})}function Go({variant:e="default",children:t,className:a,draggable:r,onClick:s,onMouseEnter:l,onMouseLeave:i,onDragStart:u,onDragEnd:c,expandedContent:d,colSpan:m,describedBy:p,rowHasButton:h}){const g=o.useCallback(v=>{s&&v.target===v.currentTarget&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),s())},[s]);return e==="loading"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--loading",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:n.jsx(Ga,{size:28})})})}):e==="empty"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--empty body-3",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:t})})}):n.jsxs("div",{role:"presentation",className:"table-row-wrap",children:[n.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:s,onKeyDown:s?g:void 0,onMouseEnter:l,onMouseLeave:i,onDragStart:u,onDragEnd:c,role:"row",tabIndex:s&&!h?0:void 0,"aria-describedby":s&&!h?p:void 0,children:t}),d&&n.jsx("div",{role:"row",className:"table-row-expand",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row-expand__cell",children:d})})]})}function Zv({dir:e}){return n.jsx(e==="asc"?Xs:Zs,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Xv({children:e,onClick:t,className:a,sortDir:r,ariaSort:s,onResizeStart:l}){const i=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(Zv,{dir:r})]});return n.jsxs("div",{onClick:t,role:"columnheader","aria-sort":s,className:Be("table-field body-3",a,r?"table-field--sorted":"",l?"table-field--resizable":""),children:[t?n.jsx("button",{type:"button",className:"table-field__button",children:i}):i,l&&n.jsx("span",{className:"table-field__resizer",onPointerDown:l,onClick:u=>u.stopPropagation(),"aria-hidden":"true"})]})}function zu(e){return e&&e!=="left"?`table-col--${e}`:void 0}function Ko({fields:e=[],sort:t,sortable:a=!0,headerGroups:r,items:s=[],renderRow:l,onRowClick:i,isRowClickable:u,onRowMouseEnter:c,onRowMouseLeave:d,onRowDragStart:m,onRowDragEnd:p,draggingId:h,gridTemplateColumns:g,mobileGridTemplateColumns:v,resizable:C=!0,resizeMode:f="grow",resizeStorageKey:_,size:b="small",title:k,icon:x,count:N,collapsed:y=!1,onToggleCollapse:w,headerActions:B,empty:E,loading:D,dragOver:A=!1,onDragOver:F,onDragLeave:$,onDrop:K,renderExpandedRow:L,expandedId:P}){const{t:M}=xe.useTranslation(),G=o.useId(),H=`table-title-${G}`,O=`table-row-hint-${G}`,[Q,I]=o.useState(null),q=o.useCallback((ne,ve)=>{const Pe=e[ve];if(!Pe)return;if(Pe.sortValue)return Pe.sortValue(ne);if(Pe.sortKey)return ne[Pe.sortKey];const Qe=l(ne)[ve]?.content;return typeof Qe=="string"||typeof Qe=="number"?Qe:void 0},[e,l]),Z=!t&&a&&!e.some(ne=>ne.sortDir!==void 0||ne.onClick),V=o.useCallback(ne=>{const ve=e[ne];if(!ve||ve.sortable===!1)return!1;if(ve.sortValue||ve.sortKey)return!0;const Pe=s[0];return Pe!==void 0&&q(Pe,ne)!==void 0},[e,s,q]),S=o.useMemo(()=>t?e.map(ne=>{if(!ne.sortKey||ne.sortDir!==void 0)return ne;const ve=t.field(String(ne.label??""),ne.sortKey);return{...ne,sortDir:ve.sortDir,onClick:ne.onClick??ve.onClick}}):Z?e.map((ne,ve)=>V(ve)?{...ne,sortDir:Q?.index===ve?Q.asc?"asc":"desc":null,onClick:()=>I(Pe=>Pe?.index===ve?{index:ve,asc:!Pe.asc}:{index:ve,asc:!0})}:ne):e,[e,t,Z,Q,V]),R=o.useMemo(()=>{if(!Z||!Q)return s;const{index:ne,asc:ve}=Q;return[...s].sort((Pe,Qe)=>ur(q(Pe,ne),q(Qe,ne),ve))},[s,Z,Q,q]),T=hn("(max-width: 767px)"),Y=v&&T?v:null,ce=C&&!T,re=o.useRef(ce);re.current=ce;const oe=48,ae=40,z=o.useRef(()=>oe),ee=_?`table-cols:${_}`:null,W=o.useRef(null),U=o.useRef(null),de=o.useRef(null),De=o.useRef(null),[ye,pe]=o.useState(!1),[ie,ge]=o.useState(0),he=o.useCallback(()=>{const ne=de.current;if(!ne)return;const ve=De.current,Pe=W.current;if(ve&&(ve.style.minWidth="",Pe)){const Qe=Pe.scrollWidth,yt=re.current?ae:0;ve.style.minWidth=Qe>ne.clientWidth+1?`${Qe+yt}px`:""}pe(ne.scrollWidth>ne.clientWidth+1),ge(ne.clientWidth)},[]),se=o.useCallback((ne,ve)=>{const Pe=ne.current;Pe&&U.current&&U.current.unobserve(Pe),ne.current=ve,ve?(!U.current&&typeof ResizeObserver<"u"&&(U.current=new ResizeObserver(()=>he())),U.current?.observe(ve)):!de.current&&!De.current&&(U.current?.disconnect(),U.current=null),he()},[he]),Le=o.useCallback(ne=>se(de,ne),[se]),Oe=o.useCallback(ne=>se(De,ne),[se]);o.useEffect(()=>{he()}),o.useEffect(()=>{if(typeof window>"u")return;const ne=typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>he()):null;return window.addEventListener("resize",he),()=>{ne!=null&&cancelAnimationFrame(ne),window.removeEventListener("resize",he)}},[he]);const Me=o.useRef(()=>!1),qe=o.useRef([]),We=o.useRef(null),dt=ne=>{if(!ne||typeof window>"u")return null;try{const ve=JSON.parse(window.localStorage.getItem(ne)??"null");return Array.isArray(ve)&&ve.length>0&&ve.every(Pe=>typeof Pe=="number"&&Number.isFinite(Pe)&&Pe>0)?ve:null}catch{return null}},[at,st]=o.useState(()=>dt(ee)),[it,Ee]=o.useState(ee),[Ue,Ae]=o.useState(()=>dt(ee)!==null);if(it!==ee){Ee(ee);const ne=dt(ee);st(ne),Ae(ne!==null)}const He=o.useRef(at);o.useEffect(()=>{He.current=at},[at]);const et=o.useCallback(ne=>{const ve=We.current;if(!ve)return;const Pe=He.current;if(Pe){const Qe=[...Pe],yt=()=>oe;if(ve.next!=null&&ve.startWNext!=null){const ct=ne.clientX-ve.startX,Ft=Math.max(yt()-ve.startW,Math.min(ve.startWNext-yt(),ct));Qe[ve.index]=ve.startW+Ft,Qe[ve.next]=ve.startWNext-Ft}else Qe[ve.index]=Math.max(yt(),ve.startW+(ne.clientX-ve.startX));He.current=Qe,st(Qe)}},[]),pt=o.useCallback(()=>{if(We.current=null,window.removeEventListener("pointermove",et),window.removeEventListener("pointerup",pt),window.removeEventListener("pointercancel",pt),document.body.style.cursor="",document.body.style.userSelect="",ee&&He.current)try{window.localStorage.setItem(ee,JSON.stringify(He.current))}catch{}},[et,ee]),Dt=o.useCallback((ne,ve)=>{ve.preventDefault(),ve.stopPropagation();const Pe=W.current;if(!Pe)return;const Qe=Array.from(Pe.children).map(ct=>ct.getBoundingClientRect().width),yt=f==="fit"?S.findIndex((ct,Ft)=>Ft>ne&&ct.resizable!==!1):-1;We.current=yt>=0?{index:ne,startX:ve.clientX,startW:Qe[ne],next:yt,startWNext:Qe[yt]}:{index:ne,startX:ve.clientX,startW:Qe[ne]},He.current=Qe,st(Qe),Ae(!0),window.addEventListener("pointermove",et),window.addEventListener("pointerup",pt),window.addEventListener("pointercancel",pt),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[et,pt,f,S]),vt=o.useCallback(()=>{const ne=W.current,ve=ne?.closest(".table-wrap");if(!ne||!ve)return null;const Pe=ve.style.getPropertyValue("--table-grid-cols");ve.style.setProperty("--table-grid-cols",S.map(()=>"max-content").join(" "));const Qe=Array.from(ve.querySelectorAll(".table-row")).filter(Rt=>!Rt.classList.contains("table-row--loading")&&!Rt.classList.contains("table-row--empty")),yt=S.map((Rt,bt)=>{let ht=ne.children[bt]?.getBoundingClientRect().width??0;for(const Yt of Qe){const fn=Yt.children[bt];fn&&(ht=Math.max(ht,fn.getBoundingClientRect().width))}const _t=Me.current(bt)?parseFloat(qe.current[bt]):NaN;return Number.isFinite(_t)&&Math.ceil(ht)>_t&&Tt(`table-fixed-col-overflow:${bt}:${_t}`,`[ihabdevteam-core] Table \uC758 ${bt+1}\uBC88\uC9F8 \uC5F4\uC744 ${_t}px \uB85C \uC815\uD574 \uB450\uC5C8\uB294\uB370 \uC548\uC758 \uB0B4\uC6A9\uC740 ${Math.ceil(ht)}px \uAC00 \uD544\uC694\uD569\uB2C8\uB2E4 \u2014 \uADF8\uB9CC\uD07C \uC798\uB824 \uB098\uAC11\uB2C8\uB2E4. gridTemplateColumns(\uB610\uB294 fields[].width)\uC758 \uADF8 \uC5F4\uC744 ${Math.ceil(ht)}px \uC774\uC0C1\uC73C\uB85C \uB298\uB9AC\uC138\uC694.`),Number.isFinite(_t)?_t:Math.max(z.current(bt),Math.ceil(ht))}),ct=window.getComputedStyle(ne),Ft=ne.clientWidth-(parseFloat(ct.paddingLeft)||0)-(parseFloat(ct.paddingRight)||0);Pe?ve.style.setProperty("--table-grid-cols",Pe):ve.style.removeProperty("--table-grid-cols");let Gt=yt;const kn=yt.reduce((Rt,bt,ht)=>Rt+(Me.current(ht)?bt:0),0),Ht=yt.reduce((Rt,bt,ht)=>Rt+(Me.current(ht)?0:bt),0),Kt=Ft-kn;if(Ft>0&&Ht>0&&Kt>0){const Rt=Kt/Ht;Gt=yt.map((ht,_t)=>Me.current(_t)?ht:Math.max(z.current(_t),Math.round(ht*Rt)));const bt=Math.round(Kt-Gt.reduce((ht,_t,Yt)=>ht+(Me.current(Yt)?0:_t),0));if(bt!==0){let ht=-1;Gt.forEach((_t,Yt)=>{!Me.current(Yt)&&(ht<0||_t>Gt[ht])&&(ht=Yt)}),ht>=0&&(Gt[ht]=Math.max(z.current(ht),Gt[ht]+bt))}}return Gt},[S,f]),Pt=(ne,ve)=>ne!==null&&ne.length===ve.length&&ne.every((Pe,Qe)=>Pe===ve[Qe]),nt=o.useRef(vt);o.useEffect(()=>{nt.current=vt});const[lt,At]=o.useState(0),Bt=R.length>0,ke=`${ee??""}|${lt}|${S.length}|${ie}`,$e=!Ue&&ce&&ee!==null&&!D?`${ke}|${Bt?1:0}`:null,je=o.useRef(null);o.useEffect(()=>{if($e===null||!Bt||je.current===ke)return;const ne=nt.current();ne&&(je.current=ke,st(ve=>Pt(ve,ne)?ve:ne))},[$e]);const Ve=o.useCallback(()=>{if(ee)try{window.localStorage.removeItem(ee)}catch{}Ae(!1);const ne=nt.current();st(ne),He.current=ne,At(ve=>ve+1)},[ee]);o.useEffect(()=>()=>{We.current&&(window.removeEventListener("pointermove",et),window.removeEventListener("pointerup",pt),window.removeEventListener("pointercancel",pt),document.body.style.cursor="",document.body.style.userSelect="")},[et,pt]);const Ge=S.length>0&&S.every(ne=>ne.width!=null)?S.map(ne=>typeof ne.width=="number"?`${ne.width}px`:String(ne.width)).join(" "):null;S.some(ne=>ne.width!=null)&&!Ge&&Tt(`table-field-width:${S.map(ne=>ne.width==null?"-":"w").join("")}`,"[ihabdevteam-core] Table \uC758 fields \uC911 \uC77C\uBD80\uC5D0\uB9CC width \uAC00 \uC788\uC2B5\uB2C8\uB2E4. **\uBAA8\uB4E0 \uC5F4\uC5D0 \uC801\uC5B4\uC57C** \uC4F0\uC785\uB2C8\uB2E4 \u2014 \uC9C0\uAE08\uC740 gridTemplateColumns \uB97C \uC501\uB2C8\uB2E4. \uD55C \uC5F4\uB9CC \uACE0\uC815\uD558\uACE0 \uC2F6\uC73C\uBA74 \uB098\uBA38\uC9C0\uC5D0 `minmax(0, 1fr)` \uCC98\uB7FC \uC801\uC5B4 \uC8FC\uC138\uC694."),Ge&&g&&Tt("table-field-width-conflict","[ihabdevteam-core] Table \uC5D0 fields[].width \uC640 gridTemplateColumns \uAC00 \uB458 \uB2E4 \uC788\uC2B5\uB2C8\uB2E4. gridTemplateColumns \uAC00 \uC774\uAE41\uB2C8\uB2E4 \u2014 \uD55C\uCABD\uB9CC \uB450\uC138\uC694.");const kt=g??Ge??void 0,ut=Kv(kt),mt=ut.filter(ne=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(ne));mt.length>0&&Tt(`table-content-track:${g}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${mt.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: ${g})`);const St=S.findIndex(ne=>!!ne.sortDir);S.filter(ne=>!!ne.sortDir).length>1&&Tt("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 Ke=ne=>ne===St?S[ne].sortDir==="asc"?"ascending":"descending":S[ne].onClick?"none":void 0,gt=ne=>/^\d+(\.\d+)?px$/.test(ut[ne]??""),xt=ne=>{const ve=ut[ne]??"",Pe=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(ve)??/^(\d+(?:\.\d+)?)px$/.exec(ve);return Pe?parseFloat(Pe[1]):oe};Me.current=gt,z.current=xt,qe.current=ut;const Re=ne=>f==="fit"&&!gt(ne)?"fr":"px",Ye=at&&at.length===S.length&&!T,ft=Y??(Ye?S.map((ne,ve)=>ne.resizable===!1&&ut[ve]?ut[ve]:`${at[ve]}${Re(ve)}`).join(" "):kt),tt=ft?{"--table-grid-cols":ft}:void 0,Nt=k!==void 0;return n.jsxs("div",{ref:Le,className:`table-wrap table-wrap--${b}${ce?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${y?" table-wrap--collapsed":""}`,style:tt,onDragOver:F,onDragLeave:$,onDrop:K,tabIndex:ye?0:void 0,role:ye?"region":void 0,"aria-label":ye?typeof k=="string"?k:M("table.scrollRegion","\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"):void 0,children:[!!i&&n.jsx("span",{id:O,className:"table-row-hint",children:M("table.rowActionHint","\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4")}),n.jsxs("div",{ref:Oe,role:"table","aria-labelledby":Nt&&typeof k=="string"?H:void 0,className:"table body-2",children:[Nt&&n.jsxs("div",{className:Be("table-header",w&&"table-header--clickable"),onClick:w,role:"caption",children:[w&&n.jsx(be,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:y?"chevron-right":"chevron-down",ariaLabel:y?M("common.expand","\uD3BC\uCE58\uAE30"):M("common.collapse","\uC811\uAE30"),ariaExpanded:!y,className:"table-header__chevron"}),x&&n.jsx(ot,{icon:x,label:typeof k=="string"?k:void 0,className:"table-header__icon"}),n.jsx("span",{id:H,className:"table-header__title h5b",children:k}),N!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:N}),B&&n.jsx("span",{className:"table-header__actions",onClick:ne=>ne.stopPropagation(),children:B})]}),!y&&n.jsxs(n.Fragment,{children:[r&&r.length>0&&n.jsx("div",{role:"row",className:"table-fields table-fields--groups",children:r.map((ne,ve)=>n.jsx("div",{role:"columnheader","aria-colspan":ne.span,className:Be("table-field body-3",ne.className),style:{gridColumn:`span ${ne.span}`},children:ne.label},ve))}),n.jsxs("div",{role:"presentation",className:Be("table-fields-strip",ce&&"table-fields-strip--resizable"),children:[n.jsx("div",{role:"row",className:"table-fields",ref:W,children:S.map((ne,ve)=>n.jsx(Xv,{onClick:ne.onClick,className:Be(ne.className,zu(ne.align)),sortDir:ne.sortDir,ariaSort:Ke(ve),onResizeStart:ce&&ve<S.length-1&&ne.resizable!==!1&&(f!=="fit"||S.some((Pe,Qe)=>Qe>ve&&Pe.resizable!==!1))?Pe=>Dt(ve,Pe):void 0,children:ne.label},ve))}),ce&&n.jsx(be,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:M("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:M("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:Ve})]}),n.jsx("div",{role:"rowgroup",className:"table-body",children:D?n.jsx(Go,{variant:"loading",colSpan:S.length||void 0}):R.length===0&&E?n.jsx(Go,{variant:"empty",colSpan:S.length||void 0,children:E}):R.map((ne,ve)=>{const Pe=h!=null&&ne.id===h,Qe=!!i&&(u?u(ne):!0),yt=P!=null&&ne.id!=null&&(P instanceof Set?P.has(ne.id)||[...P].some(ct=>String(ct)===String(ne.id)):String(ne.id)===String(P));return n.jsx(Go,{className:`${Qe?" table-row--clickable":""}${m?" table-row--draggable":""}${Pe?" table-row--dragging":""}`.trim(),draggable:!!m,onClick:Qe?()=>i(ne):void 0,colSpan:S.length||void 0,rowHasButton:l(ne).some(ct=>!!ct.rowLabel),describedBy:O,onMouseEnter:c?ct=>c(ne,ct):void 0,onMouseLeave:d?ct=>d(ne,ct):void 0,onDragStart:m?ct=>m(ne,ct):void 0,onDragEnd:p?ct=>p(ne,ct):void 0,expandedContent:yt&&L?L(ne):void 0,children:l(ne).map((ct,Ft)=>n.jsx(Yv,{className:Be(ct.className,zu(S[Ft]?.align)),style:ct.style,rowLabel:Qe?ct.rowLabel:void 0,onRowClick:Qe?()=>i(ne):void 0,children:ct.content},Ft))},ne.id!=null?`${typeof ne.id}:${ne.id}`:`__idx:${ve}`)})})]})]})]})}const Jv={hearingAid:"hearingAid",cochlearImplant:"cochlearImplant",other:"other",\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant",\uAE30\uD0C0:"other"};function Wu(e){return e?Jv[e]??null:null}function Hu(e){switch(Wu(e)){case"hearingAid":return"main";case"cochlearImplant":return"sub";default:return"default"}}function Vu(e,t){const a=Wu(e);return a?t(`device.type.${a}`,{defaultValue:e??""}):e??""}const fa=e=>e==null?"":String(e).trim();function Yo(e,t,a,r){const s=fa(e),l=fa(t),i=fa(a);if(r&&s&&l&&i){const c=`${s.padStart(4,"0")}-${l.padStart(2,"0")}-${i.padStart(2,"0")}`,d=new Date(c);if(!Number.isNaN(d.getTime())&&d.toISOString().slice(0,10)===c){const m=zl(c,r);if(m)return m}}const u=[s,l,i];for(;u.length>0&&u[u.length-1]==="";)u.pop();return u.join(".")}function Qv(e,t,a){const r=fa(e);return r?`${r}-${fa(t).padStart(2,"0")}-${fa(a).padStart(2,"0")}`:""}function qu(e,t){return t!=="wornAt"?String(e[t]??""):Qv(e.wornYear,e.wornMonth,e.wornDay)}function e4({rows:e,loading:t,onSelect:a,onDelete:r,onWear:s,onRelease:l,onAdd:i}){const{t:u,i18n:c}=xe.useTranslation(),d=f=>f==="left"?u("device.direction.left","\uC88C"):u("device.direction.right","\uC6B0"),{sort:m,field:p}=By(),h=o.useMemo(()=>{if(!m)return e;const{key:f,asc:_}=m;return[...e].sort((b,k)=>{if(f==="worn"){const x=Number(k.worn)-Number(b.worn);return _?x:-x}return ur(qu(b,f),qu(k,f),_)})},[e,m]),{pageRows:g,pageSizeProps:v,paginationProps:C}=wy(h,m);return n.jsxs("div",{className:"dlp-side-table",children:[n.jsx(Po,{count:{value:e.length,unit:u("customers.device.unit","\uAC1C")},pageSize:v,pagination:C,actions:i&&n.jsx(be,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:u("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),n.jsx(Ko,{loading:t,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:g.map((f,_)=>({id:f.id??`${f.side}-${_}`,row:f})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${r?" 80px":""}`,renderRow:({row:f})=>[{content:n.jsx("span",{className:"dlp-worn-check",onClick:_=>_.stopPropagation(),children:n.jsx(wu,{checked:f.worn,disabled:f.worn?!l:!s,ariaLabel:f.worn?u("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):u("customers.device.wear","\uCC29\uC6A9"),onChange:_=>{_?s?.(f):l?.(f)}})})},{content:n.jsx("span",{children:d(f.side)})},{content:f.device?n.jsx($t,{size:"small",variant:Hu(f.device),fill:"soft",label:Vu(f.device,u)}):n.jsx("span",{})},{content:n.jsx("span",{children:f.brand})},{content:n.jsx("span",{children:f.fitType||"-"})},{content:n.jsx("span",{children:f.productName||"-"})},{content:n.jsx("span",{className:"dlp-date",children:Yo(f.wornYear,f.wornMonth,f.wornDay,c.language)||"-"})},...r?[{content:n.jsx("span",{className:"dlp-row-actions",children:n.jsx(be,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:u("common.delete","\uC0AD\uC81C"),onClick:_=>{_?.stopPropagation(),r(f)}})})}]:[]],onRowClick:({row:f})=>a(f),empty:u("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function Uu(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function t4(e,t){return new Date(e,t+1,0).getDate()}function n4(e,t){return new Date(e,t,1).getDay()}function a4({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r,today:s}){const{t:l,i18n:i}=xe.useTranslation(),u=o.useMemo(()=>l("calendar.dow",{returnObjects:!0}),[l]),c=lo(s),[d,m]=o.useState(()=>Number(c.slice(0,4))),[p,h]=o.useState(()=>Number(c.slice(5,7))-1),[g,v]=o.useState(null),C=o.useRef(null),f=o.useMemo(()=>{const y={};return e.forEach(w=>{y[w.date]||(y[w.date]=[]),y[w.date].push(w)}),y},[e]),_=o.useMemo(()=>{const y=t4(d,p),w=n4(d,p),B=[];for(let E=0;E<w;E++)B.push(null);for(let E=1;E<=y;E++)B.push(E);for(;B.length<35;)B.push(null);return B},[d,p]),b=o.useCallback(()=>{p===0?(m(y=>y-1),h(11)):h(y=>y-1)},[p]),k=o.useCallback(()=>{p===11?(m(y=>y+1),h(0)):h(y=>y+1)},[p]),x=y=>`${d}-${String(p+1).padStart(2,"0")}-${String(y).padStart(2,"0")}`,N=y=>x(y)===c;return n.jsxs("div",{children:[n.jsxs("div",{className:"calendar-nav",children:[n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:b,"aria-label":l("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(ot,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:so(l,i.language,d,p+1)}),n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:k,"aria-label":l("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(ot,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsxs("div",{className:"calendar-nav__legend",children:[n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),n.jsx("span",{className:"caption-1",children:l("calendar.legend.visited","\uBC29\uBB38")}),n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),n.jsx("span",{className:"caption-1",children:l("calendar.legend.scheduled","\uC608\uC57D")}),n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),n.jsx("span",{className:"caption-1",children:l("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),n.jsxs("div",{className:"calendar-grid",children:[u.map(y=>n.jsx("div",{className:"calendar-day-header body-3",children:y},y)),_.map((y,w)=>{if(y===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${w}`);const B=y,E=x(B),D=f[E]??[],A=zl(E,i.language),F=g===E;return n.jsxs("div",{className:`calendar-cell${N(B)?" today":""}${F?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?l("calendar.addOnDate",{date:E}):void 0,"aria-current":N(B)?"date":void 0,onClick:r?()=>r(E):void 0,onKeyDown:r?$=>{$.target===$.currentTarget&&($.key!=="Enter"&&$.key!==" "||($.preventDefault(),r(E)))}:void 0,onDragOver:a?$=>{$.preventDefault(),v(E)}:void 0,onDragLeave:a?$=>{$.currentTarget.contains($.relatedTarget)||v(null)}:void 0,onDrop:a?$=>{$.preventDefault(),C.current!=null&&(a(C.current,E),C.current=null),v(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:B}),D.length>0&&(()=>{const $=[{key:"visited",label:l("calendar.legend.visited","\uBC29\uBB38"),count:D.filter(L=>(L.status??"visited")==="visited").length},{key:"scheduled",label:l("calendar.legend.scheduled","\uC608\uC57D"),count:D.filter(L=>L.status==="scheduled").length},{key:"noVisit",label:l("calendar.legend.noVisit","\uBBF8\uBC29\uBB38"),count:D.filter(L=>L.status==="noVisit").length}].filter(L=>L.count>0),K=$.length===1&&$[0].key==="visited"?l("calendar.visitCount",{count:D.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}):$.map(L=>l("calendar.statusCount",{label:L.label,count:L.count,defaultValue:"{{label}} {{count}}\uAC74"})).join(" \xB7 ");return n.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":`${A} ${K}`,children:[$.map(L=>n.jsx("span",{className:`calendar-cell__visit-dot calendar-cell__visit-dot--${L.key}`,"aria-hidden":"true"},L.key)),D.length]})})(),n.jsx("div",{className:"calendar-cell__badges",children:D.map(($,K)=>n.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${$.status==="noVisit"?" calendar-visit-badge--no-visit":$.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?L=>{C.current=$.id,L.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{C.current=null,v(null)}:void 0,onClick:t?L=>{L.stopPropagation(),t($)}:void 0,...Uu(t?()=>t($):void 0),"aria-label":[A,$.time?Ul($.time,l):null,$.customer,l($.status==="noVisit"?"calendar.legend.noVisit":$.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[$.time&&n.jsx("span",{className:"calendar-visit-badge__time body-3",children:Ul($.time,l)}),n.jsx("span",{className:"calendar-visit-badge__name body-3",children:$.customer}),$.status==="noVisit"&&n.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:l("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},$.id??K))})]},B)})]})]})}const r4={page:"h3",pagePopup:"h4",popup:"h5"};function ba({type:e="page",title:t,headingLevel:a=2,icon:r,action:s,disc:l,children:i,inGrid:u=!1,className:c,style:d}){const m=r4[e],p=t||l||s||r,h=a?`h${a}`:"div";return n.jsxs("div",{className:Be("section",`section--${e}`,u&&"section--in-grid",c),style:d,children:[p&&n.jsxs("div",{className:"section__header",children:[n.jsxs("div",{className:"section__title-row",children:[r&&n.jsx(ot,{icon:r,label:typeof t=="string"?t:void 0,className:"section__icon"}),n.jsxs("div",{className:"section__title-group",children:[t&&n.jsx(h,{className:`section__title ${m}`,children:t}),l&&n.jsx("div",{className:"section__disc body-3",children:l})]})]}),s&&n.jsx("div",{className:"section__action",children:s})]}),i]})}let Zo=null,Gu=!1;function Ku(){if(Gu||typeof document>"u")return;Gu=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(Zo="keyboard")},!0);const e=()=>{Zo="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}Ku();function br(){return Ku(),Zo==="keyboard"}const gr=20;function o4(e){const{t}=xe.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:l,completedIds:i,selectedIds:u,onItemComplete:c,size:d,useDescriptionTooltip:m,onRemove:p,onMore:h,sectionType:g="page"}=e||{},[,v]=o.useState(0),C=typeof r<"u"?Array.isArray(r)?r:[]:[],f=C.length,[_,b]=o.useState(Math.min(f,gr)),k=o.useMemo(()=>Array.isArray(s)?[...s,a?.label].filter(Boolean).join(" \xB7 "):[s||"",a?.label].filter(Boolean).join(" \xB7 "),[s,a?.label]);o.useEffect(()=>{b(Math.min(f,gr))},[f]),Ri("speechear.data.updated",()=>v(w=>w+1));const x=o.useRef(null),N=o.useRef(null);function y(){const w=document.activeElement;N.current=br()&&w&&w.closest?.(".training-block__more")?_:null,b(B=>Math.min(f,B+gr))}return o.useEffect(()=>{const w=N.current;if(w==null)return;N.current=null;const B=document.activeElement;B&&B!==document.body||x.current?.querySelectorAll(".training-block-button")[w]?.focus()},[_]),n.jsxs(ba,{type:g,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[n.jsx("div",{className:"training-list",ref:x,children:(C||[]).slice(0,_).map((w,B)=>{const E=w;return n.jsx(Lo,{index:B,type:a,trainingData:E,depth:k,renderPopup:l,completedIds:i,selectedIds:u,size:d,useDescriptionTooltip:m,onRemove:typeof p=="function"&&u!=null&&E?.id!=null&&u.has(String(E.id))?()=>p(E):void 0,onComplete:typeof c=="function"&&E?.id!=null?()=>c(String(E.id)):void 0,onMore:typeof h=="function"?D=>h(E,D):void 0},E?.id!=null?`${a?.key||"t"}-${String(E.id)}`:`${a?.key||"t"}-${B}`)})}),f>gr&&_<f&&n.jsx("div",{className:"training-block__more",children:n.jsx(be,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:y,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function s4(e){let t=0;const a=r=>{Array.isArray(r)?r.forEach(a):r!=null&&r!==!1&&r!==!0&&r!==""&&t++};return a(e),t}function l4({gap:e=10,count:t,className:a,children:r}){const s=o.useRef(null),[l,i]=o.useState({width:0,card:0}),u=t??s4(r);o.useLayoutEffect(()=>{const h=s.current;if(!h)return;const g=()=>{const C=h.style.maxWidth;h.style.maxWidth="none";const f=h.clientWidth;h.style.maxWidth=C;const _=h.firstElementChild?.offsetWidth??0;i(b=>b.width===f&&b.card===_?b:{width:f,card:_})};if(g(),typeof ResizeObserver>"u")return;const v=new ResizeObserver(g);return v.observe(h),()=>v.disconnect()},[u,e]);const c=l.card>0?l.card:0,d=c>0?mf(l.width,c,e):0,m=d>0?hf(u,d):0,p={"--block-grid-gap":`${e}px`,...m>0?{"--block-grid-cols":m,"--block-grid-card":`${c}px`}:{}};return n.jsx("div",{ref:s,className:Be("training-block-grid",m>0&&"training-block-grid--measured",a),style:p,"data-cols":m>0?m:void 0,children:r})}function Xo(e){const t=o.useRef(null),a=o.useRef(e);a.current=e;const[r,s]=o.useState({url:e,loading:!!e,failed:!1}),l=r.url===e?r:{loading:!!e,failed:!1};o.useEffect(()=>{const c=t.current;s({url:e,failed:!1,loading:!!e&&!(c?.complete&&c.naturalWidth>0)})},[e]);const i=o.useCallback(()=>{a.current===e&&s({url:e,loading:!1,failed:!1})},[e]),u=o.useCallback(()=>{a.current===e&&s({url:e,loading:!1,failed:!0})},[e]);return{imgRef:t,loading:l.loading,failed:l.failed,hasImage:!!e&&!l.failed,onLoad:i,onError:u}}var i4='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_SpeechEar_mono" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><g id="symbol"><g opacity=".3"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>';const u4=i4,Jo=o.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:s=!1,onSelect:l,flipDelay:i=0,hideLabel:u=!1,hideAudio:c=!1,orderRank:d=null},m){const{t:p}=xe.useTranslation(),h=e.word||e.title||"",g=t||!h,v=e.audio??e.sound??e.audioKey,C=e.subLabel||e.pronunciation||"",f=e.colloquialLabel||"",[_,b]=o.useState({label:h,subLabel:C,colloquialLabel:f,homonum:e.homonum});h&&(_.label!==h||_.subLabel!==C||_.colloquialLabel!==f||!Object.is(_.homonum,e.homonum))&&b({label:h,subLabel:C,colloquialLabel:f,homonum:e.homonum});const k=o.useRef(null),x=hn("(max-width: 767px)"),[N,y]=o.useState(!1),w=`${typeof v=="string"?v:v?.src??""}\0${h}`,[B,E]=o.useState({for:"",url:""}),D=B.for===w?B.url:"",A=Il(),F=e.textOnly??(!e.image&&!!_.label&&!!A&&A.entries.length>0&&!A.byWord.has(_.label)),$=F?"":la()?.(_.label,_.homonum)??e.image??"",{imgRef:K,loading:L,hasImage:P,onLoad:M,onError:G}=Xo($);o.useEffect(()=>{let R=!1;return(async()=>{if(v){if(typeof v=="string"){if(v.startsWith("http")||v.includes("/")){E({for:w,url:v});return}}else if(typeof v=="object"&&!Array.isArray(v)){const Y=v.src;if(Y){E({for:w,url:Y});return}}}const T=Na();if(T&&h)try{const Y=await Promise.resolve(T(h));!R&&Y&&E({for:w,url:Y})}catch{}})(),()=>{R=!0}},[v,h,w]);const H=o.useRef(!0),O=o.useRef(null);o.useEffect(()=>(H.current=!0,()=>{H.current=!1,O.current&&mr(O.current),O.current=null;try{k.current?.pause()}catch{}k.current=null}),[]);const Q=o.useCallback(()=>new Promise(R=>{if(typeof window<"u"&&window.speechSynthesis&&h){y(!0),window.speechSynthesis.cancel();const T=new SpeechSynthesisUtterance(h);T.lang="ko-KR",T.onend=()=>{y(!1);try{a?.()}catch{}R()},T.onerror=()=>{y(!1),R()},window.speechSynthesis.speak(T)}else R()}),[h,a]),I=o.useCallback(R=>{const T=hr(R,Y=>{if(y(!1),Y)try{a?.()}catch{}});return k.current=T.el,T.done},[a]),q=o.useCallback(async()=>{if(t||!H.current)return;const R=()=>{O.current===R&&(O.current=null);try{k.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}y(!1)},T=pr(R);O.current=R;try{window.speechSynthesis?.cancel()}catch{}try{if(D&&(y(!0),await I(D)))return;const Y=Jr();if(Y&&h)try{const ce=await Promise.resolve(Y(h));if(!H.current||O.current!==R||ce&&(y(!0),await I(ce)))return}catch{}if(!H.current||O.current!==R)return;await Q()}finally{T(),O.current===R&&(O.current=null)}},[t,D,h,I,Q]);o.useImperativeHandle(m,()=>({play:()=>q()}),[q]);const Z=R=>R.stopPropagation(),V=o.useCallback(R=>{if(R.stopPropagation(),!t){if(N){try{k.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}y(!1);return}q()}},[t,N,q]),S=Be("training-word-card",t?"training-word-card--disabled":"",g?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return n.jsx("div",{className:S,onClick:r&&!t?l:void 0,role:r?"button":void 0,"aria-pressed":r?s:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?R=>{R.target===R.currentTarget&&(R.key==="Enter"||R.key===" "||R.key==="Spacebar")&&(R.preventDefault(),l?.())}:void 0,children:n.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:g?"0ms":`${i}ms`},children:[n.jsxs("div",{className:"training-word-card__front",children:[s&&n.jsx("div",{className:"training-word-card__selected-badge",onClick:Z,children:n.jsx($t,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?p("training.nthSelected",{n:d}):p("training.selected","\uC120\uD0DD\uB428")})}),n.jsx("div",{className:"training-word-card__image-wrap",children:F?n.jsx("div",{className:"training-word-card__text-face",children:_.label}):P?n.jsxs(n.Fragment,{children:[L&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:K,className:"training-word-card__image",src:$,alt:_.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:L?0:1},onLoad:M,onError:G})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!u&&n.jsxs("div",{className:"training-word-card__body",children:[!F&&n.jsx("div",{className:"training-word-card__word",children:_.label}),_.subLabel&&n.jsxs("div",{className:"training-word-card__pronunciation",children:["[",_.subLabel,"]"]}),_.colloquialLabel&&n.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",_.colloquialLabel,"]"]})]}),!c&&n.jsx("div",{className:"training-word-card__bottom",onClick:r?Z:void 0,children:n.jsx(be,{htmlType:"button",size:x?40:48,type:x?"dot":"bar",icon:N?"pause":"play",label:x?void 0:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:N,onClick:V,disabled:t,ariaLabel:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),n.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:n.jsx("span",{className:"training-word-card__disabled-symbol",style:{"--disabled-symbol-src":`url("${u4}")`}})})]})})}),c4=260;function Wn(e){const{t}=xe.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:l,children:i,buttons:u,footer:c,footerStart:d,footerEnd:m,footerNote:p,footerNoteDivider:h=!1,footerClassName:g="",footerLayout:v="center",onClose:C,closeDisabled:f=!1,beforeClose:_,closeOnBackdrop:b=!0,className:k="",ariaLabel:x,useTitle:N=!0,inline:y=!1,size:w,layer:B="modal",height:E,fillBody:D=!1,resetScrollKey:A}=e||{},[F,$]=o.useState(!1),K=o.useRef(!1),L=o.useRef(null),P=o.useId(),M=o.useRef(null);o.useEffect(()=>{},[y,a,x,k]),o.useEffect(()=>{A!==void 0&&M.current&&(M.current.scrollTop=0)},[A]);const[G,H]=o.useState(!1);o.useEffect(()=>{const z=M.current;if(!z)return;const ee=()=>H(z.scrollHeight>z.clientHeight+1);if(ee(),typeof ResizeObserver>"u")return;const W=new ResizeObserver(ee);W.observe(z);const U=z.firstElementChild;return U&&W.observe(U),()=>W.disconnect()},[i,A]),o.useEffect(()=>{if(!y)return bu()},[y]);const O=o.useRef(typeof document>"u"?null:document.activeElement);o.useEffect(()=>{if(y)return;const z=O.current,ee=L.current;return fo(ee,z),ee&&!ee.contains(document.activeElement)&&(ee.querySelector(xn)??ee).focus(),()=>{const W=document.activeElement;(!W||W===document.body||ee&&ee.contains(W))&&bo(z)?.focus?.()}},[y]),ho(L,!y);const Q=o.useRef(!0),I=go(),q=o.useRef(null);o.useEffect(()=>(Q.current=!0,()=>{Q.current=!1,q.current&&(clearTimeout(q.current),q.current=null)}),[]);const Z=o.useCallback(()=>{!Q.current||!K.current||(K.current=!1,$(!1))},[]),V=o.useCallback((z,ee=!1)=>{if(ee&&!Q.current||K.current)return;K.current=!0,$(!0);const W=setTimeout(()=>{q.current===W&&(q.current=null);let U;try{U=z?z():void 0}catch{Z();return}U&&typeof U.then=="function"&&U.then(()=>{setTimeout(Z,120)},Z)},I?0:c4);ee&&(q.current=W)},[Z,I]),S=o.useCallback(()=>{f||_&&_()===!1||V(C,!0)},[V,C,f,_]),R=o.useRef(S);o.useEffect(()=>{R.current=S});const T=!y&&!!C;o.useEffect(()=>{if(T)return Gn(()=>R.current())},[T]);const Y=T&&b,ce=o.useRef(!1),re=z=>{ce.current=z.target===z.currentTarget},oe=z=>{const ee=ce.current;ce.current=!1,ee&&z.target===z.currentTarget&&S()},ae=n.jsx("div",{className:`popup ${y?"popup--inline":""} ${B==="belowPagePopup"?"popup--below-page-popup":""} ${F?"popup--closing":""} ${k}`,onPointerDown:Y?re:void 0,onClick:Y?oe:void 0,onMouseDown:y?void 0:z=>{z.target===z.currentTarget&&z.preventDefault()},children:n.jsxs("div",{ref:L,className:`popup-panel${w?` popup-panel--${w}`:""}${E!=null?" popup-panel--has-height":""}${D?" popup-panel--fill-body":""}`,style:E!=null?{"--popup-height":typeof E=="number"?`${E}px`:E}:void 0,tabIndex:-1,role:y?void 0:"dialog","aria-modal":y?void 0:!0,"aria-labelledby":!y&&N&&a?P:void 0,"aria-label":!y&&!(N&&a)?x??(typeof a=="string"?a:void 0):void 0,children:[!N&&(s||C)?n.jsxs("div",{className:"popup-close-float",children:[s,C&&n.jsx(be,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:S,disabled:f,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||s||C?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[a?n.jsx("h2",{id:P,className:"popup-title popup-title--left h2",children:a}):n.jsx("span",{id:P,className:"popup-title popup-title--left h2"}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),l&&n.jsx("div",{className:"popup-header-segment",children:n.jsx(_n,{size:40,ariaLabel:l.ariaLabel,options:l.options.map(z=>({key:z.key,label:z.label,disabled:z.disabled})),value:l.value,onChange:l.onChange})}),n.jsxs("div",{className:"popup-header-actions",children:[s,C&&n.jsx(be,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:S,disabled:f,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:M,tabIndex:G?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:V,closeWithAnimation:S}):i})}),p!=null&&p!==!1&&n.jsx("div",{className:`popup-footer-note caption-1${h?" popup-footer-note--divider":""}`,role:"note",children:p}),d||m?n.jsxs("div",{className:`popup-footer popup-footer--bar${g?` ${g}`:""}`,children:[n.jsx("div",{className:"popup-footer__start",children:typeof d=="function"?d({animateThen:V,closeWithAnimation:S}):d}),n.jsx("div",{className:"popup-footer__end",children:typeof m=="function"?m({animateThen:V,closeWithAnimation:S}):m})]}):u?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${v!=="center"?` popup-footer--${v}`:""}`,children:u.map((z,ee)=>n.jsx(be,{htmlType:"button",size:48,variant:z.variant??"default",label:z.label,disabled:z.disabled,onClick:()=>z.onClick?.({animateThen:V,closeWithAnimation:S})},ee))}):c?n.jsx("div",{className:`popup-footer${v!=="center"?` popup-footer--${v}`:""}${g?` ${g}`:""}`,children:typeof c=="function"?c({animateThen:V,closeWithAnimation:S}):c}):null]})});return y||typeof document>"u"?ae:sn.createPortal(ae,document.body)}function yr(e){return String(e)}const vr=["o","triangle","x"];function Yu(e,t){return e===t?null:t}const Zu={o:"circle",triangle:"triangle",x:"x"},Xu={o:"main",triangle:"warn",x:"danger"};function d4(e){let t=0,a=0,r=0;for(const l of Object.values(e))l==="o"?t++:l==="triangle"?a++:l==="x"&&r++;const s=t+a+r;return{marked:s,o:t,triangle:a,x:r,rate:s===0?null:(t+a*.5)/s}}function Qo(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function Ju(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function p4(e,t){return!t&&e>0}const Jn={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 m4(e="landscape"){Tt("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:t,printW:a,printH:r}=Jn[e],s=document.createElement("style");s.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(s);const l=()=>{document.head.removeChild(s),window.removeEventListener("afterprint",l)};window.addEventListener("afterprint",l),window.print()}function Qu(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let s=0;s<e.length;s+=a)r.push(e.slice(s,s+a));return r}const h4={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},13:{cols:5,rows:3},14:{cols:5,rows:3},15:{cols:5,rows:3},16:{cols:6,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},13:{cols:4,rows:4},14:{cols:4,rows:4},15:{cols:4,rows:4},16:{cols:4,rows:4}}};function ec(e,t){const a=h4[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),s=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let l,i;return e==="landscape"?(i=s,l=Math.ceil(r/i)):(l=s,i=Math.ceil(r/l)),(e==="landscape"?l<i:i<l)&&([l,i]=[i,l]),{cols:l,rows:i}}function C4(e,t){const a=ec(e==="landscape"?"portrait":"landscape",t),r=Math.max(1,Math.ceil(t));if(r<=1)return a;const s=Jn[e],l=e==="landscape"?s.width/2:s.width,i=e==="landscape"?s.height:s.height/2,u=(h,g)=>Math.min(l/h/oc,i/g/sc),c=Math.max(0,a.cols*a.rows-r),d=u(a.cols,a.rows);let m=a,p=d;for(let h=1;h<=r;h++){const g=Math.ceil(r/h);if(h*g-r>c)continue;const v=u(h,g);v>p&&(m={cols:h,rows:g},p=v)}return p>d*1.05?m:a}const f4={show:"word-table-block__content--cut-show",dashed:"",corner:"word-table-block__content--cut-corner",hide:""},tc={\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"},nc={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"},es={\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"},ts={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function ac(e){return Object.fromEntries(Object.entries(tc).map(([t,a])=>[t,es[t]?e(`wordTable.pos.${es[t]}`,{defaultValue:a}):a]))}function rc(e){return Object.fromEntries(Object.entries(nc).map(([t,a])=>[t,ts[t]?e(`wordSearch.filter.type.${ts[t]}`,{defaultValue:a}):a]))}const b4={pos:es,wordType:ts};function ns(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function as(e,t,a,r){if(r!=="dashed")return{};const s=e%t,l=Math.floor(e/t),i=s<t-1,u=l<a-1;if(!i&&!u)return{};const c="#ddd",d=g=>`repeating-linear-gradient(to ${g}, ${c} 0, ${c} 5px, transparent 5px, transparent 10px)`,m=[],p=[],h=[];return i&&(m.push(d("bottom")),p.push("1px 100%"),h.push("right center")),u&&(m.push(d("right")),p.push("100% 1px"),h.push("center bottom")),{backgroundImage:m.join(", "),backgroundSize:p.join(", "),backgroundPosition:h.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const oc=280,g4=240,y4=280,sc=400,v4=120,x4=280;function lc(e,t){const a=o.useRef(null),[r,s]=o.useState(1),[l,i]=o.useState(0),u=o.useCallback((c,d)=>{if(!(c>0))return;const m=c/e,p=t&&d>0?d/t:1/0,h=Math.min(1,m,p);s(h),i(Math.max(0,(c-e*h)/2))},[e,t]);return o.useEffect(()=>{const c=a.current;if(!c)return;const d=t?c.parentElement??c:c;if(u(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const m=new ResizeObserver(([p])=>u(p.contentRect.width,p.contentRect.height));return m.observe(d),()=>m.disconnect()},[u,t]),{scalerRef:a,scale:r,offset:l}}const _4=24,w4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},B4=400,ic=8;function rs({label:e,subLabel:t,colloquialLabel:a,captionLabel:r,homonum:s,showWord:l=!0,showImage:i=!0,showPronunciation:u=!0,showColloquial:c=!0,buttonSize:d=40,wordInfo:m,outerScale:p=1}){const{t:h}=xe.useTranslation(),g=o.useRef(null),v=o.useRef(null),C=o.useRef(null),[f,_]=o.useState(1),[b,k]=o.useState(!1),[x,N]=o.useState({for:"",url:""}),[y,w]=o.useState(null),B=t&&t.length>0?t:IC()?.(e,s)??"",E=la()?.(e,s)??"",{imgRef:D,loading:A,failed:F,onLoad:$,onError:K}=Xo(E),L=o.useCallback(()=>w(v.current?.getBoundingClientRect()??null),[]),P=o.useCallback(()=>w(null),[]),M=vo(!!y,T=>{T?L():P()},v),G=o.useMemo(()=>{if(!m)return null;const T=[];return m.grade&&T.push(h("wordTable.info.grade",{n:m.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),m.syllables&&T.push(h("wordTable.info.syllables",{n:m.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),m.pos&&T.push(h("wordTable.info.pos",{v:ns(m.pos,ac(h)),defaultValue:"\uD488\uC0AC: {{v}}"})),m.wordType&&T.push(h("wordTable.info.wordType",{v:ns(m.wordType,rc(h)),defaultValue:"\uC720\uD615: {{v}}"})),T.length?T:null},[m,h]),H=B||e,O=x.for===H?x.url:"";o.useEffect(()=>{const T=Na(),Y=B||e;if(!T||!Y)return;let ce=!1;return Promise.resolve(T(Y)).then(re=>{!ce&&re&&N({for:Y,url:re})}),()=>{ce=!0}},[B,e]);const Q=o.useRef(null),I=o.useRef(null);o.useEffect(()=>()=>{C.current?.pause(),I.current?.()},[]);const q=o.useCallback(T=>{if(T.stopPropagation(),b){Q.current?.();return}if(!O)return;k(!0);const Y=hr(O,()=>{k(!1),I.current?.()});C.current=Y.el,Q.current=Y.stop,I.current=pr(Y.stop)},[b,O]),Z=i&&!!E&&!F,V=Z&&l?oc:Z?y4:g4,S=Z&&l?sc:Z?x4:v4;o.useEffect(()=>{const T=g.current;if(!T||typeof ResizeObserver>"u")return;const Y=new ResizeObserver(([ce])=>{const{width:re,height:oe}=ce.contentRect;_(Math.min(re/V,oe/S))});return Y.observe(T),()=>Y.disconnect()},[V,S]);const R=d*p<_4;return n.jsxs("div",{ref:g,className:Be("word-table-cell",R&&"word-table-cell--tap-too-small",Z?"word-table-cell--with-image":""),"data-ref-w":V,"data-ref-h":S,children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${f})`},children:[Z&&n.jsxs("div",{className:"word-table-cell__image-wrap",children:[A&&n.jsx("div",{className:"word-table-cell__spinner"}),n.jsx("img",{ref:D,className:"word-table-cell__image",src:E,alt:e,draggable:!1,style:{opacity:A?0:1},onLoad:$,onError:K})]}),l&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),r&&n.jsx("span",{className:"word-table-cell__caption h5",children:r}),u&&B&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",B,"]"]}),c&&a&&n.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),n.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":O,children:[n.jsx("span",{"data-play-state":"play",style:{display:b?"none":void 0},children:n.jsx(be,{htmlType:"button",size:d,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:h("common.play","\uC7AC\uC0DD"),ariaLabel:e?h("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):h("common.play","\uC7AC\uC0DD"),onClick:q})}),n.jsx("span",{"data-play-state":"pause",style:{display:b?void 0:"none"},children:n.jsx(be,{htmlType:"button",size:d,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:h("common.pause","\uBA48\uCDA4"),ariaLabel:e?h("common.pauseFor",{name:e,defaultValue:`${e} \uBA48\uCDA4`}):h("common.pause","\uBA48\uCDA4"),onClick:q})})]}),m&&n.jsxs("div",{ref:v,className:"word-table-cell__info-button",onPointerEnter:T=>{da(T)||L()},onPointerLeave:T=>{da(T)||P()},onFocus:()=>{pa()||L()},onBlur:P,children:[n.jsx(be,{htmlType:"button",size:d,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:h("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:T=>{T.stopPropagation(),M.touchPress()}}),y&&G&&n.jsx(Kn,{anchorRect:y,items:G,showIndex:!1})]})]})}function ga({title:e,titleIcon:t,disc:a,className:r,orientation:s="landscape",contentTypes:l=["image","word","standardPron"],baseItem:i,baseContentTypes:u,cutLine:c="show",showOutline:d=!0,showDivLine:m=!0,items:p,editCells:h,count:g,activeCell:v=null,onActivateCell:C,onRemoveCell:f,onRemoveItem:_,onReorder:b,renderCellAction:k,showFillerAdd:x=!1,contentRef:N,buttonSize:y=40,brand:w,code:B,pageNumber:E,pageNumberPosition:D="right",fitHeight:A=!1,scoring:F=!1,marks:$,onMarkClick:K,scoreIndexOffset:L=0}){const P=o.useCallback((ke,$e)=>{K?.(L+ke,$e)},[K,L]),M=(ke,$e)=>{const je=$?.[yr(L+ke)]??null;return n.jsx("div",{className:Be("word-table-cell__score",je?"word-table-cell__score--marked":""),style:lt>1?{transform:`translateX(-50%) scale(${lt})`,transformOrigin:"bottom center"}:void 0,children:vr.map(Ve=>n.jsx("span",{className:Be("word-table-cell__score-slot",je===Ve?"word-table-cell__score-slot--on":""),children:n.jsx(be,{htmlType:"button",size:y,type:"dot",shape:"pill",icon:Zu[Ve],variant:je===Ve?Xu[Ve]:"default",selected:je===Ve,useBorder:!1,...nt?{}:{tabIndex:-1,role:"img"},showTooltipInfo:G(`wordTable.scoring.markName.${Ve}`,{defaultValue:Ve}),ariaLabel:G(`wordTable.scoring.${Ve}`,{word:$e,defaultValue:`${$e} ${Ve}`}),onClick:nt?Ge=>{Ge.stopPropagation(),P(ke,Ve)}:void 0})},Ve))})},{t:G}=xe.useTranslation(),H=h!==void 0,O=e!=null||!!t||!!a,Q=hn("(max-width: 767px)"),I=o.useRef(null),[q,Z]=o.useState(null),V=p?.length??0,[S,R]=o.useState(null),[T,Y]=o.useState(""),ce=o.useRef(null),re=o.useRef(null),oe=o.useRef(null),ae=o.useRef(null),z=o.useCallback(ke=>{re.current=ke,typeof N=="function"?N(ke):N&&(N.current=ke)},[N]),ee=o.useCallback((ke,$e)=>{ce.current=$e,b?.(ke,$e),Y(G("wordTable.reorder.moved",{n:$e+1,total:V,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[b,G,V]);o.useEffect(()=>{const ke=ce.current;ke!=null&&(ce.current=null,re.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler):not(.word-table-block__card--base)")?.[ke]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{ae.current?.()},[]);const W=o.useCallback((ke,$e)=>{if(!b||!ke.altKey||ke.ctrlKey||ke.metaKey)return;const je=ke.key==="ArrowRight";if(!je&&ke.key!=="ArrowLeft")return;ke.preventDefault();const Ve=$e+(je?1:-1);Ve<0||Ve>=V||ee($e,Ve)},[b,V,ee]),U=o.useCallback((ke,$e)=>{if(!b||ke.pointerType==="mouse")return;const je=ke.target.closest?.("button");if(je&&!je.closest(".word-table-block__card-handle"))return;ae.current?.();const Ve={x:ke.clientX,y:ke.clientY};let Ge=!1;const kt=Ye=>{Ge&&Ye.cancelable&&Ye.preventDefault()};let ut=null,mt=null;const St=()=>{const Ye=mt;if(!Ye)return;const ft=document.elementFromPoint?.(Ye.x,Ye.y)?.closest?.("[data-wordtable-cell]"),tt=ft?Number(ft.dataset.wordtableCell):NaN,Nt=Number.isInteger(tt)?tt:null;oe.current=Nt,Z(ne=>ne===Nt?ne:Nt)},Ke=Ye=>{if(!Ge){(Math.abs(Ye.clientX-Ve.x)>ic||Math.abs(Ye.clientY-Ve.y)>ic)&&Re();return}if(mt={x:Ye.clientX,y:Ye.clientY},typeof requestAnimationFrame>"u"){St();return}ut===null&&(ut=requestAnimationFrame(()=>{ut=null,St()}))},gt=()=>{ut!==null&&(cancelAnimationFrame(ut),ut=null,St());const Ye=oe.current,ft=Ge;Re(),ft&&Ye!=null&&Ye!==$e&&ee($e,Ye)},xt=setTimeout(()=>{Ge=!0,R($e),oe.current=$e,Z($e),window.addEventListener("touchmove",kt,{passive:!1})},B4);function Re(){clearTimeout(xt),window.removeEventListener("pointermove",Ke),window.removeEventListener("pointerup",gt),window.removeEventListener("pointercancel",gt),window.removeEventListener("touchmove",kt),Ge=!1,ut!==null&&(cancelAnimationFrame(ut),ut=null),oe.current=null,ae.current=null,R(null),Z(null)}ae.current=Re,window.addEventListener("pointermove",Ke),window.addEventListener("pointerup",gt),window.addEventListener("pointercancel",gt)},[b,ee]),{width:de,height:De}=Jn[s],ye=typeof A=="number"?A:A&&typeof A=="object"?Q?A.narrow:A.wide:null,{scalerRef:pe,scale:ie,offset:ge}=lc(de,A?De:void 0),he=H?h?.length??0:p?.length??0,se=Math.max(g??he,1),Le=!H&&!!i,Oe=C4(s,se),Me=ec(s,se),qe=Le?Oe.cols:Me.cols,We=Le?Oe.rows:Me.rows,dt=Le&&s==="landscape"?Oe.cols*2:qe,at=Le&&s==="portrait"?Oe.rows*2:We,st=ke=>({word:ke.length===0||ke.includes("word"),image:ke.length===0||ke.includes("image"),pron:ke.length===0||ke.includes("standardPron"),colloq:ke.length===0||ke.includes("colloquialPron")}),it=st(l),Ee=st(u??l),Ue=H?(h??[]).some(ke=>ke!==null&&ke.length>1):(p??[]).some(ke=>(ke.words??[]).length>1),Ae=!!w?.show,He=!!w?.show&&w?.top!==!1,et=!!w?.show&&w?.bottom!==!1,pt=w?.copyright??"\xA9 IHAB, Inc. All rights reserved.",Dt=Be("word-table-block__content",f4[c],d&&"word-table-block__content--outline",m&&Ue&&"word-table-block__content--div-line",!Ae&&E&&D!=="none"&&"word-table-block__content--page-number",He&&"word-table-block__content--brand-top",et&&"word-table-block__content--brand-bottom"),vt={transform:`scale(${1/ie})`,transformOrigin:"center center"},Pt=y*vr.length+4*(vr.length-1),nt=!!K,lt=nt?Math.max(1,Math.min(1/ie,de/dt/Pt)):1,At=n.jsxs("div",{ref:pe,className:"word-table__scaler",style:{height:De*ie},children:[n.jsx("div",{className:Be("word-table",F&&!nt&&"word-table--score-readonly",!O&&r),style:{width:de,height:De,transform:`scale(${ie})`,transformOrigin:"top left",marginLeft:ge},children:n.jsxs("div",{ref:z,className:Dt,style:{gridTemplateColumns:`repeat(${dt}, 1fr)`,gridTemplateRows:`repeat(${at}, 1fr)`},children:[H?n.jsx(n.Fragment,{children:(h??[]).map((ke,$e)=>n.jsx("div",{className:Be("word-table-block__edit-cell",ke?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",v===$e?"word-table-block__edit-cell--active":""),style:as($e,dt,at,c),children:ke?n.jsxs(n.Fragment,{children:[ke.map((je,Ve)=>n.jsxs(o.Fragment,{children:[Ve>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(rs,{outerScale:ie,label:je.word,subLabel:je.pronunciation,colloquialLabel:je.colloquialPronunciation,homonum:je.homonum,showWord:it.word,showImage:it.image,showPronunciation:it.pron,showColloquial:it.colloq,buttonSize:y})]},Ve)),F&&M($e,ke.map(je=>je.word).join(" / ")),f&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(be,{htmlType:"button",size:y,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:ke.length>1?G("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):G("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:ke.length>1?G("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):G("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f($e)})})]}):C&&n.jsx("div",{style:vt,children:n.jsx(be,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:G("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C($e)})})},$e))}):n.jsxs(n.Fragment,{children:[Le&&i&&n.jsx("div",{className:"word-table-block__card word-table-block__card--base",style:{gridColumn:`1 / span ${Oe.cols}`,gridRow:`1 / span ${Oe.rows}`,...as(0,s==="landscape"?2:1,s==="landscape"?1:2,c)},children:(i.words??[]).map((ke,$e)=>n.jsxs(o.Fragment,{children:[$e>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(rs,{outerScale:ie,label:ke.label,subLabel:ke.subLabel,colloquialLabel:ke.colloquialLabel,captionLabel:ke.captionLabel,homonum:ke.homonum,showWord:Ee.word,showImage:Ee.image,showPronunciation:Ee.pron,showColloquial:Ee.colloq,buttonSize:y,wordInfo:ke.grade||ke.syllables!=null||ke.pos||ke.wordType?{grade:ke.grade,syllables:ke.syllables,pos:ke.pos,wordType:ke.wordType}:void 0})]},$e))}),(p??[]).map((ke,$e)=>n.jsxs("div",{"data-wordtable-cell":b?$e:void 0,className:`word-table-block__card${b?" word-table-block__card--draggable":""}${q===$e?" word-table-block__card--drag-over":""}${S===$e?" word-table-block__card--dragging":""}`,style:as($e,qe,We,c),draggable:!!b,onPointerDown:b?je=>U(je,$e):void 0,onKeyDown:b?je=>W(je,$e):void 0,onDragStart:b?()=>{I.current=$e}:void 0,onDragOver:b?je=>{je.preventDefault(),Z($e)}:void 0,onDragLeave:b?()=>Z(null):void 0,onDrop:b?je=>{je.preventDefault(),I.current!==null&&I.current!==$e&&b(I.current,$e),I.current=null,Z(null)}:void 0,onDragEnd:b?()=>{I.current=null,Z(null)}:void 0,children:[(ke.words??[]).map((je,Ve)=>n.jsxs(o.Fragment,{children:[Ve>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(rs,{outerScale:ie,label:je.label,subLabel:je.subLabel,colloquialLabel:je.colloquialLabel,captionLabel:je.captionLabel,homonum:je.homonum,showWord:it.word,showImage:it.image,showPronunciation:it.pron,showColloquial:it.colloq,buttonSize:y,wordInfo:je.grade||je.syllables!=null||je.pos||je.wordType?{grade:je.grade,syllables:je.syllables,pos:je.pos,wordType:je.wordType}:void 0})]},Ve)),F&&M($e,(ke.words??[]).map(je=>je.label).join(" / ")),b&&n.jsx("div",{className:"word-table-block__card-handle",children:n.jsx(be,{htmlType:"button",size:y,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:G("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:G("wordTable.reorder.handle",{word:(ke.words??[]).map(je=>je.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),(k||_)&&n.jsxs("div",{className:"word-table-block__card-actions",children:[k?.($e,ke),_&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(be,{htmlType:"button",size:y,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(ke.words??[]).length>1?G("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):G("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(ke.words??[]).length>1?G("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):G("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>_(ke.id)})})]})]},$e)),Array.from({length:Math.max(0,qe*We-(p?.length??0))}).map((ke,$e)=>{const je=(p?.length??0)+$e<se;return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:x&&C&&je&&n.jsx("div",{style:vt,children:n.jsx(be,{htmlType:"button",size:y,type:"bar",icon:"plus",label:G("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C((p?.length??0)+$e)})})},`filler-${$e}`)})]}),He&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--top",children:[n.jsx("img",{className:"word-table__brand-logo",src:w?.topLogo?.src??dr,alt:w?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const ke=[w?.title&&n.jsx("span",{className:"word-table__paper-title",children:w.title},"t"),w?.owner&&n.jsx("span",{className:"word-table__owner",children:w.owner},"o"),B&&n.jsx("span",{className:"word-table__code",children:B},"c")].filter(Boolean);return ke.length===0?null:n.jsx("span",{className:"word-table__ident",children:ke.map(($e,je)=>n.jsxs(o.Fragment,{children:[je>0&&n.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),$e]},je))})})()]})}),et&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[n.jsxs("span",{className:"word-table__brand-by",children:[w?.bottomLogo?n.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:w.bottomLogo.src,alt:w.bottomLogo.alt}):n.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),n.jsx("span",{className:"word-table__copyright",children:pt})]}),n.jsxs("span",{className:"word-table__band-end",children:[w?.link&&n.jsx("span",{className:"word-table__link",children:w.link}),E&&D!=="none"&&n.jsx("span",{className:"word-table__page-count",children:G("wordTable.filter.pageIndicator",{current:E.current,total:E.total})})]})]})}),!Ae&&E&&D!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${D}`,children:G("wordTable.filter.pageIndicator",{current:E.current,total:E.total})})]})}),b&&n.jsx("span",{role:"status",style:w4,children:T})]}),Bt=ye==null?At:n.jsx("div",{className:"word-table__frame",style:{height:ye},children:At});return O?n.jsx(ba,{type:"page",icon:t,title:e,disc:a,className:Be("word-table-block",r),children:Bt}):Bt}function k4(e,t,a){const r=[];for(const s of e??[]){if(s.type==="note"||s.type==="input")continue;const l=s.displayLabel??s.label,i=A4(s,t?.[s.label],a);i!==null&&r.push(`${l} ${i}`)}return r.join(" \xB7 ")}function A4(e,t,a){const r=(Array.isArray(t)?t:t===void 0?[]:[t]).filter(s=>s!==vn);return r.length===0?e.allOption?e.allLabel??a:null:r.map(s=>N4(e,s)).join(", ")}function N4(e,t){const a=[...e.items??[],...(e.groups??[]).flat()];for(const r of a)if(r!=null){if(typeof r=="string"){if(r===t)return r;continue}if(r.value===t)return r.displayLabel??r.labels?.join(" ")??r.value}return t}function Mn({title:e,titleLevel:t=2,headerAction:a,headerSummary:r,collapsible:s=!1,defaultCollapsed:l=!1,collapsed:i,onCollapsedChange:u,footer:c,sections:d,selected:m={},onSelect:p,align:h,sectionAlign:g,className:v}){const C=(h??(g==="vertical"?"newline":"inline"))==="inline",{t:f}=xe.useTranslation(),[_,b]=o.useState(l),k=i??_,x=()=>{const A=!k;b(A),u?.(A)},N=A=>{if(!s)return;const F=A.target;!F||typeof F.closest!="function"||F.closest(".filter-panel__collapse-toggle")||F.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||x()},y=o.useMemo(()=>r!==void 0||!k?"":k4(d,m,f("common.all","\uC804\uCCB4")),[r,k,d,m,f]),w=r??(y?n.jsx("span",{className:"filter-panel__header-summary body-3",children:y}):null),B=e||a||r||s,E=o.useId(),D=t?`h${t}`:"span";return n.jsxs("div",{className:Be("filter-panel",s?"filter-panel--collapsible":"",k?"filter-panel--collapsed":"",v),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?E:void 0,children:[B&&n.jsxs("div",{className:"filter-panel__header",onClick:s?N:void 0,children:[n.jsx("div",{className:"filter-panel__title-row",children:e&&n.jsx(D,{id:E,className:"filter-panel__title h4",children:e})}),n.jsxs("div",{className:"filter-panel__header-actions",children:[k?w:a,s&&n.jsx(be,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:k?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:k?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),showTooltipInfo:k?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),"aria-expanded":!k,onClick:x})]})]}),!k&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Be("filter-panel__sections",C?"filter-panel__sections--row":""),children:d.map(A=>{const F=m[A.label],$=F===void 0||(Array.isArray(F)?F.length===0:!1),K=(A.items??[]).filter(P=>P!=null);A.allOption&&K.some(P=>(typeof P=="string"?P:P.value)===vn)&&Tt(`filter-panel-all-value:${A.label}`,`[FilterPanel] '${A.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${vn}' \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 L=P=>{const M=typeof P=="string"?P:P.value,G=typeof P!="string"&&!!P.disabled,H=typeof P!="string"?P.labels:void 0,O=typeof P!="string"?P.displayLabel:void 0,Q=typeof P!="string"?P.tooltip:void 0,I=typeof P!="string"?P.descriptionTooltip:void 0,q=typeof P!="string"?P.shape:void 0,Z=Array.isArray(F)?F.includes(M):F===M;return n.jsx(be,{htmlType:"button",size:"keyboard",label:H??O??M,type:A.itemType??(H?"bar":M.length===1?"dot":void 0),selected:Z,disabled:G,shape:q,showTooltipInfo:!!Q,tooltipInfoText:Q,tooltipDescription:I,onClick:()=>p?.(M,A.label)},M)};return n.jsxs(o.Fragment,{children:[A.groupLabel&&n.jsxs("div",{className:"filter-panel__group-label-row",children:[n.jsx("div",{className:"filter-panel__group-label body-2",children:A.groupLabel}),A.groupAction]}),n.jsxs("div",{className:Be("filter-panel__section",A.layout==="row"?"filter-panel__section--row":"",A.block?"filter-panel__section--block":""),children:[n.jsxs("div",{className:"filter-panel__section-label-row",children:[n.jsx("span",{className:"filter-panel__section-label body-3",children:A.displayLabel??A.label}),A.labelAction??(A.labelInfo?n.jsx(Ha,{...A.labelInfo}):null)]}),A.type==="note"?n.jsx("div",{className:"filter-panel__note body-3",children:A.content}):A.type==="input"?n.jsx(Xn,{className:"filter-panel__textfield",placeholder:A.placeholder,ariaLabel:A.displayLabel??A.label,value:m[A.label]??"",onChange:P=>p?.(P,A.label),error:A.error}):!A.multiple&&A.display==="segmented"?n.jsx(_n,{ariaLabel:A.displayLabel??A.label,options:[...A.allOption?[{key:vn,label:A.allLabel??f("common.all","\uC804\uCCB4"),disabled:A.allOptionDisabled}]:[],...K.map(P=>{const M=typeof P=="string"?P:P.value,G=typeof P!="string"?P.displayLabel:void 0,H=typeof P!="string"?P.disabled:void 0;return{key:M,label:G??M,disabled:H}})],value:$&&A.allOption?vn:m[A.label]??"",onChange:P=>p?.(P,A.label),size:32}):!A.multiple&&A.display==="dropdown"?n.jsx(Cn,{className:"filter-panel__dropdown",ariaLabel:typeof A.label=="string"?A.label:void 0,size:40,options:[...A.allOption?[{value:vn,label:A.allLabel??f("common.all","\uC804\uCCB4"),disabled:A.allOptionDisabled}]:[],...K.map(P=>{const M=typeof P=="string"?P:P.value,G=typeof P!="string"?P.displayLabel:void 0,H=typeof P!="string"?P.disabled:void 0;return{value:M,label:G??M,disabled:H}})],value:$&&A.allOption?vn:m[A.label],onChange:P=>p?.(P,A.label)}):n.jsxs("div",{className:A.groups?"filter-panel__item-groups":"filter-panel__items",children:[A.allOption&&!A.groups&&n.jsx(be,{htmlType:"button",size:"keyboard",label:A.allLabel??f("common.all","\uC804\uCCB4"),selected:$,disabled:A.allOptionDisabled,onClick:()=>p?.(vn,A.label)}),A.groups?A.groups.map((P,M)=>n.jsxs("div",{className:"filter-panel__item-group",children:[M===0&&A.allOption&&n.jsx(be,{htmlType:"button",size:"keyboard",label:A.allLabel??f("common.all","\uC804\uCCB4"),selected:$,disabled:A.allOptionDisabled,onClick:()=>p?.(vn,A.label)}),P.filter(G=>G!=null).map(L)]},M)):K.map(L)]})]})]},A.label)})}),c!=null&&c!==!1&&n.jsx("div",{className:"filter-panel__footer body-3",children:c})]})]})}const E4=[1,2,3,4,5,6,7,8,9,10,11,12],uc=[8,6,4,2,1],dn="show",Bn="hide";function cc(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"image",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"word",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"standardPron",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"colloquialPron",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function dc(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"landscape",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"portrait",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function pc(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:dn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:Bn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function mc(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),items:[{value:dn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:Bn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function hc(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),items:[{value:dn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:Bn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Cc(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:dn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"dashed",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"corner",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:Bn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function fc(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:dn,displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:Bn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function bc(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...uc.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function gc(e,t){return e===t||!uc.includes(e)?Number.POSITIVE_INFINITY:e}function D4(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"left",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"center",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"right",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:Bn,displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function yc(e){return e==="left"||e==="center"||e==="right"?e:"none"}function vc(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation,[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?dn:Bn,[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?dn:Bn,...t.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:t.showTopInfo?dn:Bn}:{},...t.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:t.showBottomInfo?dn:Bn}:{}}}function xc(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===vn?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(s=>s.includes(t)?s.filter(l=>l!==t):[...s,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="landscape"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t===dn),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t===dn),!0):a===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(t===dn),!0):a===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(t===dn),!0):!1}function S4(e){return"sections"in e}function os(e){const{t}=xe.useTranslation(),{title:a,className:r,collapsible:s,defaultCollapsed:l,collapsed:i,onCollapsedChange:u,headerSummary:c}=e,d={collapsible:s,defaultCollapsed:l,collapsed:i,onCollapsedChange:u,headerSummary:c};if(S4(e))return n.jsx(Mn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...d,align:"inline"});const{hasImage:m,hasColloquial:p,contentTypes:h,orientation:g,showOutline:v,cutLine:C,showDivLine:f,setters:_,showCutLine:b=!1,showDivLine2:k=!1,middleSections:x=[],extraSelected:N={},onExtraSelect:y,showPaperBands:w=!1,showTopInfo:B=!0,showBottomInfo:E=!0}=e,D=[cc(t,{hasImage:m,hasColloquial:p}),dc(t),...x,pc(t),...b?[Cc(t)]:[],...k?[fc(t)]:[],...w?[mc(t),hc(t)]:[]],A={...vc(t,{contentTypes:h,orientation:g,showOutline:v,cutLine:C,showDivLine:f,showTopInfo:B,showBottomInfo:E}),...N},F=($,K)=>{xc(t,$,K,_)||y?.($,K)};return n.jsx(Mn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:D,selected:A,onSelect:F,...d,sectionAlign:"horizontal"})}function ss(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function j4(e){return ss(e).replace(/"/g,""").replace(/'/g,"'")}function ls(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let xr=null,ya=null;function T4(e,t,a,r="",s=""){if(e.length===0||ya&&ya.iframe.isConnected&&Date.now()-ya.at<1e4)return;const l=r?ls(r):"";xr?.();let i=null;if(l){const d=document.title;document.title=l,i=()=>{document.title=d,window.removeEventListener("afterprint",i),xr===i&&(xr=null)},xr=i,window.addEventListener("afterprint",i)}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 c=u.contentDocument;if(!c){u.remove();return}ya={iframe:u,at:Date.now()},c.open(),c.write(is(e,t,a,!0,l,s)),c.close(),u.contentWindow?.addEventListener("afterprint",()=>{i?.(),setTimeout(()=>{u.remove(),ya?.iframe===u&&(ya=null)},0)})}function is(e,t,a,r=!1,s="",l=""){s=s?ls(s):"";const i=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(h=>h.cssText)}catch{return[]}}).join(`
|
|
831
|
+
`),u="light",c=(()=>{try{return document.documentElement.lang||""}catch{return""}})(),d=l?`<div class="paper-head">${ss(l)}</div>`:"",m=e.map(p=>{const h=p.cloneNode(!0);return h.querySelectorAll('[data-play-state="play"]').forEach(g=>g.style.display=""),h.querySelectorAll('[data-play-state="pause"]').forEach(g=>g.style.display="none"),h.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(g=>g.remove()),h.querySelectorAll(".word-table-cell__spinner").forEach(g=>g.remove()),h.querySelectorAll("img").forEach(g=>{g.style.opacity==="0"&&(g.setAttribute("onload","this.style.opacity=''"),g.setAttribute("onerror","this.style.visibility='hidden'"))}),`<div class="paper-wrap">${d}${h.outerHTML}</div>`}).join(`
|
|
832
832
|
`);return`<!DOCTYPE html>
|
|
833
833
|
<html${c?` lang="${j4(c)}"`:""} data-theme="${u}">
|
|
834
834
|
<head>
|
|
@@ -1034,17 +1034,17 @@ ${x.badge}`:x.badge:void 0;if(y&&c(x.code))return null;if(!x.badge&&!m)return p(
|
|
|
1034
1034
|
`:""}
|
|
1035
1035
|
<\/script>
|
|
1036
1036
|
</body>
|
|
1037
|
-
</html>`}const M4=1e3;function us({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:s,header:l=""}){const{t:i}=_e.useTranslation(),u=o.useCallback(()=>{T4(e(),t,a,r,l)},[e,t,a,r,l]),c=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=window.open("","_blank");if(!p){s?.();return}p.document.write(is(m,t,a,!1,r,l)),p.document.close()},[e,t,a,r,s,l]),d=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=is(m,t,a,!1,r,l),h=new Blob([p],{type:"text/html;charset=utf-8"}),b=URL.createObjectURL(h),v=(r?ls(r):"")||i("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),C=Object.assign(document.createElement("a"),{href:b,download:`${v}.html`});document.body.appendChild(C),C.click(),document.body.removeChild(C),setTimeout(()=>URL.revokeObjectURL(b),M4)},[e,t,a,r,l,i]);return{print:u,openNewWindow:c,downloadHtml:d}}function _c(e,t){const{t:a}=_e.useTranslation(),r=t?.paperBands===!0,[s,l]=o.useState("landscape"),[i,u]=o.useState(["image","word","standardPron"]),[c,d]=o.useState("show"),[m,p]=o.useState(!0),[h,b]=o.useState(!0),[v,C]=o.useState(!0),[f,_]=o.useState(!0),[g,k]=o.useState(8),[x,A]=o.useState("right"),y=e.length,w=e.some(K=>(K.words??[]).length>1),B=e.some(K=>(K.words??[]).some(V=>!!V.colloquialLabel)),E=Math.min(g,Math.max(y,1)),D=o.useMemo(()=>Qu(e,E),[e,E]),N=D.length>1,F=E,[$,Y]=o.useState(!1);o.useEffect(()=>{let K=!1;if(!la()){Y(!1);return}return Promise.all(e.flatMap(V=>(V.words??[]).map(O=>Dl(O.label,O.homonum)))).then(V=>{K||Y(V.some(Boolean))},()=>{}),()=>{K=!0}},[e]);const M=o.useMemo(()=>[cc(a,{hasImage:$,hasColloquial:B}),dc(a),...y>0?[gc(a,{hasPairs:w,itemCount:y})]:[],pc(a),...F>1?[Cc(a)]:[],...w?[fc(a)]:[],...r?[mc(a),hc(a)]:[]],[a,$,B,y,w,N,F,r]),P={...vc(a,{contentTypes:i,orientation:s,showOutline:m,cutLine:c,showDivLine:f,showTopInfo:h,showBottomInfo:v}),...y>0?{[a(w?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${E}\uAC1C`}:{},...N?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:x}:{}},T=o.useCallback((K,V)=>{xc(a,K,V,{setContentTypes:u,setOrientation:l,setShowOutline:p,setCutLine:d,setShowDivLine:_,setShowTopInfo:b,setShowBottomInfo:C})||(V===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||V===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?k(bc(parseInt(K),y)):V===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&A(yc(K)))},[a,y]);return{settings:{orientation:s,contentTypes:i,cutLine:c,showOutline:m,showDivLine:f,count:F,showTopInfo:h,showBottomInfo:v},filterSections:M,filterSelected:P,handleSelect:T,pages:D,isPaginated:N,pageNumberPosition:x}}function L4({items:e,words:t,title:a,subtitle:r,emptyText:s,buttons:l,renderButtons:i,renderFooter:u,footerClassName:c,footerLayout:d,printFileName:m,showSettings:p,autoPrint:h,className:b,onClose:v,scoring:C=!1,onScoreChange:f,printHeader:_,brand:g,code:k,beforeClose:x}){const{t:A}=_e.useTranslation(),y=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(W=>typeof W=="string"&&W.length>0).map((W,te)=>({id:`${W}-${te}`,words:[{label:W}]})),[e,t]),{settings:w,filterSections:B,filterSelected:E,handleSelect:D,pages:N,isPaginated:F,pageNumberPosition:$}=_c(y,{paperBands:!!g?.show}),Y=o.useMemo(()=>Ju(N.map(W=>W.length)),[N]),[M,P]=o.useState({}),T=o.useCallback((W,te)=>{P(H=>({...H,[yr(W)]:Yu(H[yr(W)]??null,te)}))},[]),K=o.useRef(f);o.useEffect(()=>{K.current=f});const V=o.useRef(M);o.useEffect(()=>{V.current!==M&&(V.current=M,K.current?.(Qo(M)))},[M]);const O=o.useMemo(()=>Qo(M),[M]),Q=o.useRef(null),{toastMessage:I,toastKey:q,showWarning:z,clearToast:U}=Wi("warning"),S=o.useRef([]),R=o.useCallback(()=>F?S.current.filter(W=>W!==null):Q.current?[Q.current]:[],[F]),{print:L,openNewWindow:Z}=us({getElements:R,paperW:Jn[w.orientation].width,paperH:Jn[w.orientation].height,fileName:m??"",header:_??"",onPopupBlocked:()=>z(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."))}),ue=o.useMemo(()=>u?void 0:i?i({print:L,openNewWindow:Z}):m?[{label:A("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>Z()},{label:A("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>L()},...l??[]]:l,[u,i,m,l,A,L,Z]),oe=o.useMemo(()=>u?u({print:L,openNewWindow:Z}):void 0,[u,L,Z]),le=o.useRef(!1),re=o.useRef(L);return o.useEffect(()=>{re.current=L},[L]),o.useEffect(()=>{if(!h||le.current)return;const W=window.setTimeout(()=>{le.current=!0,re.current()},100);return()=>window.clearTimeout(W)},[h]),n.jsxs(Wn,{title:a??A("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:Be("word-table-popup",b),buttons:ue,footer:oe,footerClassName:c,footerLayout:d,beforeClose:x,onClose:v,children:[y.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[p&&n.jsx(os,{sections:B,selected:E,onSelect:D}),F?n.jsx("div",{className:"word-table-popup__pages",children:N.map((W,te)=>n.jsx(ba,{items:W,orientation:w.orientation,contentTypes:w.contentTypes,cutLine:w.cutLine,showOutline:w.showOutline,showDivLine:w.showDivLine,count:w.count,contentRef:H=>{S.current[te]=H},pageNumber:{current:te+1,total:N.length},pageNumberPosition:$,brand:g&&{...g,top:w.showTopInfo,bottom:w.showBottomInfo},code:k,scoring:C,scoreIndexOffset:Y[te],marks:O,onMarkClick:T},te))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(ba,{items:y,orientation:w.orientation,contentTypes:w.contentTypes,cutLine:w.cutLine,showOutline:w.showOutline,showDivLine:w.showDivLine,count:w.count,contentRef:Q,fitHeight:!0,scoring:C,marks:O,onMarkClick:T,brand:g&&{...g,top:w.showTopInfo,bottom:w.showBottomInfo},code:k})})]}):n.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.")}),n.jsx(Ca,{message:I,position:"top",onClose:U},q)]})}const $4=new Set(["x","triangle"]);function R4(e,t){const a=[];for(let r=0;r<e.length;r++){const s=t[String(r)];s&&$4.has(s)&&a.push(e[r])}return a}const P4=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function wc(e){const t=e.name.trim(),a=e.reviewRound;if(typeof a=="number"&&Number.isFinite(a)&&a>=0){const l=Math.floor(a);if(l===0)return{base:t,round:1};const i=(l===1?/\s*복습\s*\d{2}\.\d{2}$/:new RegExp(`(?:^|\\s)${l}\uCC28\\s*\uBCF5\uC2B5\\s*\\d{2}\\.\\d{2}$`)).exec(t);return{base:i?t.slice(0,i.index).trim():t,round:l+1}}let r=t,s=1;for(;;){const l=P4.exec(r);if(!l)break;s=Math.max(s,(l[1]?Number(l[1]):1)+1),r=r.slice(0,l.index).trim()}return{base:r,round:s}}function I4(e,t){const[,a,r]=io(t).split("-"),s=`${a}.${r}`,{base:l,round:i}=wc(typeof e=="string"?{name:e}:e),u=i>=2?`${i}\uCC28 `:"";return`${l||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${s}`}function F4(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:wc(e).round}}function O4(e,t){const a={};for(const[r,s]of Object.entries(t)){if(s!=="o"&&s!=="triangle"&&s!=="x")continue;const l=Number(r),i=e[l];i&&(a[r]=i)}return a}function z4(e){return e.map(t=>t.label).join(" / ")}function W4(e){return e.map(t=>t.homonum!=null?`${t.label}#${t.homonum}`:t.label).join(" / ")}function Bc(e){return e.split(" / ").map(t=>t.replace(/#\d+$/,"")).join(" / ")}function H4(e,t,a){const r=ql(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function kc(e,t,a){return a===0?0:(e+t*.5)/a}function V4(e){const t=new Map,a=[...e].sort((s,l)=>s.scoredAt.localeCompare(l.scoredAt));for(const s of a)for(const[l,i]of Object.entries(s.marks)){const u=s.labels?.[l];if(!u)continue;const c=t.get(u)??{o:0,triangle:0,x:0,latest:i,latestAt:s.scoredAt};if(i==="o")c.o++;else if(i==="triangle")c.triangle++;else if(i==="x")c.x++;else continue;c.latest=i,c.latestAt=s.scoredAt,t.set(u,c)}const r=[];for(const[s,l]of t){const i=l.o+l.triangle+l.x;r.push({label:Bc(s),key:s,tried:i,o:l.o,triangle:l.triangle,x:l.x,rate:kc(l.o,l.triangle,i),latest:l.latest,latestAt:l.latestAt})}return r.sort((s,l)=>s.rate-l.rate||l.tried-s.tried||mn(s.label,l.label)||mn(s.key??s.label,l.key??l.label)),r}function q4(e){const t=new Map;for(const r of e){const s=r.tableId??`name:${r.tableName}`,l=t.get(s)??{tableName:r.tableName,tableId:r.tableId,rows:[]};l.rows.push(r),t.set(s,l)}const a=[];for(const r of t.values()){const s=u=>Object.values(u.marks).filter(c=>c==="o"||c==="triangle"||c==="x").length,l=r.rows.filter(u=>s(u)>0).sort((u,c)=>u.scoredAt.localeCompare(c.scoredAt));if(l.length===0)continue;const i=l.map(u=>{const c=Object.values(u.marks),d=c.filter(p=>p==="o").length,m=c.filter(p=>p==="triangle").length;return kc(d,m,s(u))});a.push({tableName:r.tableName,tableId:r.tableId,rates:i,times:l.map(u=>u.scoredAt),delta:i.length>=2?i[i.length-1]-i[0]:null})}return a.sort((r,s)=>(s.times[s.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function U4(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function G4(e,t){if(e==null||t==null||e===""||t==="")return 0;if(typeof e=="number"&&typeof t=="number")return e-t;const a=String(e),r=String(t);return+(a>r)-+(a<r)}function K4(e){const t=new Map;let a=0,r=0;const s=e.map((i,u)=>({r:i,at:u})).sort((i,u)=>i.r.answeredAt.localeCompare(u.r.answeredAt)||G4(i.r.id,u.r.id)||i.at-u.at).map(i=>i.r);for(const i of s){if(i.isCorrect==null)continue;const u=i.itemTitle?.trim();if(!u){r++;continue}a++;const c=i.itemId?.trim()||u,d=`${i.trainingType}|${c}`,m=t.get(d)??{trainingType:i.trainingType,itemId:c,title:u,tried:0,wrong:0,latestCorrect:i.isCorrect,latestAt:i.answeredAt,lastSelected:i.selected,setIds:[]};if(m.tried++,i.isCorrect||m.wrong++,m.title=u,m.latestCorrect=i.isCorrect,m.latestAt=i.answeredAt,m.lastSelected=i.selected,i.setId){const p=m.setIds.indexOf(i.setId);p>0&&m.setIds.splice(p,1),p!==0&&m.setIds.unshift(i.setId)}t.set(d,m)}const l=[...t.entries()].map(([i,u])=>({key:i,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 l.sort((i,u)=>i.rate-u.rate||u.tried-i.tried||mn(i.title,u.title)),{items:l,counted:a,skippedNoTitle:r}}function Y4(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function Z4(e){const t=new Map;for(const r of e){const s=t.get(r.trainingType)??[];s.push(r),t.set(r.trainingType,s)}const a=[...t.entries()].map(([r,s])=>({trainingType:r,items:s,pending:s.filter(l=>!l.latestCorrect).length}));return a.sort((r,s)=>s.pending-r.pending||r.trainingType.localeCompare(s.trainingType)),a}const cs=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function X4(e){const t=new Map;let a=0;for(const l of e){if(l.latestCorrect)continue;const i=l.setIds[0];if(!i){a++;continue}const u=`${l.trainingType}|${i}`,c=t.get(u)??{setId:i,trainingType:l.trainingType,pending:0};c.pending++,t.set(u,c)}const r=(l,i)=>i.pending-l.pending||l.trainingType.localeCompare(i.trainingType)||l.setId.localeCompare(i.setId),s=[...t.values()];return{sentence:s.filter(l=>cs.includes(l.trainingType)).sort(r),word:s.filter(l=>!cs.includes(l.trainingType)).sort(r),noSet:a}}function J4(e,t,a=5){const r=new Set(t);if(r.size===0)return[];const s=[];for(const l of e){const i=new Set,u=[];for(const c of l.cellLabels)r.has(c)&&!i.has(c)&&(i.add(c),u.push(c));u.length!==0&&s.push({id:l.id,name:l.name,kind:l.kind,covered:u,totalCells:l.cellLabels.length})}return s.sort((l,i)=>i.covered.length-l.covered.length||l.totalCells-i.totalCells||mn(l.name,i.name)),s.slice(0,Math.max(0,a))}function Q4(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function ex(e,t){const a=new Map;for(const s of e)for(const l of s.cells){const i=s.labelOf(l);a.has(i)||a.set(i,l)}const r=[];for(const s of t){const l=a.get(s);l!==void 0&&r.push(l)}return r}function ds(e,t,a){return typeof e=="string"&&e?e:t.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function tx(e,t){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),s=a%60;return t?t(r,s):r>0&&s>0?ds(Vt.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?ds(Vt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):ds(Vt.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function nx(e,t){const a=[],r=new Set;for(const s of e){const l=t(s);r.has(l)||(r.add(l),a.push({key:l,value:s,pinned:!1}))}return a}function ax(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function rx(e,t){return e.filter(a=>a.key!==t)}function ox(e,t,a){const r=e.filter(d=>d.pinned),s=new Set(r.map(d=>d.key)),l=e.length-r.length,i=[],u=new Set(s);for(const d of t){if(i.length>=l)break;const m=a(d);u.has(m)||(u.add(m),i.push({key:m,value:d,pinned:!1}))}const c=[...i];return e.map(d=>d.pinned?d:c.shift()).filter(d=>d!==void 0)}function sx(e){return e.map(t=>t.value)}function lx(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},s=t?.key?` icon-grid-menu__button--${t.key}`:"",l=o.useId();return n.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,children:[n.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":l,children:n.jsx(nt,{icon:t.icon,label:t.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),n.jsx("span",{id:l,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function ix(e){const{categories:t=[],selected:a,onSelect:r,size:s="medium"}=e||{},l=a!==void 0,[i,u]=o.useState(()=>l?null:(t&&t[0]?.key)??null),c=l?a:i,d=o.useRef(r);o.useEffect(()=>{d.current=r});const m=o.useRef(!1),p=(t&&t[0]?.key)??null;o.useEffect(()=>{if(l||m.current||!p)return;m.current=!0;const b=i??p;i==null&&u(b),d.current?.(b)},[l,p]);const h=o.useCallback(b=>{const v=c===b?null:b;m.current=!0,l||u(v),r?.(v)},[c,l,r]);return n.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(t||[]).map(b=>n.jsx(lx,{category:b,isSelected:c===b.key,onClick:()=>h(b.key)},b.key))})}function ux({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const s=r==="small"?32:40;return n.jsx("div",{className:`choice-chips choice-chips--${r}`,children:n.jsx("div",{className:"choice-chips__list",children:e.map(l=>n.jsx(fe,{htmlType:"button",size:s,type:"bar",label:l.label,selected:t===l.key,className:"choice-chips__button",onClick:()=>a?.(l.key)},l.key))})})}function cx({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:l}=_e.useTranslation();return n.jsx("footer",{className:"site-footer",children:n.jsxs("div",{className:"safearea",children:[n.jsxs("div",{className:"site-footer__top",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("div",{className:"site-footer__lead h3",children:l("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
1037
|
+
</html>`}const M4=1e3;function us({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:s,header:l=""}){const{t:i}=xe.useTranslation(),u=o.useCallback(()=>{T4(e(),t,a,r,l)},[e,t,a,r,l]),c=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=window.open("","_blank");if(!p){s?.();return}p.document.write(is(m,t,a,!1,r,l)),p.document.close()},[e,t,a,r,s,l]),d=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=is(m,t,a,!1,r,l),h=new Blob([p],{type:"text/html;charset=utf-8"}),g=URL.createObjectURL(h),v=(r?ls(r):"")||i("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),C=Object.assign(document.createElement("a"),{href:g,download:`${v}.html`});document.body.appendChild(C),C.click(),document.body.removeChild(C),setTimeout(()=>URL.revokeObjectURL(g),M4)},[e,t,a,r,l,i]);return{print:u,openNewWindow:c,downloadHtml:d}}function _c(e,t){const{t:a}=xe.useTranslation(),r=t?.paperBands===!0,[s,l]=o.useState("landscape"),[i,u]=o.useState(["image","word","standardPron"]),[c,d]=o.useState("show"),[m,p]=o.useState(!0),[h,g]=o.useState(!0),[v,C]=o.useState(!0),[f,_]=o.useState(!0),[b,k]=o.useState(8),[x,N]=o.useState("right"),y=e.length,w=e.some(G=>(G.words??[]).length>1),B=e.some(G=>(G.words??[]).some(H=>!!H.colloquialLabel)),E=Math.min(b,Math.max(y,1)),D=o.useMemo(()=>Qu(e,E),[e,E]),A=D.length>1,F=E,[$,K]=o.useState(!1);o.useEffect(()=>{let G=!1;if(!la()){K(!1);return}return Promise.all(e.flatMap(H=>(H.words??[]).map(O=>Dl(O.label,O.homonum)))).then(H=>{G||K(H.some(Boolean))},()=>{}),()=>{G=!0}},[e]);const L=o.useMemo(()=>[cc(a,{hasImage:$,hasColloquial:B}),dc(a),...y>0?[bc(a,{hasPairs:w,itemCount:y})]:[],pc(a),...F>1?[Cc(a)]:[],...w?[fc(a)]:[],...r?[mc(a),hc(a)]:[]],[a,$,B,y,w,A,F,r]),P={...vc(a,{contentTypes:i,orientation:s,showOutline:m,cutLine:c,showDivLine:f,showTopInfo:h,showBottomInfo:v}),...y>0?{[a(w?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${E}\uAC1C`}:{},...A?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:x}:{}},M=o.useCallback((G,H)=>{xc(a,G,H,{setContentTypes:u,setOrientation:l,setShowOutline:p,setCutLine:d,setShowDivLine:_,setShowTopInfo:g,setShowBottomInfo:C})||(H===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||H===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?k(gc(parseInt(G),y)):H===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&N(yc(G)))},[a,y]);return{settings:{orientation:s,contentTypes:i,cutLine:c,showOutline:m,showDivLine:f,count:F,showTopInfo:h,showBottomInfo:v},filterSections:L,filterSelected:P,handleSelect:M,pages:D,isPaginated:A,pageNumberPosition:x}}function L4({items:e,words:t,title:a,subtitle:r,emptyText:s,buttons:l,renderButtons:i,renderFooter:u,footerClassName:c,footerLayout:d,printFileName:m,showSettings:p,autoPrint:h,className:g,onClose:v,scoring:C=!1,onScoreChange:f,printHeader:_,brand:b,code:k,beforeClose:x}){const{t:N}=xe.useTranslation(),y=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(z=>typeof z=="string"&&z.length>0).map((z,ee)=>({id:`${z}-${ee}`,words:[{label:z}]})),[e,t]),{settings:w,filterSections:B,filterSelected:E,handleSelect:D,pages:A,isPaginated:F,pageNumberPosition:$}=_c(y,{paperBands:!!b?.show}),K=o.useMemo(()=>Ju(A.map(z=>z.length)),[A]),[L,P]=o.useState({}),M=o.useCallback((z,ee)=>{P(W=>({...W,[yr(z)]:Yu(W[yr(z)]??null,ee)}))},[]),G=o.useRef(f);o.useEffect(()=>{G.current=f});const H=o.useRef(L);o.useEffect(()=>{H.current!==L&&(H.current=L,G.current?.(Qo(L)))},[L]);const O=o.useMemo(()=>Qo(L),[L]),Q=o.useRef(null),{toastMessage:I,toastKey:q,showWarning:Z,clearToast:V}=Wi("warning"),S=o.useRef([]),R=o.useCallback(()=>F?S.current.filter(z=>z!==null):Q.current?[Q.current]:[],[F]),{print:T,openNewWindow:Y}=us({getElements:R,paperW:Jn[w.orientation].width,paperH:Jn[w.orientation].height,fileName:m??"",header:_??"",onPopupBlocked:()=>Z(N("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."))}),ce=o.useMemo(()=>u?void 0:i?i({print:T,openNewWindow:Y}):m?[{label:N("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>Y()},{label:N("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>T()},...l??[]]:l,[u,i,m,l,N,T,Y]),re=o.useMemo(()=>u?u({print:T,openNewWindow:Y}):void 0,[u,T,Y]),oe=o.useRef(!1),ae=o.useRef(T);return o.useEffect(()=>{ae.current=T},[T]),o.useEffect(()=>{if(!h||oe.current)return;const z=window.setTimeout(()=>{oe.current=!0,ae.current()},100);return()=>window.clearTimeout(z)},[h]),n.jsxs(Wn,{title:a??N("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:Be("word-table-popup",g),buttons:ce,footer:re,footerClassName:c,footerLayout:d,beforeClose:x,onClose:v,children:[y.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[p&&n.jsx(os,{sections:B,selected:E,onSelect:D}),F?n.jsx("div",{className:"word-table-popup__pages",children:A.map((z,ee)=>n.jsx(ga,{items:z,orientation:w.orientation,contentTypes:w.contentTypes,cutLine:w.cutLine,showOutline:w.showOutline,showDivLine:w.showDivLine,count:w.count,contentRef:W=>{S.current[ee]=W},pageNumber:{current:ee+1,total:A.length},pageNumberPosition:$,brand:b&&{...b,top:w.showTopInfo,bottom:w.showBottomInfo},code:k,scoring:C,scoreIndexOffset:K[ee],marks:O,onMarkClick:M},ee))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(ga,{items:y,orientation:w.orientation,contentTypes:w.contentTypes,cutLine:w.cutLine,showOutline:w.showOutline,showDivLine:w.showDivLine,count:w.count,contentRef:Q,fitHeight:!0,scoring:C,marks:O,onMarkClick:M,brand:b&&{...b,top:w.showTopInfo,bottom:w.showBottomInfo},code:k})})]}):n.jsx("p",{className:"word-table-popup__empty body-3",children:s??N("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsx(Ca,{message:I,position:"top",onClose:V},q)]})}const $4=new Set(["x","triangle"]);function R4(e,t){const a=[];for(let r=0;r<e.length;r++){const s=t[String(r)];s&&$4.has(s)&&a.push(e[r])}return a}const P4=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function wc(e){const t=e.name.trim(),a=e.reviewRound;if(typeof a=="number"&&Number.isFinite(a)&&a>=0){const l=Math.floor(a);if(l===0)return{base:t,round:1};const i=(l===1?/\s*복습\s*\d{2}\.\d{2}$/:new RegExp(`(?:^|\\s)${l}\uCC28\\s*\uBCF5\uC2B5\\s*\\d{2}\\.\\d{2}$`)).exec(t);return{base:i?t.slice(0,i.index).trim():t,round:l+1}}let r=t,s=1;for(;;){const l=P4.exec(r);if(!l)break;s=Math.max(s,(l[1]?Number(l[1]):1)+1),r=r.slice(0,l.index).trim()}return{base:r,round:s}}function I4(e,t){const[,a,r]=io(t).split("-"),s=`${a}.${r}`,{base:l,round:i}=wc(typeof e=="string"?{name:e}:e),u=i>=2?`${i}\uCC28 `:"";return`${l||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${s}`}function F4(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:wc(e).round}}function O4(e,t){const a={};for(const[r,s]of Object.entries(t)){if(s!=="o"&&s!=="triangle"&&s!=="x")continue;const l=Number(r),i=e[l];i&&(a[r]=i)}return a}function z4(e){return e.map(t=>t.label).join(" / ")}function W4(e){return e.map(t=>t.homonum!=null?`${t.label}#${t.homonum}`:t.label).join(" / ")}function Bc(e){return e.split(" / ").map(t=>t.replace(/#\d+$/,"")).join(" / ")}function H4(e,t,a){const r=ql(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function kc(e,t,a){return a===0?0:(e+t*.5)/a}function V4(e){const t=new Map,a=[...e].sort((s,l)=>s.scoredAt.localeCompare(l.scoredAt));for(const s of a)for(const[l,i]of Object.entries(s.marks)){const u=s.labels?.[l];if(!u)continue;const c=t.get(u)??{o:0,triangle:0,x:0,latest:i,latestAt:s.scoredAt};if(i==="o")c.o++;else if(i==="triangle")c.triangle++;else if(i==="x")c.x++;else continue;c.latest=i,c.latestAt=s.scoredAt,t.set(u,c)}const r=[];for(const[s,l]of t){const i=l.o+l.triangle+l.x;r.push({label:Bc(s),key:s,tried:i,o:l.o,triangle:l.triangle,x:l.x,rate:kc(l.o,l.triangle,i),latest:l.latest,latestAt:l.latestAt})}return r.sort((s,l)=>s.rate-l.rate||l.tried-s.tried||cn(s.label,l.label)||cn(s.key??s.label,l.key??l.label)),r}function q4(e){const t=new Map;for(const r of e){const s=r.tableId??`name:${r.tableName}`,l=t.get(s)??{tableName:r.tableName,tableId:r.tableId,rows:[]};l.rows.push(r),t.set(s,l)}const a=[];for(const r of t.values()){const s=u=>Object.values(u.marks).filter(c=>c==="o"||c==="triangle"||c==="x").length,l=r.rows.filter(u=>s(u)>0).sort((u,c)=>u.scoredAt.localeCompare(c.scoredAt));if(l.length===0)continue;const i=l.map(u=>{const c=Object.values(u.marks),d=c.filter(p=>p==="o").length,m=c.filter(p=>p==="triangle").length;return kc(d,m,s(u))});a.push({tableName:r.tableName,tableId:r.tableId,rates:i,times:l.map(u=>u.scoredAt),delta:i.length>=2?i[i.length-1]-i[0]:null})}return a.sort((r,s)=>(s.times[s.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function U4(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function G4(e,t){if(e==null||t==null||e===""||t==="")return 0;if(typeof e=="number"&&typeof t=="number")return e-t;const a=String(e),r=String(t);return+(a>r)-+(a<r)}function K4(e){const t=new Map;let a=0,r=0;const s=e.map((i,u)=>({r:i,at:u})).sort((i,u)=>i.r.answeredAt.localeCompare(u.r.answeredAt)||G4(i.r.id,u.r.id)||i.at-u.at).map(i=>i.r);for(const i of s){if(i.isCorrect==null)continue;const u=i.itemTitle?.trim();if(!u){r++;continue}a++;const c=i.itemId?.trim()||u,d=`${i.trainingType}|${c}`,m=t.get(d)??{trainingType:i.trainingType,itemId:c,title:u,tried:0,wrong:0,latestCorrect:i.isCorrect,latestAt:i.answeredAt,lastSelected:i.selected,setIds:[]};if(m.tried++,i.isCorrect||m.wrong++,m.title=u,m.latestCorrect=i.isCorrect,m.latestAt=i.answeredAt,m.lastSelected=i.selected,i.setId){const p=m.setIds.indexOf(i.setId);p>0&&m.setIds.splice(p,1),p!==0&&m.setIds.unshift(i.setId)}t.set(d,m)}const l=[...t.entries()].map(([i,u])=>({key:i,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 l.sort((i,u)=>i.rate-u.rate||u.tried-i.tried||cn(i.title,u.title)),{items:l,counted:a,skippedNoTitle:r}}function Y4(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function Z4(e){const t=new Map;for(const r of e){const s=t.get(r.trainingType)??[];s.push(r),t.set(r.trainingType,s)}const a=[...t.entries()].map(([r,s])=>({trainingType:r,items:s,pending:s.filter(l=>!l.latestCorrect).length}));return a.sort((r,s)=>s.pending-r.pending||r.trainingType.localeCompare(s.trainingType)),a}const cs=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function X4(e){const t=new Map;let a=0;for(const l of e){if(l.latestCorrect)continue;const i=l.setIds[0];if(!i){a++;continue}const u=`${l.trainingType}|${i}`,c=t.get(u)??{setId:i,trainingType:l.trainingType,pending:0};c.pending++,t.set(u,c)}const r=(l,i)=>i.pending-l.pending||l.trainingType.localeCompare(i.trainingType)||l.setId.localeCompare(i.setId),s=[...t.values()];return{sentence:s.filter(l=>cs.includes(l.trainingType)).sort(r),word:s.filter(l=>!cs.includes(l.trainingType)).sort(r),noSet:a}}function J4(e,t,a=5){const r=new Set(t);if(r.size===0)return[];const s=[];for(const l of e){const i=new Set,u=[];for(const c of l.cellLabels)r.has(c)&&!i.has(c)&&(i.add(c),u.push(c));u.length!==0&&s.push({id:l.id,name:l.name,kind:l.kind,covered:u,totalCells:l.cellLabels.length})}return s.sort((l,i)=>i.covered.length-l.covered.length||l.totalCells-i.totalCells||cn(l.name,i.name)),s.slice(0,Math.max(0,a))}function Q4(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function ex(e,t){const a=new Map;for(const s of e)for(const l of s.cells){const i=s.labelOf(l);a.has(i)||a.set(i,l)}const r=[];for(const s of t){const l=a.get(s);l!==void 0&&r.push(l)}return r}function ds(e,t,a){return typeof e=="string"&&e?e:t.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function tx(e,t){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),s=a%60;return t?t(r,s):r>0&&s>0?ds(Vt.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?ds(Vt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):ds(Vt.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function nx(e,t){const a=[],r=new Set;for(const s of e){const l=t(s);r.has(l)||(r.add(l),a.push({key:l,value:s,pinned:!1}))}return a}function ax(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function rx(e,t){return e.filter(a=>a.key!==t)}function ox(e,t,a){const r=e.filter(d=>d.pinned),s=new Set(r.map(d=>d.key)),l=e.length-r.length,i=[],u=new Set(s);for(const d of t){if(i.length>=l)break;const m=a(d);u.has(m)||(u.add(m),i.push({key:m,value:d,pinned:!1}))}const c=[...i];return e.map(d=>d.pinned?d:c.shift()).filter(d=>d!==void 0)}function sx(e){return e.map(t=>t.value)}function lx(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},s=t?.key?` icon-grid-menu__button--${t.key}`:"",l=o.useId();return n.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,children:[n.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":l,children:n.jsx(ot,{icon:t.icon,label:t.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),n.jsx("span",{id:l,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function ix(e){const{categories:t=[],selected:a,onSelect:r,size:s="medium"}=e||{},l=a!==void 0,[i,u]=o.useState(()=>l?null:(t&&t[0]?.key)??null),c=l?a:i,d=o.useRef(r);o.useEffect(()=>{d.current=r});const m=o.useRef(!1),p=(t&&t[0]?.key)??null;o.useEffect(()=>{if(l||m.current||!p)return;m.current=!0;const g=i??p;i==null&&u(g),d.current?.(g)},[l,p]);const h=o.useCallback(g=>{const v=c===g?null:g;m.current=!0,l||u(v),r?.(v)},[c,l,r]);return n.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(t||[]).map(g=>n.jsx(lx,{category:g,isSelected:c===g.key,onClick:()=>h(g.key)},g.key))})}function ux({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const s=r==="small"?32:40;return n.jsx("div",{className:`choice-chips choice-chips--${r}`,children:n.jsx("div",{className:"choice-chips__list",children:e.map(l=>n.jsx(be,{htmlType:"button",size:s,type:"bar",label:l.label,selected:t===l.key,className:"choice-chips__button",onClick:()=>a?.(l.key)},l.key))})})}function cx({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:l}=xe.useTranslation();return n.jsx("footer",{className:"site-footer",children:n.jsxs("div",{className:"safearea",children:[n.jsxs("div",{className:"site-footer__top",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("div",{className:"site-footer__lead h3",children:l("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
1038
1038
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
1039
1039
|
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
|
|
1040
|
-
`).map((i,u,c)=>n.jsxs(o.Fragment,{children:[i,u<c.length-1&&n.jsx("br",{})]},u))})}),n.jsxs("div",{className:"site-footer__links",children:[n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:l("footer.site.title","\uC0AC\uC774\uD2B8")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:l("footer.site.malgwi","\uB9D0\uADC0")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:l("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:l("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:l("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:l("footer.sns.title","SNS")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:l("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:l("footer.policy.title","\uC815\uCC45")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:i=>{e&&(i.preventDefault(),e())},children:l("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:i=>{t&&(i.preventDefault(),t())},children:l("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),n.jsx("hr",{className:"site-footer__rule"}),n.jsxs("div",{className:"site-footer__bottom",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("img",{src:Mo,alt:"IHAB",className:"site-footer__logo"})}),n.jsxs("div",{className:"site-footer__meta",children:[n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:l("footer.ceo","\uB300\uD45C")})," ",n.jsx("span",{className:"footer-meta caption-1",children:l("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:l("footer.address","\uC8FC\uC18C")})," ",n.jsx("span",{className:"footer-meta caption-1",children:l("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:l("footer.bizNo","\uC0AC\uC5C5\uC790\uB4F1\uB85D\uBC88\uD638")})," ",n.jsx("span",{className:"footer-meta caption-1",children:l("footer.bizNoValue","526-81-02926")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:l("footer.support","\uACE0\uAC1D\uC13C\uD130")})," ",n.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",s]})]})]})]}),n.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function dx({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:s,className:l,containerClassName:i,renderLink:u,menuLabel:c}){const{t:d}=_e.useTranslation(),m=c??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[p,h]=o.useState(!1),b=o.useId(),v=o.useRef(null);o.useEffect(()=>{if(!p)return;const _=Gn(()=>{const x=document.getElementById(b);x&&x.contains(document.activeElement)&&v.current?.focus(),h(!1)}),g=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,k=x=>{x.matches&&h(!1)};return g&&(g.matches&&h(!1),g.addEventListener?.("change",k)),()=>{_(),g?.removeEventListener?.("change",k)}},[p,b]);const C=i?`${i} landing-header__inner`:"landing-header__inner",f=(_,g)=>u?u(_,{onClick:g}):n.jsx("a",{href:_.href,onClick:g,"aria-current":_.current?"page":void 0,children:_.label});return n.jsxs("header",{className:l?`landing-header ${l}`:"landing-header",children:[n.jsxs("div",{className:C,children:[e!=null&&(()=>{const _=typeof e=="string"?n.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?n.jsx("a",{href:a,className:"landing-header__brand",children:_}):n.jsx("div",{className:"landing-header__brand",children:_})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((_,g)=>n.jsx("span",{children:f(_)},`${g}:${_.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&n.jsx("button",{ref:v,type:"button",onClick:()=>h(_=>!_),"aria-expanded":p,"aria-controls":b,"aria-label":p?m.close:m.open,className:p?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:n.jsxs("span",{className:"landing-header__burger",children:[n.jsx("span",{}),n.jsx("span",{}),n.jsx("span",{})]})})]})]}),r.length>0&&n.jsx("nav",{id:b,hidden:!p,className:"landing-header__drawer",children:n.jsx("div",{className:i??void 0,children:r.map((_,g)=>n.jsx("span",{className:"landing-header__drawer-item",children:f(_,()=>h(!1))},`${g}:${_.href}`))})})]})}function px({children:e,action:t,onClick:a,className:r}){const s=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return n.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:n.jsxs("div",{className:s,onClick:a,...Uu(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}function mx({mountedRef:e}){const t=o.useRef({phase:"sound",at:0}),a=o.useRef(0),r=o.useRef(null),s=o.useRef(null),l=o.useCallback(()=>{const C=t.current,f=C.phase!=="sound"&&C.at>0;s.current=f?{phase:C.phase,elapsed:Math.max(0,Date.now()-C.at)}:null},[]),i=o.useCallback(()=>{const C=s.current;return s.current=null,C},[]),u=o.useCallback(()=>{a.current+=1,t.current={phase:"sound",at:0}},[]),c=o.useCallback((C,f,_=0)=>{if(!(C>0))return Promise.resolve(!0);const g=a.current;return t.current={phase:f,at:Date.now()-Math.max(0,_)},new Promise(k=>{const x=setTimeout(()=>{r.current===x&&(r.current=null),k(!!e.current&&g===a.current)},C);r.current=x})},[e]),d=o.useCallback(()=>{t.current={phase:"sound",at:Date.now()}},[]),m=o.useCallback(()=>{t.current={phase:"sound",at:0}},[]),p=o.useCallback(()=>{const C=t.current;return C.phase!=="sound"&&C.at>0},[]),h=o.useCallback(()=>a.current,[]),b=o.useCallback(C=>C===a.current,[]),v=o.useCallback(()=>{a.current+=1},[]);return o.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null)},[]),o.useMemo(()=>({positionRef:t,isRunning:p,generation:h,isCurrent:b,abort:u,waitPad:c,enterSound:d,leave:m,pause:l,resume:i,__bumpGenerationForTest:v}),[p,h,b,u,c,d,m,l,i,v])}const va=9,hx=e=>Math.round(Math.min(va,Math.max(0,e))/va*100),Cx=e=>e/100*va,Xa=2,Ac=.1,fx=e=>Math.min(Xa,Math.max(0,e)),gx=.1,bx=e=>Math.round(e*1e6)/1e6;function Ja(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return fx(t);const a=Math.min(va,Math.max(0,Number(e.level)||0))/va,r=Number(e.mainVolume);return r>0?a>0?bx(Math.min(Xa,Math.max(gx,a/r))):0:1}const Nc=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Ec(e){return Nc(e)}function ps(e){return Nc(e)*Ja(e)}function ms(e,t=$C()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,ps(e)/a)}function Qn(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=Ja({level:a.level,mainVolume:a.mainVolume})),a}const ea={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},hs=o.createContext(null);function _r(){return o.useContext(hs)}const Cs=e=>`${LC()}/${e}`,Dc=e=>Array.from({length:10},(t,a)=>Cs(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),wr={get defaultNoise(){return Cs("noise1.mp3")},get street(){return Dc("noise2")},get restaurant(){return Dc("noise3")},get buzz(){return Cs("noise4.mp3")}};function yx(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return wr.defaultNoise;case"street":return wr.street[t];case"restaurant":return wr.restaurant[t];case"buzz":return wr.buzz;default:return null}}function vx({noisePlayer:e,audioRef:t,playbackStateRef:a,sequencer:r}){const s=o.useRef(e?.registerAnalyser);s.current=e?.registerAnalyser;const l=o.useRef(null),[i,u]=o.useState(null),c=o.useRef(null),d=o.useRef(null),m=o.useRef(null),p=o.useRef(null),h=o.useRef(0),b=o.useRef(null),v=o.useCallback(()=>!!r?.isRunning(),[r]),C=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),b.current!==null&&(clearTimeout(b.current),b.current=null)},[]),f=o.useCallback((A,y=250)=>{const w=l.current;if(!w)return;const B=d.current;if(B){d.current=null;try{w.pause()}catch{}w.src=B,w.load()}if(!w.src)return;h.current+=1,C();try{to(),er(w).then(F=>{if(l.current===w)try{s.current?.("noise",F)}catch{}})}catch{}const E=w.paused?0:tr(w);w.paused&&On(w,0),w.play().catch(()=>{});const D=performance.now(),N=()=>{const F=Math.min(1,(performance.now()-D)/y);try{On(w,E+(A-E)*F)}catch{}F<1?p.current=requestAnimationFrame(N):p.current=null};p.current=requestAnimationFrame(N)},[C]),_=o.useCallback((A=250,y)=>{const w=l.current;if(!w||w.paused){y?.();return}const B=++h.current;C();const E=performance.now(),D=tr(w),N=()=>{const F=Math.min(1,(performance.now()-E)/A);try{On(w,D*(1-F))}catch{}if(F<1)p.current=requestAnimationFrame(N);else{p.current=null,b.current!==null&&(clearTimeout(b.current),b.current=null);try{w.pause()}catch{}y?.()}};p.current=requestAnimationFrame(N),b.current=setTimeout(()=>{if(b.current=null,h.current===B){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{w.paused||(On(w,0),w.pause(),y?.())}catch{}}},A+150)},[C]);o.useEffect(()=>{const A=document.createElement("audio");return A.loop=!0,A.crossOrigin="anonymous",l.current=A,()=>{C();try{A.pause(),A.removeAttribute("src"),A.load()}catch{}l.current=null,c.current=null,d.current=null}},[C]);const g=e?ms(e.settings):0,k=!!e?.settings.enabled&&g>0;o.useEffect(()=>{if(!k)return;let A=0;const y=setInterval(()=>{const w=l.current;if(!w||w.paused){A=0;return}const B=t.current;if(B&&!B.paused&&!B.ended||v()||a.current==="playing"){A=0;return}A+=1,A>=2&&(A=0,_())},400);return()=>clearInterval(y)},[_,k,t,a,v]),o.useEffect(()=>{const A=()=>{const y=l.current;if(document.hidden){if(y&&!y.paused){C();try{y.pause()}catch{}}return}if(!y||!y.paused)return;const w=t.current,B=!!w&&!w.paused&&!w.ended||v()||a.current==="playing",E=m.current;B&&E?.enabled&&E.volume>0&&f(E.volume)};return document.addEventListener("visibilitychange",A),()=>document.removeEventListener("visibilitychange",A)},[C,f,t,a,v]),o.useEffect(()=>{m.current=e?{enabled:e.settings.enabled,volume:g,type:e.settings.type}:null},[e,e?.settings.enabled,g,e?.settings.type]);const x=o.useRef(null);return o.useEffect(()=>()=>{x.current?.(),x.current=null},[]),o.useEffect(()=>{const A=e?.settings,y=l.current;if(!y)return;const w=A?ms(A):0;if(!A||!A.enabled||w===0){_();return}if(c.current!==A.type){const B=yx(A.type);B&&(c.current=A.type,u(B),d.current=B,_(150,()=>{if(d.current!==B)return;d.current=null,y.src=B,y.load();const E=t.current;if(E&&!E.paused||v()){x.current?.();const D=()=>{y.removeEventListener("canplay",D),x.current===N&&(x.current=null);const F=t.current,$=m.current;(F&&!F.paused&&!F.ended||v())&&$?.enabled&&$.volume>0&&f($.volume)},N=()=>y.removeEventListener("canplay",D);x.current=N,y.addEventListener("canplay",D)}}))}else{const B=t.current,E=!!B&&!B.paused&&!B.ended||v()||a.current==="playing";if(E&&d.current)f(w);else if(E&&y.paused&&y.src)f(w);else if(!y.paused)if(!E)_();else{C();const D=tr(y),N=performance.now(),F=()=>{const $=Math.min(1,(performance.now()-N)/150);try{On(y,D+(w-D)*$)}catch{}$<1?p.current=requestAnimationFrame(F):p.current=null};p.current=requestAnimationFrame(F)}}},[e?.settings,e?.settings.enabled,g,e?.settings.type,C,f,_,t,a,m,v]),o.useEffect(()=>{const A=l.current;if(A)try{A.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:l,activeNoiseUrl:i,noiseSettingsRef:m,cancelNoiseFade:C,fadeInNoise:f,fadeOutNoise:_}}function xx({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:l,setPlaybackState:i,setStateLocal:u,fadeInNoise:c,fadeOutNoise:d,noiseSettingsRef:m,onDoneRef:p,handleEndRef:h}){const b=o.useRef(null),v=o.useRef(0),C=o.useRef(null),f=o.useRef(0),_=o.useRef(!1);o.useEffect(()=>()=>{f.current++;try{if(C.current&&(cancelAnimationFrame(C.current),C.current=null),_.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}_.current=!1}}catch{}},[]);const g=(A,y=1)=>{try{const w=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(w*300/Math.max(.25,y)))}catch{return 1200}},k=o.useCallback(A=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!1)}catch{}return}const y=window.speechSynthesis,w=++f.current;try{try{y.cancel()}catch{}const B=A??e,E=Array.isArray(B)?B.filter(M=>!!M):[B||""];E.length===0&&E.push("");const D=Math.max(.3,Math.min(3,t));v.current=E.reduce((M,P)=>M+g(P,D||1),0),b.current=performance.now(),l(0),i("playing"),u("playMode");const N=m.current;N?.enabled&&(N?.volume??0)>0&&c(N.volume);const F=()=>{try{const M=b.current||performance.now(),P=performance.now()-M,T=v.current||1200,K=Math.min(1,P/T);try{r.current&&(r.current.style.left=`${K*100}%`),s.current&&s.current.style.setProperty("--progress",String(K))}catch{}K<1&&(C.current=requestAnimationFrame(F))}catch{}},$=()=>{if(w===f.current)try{C.current&&(cancelAnimationFrame(C.current),C.current=null),l(1),i("stopped");try{h.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},Y=M=>{const P=new SpeechSynthesisUtterance(E[M]);try{P.rate=D}catch{}try{P.volume=Math.max(0,Math.min(1,a))}catch{}P.onend=()=>{if(w===f.current){if(M<E.length-1){try{Y(M+1)}catch{$()}return}$()}},P.onerror=()=>{$()},P.onstart=()=>{if(!(M>0))try{C.current&&(cancelAnimationFrame(C.current),C.current=null),C.current=requestAnimationFrame(F)}catch{}},_.current=!0,y.speak(P)};try{Y(0)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,t,a,c,r,s,l,i,u,m,p,h]),x=o.useCallback(()=>{f.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}C.current&&(cancelAnimationFrame(C.current),C.current=null),d(),b.current=null}catch{}i("stopped"),u("active"),l(0)},[d,i,u,l]);return{startTTS:k,stopTTS:x}}const _x=.01,wx=.3;async function Bx(e,t,a,r=!1){let s=null;try{const l=window.AudioContext||window.webkitAudioContext;s=new l;const i=await s.decodeAudioData(e.slice(0)),u=i.numberOfChannels>0?i.getChannelData(0):null;if(!u)return null;let c=0;if(r){const b=Math.floor(wx*i.sampleRate),v=Math.min(u.length,b);for(;c<v&&Math.abs(u[c])<=_x;)c++;c>=v&&(c=0)}const d=u.length-c,m=a&&a>0?Math.min(d,Math.floor(a*i.sampleRate)):d,p=Math.max(t,m),h=Math.floor(p/t)||1;return new Array(t).fill(0).map((b,v)=>{const C=c+v*h,f=Math.min(C+h,c+p,u.length);let _=0;for(let g=C;g<f;g++){const k=Math.abs(u[g]);k>_&&(_=k)}return _})}catch{return null}finally{try{s?.close?.()}catch{}}}async function Sc(e,t,a,r=!1){try{const s=await fetch(e);if(s.ok===!1)return null;const l=await s.arrayBuffer();return await Bx(l,t,a,r)}catch(s){try{const l=Pl(s)}catch{}return null}}const fs=45,kx=74,Ax=2;function Br(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function kr(e){return Br(e)/45}const Nx=e=>Math.max(0,(typeof e=="number"&&Number.isFinite(e)?e:0)*1e3),jc=e=>Math.max(0,typeof e=="number"&&Number.isFinite(e)?e:0);function Tc({durationsSec:e,leadInMs:t=0,tailMs:a=0}){const r=jc(t),s=jc(a),l=[];let i=0;return e.forEach((u,c)=>{for(const[d,m]of[["lead",r],["sound",Nx(u)],["tail",s]])l.push({kind:d,track:c,startMs:i,durMs:m}),i+=m}),{segments:l,totalMs:i,trackCount:e.length}}function Mc(e,t){const a=(t|0)*3;if(t<0||a+2>=e.segments.length)return null;const[r,s,l]=[e.segments[a],e.segments[a+1],e.segments[a+2]];return{lead:r,sound:s,tail:l,totalMs:r.durMs+s.durMs+l.durMs}}function Ex(e,t){const a=Mc(e,t.track);if(!a||!(a.totalMs>0))return 0;const r=a[t.kind],s=Math.min(Math.max(0,Number.isFinite(t.elapsedMs)?t.elapsedMs:0),r.durMs);return Math.max(0,Math.min(1,(r.startMs-a.lead.startMs+s)/a.totalMs))}function Dx(e,t,a){const r=Math.max(0,Math.floor(a)),s=Mc(e,t);if(!s||r===0||!(s.totalMs>0)||s.lead.durMs===0&&s.tail.durMs===0||!(s.sound.durMs>0))return{lead:0,sound:r,tail:0};const l=Math.round(s.lead.durMs/s.totalMs*r),i=Math.round(s.tail.durMs/s.totalMs*r),u=Math.max(1,r-l-i),c=l+u+i-r;return{lead:Math.max(0,l-Math.ceil(c/2)),sound:u,tail:Math.max(0,i-Math.floor(c/2))}}function Sx({currentTime:e,sources:t,index:a,audioDuration:r}){const s=a||0,l=Array.isArray(t)&&t.length>0?t[s]:void 0,i=l?l.duration||r||0:r||0;if(!(i>0))return 0;const u=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,u/i))}function jx({phase:e,phaseElapsedMs:t,currentTime:a,trackDurationSec:r,leadInMs:s,tailMs:l}){const i=Tc({durationsSec:[r],leadInMs:s,tailMs:l});return Ex(i,{track:0,kind:e,elapsedMs:e==="sound"?(Number.isFinite(a)?a:0)*1e3:t})}function Tx({bars:e,trackDurationSec:t,leadInMs:a,tailMs:r}){return Dx(Tc({durationsSec:[t],leadInMs:a,tailMs:r}),0,e)}function Mx(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function Lx({ended:e,completedByEnd:t}){return!!e||!!t}function $x(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function Rx(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function Px(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],s=[];for(const l of r)if(l){if(typeof l=="object"&&l!==null&&"src"in l&&l.src){const i=l;s.push({code:i.code??null,src:i.src});continue}if(typeof l=="string"&&(l.startsWith("http")||l.includes("/"))){s.push({code:null,src:l});continue}if(typeof l=="string"||typeof l=="number"){const i=String(l),u=a(i,t);u&&s.push({code:i,resolvedPath:u})}}return s}function Ix(e,t){if(!t||e.readyState<1)return!0;const a=e.currentSrc||e.src;return a?Lc(a)!==Lc(t):!0}function Lc(e){try{return new URL(e,typeof location>"u"?"http://localhost/":location.href).href}catch{return e}}const $c=4,Fx=kr($c/fs);function Ox(e){const{src:t,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:l,noiseRatio:i=0,noiseSpeed:u=1,totalDuration:c=0,mainVolume:d=1,onReadyChange:m,showSoundWaveForm:p=!0,leadInMs:h=0,tailMs:b=0,trackDurationSec:v=0}=e,C=o.useRef(null),f=o.useRef(null),[_,g]=o.useState(null),[k,x]=o.useState(!1),[A,y]=o.useState(null),[w,B]=o.useState(2),[E,D]=o.useState(0),[N,F]=o.useState(null),[$,Y]=o.useState(!1),[M,P]=o.useState(!1),T=3,K=3,V=1,O=300,Q=o.useRef(0),I=o.useCallback(()=>{const ye=C.current,me=f&&f.current?f.current:ye?ye.closest(".audio-player__wave"):null,se=me?me.getBoundingClientRect():ye?ye.getBoundingClientRect():null,ge=se?se.width:0,Ce=se?Math.max(100,se.width):320,de=se?se.height:0,Le=Math.max(V,Math.min(O,Math.floor((Ce+K)/(T+K)))),ze=Le*T,Te=Math.max(0,Le-1),Ge=Math.max(0,Te>0?(Ce-ze)/Te:K);return{bars:Le,gap:Ge,height:de,width:ge}},[]),q=o.useRef(void 0),z=o.useRef(null),U=o.useCallback(async(ye,me,{quiet:se=!1}={})=>{const ge=++Q.current,Ce=()=>Q.current===ge;try{if(se||x(!1),q.current=ye,!ye){Ce()&&g(null);return}let de=me;if(!de)try{for(let Te=0;Te<4&&!(C.current||f.current);Te++)await new Promise(Ge=>requestAnimationFrame(Ge));await new Promise(Te=>requestAnimationFrame(Te));const ze=I();ze.height>0&&D(ze.height),de=ze.bars,B(ze.gap)}catch{de=120}z.current=de;const Le=await Sc(ye,de);if(!Ce())return;if(!Le){g(null),x(!1);return}g(Le),y(de),x(!0)}catch{if(!Ce())return;g(null),x(!1)}},[x,g,D,B,y,I]);o.useEffect(()=>{const ye=f.current;if(!ye||typeof ResizeObserver>"u")return;let me=null;const se=new ResizeObserver(()=>{me!==null&&cancelAnimationFrame(me),me=requestAnimationFrame(()=>{me=null;try{const ge=I();if(ge.width<=0||(ge.height>0&&D(ge.height),z.current===null||ge.bars===z.current))return;const Ce=q.current;B(ge.gap),Ce?U(Ce,ge.bars,{quiet:!0}).catch(()=>{}):z.current=ge.bars}catch{}})});return se.observe(ye),()=>{se.disconnect(),me!==null&&cancelAnimationFrame(me)}},[I,U]),o.useEffect(()=>{const ye=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;U(typeof ye=="string"?ye:void 0).catch(()=>{}),P(!1)},[t,a,U]),o.useEffect(()=>{let ye=!1;if(Y(!1),F(null),!l||!A)return;const me=c>0?c*(u||1):void 0;return Sc(l,A,me,!0).then(se=>{ye||(F(se),se||Y(!0))}).catch(()=>{ye||(F(null),Y(!0))}),()=>{ye=!0}},[l,A,c,u]);const S=Math.max(0,Math.min(1,d)),R=o.useMemo(()=>_&&_.length&&Math.max(..._)||1,[_]),L=A||40,Z=o.useMemo(()=>Tx({bars:L,trackDurationSec:v,leadInMs:h,tailMs:b}),[L,v,h,b]),ue=o.useMemo(()=>Array.from({length:L}).map((ye,me)=>{const se=me>=Z.lead&&me<Z.lead+Z.sound,ge=Z.sound>0&&se?Math.min(L-1,Math.round((me-Z.lead)/Z.sound*L)):-1,Ce=se?_&&_[ge]!=null?_[ge]:null:_?0:null,de=Ce==null?null:Math.min(1,Ce/R*S),Le=de!=null&&E>0&&Br(de)<=$c,ze=de==null?.15:Le?0:kr(de),Te=Le,Ge=L>1?me/(L-1):0;return n.jsx("div",{className:Te?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ze,"--i":me,"--mix":Ge}},me)}),[L,_,R,S,E,Z]),oe={"--progress":String(Math.max(0,Math.min(1,r)))},le=o.useMemo(()=>N&&N.length&&Math.max(...N.map(ye=>Number.isFinite(ye)?Math.abs(ye):0))||1,[N]),re=S*Math.max(0,i),W=!l||!N||!N.length?1:Math.max(1,re),te={"--bar-gap":`${w}px`,"--wave-h":`${Br(W)}px`,"--wave-h1":`${fs}px`},H=k&&(l?!!N||$:!0);o.useEffect(()=>{H&&P(!0)},[H]);const G=M?k:H;o.useEffect(()=>{m?.(G)},[G,m]);const pe=A||40,Ne=o.useMemo(()=>Array.from({length:pe}).map((ye,me)=>{const se=N&&N[me]!=null?N[me]:null,ge=se==null?0:Math.abs(se)/le*re,Ce=Math.max(Fx,kr(ge)),de=pe>1?me/(pe-1):0;return n.jsx("div",{className:"audio-player__bar",style:{"--val":Ce,"--i":me,"--mix":de}},me)}),[pe,N,le,re,E]);return n.jsxs("div",{className:"audio-player__wave",ref:f,style:te,children:[l&&n.jsx("div",{className:`audio-player__wave-noise ${H?"is-ready":""}`,"aria-hidden":"true",children:Ne}),p&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${G?"is-ready":""}`,ref:C,children:ue}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${G?"is-ready":""}`,ref:s,style:oe,children:ue})]})]})}const Rc={idle:!1,synthesizing:!0,resolving:!0,checking_exists:!0,getting_signed_url:!0,downloading:!0,measuring_duration:!0,ready:!1,error:!0};function gs(e,t){return new Promise((a,r)=>{const s=document.createElement("audio");let l=!1;const i=()=>{try{s.removeAttribute("src"),s.load()}catch{}},u=()=>{if(l)return;l=!0;const d=isFinite(s.duration)&&s.duration||0;i(),a(d)},c=d=>{l||(l=!0,i(),t.rejectOnError?r(new Error(d)):a(0))};s.addEventListener("loadedmetadata",u),s.addEventListener("error",()=>c("audio load failed")),setTimeout(()=>c("audio load timeout"),t.timeoutMs),s.src=e})}const zx=2e3;function Pc(e,t=zx){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.addEventListener("canplay",s,{once:!0}),e.addEventListener("error",s,{once:!0}),setTimeout(s,t)})}function Wx({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),l=o.useCallback(c=>{if(r.current=c,!c||!s.current.length)return;const d=s.current;s.current=[];for(const m of d)m(!0)},[]),i=o.useCallback(()=>{r.current=!1},[]),u=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(c=>{const d=p=>{clearTimeout(m),s.current=s.current.filter(h=>h!==d),c(p)},m=setTimeout(()=>d(!0),a);s.current.push(d)}),[e,t,a]);return o.useEffect(()=>()=>{const c=s.current;s.current=[];for(const d of c)d(!1)},[]),{onReadyChange:l,waitForReady:u,markNotReady:i}}function Hx(){const e=o.useRef([]),t=o.useCallback(s=>(e.current.push(s),s),[]),a=o.useCallback(s=>{const l=new Set([...s].filter(Boolean));e.current=e.current.filter(i=>{if(l.has(i))return!0;try{URL.revokeObjectURL(i)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const s of e.current)try{URL.revokeObjectURL(s)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function Vx({offsetY:e=8}={}){const t=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),l=o.useCallback(()=>{try{const i=t.current?.getBoundingClientRect();if(!i)return;r({left:i.left,right:i.right,width:i.width,height:i.height,x:i.x,top:i.top+e,bottom:i.bottom+e,y:i.y+e,toJSON:i.toJSON.bind(i)})}catch{}},[e]);return o.useEffect(()=>{if(a)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[a,s]),{ref:t,rect:a,show:l,hide:s}}function qx(e){if(!e)return 0;const t=e.duration;if(Number.isFinite(t)&&t>0)return t;if(t===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}const Ux=400,Gx=2e3,Ic=5;function Kx({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:s,sequencer:l,leadInMs:i=0,tailMs:u=0}){const c=o.useRef(null),d=o.useRef(0),m=o.useRef(null),p=o.useCallback(()=>{c.current!==null&&(cancelAnimationFrame(c.current),c.current=null)},[]),h=o.useCallback(()=>{if(c.current!==null)return;let v=0;const C=()=>{if(Pn){const f=typeof performance<"u"&&performance.now?performance.now():Date.now();if(v>0&&f-v>Ux){const _=m.current===null||f-m.current>Gx;if(m.current=f,_&&d.current<Ic){d.current+=1;const g=d.current;let k=null;try{k=typeof document<"u"?document.visibilityState:null}catch{}Mt(`progress-ticker-slow-frames#${g}`,`[ihab-core] \uC9C4\uD589 \uC0AC\uC2AC\uC758 \uD2C0 \uC0AC\uC774\uAC00 ${Math.round(f-v)}ms \uC785\uB2C8\uB2E4(\uBCF4\uD1B5 16ms).`,k==="hidden"?"\uC774 \uCE78\uC774 **\uC228\uC5B4 \uC788\uC5B4** \uBE0C\uB77C\uC6B0\uC800\uAC00 \uD2C0\uC744 \uC904\uC600\uC2B5\uB2C8\uB2E4 \u2014 \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC740 \uD2C0\uB9C8\uB2E4 \uADF8\uB824\uC9C0\uBBC0\uB85C, \uC9C0\uAE08 \uC7AC\uB294 \uAC12\uC740 **\uC0AC\uB78C\uC774 \uBCF4\uB294 \uD654\uBA74\uACFC \uB2E4\uB985\uB2C8\uB2E4.** \uCE78\uC744 \uC55E\uC73C\uB85C \uAEBC\uB0B4\uACE0 \uB2E4\uC2DC \uC7AC\uC2ED\uC2DC\uC624.":"\uCE78\uC740 \uBCF4\uC774\uB294\uB370 \uD2C0\uC774 \uB290\uB9BD\uB2C8\uB2E4 \u2014 \uAC19\uC740 \uD654\uBA74\uC5D0\uC11C \uBB34\uAC70\uC6B4 \uC77C\uC774 \uB3C4\uB294\uC9C0 \uBCF4\uC2ED\uC2DC\uC624. \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC774 \uB04A\uACA8 \uBCF4\uC774\uB294 \uAC83\uC740 \uC774 \uD0D3\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.",g>=Ic?`(${g}\uBC88\uC9F8 \u2014 \uB354\uB294 \uC548 \uC54C\uB9BD\uB2C8\uB2E4)`:`(${g}\uBC88\uC9F8)`)}}v=f}try{const f=e.current,_=Array.isArray(r.current)?r.current[s.current||0]:void 0,g=!!_&&Number.isFinite(_.duration)&&(_.duration??0)>0,k=g?0:qx(f),x=t.current,A=(i||0)>0||(u||0)>0,y=A&&(l?.positionRef.current?.phase??"sound")!=="sound";if(k===null&&!y)try{x&&x.style.visibility!=="hidden"&&(x.style.visibility="hidden")}catch{}else{const w=g?_.duration:k||0;Pn&&y&&!(w>0)&&Mt("progress-ticker-pad-without-duration","[ihab-core] \uB738\uC774 \uB3C4\uB294\uB370 **\uC18C\uB9AC \uAE38\uC774\uB97C \uBAA8\uB985\uB2C8\uB2E4** \u2014 \uC7AC\uC0DD\uBC14\uAC00 \uB738\uB9CC\uC73C\uB85C \uC5B4\uB9BC\uC7A1\uC544 \uC6C0\uC9C1\uC785\uB2C8\uB2E4.","\uC18C\uB9AC \uAE38\uC774 \uC7AC\uAE30(measureAudioDuration)\uAC00 0 \uC744 \uC92C\uAC70\uB098 `<audio>` \uAC00 \uC544\uC9C1 \uC548 \uC2E4\uB838\uC2B5\uB2C8\uB2E4. \uAE38\uC774\uB97C \uC54C\uAC8C \uB418\uBA74 \uB9C8\uCEE4\uAC00 \uADF8 \uC21C\uAC04 **\uB4A4\uB85C \uBB3C\uB7EC\uB0A9\uB2C8\uB2E4**(\uC5B4\uB9BC\uC740 \uB298 \uCC38\uBCF4\uB2E4 \uD07D\uB2C8\uB2E4). \uC774 \uC904\uC774 \uBCF4\uC774\uBA74 \uADF8 \uC790\uB9AC\uB97C \uC54C\uB824 \uC8FC\uC2ED\uC2DC\uC624 \u2014 \uD3C9\uC18C \uAE38\uC5D0\uC11C\uB294 \uC548 \uB098\uC640\uC57C \uD569\uB2C8\uB2E4.");const B=A?jx({phase:l?.positionRef.current?.phase??"sound",phaseElapsedMs:l?.positionRef.current?Math.max(0,Date.now()-l.positionRef.current.at):0,currentTime:f&&typeof f.currentTime=="number"?f.currentTime:0,trackDurationSec:w,leadInMs:i||0,tailMs:u||0}):Sx({currentTime:f&&typeof f.currentTime=="number"?f.currentTime:0,sources:r.current,index:s.current,audioDuration:k??0});try{x&&(x.style.visibility&&(x.style.visibility=""),x.style.left=`${B*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(B))}catch{}}}catch{}c.current=requestAnimationFrame(C)};c.current=requestAnimationFrame(C)},[e,t,a,r,s,l,i,u]),b=o.useCallback(v=>{p();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${v*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(v))}catch{}},[p,t,a]);return o.useEffect(()=>p,[p]),{start:h,stop:p,settleTo:b}}function bs({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:s=!1,ttsText:l=null,className:i,showSoundWaveForm:u=!0,showNoiseWaveForm:c=!0,leadInMs:d=0,tailMs:m=0}){const{t:p}=_e.useTranslation(),h=e,b=_r(),v=o.useRef(b?.registerAnalyser);o.useEffect(()=>{v.current=b?.registerAnalyser});const C=o.useRef(null),f=o.useRef(null),_=o.useRef(null),g=Hx(),k=o.useRef(null),x=o.useRef(!1),A=o.useRef(null),{ref:y,rect:w,show:B,hide:E}=Vx();o.useEffect(()=>()=>{v.current?.("main",null),v.current?.("noise",null)},[]);const[D,N]=o.useState(!1),[F,$]=o.useState("idle"),[Y,M]=o.useState("stopped"),P=o.useRef("stopped");o.useEffect(()=>{P.current=Y},[Y]);const[T,K]=o.useState(0),[V,O]=o.useState("active"),Q=o.useRef(!1);o.useEffect(()=>{if(V!=="playMode"||!Q.current)return;Q.current=!1;const X=typeof document<"u"?document.activeElement:null;if(X&&X!==document.body)return;const ce=_.current?.querySelectorAll("button")[1];try{ce?.focus()}catch{}},[V]);const[I,q]=o.useState(null),[z,U]=o.useState(null),[S,R]=o.useState(0),[L,Z]=o.useState(!1),[ue,oe]=o.useState(0),le=b?.playbackRate??1,re=b?.mainVolume??1,W=b?ps(b.settings):0,te=b?Ec(b.settings):re,[H,G]=o.useState("idle"),[pe,Ne]=o.useState(""),[ye]=o.useState("top"),me=o.useRef(null),se=o.useRef(0),ge=o.useRef(null),Ce=o.useRef(!0),de=mx({mountedRef:Ce}),Le=o.useRef(null),ze=o.useRef(d),Te=o.useRef(m);o.useEffect(()=>{ze.current=Math.max(0,d||0)},[d]),o.useEffect(()=>{Te.current=Math.max(0,m||0)},[m]);const{start:Ge,stop:Ie,settleTo:ct}=Kx({audioRef:C,fillRef:f,waveProgressRef:ge,sourcesRef:me,currentIndexRef:se,sequencer:de,leadInMs:d,tailMs:m}),{onReadyChange:at,waitForReady:rt,markNotReady:lt}=Wx({showSoundWaveForm:u,showNoiseWaveForm:c}),Ee=o.useRef(null),Ye=o.useRef(s),ke=o.useRef(r),He=o.useRef(null),Je=o.useRef(!1),[dt,kt]=o.useState(!1),At=o.useCallback(X=>{Je.current=X,kt(X)},[]),Pt=o.useRef(null),{activeNoiseUrl:et,noiseSettingsRef:st,fadeInNoise:Dt,fadeOutNoise:vt}=vx({noisePlayer:b,audioRef:C,playbackStateRef:P,sequencer:de}),{startTTS:we,stopTTS:Re}=xx({ttsText:l,playbackRate:le,mainVolume:te,fillRef:f,waveProgressRef:ge,setProgress:K,setPlaybackState:M,setStateLocal:O,fadeInNoise:Dt,fadeOutNoise:vt,noiseSettingsRef:st,onDoneRef:ke,handleEndRef:Pt});o.useEffect(()=>{St.current=Re});const Se=X=>{if(typeof window>"u"||!window.speechSynthesis){try{Ne(p("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}we(X);return}Me("tts"),we(X)},Ve=Array.isArray(t)?t.filter(Boolean):t?[t]:[],qe=(!Ve||Ve.length===0)&&!!l,Bt=Array.isArray(I)&&I.length>0?I:Array.isArray(z)&&z.length>0?z:null,mt=Math.max(Array.isArray(Bt)?Bt.length:0,Ve.length);o.useEffect(()=>(Ce.current=!0,()=>{Ce.current=!1}),[]);const ut=()=>{de.abort()},St=o.useRef(null),Ue=o.useRef(null),ht=o.useRef(null),jt=o.useRef(null);jt.current||(jt.current=()=>{ht.current=null;const X=C.current;if(Ue.current==="audio"&&X&&(!X.paused||de.isRunning())){ut();try{X.pause()}catch{}Ce.current&&(M("paused"),Ie(),vt())}else if(Ue.current==="tts")try{St.current?.()}catch{}});const Me=X=>{Ue.current=X,ht.current=pr(jt.current)},Ke=()=>{ht.current?.(),ht.current=null};o.useEffect(()=>()=>{jt.current&&mr(jt.current)},[]);const yt=o.useRef(le);o.useEffect(()=>{yt.current=le||1},[le]);const Qe=o.useCallback(X=>{const ce=yt.current||1;try{X.defaultPlaybackRate=ce}catch{}try{X.playbackRate=ce}catch{}},[]),xt=o.useCallback((X,ce)=>{if(!Ix(X,ce)){try{X.currentTime=0}catch{}Qe(X);return}X.src=ce,Qe(X),X.load(),Qe(X)},[Qe]),ae=o.useCallback(()=>{He.current&&(clearTimeout(He.current),He.current=null),G("idle")},[]),ve=o.useCallback(async(X,ce=3,ee=50,xe=0)=>{ae();const $e=de.generation(),We=!!X&&X.currentTime>0&&!X.ended,ot=Math.max(0,ze.current-Math.max(0,xe));if(ot>0&&!We){Me("audio"),Ge(),M("playing");const bt=st.current;if(bt?.enabled&&(bt.volume??0)>0)try{Dt(bt.volume)}catch{}if(!await de.waitPad(ot,"lead",xe)||!Ce.current||!de.isCurrent($e))return!1}de.enterSound();for(let bt=0;bt<ce;bt++){if(!Ce.current||!de.isCurrent($e))return!1;try{return Me("audio"),await X.play(),!0}catch(be){if((be instanceof Error||typeof be=="object"&&be&&"name"in be?be.name:void 0)==="AbortError"){if(!de.isCurrent($e))return!1;await new Promise(j=>setTimeout(j,ee));continue}try{Ne(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{Ne(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[p,Ge,de,Dt,st,ae]),Oe=o.useCallback(X=>{const ce=de.generation(),ee=Math.max(0,Te.current-Math.max(0,X));Ge();const xe=st.current;if(xe?.enabled&&(xe.volume??0)>0)try{Dt(xe.volume)}catch{}const $e=()=>{try{Le.current?.()}catch{}};if(ee<=0){de.leave(),$e();return}de.waitPad(ee,"tail",X).then(We=>{de.leave(),We&&de.isCurrent(ce)&&$e()}).catch(()=>{})},[de,Ge,Dt,st]),tt=o.useCallback(()=>{const X=C.current;if(!X)return;const ce=()=>{M("playing"),O("playMode"),Z(!0),Ge();try{to(),er(X).then(We=>{if(Ce.current)try{v.current?.("main",We)}catch{}})}catch{}const $e=st.current;$e?.enabled&&($e?.volume??0)>0&&Dt($e.volume)},ee=()=>{Lx({ended:!!X?.ended,completedByEnd:Je.current})||(M("paused"),Ie(),vt())},xe=()=>{const $e=()=>{try{const We=me.current,ot=Mx(We,se.current);if(ot!==null){se.current=ot,R(ot),Z(!0);const bt=We?.[ot]&&We[ot].src;if(bt&&X){xt(X,bt),ve(X).catch(()=>{});return}}}catch{}M("stopped"),K(1);try{if(X)try{X.currentTime=0}catch{}}catch{}Ie(),Z(!1),vt();try{!Ye.current&&Pt.current&&Pt.current()}catch{}};if(Le.current=$e,Te.current>0){Ge(),de.waitPad(Te.current,"tail").then(We=>{de.leave(),We&&$e()}).catch(()=>{});return}$e()};return X.addEventListener("play",ce),X.addEventListener("pause",ee),X.addEventListener("ended",xe),()=>{try{X.removeEventListener("play",ce),X.removeEventListener("pause",ee),X.removeEventListener("ended",xe),Ie()}catch{}}},[Dt,vt,ve,st,Ge,Ie,de]);o.useEffect(()=>tt(),[tt]),o.useEffect(()=>{Ye.current=s},[s]),o.useEffect(()=>{ke.current=r},[r]),o.useEffect(()=>{if(s||V!=="active")return;const X=A.current;if(!X)return;let ce=null;const ee=requestAnimationFrame(()=>{try{const xe=X.getTotalLength();if(!xe)return;const $e=xe*.2;X.style.strokeDasharray=`${xe-$e} ${$e}`;const We="triFlow_"+Math.random().toString(36).slice(2);ce=document.createElement("style"),ce.textContent=`@keyframes ${We}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${xe}}}`,document.head.appendChild(ce),X.style.animation=`${We} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(ee),ce?.remove()}},[V,s]),o.useEffect(()=>{me.current=I},[I]),o.useEffect(()=>{se.current=S},[S]),o.useEffect(()=>{const X=_.current,ce=k.current;if(!X||!ce)return;let ee=null;const xe=32,$e=60,We=()=>{try{const bt=Array.from(X.querySelectorAll(":scope > .button"));let be=0;bt.forEach(Pe=>{if(Pe===ce)return;const Xe=Pe.getBoundingClientRect();be+=Xe.width});const j=X.getBoundingClientRect().width,J=Math.max(0,Math.floor(j-be-8)),he=mt;if(!he||J<=0){Array.from(ce.children).forEach(Pe=>{try{Pe.style.width=""}catch{}});return}let De=Math.floor(J/he);De>$e&&(De=$e),De<xe&&(De=Math.max(xe,Math.floor(J/he))),Array.from(ce.querySelectorAll(".button")).forEach(Pe=>{try{Pe.style.width=`${De}px`}catch{}})}catch{}},ot=requestAnimationFrame(We);try{ee=new ResizeObserver(()=>{requestAnimationFrame(We)}),ee.observe(X),ee.observe(ce),window.addEventListener("resize",We)}catch{}return()=>{try{cancelAnimationFrame(ot)}catch{}try{ee&&(ee.disconnect(),ee=null)}catch{}try{window.removeEventListener("resize",We)}catch{}}},[I,z,mt]),o.useEffect(()=>()=>{try{Ee.current&&(clearTimeout(Ee.current),Ee.current=null),He.current&&(clearTimeout(He.current),He.current=null)}catch{}},[]);const gt=(X,ce)=>{q(X),oe(ce),lt(),U($x(X)),me.current=X},it=()=>{O("playMode"),R(0),Z(!0)},It=async(X,ce)=>{At(!1),x.current=!1,xt(X,ce),await Pc(X),await rt()!==!1&&(N(!1),it(),await ve(X))},Gt=async(X,ce=!1)=>{const ee=C.current;N(!0),$("measuring_duration");try{const xe=await gs(X,{timeoutMs:1e4,rejectOnError:!0});gt([{src:X,objectUrl:null,duration:xe}],xe),$("ready"),ce&&ee&&await It(ee,X)}finally{x.current=!1,N(!1)}},An=async(X,ce=!1)=>{const ee=C.current;N(!0),$("measuring_duration");try{const xe=await Promise.all(X.map(We=>gs(We,{timeoutMs:1e4})));if(!Ce.current)return;const $e=X.map((We,ot)=>({src:We,objectUrl:null,duration:xe[ot]||0}));gt($e,Rx($e)),$("ready"),ce&&ee&&$e.length>0&&await It(ee,$e[0].src)}finally{x.current=!1,N(!1)}},Wt=async(X=!1,ce=!0)=>{const ee=C.current,xe=t?Array.isArray(t)?t:[t]:[];if(!xe||xe.length===0||!xe.some(Boolean))return!1;if(x.current)return null;x.current=!0,ce&&N(!0),$("resolving");try{const $e=Px(t,a,xl),We=[];let ot=0;for(const bt of $e){let be=bt.src??null,j=null;if(!be&&bt.resolvedPath){try{$("getting_signed_url"),be=await _l(bt.resolvedPath)}catch{be=null}if(!Ce.current)return!1;if(!be)try{$("downloading");const he=await wl(bt.resolvedPath);if(!Ce.current)return!1;if(he){const De=he instanceof Blob?he:new Blob([he]);j=g.track(URL.createObjectURL(De)),be=j}}catch{$("error");try{Ne(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),O("active")}catch{}}}if(!be)continue;let J=0;try{$("measuring_duration"),J=await gs(be,{timeoutMs:3e3})}catch{J=0}if(!Ce.current){if(j)try{URL.revokeObjectURL(j)}catch{}for(const he of We)if(he.objectUrl)try{URL.revokeObjectURL(he.objectUrl)}catch{}return!1}ot+=J||0,We.push({...bt,src:be,objectUrl:j,duration:J})}if(gt(We,ot),We.length>0&&X&&ee){const bt=We[0];At(!1);try{g.keepOnly(We.map(be=>be.objectUrl))}catch{}if($("ready"),x.current=!1,bt.src&&ee)try{if(xt(ee,bt.src),await Pc(ee),await rt()===!1)return!1;ce&&N(!1),it(),ee&&await ve(ee)}catch{ce&&N(!1)}else ce&&N(!1);O("playMode"),R(0),Z(!0)}return We.length>0}finally{x.current=!1,ce&&N(!1),$($e=>$e==="ready"?"ready":"idle")}},Kt=async X=>{const ce=de.isRunning();if(X.paused&&!ce){if(Je.current){await Ct();return}const ee=de.resume();if(ee){if(M("playing"),ee.phase==="tail"){Oe(ee.elapsed);return}await ve(X,3,50,ee.elapsed);return}await ve(X),M("playing")}else de.pause(),ut(),X.pause(),M("paused"),ce&&(Ie(),vt())},Nt=async()=>{const X=C.current;if(!(!X&&!qe)){if(qe){const ce=window.speechSynthesis;if(V==="active"){const ee=Na(),xe=Array.isArray(l)?l.filter(Boolean):l?[l]:[];if(ee&&xe.length>0){if(x.current)return;O("load"),N(!0),$("synthesizing"),x.current=!0;try{const $e=await Promise.all(xe.map(We=>Promise.resolve(ee(We))));$e.length>1?await An($e,!0):await Gt($e[0],!0)}catch{x.current=!1,N(!1),O("active"),Se(xe.length>0?xe:void 0)}return}Se(xe.length>0?xe:void 0);return}if(V==="playMode"){const ee=!!ce&&(ce.speaking||ce.paused)&&!(X&&(X.currentSrc||X.getAttribute("src")));if(X&&!ee){await Kt(X);return}try{if(ce&&ce.paused)try{Me("tts"),ce.resume(),M("playing")}catch{}else try{ce.pause(),M("paused")}catch{}}catch{}}return}if(V==="active"){if(s&&Array.isArray(me.current)&&me.current.length>0){const ee=me.current[0];try{if(ee.src&&X)try{xt(X,ee.src),it(),X&&await ve(X)}catch{}it();return}catch{}}O("load");let ce;try{ce=await Wt(!0)}catch{ce=!1}if(ce===!1&&Ce.current){try{Ne(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}O("active")}return}if(V!=="load"&&(V==="playMode"||V==="active"))try{X&&await Kt(X)}catch(ce){(ce instanceof Error||typeof ce=="object"&&ce&&"name"in ce)&&ce.name}}},Ct=async()=>{const X=C.current;if(X)try{const ce=me.current;if(Array.isArray(ce)&&ce.length>1){await Zt(0);return}At(!1);try{X.currentTime=0}catch{}X&&await ve(X),M("playing"),O("playMode")}catch{}},ft=()=>{ut(),Ke(),St.current?.();const X=C.current;try{if(X){try{X.pause()}catch{}try{X.currentTime=0}catch{}}}catch{}vt(),M("stopped"),O("active"),K(0),Z(!1)},_t=async(X,{sameSegment:ce=!1}={})=>{ut();const ee=de.generation(),xe=C.current,$e=me.current?.[X]?.src;try{if(At(!1),R(X),Z(!0),se.current=X,!$e||!xe||(ce||lt(),xt(xe,$e),!ce&&await rt()===!1)||!de.isCurrent(ee)||(await ve(xe),!de.isCurrent(ee)))return;M("playing"),O("playMode")}catch{}},Yt=async()=>{const X=me.current,ce=se.current||0;if(!X||ce<=0){await Ct();return}await _t(ce-1)},gn=async()=>{const X=me.current,ce=se.current||0;if(!X||ce>=X.length-1){ft();return}await _t(ce+1)},Nn=()=>{if(Je.current)return;const X=200,ce=340;At(!0),ut(),Ke();try{K(1)}catch{}ct(1);try{G("hold")}catch{}try{const ee=C.current,xe=qe&&!!ee?.src;if(!qe||xe){if(ee){ee.pause();try{ee.currentTime=0}catch{}}}else Re();vt()}catch{}try{M("stopped")}catch{}if(Z(!1),!Ye.current)try{He.current&&(clearTimeout(He.current),He.current=null),He.current=setTimeout(()=>{try{G("out")}catch{}He.current=setTimeout(()=>{try{typeof ke.current=="function"&&ke.current(!0)}catch{}try{G("idle")}catch{}He.current=null},ce)},X)}catch{}};o.useEffect(()=>{Pt.current=Nn});const tn=o.useCallback(()=>Ne(""),[]),Zt=async X=>{(me.current||[])[X]&&await _t(X,{sameSegment:X===se.current})},Ht=Y==="playing",bn=o.useMemo(()=>{if(!z||z.length<=1)return z;const X=z[S];return X?[X]:z},[z,S]),Xt=s===!0;o.useEffect(()=>{try{const X=C.current;X&&typeof X.playbackRate=="number"&&Qe(X)}catch{}},[le,Qe]);const un=o.useRef({raf:null,timer:null});o.useEffect(()=>{const X=C.current;if(!X)return;const ce=Math.max(0,Math.min(1,te)),ee=un.current,xe=()=>{ee.raf!==null&&(cancelAnimationFrame(ee.raf),ee.raf=null),ee.timer!==null&&(clearTimeout(ee.timer),ee.timer=null)};xe();const $e=tr(X);if(X.paused||Math.abs($e-ce)<.001||typeof requestAnimationFrame!="function"){try{On(X,ce)}catch{}return}const We=performance.now(),ot=()=>{const bt=Math.min(1,(performance.now()-We)/150);try{On(X,$e+(ce-$e)*bt)}catch{}ee.raf=bt<1?requestAnimationFrame(ot):null};return ee.raf=requestAnimationFrame(ot),ee.timer=setTimeout(()=>{xe();try{On(X,ce)}catch{}},200),xe},[te]);const Ot=H==="hold",nn=H==="out",ie=V==="playMode"&&!D&&!dt||Ot||nn,Ae=Y!=="stopped"||Ot||nn,je=Y==="paused",Ze=Math.max(0,Math.min(100,(T||0)*100)),Fe=Be("audio-player__fill",ie?"is-visible":"",Ae?"is-expanded":"",je?"is-paused":"",nn?"is-out":"");return n.jsxs("div",{className:`audio-player ${Xt?"is-disabled":""}${i?` ${i}`:""}`,role:"group","aria-label":typeof h=="string"?h:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${Ht?"is-playing":""} ${D?"is-loading":""} ${V!=="default"?"is-revealed":""}`,children:[D?n.jsxs("div",{className:"audio-player__loading",role:Rc[F]?"status":void 0,"aria-live":Rc[F]?"polite":"off",children:[n.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),n.jsx("span",{className:"audio-player__loading-text",children:p("training.audioStatus.preparing",{defaultValue:"\uC18C\uB9AC\uB97C \uC900\uBE44\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"})})]}):null,V==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Xt,onClick:()=>{Q.current=gr(),E(),Nt()},"aria-label":typeof h=="string"?h:p("training.listen","\uB4E3\uAE30"),onMouseEnter:B,onMouseLeave:E,onFocus:B,onBlur:E,children:n.jsx("span",{ref:y,className:"audio-player__button-triangle-wrap",children:n.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:n.jsx("path",{ref:A,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,w&&n.jsx(Dn,{anchorRect:w,text:typeof h=="string"&&h?h:p("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${V==="playMode"||Ht?"is-visible":""}`,inert:!(V==="playMode"||Ht)||void 0,children:[n.jsxs("div",{ref:_,className:"audio-player__buttons",children:[n.jsx(fe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:Yt,ariaLabel:p("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:V!=="playMode"}),n.jsx(fe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Ht?"pause":"play",onClick:Nt,ariaLabel:p("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":Ht,width:"60px",variant:"transparent-white",disabled:V!=="playMode"}),n.jsx(fe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:ft,ariaLabel:p("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:V!=="playMode"}),mt>1?n.jsx("div",{ref:k,className:"audio-player__source-buttons",children:Array.from({length:mt}).map((X,ce)=>n.jsx(fe,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(ce+1),onClick:()=>{try{Zt(ce)}catch{}},ariaLabel:p("training.sourcePlay",{n:ce+1}),variant:"transparent-white",selected:L&&S===ce,disabled:V!=="playMode"||!(Array.isArray(I)&&I[ce]),showTooltipInfo:!0},ce))}):null,!Array.isArray(I)||I.length<=1?n.jsx(fe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Ct,ariaLabel:p("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:V!=="playMode"}):null,n.jsx(fe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:gn,ariaLabel:p("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:V!=="playMode"}),n.jsx(fe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:Nn,ariaLabel:p("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:V!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:Fe,ref:f,style:{left:`${Ze}%`},"aria-hidden":"true"}),(u||c)&&n.jsx(Ox,{segments:bn,progress:T,totalDuration:ue,waveProgressRef:ge,showSoundWaveForm:u,leadInMs:d,tailMs:m,trackDurationSec:I?.[S]?.duration??0,noiseSrc:c&&b?.settings.enabled&&W>0?et:null,noiseRatio:b?Ja(b.settings):0,noiseSpeed:b?.settings.speed??1,mainVolume:re,onReadyChange:at})]})]}),n.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!u&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(nt,{icon:"triangle-alert",size:14}),p("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(Ca,{message:pe,position:ye,onClose:tn})]})}function Ar(e){const{t}=_e.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:l,closeOnOutsideClick:i=!0,isMobilePopup:u=!1}=e||{},[c,d]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",c)}catch{}},[c]);const{increase:m,decrease:p,canIncrease:h,canDecrease:b,fontSize:v,lineHeight:C}=$i({storageKey:"tooltip-fontScale"}),f=o.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),_=o.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof l=="function"&&l()}catch{}},[l]),g=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],k={fontSize:`${v}px`,lineHeight:`${C}px`,"--tt-line-height":`${C}px`,"--tt-marker-size":"28px"},x=n.jsxs("div",{className:`tooltip-textbox__root ${c==="dark"?"is-dark":""}`,children:[n.jsxs("div",{className:"tooltip-textbox__box",children:[r&&n.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),n.jsx("div",{className:"tooltip-textbox__text body-1",style:k,children:g.map((A,y)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[g.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:y+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},y))})]}),n.jsxs("div",{className:"tooltip-textbox__buttons",children:[n.jsx(fe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!b}),n.jsx(fe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!h}),n.jsx(fe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:c==="dark"?"moon":"sun-medium",onClick:f,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:c==="dark"?"transparent-white":"transparent-gray"}),n.jsx(fe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:_,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:c==="dark"?"transparent-white":"transparent-gray"})]})]});return s?n.jsx(vn,{anchorRect:s,className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,onClose:l,closeOnOutsideClick:i,isMobilePopup:u,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:x}):n.jsx("div",{className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,children:x})}function Fc({state:e="disabled"}){const{t}=_e.useTranslation();return n.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[n.jsx("div",{className:"bullet__dot",children:n.jsx(nt,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),n.jsx("div",{className:"ts-bullet__line"})]})}function Oc(e,t,a){const r=o.useRef(t),s=o.useRef(a);o.useEffect(()=>{r.current=t,s.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let l=null,i=10;const u=()=>{l=null;const c=r.current(),d=c?Array.from(c.querySelectorAll(_n)).find(m=>!m.closest('[aria-hidden="true"]')):void 0;if(d){try{d.focus()}catch{}if(document.activeElement===d)return}--i>0&&(l=requestAnimationFrame(u))};return l=requestAnimationFrame(u),()=>{l!==null&&cancelAnimationFrame(l);const c=document.activeElement;if(!c||c===document.body||!document.contains(c)||c.closest(".tooltip-content")){const d=s.current();if(d)try{d.focus()}catch{}}}},[e])}function zc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:l,previewText:i=null,useFaded:u,usePlayAllBtn:c=!1,onPlayAll:d,playAllActive:m=!1}){const{t:p}=_e.useTranslation(),h=Cn("(max-width: 767px)"),b=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),v=`training-step__title-row training-step__title-row--${r}`.trim(),C=o.useRef(null),[f,_]=o.useState(!1),[g,k]=o.useState(null),[x,A]=o.useState(null);Oc(f&&!!g,()=>{if(typeof document>"u")return null;const D=Array.from(document.querySelectorAll(".tooltip-content"));for(let N=D.length-1;N>=0;N--)if(D[N].querySelector(".tooltip-textbox__root"))return D[N];return null},()=>C.current?.querySelector("button")??null);const y=o.useRef(l);o.useEffect(()=>{y.current=l});const w=o.useMemo(()=>i==null?"":typeof i=="string"||typeof i=="number"?String(i):Array.isArray(i)&&i.every(D=>typeof D=="string"||typeof D=="number")?i.join(""):"",[i]),B=o.useCallback(()=>{_(!1),k(null),A(null)},[]);o.useEffect(()=>{if(!f)return;let D;try{typeof y.current=="function"&&(D=y.current())}catch{}if(D===!1){B();return}A(typeof D<"u"&&D!==null?D:null)},[w]);const E=o.useCallback(()=>{let D;try{typeof l=="function"&&(D=l())}catch{}if(D!==!1){if(A(typeof D<"u"&&D!==null?D:i),!C.current){_(N=>!N);return}if(f)_(!1),k(null),A(null);else{const N=C.current.getBoundingClientRect();k(N),_(!0)}}},[l,i,f]);return n.jsxs("div",{className:v,children:[n.jsx("p",{className:b,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),s||c?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[c&&n.jsx(fe,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m,onDisabledClick:m&&r!=="disabled"?()=>{}:void 0}),s&&n.jsx("div",{ref:C,children:n.jsx(fe,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:E,className:f?"is-selected":void 0,"aria-expanded":f,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!i&&typeof l!="function"})})]}),f&&n.jsx(Ar,{text:x??i,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:g,onClose:B,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function ys(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function ta({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:s={},children:l,className:i="",onDone:u=void 0,useTitleFaded:c=void 0,lockedHint:d}){const{t:m}=_e.useTranslation(),[p,h]=o.useState(()=>ys(e,t));o.useEffect(()=>{const y=ys(e,t);if(y!==p){const w=setTimeout(()=>h(y),0);return()=>clearTimeout(w)}},[e,t,p]);const b=o.useCallback((...y)=>{ys(e,t)==="done"||p==="done"||typeof u=="function"&&u(...y)},[e,t,p,u]),[v,C]=o.useState(!1),[f,_]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),g=o.useCallback(y=>{if(!y)return null;try{const w=y;if(typeof y=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const D=w.currentTarget??w.target;if(D&&typeof D.getBoundingClientRect=="function")return D.getBoundingClientRect()}if(y instanceof DOMRect)return y;const B=y;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect();const E=y?.current;return E&&typeof E.getBoundingClientRect=="function"?E.getBoundingClientRect():null}catch{return null}},[]),k=o.useCallback((y,{text:w="",label:B="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:E=!1,alignX:D="center",alignY:N="top"}={})=>{const F=g(y);_({text:w,label:B,anchorRect:F,backdrop:E,alignX:D,alignY:N}),C(!0)},[g]),x=o.useCallback(()=>{C(!1),_(y=>({...y,anchorRect:null}))},[]),A=o.Children.map(l,y=>{if(o.isValidElement(y)){const w=y;if(typeof w.type=="string")return w;const B=w.props??{},E=typeof B.onDone=="function"?B.onDone:b,D=typeof B.disabled=="boolean";let N=p==="disabled";return D&&(N=!!B.disabled),o.cloneElement(w,{onDone:E,disabled:N,showTooltip:k,hideTooltip:x})}return y});return n.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${i}`,"aria-current":p==="active",children:[n.jsx(Fc,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(zc,{state:p,title:r,...s,useFaded:c}),p==="disabled"&&d&&typeof e=="number"&&typeof t=="number"&&e===t+1&&n.jsx("p",{className:"training-step__locked-hint caption-1",role:"status",children:d}),A]}),v?n.jsx(vn,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:x,ariaLabel:m("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(Ar,{text:f.text,onClose:x})}):null]})}function Wc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=_e.useTranslation(),[s,l]=o.useState("disabled"),[i,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",i)}catch{}},[i]);const c=()=>u($=>$==="dark"?"light":"dark"),{increase:d,decrease:m,canIncrease:p,canDecrease:h,fontSize:b,lineHeight:v}=$i({storageKey:"textbox_fontScale"}),[C,f]=o.useState(""),_=o.useRef(null),g=o.useRef(!1),k=o.useCallback(()=>{g.current=gr()&&!!_.current&&_.current.contains(document.activeElement),l("active")},[]),x=o.useCallback(()=>f(""),[]),A=$=>{try{f($)}catch{}},y=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const $=setTimeout(()=>l(t),0);return()=>clearTimeout($)}},[t]);const w=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[B,E]=o.useState(w);B!==w&&(E(w),l("disabled"));const D=t==="disabled"?s:t,N=D==="disabled"?"training-text-box--disabled":D==="active"?"training-text-box--active":D==="done"?"training-text-box--done":"",F=o.useMemo(()=>({fontSize:`${b}px`,lineHeight:`${v}px`}),[b,v]);return o.useEffect(()=>{if(D==="disabled"||!g.current)return;g.current=!1;const $=document.activeElement;$&&$!==document.body||_.current?.querySelector(".training-text-box__buttons button")?.focus()},[D]),n.jsxs("div",{ref:_,className:`training-text-box ${N} ${D!=="disabled"&&i==="dark"?"is-dark":""}`,children:[D==="disabled"&&n.jsx("div",{className:"training-text-box__preview",children:n.jsx(fe,{htmlType:"button",size:48,type:"bar",onClick:k,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),n.jsx("div",{className:"training-text-box__area","aria-hidden":D==="disabled",children:n.jsx("span",{className:"training-text-box__inner h3",style:F,children:w})}),D!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":D==="disabled",children:[n.jsx(fe,{htmlType:"button",size:32,type:"dot",onClick:m,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:i==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!y&&{width:"60px"}}),n.jsx(fe,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>A(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:i==="dark"?"transparent-white":"transparent-gray",disabled:!p,useBorder:!1,showTooltipInfo:!0,...!y&&{width:"60px"}}),n.jsx(fe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:i==="dark"?"moon":"sun-medium",onClick:c,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:i==="dark"?"transparent-white":"transparent-gray"})]}),n.jsx(Ca,{message:C,position:"top",onClose:x})]})}function na(e){return e==="active"||e==="done"}function vs({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,useTitleFaded:l,onDone:i,onChange:u,answer:c,wrongAnswers:d,choices:m,multiSelect:p=!1,correctCount:h=0,useDisabledCovered:b=!1,choiceIcons:v,shuffleChoices:C=!0}){const{t:f}=_e.useTranslation(),_=s??f("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),g=typeof e=="number"?e:-1,k=typeof t!="number"?"disabled":g<t?"done":g===t?"active":"disabled",x=Array.isArray(m)&&m.length?m:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,A=d?d.join("||"):"",y=m?m.join("||"):"",[w,B]=o.useState(()=>Array.isArray(x)?C?Ta(x):x.slice():void 0);o.useEffect(()=>{Array.isArray(x)&&x.length?B(C?Ta(x):x.slice()):B(void 0)},[c,A,y,C]);const[E,D]=o.useState(null),[N,F]=o.useState(()=>new Set);o.useEffect(()=>{D(null),F(new Set)},[y,c,A]);const $=o.useRef(void 0);o.useEffect(()=>{const P=$.current;typeof P=="number"&&typeof t=="number"&&typeof e=="number"&&P>=e&&t<e&&(D(null),F(new Set)),$.current=t},[t,e]);const Y=o.useCallback(P=>{if(!na(k))return;const T=w?.[P];if(T==null)return;const K=T;if(p){const V=new Set(N);V.has(K)?V.delete(K):V.add(K),F(V),typeof u=="function"&&u({selectedValues:[...V],__ts:Date.now()}),typeof i=="function"&&i({selectedValues:[...V],__ts:Date.now()})}else D(K),typeof u=="function"&&u({selectedIndex:P,selectedValue:K,__ts:Date.now()}),typeof i=="function"&&i({selectedIndex:P,selectedValue:K,__ts:Date.now()})},[w,k,p,u,N]),M=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return n.jsx(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:_,useTitleFaded:l,children:n.jsx("div",{className:M,children:Array.isArray(w)&&w.length>0?w.map((P,T)=>n.jsx(fe,{htmlType:"button",size:56,type:"bar",onClick:()=>Y(T),ariaLabel:String(P),label:P,useLabel:!0,icon:v?v[String(P)]:void 0,variant:"default",disabled:k==="disabled",selected:p?N.has(P):E===P,useDisabledCovered:b,minWidth:0},String(P))):null})})}function xs({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,onDone:l,onChange:i,context:u,demoSelected:c}){const{t:d}=_e.useTranslation(),m=s??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,h=typeof t!="number"?"disabled":p<t?"done":p===t?"active":"disabled",b=u&&typeof u=="object"?u.sentence||"":typeof u=="string"?u:"",v=u&&typeof u=="object"?u.choices:void 0,[C,f]=o.useState(c??null),_=`${String(b)}\0${JSON.stringify(v??null)}`,[g,k]=o.useState(_);g!==_&&(k(_),c==null&&f(null));const[x,A]=o.useState(c);Object.is(x,c)||(A(c),f(c??null));const y=o.useRef(void 0);o.useEffect(()=>{const D=y.current;typeof D=="number"&&typeof t=="number"&&typeof e=="number"&&D>=e&&t<e&&c==null&&f(null),y.current=t},[t,e,c]);const w=o.useCallback(D=>{const N=typeof D=="object"&&D!==null?Object.assign({},D,{__ts:Date.now()}):{value:D,__ts:Date.now()};typeof i=="function"&&i(N),na(h)&&typeof l=="function"&&l(N)},[i,h,l]),B=o.useCallback(()=>{na(h)&&(f(!1),w(!1))},[w,h]),E=o.useCallback(()=>{na(h)&&(f(!0),w(!0))},[w,h]);return n.jsxs(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:m,onDone:l,useTitleFaded:!1,children:[n.jsx(Wc,{context:u,state:h}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(v)&&v.length>0?v.slice(0,6).map((D,N)=>n.jsx(fe,{htmlType:"button",size:56,type:"bar",onClick:()=>{na(h)&&(f(N),w&&w(N))},disabled:h==="disabled",ariaLabel:String(D),label:D,variant:h,selected:C===N},N)):n.jsxs(n.Fragment,{children:[n.jsx(fe,{htmlType:"button",size:56,type:"bar",onClick:B,disabled:h==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!1}),n.jsx(fe,{htmlType:"button",size:56,type:"bar",onClick:E,disabled:h==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!0})]})})]})}function _s({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,btnLabel:l,soundSrc:i,bucketPath:u,usePreviewTextBtn:c,previewText:d=null,onPreviewTextBtn:m,disabled:p,_pageIndex:h,showSoundWaveForm:b,showNoiseWaveForm:v,leadInMs:C,tailMs:f}){const{t:_}=_e.useTranslation(),g=r??_("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),k=p??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(ta,{index:e,stepIndex:t,isLast:a,title:g,onDone:s,titleProps:{usePreviewTextBtn:c,previewText:d,onPreviewTextBtn:m},children:n.jsx(bs,{soundSrc:i,ttsText:i?null:d??g,bucketPath:u,btnLabel:l||_("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:k,className:"training-step__listen-sticky",showSoundWaveForm:b,showNoiseWaveForm:v,leadInMs:C,tailMs:f},`audio-p${h??0}-s${e}`)})}const Yx=[];function ws({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,onDone:l,onChange:i,context:u=Yx}){const{t:c}=_e.useTranslation(),d=s??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),m=U=>typeof U=="string"?U:U&&(U.context||U.sentence||U.question||"")||"",[p,h]=o.useState(Array.isArray(u)?u:[]),[b,v]=o.useState(()=>(p||[]).map((U,S)=>({id:S,text:m(U)}))),C=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),f=C!=="disabled",_=o.useRef(void 0),g=o.useRef(void 0);o.useEffect(()=>{if(_.current===u)return;_.current=u;const U=Array.isArray(u)?u:[];h(U);const S=(R=>{const L=(R||[]).map((le,re)=>({id:re,text:m(le)}));if(L.length<=1)return L;const Z=(le,re)=>{if(le.length!==re.length)return!1;for(let W=0;W<le.length;W++)if(le[W].text!==re[W].text)return!1;return!0};let ue=Ta(L),oe=0;for(;Z(ue,L)&&oe<20;)ue=Ta(L),oe+=1;return ue})(U);v(S);try{if(typeof i=="function"){const R=S.filter((L,Z)=>L.text===m(U[Z])).length;i({shuffled:S,score:R,total:(U||[]).length,initial:!0,__ts:Date.now()})}if(typeof l=="function"&&C==="active"){const R=S.filter((L,Z)=>L.text===m(U[Z])).length;g.current=u,l({shuffled:S,score:R,total:(U||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[u]),o.useEffect(()=>{if(C!=="active"||g.current===u||(g.current=u,typeof l!="function"))return;const U=Array.isArray(u)?u:[],S=b.filter((R,L)=>R.text===m(U[L])).length;l({shuffled:b,score:S,total:U.length,initial:!0,__ts:Date.now()})},[C,u]);const k=(U,S)=>{const R=[...b],L=U+S;if(L<0||L>=R.length)return;const Z=R[L];R[L]=R[U],R[U]=Z,K(R);try{if(typeof l=="function"&&C==="active"){const ue=R.filter((oe,le)=>oe.text===m(p[le])).length;l({shuffled:R,score:ue,total:(p||[]).length,__ts:Date.now()})}}catch{}},[x,A]=o.useState(null),y=o.useRef(null),w=o.useRef(null),B=o.useRef(null),E=o.useRef(null),D=o.useRef(null),N=o.useRef({x:0,y:0}),F=o.useRef(null),$=o.useRef({dx:0,dy:0}),Y=()=>{if(F.current!==null)return;const U=()=>{if(!y.current){F.current=null;return}F.current=requestAnimationFrame(U);const S=N.current,R=$.current||{dx:0,dy:0};y.current&&(y.current.style.transform=`translate3d(${S.x-R.dx}px, ${S.y-R.dy}px, 0)`)};F.current=requestAnimationFrame(U)},M=o.useRef(new Map),P=o.useRef(new Map),T=()=>{const U=new Map;return M.current.forEach((S,R)=>{S&&S.getBoundingClientRect&&U.set(R,S.getBoundingClientRect())}),U},K=U=>{const S=T();v(U);try{if(typeof i=="function"){const R=U.filter((L,Z)=>L.text===m(p[Z])).length;i({shuffled:U,score:R,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const R=T();U.forEach(L=>{const Z=S.get(L.id),ue=R.get(L.id),oe=M.current.get(L.id);if(!oe||!Z||!ue)return;const le=Z.top-ue.top;le&&(oe.style.transition="none",oe.style.transform=`translateY(${le}px)`,requestAnimationFrame(()=>{oe.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",oe.style.transform="";const re=()=>{oe.style.transition="",oe.removeEventListener("transitionend",re)};oe.addEventListener("transitionend",re)}))})})},V=(U,S)=>{try{try{S.dataTransfer?.setData("text/plain",String(U))}catch{}try{S.dataTransfer&&(S.dataTransfer.effectAllowed="move")}catch{}try{const R=document.createElement("div");R.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(R),S.dataTransfer?.setDragImage(R,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(R)}catch{}})}catch{}}catch{}A(U);try{const R=b[U],L=document.createElement("div");L.className="order-list__dragging-object order-list__dragging-object--visible",L.textContent=R&&R.text?R.text:"",document.body.appendChild(L),y.current=L;const Z=M.current.get(R.id);let ue=S.clientX||0,oe=S.clientY||0;try{if(Z&&Z.getBoundingClientRect){const G=Z.getBoundingClientRect();ue=G.left+G.width/2,oe=G.top+G.height/2}}catch{}const le=L.getBoundingClientRect(),re=le.width/2,W=le.height/2;$.current={dx:re,dy:W},L.style.transition="none",N.current={x:ue,y:oe},L.style.transform=`translate3d(${ue-re}px, ${oe-W}px, 0)`,requestAnimationFrame(()=>{try{L.style.transition=""}catch{}Y()});const te=G=>{const pe=G;N.current={x:pe.clientX,y:pe.clientY},Y()};B.current=te,document.addEventListener("mousemove",te);const H=G=>{const pe=G;N.current={x:pe.clientX,y:pe.clientY},Y()};w.current=H,document.addEventListener("dragover",H);try{S.dataTransfer?.setData("text/plain",String(U));try{S.dataTransfer?.setData("application/json",JSON.stringify({idx:U}))}catch{}}catch{}}catch{}},O=(U,S)=>{S.preventDefault();try{S.dataTransfer&&(S.dataTransfer.dropEffect="move")}catch{}try{D.current!==null&&(clearTimeout(D.current),D.current=null);const R=S.currentTarget&&S.currentTarget.closest?S.currentTarget.closest(".order-list__item"):null;if(R&&E.current!==R){if(E.current)try{E.current.classList.remove("drag-over")}catch{}try{R.classList.add("drag-over")}catch{}E.current=R}}catch{}},Q=(U,S)=>{S.preventDefault();const R=S.dataTransfer?.getData("text/plain")||"",L=R?parseInt(R,10):x,Z=U;if(typeof L!="number"||isNaN(L)||L===Z){A(null),z(),I();return}const ue=vf(b,L,Z);K(ue),A(null),I();try{if(typeof l=="function"&&C==="active"){const oe=ue.filter((le,re)=>le.text===m(p[re])).length;l({shuffled:ue,score:oe,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const oe=document.querySelectorAll(".order-list .order-list__item")[Z];if(!oe)return;const le=oe.querySelector(".order-list__slot")||oe;try{le.classList.add("pulse"),le.offsetHeight,le.classList.add("to-dark");const re=()=>{le.classList.remove("pulse","to-dark"),le.removeEventListener("transitionend",re)};le.addEventListener("transitionend",re)}catch{}})}catch{}z()},I=()=>{if(y.current){try{document.body.removeChild(y.current)}catch{}y.current=null}w.current&&(document.removeEventListener("dragover",w.current),w.current=null),B.current&&(document.removeEventListener("mousemove",B.current),B.current=null),F.current!==null&&(cancelAnimationFrame(F.current),F.current=null)},q=()=>{A(null),z(),I()};o.useEffect(()=>()=>I(),[]);const z=()=>{try{if(D.current!==null&&(clearTimeout(D.current),D.current=null),E.current){try{E.current.classList.remove("drag-over")}catch{}E.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(U=>U.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const U=Math.max(1,(b||[]).length);b.forEach((S,R)=>{const L=P.current.get(S.id);if(!L)return;let Z=50;U>1&&(Z=Math.round(R/(U-1)*100));try{L.style.setProperty("--marker-pos",Z+"%")}catch{}})}catch{}},[b]),o.useEffect(()=>()=>{I(),D.current!==null&&(clearTimeout(D.current),D.current=null)},[]),n.jsx(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:d,children:n.jsx("div",{className:"order-list",children:b.map((U,S)=>{const R=Math.max(1,(b||[]).length),L=R>1?Math.round(S/(R-1)*100):50;return n.jsx("div",{className:"order-list__item",children:n.jsxs("div",{className:"order-list__slot","data-disabled":C==="disabled","aria-disabled":C==="disabled",children:[C!=="disabled"?n.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":L+"%"},ref:Z=>{const ue=P.current;Z?ue.set(U.id,Z):ue.delete(U.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:S+1})}):null,n.jsxs("div",{ref:Z=>{const ue=M.current;Z?ue.set(U.id,Z):ue.delete(U.id)},className:`order-list__draggable ${x===S?"dragging":""}`,"data-disabled":C==="disabled","aria-disabled":C==="disabled",tabIndex:C==="disabled"?-1:0,draggable:f,onDragStart:f?Z=>V(S,Z):void 0,onDragEnter:f?Z=>O(S,Z):void 0,onDragOver:f?Z=>O(S,Z):void 0,onDragLeave:f?()=>{try{D.current!==null&&clearTimeout(D.current),D.current=setTimeout(()=>{try{const Z=document.querySelectorAll(".order-list .order-list__item");Z&&Z[S]&&(Z[S].classList.remove("drag-over"),E.current===Z[S]&&(E.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?Z=>Q(S,Z):void 0,onDragEnd:f?q:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:U.text}),f?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(fe,{htmlType:"button",size:32,type:"dot",onClick:()=>k(S,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:S===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(fe,{htmlType:"button",size:32,type:"dot",onClick:()=>k(S,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:S===b.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},U.id)})})})}const Zx=8e3;function Xx(e,t){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,t)})}function Hc({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,onDone:l,onChange:i,context:u=[],selectable:c=!1,hideLabel:d=!1,hideAudio:m=!1,maxCards:p,playAllGapMs:h=0}){const{t:b}=_e.useTranslation(),v=s??b("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),C=o.useMemo(()=>Array.isArray(u)?u:u&&u.items||[],[u]),f=p??3,_=(C||[]).slice(0,f);(C||[]).length>f&&console.warn(`TrainingStepCard: ${C.length} items passed but only ${f} shown`);const g=typeof e=="number"?e:-1,k=typeof t!="number"?"disabled":g<t?"done":g===t?"active":"disabled",[x,A]=o.useState(null),y=o.useRef([]),[w,B]=o.useState(!1),E=o.useRef(null),D=o.useRef(!0);o.useEffect(()=>(D.current=!0,()=>{D.current=!1}),[]);const N=o.useMemo(()=>C.map(T=>T?.id??T?.word??"").join("|"),[C]);o.useEffect(()=>{A(null)},[N]);const F=o.useRef(void 0);o.useEffect(()=>{const T=F.current;typeof T=="number"&&typeof t=="number"&&typeof e=="number"&&T>=e&&t<e&&A(null),F.current=t},[t,e]);const $=o.useCallback((T,K)=>{if(c)return;const V={item:T,index:K,__ts:Date.now()};try{typeof i=="function"&&i(V)}catch{}if(k==="active"&&typeof l=="function")try{l(V)}catch{}},[c,i,k,l]),Y=o.useRef(h);o.useEffect(()=>{Y.current=Math.max(0,h||0)},[h]);const M=o.useCallback(async()=>{if(w||k==="disabled")return;B(!0);let T=!1;const K=new Promise(V=>{E.current=()=>{T=!0,V()}});try{for(let V=0;V<_.length&&!(!D.current||T);V++){const O=y.current[V];if(!O)continue;await Promise.race([Xx(O.play(),Zx),K]);const Q=Math.max(0,Y.current||0);Q>0&&V<_.length-1&&!T&&D.current&&await Promise.race([new Promise(I=>{setTimeout(I,Q)}),K])}}finally{E.current=null,B(!1)}},[w,k,_.length]),P=o.useCallback((T,K)=>{if(!na(k))return;A(K);const V={selectedValue:T.word||T.title||"",selectedIndex:K,item:T,__ts:Date.now()};try{typeof i=="function"&&i(V)}catch{}if(typeof l=="function")try{l(V)}catch{}},[i,k,l]);return n.jsx(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:v,onDone:l,titleProps:{usePlayAllBtn:!m&&_.length>0,onPlayAll:M,playAllActive:w},children:n.jsx("div",{className:"training-step__cards",onClickCapture:T=>{const K=E.current;if(!K)return;const V=T.target;V&&typeof V.closest=="function"&&V.closest(".training-word-card__bottom")&&K()},children:_.length===0?n.jsx("div",{className:"training-step__empty",children:b("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):_.map((T,K)=>n.jsx(Jo,{ref:V=>{y.current[K]=V},item:T,disabled:k==="disabled",onPlayDone:()=>$(T,K),selectable:c,selected:c&&x===K,onSelect:c?()=>P(T,K):void 0,flipDelay:K*120,hideLabel:d,hideAudio:m},T&&T.id||K))})})}const Jx=160,Vc=()=>{};function $n(e){const t=o.useId();if(!("variant"in e)){const{label:g,sub:k,onClick:x,children:A,align:y="horizontal",icon:w,useFullWidth:B=!1}=e,E=D=>{x&&D.target===D.currentTarget&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),x())};return n.jsxs("div",{className:Be("panel-row",y==="vertical"?"panel-row--vertical":"",B?"panel-row--label-fixed panel-row--fill":"",x?"panel-row--clickable":""),onClick:x,onKeyDown:x?E:void 0,role:x?"button":void 0,tabIndex:x?0:void 0,children:[w!=null&&n.jsx("div",{className:"panel-row__icon",children:w}),g!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:g}),k&&n.jsx("div",{className:"panel-row__sub caption-1",children:k})]}),n.jsx("div",{className:"panel-row__right",children:A})]})}if(e.variant==="description")return n.jsx("div",{className:"panel-row panel-row--block",children:n.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return n.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return n.jsx("div",{className:"panel-row panel-row--loading",children:n.jsx(Ga,{size:28})});if(e.variant==="custom"&&!e.label)return n.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:s,onClick:l,required:i,error:u,align:c="horizontal",useFullWidth:d=!1,icon:m}=e,p=a==="button"?void 0:l;let h=null;const b=a==="toggle"?`panel-toggle-${t}`:void 0,v=u?`panel-error-${t}`:void 0,C=`panel-helper-${t}`;if(a==="toggle"){const g=e;h=n.jsx(_u,{checked:g.checked,onChange:g.onChange,id:b})}else if(a==="segmented"){const g=e;h=n.jsx(wn,{options:g.options,value:g.value,onChange:g.onChange,size:g.size??40,ariaLabel:r})}else if(a==="dropdown"){const g=e,k=g.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:g.dropdowns.map((x,A)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(fn,{options:x.options,value:x.value,onChange:x.onChange,placeholder:x.placeholder,block:d,error:!!u,ariaDescribedBy:v,ariaLabel:x.ariaLabel??([r,x.placeholder].filter(Boolean).join(" ")||void 0)})},A))}):n.jsx(fn,{options:g.options??[],value:g.value??"",onChange:g.onChange??Vc,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:v});h=u?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[k,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}):k}else if(a==="button"){const g=e;g.buttons?.length?h=n.jsx("div",{className:"panel-row__button-group",children:g.buttons.map((k,x)=>n.jsx(fe,{htmlType:"button",size:k.btnSize??40,variant:k.btnVariant??"default",disabled:k.disabled,onClick:k.onClick,children:k.label},x))}):h=n.jsx(fe,{htmlType:"button",size:g.btnSize??40,variant:g.btnVariant??"default",disabled:g.disabled,onClick:g.onClick,children:g.buttonLabel})}else if(a==="text"){const g=e;h=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:g.valueColor?{color:g.valueColor}:void 0,children:g.value})}else if(a==="input"){const g=e;h=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(Xn,{value:g.value,onChange:g.onChange??Vc,onKeyDown:g.onKeyDown,onEnter:g.onEnter,placeholder:g.placeholder,ghostText:g.ghostText,inputMode:g.inputMode,readOnly:g.readOnly,disabled:g.disabled,type:g.type,autoComplete:g.autoComplete,maxLength:g.maxLength,showCount:g.showCount,multiline:g.multiline,rows:g.rows,fullWidth:d,error:u,ariaLabel:r,required:i,ariaDescribedBy:g.helperText?C:void 0}),g.helperText&&n.jsx("div",{id:C,className:"panel-row__helper caption-1",children:g.helperText})]})}else a==="custom"&&(h=e.children);u&&a!=="input"&&a!=="dropdown"&&(h=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[h,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=g=>{p&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),p())};return n.jsxs("div",{className:Be("panel-row",c==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",p?"panel-row--clickable":""),onClick:p,onKeyDown:p?_:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,children:[m!=null&&n.jsx("div",{className:"panel-row__icon",children:m}),n.jsxs("div",{className:"panel-row__left",children:[b?n.jsxs("label",{htmlFor:b,className:"panel-row__label body-3",children:[r,i&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,i&&n.jsx("span",{className:"required-mark",children:"*"})]}),s&&n.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),n.jsx("div",{className:"panel-row__right",children:h})]})}function qc(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function Qx({devices:e,onRelease:t,emptyLabel:a}){const{t:r,i18n:s}=_e.useTranslation();return n.jsx("div",{className:"panel-row panel-row--device",children:["left","right"].map(l=>{const i=e[l],u=l==="left"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return n.jsxs("div",{className:"panel-row__device-column",children:[n.jsxs("div",{className:"panel-row__device-head",children:[n.jsx("span",{className:"panel-row__device-side body-2b",children:u}),i&&t&&n.jsx(fe,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${u} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(l)})]}),i?n.jsxs("div",{className:"panel-row__device-info",children:[n.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&n.jsx($t,{size:"small",variant:Hu(i.device),fill:"soft",label:Vu(i.device,r)}),qc(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:qc(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),Yo(i.wornYear,i.wornMonth,i.wornDay,s.language)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:Yo(i.wornYear,i.wornMonth,i.wornDay,s.language)})})]}):n.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},l)})})}function Nr({title:e,titleLevel:t=2,icon:a,disc:r,actions:s,size:l="medium",minHeight:i,maxWidth:u,className:c,scrollable:d,scrollbarGutter:m="auto",compactRows:p=!1,useBorder:h=!0,useBg:b=!0,useRowBorder:v=!0,labelWidth:C,form:f=!1,loading:_,empty:g,children:k}){const x=Be("panel",`panel--${l}`,f?"panel--form":"",i!==void 0?"panel--fill":"",h?"":"panel--no-border",b?"":"panel--no-bg",v?"":"panel--no-row-border",p?"panel--compact-rows":"",c),A={};i!==void 0&&(A.minHeight=i),u!==void 0&&(A.maxWidth=typeof u=="number"?`${u}px`:u),C!==void 0&&(A["--panel-label-width"]=typeof C=="number"?`${C}px`:C);const y=t?`h${t}`:"div";return n.jsxs("div",{className:x,style:Object.keys(A).length?A:void 0,children:[(!!e||r!=null)&&n.jsxs("div",{className:Be("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&n.jsx(nt,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[!!e&&n.jsx(y,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&n.jsx("p",{className:"panel__disc caption-1",children:r})]}),s&&n.jsx("div",{className:"panel__actions",children:s})]}),_?n.jsx($n,{variant:"loading"}):g!=null&&o.Children.toArray(k).length===0?n.jsx($n,{variant:"empty",children:g}):d?n.jsx("div",{className:Be("panel__body--scroll",m==="stable"&&"panel__body--gutter-stable"),children:k}):k]})}function e_({cols:e=2,layout:t="grid",gap:a=1,collapseAt:r,className:s,style:l,children:i}){const u=o.useRef(null),[c,d]=o.useState();o.useEffect(()=>{const p=u.current;if(r===void 0||!p||(d(p.clientWidth),typeof ResizeObserver>"u"))return;const h=new ResizeObserver(([b])=>d(b.contentRect.width));return h.observe(p),()=>h.disconnect()},[r]);const m=r!==void 0&&c!==void 0&&c<=r;return n.jsx("div",{ref:u,className:Be("panel-grid",t==="columns"&&"panel-grid--columns",s),style:{"--panel-grid-cols":m?1:e,"--panel-grid-gap":typeof a=="number"?`${a}px`:a,...l},children:i})}function t_(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 Uc(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"}]}t_(Vt.t.bind(Vt)),Uc(Vt.t.bind(Vt));const Er="none",n_=.5,a_=1.5,r_=.25;function Bs({title:e,valueLabel:t,value:a,min:r,max:s,step:l,tickStep:i,size:u,disabled:c,onChange:d}){return n.jsxs($n,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(Ru,{value:a,onChange:d,min:r,max:s,step:l,size:u,showBgTick:!0,tickStep:i,ariaLabel:e,disabled:c,className:"noise-settings__slider-input"}),n.jsx("div",{className:Be("noise-settings__value","button-1",c?"noise-settings__value--disabled":""),children:t})]})}function Gc({anchorRect:e,onClose:t,hideNoiseRows:a=!1}){const{t:r}=_e.useTranslation(),s=Cn("(max-width: 767px)")?40:24,l=_r(),i=Ja(l?.settings??ea),u=l?.settings.type??"defaultNoise",c=l?.settings.enabled??!0,d=l?.playbackRate??1,m=l?.mainVolume??1,p=Math.round(m*100),h=o.useCallback(_=>{try{l?.setMainVolume(Math.max(0,Math.min(1,_/100)))}catch{}},[l]),b=o.useCallback(_=>{try{l?.setPlaybackRate(_)}catch{}},[l]),v=o.useCallback(_=>{const g=Math.min(Xa,Math.max(0,Math.round(_*10)/10));try{l?.setSettings({noiseRatio:g})}catch{}},[l]),C=o.useCallback(_=>{try{_===Er?l?.setSettings({enabled:!1}):l?.setSettings({type:_,enabled:!0})}catch{}},[l]),f=[{key:Er,label:r("training.noise.type.none","\uC5C6\uC74C")},...Uc(r).map(_=>({key:_.value,label:_.label}))];return n.jsx(vn,{anchorRect:e,offset:12,onClose:t,ariaLabel:r("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:n.jsxs("div",{className:"noise-settings__header",children:[n.jsx("span",{children:r("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:r("common.close","\uB2EB\uAE30"),onClick:t})]}),children:n.jsxs(Nr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[n.jsx(Bs,{title:r("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:s,onChange:h}),n.jsx(Bs,{title:r("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:n_,max:a_,step:r_,size:s,onChange:b}),!a&&n.jsxs(n.Fragment,{children:[n.jsx($n,{variant:"custom",label:r("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(wn,{ariaLabel:r("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:f,value:c?u:Er,onChange:C})}),n.jsx(Bs,{title:r("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:r("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Xa,step:Ac,size:s,disabled:!c,onChange:v})]}),a&&n.jsx("div",{className:"noise-settings__width-ghost","aria-hidden":"true",inert:!0,children:n.jsx($n,{variant:"custom",label:"\xA0",useFullWidth:!0,children:n.jsx(wn,{ariaLabel:"width-ghost",size:40,shape:"rounded",options:f,value:Er,onChange:()=>{}})})})]})})}function Kc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:s=0,stepCount:l=0,pageIndex:i=0,pageCount:u=1,resultOpen:c=!1,hideNoiseRows:d=!1}){const{t:m}=_e.useTranslation(),[p,h]=o.useState(!1),[b,v]=o.useState(null),[C,f]=o.useState(!1),_=o.useRef(null),g=o.useRef(null),k=_r(),x=u>0,A=x&&i<u-1,y=!x||i>=u-1,w=s===Math.max(0,l);o.useEffect(()=>{e||(h(!1),v(null))},[e]);const B=o.useCallback(()=>{h(!1),v(null)},[]),E=o.useCallback(()=>{if(p){h(!1),v(null);return}const K=_?.current?.getBoundingClientRect();K&&v(K),t?.(),h(!0)},[p,t]),D=o.useCallback(()=>{if(p){h(!1),v(null);return}const K=g?.current?.getBoundingClientRect();K&&v(K),t?.(),h(!0)},[p,t]),N=Cn("(max-width: 767px)"),F=o.useRef(null),[$,Y]=o.useState(null),M=o.useCallback(()=>{f(K=>{const V=!K;return Y(V?F.current?.getBoundingClientRect()??null:null),V})},[]),P=o.useCallback(()=>{f(!1),Y(null)},[]);o.useEffect(()=>{c&&(f(!1),Y(null))},[c]);const T=n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:m("training.meter.sentence","\uC7AC\uC0DD")}),n.jsx(Uo,{analyser:k?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:m("training.meter.sentence","\uC7AC\uC0DD")})]}),n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:m("training.meter.noise","\uC18C\uC74C")}),n.jsx(Uo,{analyser:k?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:m("training.meter.noise","\uC18C\uC74C")})]})]});return Oc(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[_.current,g.current].map(K=>K?.querySelector("button")??null).find(K=>!!K&&K.getClientRects().length>0)??_.current?.querySelector("button")??null),n.jsxs("div",{className:"pp-bottom",children:[n.jsxs("div",{className:"pp-bottom__left",children:[e?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pp-bottom__settings--desktop",children:n.jsx("div",{ref:_,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(fe,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:E,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:m("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:m("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),n.jsx("div",{className:"pp-bottom__settings--mobile",children:n.jsx("div",{ref:g,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(fe,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:D,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:m("training.settings","\uC124\uC815")})})})]}):null,e&&n.jsx("div",{ref:F,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:n.jsx(fe,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:M,selected:C,"aria-expanded":N?C:void 0,ariaLabel:m("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&C&&!N&&n.jsx("div",{className:"pp-bottom__meters",children:T})]}),e&&C&&N&&$&&n.jsx(vn,{anchorRect:$,onClose:P,ariaLabel:m("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:n.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:T})}),n.jsxs("div",{className:"pp-bottom__right",children:[y&&n.jsx(fe,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:m("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:m("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!w}),A&&n.jsx(fe,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:m("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:m("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!w})]}),e&&p&&n.jsx(Gc,{anchorRect:b,onClose:B,hideNoiseRows:d})]})}function Yc({title:e,subtitle:t,desc:a,depth:r,icon:s,wrapperStyle:l,iconTooltip:i,pageIndex:u,pageCount:c,progressMax:d,progressIndex:m,onBack:p,onClose:h}){const{t:b}=_e.useTranslation(),v=Cn("(max-width: 767px)"),C=Number.isInteger(m)?m:u||0,f=Number.isInteger(d)?d:c||0,_=p||h,g=Array.isArray(r)?v?r[r.length-1]:r.join(" / "):r,k=typeof e=="string"?e.trim():e,x=typeof t=="string"?t.trim():t,A=!!(k||x),y=A?k||x:b("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),w=g||(k?t:void 0),B=v&&typeof w=="string"&&(w.includes(" \xB7 ")||w.includes(" / "))?w.split(/\s[·/]\s/).pop():w,E=o.useMemo(()=>{const D=l&&typeof l=="object"?{...l}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[l]);return n.jsxs("header",{className:"pp-title training-popup-title",children:[n.jsxs("div",{className:"pp-title__left",children:[_?n.jsx(fe,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:b("common.back","\uB4A4\uB85C"),onClick:_,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,n.jsx("div",{children:s?n.jsx(mu,{icon:s,label:e,tooltip:i,wrapperStyle:E}):null}),n.jsxs("div",{className:"pp-title__text",children:[B?n.jsx("span",{className:"pp-title__depth caption-1",children:B}):null,n.jsx("span",{className:`pp-title__title h2${A?"":" pp-title__title--empty"}`,children:y}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(Ou,{max:Math.max(0,f??0),index:Math.max(0,C??0)})]})}function o_(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function s_(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(a=>a.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}const Zc=(e,t)=>{if(!t)return t;const a=typeof Vt?.t=="function"?Vt.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function Xc(e,t,a){const r=e,s=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",l=Gl().find(u=>u.key===(r?.category_0||r?.category_main_code)),i=l?.subs?.find(u=>u.key===(r?.category_1||r?.category_sub_code));return{title:s,label:r?.title||s,depth:t,icon:l?.icon,wrapperStyle:l?.color?{"--t-item-fg":l.color}:void 0,iconTooltip:[l?Zc(`topic.${l.key}`,l.label):void 0,i?Zc(`topic.sub.${i.key}`,i.label):void 0].filter(Boolean).join(" / ")||void 0}}function ks(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function Jc(e,t,a){if(!e||typeof e!="object"||Array.isArray(e))return e;const r=e,s=typeof a=="number"&&a>0?a:Date.now();return{...r,...r.shownAt===void 0&&t?{shownAt:t}:{},...r.answeredAt===void 0?{answeredAt:new Date(s).toISOString()}:{}}}function l_(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function i_({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:l,buildResults:i,metaPatch:u}){const c=Xc(t,a,r),d=typeof u=="function"?u(c)||{}:u||{},m=t?.id||t?.title||s.length;return{id:`${e}:${m}`,meta:{...c,...d},pages:s,emptyMessage:l,buildResults:i}}function u_(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function c_(e){if(e&&typeof e=="object"){const t=e;if(Array.isArray(t.selectedValues))return t.selectedValues;if(t.selectedValue!==void 0)return t.selectedValue;if(t.selectedIndex!==void 0)return t.selectedIndex;if(t.value!==void 0)return t.value}return e}function d_(e,t=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(t))return String(t[e]??"");if(typeof e=="string")return e}function Qc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function p_(e,t,a,r){return Qc(e,t*a+r)}function m_({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const s=e;if(Array.isArray(s.selectedValues))return r.every(l=>s.selectedValues.includes(l))&&s.selectedValues.every(l=>r.includes(l));if(typeof s.correct=="boolean")return s.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[t]));if(typeof t<"u")return r.some(s=>String(s)===String(t))}}function h_(e){return e?Array.isArray(e.items)?e.items.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const ed=o.createContext(null);function C_(){const e=o.useContext(ed);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function f_({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,choices:l=[],onDone:i,onChange:u}){const{t:c}=_e.useTranslation(),d=typeof e=="number"?e:-1,m=typeof t!="number"?"disabled":d<t?"done":d===t?"active":"disabled",[p,h]=o.useState(()=>l.map(()=>null)),b=JSON.stringify(l),v=l.length;o.useEffect(()=>{h(Array.from({length:v},()=>null))},[b]);const C=o.useRef(void 0);o.useEffect(()=>{const k=C.current;typeof k=="number"&&typeof t=="number"&&typeof e=="number"&&k>=e&&t<e&&h(Array.from({length:v},()=>null)),C.current=t},[t,e,v]);const f=o.useMemo(()=>p.filter(k=>k!==null).length+1,[p]),_=o.useCallback(k=>{if(!na(m))return;const x=p;let A;if(x[k]!=null){const w=x[k];A=x.map(B=>B!==null&&B>=w?null:B)}else A=[...x],A[k]=f;h(A);const y={selectedOrder:A,words:l,__ts:Date.now()};try{typeof u=="function"&&u(y)}catch{}if(x[k]==null&&A.length>0&&A.every(w=>w!==null))try{typeof i=="function"&&i(y)}catch{}},[m,p,f,u,i,l]),g=s??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:g,onDone:i,children:n.jsx("div",{className:"training-step__cards",children:l.map((k,x)=>n.jsx(Jo,{item:{word:k},disabled:m==="disabled",selectable:!0,selected:p[x]!==null,orderRank:p[x],onSelect:()=>_(x),flipDelay:x*120,hideLabel:!1,hideAudio:!0},`${k}-${x}`))})})}function Dr(e){return null}Dr.__isTrainingPage=!0;function xa(e,t){const a=C_();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function td({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i}=xa(e,t);return n.jsx(_s,{...a,index:r,stepIndex:s,isLast:l,onDone:i})}function nd({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=xa(e,t);return n.jsx(vs,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}function ad({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=xa(e,t);return n.jsx(xs,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}function rd({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=xa(e,t);return n.jsx(ws,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}function od({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=xa(e,t);return n.jsx(Hc,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}function g_({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=xa(e,t);return n.jsx(f_,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}const sd=3e4,b_=/^(https?:|blob:|data:audio|\/|\.\/)/;function ld(e){return typeof e=="string"&&b_.test(e)?e:null}const y_=e=>typeof e=="string"&&e.trim()!==""?e:null,As=Symbol("timed-out");function v_(e,t){if(t<=0)return Promise.resolve(As);let a;return Promise.race([Promise.resolve(e),new Promise(r=>{a=setTimeout(()=>r(As),t)})]).finally(()=>clearTimeout(a))}function x_(e){return e?Na()||Jr()?!0:typeof window<"u"&&!!window.speechSynthesis:!1}function __(e,t){const a=[],r=ld(t);r&&a.push({kind:"raw",resolve:async()=>r});const s=(e??"").trim();if(!s)return a;for(const[l,i]of[["urlResolver",Na()],["fallbackUrlResolver",Jr()]])i&&a.push({kind:l,resolve:async u=>{let c;try{c=await v_(i(s),u)}catch(m){return Mt(`question-sound-threw-${l}`,`[core] configureTTS \uC758 ${l} \uAC00 \uB358\uC84C\uB2E4 \u2014 \uADF8 \uCC28\uB840\uB294 \uAC74\uB108\uB6F4\uB2E4.`,m),null}return c===As?(Mt(`question-sound-slow-${l}`,`[core] configureTTS \uC758 ${l} \uAC00 ${sd}ms \uBC14\uD034 \uC548\uC5D0 \uC548 \uD480\uB838\uB2E4 \u2014 \uADF8 \uCC28\uB840\uB97C \uBC84\uB9AC\uACE0 \uB2E4\uC74C\uC73C\uB85C \uAC04\uB2E4. \uC11C\uBC84 \uD569\uC131\uC744 \uAE30\uB2E4\uB9AC\uB294 \uB9AC\uC878\uBC84\uB77C\uBA74 \uC774 \uC790\uB9AC\uAC00 \uAE38\uC5B4\uC9C4\uB2E4. \uC18C\uB9AC\uAC00 \uC544\uC608 \uC548 \uB098\uBA74 \uC5EC\uAE30\uBD80\uD130 \uBCF4\uB77C.`),null):y_(c)||(Mt(`question-sound-empty-${l}`,`[core] configureTTS \uC758 ${l} \uAC00 \uC8FC\uC18C\uB97C \uC548 \uC92C\uB2E4(\uBC1B\uC740 \uAC83: ${JSON.stringify(c)}) \u2014 \uADF8 \uCC28\uB840\uB294 \uAC74\uB108\uB6F4\uB2E4.`),null)}});return a}function w_(){return Date.now()+sd}const B_=(e,t)=>Math.max(0,e-Date.now())/Math.max(1,t);function k_(e){Mt("question-sound-none",`[core] "${e}" \uC758 \uC18C\uB9AC \uC8FC\uC18C\uB97C \uD55C \uC790\uB9AC\uC5D0\uC11C\uB3C4 \uBABB \uC5BB\uC5C8\uB2E4 \u2014 \uBE0C\uB77C\uC6B0\uC800 \uB0AD\uB3C5\uC73C\uB85C \uAC04\uB2E4. configureTTS \uAC00 \uAC78\uB824 \uC788\uB294\uC9C0, \uB9AC\uC878\uBC84\uAC00 \uC8FC\uC18C\uB97C \uC8FC\uB294\uC9C0 \uC704 \uC904\uB4E4\uC744 \uBCF4\uB77C.`)}function Sr(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,r=[a.text,a.label,a.value];for(const s of r){if(typeof s=="string"&&s.trim().length)return s.trim();if(typeof s=="number"||typeof s=="boolean")return String(s)}}}return null}function A_(e){return Sr(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function N_(e){return ld(Sr(e?.questionSound,e?.soundSrc,e?.audioSrc,e?.sound,e?.audio,e?.src))}function id(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const t=Sr(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function ud(e){const{score:t,contextsLength:a,results:r=[],subtitle:s,onReplay:l,onClose:i,inline:u=!1,pending:c=!1}=e||{},{t:d}=_e.useTranslation(),m=o.useId(),p=o.useCallback(()=>!c,[c]);o.useEffect(()=>{const D=a??0;if(t!=null&&D>0&&t/D>.5){const N=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(N)}},[t,a]);const h=o.useCallback(D=>{const N=id(D),F=Sr(D?.wording,D?.label);return N===!0?{variant:"main",label:F??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:N===!1?{variant:"danger",label:F??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:F??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),b=a??0,v=t??0,C=o.useMemo(()=>Array.isArray(r)?r:[],[r]),f=o.useRef(null),[_,g]=o.useState(null),k=o.useCallback(()=>{f.current?.(),f.current=null,g(null)},[]);o.useEffect(()=>k,[k]);const x=o.useRef(0),A=(D,N)=>{if(!Pn)return;const F=Math.round(performance.now()-x.current);console.debug(`[core][\uB2E4\uC2DC\uB4E3\uAE30] +${F}ms ${D}`,N??"")},y=o.useRef(0),w=o.useCallback((D,N,F)=>{k();const $=++y.current,Y=()=>y.current===$;x.current=Pn?performance.now():0,A(`\uB20C\uB800\uB2E4 \u2014 \uC904 ${D}`,{text:N,rawUrl:F}),g(D),f.current=()=>{A("\uBA48\uCD94\uAC1C\uAC00 \uBD88\uB838\uB2E4(\uC8FC\uC18C \uC5BB\uAE30 \uC804)"),y.current++,Zr()};const M=V=>{A("\uD2BC\uB2E4",V);const O=hr(V,Q=>{A(`\uB05D\uB0AC\uB2E4 \u2014 ${Q?"\uB05D\uAE4C\uC9C0 \uB4E4\uC5C8\uB2E4":"\uBABB \uD2C0\uC5C8\uAC70\uB098 \uBA48\uCDC4\uB2E4"}`,{mine:Y()}),Q&&Y()&&(f.current=null,g(null))});return f.current=()=>{A("\uBA48\uCD94\uAC1C\uAC00 \uBD88\uB838\uB2E4(\uD2B8\uB294 \uC911)"),y.current++,O.stop(),Zr()},O.done},P=__(N,F);A("\uCC28\uB840",P.map(V=>V.kind));const T=P[0]?.kind==="raw",K=T?M(F):Promise.resolve(!1);(async()=>{if(await K||!Y())return;const V=w_(),O=T?P.slice(1):P;for(let Q=0;Q<O.length;Q++){if(!Y())return;A(`${O[Q].kind} \uC5D0\uAC8C \uBB3B\uB294\uB2E4`);const I=await O[Q].resolve(B_(V,O.length-Q));if(A(`${O[Q].kind} \uAC00 \uB2F5\uD588\uB2E4`,I),!Y()||I&&(await M(I)||!Y()))return}Y()&&(A("\uC8FC\uC18C\uB97C \uD558\uB098\uB3C4 \uBABB \uC5BB\uC5C8\uB2E4 \u2014 \uB0AD\uB3C5\uC73C\uB85C \uAC04\uB2E4"),k_(N),f.current=()=>{y.current++,Zr()},A("\uB0AD\uB3C5\uD55C\uB2E4"),EC(N,{onEnd:()=>{Y()&&(f.current=null,g(null))}}))})()},[k]),B=o.useMemo(()=>C.map(D=>{const N=D??{},F=A_(N)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:$,label:Y}=h(N),M=Array.isArray(N.corrects)?N.corrects:[],P=M.length?M.join(", "):N.answer!=null&&N.answer!==""?String(N.answer):null,T=typeof N.selectedText=="string"?N.selectedText:null,K=id(N)===!0,V=N_(N),O=!!V||x_(F);return{problem:F,variant:$,label:Y,answer:P,selectedText:T,isCorrect:K,sound:V,canHear:O}}),[C,h,d]),E=o.useMemo(()=>B.some(D=>D.answer!==null||D.selectedText!==null),[B]);return n.jsx(Wn,{onClose:i,closeOnBackdrop:!1,inline:u,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:p,footerClassName:"trp-result__foot",footer:({animateThen:D,closeWithAnimation:N})=>n.jsxs(n.Fragment,{children:[c&&n.jsx("p",{id:m,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsxs("div",{className:"trp-actions",children:[n.jsx(fe,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>D(l)}),n.jsx(fe,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:N,disabled:c,onDisabledClick:c?()=>{}:void 0,"aria-describedby":c?m:void 0})]})]}),children:()=>n.jsxs("div",{className:"trp-result is-on",children:[n.jsxs("header",{className:"trp-result__head",children:[n.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&n.jsx("p",{className:"trp-result__subtitle body-3",children:s}),n.jsx("div",{className:"trp-score",children:n.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:v,total:b}),children:[n.jsx("span",{className:"trp-score__big",children:v}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:b})]})})]}),B.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${E?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[n.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[n.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),E&&n.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),n.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),B.map((D,N)=>n.jsxs("div",{className:"result-table__row",role:"row",children:[n.jsxs("div",{className:"trp-row__problem",children:[n.jsx("span",{className:"trp-row__no caption-1",children:String(N+1).padStart(2,"0")}),n.jsx("div",{className:"trp-row__q body-2",children:D.problem}),D.canHear&&n.jsx(fe,{htmlType:"button",size:32,type:"dot",useBorder:!1,icon:_===N?"square":"volume-2",className:"trp-row__replay",ariaLabel:_===N?d("training.result.replaySoundStop",{no:N+1,defaultValue:"{{no}}\uBC88 \uB4E3\uAE30 \uBA48\uCDA4"}):d("training.result.replaySound",{no:N+1,defaultValue:"{{no}}\uBC88 \uB2E4\uC2DC \uB4E3\uAE30"}),onClick:()=>_===N?k():w(N,D.problem,D.sound)})]}),E&&n.jsxs("div",{className:"trp-row__answers",children:[D.answer!==null&&n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),n.jsx("span",{className:"trp-row__answer-value body-2",children:D.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${D.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${D.isCorrect?"is-correct":"is-wrong"}`,children:D.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx($t,{variant:D.variant,label:D.label,fill:"soft",minWidth:80})})]},N))]})})]})})}const Ns=new Set;function E_(e){o.useEffect(()=>{if(!e||Ns.has(e))return;Ns.add(e);const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,l=0;const i=()=>{const m=Date.now();a==null&&(a=m),r==null&&(r=m)},u=()=>{r!=null&&(s+=Date.now()-r,r=null)};t()&&i();const c=()=>{if(u(),a==null)return;const m=s-l;if(m<1e3||l===0&&s<5e3)return;const p=Date.now(),h=p-m;l=s,wf({trainingType:e,startedAt:new Date(h).toISOString(),endedAt:new Date(p).toISOString()})},d=()=>{t()?i():c()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",c),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",c),c(),Ns.delete(e)}},[e])}function jr(e,t){return e&&e.id||`page-${t??0}`}function Tr(e,t){return e&&e.key||`step-${t??0}`}function Mr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function D_(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const S_=300,j_=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Rn=Object.freeze({}),cd=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function Es(e){const t=e,a=t?.results||t?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,s=Array.isArray(a)?a.filter(l=>l?.correct===!0||l?.isCorrect===!0||l?.score===1||l?.heard===!0||l?.judgement===!0).length:null;return{results:a,correct:r!=null?s:null,total:r}}const T_=e=>n.jsx(ud,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function M_(e){const{scenario:t,title:a,subTitle:r,depth:s,icon:l,wrapperStyle:i,iconTooltip:u,pageIndex:c,pageCount:d,stepIndex:m,stepCount:p,onBack:h,onComplete:b,onRoundFinished:v,onNext:C,onSettings:f,useNoiseSetting:_=!0,children:g,ariaLabel:k,label:x,buildResults:A,onResult:y,typeKey:w,entryPoint:B,dailyTotal:E,itemRef:D,renderResultPopup:N,noiseOverride:F,hideNoiseRows:$=!1}=e;E_(w&&!cd.has(w)?w:"");const Y=o.useRef(0);o.useEffect(()=>{Y.current=Date.now()},[]);const{t:M}=_e.useTranslation(),P=y,T=!!t,K=t?.id||null,V=t?.meta||{},O=Array.isArray(t?.pages)?t.pages:[],Q=Array.isArray(g)||o.isValidElement(g)&&typeof g!="function"?o.Children.toArray(g).filter(o.isValidElement):[],I=Q.length>0,q=ie=>ie===Dr||ie?.__isTrainingPage===!0,z=I&&Q.some(ie=>q(ie.type)),U=z?Q.filter(ie=>q(ie.type)).map((ie,Ae)=>{const je=ie.props||{};return{id:`children-page-${Ae}`,steps:o.Children.toArray(je.children).filter(o.isValidElement),pageTop:je.pageTop||je.top||null,pageBottom:je.pageBottom||je.bottom||null}}):[{id:"children-page-0",steps:Q}],S=I&&!T&&typeof g!="function",R=S?Math.max(1,U.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 ie=document.body;return ie.dataset.ihabTrainingPopupCount=String(Number(ie.dataset.ihabTrainingPopupCount||"0")+1),ie.classList.add("ihab-training-popup-open"),()=>{const Ae=Number(ie.dataset.ihabTrainingPopupCount||"1")-1;Ae>0?ie.dataset.ihabTrainingPopupCount=String(Ae):(delete ie.dataset.ihabTrainingPopupCount,ie.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return av()},[]);const[L,Z]=o.useState({...ea,enabled:!1}),ue=o.useRef(L);o.useEffect(()=>{ue.current=L},[L]);const oe=o.useRef(F),le=o.useRef(!1),re=o.useRef(null);o.useEffect(()=>{let ie=!1;const Ae=je=>{if(ie)return;le.current=!0;const Ze=je?Qn({...ea,enabled:!1},je):{...ea},Fe=re.current;re.current=null;const X=Fe?Qn(Ze,Fe):Ze;ue.current=X,Z(X),Fe&&!oe.current&&co(X),rr(X);const ce=oe.current;if(ce){const ee=typeof ce=="function"?ce(X):ce,xe=Qn(X,ee);ue.current=xe,Z(xe),rr(xe)}};return Lf().then(je=>{if(ie){const Ze=re.current;if(re.current=null,Ze&&!oe.current){const Fe=je?Qn({...ea,enabled:!1},je):{...ea};co(Qn(Fe,Ze))}return}Ae(je)}),()=>{ie=!0}},[]);const[W,te]=o.useState(null),[H,G]=o.useState(null),pe=o.useCallback((ie,Ae)=>{ie==="main"?te(Ae):G(Ae)},[]),Ne=o.useRef(null),ye=o.useRef(null),me=o.useCallback(()=>{ye.current!==null&&(clearTimeout(ye.current),ye.current=null);const ie=Ne.current;Ne.current=null,ie&&co(ie)},[]);o.useEffect(()=>{if(typeof window>"u")return;const ie=()=>{document.visibilityState==="hidden"&&me()};return window.addEventListener("pagehide",me),document.addEventListener("visibilitychange",ie),()=>{window.removeEventListener("pagehide",me),document.removeEventListener("visibilitychange",ie),me()}},[me]);const se=o.useCallback(ie=>{const Ae=Qn(ue.current,ie);if(ue.current=Ae,Z(Ae),!le.current){re.current={...re.current??{},...ie},rr(Ae);return}oe.current||(Ne.current=Ae,ye.current!==null&&clearTimeout(ye.current),ye.current=setTimeout(me,S_)),rr(Ae)},[me]),ge=L.mainSpeed,Ce=L.mainVolume,de=o.useCallback(ie=>se({mainSpeed:ie}),[se]),Le=o.useCallback(ie=>se({mainVolume:ie}),[se]),ze=o.useMemo(()=>({settings:L,setSettings:se,registerAnalyser:pe,mainAnalyser:W,noiseAnalyser:H,playbackRate:ge,setPlaybackRate:de,mainVolume:Ce,setMainVolume:Le}),[L,se,pe,W,H,ge,de,Ce,Le]),Te=o.useRef(null),[Ge,Ie]=o.useState(0),ct=o.useRef([]),[at,rt]=o.useState("center"),[lt,Ee]=o.useState(!1),Ye=o.useRef(!1),ke=o.useRef(null),He=o.useCallback(ie=>{Ye.current||(Ye.current=!0,Ee(!0),ke.current=setTimeout(()=>{try{ie()}catch{Ye.current=!1,Ee(!1)}},j_()?0:Jx))},[]);o.useEffect(()=>()=>{ke.current&&clearTimeout(ke.current)},[]);const Je=o.useRef(h);o.useEffect(()=>{Je.current=h});const dt=o.useRef(typeof document>"u"?null:document.activeElement);o.useEffect(()=>{const ie=Te.current,Ae=dt.current;if(fo(ie,Ae),ie){const je=Array.from(ie.querySelectorAll(_n)).filter(Ze=>!Ze.closest('[aria-hidden="true"]'))[0];if(je)try{je.focus()}catch{}}return()=>{const je=document.activeElement;if(!je||je===document.body||ie&&ie.contains(je))try{go(Ae)?.focus?.()}catch{}}},[]),o.useEffect(()=>Gn(()=>He(()=>{const ie=Je.current;typeof ie=="function"&&ie()})),[He]),ho(Te,!0);const[kt,At]=o.useState(!1),Pt=o.useRef(!1),[et,st]=o.useState(null),Dt=o.useRef(0),vt=o.useRef(0),we=()=>{Dt.current+=1,vt.current+=1,st(null)},[Re,Se]=o.useState(""),[Ve,qe]=o.useState(()=>Mr()),Bt=o.useRef(typeof c=="number"?c:null);o.useEffect(()=>{!T&&!S||(qe(Mr()),we())},[T,K,S]),o.useEffect(()=>{S&&qe(ie=>{const Ae=Math.max(0,Math.min(ie.pageIndex,Math.max(0,R-1)));return Ae!==ie.pageIndex?{...ie,pageIndex:Ae,stepIndex:0}:ie})},[S,R]);const mt=S?Math.max(0,Math.min(Ve.pageIndex,R-1)):0,ut=S?U[mt]:null,St=S&&ut&&Array.isArray(ut.steps)?ut.steps:[],Ue=T?Ve.pageIndex:S?mt:typeof c=="number"?c:0,ht=T?O[Math.max(0,Math.min(Ve.pageIndex,Math.max(0,O.length-1)))]:null,jt=T&&ht&&Array.isArray(ht.steps)?ht.steps:[],Me=T?jt.length:S?St.length:typeof p=="number"?p:0,Ke=T||S?Math.max(0,Math.min(Ve.stepIndex,Math.max(0,Me))):typeof m=="number"?m:0,yt=T?O.length:S?R:typeof d=="number"?d:0;o.useEffect(()=>{if(!T&&!S)return;const ie=T?jr(ht,Ue):ut?.id||`children-page-${Ue??0}`,Ae=new Date().toISOString();for(let je=0;je<=Ke;je+=1){const Ze=T?Tr(jt[je],je):`step-${je}`,Fe=ve(ie,Ze);ae.current.has(Fe)||ae.current.set(Fe,Ae)}},[T,S,Ue,Ke,ut?.id]),o.useLayoutEffect(()=>{const ie=Bt.current;if(typeof Ue=="number"&&ie!==null&&Ue!==ie&&Ue>ie)try{Se(M("training.problemNotice",{n:Ue+1}))}catch{}Bt.current=typeof Ue=="number"?Ue:Bt.current},[Ue,c,M]),o.useLayoutEffect(()=>{const ie=Te.current;if(!ie)return;const Ae=()=>ie.querySelector(".page-popup__scroll");let je=null,Ze=null,Fe=null;const X=We=>{const ot=Ae();if(!ot)return;const bt=ot.scrollHeight<=ot.clientHeight;if(rt(bt?"center":"top"),We&&!Pt.current){Pt.current=!0;try{At(!0)}catch{}try{xe.disconnect()}catch{}}},ce=()=>{je!==null&&cancelAnimationFrame(je),je=requestAnimationFrame(()=>{Ze!==null&&clearTimeout(Ze),Ze=setTimeout(()=>X(!0),60)})},ee=()=>{Fe!==null&&cancelAnimationFrame(Fe),Fe=requestAnimationFrame(()=>X(!1))};ce(),window.addEventListener("resize",ee);const xe=new MutationObserver(ce);xe.observe(ie,{childList:!0,subtree:!0,attributes:!0});const $e=setTimeout(()=>{Pt.current||X(!0)},400);return()=>{window.removeEventListener("resize",ee),je!==null&&cancelAnimationFrame(je),Ze!==null&&clearTimeout(Ze),Fe!==null&&cancelAnimationFrame(Fe),clearTimeout($e);try{xe.disconnect()}catch{}}},[Te]);const Qe=o.useCallback(ie=>{Te.current&&(Te.current._childOnNext=ie)},[]),xt=o.useCallback(ie=>{Te.current&&(Te.current._childOnResult=ie)},[]),ae=o.useRef(new Map),ve=(ie,Ae)=>`${ie}\0${Ae}`,Oe=o.useCallback((ie,Ae,je)=>{qe(Ze=>{const Fe=Ze.answersByPage[ie]||{},X=Fe[Ae],ce=ks(je),ee=ks(X);if(X&&ee>ce)return Ze;const xe=Jc(je,ae.current.get(ve(ie,Ae)),ce);return{...Ze,answersByPage:{...Ze.answersByPage,[ie]:{...Fe,[Ae]:xe}}}})},[qe]),tt=o.useCallback((ie,Ae,je)=>{const Ze=jr(ht,Ue),Fe=Tr(ie,Ae);Oe(Ze,Fe,je)},[ht,Ue,Oe]),gt=o.useCallback((ie,Ae,je)=>{const Ze=jr(ht,Ue),Fe=Tr(ie,Ae);Oe(Ze,Fe,je),!je?.allowChange&&ie?.autoAdvance!==!1&&qe(X=>({...X,stepIndex:Math.max(X.stepIndex,Ae+1)}))},[ht,Ue,Oe,qe]),it=o.useCallback((ie,Ae)=>{const je=ut?.id||`children-page-${Ue??0}`,Ze=typeof Ae=="number"?Ae:Ke??0,Fe=`step-${Ze}`;Oe(je,Fe,ie),ie?.allowChange||qe(X=>({...X,stepIndex:Math.max(X.stepIndex,Ze+1)}))},[ut,Ue,Ke,Oe,qe]),It=o.useCallback((ie,Ae)=>{const je=ut?.id||`children-page-${Ue??0}`,Ze=`step-${typeof Ae=="number"?Ae:Ke??0}`;Oe(je,Ze,ie)},[ut,Ue,Ke,Oe]),Gt=S?{currentPageIndex:Ue??0,currentStepIndex:Ke??0,totalStepsInPage:St.length,handleStepDone:it,handleStepChange:It}:null,An=async()=>{const ie=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:O,flowState:Ve,answersByPage:Ve.answersByPage})):null;return typeof P=="function"&&await Promise.resolve(P(ie))||ie},Wt=async()=>{const ie=ut?.id||`children-page-${Ve.pageIndex}`,Ae=Ve.answersByPage[ie]||{},je=z?(()=>{const X={};let ce=0;return U.forEach(ee=>{const xe=Ve.answersByPage[ee.id]||{},$e=Array.isArray(ee.steps)?ee.steps.length:0;for(let We=0;We<$e;We+=1){const ot=xe[`step-${We}`];typeof ot<"u"&&(X[`step-${ce+We}`]=ot)}ce+=$e}),X})():Ae;if(typeof A=="function"){const X=await Promise.resolve(A(je,{pageAnswers:Ae,answersByPage:Ve.answersByPage,pages:U,currentPageId:ie}));return typeof P=="function"&&await Promise.resolve(P(X))||X}const Ze=Object.entries(Ae).map(([X,ce],ee)=>({index:ee,key:X,payload:ce})),Fe={results:Ze,answers:Ze,score:0};return typeof P=="function"&&await Promise.resolve(P(Fe))||Fe},Kt=()=>{const ie=++Dt.current,Ae=()=>ie!==Dt.current;try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(T){const Fe=An();st(Rn);const X=Fe;Promise.resolve(X).then(ce=>{Ae()||st(ce||{isEmpty:!0})}).catch(ce=>{!Ae()&&st({isEmpty:!0})});return}if(S){const Fe=Wt();st(Rn);const X=Fe;Promise.resolve(X).then(ce=>{Ae()||st(ce||{isEmpty:!0})}).catch(ce=>{!Ae()&&st({isEmpty:!0})});return}const je=Te.current&&Te.current._childOnResult,Ze=Fe=>{try{return Fe?Fe():void 0}catch{return}};if(typeof je=="function"){const Fe=Ze(je);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:En&&En.tagName.toUpperCase()==="SCRIPT"&&En.src||new URL("components.cjs.js",document.baseURI).href}catch{}Fe&&typeof Fe.then!="function"?st(Fe):st(Fe&&typeof Fe.then=="function"?Rn:{});const X=()=>{Ae()||st(ce=>ce===Rn?{}:ce)};Promise.resolve(Fe).then(ce=>{ce&&!Ae()?st(ce):X()}).catch(ce=>{X()});return}if(typeof P=="function"){const Fe=Ze(P);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:En&&En.tagName.toUpperCase()==="SCRIPT"&&En.src||new URL("components.cjs.js",document.baseURI).href}catch{}Fe&&typeof Fe.then!="function"?st(Fe):st(Fe&&typeof Fe.then=="function"?Rn:{});const X=()=>{Ae()||st(ce=>ce===Rn?{}:ce)};Promise.resolve(Fe).then(ce=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:En&&En.tagName.toUpperCase()==="SCRIPT"&&En.src||new URL("components.cjs.js",document.baseURI).href}catch{}ce&&!Ae()?st(ce):X()}).catch(ce=>{console.error("viewResults external handler failed",ce),X()});return}},Nt=()=>{if(T){if(typeof Ue=="number"&&typeof yt=="number"&&Ue<yt-1){qe(Ae=>({...Ae,pageIndex:Ae.pageIndex+1,stepIndex:0}));return}return Kt()}if(S){const Ae=St.length;if(typeof Ke=="number"&&Ke<Ae-1){qe(je=>({...je,stepIndex:je.stepIndex+1}));return}if(typeof Ue=="number"&&typeof yt=="number"&&Ue<yt-1){qe(je=>({...je,pageIndex:je.pageIndex+1,stepIndex:0}));return}return Kt()}if(typeof C=="function"){try{C()}catch{}return}const ie=Te.current&&Te.current._childOnNext;if(typeof ie=="function"){try{ie()}catch{}return}},Ct=T?V.title||V.label||k||M("common.popup","\uD31D\uC5C5"):a||x||(Array.isArray(s)?s[s.length-1]:void 0)||k||M("common.popup","\uD31D\uC5C5"),ft=k||Ct,_t=T?V.title??V.label??Ct:a??x??Ct,Yt=(ie,Ae)=>{const je=jr(ht,Ue),Ze=Tr(ie,Ae),Fe=Ve.answersByPage[je]?.[Ze],X=D_(ie,{page:ht,pageIndex:Ue,step:ie,stepIndex:Ae,storedPayload:Fe,answersByPage:Ve.answersByPage,flowState:Ve}),ce={key:Ze,index:Ae,stepIndex:Ke,isLast:Ae===jt.length-1};switch(ie?.type){case"listen":return n.jsx(_s,{...ce,...X,onDone:ee=>gt(ie,Ae,ee)});case"confirm":return n.jsx(vs,{...ce,...X,onDone:ee=>gt(ie,Ae,ee),onChange:ee=>tt(ie,Ae,ee)});case"confirmWithText":return n.jsx(xs,{...ce,...X,onDone:ee=>gt(ie,Ae,ee),onChange:ee=>tt(ie,Ae,ee)});case"orderList":return n.jsx(ws,{...ce,...X,onDone:ee=>gt(ie,Ae,ee),onChange:ee=>tt(ie,Ae,ee)});default:return null}},gn=o.useRef(void 0);o.useEffect(()=>{const ie=gn.current;if(gn.current=Ue,ie===void 0||ie===Ue||!gr())return;const Ae=Te.current;if(!Ae)return;const je=document.activeElement;if(!(!je||je===document.body||!Ae.contains(je)||je.disabled===!0))return;const Ze=Ae.querySelector(`.training-steps ${_n.split(", ").join(", .training-steps ")}`)??Array.from(Ae.querySelectorAll(_n)).find(Fe=>!Fe.closest('[aria-hidden="true"]'));try{Ze?.focus()}catch{}},[Ue]);const Nn=T?O.length>0?n.jsx("div",{className:"training-steps",children:jt.map((ie,Ae)=>Yt(ie,Ae))},`replay-${Ge}`):n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"pp-empty",children:t?.emptyMessage||M("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,tn=S?n.jsxs(ed.Provider,{value:Gt,children:[ut?.pageTop?n.jsx("div",{className:"training-page-top",children:ut.pageTop}):null,n.jsx("div",{className:"training-steps",children:St.map((ie,Ae)=>{const je=ie;return o.cloneElement(je,{...je.props,_stepIndex:Ae,_totalSteps:St.length,_stepKey:`step-${Ae}`,_pageIndex:Ue})})},`replay-${Ge}`),ut?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:ut.pageBottom}):null]}):null,Zt=o.useRef(-1),Ht=o.useCallback(()=>{if(!w)return;const ie=et,{results:Ae,correct:je,total:Ze}=Es(et),Fe={correct:je,total:Ze,attempt:ct.current.length+1,previousAttempts:[...ct.current]};if(Zt.current===vt.current)return Fe;Zt.current=vt.current,Bf({items:Mf(Ae),category:cd.has(w)?"sentence":"word",trainingType:w,entryPoint:B??"sentence",itemRef:D??null,correct:je,total:Ze,score:typeof ie?.score=="number"?ie.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-Y.current)/1e3)),dailyTotal:E??null});try{v?.(Fe)}catch{}return Fe},[w,B,E,D,et,v]);o.useEffect(()=>{!et||et===Rn||et?.isEmpty||(Es(et).total??0)>0&&Ht()},[et,Ht]);const bn=o.useCallback(()=>{const ie=Ht();we(),He(()=>{typeof b=="function"&&b(ie),typeof h=="function"&&h()})},[b,h,Ht,st,He]),Xt=o.useCallback(()=>Se(""),[Se]),un=o.useCallback(()=>{He(()=>{typeof h=="function"&&h()})},[h,He]),Ot=n.jsxs("div",{className:`page-popup${lt?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":ft,children:[n.jsxs("div",{ref:Te,className:`page-popup__panel ${kt?"":"page-popup__panel--measuring"} ${at==="center"?"page-popup__panel--center":at==="top"?"page-popup__panel--top":""}`,children:[n.jsx(Yc,{title:_t,subtitle:T?V.subtitle||V.label:Array.isArray(s)?s.join(" / "):void 0,desc:T?void 0:r,depth:T?V.depth:s,icon:T?V.icon:l,wrapperStyle:T?V.wrapperStyle:i,iconTooltip:T?V.iconTooltip:u,progressMax:yt,progressIndex:Ue,pageIndex:Ue,pageCount:yt,onBack:un,onClose:un}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${at==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:S?tn:T?Nn:typeof g=="function"?g({registerOnNext:Qe,registerOnResult:xt,panelRef:Te,setResultOverlay:st}):g})}),n.jsx(Kc,{onSettings:f,onNext:Nt,onResult:Kt,useNoiseSettingBtn:!!(T?V.useNoiseSetting??!0:_),stepIndex:Ke,stepCount:Me,pageIndex:Ue,pageCount:yt,resultOpen:!!(et&&!et.isEmpty),hideNoiseRows:$})]}),et&&!et.isEmpty&&(N??T_)({score:et.score,results:et.results||et.answers||[],contextsLength:et.results?et.results.length:et.answers?et.answers.length:0,onReplay:()=>{if(Y.current=Date.now(),et!==Rn){const{correct:ie,total:Ae}=Es(et);ct.current.push({correct:ie,total:Ae})}if(we(),Ie(ie=>ie+1),T){if(qe(Mr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(S){qe(Mr());return}try{const ie=Te.current&&Te.current._childOnResult;typeof ie=="function"&&ie({replay:!0})}catch{}},onClose:bn,pending:et===Rn}),et?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":M("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:n.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"page-popup__empty",children:M("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),n.jsx("div",{className:"page-popup__bottom",children:n.jsx(fe,{htmlType:"button",variant:"main",size:48,onClick:bn,label:M("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(Ca,{message:Re,position:"top",onClose:Xt})]}),nn=n.jsx(hs.Provider,{value:ze,children:Ot});return typeof document<"u"&&document.body?cn.createPortal(nn,document.body):nn}const Hn=M_;Hn.Page=Dr,Hn.ListenStep=td,Hn.ConfirmStep=nd,Hn.ConfirmWithTextStep=ad,Hn.OrderListStep=rd,Hn.CardStep=od,Hn.CardOrderStep=g_;function L_({label:e,homonum:t}){const a=la()?.(e,t)??"",{imgRef:r,loading:s,hasImage:l,onLoad:i,onError:u}=Xo(a);return l?n.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&n.jsx("div",{className:"tooltip-word-image__spinner"}),n.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?0:1},onLoad:i,onError:u})]}):n.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:n.jsx("span",{children:e})})}function dd({words:e,anchorRect:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:l,offsetHeight:i}=a.current,u=window.innerWidth;let c=t.left+t.width/2-l/2,d=t.top-i-8;d<8&&(d=t.bottom+8),c=Math.max(8,Math.min(c,u-l-8)),s({left:c,top:d})},[t]),!t||e.length===0?null:cn.createPortal(n.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:n.jsx("div",{className:"tooltip-word-image__cells",children:e.map(l=>n.jsx(L_,{label:l.label,homonum:l.homonum},`${l.label}_${l.homonum??1}`))})}),document.body)}function $_({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:s,groups:l,selected:i=[],onSelect:u,maxSelect:c,onClearSelection:d,onPrint:m,onPrintEmpty:p,className:h,emptyHint:b,sectionType:v="page",disc:C}){const{t:f,i18n:_}=_e.useTranslation(),g=_.language?.startsWith("ko")??!1,{anchorRect:k,openAt:x,close:A}=Pa(),[y,w]=o.useState(null),B=o.useCallback(()=>{A(),w(null)},[A]);Ty(B,!!y);const E=(r??"").trim(),D=/^[^,[\]\s]+$/.test(E)?E:"",N=D.length>0,F=r===void 0&&t===void 0,$=N?"match":F?"original":"ganada",[Y,M]=o.useState(()=>$),[P,T]=o.useState("50"),[K,V]=o.useState(1),[O,Q]=o.useState(N);O!==N&&(Q(N),M($));const I=Y==="match"&&!N||Y==="original"&&!F?$:Y,q=o.useMemo(()=>[...N?[{value:"match",label:f("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...F?[{value:"original",label:f("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:f("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:f("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:f("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:f("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:f("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:f("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[f,N,F]),z=o.useMemo(()=>["10","25","50","100"].map(se=>({value:se,label:f("wordSearch.pageSize",{count:Number(se),defaultValue:`${se}\uAC1C\uC529 \uBCF4\uAE30`})})),[f]),U=se=>se.words?.[0],S=o.useMemo(()=>{const se=[...D].length,ge=of(D),Ce=new Map;return de=>{let Le=Ce.get(de);return Le===void 0&&(Le=ge((de.words?.[0]?.label??"").slice(0,se))?0:1,Ce.set(de,Le)),Le}},[D]),R=o.useCallback((se,ge)=>{const Ce=ze=>U(ze)?.label??"",de=ze=>U(ze)?.syllables??[...Ce(ze)].length,Le=ze=>(ze.words??[]).reduce((Te,Ge)=>{const Ie=parseInt(Ge.grade??"",10);return Number.isFinite(Ie)&&Ie<Te?Ie:Te},999);switch(I){case"match":return S(se)-S(ge)||mn(Ce(se),Ce(ge));case"ganada":return mn(Ce(se),Ce(ge));case"ganada_desc":return mn(Ce(ge),Ce(se));case"syllable":return de(se)-de(ge)||mn(Ce(se),Ce(ge));case"syllable_desc":return de(ge)-de(se)||mn(Ce(se),Ce(ge));case"grade":return Le(se)-Le(ge)||mn(Ce(se),Ce(ge));case"grade_desc":return Le(ge)-Le(se)||mn(Ce(se),Ce(ge));default:return 0}},[I,S]),L=o.useMemo(()=>s.slice().sort(R),[s,R]),Z=Number(P)||10,ue=o.useMemo(()=>(l??[]).flatMap(se=>se.items.slice().sort(R).map(ge=>({item:ge,label:se.label}))),[l,R]),oe=l?ue.length:L.length,le=Math.max(1,Math.ceil(oe/Z)),re=Math.min(K,le),W=o.useMemo(()=>L.slice((re-1)*Z,re*Z),[L,re,Z]),te=o.useId(),H=o.useMemo(()=>{if(!l)return null;const se=ue.slice((re-1)*Z,re*Z),ge=new Map;for(const{item:Ce,label:de}of se)ge.has(de)||ge.set(de,[]),ge.get(de).push(Ce);return[...ge.entries()].map(([Ce,de])=>({label:Ce,items:de}))},[l,ue,re,Z]);o.useEffect(()=>{V(1)},[Y,P,oe,r]);const G=oe>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(fn,{size:40,options:q,value:I,onChange:M,ariaLabel:f("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(fn,{size:40,options:z,value:P,onChange:T,ariaLabel:f("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(Cr,{page:re,totalPages:le,onChange:V})]}):void 0,pe=se=>{u&&u(se)},Ne=t!==void 0&&a?n.jsxs(n.Fragment,{children:[f("wordSearch.resultTitlePrefix","\uCD1D "),n.jsx("span",{style:{color:"var(--color-main)"},children:t}),f("wordSearch.resultTitleSuffix",{unit:g?gf(a):a})]}):void 0,ye=t!==void 0&&t>0&&c!==void 0&&a?f("wordSearch.resultDisc",{unit:g?yf(a):a,max:c,selected:i.length}):void 0,me=C??ye;return n.jsxs(ga,{type:v,className:Be("word-search-result-block",h),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(Ne||G||me)&&n.jsxs("div",{className:"word-search-result-block__head",children:[n.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&n.jsx(nt,{icon:e,className:"word-search-result-block__head-icon"}),Ne&&n.jsx("span",{className:"word-search-result-block__title h3",children:Ne})]}),G&&n.jsx("div",{className:"word-search-result-block__head-actions",children:G}),me&&n.jsx("div",{className:"word-search-result-block__head-disc body-3",children:me})]}),(l?l.length===0:s.length===0)&&n.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[n.jsx("p",{className:"word-search-result-block__empty body-3",children:f("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),b&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:b})]}),l?(H??[]).map(se=>n.jsxs("div",{className:"word-search-result-block__group",role:"group","aria-labelledby":`${te}-${se.label}`,children:[n.jsx("div",{className:"word-search-result-block__group-label caption-1b",id:`${te}-${se.label}`,children:se.label}),n.jsx("div",{className:"word-search-result-block__items",children:se.items.map(ge=>{const Ce=i.includes(ge.id);return n.jsx("div",{onMouseEnter:de=>{x(de.currentTarget),w(ge.words??[])},onMouseLeave:B,children:n.jsx(fe,{htmlType:"button",size:"word",align:"grid",label:(ge.words??[]).map(de=>de.label),subLabel:(ge.words??[]).some(de=>de.subLabel)?(ge.words??[]).map(de=>de.subLabel):void 0,selected:Ce,onClick:()=>pe(ge.id),minWidth:200})},ge.id)})})]},se.label)):n.jsx("div",{className:"word-search-result-block__items",children:W.map(se=>{const ge=i.includes(se.id);return n.jsx("div",{onMouseEnter:Ce=>{x(Ce.currentTarget),w(se.words??[])},onMouseLeave:B,children:n.jsx(fe,{htmlType:"button",size:"word",align:"grid",label:(se.words??[]).map(Ce=>Ce.label),subLabel:(se.words??[]).some(Ce=>Ce.subLabel)?(se.words??[]).map(Ce=>Ce.subLabel):void 0,selected:ge,onClick:()=>pe(se.id),minWidth:200})},se.id)})}),y&&k&&n.jsx(dd,{words:y,anchorRect:k})]}),le>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(Cr,{page:re,totalPages:le,onChange:V})}),(d||m)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[d&&n.jsx(fe,{htmlType:"button",size:"56",type:"bar",label:f("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:i.length===0,onClick:i.length===0?void 0:d}),m&&n.jsx("div",{onClick:i.length===0?p:void 0,children:n.jsx(fe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:f("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:i.length===0,onClick:i.length===0?void 0:m})})]})]})}function R_(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,s=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:s}})}function P_({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:s=4,minCount:l=1,combinationSections:i,combinationSectionsForSlot:u,onSelect:c,placeholder:d="-",className:m,title:p,titleIcon:h,disc:b,showInfoButton:v=!0,onClearPhoneme:C,onSearch:f,onSearchEmpty:_,searchDisabled:g=!1,searchLabel:k,searchChecking:x=!1,pairMode:A=!1,sectionType:y="page",beforeSearchContent:w,beforeContent:B,afterContent:E,hideCountControl:D=!1,ordinal:N=!1}){const{t:F}=_e.useTranslation(),$=o.useMemo(()=>F("wordPairs.infoNotes",{returnObjects:!0}),[F]),Y=o.useMemo(()=>Array.from({length:s-l+1},(S,R)=>{const L=l+R;return{key:String(L),label:F("wordPairs.count",{n:L})}}),[F,s,l]),M=o.useMemo(()=>F("wordPairs.ordinals",{returnObjects:!0}),[F]),P=o.useCallback(S=>N?F("wordPairs.phonemeOrdinalLabel",{ordinal:M[S-1]??S}):a===1?F("wordPairs.phonemeSingleLabel","\uC74C\uC808"):F("wordPairs.phonemeN",{n:S}),[N,M,a,F]),T=o.useCallback(S=>N?F("wordPairs.phonemeContrastOrdinalLabel",{ordinal:M[S-1]??S}):a===1?F("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):F("wordPairs.phonemeContrast",{n:S}),[N,M,a,F]),K=o.useCallback((S,R)=>R?n.jsxs(n.Fragment,{children:[S,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):S,[]),{anchorRect:V,toggleAt:O,close:Q}=Pa(),I=o.useCallback(S=>r(Number(S)),[r]),q=Cn("(max-width: 767px)"),z=o.useCallback(S=>R_(S,e).map(({label:R,value:L,displayLabel:Z})=>{const ue=!!L&&L!=="\uC5C6\uC74C";return n.jsxs("span",{className:Be("phoneme-select-block__cell-jamo-part",L?"":"phoneme-select-block__cell-jamo-part--empty",ue?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${L==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:L==="\uC5C6\uC74C"?"x":L||d}),ue&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Z??R})]},R)}),[e,d]),U=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(fe,{htmlType:"button",size:40,type:q?"dot":void 0,icon:"info",label:q?void 0:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:V?"is-selected":void 0,"aria-expanded":!!V,"aria-haspopup":"dialog",onClick:S=>O(S.currentTarget)})}),V&&n.jsx(Kn,{title:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:$,anchorRect:V,onClose:Q})]});return n.jsxs(ga,{type:y,title:p,icon:h,disc:b,action:v?U:void 0,className:Be("phoneme-select-block",m),children:[B,!D&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(wn,{options:Y,value:String(a),onChange:I,size:40,ariaLabel:F("wordPairs.countLabel","\uC74C\uC18C \uAC1C\uC218"),className:"phoneme-select-block__count-control"})}),n.jsx("div",{className:"phoneme-select-block__cells",children:A?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((S,R)=>{const L=t[R*2]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:z(L)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:P(R+1)})]},R)})}),n.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:F("wordPairs.phonemeSelect.vs","\uB300")}),n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((S,R)=>{const L=t[R*2+1]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:z(L)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:T(R+1)})]},R)})})]}):t.map((S,R)=>n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:z(S)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:P(R+1)})]},R))}),(i||u)&&n.jsx("div",{className:"phoneme-select-block__panels",children:n.jsx("div",{className:"phoneme-select-block__detail",children:A?n.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((S,R)=>{const L=t[R*2]??{};return n.jsx(Ln,{title:K(P(R+1),R===0),sections:u?u(L,R*2):i,selected:L,onSelect:c?.(R*2),align:"newline"},R)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((S,R)=>{const L=t[R*2+1]??{};return n.jsx(Ln,{title:T(R+1),sections:u?u(L,R*2+1):i,selected:L,onSelect:c?.(R*2+1),align:"newline"},R)})})]}):t.map((S,R)=>n.jsx(Ln,{title:K(P(R+1),R===0),sections:u?u(S,R):i,selected:S,onSelect:c?.(R),align:"newline"},R))})}),w&&n.jsx("div",{className:"phoneme-select-block__before-search",children:w}),(C||f||x)&&(()=>{const S=t.every(R=>{const L=tf(R);return Object.entries(L).every(([Z,ue])=>!ue||Z==="coda"&&ue===Ml)});return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:S?_:void 0,children:[C&&n.jsx(fe,{htmlType:"button",size:"56",type:"bar",label:F("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:S,onClick:S?void 0:C}),f?n.jsx(fe,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:x?n.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:k??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:S||g||x,onDisabledClick:x?()=>{}:void 0,"aria-busy":x||void 0,onClick:f}):x?n.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[n.jsx("div",{className:"phoneme-select-block__spinner"}),n.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:k??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),E]})}function I_({title:e,sections:t,selected:a,onSelect:r,collapsible:s,defaultCollapsed:l,collapsed:i,onCollapsedChange:u,headerSummary:c,headerAction:d,className:m}){const{t:p}=_e.useTranslation();return n.jsx(Ln,{className:m,title:e??p("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,collapsible:s,defaultCollapsed:l,collapsed:i,onCollapsedChange:u,headerSummary:c,headerAction:d,align:"inline"})}function F_({title:e,headerAction:t,sections:a,selected:r,onSelect:s,className:l}){const{t:i}=_e.useTranslation();return a.length===0?null:n.jsx(Ln,{className:l,title:e??i("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:s,align:"newline"})}function O_({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:l,onPositionCountChange:i,inputMode:u,onInputModeChange:c,className:d}){const{t:m}=_e.useTranslation(),p={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=f=>m("wordPairs.count",{n:f}),b=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:n.jsx(Ha,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("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."),m("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."),m("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:p.phonemeOrder,items:[p.orderAny,p.orderMatch],display:"segmented",labelAction:n.jsx(Ha,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[h(1),h(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:n.jsx(Ha,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("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."),m("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={[p.searchMode]:t==="explicit"?p.explicit:t==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:h(l),[p.inputMode]:u==="phoneme"?p.pronInput:p.charInput},C=(f,_)=>{_===p.searchMode?a(f===p.explicit?"explicit":f===p.pick?"pick":"include"):_===p.phonemeOrder?s(f===p.orderMatch?"ordered":"unordered"):_===p.count?i(f===h(2)?2:1):_===p.inputMode&&c(f===p.pronInput?"phoneme":"word")};return n.jsx(Ln,{className:d,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:b,selected:v,onSelect:C,align:"inline"})}function z_(e){const{title:t,items:a,columns:r,resizeStorageKey:s,gridTemplateColumns:l,mobileGridTemplateColumns:i,searchPlaceholder:u,searchFn:c,defaultSortKey:d,defaultSortAsc:m=!0,selectedId:p,selectedIds:h,onSelect:b,onClose:v,pageSizeOptions:C=[10,25,50,100],initialPageSize:f,emptyText:_,noMatchText:g,countLabel:k,topContent:x,className:A=""}=e,{t:y}=_e.useTranslation(),w=u??y("common.search","\uAC80\uC0C9"),B=_??y("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),E=g??y("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"),[D,N]=o.useState(""),[F,$]=o.useState(d??r[0]?.key??""),[Y,M]=o.useState(m),[P,T]=o.useState(String(f??C[0]??10)),[K,V]=o.useState(1);o.useEffect(()=>{V(1)},[D,P]);const O=c!==null,Q=o.useCallback((oe,le)=>{if(!le)return!0;const re=le.toLowerCase();return r.some(W=>{const te=oe[W.key];return te==null?!1:String(te).toLowerCase().includes(re)})},[r]),I=c??Q,q=o.useMemo(()=>{const oe=O?a.filter(le=>I(le,D)):a;return F?[...oe].sort((le,re)=>{const W=le[F],te=re[F];return W===te?0:ur(W,te,Y)}):oe},[a,D,F,Y,O,I]),z=Math.max(1,Math.ceil(q.length/Number(P)));K>z&&V(z);const U=Math.min(K,z),S=q.slice((U-1)*Number(P),U*Number(P)),R=o.useCallback(oe=>{F===oe?M(le=>!le):($(oe),M(!0)),V(1)},[F]),L=o.useMemo(()=>{if(typeof k=="function"){const oe=q.length,le=k(oe);if(typeof le=="string"){const re=le.lastIndexOf(String(oe));if(re>=0)return{prefix:le.slice(0,re),suffix:le.slice(re+String(oe).length)}}return{label:le}}if(typeof k=="string"&&k.includes("{n}")){const[oe,le]=k.split("{n}");return{prefix:oe,suffix:le}}return{prefix:y("common.totalCountPrefix","\uCD1D "),suffix:y("common.totalCountSuffix","\uAC1C")}},[k,q.length,y]),Z=o.useMemo(()=>r.map(oe=>({label:oe.label,onClick:oe.sortable!==!1?()=>R(oe.key):void 0,className:oe.className,sortDir:oe.sortable!==!1&&F===oe.key?Y?"asc":"desc":null})),[r,F,Y,R]),ue=o.useMemo(()=>C.map(oe=>({value:String(oe),label:y("common.pageSizeLabel",{n:oe})})),[C,y]);return n.jsxs(Wn,{className:`popup-list ${A}`,title:t,onClose:v,children:[x,"label"in L&&n.jsx("p",{className:"toolbar__count body-1",children:L.label}),n.jsx(Po,{count:"label"in L?void 0:{value:q.length,prefix:L.prefix,suffix:L.suffix},search:O?{value:D,onChange:N,placeholder:w}:void 0,pageSize:{options:ue,value:P,onChange:T},pagination:{page:U,total:z,onChange:V}}),n.jsx(Ko,{size:"medium",gridTemplateColumns:l,mobileGridTemplateColumns:i,resizable:!0,resizeStorageKey:s,fields:Z,items:S,onRowClick:b,renderRow:oe=>{const le=h!=null?oe.id!=null&&h.has(oe.id):p!=null&&oe.id===p;return r.map(re=>({content:re.render?re.render(oe):oe[re.key]??"",className:Be(re.className,le&&"popup-list__row--selected")}))},empty:O&&D!==""&&a.length>0?E:B})]})}function pd(e){const{title:t,message:a,topContent:r,details:s,children:l,confirmLabel:i,cancelLabel:u,hideCancel:c=!1,extraAction:d,confirmVariant:m="main",confirmDisabled:p=!1,onConfirm:h,closeOnConfirm:b=!0,onClose:v,inline:C,size:f="small",className:_,initialFocus:g="close"}=e,{t:k}=_e.useTranslation(),x=o.useRef(null);o.useEffect(()=>{if(C||g==="close")return;const D=x.current?.closest(".popup-panel"),N=Array.from(D?.querySelectorAll(".popup-footer--buttons button")??[]),F=g==="confirm"?N[N.length-1]:c?void 0:N[d?1:0];F&&!F.disabled&&F.focus()},[]);const A=o.useRef(!1),[y,w]=o.useState(!1),B=D=>{let N=!1;return{close:()=>{N=!0,D()},didClose:()=>N}},E=async D=>{if(A.current)return;A.current=!0;const N=typeof document<"u"?document.activeElement:null;w(!0);let F=!1;try{F=await D()}catch($){typeof console<"u"&&console.error($)}finally{F||(A.current=!1,w(!1),requestAnimationFrame(()=>{const $=document.activeElement;(!$||$===document.body)&&N?.isConnected&&N.focus()}))}};return n.jsxs(Wn,{title:t,onClose:v,closeDisabled:y,inline:C,size:f,className:Be("confirm-popup",r!=null&&"confirm-popup--has-top",_),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||y,onClick:async({closeWithAnimation:D})=>{await E(async()=>{const N=B(D);await d.onClick(N.close);const F=d.closeOnClick??!0;return F&&D(),F||N.didClose()})}}]:[],...c?[]:[{label:u??k("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:y,onClick:({closeWithAnimation:D})=>D()}],{label:i??k("common.confirm","\uD655\uC778"),variant:m,disabled:p||y,onClick:async({closeWithAnimation:D})=>{await E(async()=>{const N=B(D);return await h(N.close),b&&D(),b||N.didClose()})}}],children:[r!=null&&n.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&n.jsx(Nr,{children:s.map((D,N)=>n.jsx($n,{label:D.label,children:n.jsx("span",{className:"panel-row__text body-2",children:D.value})},N))}),n.jsx("p",{ref:x,className:"body-2 confirm-popup__message",children:a}),l]})}function W_(e,t,a={}){const{t:r}=_e.useTranslation(),[s,l]=o.useState(!1),i=o.useRef(!1),u=o.useCallback(()=>{i.current=!0},[]),c=o.useCallback(()=>i.current?(i.current=!1,!0):e?(l(!0),!1):!0,[e]),d=s?n.jsx(pd,{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:()=>{l(!1),t()},onClose:()=>l(!1)}):null;return{beforeClose:c,discardPopup:d,allowClose:u}}function H_({onApply:e,onCancel:t}){const{t:a}=_e.useTranslation(),[r,s]=o.useState(""),[l,i]=o.useState(!1),[u,c]=o.useState(null),d=o.useRef(null),m=o.useId();o.useEffect(()=>{d.current?.focus()},[]);const p=o.useCallback(async v=>{const C=r.trim();if(C){i(!0),c(null);try{await e(C),v()}catch(f){c(Pl(f)),i(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),h=o.useCallback((v,C)=>{v.key==="Enter"&&!v.nativeEvent.isComposing&&p(C)},[p]),b=v=>{s(v.target.value),c(null)};return n.jsx(Wn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:l,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:l,onClick:({closeWithAnimation:v})=>v()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||l,onClick:({closeWithAnimation:v})=>{p(v)}}],children:({closeWithAnimation:v})=>n.jsxs(n.Fragment,{children:[n.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),"aria-invalid":u?!0:void 0,"aria-errormessage":u?m:void 0,"aria-describedby":u?m:void 0,placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:b,onKeyDown:C=>h(C,v),disabled:l,autoComplete:"off",spellCheck:!1}),u&&n.jsx("p",{id:m,className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const md=["var(--color-main)","var(--color-sub)"],V_=2e3;function q_(e,t){if(!t.startsWith("var("))return t;try{const a=t.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function Ds({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:l=0}){const i=o.useMemo(()=>{const C=Math.floor(t/2),f=t-C,_=(g,k)=>Array.from({length:g}).map((x,A)=>{const y=6+Math.random()*12,w=Math.round(Math.min(18,y*Math.min(1.5,1+r*.4))),B=md[Math.floor(Math.random()*md.length)],E=Math.random()*300,D=(360+Math.random()*260)*r*1.2,N=(k==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,F=Math.cos(N)*D,$=Math.sin(N)*D*1.35,Y=Math.random()*720-360,M=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),P=Math.random()>.7?"50%":"3px";return{id:`${k}-${A}`,side:k,size:w,color:B,delay:E,vx:F,vy:$,angularVel:Y,life:M,borderRadius:P}});return[..._(C,"left"),..._(f,"right")]},[t,r]),u=o.useRef(null),c=o.useRef({}),d=o.useRef(null),m=o.useRef(s);o.useEffect(()=>{m.current=s},[s]);const p=o.useRef(null),h=o.useRef(null),b=()=>{if(typeof document>"u")return null;let C=document.querySelector("[data-ihab-effect-root]");return C||(C=document.createElement("div"),C.className="app-effect",C.dataset.ihabEffectRoot="",C.style.position="fixed",C.style.inset="0",C.style.pointerEvents="none",C.style.zIndex="99998",document.body.appendChild(C)),C};if(typeof document<"u"&&h.current==null&&(h.current=b()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const Q=setTimeout(()=>m.current?.(),0);return()=>clearTimeout(Q)}const C=1200,f=performance.now(),_=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,g=Math.max(60,(window.innerHeight||800)*.05),k=Q=>Math.max(40,(Q||window.innerWidth)*.02),x=_?.width||window.innerWidth||375,A=_?.height||window.innerHeight||812,y=Q=>{const I=[...Q].sort((q,z)=>q-z);return I[Math.floor(I.length/2)]||1},w=y(i.map(Q=>Math.abs(Q.vy))),B=y(i.map(Q=>Math.abs(Q.vx))),E=Math.sqrt(2*C*(A*.72+g))/w,D=w*E/C,N=x*.5/(B*D),F=(Q,I,q)=>Math.min(q,Math.max(I,Q)),$=F(E,.8,2.4),Y=F(N,.7,2.2),M=a>0?a/V_:1,P=i.map(Q=>({...Q,life:Q.life*M,vx:Q.vx*Y,vy:Q.vy*$,startTime:f+Q.delay,ended:!1})),T=_?{x:_.left-k(_.width),y:_.top+_.height+g}:{x:-k(window.innerWidth),y:window.innerHeight+g},K=_?{x:_.left+_.width+k(_.width),y:_.top+_.height+g}:{x:window.innerWidth+k(window.innerWidth),y:window.innerHeight+g},V=Q=>{let I=!1;for(const q of P){const z=c.current[q.id];if(!z||!z)continue;if(Q<q.startTime){z.style.display="none",I=!0;continue}if(!q._inited){const W=q.side==="left"?T.x:K.x,te=q.side==="left"?T.y:K.y;z.style.left=`${W}px`,z.style.top=`${te}px`,z.style.transform="translate3d(0px, 0px, 0)",z.style.display="block",z.style.zIndex="100000",typeof q.color=="string"&&q.color.startsWith("var(")&&(z.style.background=q_(z,q.color)??"#FF0060"),q._inited=!0}const U=(Q-q.startTime)/1e3;if(U<0)continue;const S=q.life/1e3;if(U>=S){z.style.opacity="0",z.style.display="none",q.ended=!0;continue}I=!0;const R=q.side==="left"?T.x:K.x,L=q.side==="left"?T.y:K.y,Z=R+q.vx*U,ue=L+q.vy*U+.5*C*U*U,oe=(q.angularVel||0)*U,le=Z-R,re=ue-L;z.style.transform=`translate3d(${le}px, ${re}px, 0) rotate(${oe}deg)`,z.style.opacity=`${Math.max(0,1-U/S)}`}I?d.current=requestAnimationFrame(V):m.current?.()};d.current=requestAnimationFrame(V);const O=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const Q=document.createElement("div");Q.className="party-container",Q.style.position="fixed",Q.style.inset="0",Q.style.pointerEvents="none",Q.style.overflow="visible",Q.style.zIndex="2147483647";for(const I of i){const q=document.createElement("span");q.className=`confetti confetti--${I.side}`,q.setAttribute("aria-hidden","true"),q.style.display="none",q.style.position="fixed",q.style.left="0px",q.style.top="0px",q.style.width=`${I.size}px`,q.style.height=`${Math.max(4,I.size*.6)}px`,q.style.background=I.color,q.style.borderRadius=I.borderRadius,q.style.transform="translate3d(0,0,0)",q.style.opacity="0",Q.appendChild(q),c.current[I.id]=q}(document.body||h.current).appendChild(Q),p.current=Q}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(O),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,l,i]),!e)return null;const v=n.jsx("div",{className:"party-container",ref:u,children:i.map(C=>n.jsx("span",{"aria-hidden":!0,ref:f=>{c.current[C.id]=f},className:`confetti confetti--${C.side}`,style:{width:`${C.size}px`,height:`${Math.max(4,C.size*.6)}px`,background:C.color,borderRadius:C.borderRadius}},`${C.id}-${l}`))});return typeof document<"u"?cn.createPortal(v,h.current||document.body):v}const Ss=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function U_({trigger:e=0,active:t=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const l=i=>{const u=i.detail??{};r(c=>({n:(c?.n??0)+1,count:Ss(u.count),strength:Ss(u.strength),duration:Ss(u.duration)}))};return window.addEventListener("party:trigger",l),()=>window.removeEventListener("party:trigger",l)},[]);const s=o.useCallback(()=>r(null),[]);return n.jsxs(n.Fragment,{children:[n.jsx(Ds,{active:t,trigger:e}),a&&n.jsx(Ds,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function G_({title:e,sub:t,rightAction:a,titleAction:r,badge:s,badgeVariant:l="default",documentTitle:i,onBack:u,backLabel:c,wrap:d=!1}){const{t:m}=_e.useTranslation();by(typeof e=="string"?e:i??null);const p=c??m("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[n.jsxs("div",{className:"page-title__main",children:[n.jsxs("div",{className:"page-title__title-row",children:[u&&n.jsx(fe,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:u}),n.jsx("h1",{className:"page-title__title h1",children:e}),s&&n.jsx("div",{className:"page-title__badge",children:n.jsx($t,{label:s,size:"small",variant:l,fill:"outline"})}),r?n.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&n.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?n.jsx("div",{className:"page-title__action",children:a}):null]})}function K_(e){return e??""}const hd=o.createContext({words:[],loading:!1});function Y_(){return o.useContext(hd)}function Z_({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:l,progress:i,clearAndRefetch:u,checkRemoteVersion:c,children:d}){const m=o.useMemo(()=>({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:l,progress:i,clearAndRefetch:u,checkRemoteVersion:c}),[e,t,a,r,s,l,i,u,c]);return n.jsx(hd.Provider,{value:m,children:d})}function X_({items:e,actions:t,columns:a,flat:r=!1,className:s,style:l}){const i=a??e.length;return n.jsx("section",{className:Be("summary-strip",r&&"summary-strip--flat",s),style:{"--summary-strip-cols":String(i),...l},children:n.jsxs("div",{className:"summary-strip__row",children:[n.jsx("div",{className:"summary-strip__items",children:e.map((u,c)=>n.jsxs("div",{className:"summary-strip__item",children:[n.jsx("p",{className:"summary-strip__label caption-1",children:u.label}),n.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})]},c))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const J_=(e,t)=>`${e} / ${t}`;function Q_({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:s=J_,pageWidth:l,pageHeight:i,margin:u,className:c,style:d}){const{t:m}=_e.useTranslation(),p=o.useRef(null),h=o.useRef(null),b=o.useRef(null),v=o.useRef(null),[C,f]=o.useState(null),[_,g]=o.useState(!1);o.useEffect(()=>{const M=p.current;if(!M)return;const P=()=>g(M.scrollWidth>M.clientWidth+1);if(P(),typeof ResizeObserver>"u")return;const T=new ResizeObserver(P);return T.observe(M),()=>T.disconnect()},[C]);const k=e.map(M=>`${M.id}\0${M.section??""}\0${M.group??""}`).join(""),x=C&&C.shape===k?C.pages:null,[A,y]=o.useState(0);o.useEffect(()=>{const M=v.current;if(!M||typeof ResizeObserver>"u")return;const P=new ResizeObserver(()=>y(M.offsetHeight));return P.observe(M),()=>P.disconnect()},[]);const[w,B]=o.useState(0);o.useEffect(()=>{const M=h.current;if(!M||typeof ResizeObserver>"u")return;let P=null;const T=typeof requestAnimationFrame=="function"?O=>requestAnimationFrame(O):O=>setTimeout(O,16),K=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:O=>clearTimeout(O),V=new ResizeObserver(()=>{P==null&&(P=T(()=>{P=null,B(O=>O+1)}))});return Array.from(M.children).forEach(O=>V.observe(O)),()=>{V.disconnect(),P!=null&&K(P)}},[k]),o.useLayoutEffect(()=>{const M=h.current,P=v.current;if(!M||!P)return;const T=S=>S.getBoundingClientRect().height||S.offsetHeight,K=new Map;b.current?.querySelectorAll("[data-chrome-section]").forEach(S=>{K.set(S.dataset.chromeSection??"",T(S))});const V=S=>T(P)-(K.get(S??"")??0),O=Array.from(M.children).map(S=>T(S)),Q=[];e.forEach((S,R)=>{const L=Q[Q.length-1],Z=L?e[L[0]]:void 0;Z&&S.group!=null&&Z.group===S.group&&Z.section===S.section?L.push(R):Q.push([R])});const I=[];let q=[],z=0;const U=()=>{q.length&&I.push(q),q=[],z=0};Q.forEach(S=>{const R=S.reduce((Z,ue)=>Z+O[ue],0),L=V(e[S[0]].section);q.length&&e[q[0]].section!==e[S[0]].section&&U(),R>L?S.forEach(Z=>{q.length&&z+O[Z]>L+.01&&U(),q.push(Z),z+=O[Z]}):(q.length&&z+R>L+.01&&U(),S.forEach(Z=>q.push(Z)),z+=R)}),U(),f(S=>S&&S.shape===k&&JSON.stringify(S.pages)===JSON.stringify(I)?S:{shape:k,pages:I})},[k,A,l,i,u,w]);const E=Mo,D=E,N=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:D,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),F=(M,P,T)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:T!=null&&t?.[T]||null}),a]}),footer:n.jsxs("div",{className:"report-doc__footer caption-1",children:[n.jsx("span",{className:"report-doc__footer-left",children:N}),n.jsx("span",{className:"report-doc__page-no",children:s(M,P)})]})}),$=Array.from(new Set(e.map(M=>M.section??""))),Y={...l?{"--report-page-w":l}:null,...i?{"--report-page-h":i}:null,...u?{"--report-margin":u}:null,...d};return n.jsxs("div",{ref:p,className:Be("report-doc",c),style:Y,tabIndex:_?0:void 0,role:_?"group":void 0,"aria-label":_?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[n.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[n.jsx("div",{ref:v,className:"report-doc__ruler"}),n.jsx("div",{ref:b,children:$.map(M=>{const P=F(1,1,M||void 0);return n.jsxs("div",{"data-chrome-section":M,children:[P.header,P.footer]},M)})}),n.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(M=>n.jsx("div",{children:M.content},M.id))})]}),x&&n.jsx("div",{className:"report-doc__pages",children:x.map((M,P)=>{const{header:T,footer:K}=F(P+1,x.length,e[M[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[T,M.map(V=>n.jsx("div",{children:e[V].content},e[V].id)),K]},P)})})]})}function ew({title:e,fields:t,columns:a=4,className:r,style:s}){return n.jsxs("div",{className:Be("report-info",r),style:{"--report-info-cols":String(a),...s},children:[e&&n.jsx("p",{className:"report-info__title h5b",children:e}),n.jsx("div",{className:"report-info__grid",children:t.map((l,i)=>n.jsxs("div",{className:"report-info__field body-2",children:[n.jsx("span",{className:"report-info__label body-3",children:l.label}),n.jsx("span",{className:"report-info__value",children:l.value})]},i))})]})}const aa=new Map;let Lr=null;const tw=12;function nw(e){for(let t=e.parentElement;t&&t!==document.body;t=t.parentElement){const a=window.getComputedStyle(t);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return t}return document}function $r(){const e=new Map;for(const t of aa.keys()){if(!t.isConnected)continue;const a=nw(t),r=e.get(a)??[];r.push(t),e.set(a,r)}for(const t of e.values()){t.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of t){a>0?r.style.setProperty("--update-alert-stack-offset",`${a}px`):r.style.removeProperty("--update-alert-stack-offset");const s=r.getBoundingClientRect().height;s>0&&(a+=s+tw)}}}function aw(e){return typeof window>"u"?()=>{}:(aa.set(e,(aa.get(e)??0)+1),aa.get(e)===1&&typeof ResizeObserver<"u"&&(Lr??(Lr=new ResizeObserver(()=>$r())),Lr.observe(e)),$r(),()=>{const t=(aa.get(e)??1)-1;if(t>0){aa.set(e,t),$r();return}aa.delete(e),Lr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),$r()})}function rw({title:e,message:t,actionLabel:a,onAction:r,icon:s,onClose:l,className:i=""}){const{t:u}=_e.useTranslation(),c=a??u("common.update","\uC5C5\uB370\uC774\uD2B8"),d=o.useRef(null),m=o.useRef(!1);return o.useLayoutEffect(()=>{const p=d.current,h=p?.parentElement?.closest(".update-alert-stack")??p,b=h?aw(h):null;return()=>{b?.(),m.current&&p&&p.contains(document.activeElement)&&sr(p)}},[]),n.jsxs("div",{ref:d,className:Be("update-alert",i),role:"alert",children:[l&&n.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{m.current=!0,l()},"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"}),n.jsxs("div",{className:"update-alert__top",children:[n.jsx("div",{className:"update-alert__icon",children:s??n.jsx(Ws,{size:20,strokeWidth:2})}),n.jsxs("div",{className:"update-alert__body",children:[n.jsx("div",{className:"update-alert__title h4",children:e}),n.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&n.jsx(fe,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:c})]})}function ow({title:e,titleLevel:t=3,description:a,topActions:r,children:s,footerLeft:l,footerRight:i,ariaLabel:u,onClick:c,draggable:d,onDragStart:m,onDragEnd:p,className:h}){const b=t?`h${t}`:"div",v=l!=null||i!=null,C=s!=null&&s!==!1,f=o.useCallback(_=>{c&&_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),c())},[c]);return n.jsxs("div",{className:Be("training-card",c?"training-card--clickable":"",h),onClick:c,onKeyDown:c?f:void 0,role:c?"button":void 0,"aria-label":c?u??(typeof e=="string"?e:void 0):void 0,tabIndex:c?0:void 0,draggable:d,onDragStart:m,onDragEnd:p,children:[n.jsxs("div",{className:"training-card__header",children:[n.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?n.jsx(b,{className:"training-card__title h4",children:e}):e,r!=null&&n.jsx("div",{className:"training-card__top-actions",onClick:_=>_.stopPropagation(),children:r})]}),a!=null?typeof a=="string"?n.jsx("p",{className:"training-card__description body-3",children:a}):a:n.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),C&&n.jsx("div",{className:"training-card__body",children:s}),v&&n.jsxs("div",{className:"training-card__footer",children:[l!=null&&n.jsx("div",{className:"training-card__footer-left",children:l}),i!=null&&n.jsx("div",{className:"training-card__meta",children:i})]})]})}function sw({title:e,titleLevel:t=3,count:a,collapsed:r=!1,onToggle:s,beforeSort:l,sort:i,actions:u,empty:c=!1,emptyContent:d,dragOver:m=!1,onDragOver:p,onDragLeave:h,onDrop:b,children:v,className:C}){const{t:f}=_e.useTranslation(),_=o.useId(),g=t?`h${t}`:"span",k=s!=null,x=Be("training-card-group",m&&"training-card-group--dragover",r&&"training-card-group--collapsed",k&&"training-card-group--collapsible",C);return n.jsxs("div",{className:x,onDragOver:p,onDragLeave:h,onDrop:b,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?_:void 0,children:[n.jsxs("header",{className:"training-card-group__header",children:[k&&n.jsx(fe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:typeof e=="string"&&e?r?f("common.expandFor",{name:e}):f("common.collapseFor",{name:e}):r?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:s}),typeof e=="string"?n.jsx(g,{id:_,className:"training-card-group__title h5b",children:e}):e,a!==void 0&&n.jsx("span",{className:"training-card-group__count body-3b",children:a}),(l!=null||i||u!=null)&&n.jsxs("span",{className:"training-card-group__actions",onClick:A=>A.stopPropagation(),children:[l,i&&n.jsx(fn,{size:40,options:i.options,value:i.value,placeholder:i.placeholder,onChange:i.onChange,ariaLabel:typeof e=="string"&&e?f("common.sortFor",{name:e}):void 0}),u]})]}),!r&&(c?n.jsx("div",{className:"training-card-group__empty body-3",children:d}):n.jsx("div",{className:"training-card-group__grid",children:v}))]})}const lw="speechear:saved_word_tables";function iw(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function uw(){try{const e=localStorage.getItem(lw);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(iw):[]}catch{return[]}}function Cd(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 js(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function cw(e){const t=new Set;return e.map(a=>{let r=a.id;for(let s=2;t.has(r);s++)r=`${a.id}~${s}`;return t.add(r),r===a.id?a:{...a,id:r}})}function dw({title:e,titleIcon:t,disc:a,filterTitle:r,filterCollapsible:s,filterDefaultCollapsed:l,filterCollapsed:i,onFilterCollapsedChange:u,filterHeaderSummary:c,brand:d,code:m,items:p,onSaveComplete:h,onLoad:b,onRemoveItem:v,onReset:C,resetLabel:f,saveButtonLabel:_,secondarySaveButtonLabel:g,onReorder:k,showCellCount:x,onAddItem:A,className:y,renderSavePopup:w,renderWordSearch:B,hideControls:E,saveOnly:D,tableName:N,nameValue:F,onNameChange:$,descriptionValue:Y,onDescriptionChange:M,namePlaceholder:P,descriptionPlaceholder:T,existingNames:K,editingName:V,onCancel:O,initialItemsPerPage:Q,renderCellAction:I,actionsLeftExtra:q}){const{t:z}=_e.useTranslation(),U=f??z("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),S=p===void 0,R=!!$,[L,Z]=o.useState([]),ue=(F??"").trim(),oe=ue||(P??"").trim(),le=(Y??"").trim()||(T??"").trim(),re=(K??[]).map(ee=>ee.trim().toLowerCase()),W=[V?.trim().toLowerCase(),...L].filter(ee=>!!ee),te=[...re];for(const ee of W){const xe=te.indexOf(ee);xe!==-1&&te.splice(xe,1)}const H=ue!==""&&te.includes(ue.toLowerCase()),[G,pe]=o.useState(Array(4).fill(null)),[Ne,ye]=o.useState(4),[me,se]=o.useState(null),ge=G.slice(0,Ne),Ce=!!d?.show,[de,Le]=o.useState(!0),[ze,Te]=o.useState(!0),Ge=d&&{...d,top:de,bottom:ze},[Ie,ct]=o.useState("landscape"),[at,rt]=o.useState(["image","word","standardPron"]),[lt,Ee]=o.useState("show"),[Ye,ke]=o.useState(!0),[He,Je]=o.useState(!0),dt=o.useRef(null),kt=o.useRef([]),[At,Pt]=o.useState(Q==="all"?Number.POSITIVE_INFINITY:Q??8),[et,st]=o.useState("right"),[Dt,vt]=o.useState(!1),[we,Re]=o.useState(!1),{toastMessage:Se,toastType:Ve,showWarning:qe,clearToast:Bt}=Wi("warning"),mt=o.useCallback(()=>se(null),[se]);A&&!S&&!x&&Mt("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[ut,St]=o.useState(()=>Math.max(p?.length??1,1)),Ue=S?Ne:x?Math.max(ut,p?.length??1,1):Math.max(p?.length??0,1),{width:ht,height:jt}=Jn[Ie],Me=!S&&!x,Ke=p?.length??0,yt=Math.min(At,Math.max(Ke,1)),Qe=Me?yt:Ue,xt=Me?Qu(p??[],Qe):null,ae=!!xt&&xt.length>1,ve=S?ge.some(ee=>ee!==null&&ee.length>1):(p??[]).some(ee=>(ee.words??[]).length>1),Oe=N?.trim()||`${ql(La())} ${ve?z("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):z("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,tt=o.useCallback(()=>ae?kt.current.filter(ee=>ee!==null):dt.current?[dt.current]:[],[ae]),{print:gt,openNewWindow:it,downloadHtml:It}=us({getElements:tt,paperW:ht,paperH:jt,fileName:Oe,onPopupBlocked:()=>{qe(z("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."))}}),Gt=ee=>{ye(ee),pe(xe=>xe.length>=ee?xe:[...xe,...Array(ee-xe.length).fill(null)]),se(null)},An=ee=>{pe(xe=>{const $e=[...xe];return $e[ee]=null,$e}),me===ee&&se(null)},Wt=ee=>{if(me===null)return;const xe=me;pe(We=>{const ot=[...We];return ot[xe]=ee.length>0?ee:null,ot});const $e=ge.findIndex((We,ot)=>ot>xe&&We===null);se($e!==-1?$e:null)},Kt=S?ge.some(ee=>ee?.some(xe=>!!xe.colloquialPronunciation)):(p??[]).some(ee=>(ee.words??[]).some(xe=>!!xe.colloquialLabel)),Nt=o.useMemo(()=>la()?S?G.slice(0,Ne).flatMap(ee=>(ee??[]).map(xe=>[xe.word,xe.homonum])):(p??[]).flatMap(ee=>(ee.words??[]).map(xe=>[xe.label,xe.homonum])):[],[S,G,Ne,p]),[Ct,ft]=o.useState(!1);o.useEffect(()=>{if(Nt.length===0)return;let ee=!1;return Promise.all(Nt.map(([xe,$e])=>Dl(xe,$e))).then(xe=>{ee||ft(xe.some(Boolean))},()=>{}),()=>{ee=!0}},[Nt]);const _t=Nt.length>0&&Ct,Yt=o.useMemo(()=>[...S||x?[{label:z("wordTable.filter.columns","\uCE78 \uC218"),items:E4.map(ee=>({value:`${ee}\uCE78`,displayLabel:z("wordTable.filter.column",{count:ee})})),display:"segmented"}]:[],...Me&&(p?.length??0)>0?[gc(z,{hasPairs:ve,itemCount:Ke})]:[],...ae?[D4(z)]:[]],[z,S,x,Me,p?.length,ve,Ke,ae]),gn={...S||x?{[z("wordTable.filter.columns","\uCE78 \uC218")]:`${Ue}\uCE78`}:{},...Me&&(p?.length??0)>0?{[z(ve?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${yt}\uAC1C`}:{},...ae?{[z("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:et}:{}},Nn=(ee,xe)=>{xe===z("wordTable.filter.columns","\uCE78 \uC218")?S?Gt(parseInt(ee)):St(parseInt(ee)):xe===z(ve?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Pt(bc(parseInt(ee),Ke)):xe===z("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&st(yc(ee))},tn=S?cw(ge.filter(ee=>ee!==null&&ee.length>0).map(ee=>({id:js(ee),words:ee.map(Cd)}))):p??[],Zt=()=>{S&&pe(ee=>ee.length>Ne?ee.slice(0,Ne):ee)},Ht=(ee=!1)=>{if(Re(ee),R&&h){const xe=oe.trim().toLowerCase();xe&&Z($e=>$e.includes(xe)?$e:[...$e,xe]),h(oe,tn,le||void 0,ee),Zt();return}if(D&&h){h("",tn,void 0,ee),Zt();return}if(h){vt(!0);return}It()},[bn,Xt]=o.useState(!1),[un,Ot]=o.useState(""),nn=un.trim(),ie=nn!==""&&re.includes(nn.toLowerCase()),Ae=()=>{Ot(oe?z("wordTable.save.copyName",{name:oe,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),Xt(!0)},je=()=>{!nn||ie||!h||(h(nn,tn,le||void 0,!0),Zt(),Xt(!1))},Ze=tn.length===0,Fe=Ze||R&&(oe===""||H),X=()=>{if(Ze){qe(z("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(R&&oe===""){qe(z("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}R&&H&&qe(z("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},ce=n.jsx(ba,{items:tn,orientation:Ie,contentTypes:at,cutLine:lt,showOutline:Ye,showDivLine:He,count:Ue});return n.jsxs(n.Fragment,{children:[n.jsxs(ga,{type:"page",icon:t,title:e,disc:a,className:Be("word-table-block",y),children:[bn&&n.jsx(Wn,{size:"small",title:g??z("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Xt(!1),footer:({closeWithAnimation:ee})=>n.jsxs(n.Fragment,{children:[n.jsx(fe,{htmlType:"button",size:48,type:"bar",label:z("common.cancel","\uCDE8\uC18C"),onClick:ee}),n.jsx(fe,{htmlType:"button",size:48,type:"bar",variant:"main",label:z("common.save","\uC800\uC7A5"),disabled:!nn||ie,onClick:je})]}),children:n.jsx(Xn,{label:z("wordTable.save.nameLabel","\uC774\uB984"),value:un,onChange:Ot,placeholder:z("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:je,error:ie?z("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Dt&&h&&w?.({defaultName:typeof e=="string"?e:z("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:ce,previewW:ht,previewH:jt,items:tn,existingNames:uw().map(ee=>ee.name),saveAsNew:we,onSave:(ee,xe)=>{h(ee,tn,xe,we),Zt(),vt(!1)},onCancel:()=>vt(!1)}),(S||A)&&me!==null&&B?.({cellIndex:me,onConfirm:S?Wt:ee=>{if(A){const xe=ee[0];if(xe){const $e=new Set((p??[]).map(ot=>ot.id));let We=js([xe]);for(let ot=2;$e.has(We);ot++)We=`${js([xe])}~${ot}`;A({id:We,words:[Cd(xe)]})}}se(null)},onClose:mt}),!E&&n.jsx(os,{title:r,collapsible:s,defaultCollapsed:l,collapsed:i,onCollapsedChange:u,headerSummary:c,hasImage:_t,hasColloquial:Kt,contentTypes:at,orientation:Ie,showOutline:Ye,cutLine:lt,showDivLine:He,setters:{setContentTypes:rt,setOrientation:ct,setShowOutline:ke,setCutLine:Ee,setShowDivLine:Je,setShowTopInfo:Le,setShowBottomInfo:Te},showCutLine:(Me?Qe:Ue)>1,showDivLine2:ve,middleSections:Yt,extraSelected:gn,onExtraSelect:Nn,showPaperBands:Ce,showTopInfo:de,showBottomInfo:ze}),ae&&xt?n.jsx("div",{className:"word-table-block__pages",children:xt.map((ee,xe)=>n.jsx(ba,{orientation:Ie,contentTypes:at,cutLine:lt,showOutline:Ye,showDivLine:He,count:Qe,items:ee,onRemoveItem:v,onReorder:k&&(($e,We)=>k($e+xe*Qe,We+xe*Qe)),renderCellAction:I&&(($e,We)=>I($e+xe*Qe,We)),brand:Ge,code:m,contentRef:$e=>{kt.current[xe]=$e},pageNumber:{current:xe+1,total:xt.length},pageNumberPosition:et},xe))}):n.jsx(ba,{orientation:Ie,contentTypes:at,cutLine:lt,showOutline:Ye,showDivLine:He,count:Ue,items:S?void 0:p??[],editCells:S?ge:void 0,activeCell:me,onActivateCell:S||A?se:void 0,onRemoveCell:S?An:void 0,onRemoveItem:S?void 0:v,onReorder:S?void 0:k,renderCellAction:S?void 0:I,brand:Ge,code:m,showFillerAdd:!!A,contentRef:dt}),!E&&!D&&q!=null&&n.jsx("div",{className:"word-table-block__table-actions",children:q}),R&&!E&&n.jsxs(Nr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx($n,{variant:"custom",label:z("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(Xn,{required:!0,value:F??"",onChange:$,placeholder:P?P+z("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):z("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:z("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:H?z("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ee=>{(ee.key==="Tab"&&!ee.shiftKey||ee.key===" ")&&!(F??"").trim()&&(P??"").trim()&&(ee.preventDefault(),$?.(P??""))}})}),n.jsx($n,{variant:"custom",label:z("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(Xn,{value:Y??"",onChange:M,placeholder:T?T+z("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):z("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:z("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ee=>{(ee.key==="Tab"&&!ee.shiftKey||ee.key===" ")&&!(Y??"").trim()&&(T??"").trim()&&(ee.preventDefault(),M?.(T??""))}})})]})]}),!E&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!D&&b&&n.jsx(fe,{htmlType:"button",size:40,type:"bar",label:z("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:b}),!D&&C&&n.jsx(fe,{htmlType:"button",size:40,type:"bar",label:U,onClick:C}),!D&&n.jsx(fe,{htmlType:"button",size:40,type:"bar",label:z("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:it})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[O&&n.jsx(fe,{htmlType:"button",size:"56",type:"bar",label:z("common.cancel","\uCDE8\uC18C"),onClick:O}),!D&&n.jsx(fe,{htmlType:"button",size:"56",type:"bar",label:z("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:gt}),g&&n.jsx(fe,{htmlType:"button",size:"56",type:"bar",label:g,onClick:()=>R?Ae():Ht(!0),disabled:Ze,onDisabledClick:()=>{qe(z("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),n.jsx(fe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:_??z("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Ht(!1),disabled:Fe,onDisabledClick:X})]})]}),n.jsx(Ca,{message:Se,type:Ve,onClose:Bt})]})}const pw=8;function fd({items:e,className:t}){const{t:a}=_e.useTranslation(),r=e.length,s=r<=3?1:2,l=pw,i=r>l,u=e.slice(0,i?l-1:l),c=r-u.length,d=Math.ceil(Math.min(r,l)/s)||1,m=s*d;return n.jsx("div",{className:Be("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${s}, 1fr)`},children:Array.from({length:m},(p,h)=>{if(i&&h===l-1)return n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--more",children:n.jsx("span",{className:"word-table-thumb__more body-3",children:a("wordTable.thumbMore",{count:c,defaultValue:"+{{count}}"})})},h);const b=u[h];return b?n.jsx("div",{className:"word-table-thumb__cell",children:(b.words?.length?b.words:[{label:b.id}]).map((v,C)=>n.jsxs(o.Fragment,{children:[C>0&&n.jsx("span",{className:"word-table-thumb__divider"}),n.jsx("span",{className:"word-table-thumb__word body-3",children:v.label})]},C))},h):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},h)})})}function mw({items:e,name:t,description:a,createdAt:r,code:s,published:l,publishedLabel:i,shared:u,sharedLabel:c,isNew:d,publisherName:m,publishedAt:p,likeCount:h,downloadCount:b,onPublisherClick:v,selected:C,onClick:f,onMore:_,titleNode:g,className:k}){const{t:x}=_e.useTranslation(),A=g!=null,y=m!=null||p!=null||h!=null||b!=null,w=B=>{B.target===B.currentTarget&&!A&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),f?.())};return n.jsxs("div",{className:Be("word-table-button",C?"word-table-button--selected":"",y?"":"word-table-button--no-footer",k),role:"button",tabIndex:0,"aria-label":s?`${t} (${s})`:t,onClick:A?void 0:f,onKeyDown:w,children:[d&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":x("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(fd,{items:e,className:"word-table-button__thumb"}),n.jsxs("div",{className:"word-table-button__info",children:[n.jsxs("div",{className:"word-table-button__info-text",children:[g??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),_&&!A&&n.jsx(fe,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:x("common.moreFor",{name:t}),onClick:B=>{B.stopPropagation(),_(B)}})]}),(s||r||l||u)&&n.jsxs("div",{className:"word-table-button__meta-row",children:[n.jsx("span",{className:"word-table-button__meta-left",children:n.jsx("span",{className:"word-table-button__meta caption-1",children:r?Vl(r,x):""})}),n.jsxs("span",{className:"word-table-button__meta-right",children:[(l||u)&&n.jsxs("span",{className:"word-table-button__badges",children:[l&&n.jsx($t,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??x("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),u&&n.jsx($t,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??x("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),s&&n.jsx("span",{className:"word-table-button__code caption-1",children:s})]})]}),y&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[m&&(v?n.jsx("button",{className:"training-card__publisher body-4",type:"button","aria-label":x("wordTable.publisherFilter",{name:m,defaultValue:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30"}),onClick:B=>{B.stopPropagation(),v()},children:m}):n.jsx("span",{className:"training-card__publisher training-card__publisher--static body-4",children:m})),p&&n.jsx("span",{className:"training-card__date body-4",children:Vl(p,x)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&n.jsx($t,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h),"aria-label":x("common.likeCount",{count:h,defaultValue:`\uC88B\uC544\uC694 ${h}`})}),b!=null&&n.jsx($t,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(b),"aria-label":x("common.downloadCount",{count:b,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${b}`})})]})]})]})}/**
|
|
1040
|
+
`).map((i,u,c)=>n.jsxs(o.Fragment,{children:[i,u<c.length-1&&n.jsx("br",{})]},u))})}),n.jsxs("div",{className:"site-footer__links",children:[n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:l("footer.site.title","\uC0AC\uC774\uD2B8")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:l("footer.site.malgwi","\uB9D0\uADC0")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:l("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:l("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:l("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:l("footer.sns.title","SNS")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:l("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:l("footer.policy.title","\uC815\uCC45")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:i=>{e&&(i.preventDefault(),e())},children:l("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:i=>{t&&(i.preventDefault(),t())},children:l("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),n.jsx("hr",{className:"site-footer__rule"}),n.jsxs("div",{className:"site-footer__bottom",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("img",{src:Mo,alt:"IHAB",className:"site-footer__logo"})}),n.jsxs("div",{className:"site-footer__meta",children:[n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:l("footer.ceo","\uB300\uD45C")})," ",n.jsx("span",{className:"footer-meta caption-1",children:l("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:l("footer.address","\uC8FC\uC18C")})," ",n.jsx("span",{className:"footer-meta caption-1",children:l("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:l("footer.bizNo","\uC0AC\uC5C5\uC790\uB4F1\uB85D\uBC88\uD638")})," ",n.jsx("span",{className:"footer-meta caption-1",children:l("footer.bizNoValue","526-81-02926")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:l("footer.support","\uACE0\uAC1D\uC13C\uD130")})," ",n.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",s]})]})]})]}),n.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function dx({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:s,className:l,containerClassName:i,renderLink:u,menuLabel:c}){const{t:d}=xe.useTranslation(),m=c??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[p,h]=o.useState(!1),g=o.useId(),v=o.useRef(null);o.useEffect(()=>{if(!p)return;const _=Gn(()=>{const x=document.getElementById(g);x&&x.contains(document.activeElement)&&v.current?.focus(),h(!1)}),b=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,k=x=>{x.matches&&h(!1)};return b&&(b.matches&&h(!1),b.addEventListener?.("change",k)),()=>{_(),b?.removeEventListener?.("change",k)}},[p,g]);const C=i?`${i} landing-header__inner`:"landing-header__inner",f=(_,b)=>u?u(_,{onClick:b}):n.jsx("a",{href:_.href,onClick:b,"aria-current":_.current?"page":void 0,children:_.label});return n.jsxs("header",{className:l?`landing-header ${l}`:"landing-header",children:[n.jsxs("div",{className:C,children:[e!=null&&(()=>{const _=typeof e=="string"?n.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?n.jsx("a",{href:a,className:"landing-header__brand",children:_}):n.jsx("div",{className:"landing-header__brand",children:_})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((_,b)=>n.jsx("span",{children:f(_)},`${b}:${_.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&n.jsx("button",{ref:v,type:"button",onClick:()=>h(_=>!_),"aria-expanded":p,"aria-controls":g,"aria-label":p?m.close:m.open,className:p?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:n.jsxs("span",{className:"landing-header__burger",children:[n.jsx("span",{}),n.jsx("span",{}),n.jsx("span",{})]})})]})]}),r.length>0&&n.jsx("nav",{id:g,hidden:!p,className:"landing-header__drawer",children:n.jsx("div",{className:i??void 0,children:r.map((_,b)=>n.jsx("span",{className:"landing-header__drawer-item",children:f(_,()=>h(!1))},`${b}:${_.href}`))})})]})}function px({children:e,action:t,onClick:a,className:r}){const s=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return n.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:n.jsxs("div",{className:s,onClick:a,...Uu(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}function mx({mountedRef:e}){const t=o.useRef({phase:"sound",at:0}),a=o.useRef(0),r=o.useRef(null),s=o.useRef(null),l=o.useCallback(()=>{const C=t.current,f=C.phase!=="sound"&&C.at>0;s.current=f?{phase:C.phase,elapsed:Math.max(0,Date.now()-C.at)}:null},[]),i=o.useCallback(()=>{const C=s.current;return s.current=null,C},[]),u=o.useCallback(()=>{a.current+=1,t.current={phase:"sound",at:0}},[]),c=o.useCallback((C,f,_=0)=>{if(!(C>0))return Promise.resolve(!0);const b=a.current;return t.current={phase:f,at:Date.now()-Math.max(0,_)},new Promise(k=>{const x=setTimeout(()=>{r.current===x&&(r.current=null),k(!!e.current&&b===a.current)},C);r.current=x})},[e]),d=o.useCallback(()=>{t.current={phase:"sound",at:Date.now()}},[]),m=o.useCallback(()=>{t.current={phase:"sound",at:0}},[]),p=o.useCallback(()=>{const C=t.current;return C.phase!=="sound"&&C.at>0},[]),h=o.useCallback(()=>a.current,[]),g=o.useCallback(C=>C===a.current,[]),v=o.useCallback(()=>{a.current+=1},[]);return o.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null)},[]),o.useMemo(()=>({positionRef:t,isRunning:p,generation:h,isCurrent:g,abort:u,waitPad:c,enterSound:d,leave:m,pause:l,resume:i,__bumpGenerationForTest:v}),[p,h,g,u,c,d,m,l,i,v])}const va=9,hx=e=>Math.round(Math.min(va,Math.max(0,e))/va*100),Cx=e=>e/100*va,Xa=2,Ac=.1,fx=e=>Math.min(Xa,Math.max(0,e)),bx=.1,gx=e=>Math.round(e*1e6)/1e6;function Ja(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return fx(t);const a=Math.min(va,Math.max(0,Number(e.level)||0))/va,r=Number(e.mainVolume);return r>0?a>0?gx(Math.min(Xa,Math.max(bx,a/r))):0:1}const Nc=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Ec(e){return Nc(e)}function ps(e){return Nc(e)*Ja(e)}function ms(e,t=$C()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,ps(e)/a)}function Qn(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=Ja({level:a.level,mainVolume:a.mainVolume})),a}const ea={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},hs=o.createContext(null);function _r(){return o.useContext(hs)}const Cs=e=>`${LC()}/${e}`,Dc=e=>Array.from({length:10},(t,a)=>Cs(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),wr={get defaultNoise(){return Cs("noise1.mp3")},get street(){return Dc("noise2")},get restaurant(){return Dc("noise3")},get buzz(){return Cs("noise4.mp3")}};function yx(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return wr.defaultNoise;case"street":return wr.street[t];case"restaurant":return wr.restaurant[t];case"buzz":return wr.buzz;default:return null}}function vx({noisePlayer:e,audioRef:t,playbackStateRef:a,sequencer:r}){const s=o.useRef(e?.registerAnalyser);s.current=e?.registerAnalyser;const l=o.useRef(null),[i,u]=o.useState(null),c=o.useRef(null),d=o.useRef(null),m=o.useRef(null),p=o.useRef(null),h=o.useRef(0),g=o.useRef(null),v=o.useCallback(()=>!!r?.isRunning(),[r]),C=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),g.current!==null&&(clearTimeout(g.current),g.current=null)},[]),f=o.useCallback((N,y=250)=>{const w=l.current;if(!w)return;const B=d.current;if(B){d.current=null;try{w.pause()}catch{}w.src=B,w.load()}if(!w.src)return;h.current+=1,C();try{to(),er(w).then(F=>{if(l.current===w)try{s.current?.("noise",F)}catch{}})}catch{}const E=w.paused?0:tr(w);w.paused&&On(w,0),w.play().catch(()=>{});const D=performance.now(),A=()=>{const F=Math.min(1,(performance.now()-D)/y);try{On(w,E+(N-E)*F)}catch{}F<1?p.current=requestAnimationFrame(A):p.current=null};p.current=requestAnimationFrame(A)},[C]),_=o.useCallback((N=250,y)=>{const w=l.current;if(!w||w.paused){y?.();return}const B=++h.current;C();const E=performance.now(),D=tr(w),A=()=>{const F=Math.min(1,(performance.now()-E)/N);try{On(w,D*(1-F))}catch{}if(F<1)p.current=requestAnimationFrame(A);else{p.current=null,g.current!==null&&(clearTimeout(g.current),g.current=null);try{w.pause()}catch{}y?.()}};p.current=requestAnimationFrame(A),g.current=setTimeout(()=>{if(g.current=null,h.current===B){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{w.paused||(On(w,0),w.pause(),y?.())}catch{}}},N+150)},[C]);o.useEffect(()=>{const N=document.createElement("audio");return N.loop=!0,N.crossOrigin="anonymous",l.current=N,()=>{C();try{N.pause(),N.removeAttribute("src"),N.load()}catch{}l.current=null,c.current=null,d.current=null}},[C]);const b=e?ms(e.settings):0,k=!!e?.settings.enabled&&b>0;o.useEffect(()=>{if(!k)return;let N=0;const y=setInterval(()=>{const w=l.current;if(!w||w.paused){N=0;return}const B=t.current;if(B&&!B.paused&&!B.ended||v()||a.current==="playing"){N=0;return}N+=1,N>=2&&(N=0,_())},400);return()=>clearInterval(y)},[_,k,t,a,v]),o.useEffect(()=>{const N=()=>{const y=l.current;if(document.hidden){if(y&&!y.paused){C();try{y.pause()}catch{}}return}if(!y||!y.paused)return;const w=t.current,B=!!w&&!w.paused&&!w.ended||v()||a.current==="playing",E=m.current;B&&E?.enabled&&E.volume>0&&f(E.volume)};return document.addEventListener("visibilitychange",N),()=>document.removeEventListener("visibilitychange",N)},[C,f,t,a,v]),o.useEffect(()=>{m.current=e?{enabled:e.settings.enabled,volume:b,type:e.settings.type}:null},[e,e?.settings.enabled,b,e?.settings.type]);const x=o.useRef(null);return o.useEffect(()=>()=>{x.current?.(),x.current=null},[]),o.useEffect(()=>{const N=e?.settings,y=l.current;if(!y)return;const w=N?ms(N):0;if(!N||!N.enabled||w===0){_();return}if(c.current!==N.type){const B=yx(N.type);B&&(c.current=N.type,u(B),d.current=B,_(150,()=>{if(d.current!==B)return;d.current=null,y.src=B,y.load();const E=t.current;if(E&&!E.paused||v()){x.current?.();const D=()=>{y.removeEventListener("canplay",D),x.current===A&&(x.current=null);const F=t.current,$=m.current;(F&&!F.paused&&!F.ended||v())&&$?.enabled&&$.volume>0&&f($.volume)},A=()=>y.removeEventListener("canplay",D);x.current=A,y.addEventListener("canplay",D)}}))}else{const B=t.current,E=!!B&&!B.paused&&!B.ended||v()||a.current==="playing";if(E&&d.current)f(w);else if(E&&y.paused&&y.src)f(w);else if(!y.paused)if(!E)_();else{C();const D=tr(y),A=performance.now(),F=()=>{const $=Math.min(1,(performance.now()-A)/150);try{On(y,D+(w-D)*$)}catch{}$<1?p.current=requestAnimationFrame(F):p.current=null};p.current=requestAnimationFrame(F)}}},[e?.settings,e?.settings.enabled,b,e?.settings.type,C,f,_,t,a,m,v]),o.useEffect(()=>{const N=l.current;if(N)try{N.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:l,activeNoiseUrl:i,noiseSettingsRef:m,cancelNoiseFade:C,fadeInNoise:f,fadeOutNoise:_}}function xx({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:l,setPlaybackState:i,setStateLocal:u,fadeInNoise:c,fadeOutNoise:d,noiseSettingsRef:m,onDoneRef:p,handleEndRef:h}){const g=o.useRef(null),v=o.useRef(0),C=o.useRef(null),f=o.useRef(0),_=o.useRef(!1);o.useEffect(()=>()=>{f.current++;try{if(C.current&&(cancelAnimationFrame(C.current),C.current=null),_.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}_.current=!1}}catch{}},[]);const b=(N,y=1)=>{try{const w=(N||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(N||"").length);return Math.max(700,Math.round(w*300/Math.max(.25,y)))}catch{return 1200}},k=o.useCallback(N=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!1)}catch{}return}const y=window.speechSynthesis,w=++f.current;try{try{y.cancel()}catch{}const B=N??e,E=Array.isArray(B)?B.filter(L=>!!L):[B||""];E.length===0&&E.push("");const D=Math.max(.3,Math.min(3,t));v.current=E.reduce((L,P)=>L+b(P,D||1),0),g.current=performance.now(),l(0),i("playing"),u("playMode");const A=m.current;A?.enabled&&(A?.volume??0)>0&&c(A.volume);const F=()=>{try{const L=g.current||performance.now(),P=performance.now()-L,M=v.current||1200,G=Math.min(1,P/M);try{r.current&&(r.current.style.left=`${G*100}%`),s.current&&s.current.style.setProperty("--progress",String(G))}catch{}G<1&&(C.current=requestAnimationFrame(F))}catch{}},$=()=>{if(w===f.current)try{C.current&&(cancelAnimationFrame(C.current),C.current=null),l(1),i("stopped");try{h.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},K=L=>{const P=new SpeechSynthesisUtterance(E[L]);try{P.rate=D}catch{}try{P.volume=Math.max(0,Math.min(1,a))}catch{}P.onend=()=>{if(w===f.current){if(L<E.length-1){try{K(L+1)}catch{$()}return}$()}},P.onerror=()=>{$()},P.onstart=()=>{if(!(L>0))try{C.current&&(cancelAnimationFrame(C.current),C.current=null),C.current=requestAnimationFrame(F)}catch{}},_.current=!0,y.speak(P)};try{K(0)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,t,a,c,r,s,l,i,u,m,p,h]),x=o.useCallback(()=>{f.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}C.current&&(cancelAnimationFrame(C.current),C.current=null),d(),g.current=null}catch{}i("stopped"),u("active"),l(0)},[d,i,u,l]);return{startTTS:k,stopTTS:x}}const _x=.01,wx=.3;async function Bx(e,t,a,r=!1){let s=null;try{const l=window.AudioContext||window.webkitAudioContext;s=new l;const i=await s.decodeAudioData(e.slice(0)),u=i.numberOfChannels>0?i.getChannelData(0):null;if(!u)return null;let c=0;if(r){const g=Math.floor(wx*i.sampleRate),v=Math.min(u.length,g);for(;c<v&&Math.abs(u[c])<=_x;)c++;c>=v&&(c=0)}const d=u.length-c,m=a&&a>0?Math.min(d,Math.floor(a*i.sampleRate)):d,p=Math.max(t,m),h=Math.floor(p/t)||1;return new Array(t).fill(0).map((g,v)=>{const C=c+v*h,f=Math.min(C+h,c+p,u.length);let _=0;for(let b=C;b<f;b++){const k=Math.abs(u[b]);k>_&&(_=k)}return _})}catch{return null}finally{try{s?.close?.()}catch{}}}async function Sc(e,t,a,r=!1){try{const s=await fetch(e);if(s.ok===!1)return null;const l=await s.arrayBuffer();return await Bx(l,t,a,r)}catch(s){try{const l=Pl(s)}catch{}return null}}const fs=45,kx=74,Ax=2;function Br(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function kr(e){return Br(e)/45}const Nx=e=>Math.max(0,(typeof e=="number"&&Number.isFinite(e)?e:0)*1e3),jc=e=>Math.max(0,typeof e=="number"&&Number.isFinite(e)?e:0);function Tc({durationsSec:e,leadInMs:t=0,tailMs:a=0}){const r=jc(t),s=jc(a),l=[];let i=0;return e.forEach((u,c)=>{for(const[d,m]of[["lead",r],["sound",Nx(u)],["tail",s]])l.push({kind:d,track:c,startMs:i,durMs:m}),i+=m}),{segments:l,totalMs:i,trackCount:e.length}}function Mc(e,t){const a=(t|0)*3;if(t<0||a+2>=e.segments.length)return null;const[r,s,l]=[e.segments[a],e.segments[a+1],e.segments[a+2]];return{lead:r,sound:s,tail:l,totalMs:r.durMs+s.durMs+l.durMs}}function Ex(e,t){const a=Mc(e,t.track);if(!a||!(a.totalMs>0))return 0;const r=a[t.kind],s=Math.min(Math.max(0,Number.isFinite(t.elapsedMs)?t.elapsedMs:0),r.durMs);return Math.max(0,Math.min(1,(r.startMs-a.lead.startMs+s)/a.totalMs))}function Dx(e,t,a){const r=Math.max(0,Math.floor(a)),s=Mc(e,t);if(!s||r===0||!(s.totalMs>0)||s.lead.durMs===0&&s.tail.durMs===0||!(s.sound.durMs>0))return{lead:0,sound:r,tail:0};const l=Math.round(s.lead.durMs/s.totalMs*r),i=Math.round(s.tail.durMs/s.totalMs*r),u=Math.max(1,r-l-i),c=l+u+i-r;return{lead:Math.max(0,l-Math.ceil(c/2)),sound:u,tail:Math.max(0,i-Math.floor(c/2))}}function Sx({currentTime:e,sources:t,index:a,audioDuration:r}){const s=a||0,l=Array.isArray(t)&&t.length>0?t[s]:void 0,i=l?l.duration||r||0:r||0;if(!(i>0))return 0;const u=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,u/i))}function jx({phase:e,phaseElapsedMs:t,currentTime:a,trackDurationSec:r,leadInMs:s,tailMs:l}){const i=Tc({durationsSec:[r],leadInMs:s,tailMs:l});return Ex(i,{track:0,kind:e,elapsedMs:e==="sound"?(Number.isFinite(a)?a:0)*1e3:t})}function Tx({bars:e,trackDurationSec:t,leadInMs:a,tailMs:r}){return Dx(Tc({durationsSec:[t],leadInMs:a,tailMs:r}),0,e)}function Mx(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function Lx({ended:e,completedByEnd:t}){return!!e||!!t}function $x(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function Rx(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function Px(e,t,a){const r=Array.isArray(e)?e:e?[e]:[],s=[];for(const l of r)if(l){if(typeof l=="object"&&l!==null&&"src"in l&&l.src){const i=l;s.push({code:i.code??null,src:i.src});continue}if(typeof l=="string"&&(l.startsWith("http")||l.includes("/"))){s.push({code:null,src:l});continue}if(typeof l=="string"||typeof l=="number"){const i=String(l),u=a(i,t);u&&s.push({code:i,resolvedPath:u})}}return s}function Ix(e,t){if(!t||e.readyState<1)return!0;const a=e.currentSrc||e.src;return a?Lc(a)!==Lc(t):!0}function Lc(e){try{return new URL(e,typeof location>"u"?"http://localhost/":location.href).href}catch{return e}}const $c=4,Fx=kr($c/fs);function Ox(e){const{src:t,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:l,noiseRatio:i=0,noiseSpeed:u=1,totalDuration:c=0,mainVolume:d=1,onReadyChange:m,showSoundWaveForm:p=!0,leadInMs:h=0,tailMs:g=0,trackDurationSec:v=0}=e,C=o.useRef(null),f=o.useRef(null),[_,b]=o.useState(null),[k,x]=o.useState(!1),[N,y]=o.useState(null),[w,B]=o.useState(2),[E,D]=o.useState(0),[A,F]=o.useState(null),[$,K]=o.useState(!1),[L,P]=o.useState(!1),M=3,G=3,H=1,O=300,Q=o.useRef(0),I=o.useCallback(()=>{const ye=C.current,pe=f&&f.current?f.current:ye?ye.closest(".audio-player__wave"):null,ie=pe?pe.getBoundingClientRect():ye?ye.getBoundingClientRect():null,ge=ie?ie.width:0,he=ie?Math.max(100,ie.width):320,se=ie?ie.height:0,Le=Math.max(H,Math.min(O,Math.floor((he+G)/(M+G)))),Oe=Le*M,Me=Math.max(0,Le-1),qe=Math.max(0,Me>0?(he-Oe)/Me:G);return{bars:Le,gap:qe,height:se,width:ge}},[]),q=o.useRef(void 0),Z=o.useRef(null),V=o.useCallback(async(ye,pe,{quiet:ie=!1}={})=>{const ge=++Q.current,he=()=>Q.current===ge;try{if(ie||x(!1),q.current=ye,!ye){he()&&b(null);return}let se=pe;if(!se)try{for(let Me=0;Me<4&&!(C.current||f.current);Me++)await new Promise(qe=>requestAnimationFrame(qe));await new Promise(Me=>requestAnimationFrame(Me));const Oe=I();Oe.height>0&&D(Oe.height),se=Oe.bars,B(Oe.gap)}catch{se=120}Z.current=se;const Le=await Sc(ye,se);if(!he())return;if(!Le){b(null),x(!1);return}b(Le),y(se),x(!0)}catch{if(!he())return;b(null),x(!1)}},[x,b,D,B,y,I]);o.useEffect(()=>{const ye=f.current;if(!ye||typeof ResizeObserver>"u")return;let pe=null;const ie=new ResizeObserver(()=>{pe!==null&&cancelAnimationFrame(pe),pe=requestAnimationFrame(()=>{pe=null;try{const ge=I();if(ge.width<=0||(ge.height>0&&D(ge.height),Z.current===null||ge.bars===Z.current))return;const he=q.current;B(ge.gap),he?V(he,ge.bars,{quiet:!0}).catch(()=>{}):Z.current=ge.bars}catch{}})});return ie.observe(ye),()=>{ie.disconnect(),pe!==null&&cancelAnimationFrame(pe)}},[I,V]),o.useEffect(()=>{const ye=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;V(typeof ye=="string"?ye:void 0).catch(()=>{}),P(!1)},[t,a,V]),o.useEffect(()=>{let ye=!1;if(K(!1),F(null),!l||!N)return;const pe=c>0?c*(u||1):void 0;return Sc(l,N,pe,!0).then(ie=>{ye||(F(ie),ie||K(!0))}).catch(()=>{ye||(F(null),K(!0))}),()=>{ye=!0}},[l,N,c,u]);const S=Math.max(0,Math.min(1,d)),R=o.useMemo(()=>_&&_.length&&Math.max(..._)||1,[_]),T=N||40,Y=o.useMemo(()=>Tx({bars:T,trackDurationSec:v,leadInMs:h,tailMs:g}),[T,v,h,g]),ce=o.useMemo(()=>Array.from({length:T}).map((ye,pe)=>{const ie=pe>=Y.lead&&pe<Y.lead+Y.sound,ge=Y.sound>0&&ie?Math.min(T-1,Math.round((pe-Y.lead)/Y.sound*T)):-1,he=ie?_&&_[ge]!=null?_[ge]:null:_?0:null,se=he==null?null:Math.min(1,he/R*S),Le=se!=null&&E>0&&Br(se)<=$c,Oe=se==null?.15:Le?0:kr(se),Me=Le,qe=T>1?pe/(T-1):0;return n.jsx("div",{className:Me?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":Oe,"--i":pe,"--mix":qe}},pe)}),[T,_,R,S,E,Y]),re={"--progress":String(Math.max(0,Math.min(1,r)))},oe=o.useMemo(()=>A&&A.length&&Math.max(...A.map(ye=>Number.isFinite(ye)?Math.abs(ye):0))||1,[A]),ae=S*Math.max(0,i),z=!l||!A||!A.length?1:Math.max(1,ae),ee={"--bar-gap":`${w}px`,"--wave-h":`${Br(z)}px`,"--wave-h1":`${fs}px`},W=k&&(l?!!A||$:!0);o.useEffect(()=>{W&&P(!0)},[W]);const U=L?k:W;o.useEffect(()=>{m?.(U)},[U,m]);const de=N||40,De=o.useMemo(()=>Array.from({length:de}).map((ye,pe)=>{const ie=A&&A[pe]!=null?A[pe]:null,ge=ie==null?0:Math.abs(ie)/oe*ae,he=Math.max(Fx,kr(ge)),se=de>1?pe/(de-1):0;return n.jsx("div",{className:"audio-player__bar",style:{"--val":he,"--i":pe,"--mix":se}},pe)}),[de,A,oe,ae,E]);return n.jsxs("div",{className:"audio-player__wave",ref:f,style:ee,children:[l&&n.jsx("div",{className:`audio-player__wave-noise ${W?"is-ready":""}`,"aria-hidden":"true",children:De}),p&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${U?"is-ready":""}`,ref:C,children:ce}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${U?"is-ready":""}`,ref:s,style:re,children:ce})]})]})}const Rc={idle:!1,synthesizing:!0,resolving:!0,checking_exists:!0,getting_signed_url:!0,downloading:!0,measuring_duration:!0,ready:!1,error:!0};function bs(e,t){return new Promise((a,r)=>{const s=document.createElement("audio");let l=!1;const i=()=>{try{s.removeAttribute("src"),s.load()}catch{}},u=()=>{if(l)return;l=!0;const d=isFinite(s.duration)&&s.duration||0;i(),a(d)},c=d=>{l||(l=!0,i(),t.rejectOnError?r(new Error(d)):a(0))};s.addEventListener("loadedmetadata",u),s.addEventListener("error",()=>c("audio load failed")),setTimeout(()=>c("audio load timeout"),t.timeoutMs),s.src=e})}const zx=2e3;function Pc(e,t=zx){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.addEventListener("canplay",s,{once:!0}),e.addEventListener("error",s,{once:!0}),setTimeout(s,t)})}function Wx({showSoundWaveForm:e,showNoiseWaveForm:t,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),l=o.useCallback(c=>{if(r.current=c,!c||!s.current.length)return;const d=s.current;s.current=[];for(const m of d)m(!0)},[]),i=o.useCallback(()=>{r.current=!1},[]),u=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(c=>{const d=p=>{clearTimeout(m),s.current=s.current.filter(h=>h!==d),c(p)},m=setTimeout(()=>d(!0),a);s.current.push(d)}),[e,t,a]);return o.useEffect(()=>()=>{const c=s.current;s.current=[];for(const d of c)d(!1)},[]),{onReadyChange:l,waitForReady:u,markNotReady:i}}function Hx(){const e=o.useRef([]),t=o.useCallback(s=>(e.current.push(s),s),[]),a=o.useCallback(s=>{const l=new Set([...s].filter(Boolean));e.current=e.current.filter(i=>{if(l.has(i))return!0;try{URL.revokeObjectURL(i)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const s of e.current)try{URL.revokeObjectURL(s)}catch{}e.current=[]},[]),{track:t,keepOnly:a,revokeAll:r}}function Vx({offsetY:e=8}={}){const t=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),l=o.useCallback(()=>{try{const i=t.current?.getBoundingClientRect();if(!i)return;r({left:i.left,right:i.right,width:i.width,height:i.height,x:i.x,top:i.top+e,bottom:i.bottom+e,y:i.y+e,toJSON:i.toJSON.bind(i)})}catch{}},[e]);return o.useEffect(()=>{if(a)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[a,s]),{ref:t,rect:a,show:l,hide:s}}function qx(e){if(!e)return 0;const t=e.duration;if(Number.isFinite(t)&&t>0)return t;if(t===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}const Ux=400,Gx=2e3,Ic=5;function Kx({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:s,sequencer:l,leadInMs:i=0,tailMs:u=0}){const c=o.useRef(null),d=o.useRef(0),m=o.useRef(null),p=o.useCallback(()=>{c.current!==null&&(cancelAnimationFrame(c.current),c.current=null)},[]),h=o.useCallback(()=>{if(c.current!==null)return;let v=0;const C=()=>{if(Pn){const f=typeof performance<"u"&&performance.now?performance.now():Date.now();if(v>0&&f-v>Ux){const _=m.current===null||f-m.current>Gx;if(m.current=f,_&&d.current<Ic){d.current+=1;const b=d.current;let k=null;try{k=typeof document<"u"?document.visibilityState:null}catch{}Tt(`progress-ticker-slow-frames#${b}`,`[ihab-core] \uC9C4\uD589 \uC0AC\uC2AC\uC758 \uD2C0 \uC0AC\uC774\uAC00 ${Math.round(f-v)}ms \uC785\uB2C8\uB2E4(\uBCF4\uD1B5 16ms).`,k==="hidden"?"\uC774 \uCE78\uC774 **\uC228\uC5B4 \uC788\uC5B4** \uBE0C\uB77C\uC6B0\uC800\uAC00 \uD2C0\uC744 \uC904\uC600\uC2B5\uB2C8\uB2E4 \u2014 \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC740 \uD2C0\uB9C8\uB2E4 \uADF8\uB824\uC9C0\uBBC0\uB85C, \uC9C0\uAE08 \uC7AC\uB294 \uAC12\uC740 **\uC0AC\uB78C\uC774 \uBCF4\uB294 \uD654\uBA74\uACFC \uB2E4\uB985\uB2C8\uB2E4.** \uCE78\uC744 \uC55E\uC73C\uB85C \uAEBC\uB0B4\uACE0 \uB2E4\uC2DC \uC7AC\uC2ED\uC2DC\uC624.":"\uCE78\uC740 \uBCF4\uC774\uB294\uB370 \uD2C0\uC774 \uB290\uB9BD\uB2C8\uB2E4 \u2014 \uAC19\uC740 \uD654\uBA74\uC5D0\uC11C \uBB34\uAC70\uC6B4 \uC77C\uC774 \uB3C4\uB294\uC9C0 \uBCF4\uC2ED\uC2DC\uC624. \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC774 \uB04A\uACA8 \uBCF4\uC774\uB294 \uAC83\uC740 \uC774 \uD0D3\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.",b>=Ic?`(${b}\uBC88\uC9F8 \u2014 \uB354\uB294 \uC548 \uC54C\uB9BD\uB2C8\uB2E4)`:`(${b}\uBC88\uC9F8)`)}}v=f}try{const f=e.current,_=Array.isArray(r.current)?r.current[s.current||0]:void 0,b=!!_&&Number.isFinite(_.duration)&&(_.duration??0)>0,k=b?0:qx(f),x=t.current,N=(i||0)>0||(u||0)>0,y=N&&(l?.positionRef.current?.phase??"sound")!=="sound";if(k===null&&!y)try{x&&x.style.visibility!=="hidden"&&(x.style.visibility="hidden")}catch{}else{const w=b?_.duration:k||0;Pn&&y&&!(w>0)&&Tt("progress-ticker-pad-without-duration","[ihab-core] \uB738\uC774 \uB3C4\uB294\uB370 **\uC18C\uB9AC \uAE38\uC774\uB97C \uBAA8\uB985\uB2C8\uB2E4** \u2014 \uC7AC\uC0DD\uBC14\uAC00 \uB738\uB9CC\uC73C\uB85C \uC5B4\uB9BC\uC7A1\uC544 \uC6C0\uC9C1\uC785\uB2C8\uB2E4.","\uC18C\uB9AC \uAE38\uC774 \uC7AC\uAE30(measureAudioDuration)\uAC00 0 \uC744 \uC92C\uAC70\uB098 `<audio>` \uAC00 \uC544\uC9C1 \uC548 \uC2E4\uB838\uC2B5\uB2C8\uB2E4. \uAE38\uC774\uB97C \uC54C\uAC8C \uB418\uBA74 \uB9C8\uCEE4\uAC00 \uADF8 \uC21C\uAC04 **\uB4A4\uB85C \uBB3C\uB7EC\uB0A9\uB2C8\uB2E4**(\uC5B4\uB9BC\uC740 \uB298 \uCC38\uBCF4\uB2E4 \uD07D\uB2C8\uB2E4). \uC774 \uC904\uC774 \uBCF4\uC774\uBA74 \uADF8 \uC790\uB9AC\uB97C \uC54C\uB824 \uC8FC\uC2ED\uC2DC\uC624 \u2014 \uD3C9\uC18C \uAE38\uC5D0\uC11C\uB294 \uC548 \uB098\uC640\uC57C \uD569\uB2C8\uB2E4.");const B=N?jx({phase:l?.positionRef.current?.phase??"sound",phaseElapsedMs:l?.positionRef.current?Math.max(0,Date.now()-l.positionRef.current.at):0,currentTime:f&&typeof f.currentTime=="number"?f.currentTime:0,trackDurationSec:w,leadInMs:i||0,tailMs:u||0}):Sx({currentTime:f&&typeof f.currentTime=="number"?f.currentTime:0,sources:r.current,index:s.current,audioDuration:k??0});try{x&&(x.style.visibility&&(x.style.visibility=""),x.style.left=`${B*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(B))}catch{}}}catch{}c.current=requestAnimationFrame(C)};c.current=requestAnimationFrame(C)},[e,t,a,r,s,l,i,u]),g=o.useCallback(v=>{p();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${v*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(v))}catch{}},[p,t,a]);return o.useEffect(()=>p,[p]),{start:h,stop:p,settleTo:g}}function gs({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:s=!1,ttsText:l=null,className:i,showSoundWaveForm:u=!0,showNoiseWaveForm:c=!0,leadInMs:d=0,tailMs:m=0}){const{t:p}=xe.useTranslation(),h=e,g=_r(),v=o.useRef(g?.registerAnalyser);o.useEffect(()=>{v.current=g?.registerAnalyser});const C=o.useRef(null),f=o.useRef(null),_=o.useRef(null),b=Hx(),k=o.useRef(null),x=o.useRef(!1),N=o.useRef(null),{ref:y,rect:w,show:B,hide:E}=Vx();o.useEffect(()=>()=>{v.current?.("main",null),v.current?.("noise",null)},[]);const[D,A]=o.useState(!1),[F,$]=o.useState("idle"),[K,L]=o.useState("stopped"),P=o.useRef("stopped");o.useEffect(()=>{P.current=K},[K]);const[M,G]=o.useState(0),[H,O]=o.useState("active"),Q=o.useRef(!1);o.useEffect(()=>{if(H!=="playMode"||!Q.current)return;Q.current=!1;const X=typeof document<"u"?document.activeElement:null;if(X&&X!==document.body)return;const ue=_.current?.querySelectorAll("button")[1];try{ue?.focus()}catch{}},[H]);const[I,q]=o.useState(null),[Z,V]=o.useState(null),[S,R]=o.useState(0),[T,Y]=o.useState(!1),[ce,re]=o.useState(0),oe=g?.playbackRate??1,ae=g?.mainVolume??1,z=g?ps(g.settings):0,ee=g?Ec(g.settings):ae,[W,U]=o.useState("idle"),[de,De]=o.useState(""),[ye]=o.useState("top"),pe=o.useRef(null),ie=o.useRef(0),ge=o.useRef(null),he=o.useRef(!0),se=mx({mountedRef:he}),Le=o.useRef(null),Oe=o.useRef(d),Me=o.useRef(m);o.useEffect(()=>{Oe.current=Math.max(0,d||0)},[d]),o.useEffect(()=>{Me.current=Math.max(0,m||0)},[m]);const{start:qe,stop:We,settleTo:dt}=Kx({audioRef:C,fillRef:f,waveProgressRef:ge,sourcesRef:pe,currentIndexRef:ie,sequencer:se,leadInMs:d,tailMs:m}),{onReadyChange:at,waitForReady:st,markNotReady:it}=Wx({showSoundWaveForm:u,showNoiseWaveForm:c}),Ee=o.useRef(null),Ue=o.useRef(s),Ae=o.useRef(r),He=o.useRef(null),et=o.useRef(!1),[pt,Dt]=o.useState(!1),vt=o.useCallback(X=>{et.current=X,Dt(X)},[]),Pt=o.useRef(null),{activeNoiseUrl:nt,noiseSettingsRef:lt,fadeInNoise:At,fadeOutNoise:Bt}=vx({noisePlayer:g,audioRef:C,playbackStateRef:P,sequencer:se}),{startTTS:ke,stopTTS:$e}=xx({ttsText:l,playbackRate:oe,mainVolume:ee,fillRef:f,waveProgressRef:ge,setProgress:G,setPlaybackState:L,setStateLocal:O,fadeInNoise:At,fadeOutNoise:Bt,noiseSettingsRef:lt,onDoneRef:Ae,handleEndRef:Pt});o.useEffect(()=>{St.current=$e});const je=X=>{if(typeof window>"u"||!window.speechSynthesis){try{De(p("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}ke(X);return}Re("tts"),ke(X)},Ve=Array.isArray(t)?t.filter(Boolean):t?[t]:[],Ge=(!Ve||Ve.length===0)&&!!l,kt=Array.isArray(I)&&I.length>0?I:Array.isArray(Z)&&Z.length>0?Z:null,ut=Math.max(Array.isArray(kt)?kt.length:0,Ve.length);o.useEffect(()=>(he.current=!0,()=>{he.current=!1}),[]);const mt=()=>{se.abort()},St=o.useRef(null),Ke=o.useRef(null),gt=o.useRef(null),xt=o.useRef(null);xt.current||(xt.current=()=>{gt.current=null;const X=C.current;if(Ke.current==="audio"&&X&&(!X.paused||se.isRunning())){mt();try{X.pause()}catch{}he.current&&(L("paused"),We(),Bt())}else if(Ke.current==="tts")try{St.current?.()}catch{}});const Re=X=>{Ke.current=X,gt.current=pr(xt.current)},Ye=()=>{gt.current?.(),gt.current=null};o.useEffect(()=>()=>{xt.current&&mr(xt.current)},[]);const ft=o.useRef(oe);o.useEffect(()=>{ft.current=oe||1},[oe]);const tt=o.useCallback(X=>{const ue=ft.current||1;try{X.defaultPlaybackRate=ue}catch{}try{X.playbackRate=ue}catch{}},[]),Nt=o.useCallback((X,ue)=>{if(!Ix(X,ue)){try{X.currentTime=0}catch{}tt(X);return}X.src=ue,tt(X),X.load(),tt(X)},[tt]),ne=o.useCallback(()=>{He.current&&(clearTimeout(He.current),He.current=null),U("idle")},[]),ve=o.useCallback(async(X,ue=3,Ne=50,ze=0)=>{ne();const me=se.generation(),we=!!X&&X.currentTime>0&&!X.ended,Xe=Math.max(0,Oe.current-Math.max(0,ze));if(Xe>0&&!we){Re("audio"),qe(),L("playing");const rt=lt.current;if(rt?.enabled&&(rt.volume??0)>0)try{At(rt.volume)}catch{}if(!await se.waitPad(Xe,"lead",ze)||!he.current||!se.isCurrent(me))return!1}se.enterSound();for(let rt=0;rt<ue;rt++){if(!he.current||!se.isCurrent(me))return!1;try{return Re("audio"),await X.play(),!0}catch(Ce){if((Ce instanceof Error||typeof Ce=="object"&&Ce&&"name"in Ce?Ce.name:void 0)==="AbortError"){if(!se.isCurrent(me))return!1;await new Promise(j=>setTimeout(j,Ne));continue}try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[p,qe,se,At,lt,ne]),Pe=o.useCallback(X=>{const ue=se.generation(),Ne=Math.max(0,Me.current-Math.max(0,X));qe();const ze=lt.current;if(ze?.enabled&&(ze.volume??0)>0)try{At(ze.volume)}catch{}const me=()=>{try{Le.current?.()}catch{}};if(Ne<=0){se.leave(),me();return}se.waitPad(Ne,"tail",X).then(we=>{se.leave(),we&&se.isCurrent(ue)&&me()}).catch(()=>{})},[se,qe,At,lt]),Qe=o.useCallback(()=>{const X=C.current;if(!X)return;const ue=()=>{L("playing"),O("playMode"),Y(!0),qe();try{to(),er(X).then(we=>{if(he.current)try{v.current?.("main",we)}catch{}})}catch{}const me=lt.current;me?.enabled&&(me?.volume??0)>0&&At(me.volume)},Ne=()=>{Lx({ended:!!X?.ended,completedByEnd:et.current})||(L("paused"),We(),Bt())},ze=()=>{const me=()=>{try{const we=pe.current,Xe=Mx(we,ie.current);if(Xe!==null){ie.current=Xe,R(Xe),Y(!0);const rt=we?.[Xe]&&we[Xe].src;if(rt&&X){Nt(X,rt),ve(X).catch(()=>{});return}}}catch{}L("stopped"),G(1);try{if(X)try{X.currentTime=0}catch{}}catch{}We(),Y(!1),Bt();try{!Ue.current&&Pt.current&&Pt.current()}catch{}};if(Le.current=me,Me.current>0){qe(),se.waitPad(Me.current,"tail").then(we=>{se.leave(),we&&me()}).catch(()=>{});return}me()};return X.addEventListener("play",ue),X.addEventListener("pause",Ne),X.addEventListener("ended",ze),()=>{try{X.removeEventListener("play",ue),X.removeEventListener("pause",Ne),X.removeEventListener("ended",ze),We()}catch{}}},[At,Bt,ve,lt,qe,We,se]);o.useEffect(()=>Qe(),[Qe]),o.useEffect(()=>{Ue.current=s},[s]),o.useEffect(()=>{Ae.current=r},[r]),o.useEffect(()=>{if(s||H!=="active")return;const X=N.current;if(!X)return;let ue=null;const Ne=requestAnimationFrame(()=>{try{const ze=X.getTotalLength();if(!ze)return;const me=ze*.2;X.style.strokeDasharray=`${ze-me} ${me}`;const we="triFlow_"+Math.random().toString(36).slice(2);ue=document.createElement("style"),ue.textContent=`@keyframes ${we}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${ze}}}`,document.head.appendChild(ue),X.style.animation=`${we} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(Ne),ue?.remove()}},[H,s]),o.useEffect(()=>{pe.current=I},[I]),o.useEffect(()=>{ie.current=S},[S]),o.useEffect(()=>{const X=_.current,ue=k.current;if(!X||!ue)return;let Ne=null;const ze=32,me=60,we=()=>{try{const rt=Array.from(X.querySelectorAll(":scope > .button"));let Ce=0;rt.forEach(Ie=>{if(Ie===ue)return;const Je=Ie.getBoundingClientRect();Ce+=Je.width});const j=X.getBoundingClientRect().width,J=Math.max(0,Math.floor(j-Ce-8)),fe=ut;if(!fe||J<=0){Array.from(ue.children).forEach(Ie=>{try{Ie.style.width=""}catch{}});return}let Se=Math.floor(J/fe);Se>me&&(Se=me),Se<ze&&(Se=Math.max(ze,Math.floor(J/fe))),Array.from(ue.querySelectorAll(".button")).forEach(Ie=>{try{Ie.style.width=`${Se}px`}catch{}})}catch{}},Xe=requestAnimationFrame(we);try{Ne=new ResizeObserver(()=>{requestAnimationFrame(we)}),Ne.observe(X),Ne.observe(ue),window.addEventListener("resize",we)}catch{}return()=>{try{cancelAnimationFrame(Xe)}catch{}try{Ne&&(Ne.disconnect(),Ne=null)}catch{}try{window.removeEventListener("resize",we)}catch{}}},[I,Z,ut]),o.useEffect(()=>()=>{try{Ee.current&&(clearTimeout(Ee.current),Ee.current=null),He.current&&(clearTimeout(He.current),He.current=null)}catch{}},[]);const yt=(X,ue)=>{q(X),re(ue),it(),V($x(X)),pe.current=X},ct=()=>{O("playMode"),R(0),Y(!0)},Ft=async(X,ue)=>{vt(!1),x.current=!1,Nt(X,ue),await Pc(X),await st()!==!1&&(A(!1),ct(),await ve(X))},Gt=async(X,ue=!1)=>{const Ne=C.current;A(!0),$("measuring_duration");try{const ze=await bs(X,{timeoutMs:1e4,rejectOnError:!0});yt([{src:X,objectUrl:null,duration:ze}],ze),$("ready"),ue&&Ne&&await Ft(Ne,X)}finally{x.current=!1,A(!1)}},kn=async(X,ue=!1)=>{const Ne=C.current;A(!0),$("measuring_duration");try{const ze=await Promise.all(X.map(we=>bs(we,{timeoutMs:1e4})));if(!he.current)return;const me=X.map((we,Xe)=>({src:we,objectUrl:null,duration:ze[Xe]||0}));yt(me,Rx(me)),$("ready"),ue&&Ne&&me.length>0&&await Ft(Ne,me[0].src)}finally{x.current=!1,A(!1)}},Ht=async(X=!1,ue=!0)=>{const Ne=C.current,ze=t?Array.isArray(t)?t:[t]:[];if(!ze||ze.length===0||!ze.some(Boolean))return!1;if(x.current)return null;x.current=!0,ue&&A(!0),$("resolving");try{const me=Px(t,a,xl),we=[];let Xe=0;for(const rt of me){let Ce=rt.src??null,j=null;if(!Ce&&rt.resolvedPath){try{$("getting_signed_url"),Ce=await _l(rt.resolvedPath)}catch{Ce=null}if(!he.current)return!1;if(!Ce)try{$("downloading");const fe=await wl(rt.resolvedPath);if(!he.current)return!1;if(fe){const Se=fe instanceof Blob?fe:new Blob([fe]);j=b.track(URL.createObjectURL(Se)),Ce=j}}catch{$("error");try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),O("active")}catch{}}}if(!Ce)continue;let J=0;try{$("measuring_duration"),J=await bs(Ce,{timeoutMs:3e3})}catch{J=0}if(!he.current){if(j)try{URL.revokeObjectURL(j)}catch{}for(const fe of we)if(fe.objectUrl)try{URL.revokeObjectURL(fe.objectUrl)}catch{}return!1}Xe+=J||0,we.push({...rt,src:Ce,objectUrl:j,duration:J})}if(yt(we,Xe),we.length>0&&X&&Ne){const rt=we[0];vt(!1);try{b.keepOnly(we.map(Ce=>Ce.objectUrl))}catch{}if($("ready"),x.current=!1,rt.src&&Ne)try{if(Nt(Ne,rt.src),await Pc(Ne),await st()===!1)return!1;ue&&A(!1),ct(),Ne&&await ve(Ne)}catch{ue&&A(!1)}else ue&&A(!1);O("playMode"),R(0),Y(!0)}return we.length>0}finally{x.current=!1,ue&&A(!1),$(me=>me==="ready"?"ready":"idle")}},Kt=async X=>{const ue=se.isRunning();if(X.paused&&!ue){if(et.current){await bt();return}const Ne=se.resume();if(Ne){if(L("playing"),Ne.phase==="tail"){Pe(Ne.elapsed);return}await ve(X,3,50,Ne.elapsed);return}await ve(X),L("playing")}else se.pause(),mt(),X.pause(),L("paused"),ue&&(We(),Bt())},Rt=async()=>{const X=C.current;if(!(!X&&!Ge)){if(Ge){const ue=window.speechSynthesis;if(H==="active"){const Ne=Na(),ze=Array.isArray(l)?l.filter(Boolean):l?[l]:[];if(Ne&&ze.length>0){if(x.current)return;O("load"),A(!0),$("synthesizing"),x.current=!0;try{const me=await Promise.all(ze.map(we=>Promise.resolve(Ne(we))));me.length>1?await kn(me,!0):await Gt(me[0],!0)}catch{x.current=!1,A(!1),O("active"),je(ze.length>0?ze:void 0)}return}je(ze.length>0?ze:void 0);return}if(H==="playMode"){const Ne=!!ue&&(ue.speaking||ue.paused)&&!(X&&(X.currentSrc||X.getAttribute("src")));if(X&&!Ne){await Kt(X);return}try{if(ue&&ue.paused)try{Re("tts"),ue.resume(),L("playing")}catch{}else try{ue.pause(),L("paused")}catch{}}catch{}}return}if(H==="active"){if(s&&Array.isArray(pe.current)&&pe.current.length>0){const Ne=pe.current[0];try{if(Ne.src&&X)try{Nt(X,Ne.src),ct(),X&&await ve(X)}catch{}ct();return}catch{}}O("load");let ue;try{ue=await Ht(!0)}catch{ue=!1}if(ue===!1&&he.current){try{De(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}O("active")}return}if(H!=="load"&&(H==="playMode"||H==="active"))try{X&&await Kt(X)}catch(ue){(ue instanceof Error||typeof ue=="object"&&ue&&"name"in ue)&&ue.name}}},bt=async()=>{const X=C.current;if(X)try{const ue=pe.current;if(Array.isArray(ue)&&ue.length>1){await pn(0);return}vt(!1);try{X.currentTime=0}catch{}X&&await ve(X),L("playing"),O("playMode")}catch{}},ht=()=>{mt(),Ye(),St.current?.();const X=C.current;try{if(X){try{X.pause()}catch{}try{X.currentTime=0}catch{}}}catch{}Bt(),L("stopped"),O("active"),G(0),Y(!1)},_t=async(X,{sameSegment:ue=!1}={})=>{mt();const Ne=se.generation(),ze=C.current,me=pe.current?.[X]?.src;try{if(vt(!1),R(X),Y(!0),ie.current=X,!me||!ze||(ue||it(),Nt(ze,me),!ue&&await st()===!1)||!se.isCurrent(Ne)||(await ve(ze),!se.isCurrent(Ne)))return;L("playing"),O("playMode")}catch{}},Yt=async()=>{const X=pe.current,ue=ie.current||0;if(!X||ue<=0){await bt();return}await _t(ue-1)},fn=async()=>{const X=pe.current,ue=ie.current||0;if(!X||ue>=X.length-1){ht();return}await _t(ue+1)},An=()=>{if(et.current)return;const X=200,ue=340;vt(!0),mt(),Ye();try{G(1)}catch{}dt(1);try{U("hold")}catch{}try{const Ne=C.current,ze=Ge&&!!Ne?.src;if(!Ge||ze){if(Ne){Ne.pause();try{Ne.currentTime=0}catch{}}}else $e();Bt()}catch{}try{L("stopped")}catch{}if(Y(!1),!Ue.current)try{He.current&&(clearTimeout(He.current),He.current=null),He.current=setTimeout(()=>{try{U("out")}catch{}He.current=setTimeout(()=>{try{typeof Ae.current=="function"&&Ae.current(!0)}catch{}try{U("idle")}catch{}He.current=null},ue)},X)}catch{}};o.useEffect(()=>{Pt.current=An});const Rn=o.useCallback(()=>De(""),[]),pn=async X=>{(pe.current||[])[X]&&await _t(X,{sameSegment:X===ie.current})},Mt=K==="playing",Qt=o.useMemo(()=>{if(!Z||Z.length<=1)return Z;const X=Z[S];return X?[X]:Z},[Z,S]),en=s===!0;o.useEffect(()=>{try{const X=C.current;X&&typeof X.playbackRate=="number"&&tt(X)}catch{}},[oe,tt]);const mn=o.useRef({raf:null,timer:null});o.useEffect(()=>{const X=C.current;if(!X)return;const ue=Math.max(0,Math.min(1,ee)),Ne=mn.current,ze=()=>{Ne.raf!==null&&(cancelAnimationFrame(Ne.raf),Ne.raf=null),Ne.timer!==null&&(clearTimeout(Ne.timer),Ne.timer=null)};ze();const me=tr(X);if(X.paused||Math.abs(me-ue)<.001||typeof requestAnimationFrame!="function"){try{On(X,ue)}catch{}return}const we=performance.now(),Xe=()=>{const rt=Math.min(1,(performance.now()-we)/150);try{On(X,me+(ue-me)*rt)}catch{}Ne.raf=rt<1?requestAnimationFrame(Xe):null};return Ne.raf=requestAnimationFrame(Xe),Ne.timer=setTimeout(()=>{ze();try{On(X,ue)}catch{}},200),ze},[ee]);const Ot=W==="hold",bn=W==="out",le=H==="playMode"&&!D&&!pt||Ot||bn,_e=K!=="stopped"||Ot||bn,Te=K==="paused",Ze=Math.max(0,Math.min(100,(M||0)*100)),Fe=Be("audio-player__fill",le?"is-visible":"",_e?"is-expanded":"",Te?"is-paused":"",bn?"is-out":"");return n.jsxs("div",{className:`audio-player ${en?"is-disabled":""}${i?` ${i}`:""}`,role:"group","aria-label":typeof h=="string"?h:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${Mt?"is-playing":""} ${D?"is-loading":""} ${H!=="default"?"is-revealed":""}`,children:[D?n.jsxs("div",{className:"audio-player__loading",role:Rc[F]?"status":void 0,"aria-live":Rc[F]?"polite":"off",children:[n.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),n.jsx("span",{className:"audio-player__loading-text",children:p("training.audioStatus.preparing",{defaultValue:"\uC18C\uB9AC\uB97C \uC900\uBE44\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"})})]}):null,H==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:en,onClick:()=>{Q.current=br(),E(),Rt()},"aria-label":typeof h=="string"?h:p("training.listen","\uB4E3\uAE30"),onMouseEnter:B,onMouseLeave:E,onFocus:B,onBlur:E,children:n.jsx("span",{ref:y,className:"audio-player__button-triangle-wrap",children:n.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:n.jsx("path",{ref:N,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,w&&n.jsx(En,{anchorRect:w,text:typeof h=="string"&&h?h:p("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${H==="playMode"||Mt?"is-visible":""}`,inert:!(H==="playMode"||Mt)||void 0,children:[n.jsxs("div",{ref:_,className:"audio-player__buttons",children:[n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:Yt,ariaLabel:p("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:H!=="playMode"}),n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Mt?"pause":"play",onClick:Rt,ariaLabel:p("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":Mt,width:"60px",variant:"transparent-white",disabled:H!=="playMode"}),n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:ht,ariaLabel:p("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:H!=="playMode"}),ut>1?n.jsx("div",{ref:k,className:"audio-player__source-buttons",children:Array.from({length:ut}).map((X,ue)=>n.jsx(be,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(ue+1),onClick:()=>{try{pn(ue)}catch{}},ariaLabel:p("training.sourcePlay",{n:ue+1}),variant:"transparent-white",selected:T&&S===ue,disabled:H!=="playMode"||!(Array.isArray(I)&&I[ue]),showTooltipInfo:!0},ue))}):null,!Array.isArray(I)||I.length<=1?n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:bt,ariaLabel:p("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:H!=="playMode"}):null,n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:fn,ariaLabel:p("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:H!=="playMode"}),n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:An,ariaLabel:p("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:H!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:Fe,ref:f,style:{left:`${Ze}%`},"aria-hidden":"true"}),(u||c)&&n.jsx(Ox,{segments:Qt,progress:M,totalDuration:ce,waveProgressRef:ge,showSoundWaveForm:u,leadInMs:d,tailMs:m,trackDurationSec:I?.[S]?.duration??0,noiseSrc:c&&g?.settings.enabled&&z>0?nt:null,noiseRatio:g?Ja(g.settings):0,noiseSpeed:g?.settings.speed??1,mainVolume:ae,onReadyChange:at})]})]}),n.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!u&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(ot,{icon:"triangle-alert",size:14}),p("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(Ca,{message:de,position:ye,onClose:Rn})]})}function Ar(e){const{t}=xe.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:l,closeOnOutsideClick:i=!0,isMobilePopup:u=!1}=e||{},[c,d]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",c)}catch{}},[c]);const{increase:m,decrease:p,canIncrease:h,canDecrease:g,fontSize:v,lineHeight:C}=$i({storageKey:"tooltip-fontScale"}),f=o.useCallback(()=>d(N=>N==="dark"?"light":"dark"),[]),_=o.useCallback(N=>{try{N.stopPropagation()}catch{}try{typeof l=="function"&&l()}catch{}},[l]),b=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],k={fontSize:`${v}px`,lineHeight:`${C}px`,"--tt-line-height":`${C}px`,"--tt-marker-size":"28px"},x=n.jsxs("div",{className:`tooltip-textbox__root ${c==="dark"?"is-dark":""}`,children:[n.jsxs("div",{className:"tooltip-textbox__box",children:[r&&n.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),n.jsx("div",{className:"tooltip-textbox__text body-1",style:k,children:b.map((N,y)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[b.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:y+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:N})]},y))})]}),n.jsxs("div",{className:"tooltip-textbox__buttons",children:[n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!g}),n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!h}),n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:c==="dark"?"moon":"sun-medium",onClick:f,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:c==="dark"?"transparent-white":"transparent-gray"}),n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:_,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:c==="dark"?"transparent-white":"transparent-gray"})]})]});return s?n.jsx(yn,{anchorRect:s,className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,onClose:l,closeOnOutsideClick:i,isMobilePopup:u,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:x}):n.jsx("div",{className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,children:x})}function Fc({state:e="disabled"}){const{t}=xe.useTranslation();return n.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[n.jsx("div",{className:"bullet__dot",children:n.jsx(ot,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),n.jsx("div",{className:"ts-bullet__line"})]})}function Oc(e,t,a){const r=o.useRef(t),s=o.useRef(a);o.useEffect(()=>{r.current=t,s.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let l=null,i=10;const u=()=>{l=null;const c=r.current(),d=c?Array.from(c.querySelectorAll(xn)).find(m=>!m.closest('[aria-hidden="true"]')):void 0;if(d){try{d.focus()}catch{}if(document.activeElement===d)return}--i>0&&(l=requestAnimationFrame(u))};return l=requestAnimationFrame(u),()=>{l!==null&&cancelAnimationFrame(l);const c=document.activeElement;if(!c||c===document.body||!document.contains(c)||c.closest(".tooltip-content")){const d=s.current();if(d)try{d.focus()}catch{}}}},[e])}function zc({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:l,previewText:i=null,useFaded:u,usePlayAllBtn:c=!1,onPlayAll:d,playAllActive:m=!1}){const{t:p}=xe.useTranslation(),h=hn("(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(),C=o.useRef(null),[f,_]=o.useState(!1),[b,k]=o.useState(null),[x,N]=o.useState(null);Oc(f&&!!b,()=>{if(typeof document>"u")return null;const D=Array.from(document.querySelectorAll(".tooltip-content"));for(let A=D.length-1;A>=0;A--)if(D[A].querySelector(".tooltip-textbox__root"))return D[A];return null},()=>C.current?.querySelector("button")??null);const y=o.useRef(l);o.useEffect(()=>{y.current=l});const w=o.useMemo(()=>i==null?"":typeof i=="string"||typeof i=="number"?String(i):Array.isArray(i)&&i.every(D=>typeof D=="string"||typeof D=="number")?i.join(""):"",[i]),B=o.useCallback(()=>{_(!1),k(null),N(null)},[]);o.useEffect(()=>{if(!f)return;let D;try{typeof y.current=="function"&&(D=y.current())}catch{}if(D===!1){B();return}N(typeof D<"u"&&D!==null?D:null)},[w]);const E=o.useCallback(()=>{let D;try{typeof l=="function"&&(D=l())}catch{}if(D!==!1){if(N(typeof D<"u"&&D!==null?D:i),!C.current){_(A=>!A);return}if(f)_(!1),k(null),N(null);else{const A=C.current.getBoundingClientRect();k(A),_(!0)}}},[l,i,f]);return n.jsxs("div",{className:v,children:[n.jsx("p",{className:g,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),s||c?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[c&&n.jsx(be,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m,onDisabledClick:m&&r!=="disabled"?()=>{}:void 0}),s&&n.jsx("div",{ref:C,children:n.jsx(be,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:E,className:f?"is-selected":void 0,"aria-expanded":f,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!i&&typeof l!="function"})})]}),f&&n.jsx(Ar,{text:x??i,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:b,onClose:B,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function ys(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function ta({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:s={},children:l,className:i="",onDone:u=void 0,useTitleFaded:c=void 0,lockedHint:d}){const{t:m}=xe.useTranslation(),[p,h]=o.useState(()=>ys(e,t));o.useEffect(()=>{const y=ys(e,t);if(y!==p){const w=setTimeout(()=>h(y),0);return()=>clearTimeout(w)}},[e,t,p]);const g=o.useCallback((...y)=>{ys(e,t)==="done"||p==="done"||typeof u=="function"&&u(...y)},[e,t,p,u]),[v,C]=o.useState(!1),[f,_]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),b=o.useCallback(y=>{if(!y)return null;try{const w=y;if(typeof y=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const D=w.currentTarget??w.target;if(D&&typeof D.getBoundingClientRect=="function")return D.getBoundingClientRect()}if(y instanceof DOMRect)return y;const B=y;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect();const E=y?.current;return E&&typeof E.getBoundingClientRect=="function"?E.getBoundingClientRect():null}catch{return null}},[]),k=o.useCallback((y,{text:w="",label:B="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:E=!1,alignX:D="center",alignY:A="top"}={})=>{const F=b(y);_({text:w,label:B,anchorRect:F,backdrop:E,alignX:D,alignY:A}),C(!0)},[b]),x=o.useCallback(()=>{C(!1),_(y=>({...y,anchorRect:null}))},[]),N=o.Children.map(l,y=>{if(o.isValidElement(y)){const w=y;if(typeof w.type=="string")return w;const B=w.props??{},E=typeof B.onDone=="function"?B.onDone:g,D=typeof B.disabled=="boolean";let A=p==="disabled";return D&&(A=!!B.disabled),o.cloneElement(w,{onDone:E,disabled:A,showTooltip:k,hideTooltip:x})}return y});return n.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${i}`,"aria-current":p==="active",children:[n.jsx(Fc,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(zc,{state:p,title:r,...s,useFaded:c}),p==="disabled"&&d&&typeof e=="number"&&typeof t=="number"&&e===t+1&&n.jsx("p",{className:"training-step__locked-hint caption-1",role:"status",children:d}),N]}),v?n.jsx(yn,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:x,ariaLabel:m("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(Ar,{text:f.text,onClose:x})}):null]})}function Wc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=xe.useTranslation(),[s,l]=o.useState("disabled"),[i,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",i)}catch{}},[i]);const c=()=>u($=>$==="dark"?"light":"dark"),{increase:d,decrease:m,canIncrease:p,canDecrease:h,fontSize:g,lineHeight:v}=$i({storageKey:"textbox_fontScale"}),[C,f]=o.useState(""),_=o.useRef(null),b=o.useRef(!1),k=o.useCallback(()=>{b.current=br()&&!!_.current&&_.current.contains(document.activeElement),l("active")},[]),x=o.useCallback(()=>f(""),[]),N=$=>{try{f($)}catch{}},y=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const $=setTimeout(()=>l(t),0);return()=>clearTimeout($)}},[t]);const w=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[B,E]=o.useState(w);B!==w&&(E(w),l("disabled"));const D=t==="disabled"?s:t,A=D==="disabled"?"training-text-box--disabled":D==="active"?"training-text-box--active":D==="done"?"training-text-box--done":"",F=o.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${v}px`}),[g,v]);return o.useEffect(()=>{if(D==="disabled"||!b.current)return;b.current=!1;const $=document.activeElement;$&&$!==document.body||_.current?.querySelector(".training-text-box__buttons button")?.focus()},[D]),n.jsxs("div",{ref:_,className:`training-text-box ${A} ${D!=="disabled"&&i==="dark"?"is-dark":""}`,children:[D==="disabled"&&n.jsx("div",{className:"training-text-box__preview",children:n.jsx(be,{htmlType:"button",size:48,type:"bar",onClick:k,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),n.jsx("div",{className:"training-text-box__area","aria-hidden":D==="disabled",children:n.jsx("span",{className:"training-text-box__inner h3",style:F,children:w})}),D!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":D==="disabled",children:[n.jsx(be,{htmlType:"button",size:32,type:"dot",onClick:m,onDisabledClick:()=>N(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:i==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!y&&{width:"60px"}}),n.jsx(be,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>N(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:i==="dark"?"transparent-white":"transparent-gray",disabled:!p,useBorder:!1,showTooltipInfo:!0,...!y&&{width:"60px"}}),n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:i==="dark"?"moon":"sun-medium",onClick:c,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:i==="dark"?"transparent-white":"transparent-gray"})]}),n.jsx(Ca,{message:C,position:"top",onClose:x})]})}function na(e){return e==="active"||e==="done"}function vs({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,useTitleFaded:l,onDone:i,onChange:u,answer:c,wrongAnswers:d,choices:m,multiSelect:p=!1,correctCount:h=0,useDisabledCovered:g=!1,choiceIcons:v,shuffleChoices:C=!0}){const{t:f}=xe.useTranslation(),_=s??f("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),b=typeof e=="number"?e:-1,k=typeof t!="number"?"disabled":b<t?"done":b===t?"active":"disabled",x=Array.isArray(m)&&m.length?m:typeof c<"u"?[c].concat(Array.isArray(d)?d:[]):void 0,N=d?d.join("||"):"",y=m?m.join("||"):"",[w,B]=o.useState(()=>Array.isArray(x)?C?Ta(x):x.slice():void 0);o.useEffect(()=>{Array.isArray(x)&&x.length?B(C?Ta(x):x.slice()):B(void 0)},[c,N,y,C]);const[E,D]=o.useState(null),[A,F]=o.useState(()=>new Set);o.useEffect(()=>{D(null),F(new Set)},[y,c,N]);const $=o.useRef(void 0);o.useEffect(()=>{const P=$.current;typeof P=="number"&&typeof t=="number"&&typeof e=="number"&&P>=e&&t<e&&(D(null),F(new Set)),$.current=t},[t,e]);const K=o.useCallback(P=>{if(!na(k))return;const M=w?.[P];if(M==null)return;const G=M;if(p){const H=new Set(A);H.has(G)?H.delete(G):H.add(G),F(H),typeof u=="function"&&u({selectedValues:[...H],__ts:Date.now()}),typeof i=="function"&&i({selectedValues:[...H],__ts:Date.now()})}else D(G),typeof u=="function"&&u({selectedIndex:P,selectedValue:G,__ts:Date.now()}),typeof i=="function"&&i({selectedIndex:P,selectedValue:G,__ts:Date.now()})},[w,k,p,u,A]),L=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return n.jsx(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:_,useTitleFaded:l,children:n.jsx("div",{className:L,children:Array.isArray(w)&&w.length>0?w.map((P,M)=>n.jsx(be,{htmlType:"button",size:56,type:"bar",onClick:()=>K(M),ariaLabel:String(P),label:P,useLabel:!0,icon:v?v[String(P)]:void 0,variant:"default",disabled:k==="disabled",selected:p?A.has(P):E===P,useDisabledCovered:g,minWidth:0},String(P))):null})})}function xs({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,onDone:l,onChange:i,context:u,demoSelected:c}){const{t:d}=xe.useTranslation(),m=s??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,h=typeof t!="number"?"disabled":p<t?"done":p===t?"active":"disabled",g=u&&typeof u=="object"?u.sentence||"":typeof u=="string"?u:"",v=u&&typeof u=="object"?u.choices:void 0,[C,f]=o.useState(c??null),_=`${String(g)}\0${JSON.stringify(v??null)}`,[b,k]=o.useState(_);b!==_&&(k(_),c==null&&f(null));const[x,N]=o.useState(c);Object.is(x,c)||(N(c),f(c??null));const y=o.useRef(void 0);o.useEffect(()=>{const D=y.current;typeof D=="number"&&typeof t=="number"&&typeof e=="number"&&D>=e&&t<e&&c==null&&f(null),y.current=t},[t,e,c]);const w=o.useCallback(D=>{const A=typeof D=="object"&&D!==null?Object.assign({},D,{__ts:Date.now()}):{value:D,__ts:Date.now()};typeof i=="function"&&i(A),na(h)&&typeof l=="function"&&l(A)},[i,h,l]),B=o.useCallback(()=>{na(h)&&(f(!1),w(!1))},[w,h]),E=o.useCallback(()=>{na(h)&&(f(!0),w(!0))},[w,h]);return n.jsxs(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:m,onDone:l,useTitleFaded:!1,children:[n.jsx(Wc,{context:u,state:h}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(v)&&v.length>0?v.slice(0,6).map((D,A)=>n.jsx(be,{htmlType:"button",size:56,type:"bar",onClick:()=>{na(h)&&(f(A),w&&w(A))},disabled:h==="disabled",ariaLabel:String(D),label:D,variant:h,selected:C===A},A)):n.jsxs(n.Fragment,{children:[n.jsx(be,{htmlType:"button",size:56,type:"bar",onClick:B,disabled:h==="disabled",icon:"x",ariaLabel:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:d("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!1}),n.jsx(be,{htmlType:"button",size:56,type:"bar",onClick:E,disabled:h==="disabled",icon:"circle",ariaLabel:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:d("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:C===!0})]})})]})}function _s({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,btnLabel:l,soundSrc:i,bucketPath:u,usePreviewTextBtn:c,previewText:d=null,onPreviewTextBtn:m,disabled:p,_pageIndex:h,showSoundWaveForm:g,showNoiseWaveForm:v,leadInMs:C,tailMs:f}){const{t:_}=xe.useTranslation(),b=r??_("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),k=p??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(ta,{index:e,stepIndex:t,isLast:a,title:b,onDone:s,titleProps:{usePreviewTextBtn:c,previewText:d,onPreviewTextBtn:m},children:n.jsx(gs,{soundSrc:i,ttsText:i?null:d??b,bucketPath:u,btnLabel:l||_("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:k,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:v,leadInMs:C,tailMs:f},`audio-p${h??0}-s${e}`)})}const Yx=[];function ws({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,onDone:l,onChange:i,context:u=Yx}){const{t:c}=xe.useTranslation(),d=s??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),m=V=>typeof V=="string"?V:V&&(V.context||V.sentence||V.question||"")||"",[p,h]=o.useState(Array.isArray(u)?u:[]),[g,v]=o.useState(()=>(p||[]).map((V,S)=>({id:S,text:m(V)}))),C=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),f=C!=="disabled",_=o.useRef(void 0),b=o.useRef(void 0);o.useEffect(()=>{if(_.current===u)return;_.current=u;const V=Array.isArray(u)?u:[];h(V);const S=(R=>{const T=(R||[]).map((oe,ae)=>({id:ae,text:m(oe)}));if(T.length<=1)return T;const Y=(oe,ae)=>{if(oe.length!==ae.length)return!1;for(let z=0;z<oe.length;z++)if(oe[z].text!==ae[z].text)return!1;return!0};let ce=Ta(T),re=0;for(;Y(ce,T)&&re<20;)ce=Ta(T),re+=1;return ce})(V);v(S);try{if(typeof i=="function"){const R=S.filter((T,Y)=>T.text===m(V[Y])).length;i({shuffled:S,score:R,total:(V||[]).length,initial:!0,__ts:Date.now()})}if(typeof l=="function"&&C==="active"){const R=S.filter((T,Y)=>T.text===m(V[Y])).length;b.current=u,l({shuffled:S,score:R,total:(V||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[u]),o.useEffect(()=>{if(C!=="active"||b.current===u||(b.current=u,typeof l!="function"))return;const V=Array.isArray(u)?u:[],S=g.filter((R,T)=>R.text===m(V[T])).length;l({shuffled:g,score:S,total:V.length,initial:!0,__ts:Date.now()})},[C,u]);const k=(V,S)=>{const R=[...g],T=V+S;if(T<0||T>=R.length)return;const Y=R[T];R[T]=R[V],R[V]=Y,G(R);try{if(typeof l=="function"&&C==="active"){const ce=R.filter((re,oe)=>re.text===m(p[oe])).length;l({shuffled:R,score:ce,total:(p||[]).length,__ts:Date.now()})}}catch{}},[x,N]=o.useState(null),y=o.useRef(null),w=o.useRef(null),B=o.useRef(null),E=o.useRef(null),D=o.useRef(null),A=o.useRef({x:0,y:0}),F=o.useRef(null),$=o.useRef({dx:0,dy:0}),K=()=>{if(F.current!==null)return;const V=()=>{if(!y.current){F.current=null;return}F.current=requestAnimationFrame(V);const S=A.current,R=$.current||{dx:0,dy:0};y.current&&(y.current.style.transform=`translate3d(${S.x-R.dx}px, ${S.y-R.dy}px, 0)`)};F.current=requestAnimationFrame(V)},L=o.useRef(new Map),P=o.useRef(new Map),M=()=>{const V=new Map;return L.current.forEach((S,R)=>{S&&S.getBoundingClientRect&&V.set(R,S.getBoundingClientRect())}),V},G=V=>{const S=M();v(V);try{if(typeof i=="function"){const R=V.filter((T,Y)=>T.text===m(p[Y])).length;i({shuffled:V,score:R,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const R=M();V.forEach(T=>{const Y=S.get(T.id),ce=R.get(T.id),re=L.current.get(T.id);if(!re||!Y||!ce)return;const oe=Y.top-ce.top;oe&&(re.style.transition="none",re.style.transform=`translateY(${oe}px)`,requestAnimationFrame(()=>{re.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",re.style.transform="";const ae=()=>{re.style.transition="",re.removeEventListener("transitionend",ae)};re.addEventListener("transitionend",ae)}))})})},H=(V,S)=>{try{try{S.dataTransfer?.setData("text/plain",String(V))}catch{}try{S.dataTransfer&&(S.dataTransfer.effectAllowed="move")}catch{}try{const R=document.createElement("div");R.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(R),S.dataTransfer?.setDragImage(R,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(R)}catch{}})}catch{}}catch{}N(V);try{const R=g[V],T=document.createElement("div");T.className="order-list__dragging-object order-list__dragging-object--visible",T.textContent=R&&R.text?R.text:"",document.body.appendChild(T),y.current=T;const Y=L.current.get(R.id);let ce=S.clientX||0,re=S.clientY||0;try{if(Y&&Y.getBoundingClientRect){const U=Y.getBoundingClientRect();ce=U.left+U.width/2,re=U.top+U.height/2}}catch{}const oe=T.getBoundingClientRect(),ae=oe.width/2,z=oe.height/2;$.current={dx:ae,dy:z},T.style.transition="none",A.current={x:ce,y:re},T.style.transform=`translate3d(${ce-ae}px, ${re-z}px, 0)`,requestAnimationFrame(()=>{try{T.style.transition=""}catch{}K()});const ee=U=>{const de=U;A.current={x:de.clientX,y:de.clientY},K()};B.current=ee,document.addEventListener("mousemove",ee);const W=U=>{const de=U;A.current={x:de.clientX,y:de.clientY},K()};w.current=W,document.addEventListener("dragover",W);try{S.dataTransfer?.setData("text/plain",String(V));try{S.dataTransfer?.setData("application/json",JSON.stringify({idx:V}))}catch{}}catch{}}catch{}},O=(V,S)=>{S.preventDefault();try{S.dataTransfer&&(S.dataTransfer.dropEffect="move")}catch{}try{D.current!==null&&(clearTimeout(D.current),D.current=null);const R=S.currentTarget&&S.currentTarget.closest?S.currentTarget.closest(".order-list__item"):null;if(R&&E.current!==R){if(E.current)try{E.current.classList.remove("drag-over")}catch{}try{R.classList.add("drag-over")}catch{}E.current=R}}catch{}},Q=(V,S)=>{S.preventDefault();const R=S.dataTransfer?.getData("text/plain")||"",T=R?parseInt(R,10):x,Y=V;if(typeof T!="number"||isNaN(T)||T===Y){N(null),Z(),I();return}const ce=vf(g,T,Y);G(ce),N(null),I();try{if(typeof l=="function"&&C==="active"){const re=ce.filter((oe,ae)=>oe.text===m(p[ae])).length;l({shuffled:ce,score:re,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const re=document.querySelectorAll(".order-list .order-list__item")[Y];if(!re)return;const oe=re.querySelector(".order-list__slot")||re;try{oe.classList.add("pulse"),oe.offsetHeight,oe.classList.add("to-dark");const ae=()=>{oe.classList.remove("pulse","to-dark"),oe.removeEventListener("transitionend",ae)};oe.addEventListener("transitionend",ae)}catch{}})}catch{}Z()},I=()=>{if(y.current){try{document.body.removeChild(y.current)}catch{}y.current=null}w.current&&(document.removeEventListener("dragover",w.current),w.current=null),B.current&&(document.removeEventListener("mousemove",B.current),B.current=null),F.current!==null&&(cancelAnimationFrame(F.current),F.current=null)},q=()=>{N(null),Z(),I()};o.useEffect(()=>()=>I(),[]);const Z=()=>{try{if(D.current!==null&&(clearTimeout(D.current),D.current=null),E.current){try{E.current.classList.remove("drag-over")}catch{}E.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(V=>V.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const V=Math.max(1,(g||[]).length);g.forEach((S,R)=>{const T=P.current.get(S.id);if(!T)return;let Y=50;V>1&&(Y=Math.round(R/(V-1)*100));try{T.style.setProperty("--marker-pos",Y+"%")}catch{}})}catch{}},[g]),o.useEffect(()=>()=>{I(),D.current!==null&&(clearTimeout(D.current),D.current=null)},[]),n.jsx(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:d,children:n.jsx("div",{className:"order-list",children:g.map((V,S)=>{const R=Math.max(1,(g||[]).length),T=R>1?Math.round(S/(R-1)*100):50;return n.jsx("div",{className:"order-list__item",children:n.jsxs("div",{className:"order-list__slot","data-disabled":C==="disabled","aria-disabled":C==="disabled",children:[C!=="disabled"?n.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":T+"%"},ref:Y=>{const ce=P.current;Y?ce.set(V.id,Y):ce.delete(V.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:S+1})}):null,n.jsxs("div",{ref:Y=>{const ce=L.current;Y?ce.set(V.id,Y):ce.delete(V.id)},className:`order-list__draggable ${x===S?"dragging":""}`,"data-disabled":C==="disabled","aria-disabled":C==="disabled",tabIndex:C==="disabled"?-1:0,draggable:f,onDragStart:f?Y=>H(S,Y):void 0,onDragEnter:f?Y=>O(S,Y):void 0,onDragOver:f?Y=>O(S,Y):void 0,onDragLeave:f?()=>{try{D.current!==null&&clearTimeout(D.current),D.current=setTimeout(()=>{try{const Y=document.querySelectorAll(".order-list .order-list__item");Y&&Y[S]&&(Y[S].classList.remove("drag-over"),E.current===Y[S]&&(E.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?Y=>Q(S,Y):void 0,onDragEnd:f?q:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:V.text}),f?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(be,{htmlType:"button",size:32,type:"dot",onClick:()=>k(S,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:S===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(be,{htmlType:"button",size:32,type:"dot",onClick:()=>k(S,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:S===g.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},V.id)})})})}const Zx=8e3;function Xx(e,t){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,t)})}function Hc({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,onDone:l,onChange:i,context:u=[],selectable:c=!1,hideLabel:d=!1,hideAudio:m=!1,maxCards:p,playAllGapMs:h=0}){const{t:g}=xe.useTranslation(),v=s??g("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),C=o.useMemo(()=>Array.isArray(u)?u:u&&u.items||[],[u]),f=p??3,_=(C||[]).slice(0,f);(C||[]).length>f&&console.warn(`TrainingStepCard: ${C.length} items passed but only ${f} shown`);const b=typeof e=="number"?e:-1,k=typeof t!="number"?"disabled":b<t?"done":b===t?"active":"disabled",[x,N]=o.useState(null),y=o.useRef([]),[w,B]=o.useState(!1),E=o.useRef(null),D=o.useRef(!0);o.useEffect(()=>(D.current=!0,()=>{D.current=!1}),[]);const A=o.useMemo(()=>C.map(M=>M?.id??M?.word??"").join("|"),[C]);o.useEffect(()=>{N(null)},[A]);const F=o.useRef(void 0);o.useEffect(()=>{const M=F.current;typeof M=="number"&&typeof t=="number"&&typeof e=="number"&&M>=e&&t<e&&N(null),F.current=t},[t,e]);const $=o.useCallback((M,G)=>{if(c)return;const H={item:M,index:G,__ts:Date.now()};try{typeof i=="function"&&i(H)}catch{}if(k==="active"&&typeof l=="function")try{l(H)}catch{}},[c,i,k,l]),K=o.useRef(h);o.useEffect(()=>{K.current=Math.max(0,h||0)},[h]);const L=o.useCallback(async()=>{if(w||k==="disabled")return;B(!0);let M=!1;const G=new Promise(H=>{E.current=()=>{M=!0,H()}});try{for(let H=0;H<_.length&&!(!D.current||M);H++){const O=y.current[H];if(!O)continue;await Promise.race([Xx(O.play(),Zx),G]);const Q=Math.max(0,K.current||0);Q>0&&H<_.length-1&&!M&&D.current&&await Promise.race([new Promise(I=>{setTimeout(I,Q)}),G])}}finally{E.current=null,B(!1)}},[w,k,_.length]),P=o.useCallback((M,G)=>{if(!na(k))return;N(G);const H={selectedValue:M.word||M.title||"",selectedIndex:G,item:M,__ts:Date.now()};try{typeof i=="function"&&i(H)}catch{}if(typeof l=="function")try{l(H)}catch{}},[i,k,l]);return n.jsx(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:v,onDone:l,titleProps:{usePlayAllBtn:!m&&_.length>0,onPlayAll:L,playAllActive:w},children:n.jsx("div",{className:"training-step__cards",onClickCapture:M=>{const G=E.current;if(!G)return;const H=M.target;H&&typeof H.closest=="function"&&H.closest(".training-word-card__bottom")&&G()},children:_.length===0?n.jsx("div",{className:"training-step__empty",children:g("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):_.map((M,G)=>n.jsx(Jo,{ref:H=>{y.current[G]=H},item:M,disabled:k==="disabled",onPlayDone:()=>$(M,G),selectable:c,selected:c&&x===G,onSelect:c?()=>P(M,G):void 0,flipDelay:G*120,hideLabel:d,hideAudio:m},M&&M.id||G))})})}const Jx=160,Vc=()=>{};function Ln(e){const t=o.useId();if(!("variant"in e)){const{label:b,sub:k,onClick:x,children:N,align:y="horizontal",icon:w,useFullWidth:B=!1}=e,E=D=>{x&&D.target===D.currentTarget&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),x())};return n.jsxs("div",{className:Be("panel-row",y==="vertical"?"panel-row--vertical":"",B?"panel-row--label-fixed panel-row--fill":"",x?"panel-row--clickable":""),onClick:x,onKeyDown:x?E:void 0,role:x?"button":void 0,tabIndex:x?0:void 0,children:[w!=null&&n.jsx("div",{className:"panel-row__icon",children:w}),b!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:b}),k&&n.jsx("div",{className:"panel-row__sub caption-1",children:k})]}),n.jsx("div",{className:"panel-row__right",children:N})]})}if(e.variant==="description")return n.jsx("div",{className:"panel-row panel-row--block",children:n.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return n.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return n.jsx("div",{className:"panel-row panel-row--loading",children:n.jsx(Ga,{size:28})});if(e.variant==="custom"&&!e.label)return n.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:s,onClick:l,required:i,error:u,align:c="horizontal",useFullWidth:d=!1,icon:m}=e,p=a==="button"?void 0:l;let h=null;const g=a==="toggle"?`panel-toggle-${t}`:void 0,v=u?`panel-error-${t}`:void 0,C=`panel-helper-${t}`;if(a==="toggle"){const b=e;h=n.jsx(_u,{checked:b.checked,onChange:b.onChange,id:g})}else if(a==="segmented"){const b=e;h=n.jsx(_n,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,k=b.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((x,N)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(Cn,{options:x.options,value:x.value,onChange:x.onChange,placeholder:x.placeholder,block:d,error:!!u,ariaDescribedBy:v,ariaLabel:x.ariaLabel??([r,x.placeholder].filter(Boolean).join(" ")||void 0)})},N))}):n.jsx(Cn,{options:b.options??[],value:b.value??"",onChange:b.onChange??Vc,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:v});h=u?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[k,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}):k}else if(a==="button"){const b=e;b.buttons?.length?h=n.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((k,x)=>n.jsx(be,{htmlType:"button",size:k.btnSize??40,variant:k.btnVariant??"default",disabled:k.disabled,onClick:k.onClick,children:k.label},x))}):h=n.jsx(be,{htmlType:"button",size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;h=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;h=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(Xn,{value:b.value,onChange:b.onChange??Vc,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,ghostText:b.ghostText,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:d,error:u,ariaLabel:r,required:i,ariaDescribedBy:b.helperText?C:void 0}),b.helperText&&n.jsx("div",{id:C,className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(h=e.children);u&&a!=="input"&&a!=="dropdown"&&(h=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[h,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=b=>{p&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),p())};return n.jsxs("div",{className:Be("panel-row",c==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",p?"panel-row--clickable":""),onClick:p,onKeyDown:p?_:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,children:[m!=null&&n.jsx("div",{className:"panel-row__icon",children:m}),n.jsxs("div",{className:"panel-row__left",children:[g?n.jsxs("label",{htmlFor:g,className:"panel-row__label body-3",children:[r,i&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,i&&n.jsx("span",{className:"required-mark",children:"*"})]}),s&&n.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),n.jsx("div",{className:"panel-row__right",children:h})]})}function qc(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function Qx({devices:e,onRelease:t,emptyLabel:a}){const{t:r,i18n:s}=xe.useTranslation();return n.jsx("div",{className:"panel-row panel-row--device",children:["left","right"].map(l=>{const i=e[l],u=l==="left"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return n.jsxs("div",{className:"panel-row__device-column",children:[n.jsxs("div",{className:"panel-row__device-head",children:[n.jsx("span",{className:"panel-row__device-side body-2b",children:u}),i&&t&&n.jsx(be,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${u} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(l)})]}),i?n.jsxs("div",{className:"panel-row__device-info",children:[n.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&n.jsx($t,{size:"small",variant:Hu(i.device),fill:"soft",label:Vu(i.device,r)}),qc(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:qc(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),Yo(i.wornYear,i.wornMonth,i.wornDay,s.language)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:Yo(i.wornYear,i.wornMonth,i.wornDay,s.language)})})]}):n.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},l)})})}function Nr({title:e,titleLevel:t=2,icon:a,disc:r,actions:s,size:l="medium",minHeight:i,maxWidth:u,className:c,scrollable:d,scrollbarGutter:m="auto",compactRows:p=!1,useBorder:h=!0,useBg:g=!0,useRowBorder:v=!0,labelWidth:C,form:f=!1,loading:_,empty:b,children:k}){const x=Be("panel",`panel--${l}`,f?"panel--form":"",i!==void 0?"panel--fill":"",h?"":"panel--no-border",g?"":"panel--no-bg",v?"":"panel--no-row-border",p?"panel--compact-rows":"",c),N={};i!==void 0&&(N.minHeight=i),u!==void 0&&(N.maxWidth=typeof u=="number"?`${u}px`:u),C!==void 0&&(N["--panel-label-width"]=typeof C=="number"?`${C}px`:C);const y=t?`h${t}`:"div";return n.jsxs("div",{className:x,style:Object.keys(N).length?N:void 0,children:[(!!e||r!=null)&&n.jsxs("div",{className:Be("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&n.jsx(ot,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[!!e&&n.jsx(y,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&n.jsx("p",{className:"panel__disc caption-1",children:r})]}),s&&n.jsx("div",{className:"panel__actions",children:s})]}),_?n.jsx(Ln,{variant:"loading"}):b!=null&&o.Children.toArray(k).length===0?n.jsx(Ln,{variant:"empty",children:b}):d?n.jsx("div",{className:Be("panel__body--scroll",m==="stable"&&"panel__body--gutter-stable"),children:k}):k]})}function e_({cols:e=2,layout:t="grid",gap:a=1,collapseAt:r,className:s,style:l,children:i}){const u=o.useRef(null),[c,d]=o.useState();o.useEffect(()=>{const p=u.current;if(r===void 0||!p||(d(p.clientWidth),typeof ResizeObserver>"u"))return;const h=new ResizeObserver(([g])=>d(g.contentRect.width));return h.observe(p),()=>h.disconnect()},[r]);const m=r!==void 0&&c!==void 0&&c<=r;return n.jsx("div",{ref:u,className:Be("panel-grid",t==="columns"&&"panel-grid--columns",s),style:{"--panel-grid-cols":m?1:e,"--panel-grid-gap":typeof a=="number"?`${a}px`:a,...l},children:i})}function t_(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 Uc(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"}]}t_(Vt.t.bind(Vt)),Uc(Vt.t.bind(Vt));const Er="none",n_=.5,a_=1.5,r_=.25;function Bs({title:e,valueLabel:t,value:a,min:r,max:s,step:l,tickStep:i,size:u,disabled:c,onChange:d}){return n.jsxs(Ln,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(Ru,{value:a,onChange:d,min:r,max:s,step:l,size:u,showBgTick:!0,tickStep:i,ariaLabel:e,disabled:c,className:"noise-settings__slider-input"}),n.jsx("div",{className:Be("noise-settings__value","button-1",c?"noise-settings__value--disabled":""),children:t})]})}function Gc({anchorRect:e,onClose:t,hideNoiseRows:a=!1}){const{t:r}=xe.useTranslation(),s=hn("(max-width: 767px)")?40:24,l=_r(),i=Ja(l?.settings??ea),u=l?.settings.type??"defaultNoise",c=l?.settings.enabled??!0,d=l?.playbackRate??1,m=l?.mainVolume??1,p=Math.round(m*100),h=o.useCallback(_=>{try{l?.setMainVolume(Math.max(0,Math.min(1,_/100)))}catch{}},[l]),g=o.useCallback(_=>{try{l?.setPlaybackRate(_)}catch{}},[l]),v=o.useCallback(_=>{const b=Math.min(Xa,Math.max(0,Math.round(_*10)/10));try{l?.setSettings({noiseRatio:b})}catch{}},[l]),C=o.useCallback(_=>{try{_===Er?l?.setSettings({enabled:!1}):l?.setSettings({type:_,enabled:!0})}catch{}},[l]),f=[{key:Er,label:r("training.noise.type.none","\uC5C6\uC74C")},...Uc(r).map(_=>({key:_.value,label:_.label}))];return n.jsx(yn,{anchorRect:e,offset:12,onClose:t,ariaLabel:r("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:n.jsxs("div",{className:"noise-settings__header",children:[n.jsx("span",{children:r("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),n.jsx(be,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:r("common.close","\uB2EB\uAE30"),onClick:t})]}),children:n.jsxs(Nr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[n.jsx(Bs,{title:r("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:s,onChange:h}),n.jsx(Bs,{title:r("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${d.toFixed(2)}x`,value:d,min:n_,max:a_,step:r_,size:s,onChange:g}),!a&&n.jsxs(n.Fragment,{children:[n.jsx(Ln,{variant:"custom",label:r("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(_n,{ariaLabel:r("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:f,value:c?u:Er,onChange:C})}),n.jsx(Bs,{title:r("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:r("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Xa,step:Ac,size:s,disabled:!c,onChange:v})]}),a&&n.jsx("div",{className:"noise-settings__width-ghost","aria-hidden":"true",inert:!0,children:n.jsx(Ln,{variant:"custom",label:"\xA0",useFullWidth:!0,children:n.jsx(_n,{ariaLabel:"width-ghost",size:40,shape:"rounded",options:f,value:Er,onChange:()=>{}})})})]})})}function Kc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:s=0,stepCount:l=0,pageIndex:i=0,pageCount:u=1,resultOpen:c=!1,hideNoiseRows:d=!1}){const{t:m}=xe.useTranslation(),[p,h]=o.useState(!1),[g,v]=o.useState(null),[C,f]=o.useState(!1),_=o.useRef(null),b=o.useRef(null),k=_r(),x=u>0,N=x&&i<u-1,y=!x||i>=u-1,w=s===Math.max(0,l);o.useEffect(()=>{e||(h(!1),v(null))},[e]);const B=o.useCallback(()=>{h(!1),v(null)},[]),E=o.useCallback(()=>{if(p){h(!1),v(null);return}const G=_?.current?.getBoundingClientRect();G&&v(G),t?.(),h(!0)},[p,t]),D=o.useCallback(()=>{if(p){h(!1),v(null);return}const G=b?.current?.getBoundingClientRect();G&&v(G),t?.(),h(!0)},[p,t]),A=hn("(max-width: 767px)"),F=o.useRef(null),[$,K]=o.useState(null),L=o.useCallback(()=>{f(G=>{const H=!G;return K(H?F.current?.getBoundingClientRect()??null:null),H})},[]),P=o.useCallback(()=>{f(!1),K(null)},[]);o.useEffect(()=>{c&&(f(!1),K(null))},[c]);const M=n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:m("training.meter.sentence","\uC7AC\uC0DD")}),n.jsx(Uo,{analyser:k?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:m("training.meter.sentence","\uC7AC\uC0DD")})]}),n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:m("training.meter.noise","\uC18C\uC74C")}),n.jsx(Uo,{analyser:k?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:m("training.meter.noise","\uC18C\uC74C")})]})]});return Oc(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[_.current,b.current].map(G=>G?.querySelector("button")??null).find(G=>!!G&&G.getClientRects().length>0)??_.current?.querySelector("button")??null),n.jsxs("div",{className:"pp-bottom",children:[n.jsxs("div",{className:"pp-bottom__left",children:[e?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pp-bottom__settings--desktop",children:n.jsx("div",{ref:_,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(be,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:E,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:m("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:m("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),n.jsx("div",{className:"pp-bottom__settings--mobile",children:n.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(be,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:D,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:m("training.settings","\uC124\uC815")})})})]}):null,e&&n.jsx("div",{ref:F,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:n.jsx(be,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:L,selected:C,"aria-expanded":A?C:void 0,ariaLabel:m("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&C&&!A&&n.jsx("div",{className:"pp-bottom__meters",children:M})]}),e&&C&&A&&$&&n.jsx(yn,{anchorRect:$,onClose:P,ariaLabel:m("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:n.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:M})}),n.jsxs("div",{className:"pp-bottom__right",children:[y&&n.jsx(be,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:m("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:m("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!w}),N&&n.jsx(be,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:m("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:m("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!w})]}),e&&p&&n.jsx(Gc,{anchorRect:g,onClose:B,hideNoiseRows:d})]})}function Yc({title:e,subtitle:t,desc:a,depth:r,icon:s,wrapperStyle:l,iconTooltip:i,pageIndex:u,pageCount:c,progressMax:d,progressIndex:m,onBack:p,onClose:h}){const{t:g}=xe.useTranslation(),v=hn("(max-width: 767px)"),C=Number.isInteger(m)?m:u||0,f=Number.isInteger(d)?d:c||0,_=p||h,b=Array.isArray(r)?v?r[r.length-1]:r.join(" / "):r,k=typeof e=="string"?e.trim():e,x=typeof t=="string"?t.trim():t,N=!!(k||x),y=N?k||x:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),w=b||(k?t:void 0),B=v&&typeof w=="string"&&(w.includes(" \xB7 ")||w.includes(" / "))?w.split(/\s[·/]\s/).pop():w,E=o.useMemo(()=>{const D=l&&typeof l=="object"?{...l}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[l]);return n.jsxs("header",{className:"pp-title training-popup-title",children:[n.jsxs("div",{className:"pp-title__left",children:[_?n.jsx(be,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:_,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,n.jsx("div",{children:s?n.jsx(mu,{icon:s,label:e,tooltip:i,wrapperStyle:E}):null}),n.jsxs("div",{className:"pp-title__text",children:[B?n.jsx("span",{className:"pp-title__depth caption-1",children:B}):null,n.jsx("span",{className:`pp-title__title h2${N?"":" pp-title__title--empty"}`,children:y}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(Ou,{max:Math.max(0,f??0),index:Math.max(0,C??0)})]})}function o_(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function s_(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(a=>a.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}const Zc=(e,t)=>{if(!t)return t;const a=typeof Vt?.t=="function"?Vt.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function Xc(e,t,a){const r=e,s=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",l=Gl().find(u=>u.key===(r?.category_0||r?.category_main_code)),i=l?.subs?.find(u=>u.key===(r?.category_1||r?.category_sub_code));return{title:s,label:r?.title||s,depth:t,icon:l?.icon,wrapperStyle:l?.color?{"--t-item-fg":l.color}:void 0,iconTooltip:[l?Zc(`topic.${l.key}`,l.label):void 0,i?Zc(`topic.sub.${i.key}`,i.label):void 0].filter(Boolean).join(" / ")||void 0}}function ks(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function Jc(e,t,a){if(!e||typeof e!="object"||Array.isArray(e))return e;const r=e,s=typeof a=="number"&&a>0?a:Date.now();return{...r,...r.shownAt===void 0&&t?{shownAt:t}:{},...r.answeredAt===void 0?{answeredAt:new Date(s).toISOString()}:{}}}function l_(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function i_({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:l,buildResults:i,metaPatch:u}){const c=Xc(t,a,r),d=typeof u=="function"?u(c)||{}:u||{},m=t?.id||t?.title||s.length;return{id:`${e}:${m}`,meta:{...c,...d},pages:s,emptyMessage:l,buildResults:i}}function u_(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function c_(e){if(e&&typeof e=="object"){const t=e;if(Array.isArray(t.selectedValues))return t.selectedValues;if(t.selectedValue!==void 0)return t.selectedValue;if(t.selectedIndex!==void 0)return t.selectedIndex;if(t.value!==void 0)return t.value}return e}function d_(e,t=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(t))return String(t[e]??"");if(typeof e=="string")return e}function Qc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function p_(e,t,a,r){return Qc(e,t*a+r)}function m_({payload:e,selected:t,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const s=e;if(Array.isArray(s.selectedValues))return r.every(l=>s.selectedValues.includes(l))&&s.selectedValues.every(l=>r.includes(l));if(typeof s.correct=="boolean")return s.correct}if(r.length){if(typeof t=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[t]));if(typeof t<"u")return r.some(s=>String(s)===String(t))}}function h_(e){return e?Array.isArray(e.items)?e.items.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const ed=o.createContext(null);function C_(){const e=o.useContext(ed);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function f_({index:e,stepIndex:t,isLast:a=!1,lockedHint:r,title:s,choices:l=[],onDone:i,onChange:u}){const{t:c}=xe.useTranslation(),d=typeof e=="number"?e:-1,m=typeof t!="number"?"disabled":d<t?"done":d===t?"active":"disabled",[p,h]=o.useState(()=>l.map(()=>null)),g=JSON.stringify(l),v=l.length;o.useEffect(()=>{h(Array.from({length:v},()=>null))},[g]);const C=o.useRef(void 0);o.useEffect(()=>{const k=C.current;typeof k=="number"&&typeof t=="number"&&typeof e=="number"&&k>=e&&t<e&&h(Array.from({length:v},()=>null)),C.current=t},[t,e,v]);const f=o.useMemo(()=>p.filter(k=>k!==null).length+1,[p]),_=o.useCallback(k=>{if(!na(m))return;const x=p;let N;if(x[k]!=null){const w=x[k];N=x.map(B=>B!==null&&B>=w?null:B)}else N=[...x],N[k]=f;h(N);const y={selectedOrder:N,words:l,__ts:Date.now()};try{typeof u=="function"&&u(y)}catch{}if(x[k]==null&&N.length>0&&N.every(w=>w!==null))try{typeof i=="function"&&i(y)}catch{}},[m,p,f,u,i,l]),b=s??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:b,onDone:i,children:n.jsx("div",{className:"training-step__cards",children:l.map((k,x)=>n.jsx(Jo,{item:{word:k},disabled:m==="disabled",selectable:!0,selected:p[x]!==null,orderRank:p[x],onSelect:()=>_(x),flipDelay:x*120,hideLabel:!1,hideAudio:!0},`${k}-${x}`))})})}function Dr(e){return null}Dr.__isTrainingPage=!0;function xa(e,t){const a=C_();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function td({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i}=xa(e,t);return n.jsx(_s,{...a,index:r,stepIndex:s,isLast:l,onDone:i})}function nd({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=xa(e,t);return n.jsx(vs,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}function ad({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=xa(e,t);return n.jsx(xs,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}function rd({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=xa(e,t);return n.jsx(ws,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}function od({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=xa(e,t);return n.jsx(Hc,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}function b_({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=xa(e,t);return n.jsx(f_,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}const sd=3e4,g_=/^(https?:|blob:|data:audio|\/|\.\/)/;function ld(e){return typeof e=="string"&&g_.test(e)?e:null}const y_=e=>typeof e=="string"&&e.trim()!==""?e:null,As=Symbol("timed-out");function v_(e,t){if(t<=0)return Promise.resolve(As);let a;return Promise.race([Promise.resolve(e),new Promise(r=>{a=setTimeout(()=>r(As),t)})]).finally(()=>clearTimeout(a))}function x_(e){return e?Na()||Jr()?!0:typeof window<"u"&&!!window.speechSynthesis:!1}function __(e,t){const a=[],r=ld(t);r&&a.push({kind:"raw",resolve:async()=>r});const s=(e??"").trim();if(!s)return a;for(const[l,i]of[["urlResolver",Na()],["fallbackUrlResolver",Jr()]])i&&a.push({kind:l,resolve:async u=>{let c;try{c=await v_(i(s),u)}catch(m){return Tt(`question-sound-threw-${l}`,`[core] configureTTS \uC758 ${l} \uAC00 \uB358\uC84C\uB2E4 \u2014 \uADF8 \uCC28\uB840\uB294 \uAC74\uB108\uB6F4\uB2E4.`,m),null}return c===As?(Tt(`question-sound-slow-${l}`,`[core] configureTTS \uC758 ${l} \uAC00 ${sd}ms \uBC14\uD034 \uC548\uC5D0 \uC548 \uD480\uB838\uB2E4 \u2014 \uADF8 \uCC28\uB840\uB97C \uBC84\uB9AC\uACE0 \uB2E4\uC74C\uC73C\uB85C \uAC04\uB2E4. \uC11C\uBC84 \uD569\uC131\uC744 \uAE30\uB2E4\uB9AC\uB294 \uB9AC\uC878\uBC84\uB77C\uBA74 \uC774 \uC790\uB9AC\uAC00 \uAE38\uC5B4\uC9C4\uB2E4. \uC18C\uB9AC\uAC00 \uC544\uC608 \uC548 \uB098\uBA74 \uC5EC\uAE30\uBD80\uD130 \uBCF4\uB77C.`),null):y_(c)||(Tt(`question-sound-empty-${l}`,`[core] configureTTS \uC758 ${l} \uAC00 \uC8FC\uC18C\uB97C \uC548 \uC92C\uB2E4(\uBC1B\uC740 \uAC83: ${JSON.stringify(c)}) \u2014 \uADF8 \uCC28\uB840\uB294 \uAC74\uB108\uB6F4\uB2E4.`),null)}});return a}function w_(){return Date.now()+sd}const B_=(e,t)=>Math.max(0,e-Date.now())/Math.max(1,t);function k_(e){Tt("question-sound-none",`[core] "${e}" \uC758 \uC18C\uB9AC \uC8FC\uC18C\uB97C \uD55C \uC790\uB9AC\uC5D0\uC11C\uB3C4 \uBABB \uC5BB\uC5C8\uB2E4 \u2014 \uBE0C\uB77C\uC6B0\uC800 \uB0AD\uB3C5\uC73C\uB85C \uAC04\uB2E4. configureTTS \uAC00 \uAC78\uB824 \uC788\uB294\uC9C0, \uB9AC\uC878\uBC84\uAC00 \uC8FC\uC18C\uB97C \uC8FC\uB294\uC9C0 \uC704 \uC904\uB4E4\uC744 \uBCF4\uB77C.`)}function Sr(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,r=[a.text,a.label,a.value];for(const s of r){if(typeof s=="string"&&s.trim().length)return s.trim();if(typeof s=="number"||typeof s=="boolean")return String(s)}}}return null}function A_(e){return Sr(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function N_(e){return ld(Sr(e?.questionSound,e?.soundSrc,e?.audioSrc,e?.sound,e?.audio,e?.src))}function id(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const t=Sr(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function ud(e){const{score:t,contextsLength:a,results:r=[],subtitle:s,onReplay:l,onClose:i,inline:u=!1,pending:c=!1}=e||{},{t:d}=xe.useTranslation(),m=o.useId(),p=o.useCallback(()=>!c,[c]);o.useEffect(()=>{const D=a??0;if(t!=null&&D>0&&t/D>.5){const A=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(A)}},[t,a]);const h=o.useCallback(D=>{const A=id(D),F=Sr(D?.wording,D?.label);return A===!0?{variant:"main",label:F??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:A===!1?{variant:"danger",label:F??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:F??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),g=a??0,v=t??0,C=o.useMemo(()=>Array.isArray(r)?r:[],[r]),f=o.useRef(null),[_,b]=o.useState(null),k=o.useCallback(()=>{f.current?.(),f.current=null,b(null)},[]);o.useEffect(()=>k,[k]);const x=o.useRef(0),N=(D,A)=>{if(!Pn)return;const F=Math.round(performance.now()-x.current);console.debug(`[core][\uB2E4\uC2DC\uB4E3\uAE30] +${F}ms ${D}`,A??"")},y=o.useRef(0),w=o.useCallback((D,A,F)=>{k();const $=++y.current,K=()=>y.current===$;x.current=Pn?performance.now():0,N(`\uB20C\uB800\uB2E4 \u2014 \uC904 ${D}`,{text:A,rawUrl:F}),b(D),f.current=()=>{N("\uBA48\uCD94\uAC1C\uAC00 \uBD88\uB838\uB2E4(\uC8FC\uC18C \uC5BB\uAE30 \uC804)"),y.current++,Zr()};const L=H=>{N("\uD2BC\uB2E4",H);const O=hr(H,Q=>{N(`\uB05D\uB0AC\uB2E4 \u2014 ${Q?"\uB05D\uAE4C\uC9C0 \uB4E4\uC5C8\uB2E4":"\uBABB \uD2C0\uC5C8\uAC70\uB098 \uBA48\uCDC4\uB2E4"}`,{mine:K()}),Q&&K()&&(f.current=null,b(null))});return f.current=()=>{N("\uBA48\uCD94\uAC1C\uAC00 \uBD88\uB838\uB2E4(\uD2B8\uB294 \uC911)"),y.current++,O.stop(),Zr()},O.done},P=__(A,F);N("\uCC28\uB840",P.map(H=>H.kind));const M=P[0]?.kind==="raw",G=M?L(F):Promise.resolve(!1);(async()=>{if(await G||!K())return;const H=w_(),O=M?P.slice(1):P;for(let Q=0;Q<O.length;Q++){if(!K())return;N(`${O[Q].kind} \uC5D0\uAC8C \uBB3B\uB294\uB2E4`);const I=await O[Q].resolve(B_(H,O.length-Q));if(N(`${O[Q].kind} \uAC00 \uB2F5\uD588\uB2E4`,I),!K()||I&&(await L(I)||!K()))return}K()&&(N("\uC8FC\uC18C\uB97C \uD558\uB098\uB3C4 \uBABB \uC5BB\uC5C8\uB2E4 \u2014 \uB0AD\uB3C5\uC73C\uB85C \uAC04\uB2E4"),k_(A),f.current=()=>{y.current++,Zr()},N("\uB0AD\uB3C5\uD55C\uB2E4"),EC(A,{onEnd:()=>{K()&&(f.current=null,b(null))}}))})()},[k]),B=o.useMemo(()=>C.map(D=>{const A=D??{},F=A_(A)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:$,label:K}=h(A),L=Array.isArray(A.corrects)?A.corrects:[],P=L.length?L.join(", "):A.answer!=null&&A.answer!==""?String(A.answer):null,M=typeof A.selectedText=="string"?A.selectedText:null,G=id(A)===!0,H=N_(A),O=!!H||x_(F);return{problem:F,variant:$,label:K,answer:P,selectedText:M,isCorrect:G,sound:H,canHear:O}}),[C,h,d]),E=o.useMemo(()=>B.some(D=>D.answer!==null||D.selectedText!==null),[B]);return n.jsx(Wn,{onClose:i,closeOnBackdrop:!1,inline:u,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:p,footerClassName:"trp-result__foot",footer:({animateThen:D,closeWithAnimation:A})=>n.jsxs(n.Fragment,{children:[c&&n.jsx("p",{id:m,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsxs("div",{className:"trp-actions",children:[n.jsx(be,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>D(l)}),n.jsx(be,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:A,disabled:c,onDisabledClick:c?()=>{}:void 0,"aria-describedby":c?m:void 0})]})]}),children:()=>n.jsxs("div",{className:"trp-result is-on",children:[n.jsxs("header",{className:"trp-result__head",children:[n.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&n.jsx("p",{className:"trp-result__subtitle body-3",children:s}),n.jsx("div",{className:"trp-score",children:n.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:v,total:g}),children:[n.jsx("span",{className:"trp-score__big",children:v}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:g})]})})]}),B.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${E?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[n.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[n.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),E&&n.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),n.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),B.map((D,A)=>n.jsxs("div",{className:"result-table__row",role:"row",children:[n.jsxs("div",{className:"trp-row__problem",children:[n.jsx("span",{className:"trp-row__no caption-1",children:String(A+1).padStart(2,"0")}),n.jsx("div",{className:"trp-row__q body-2",children:D.problem}),D.canHear&&n.jsx(be,{htmlType:"button",size:32,type:"dot",useBorder:!1,icon:_===A?"square":"volume-2",className:"trp-row__replay",ariaLabel:_===A?d("training.result.replaySoundStop",{no:A+1,defaultValue:"{{no}}\uBC88 \uB4E3\uAE30 \uBA48\uCDA4"}):d("training.result.replaySound",{no:A+1,defaultValue:"{{no}}\uBC88 \uB2E4\uC2DC \uB4E3\uAE30"}),onClick:()=>_===A?k():w(A,D.problem,D.sound)})]}),E&&n.jsxs("div",{className:"trp-row__answers",children:[D.answer!==null&&n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),n.jsx("span",{className:"trp-row__answer-value body-2",children:D.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${D.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${D.isCorrect?"is-correct":"is-wrong"}`,children:D.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx($t,{variant:D.variant,label:D.label,fill:"soft",minWidth:80})})]},A))]})})]})})}const Ns=new Set;function E_(e){o.useEffect(()=>{if(!e||Ns.has(e))return;Ns.add(e);const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,l=0;const i=()=>{const m=Date.now();a==null&&(a=m),r==null&&(r=m)},u=()=>{r!=null&&(s+=Date.now()-r,r=null)};t()&&i();const c=()=>{if(u(),a==null)return;const m=s-l;if(m<1e3||l===0&&s<5e3)return;const p=Date.now(),h=p-m;l=s,wf({trainingType:e,startedAt:new Date(h).toISOString(),endedAt:new Date(p).toISOString()})},d=()=>{t()?i():c()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",c),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",c),c(),Ns.delete(e)}},[e])}function jr(e,t){return e&&e.id||`page-${t??0}`}function Tr(e,t){return e&&e.key||`step-${t??0}`}function Mr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function D_(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const S_=300,j_=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},$n=Object.freeze({}),cd=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function Es(e){const t=e,a=t?.results||t?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,s=Array.isArray(a)?a.filter(l=>l?.correct===!0||l?.isCorrect===!0||l?.score===1||l?.heard===!0||l?.judgement===!0).length:null;return{results:a,correct:r!=null?s:null,total:r}}const T_=e=>n.jsx(ud,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function M_(e){const{scenario:t,title:a,subTitle:r,depth:s,icon:l,wrapperStyle:i,iconTooltip:u,pageIndex:c,pageCount:d,stepIndex:m,stepCount:p,onBack:h,onComplete:g,onRoundFinished:v,onNext:C,onSettings:f,useNoiseSetting:_=!0,children:b,ariaLabel:k,label:x,buildResults:N,onResult:y,typeKey:w,entryPoint:B,dailyTotal:E,itemRef:D,renderResultPopup:A,noiseOverride:F,hideNoiseRows:$=!1}=e;E_(w&&!cd.has(w)?w:"");const K=o.useRef(0);o.useEffect(()=>{K.current=Date.now()},[]);const{t:L}=xe.useTranslation(),P=y,M=!!t,G=t?.id||null,H=t?.meta||{},O=Array.isArray(t?.pages)?t.pages:[],Q=Array.isArray(b)||o.isValidElement(b)&&typeof b!="function"?o.Children.toArray(b).filter(o.isValidElement):[],I=Q.length>0,q=le=>le===Dr||le?.__isTrainingPage===!0,Z=I&&Q.some(le=>q(le.type)),V=Z?Q.filter(le=>q(le.type)).map((le,_e)=>{const Te=le.props||{};return{id:`children-page-${_e}`,steps:o.Children.toArray(Te.children).filter(o.isValidElement),pageTop:Te.pageTop||Te.top||null,pageBottom:Te.pageBottom||Te.bottom||null}}):[{id:"children-page-0",steps:Q}],S=I&&!M&&typeof b!="function",R=S?Math.max(1,V.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 le=document.body;return le.dataset.ihabTrainingPopupCount=String(Number(le.dataset.ihabTrainingPopupCount||"0")+1),le.classList.add("ihab-training-popup-open"),()=>{const _e=Number(le.dataset.ihabTrainingPopupCount||"1")-1;_e>0?le.dataset.ihabTrainingPopupCount=String(_e):(delete le.dataset.ihabTrainingPopupCount,le.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return av()},[]);const[T,Y]=o.useState({...ea,enabled:!1}),ce=o.useRef(T);o.useEffect(()=>{ce.current=T},[T]);const re=o.useRef(F),oe=o.useRef(!1),ae=o.useRef(null);o.useEffect(()=>{let le=!1;const _e=Te=>{if(le)return;oe.current=!0;const Ze=Te?Qn({...ea,enabled:!1},Te):{...ea},Fe=ae.current;ae.current=null;const X=Fe?Qn(Ze,Fe):Ze;ce.current=X,Y(X),Fe&&!re.current&&co(X),rr(X);const ue=re.current;if(ue){const Ne=typeof ue=="function"?ue(X):ue,ze=Qn(X,Ne);ce.current=ze,Y(ze),rr(ze)}};return Lf().then(Te=>{if(le){const Ze=ae.current;if(ae.current=null,Ze&&!re.current){const Fe=Te?Qn({...ea,enabled:!1},Te):{...ea};co(Qn(Fe,Ze))}return}_e(Te)}),()=>{le=!0}},[]);const[z,ee]=o.useState(null),[W,U]=o.useState(null),de=o.useCallback((le,_e)=>{le==="main"?ee(_e):U(_e)},[]),De=o.useRef(null),ye=o.useRef(null),pe=o.useCallback(()=>{ye.current!==null&&(clearTimeout(ye.current),ye.current=null);const le=De.current;De.current=null,le&&co(le)},[]);o.useEffect(()=>{if(typeof window>"u")return;const le=()=>{document.visibilityState==="hidden"&&pe()};return window.addEventListener("pagehide",pe),document.addEventListener("visibilitychange",le),()=>{window.removeEventListener("pagehide",pe),document.removeEventListener("visibilitychange",le),pe()}},[pe]);const ie=o.useCallback(le=>{const _e=Qn(ce.current,le);if(ce.current=_e,Y(_e),!oe.current){ae.current={...ae.current??{},...le},rr(_e);return}re.current||(De.current=_e,ye.current!==null&&clearTimeout(ye.current),ye.current=setTimeout(pe,S_)),rr(_e)},[pe]),ge=T.mainSpeed,he=T.mainVolume,se=o.useCallback(le=>ie({mainSpeed:le}),[ie]),Le=o.useCallback(le=>ie({mainVolume:le}),[ie]),Oe=o.useMemo(()=>({settings:T,setSettings:ie,registerAnalyser:de,mainAnalyser:z,noiseAnalyser:W,playbackRate:ge,setPlaybackRate:se,mainVolume:he,setMainVolume:Le}),[T,ie,de,z,W,ge,se,he,Le]),Me=o.useRef(null),[qe,We]=o.useState(0),dt=o.useRef([]),[at,st]=o.useState("center"),[it,Ee]=o.useState(!1),Ue=o.useRef(!1),Ae=o.useRef(null),He=o.useCallback(le=>{Ue.current||(Ue.current=!0,Ee(!0),Ae.current=setTimeout(()=>{try{le()}catch{Ue.current=!1,Ee(!1)}},j_()?0:Jx))},[]);o.useEffect(()=>()=>{Ae.current&&clearTimeout(Ae.current)},[]);const et=o.useRef(h);o.useEffect(()=>{et.current=h});const pt=o.useRef(typeof document>"u"?null:document.activeElement);o.useEffect(()=>{const le=Me.current,_e=pt.current;if(fo(le,_e),le){const Te=Array.from(le.querySelectorAll(xn)).filter(Ze=>!Ze.closest('[aria-hidden="true"]'))[0];if(Te)try{Te.focus()}catch{}}return()=>{const Te=document.activeElement;if(!Te||Te===document.body||le&&le.contains(Te))try{bo(_e)?.focus?.()}catch{}}},[]),o.useEffect(()=>Gn(()=>He(()=>{const le=et.current;typeof le=="function"&&le()})),[He]),ho(Me,!0);const[Dt,vt]=o.useState(!1),Pt=o.useRef(!1),[nt,lt]=o.useState(null),At=o.useRef(0),Bt=o.useRef(0),ke=()=>{At.current+=1,Bt.current+=1,lt(null)},[$e,je]=o.useState(""),[Ve,Ge]=o.useState(()=>Mr()),kt=o.useRef(typeof c=="number"?c:null);o.useEffect(()=>{!M&&!S||(Ge(Mr()),ke())},[M,G,S]),o.useEffect(()=>{S&&Ge(le=>{const _e=Math.max(0,Math.min(le.pageIndex,Math.max(0,R-1)));return _e!==le.pageIndex?{...le,pageIndex:_e,stepIndex:0}:le})},[S,R]);const ut=S?Math.max(0,Math.min(Ve.pageIndex,R-1)):0,mt=S?V[ut]:null,St=S&&mt&&Array.isArray(mt.steps)?mt.steps:[],Ke=M?Ve.pageIndex:S?ut:typeof c=="number"?c:0,gt=M?O[Math.max(0,Math.min(Ve.pageIndex,Math.max(0,O.length-1)))]:null,xt=M&>&&Array.isArray(gt.steps)?gt.steps:[],Re=M?xt.length:S?St.length:typeof p=="number"?p:0,Ye=M||S?Math.max(0,Math.min(Ve.stepIndex,Math.max(0,Re))):typeof m=="number"?m:0,ft=M?O.length:S?R:typeof d=="number"?d:0;o.useEffect(()=>{if(!M&&!S)return;const le=M?jr(gt,Ke):mt?.id||`children-page-${Ke??0}`,_e=new Date().toISOString();for(let Te=0;Te<=Ye;Te+=1){const Ze=M?Tr(xt[Te],Te):`step-${Te}`,Fe=ve(le,Ze);ne.current.has(Fe)||ne.current.set(Fe,_e)}},[M,S,Ke,Ye,mt?.id]),o.useLayoutEffect(()=>{const le=kt.current;if(typeof Ke=="number"&&le!==null&&Ke!==le&&Ke>le)try{je(L("training.problemNotice",{n:Ke+1}))}catch{}kt.current=typeof Ke=="number"?Ke:kt.current},[Ke,c,L]),o.useLayoutEffect(()=>{const le=Me.current;if(!le)return;const _e=()=>le.querySelector(".page-popup__scroll");let Te=null,Ze=null,Fe=null;const X=we=>{const Xe=_e();if(!Xe)return;const rt=Xe.scrollHeight<=Xe.clientHeight;if(st(rt?"center":"top"),we&&!Pt.current){Pt.current=!0;try{vt(!0)}catch{}try{ze.disconnect()}catch{}}},ue=()=>{Te!==null&&cancelAnimationFrame(Te),Te=requestAnimationFrame(()=>{Ze!==null&&clearTimeout(Ze),Ze=setTimeout(()=>X(!0),60)})},Ne=()=>{Fe!==null&&cancelAnimationFrame(Fe),Fe=requestAnimationFrame(()=>X(!1))};ue(),window.addEventListener("resize",Ne);const ze=new MutationObserver(ue);ze.observe(le,{childList:!0,subtree:!0,attributes:!0});const me=setTimeout(()=>{Pt.current||X(!0)},400);return()=>{window.removeEventListener("resize",Ne),Te!==null&&cancelAnimationFrame(Te),Ze!==null&&clearTimeout(Ze),Fe!==null&&cancelAnimationFrame(Fe),clearTimeout(me);try{ze.disconnect()}catch{}}},[Me]);const tt=o.useCallback(le=>{Me.current&&(Me.current._childOnNext=le)},[]),Nt=o.useCallback(le=>{Me.current&&(Me.current._childOnResult=le)},[]),ne=o.useRef(new Map),ve=(le,_e)=>`${le}\0${_e}`,Pe=o.useCallback((le,_e,Te)=>{Ge(Ze=>{const Fe=Ze.answersByPage[le]||{},X=Fe[_e],ue=ks(Te),Ne=ks(X);if(X&&Ne>ue)return Ze;const ze=Jc(Te,ne.current.get(ve(le,_e)),ue);return{...Ze,answersByPage:{...Ze.answersByPage,[le]:{...Fe,[_e]:ze}}}})},[Ge]),Qe=o.useCallback((le,_e,Te)=>{const Ze=jr(gt,Ke),Fe=Tr(le,_e);Pe(Ze,Fe,Te)},[gt,Ke,Pe]),yt=o.useCallback((le,_e,Te)=>{const Ze=jr(gt,Ke),Fe=Tr(le,_e);Pe(Ze,Fe,Te),!Te?.allowChange&&le?.autoAdvance!==!1&&Ge(X=>({...X,stepIndex:Math.max(X.stepIndex,_e+1)}))},[gt,Ke,Pe,Ge]),ct=o.useCallback((le,_e)=>{const Te=mt?.id||`children-page-${Ke??0}`,Ze=typeof _e=="number"?_e:Ye??0,Fe=`step-${Ze}`;Pe(Te,Fe,le),le?.allowChange||Ge(X=>({...X,stepIndex:Math.max(X.stepIndex,Ze+1)}))},[mt,Ke,Ye,Pe,Ge]),Ft=o.useCallback((le,_e)=>{const Te=mt?.id||`children-page-${Ke??0}`,Ze=`step-${typeof _e=="number"?_e:Ye??0}`;Pe(Te,Ze,le)},[mt,Ke,Ye,Pe]),Gt=S?{currentPageIndex:Ke??0,currentStepIndex:Ye??0,totalStepsInPage:St.length,handleStepDone:ct,handleStepChange:Ft}:null,kn=async()=>{const le=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:O,flowState:Ve,answersByPage:Ve.answersByPage})):null;return typeof P=="function"&&await Promise.resolve(P(le))||le},Ht=async()=>{const le=mt?.id||`children-page-${Ve.pageIndex}`,_e=Ve.answersByPage[le]||{},Te=Z?(()=>{const X={};let ue=0;return V.forEach(Ne=>{const ze=Ve.answersByPage[Ne.id]||{},me=Array.isArray(Ne.steps)?Ne.steps.length:0;for(let we=0;we<me;we+=1){const Xe=ze[`step-${we}`];typeof Xe<"u"&&(X[`step-${ue+we}`]=Xe)}ue+=me}),X})():_e;if(typeof N=="function"){const X=await Promise.resolve(N(Te,{pageAnswers:_e,answersByPage:Ve.answersByPage,pages:V,currentPageId:le}));return typeof P=="function"&&await Promise.resolve(P(X))||X}const Ze=Object.entries(_e).map(([X,ue],Ne)=>({index:Ne,key:X,payload:ue})),Fe={results:Ze,answers:Ze,score:0};return typeof P=="function"&&await Promise.resolve(P(Fe))||Fe},Kt=()=>{const le=++At.current,_e=()=>le!==At.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(M){const Fe=kn();lt($n);const X=Fe;Promise.resolve(X).then(ue=>{_e()||lt(ue||{isEmpty:!0})}).catch(ue=>{!_e()&<({isEmpty:!0})});return}if(S){const Fe=Ht();lt($n);const X=Fe;Promise.resolve(X).then(ue=>{_e()||lt(ue||{isEmpty:!0})}).catch(ue=>{!_e()&<({isEmpty:!0})});return}const Te=Me.current&&Me.current._childOnResult,Ze=Fe=>{try{return Fe?Fe():void 0}catch{return}};if(typeof Te=="function"){const Fe=Ze(Te);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Nn&&Nn.tagName.toUpperCase()==="SCRIPT"&&Nn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Fe&&typeof Fe.then!="function"?lt(Fe):lt(Fe&&typeof Fe.then=="function"?$n:{});const X=()=>{_e()||lt(ue=>ue===$n?{}:ue)};Promise.resolve(Fe).then(ue=>{ue&&!_e()?lt(ue):X()}).catch(ue=>{X()});return}if(typeof P=="function"){const Fe=Ze(P);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Nn&&Nn.tagName.toUpperCase()==="SCRIPT"&&Nn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Fe&&typeof Fe.then!="function"?lt(Fe):lt(Fe&&typeof Fe.then=="function"?$n:{});const X=()=>{_e()||lt(ue=>ue===$n?{}:ue)};Promise.resolve(Fe).then(ue=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Nn&&Nn.tagName.toUpperCase()==="SCRIPT"&&Nn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ue&&!_e()?lt(ue):X()}).catch(ue=>{console.error("viewResults external handler failed",ue),X()});return}},Rt=()=>{if(M){if(typeof Ke=="number"&&typeof ft=="number"&&Ke<ft-1){Ge(_e=>({..._e,pageIndex:_e.pageIndex+1,stepIndex:0}));return}return Kt()}if(S){const _e=St.length;if(typeof Ye=="number"&&Ye<_e-1){Ge(Te=>({...Te,stepIndex:Te.stepIndex+1}));return}if(typeof Ke=="number"&&typeof ft=="number"&&Ke<ft-1){Ge(Te=>({...Te,pageIndex:Te.pageIndex+1,stepIndex:0}));return}return Kt()}if(typeof C=="function"){try{C()}catch{}return}const le=Me.current&&Me.current._childOnNext;if(typeof le=="function"){try{le()}catch{}return}},bt=M?H.title||H.label||k||L("common.popup","\uD31D\uC5C5"):a||x||(Array.isArray(s)?s[s.length-1]:void 0)||k||L("common.popup","\uD31D\uC5C5"),ht=k||bt,_t=M?H.title??H.label??bt:a??x??bt,Yt=(le,_e)=>{const Te=jr(gt,Ke),Ze=Tr(le,_e),Fe=Ve.answersByPage[Te]?.[Ze],X=D_(le,{page:gt,pageIndex:Ke,step:le,stepIndex:_e,storedPayload:Fe,answersByPage:Ve.answersByPage,flowState:Ve}),ue={key:Ze,index:_e,stepIndex:Ye,isLast:_e===xt.length-1};switch(le?.type){case"listen":return n.jsx(_s,{...ue,...X,onDone:Ne=>yt(le,_e,Ne)});case"confirm":return n.jsx(vs,{...ue,...X,onDone:Ne=>yt(le,_e,Ne),onChange:Ne=>Qe(le,_e,Ne)});case"confirmWithText":return n.jsx(xs,{...ue,...X,onDone:Ne=>yt(le,_e,Ne),onChange:Ne=>Qe(le,_e,Ne)});case"orderList":return n.jsx(ws,{...ue,...X,onDone:Ne=>yt(le,_e,Ne),onChange:Ne=>Qe(le,_e,Ne)});default:return null}},fn=o.useRef(void 0);o.useEffect(()=>{const le=fn.current;if(fn.current=Ke,le===void 0||le===Ke||!br())return;const _e=Me.current;if(!_e)return;const Te=document.activeElement;if(!(!Te||Te===document.body||!_e.contains(Te)||Te.disabled===!0))return;const Ze=_e.querySelector(`.training-steps ${xn.split(", ").join(", .training-steps ")}`)??Array.from(_e.querySelectorAll(xn)).find(Fe=>!Fe.closest('[aria-hidden="true"]'));try{Ze?.focus()}catch{}},[Ke]);const An=M?O.length>0?n.jsx("div",{className:"training-steps",children:xt.map((le,_e)=>Yt(le,_e))},`replay-${qe}`):n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"pp-empty",children:t?.emptyMessage||L("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Rn=S?n.jsxs(ed.Provider,{value:Gt,children:[mt?.pageTop?n.jsx("div",{className:"training-page-top",children:mt.pageTop}):null,n.jsx("div",{className:"training-steps",children:St.map((le,_e)=>{const Te=le;return o.cloneElement(Te,{...Te.props,_stepIndex:_e,_totalSteps:St.length,_stepKey:`step-${_e}`,_pageIndex:Ke})})},`replay-${qe}`),mt?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:mt.pageBottom}):null]}):null,pn=o.useRef(-1),Mt=o.useCallback(()=>{if(!w)return;const le=nt,{results:_e,correct:Te,total:Ze}=Es(nt),Fe={correct:Te,total:Ze,attempt:dt.current.length+1,previousAttempts:[...dt.current]};if(pn.current===Bt.current)return Fe;pn.current=Bt.current,Bf({items:Mf(_e),category:cd.has(w)?"sentence":"word",trainingType:w,entryPoint:B??"sentence",itemRef:D??null,correct:Te,total:Ze,score:typeof le?.score=="number"?le.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-K.current)/1e3)),dailyTotal:E??null});try{v?.(Fe)}catch{}return Fe},[w,B,E,D,nt,v]);o.useEffect(()=>{!nt||nt===$n||nt?.isEmpty||(Es(nt).total??0)>0&&Mt()},[nt,Mt]);const Qt=o.useCallback(()=>{const le=Mt();ke(),He(()=>{typeof g=="function"&&g(le),typeof h=="function"&&h()})},[g,h,Mt,lt,He]),en=o.useCallback(()=>je(""),[je]),mn=o.useCallback(()=>{He(()=>{typeof h=="function"&&h()})},[h,He]),Ot=n.jsxs("div",{className:`page-popup${it?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":ht,children:[n.jsxs("div",{ref:Me,className:`page-popup__panel ${Dt?"":"page-popup__panel--measuring"} ${at==="center"?"page-popup__panel--center":at==="top"?"page-popup__panel--top":""}`,children:[n.jsx(Yc,{title:_t,subtitle:M?H.subtitle||H.label:Array.isArray(s)?s.join(" / "):void 0,desc:M?void 0:r,depth:M?H.depth:s,icon:M?H.icon:l,wrapperStyle:M?H.wrapperStyle:i,iconTooltip:M?H.iconTooltip:u,progressMax:ft,progressIndex:Ke,pageIndex:Ke,pageCount:ft,onBack:mn,onClose:mn}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${at==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:S?Rn:M?An:typeof b=="function"?b({registerOnNext:tt,registerOnResult:Nt,panelRef:Me,setResultOverlay:lt}):b})}),n.jsx(Kc,{onSettings:f,onNext:Rt,onResult:Kt,useNoiseSettingBtn:!!(M?H.useNoiseSetting??!0:_),stepIndex:Ye,stepCount:Re,pageIndex:Ke,pageCount:ft,resultOpen:!!(nt&&!nt.isEmpty),hideNoiseRows:$})]}),nt&&!nt.isEmpty&&(A??T_)({score:nt.score,results:nt.results||nt.answers||[],contextsLength:nt.results?nt.results.length:nt.answers?nt.answers.length:0,onReplay:()=>{if(K.current=Date.now(),nt!==$n){const{correct:le,total:_e}=Es(nt);dt.current.push({correct:le,total:_e})}if(ke(),We(le=>le+1),M){if(Ge(Mr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(S){Ge(Mr());return}try{const le=Me.current&&Me.current._childOnResult;typeof le=="function"&&le({replay:!0})}catch{}},onClose:Qt,pending:nt===$n}),nt?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":L("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:n.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"page-popup__empty",children:L("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),n.jsx("div",{className:"page-popup__bottom",children:n.jsx(be,{htmlType:"button",variant:"main",size:48,onClick:Qt,label:L("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(Ca,{message:$e,position:"top",onClose:en})]}),bn=n.jsx(hs.Provider,{value:Oe,children:Ot});return typeof document<"u"&&document.body?sn.createPortal(bn,document.body):bn}const Hn=M_;Hn.Page=Dr,Hn.ListenStep=td,Hn.ConfirmStep=nd,Hn.ConfirmWithTextStep=ad,Hn.OrderListStep=rd,Hn.CardStep=od,Hn.CardOrderStep=b_;function L_({label:e,homonum:t}){const a=la()?.(e,t)??"",{imgRef:r,loading:s,hasImage:l,onLoad:i,onError:u}=Xo(a);return l?n.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&n.jsx("div",{className:"tooltip-word-image__spinner"}),n.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?0:1},onLoad:i,onError:u})]}):n.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:n.jsx("span",{children:e})})}function dd({words:e,anchorRect:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:l,offsetHeight:i}=a.current,u=window.innerWidth;let c=t.left+t.width/2-l/2,d=t.top-i-8;d<8&&(d=t.bottom+8),c=Math.max(8,Math.min(c,u-l-8)),s({left:c,top:d})},[t]),!t||e.length===0?null:sn.createPortal(n.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:n.jsx("div",{className:"tooltip-word-image__cells",children:e.map(l=>n.jsx(L_,{label:l.label,homonum:l.homonum},`${l.label}_${l.homonum??1}`))})}),document.body)}function $_({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:s,groups:l,selected:i=[],onSelect:u,maxSelect:c,onClearSelection:d,onPrint:m,onPrintEmpty:p,className:h,emptyHint:g,sectionType:v="page",disc:C}){const{t:f,i18n:_}=xe.useTranslation(),b=_.language?.startsWith("ko")??!1,{anchorRect:k,openAt:x,close:N}=Pa(),[y,w]=o.useState(null),B=o.useCallback(()=>{N(),w(null)},[N]);Ty(B,!!y);const E=(r??"").trim(),D=/^[^,[\]\s]+$/.test(E)?E:"",A=D.length>0,F=r===void 0&&t===void 0,$=A?"match":F?"original":"ganada",[K,L]=o.useState(()=>$),[P,M]=o.useState("50"),[G,H]=o.useState(1),[O,Q]=o.useState(A);O!==A&&(Q(A),L($));const I=K==="match"&&!A||K==="original"&&!F?$:K,q=o.useMemo(()=>[...A?[{value:"match",label:f("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...F?[{value:"original",label:f("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:f("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:f("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:f("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:f("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:f("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:f("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[f,A,F]),Z=o.useMemo(()=>["10","25","50","100"].map(ie=>({value:ie,label:f("wordSearch.pageSize",{count:Number(ie),defaultValue:`${ie}\uAC1C\uC529 \uBCF4\uAE30`})})),[f]),V=ie=>ie.words?.[0],S=o.useMemo(()=>{const ie=[...D].length,ge=of(D),he=new Map;return se=>{let Le=he.get(se);return Le===void 0&&(Le=ge((se.words?.[0]?.label??"").slice(0,ie))?0:1,he.set(se,Le)),Le}},[D]),R=o.useCallback((ie,ge)=>{const he=Oe=>V(Oe)?.label??"",se=Oe=>V(Oe)?.syllables??[...he(Oe)].length,Le=Oe=>(Oe.words??[]).reduce((Me,qe)=>{const We=parseInt(qe.grade??"",10);return Number.isFinite(We)&&We<Me?We:Me},999);switch(I){case"match":return S(ie)-S(ge)||cn(he(ie),he(ge));case"ganada":return cn(he(ie),he(ge));case"ganada_desc":return cn(he(ge),he(ie));case"syllable":return se(ie)-se(ge)||cn(he(ie),he(ge));case"syllable_desc":return se(ge)-se(ie)||cn(he(ie),he(ge));case"grade":return Le(ie)-Le(ge)||cn(he(ie),he(ge));case"grade_desc":return Le(ge)-Le(ie)||cn(he(ie),he(ge));default:return 0}},[I,S]),T=o.useMemo(()=>s.slice().sort(R),[s,R]),Y=Number(P)||10,ce=o.useMemo(()=>(l??[]).flatMap(ie=>ie.items.slice().sort(R).map(ge=>({item:ge,label:ie.label}))),[l,R]),re=l?ce.length:T.length,oe=Math.max(1,Math.ceil(re/Y)),ae=Math.min(G,oe),z=o.useMemo(()=>T.slice((ae-1)*Y,ae*Y),[T,ae,Y]),ee=o.useId(),W=o.useMemo(()=>{if(!l)return null;const ie=ce.slice((ae-1)*Y,ae*Y),ge=new Map;for(const{item:he,label:se}of ie)ge.has(se)||ge.set(se,[]),ge.get(se).push(he);return[...ge.entries()].map(([he,se])=>({label:he,items:se}))},[l,ce,ae,Y]);o.useEffect(()=>{H(1)},[K,P,re,r]);const U=re>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(Cn,{size:40,options:q,value:I,onChange:L,ariaLabel:f("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(Cn,{size:40,options:Z,value:P,onChange:M,ariaLabel:f("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(Cr,{page:ae,totalPages:oe,onChange:H})]}):void 0,de=ie=>{u&&u(ie)},De=t!==void 0&&a?n.jsxs(n.Fragment,{children:[f("wordSearch.resultTitlePrefix","\uCD1D "),n.jsx("span",{style:{color:"var(--color-main)"},children:t}),f("wordSearch.resultTitleSuffix",{unit:b?bf(a):a})]}):void 0,ye=t!==void 0&&t>0&&c!==void 0&&a?f("wordSearch.resultDisc",{unit:b?yf(a):a,max:c,selected:i.length}):void 0,pe=C??ye;return n.jsxs(ba,{type:v,className:Be("word-search-result-block",h),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(De||U||pe)&&n.jsxs("div",{className:"word-search-result-block__head",children:[n.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&n.jsx(ot,{icon:e,className:"word-search-result-block__head-icon"}),De&&n.jsx("span",{className:"word-search-result-block__title h3",children:De})]}),U&&n.jsx("div",{className:"word-search-result-block__head-actions",children:U}),pe&&n.jsx("div",{className:"word-search-result-block__head-disc body-3",children:pe})]}),(l?l.length===0:s.length===0)&&n.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[n.jsx("p",{className:"word-search-result-block__empty body-3",children:f("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),l?(W??[]).map(ie=>n.jsxs("div",{className:"word-search-result-block__group",role:"group","aria-labelledby":`${ee}-${ie.label}`,children:[n.jsx("div",{className:"word-search-result-block__group-label caption-1b",id:`${ee}-${ie.label}`,children:ie.label}),n.jsx("div",{className:"word-search-result-block__items",children:ie.items.map(ge=>{const he=i.includes(ge.id);return n.jsx("div",{onMouseEnter:se=>{x(se.currentTarget),w(ge.words??[])},onMouseLeave:B,children:n.jsx(be,{htmlType:"button",size:"word",align:"grid",label:(ge.words??[]).map(se=>se.label),subLabel:(ge.words??[]).some(se=>se.subLabel)?(ge.words??[]).map(se=>se.subLabel):void 0,selected:he,onClick:()=>de(ge.id),minWidth:200})},ge.id)})})]},ie.label)):n.jsx("div",{className:"word-search-result-block__items",children:z.map(ie=>{const ge=i.includes(ie.id);return n.jsx("div",{onMouseEnter:he=>{x(he.currentTarget),w(ie.words??[])},onMouseLeave:B,children:n.jsx(be,{htmlType:"button",size:"word",align:"grid",label:(ie.words??[]).map(he=>he.label),subLabel:(ie.words??[]).some(he=>he.subLabel)?(ie.words??[]).map(he=>he.subLabel):void 0,selected:ge,onClick:()=>de(ie.id),minWidth:200})},ie.id)})}),y&&k&&n.jsx(dd,{words:y,anchorRect:k})]}),oe>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(Cr,{page:ae,totalPages:oe,onChange:H})}),(d||m)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[d&&n.jsx(be,{htmlType:"button",size:"56",type:"bar",label:f("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:i.length===0,onClick:i.length===0?void 0:d}),m&&n.jsx("div",{onClick:i.length===0?p:void 0,children:n.jsx(be,{htmlType:"button",size:"56",type:"bar",variant:"main",label:f("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:i.length===0,onClick:i.length===0?void 0:m})})]})]})}function R_(e,t){return t.map(a=>{const r=typeof a=="string"?a:a.label,s=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:s}})}function P_({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:s=4,minCount:l=1,combinationSections:i,combinationSectionsForSlot:u,onSelect:c,placeholder:d="-",className:m,title:p,titleIcon:h,disc:g,showInfoButton:v=!0,onClearPhoneme:C,onSearch:f,onSearchEmpty:_,searchDisabled:b=!1,searchLabel:k,searchChecking:x=!1,pairMode:N=!1,sectionType:y="page",beforeSearchContent:w,beforeContent:B,afterContent:E,hideCountControl:D=!1,ordinal:A=!1}){const{t:F}=xe.useTranslation(),$=o.useMemo(()=>F("wordPairs.infoNotes",{returnObjects:!0}),[F]),K=o.useMemo(()=>Array.from({length:s-l+1},(S,R)=>{const T=l+R;return{key:String(T),label:F("wordPairs.count",{n:T})}}),[F,s,l]),L=o.useMemo(()=>F("wordPairs.ordinals",{returnObjects:!0}),[F]),P=o.useCallback(S=>A?F("wordPairs.phonemeOrdinalLabel",{ordinal:L[S-1]??S}):a===1?F("wordPairs.phonemeSingleLabel","\uC74C\uC808"):F("wordPairs.phonemeN",{n:S}),[A,L,a,F]),M=o.useCallback(S=>A?F("wordPairs.phonemeContrastOrdinalLabel",{ordinal:L[S-1]??S}):a===1?F("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):F("wordPairs.phonemeContrast",{n:S}),[A,L,a,F]),G=o.useCallback((S,R)=>R?n.jsxs(n.Fragment,{children:[S,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):S,[]),{anchorRect:H,toggleAt:O,close:Q}=Pa(),I=o.useCallback(S=>r(Number(S)),[r]),q=hn("(max-width: 767px)"),Z=o.useCallback(S=>R_(S,e).map(({label:R,value:T,displayLabel:Y})=>{const ce=!!T&&T!=="\uC5C6\uC74C";return n.jsxs("span",{className:Be("phoneme-select-block__cell-jamo-part",T?"":"phoneme-select-block__cell-jamo-part--empty",ce?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${T==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:T==="\uC5C6\uC74C"?"x":T||d}),ce&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Y??R})]},R)}),[e,d]),V=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(be,{htmlType:"button",size:40,type:q?"dot":void 0,icon:"info",label:q?void 0:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:H?"is-selected":void 0,"aria-expanded":!!H,"aria-haspopup":"dialog",onClick:S=>O(S.currentTarget)})}),H&&n.jsx(Kn,{title:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:$,anchorRect:H,onClose:Q})]});return n.jsxs(ba,{type:y,title:p,icon:h,disc:g,action:v?V:void 0,className:Be("phoneme-select-block",m),children:[B,!D&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(_n,{options:K,value:String(a),onChange:I,size:40,ariaLabel:F("wordPairs.countLabel","\uC74C\uC18C \uAC1C\uC218"),className:"phoneme-select-block__count-control"})}),n.jsx("div",{className:"phoneme-select-block__cells",children:N?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((S,R)=>{const T=t[R*2]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:Z(T)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:P(R+1)})]},R)})}),n.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:F("wordPairs.phonemeSelect.vs","\uB300")}),n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((S,R)=>{const T=t[R*2+1]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:Z(T)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:M(R+1)})]},R)})})]}):t.map((S,R)=>n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:Z(S)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:P(R+1)})]},R))}),(i||u)&&n.jsx("div",{className:"phoneme-select-block__panels",children:n.jsx("div",{className:"phoneme-select-block__detail",children:N?n.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((S,R)=>{const T=t[R*2]??{};return n.jsx(Mn,{title:G(P(R+1),R===0),sections:u?u(T,R*2):i,selected:T,onSelect:c?.(R*2),align:"newline"},R)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((S,R)=>{const T=t[R*2+1]??{};return n.jsx(Mn,{title:M(R+1),sections:u?u(T,R*2+1):i,selected:T,onSelect:c?.(R*2+1),align:"newline"},R)})})]}):t.map((S,R)=>n.jsx(Mn,{title:G(P(R+1),R===0),sections:u?u(S,R):i,selected:S,onSelect:c?.(R),align:"newline"},R))})}),w&&n.jsx("div",{className:"phoneme-select-block__before-search",children:w}),(C||f||x)&&(()=>{const S=t.every(R=>{const T=tf(R);return Object.entries(T).every(([Y,ce])=>!ce||Y==="coda"&&ce===Ml)});return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:S?_:void 0,children:[C&&n.jsx(be,{htmlType:"button",size:"56",type:"bar",label:F("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:S,onClick:S?void 0:C}),f?n.jsx(be,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:x?n.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:k??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:S||b||x,onDisabledClick:x?()=>{}:void 0,"aria-busy":x||void 0,onClick:f}):x?n.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[n.jsx("div",{className:"phoneme-select-block__spinner"}),n.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:k??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),E]})}function I_({title:e,sections:t,selected:a,onSelect:r,collapsible:s,defaultCollapsed:l,collapsed:i,onCollapsedChange:u,headerSummary:c,headerAction:d,className:m}){const{t:p}=xe.useTranslation();return n.jsx(Mn,{className:m,title:e??p("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,collapsible:s,defaultCollapsed:l,collapsed:i,onCollapsedChange:u,headerSummary:c,headerAction:d,align:"inline"})}function F_({title:e,headerAction:t,sections:a,selected:r,onSelect:s,className:l}){const{t:i}=xe.useTranslation();return a.length===0?null:n.jsx(Mn,{className:l,title:e??i("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:s,align:"newline"})}function O_({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:l,onPositionCountChange:i,inputMode:u,onInputModeChange:c,className:d}){const{t:m}=xe.useTranslation(),p={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},h=f=>m("wordPairs.count",{n:f}),g=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:n.jsx(Ha,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("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."),m("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."),m("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:p.phonemeOrder,items:[p.orderAny,p.orderMatch],display:"segmented",labelAction:n.jsx(Ha,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[h(1),h(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:n.jsx(Ha,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("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."),m("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={[p.searchMode]:t==="explicit"?p.explicit:t==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:h(l),[p.inputMode]:u==="phoneme"?p.pronInput:p.charInput},C=(f,_)=>{_===p.searchMode?a(f===p.explicit?"explicit":f===p.pick?"pick":"include"):_===p.phonemeOrder?s(f===p.orderMatch?"ordered":"unordered"):_===p.count?i(f===h(2)?2:1):_===p.inputMode&&c(f===p.pronInput?"phoneme":"word")};return n.jsx(Mn,{className:d,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:v,onSelect:C,align:"inline"})}function z_(e){const{title:t,items:a,columns:r,resizeStorageKey:s,gridTemplateColumns:l,mobileGridTemplateColumns:i,searchPlaceholder:u,searchFn:c,defaultSortKey:d,defaultSortAsc:m=!0,selectedId:p,selectedIds:h,onSelect:g,onClose:v,pageSizeOptions:C=[10,25,50,100],initialPageSize:f,emptyText:_,noMatchText:b,countLabel:k,topContent:x,className:N=""}=e,{t:y}=xe.useTranslation(),w=u??y("common.search","\uAC80\uC0C9"),B=_??y("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),E=b??y("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"),[D,A]=o.useState(""),[F,$]=o.useState(d??r[0]?.key??""),[K,L]=o.useState(m),[P,M]=o.useState(String(f??C[0]??10)),[G,H]=o.useState(1);o.useEffect(()=>{H(1)},[D,P]);const O=c!==null,Q=o.useCallback((re,oe)=>{if(!oe)return!0;const ae=oe.toLowerCase();return r.some(z=>{const ee=re[z.key];return ee==null?!1:String(ee).toLowerCase().includes(ae)})},[r]),I=c??Q,q=o.useMemo(()=>{const re=O?a.filter(oe=>I(oe,D)):a;return F?[...re].sort((oe,ae)=>{const z=oe[F],ee=ae[F];return z===ee?0:ur(z,ee,K)}):re},[a,D,F,K,O,I]),Z=Math.max(1,Math.ceil(q.length/Number(P)));G>Z&&H(Z);const V=Math.min(G,Z),S=q.slice((V-1)*Number(P),V*Number(P)),R=o.useCallback(re=>{F===re?L(oe=>!oe):($(re),L(!0)),H(1)},[F]),T=o.useMemo(()=>{if(typeof k=="function"){const re=q.length,oe=k(re);if(typeof oe=="string"){const ae=oe.lastIndexOf(String(re));if(ae>=0)return{prefix:oe.slice(0,ae),suffix:oe.slice(ae+String(re).length)}}return{label:oe}}if(typeof k=="string"&&k.includes("{n}")){const[re,oe]=k.split("{n}");return{prefix:re,suffix:oe}}return{prefix:y("common.totalCountPrefix","\uCD1D "),suffix:y("common.totalCountSuffix","\uAC1C")}},[k,q.length,y]),Y=o.useMemo(()=>r.map(re=>({label:re.label,onClick:re.sortable!==!1?()=>R(re.key):void 0,className:re.className,sortDir:re.sortable!==!1&&F===re.key?K?"asc":"desc":null})),[r,F,K,R]),ce=o.useMemo(()=>C.map(re=>({value:String(re),label:y("common.pageSizeLabel",{n:re})})),[C,y]);return n.jsxs(Wn,{className:`popup-list ${N}`,title:t,onClose:v,children:[x,"label"in T&&n.jsx("p",{className:"toolbar__count body-1",children:T.label}),n.jsx(Po,{count:"label"in T?void 0:{value:q.length,prefix:T.prefix,suffix:T.suffix},search:O?{value:D,onChange:A,placeholder:w}:void 0,pageSize:{options:ce,value:P,onChange:M},pagination:{page:V,total:Z,onChange:H}}),n.jsx(Ko,{size:"medium",gridTemplateColumns:l,mobileGridTemplateColumns:i,resizable:!0,resizeStorageKey:s,fields:Y,items:S,onRowClick:g,renderRow:re=>{const oe=h!=null?re.id!=null&&h.has(re.id):p!=null&&re.id===p;return r.map(ae=>({content:ae.render?ae.render(re):re[ae.key]??"",className:Be(ae.className,oe&&"popup-list__row--selected")}))},empty:O&&D!==""&&a.length>0?E:B})]})}function pd(e){const{title:t,message:a,topContent:r,details:s,children:l,confirmLabel:i,cancelLabel:u,hideCancel:c=!1,extraAction:d,confirmVariant:m="main",confirmDisabled:p=!1,onConfirm:h,closeOnConfirm:g=!0,onClose:v,inline:C,size:f="small",className:_,initialFocus:b="close"}=e,{t:k}=xe.useTranslation(),x=o.useRef(null);o.useEffect(()=>{if(C||b==="close")return;const D=x.current?.closest(".popup-panel"),A=Array.from(D?.querySelectorAll(".popup-footer--buttons button")??[]),F=b==="confirm"?A[A.length-1]:c?void 0:A[d?1:0];F&&!F.disabled&&F.focus()},[]);const N=o.useRef(!1),[y,w]=o.useState(!1),B=D=>{let A=!1;return{close:()=>{A=!0,D()},didClose:()=>A}},E=async D=>{if(N.current)return;N.current=!0;const A=typeof document<"u"?document.activeElement:null;w(!0);let F=!1;try{F=await D()}catch($){typeof console<"u"&&console.error($)}finally{F||(N.current=!1,w(!1),requestAnimationFrame(()=>{const $=document.activeElement;(!$||$===document.body)&&A?.isConnected&&A.focus()}))}};return n.jsxs(Wn,{title:t,onClose:v,closeDisabled:y,inline:C,size:f,className:Be("confirm-popup",r!=null&&"confirm-popup--has-top",_),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||y,onClick:async({closeWithAnimation:D})=>{await E(async()=>{const A=B(D);await d.onClick(A.close);const F=d.closeOnClick??!0;return F&&D(),F||A.didClose()})}}]:[],...c?[]:[{label:u??k("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:y,onClick:({closeWithAnimation:D})=>D()}],{label:i??k("common.confirm","\uD655\uC778"),variant:m,disabled:p||y,onClick:async({closeWithAnimation:D})=>{await E(async()=>{const A=B(D);return await h(A.close),g&&D(),g||A.didClose()})}}],children:[r!=null&&n.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&n.jsx(Nr,{children:s.map((D,A)=>n.jsx(Ln,{label:D.label,children:n.jsx("span",{className:"panel-row__text body-2",children:D.value})},A))}),n.jsx("p",{ref:x,className:"body-2 confirm-popup__message",children:a}),l]})}function W_(e,t,a={}){const{t:r}=xe.useTranslation(),[s,l]=o.useState(!1),i=o.useRef(!1),u=o.useCallback(()=>{i.current=!0},[]),c=o.useCallback(()=>i.current?(i.current=!1,!0):e?(l(!0),!1):!0,[e]),d=s?n.jsx(pd,{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:()=>{l(!1),t()},onClose:()=>l(!1)}):null;return{beforeClose:c,discardPopup:d,allowClose:u}}function H_({onApply:e,onCancel:t}){const{t:a}=xe.useTranslation(),[r,s]=o.useState(""),[l,i]=o.useState(!1),[u,c]=o.useState(null),d=o.useRef(null),m=o.useId();o.useEffect(()=>{d.current?.focus()},[]);const p=o.useCallback(async v=>{const C=r.trim();if(C){i(!0),c(null);try{await e(C),v()}catch(f){c(Pl(f)),i(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),h=o.useCallback((v,C)=>{v.key==="Enter"&&!v.nativeEvent.isComposing&&p(C)},[p]),g=v=>{s(v.target.value),c(null)};return n.jsx(Wn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:l,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:l,onClick:({closeWithAnimation:v})=>v()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||l,onClick:({closeWithAnimation:v})=>{p(v)}}],children:({closeWithAnimation:v})=>n.jsxs(n.Fragment,{children:[n.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),"aria-invalid":u?!0:void 0,"aria-errormessage":u?m:void 0,"aria-describedby":u?m:void 0,placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:g,onKeyDown:C=>h(C,v),disabled:l,autoComplete:"off",spellCheck:!1}),u&&n.jsx("p",{id:m,className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const md=["var(--color-main)","var(--color-sub)"],V_=2e3;function q_(e,t){if(!t.startsWith("var("))return t;try{const a=t.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function Ds({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:l=0}){const i=o.useMemo(()=>{const C=Math.floor(t/2),f=t-C,_=(b,k)=>Array.from({length:b}).map((x,N)=>{const y=6+Math.random()*12,w=Math.round(Math.min(18,y*Math.min(1.5,1+r*.4))),B=md[Math.floor(Math.random()*md.length)],E=Math.random()*300,D=(360+Math.random()*260)*r*1.2,A=(k==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,F=Math.cos(A)*D,$=Math.sin(A)*D*1.35,K=Math.random()*720-360,L=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),P=Math.random()>.7?"50%":"3px";return{id:`${k}-${N}`,side:k,size:w,color:B,delay:E,vx:F,vy:$,angularVel:K,life:L,borderRadius:P}});return[..._(C,"left"),..._(f,"right")]},[t,r]),u=o.useRef(null),c=o.useRef({}),d=o.useRef(null),m=o.useRef(s);o.useEffect(()=>{m.current=s},[s]);const p=o.useRef(null),h=o.useRef(null),g=()=>{if(typeof document>"u")return null;let C=document.querySelector("[data-ihab-effect-root]");return C||(C=document.createElement("div"),C.className="app-effect",C.dataset.ihabEffectRoot="",C.style.position="fixed",C.style.inset="0",C.style.pointerEvents="none",C.style.zIndex="99998",document.body.appendChild(C)),C};if(typeof document<"u"&&h.current==null&&(h.current=g()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const Q=setTimeout(()=>m.current?.(),0);return()=>clearTimeout(Q)}const C=1200,f=performance.now(),_=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,b=Math.max(60,(window.innerHeight||800)*.05),k=Q=>Math.max(40,(Q||window.innerWidth)*.02),x=_?.width||window.innerWidth||375,N=_?.height||window.innerHeight||812,y=Q=>{const I=[...Q].sort((q,Z)=>q-Z);return I[Math.floor(I.length/2)]||1},w=y(i.map(Q=>Math.abs(Q.vy))),B=y(i.map(Q=>Math.abs(Q.vx))),E=Math.sqrt(2*C*(N*.72+b))/w,D=w*E/C,A=x*.5/(B*D),F=(Q,I,q)=>Math.min(q,Math.max(I,Q)),$=F(E,.8,2.4),K=F(A,.7,2.2),L=a>0?a/V_:1,P=i.map(Q=>({...Q,life:Q.life*L,vx:Q.vx*K,vy:Q.vy*$,startTime:f+Q.delay,ended:!1})),M=_?{x:_.left-k(_.width),y:_.top+_.height+b}:{x:-k(window.innerWidth),y:window.innerHeight+b},G=_?{x:_.left+_.width+k(_.width),y:_.top+_.height+b}:{x:window.innerWidth+k(window.innerWidth),y:window.innerHeight+b},H=Q=>{let I=!1;for(const q of P){const Z=c.current[q.id];if(!Z||!Z)continue;if(Q<q.startTime){Z.style.display="none",I=!0;continue}if(!q._inited){const z=q.side==="left"?M.x:G.x,ee=q.side==="left"?M.y:G.y;Z.style.left=`${z}px`,Z.style.top=`${ee}px`,Z.style.transform="translate3d(0px, 0px, 0)",Z.style.display="block",Z.style.zIndex="100000",typeof q.color=="string"&&q.color.startsWith("var(")&&(Z.style.background=q_(Z,q.color)??"#FF0060"),q._inited=!0}const V=(Q-q.startTime)/1e3;if(V<0)continue;const S=q.life/1e3;if(V>=S){Z.style.opacity="0",Z.style.display="none",q.ended=!0;continue}I=!0;const R=q.side==="left"?M.x:G.x,T=q.side==="left"?M.y:G.y,Y=R+q.vx*V,ce=T+q.vy*V+.5*C*V*V,re=(q.angularVel||0)*V,oe=Y-R,ae=ce-T;Z.style.transform=`translate3d(${oe}px, ${ae}px, 0) rotate(${re}deg)`,Z.style.opacity=`${Math.max(0,1-V/S)}`}I?d.current=requestAnimationFrame(H):m.current?.()};d.current=requestAnimationFrame(H);const O=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const Q=document.createElement("div");Q.className="party-container",Q.style.position="fixed",Q.style.inset="0",Q.style.pointerEvents="none",Q.style.overflow="visible",Q.style.zIndex="2147483647";for(const I of i){const q=document.createElement("span");q.className=`confetti confetti--${I.side}`,q.setAttribute("aria-hidden","true"),q.style.display="none",q.style.position="fixed",q.style.left="0px",q.style.top="0px",q.style.width=`${I.size}px`,q.style.height=`${Math.max(4,I.size*.6)}px`,q.style.background=I.color,q.style.borderRadius=I.borderRadius,q.style.transform="translate3d(0,0,0)",q.style.opacity="0",Q.appendChild(q),c.current[I.id]=q}(document.body||h.current).appendChild(Q),p.current=Q}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(O),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,l,i]),!e)return null;const v=n.jsx("div",{className:"party-container",ref:u,children:i.map(C=>n.jsx("span",{"aria-hidden":!0,ref:f=>{c.current[C.id]=f},className:`confetti confetti--${C.side}`,style:{width:`${C.size}px`,height:`${Math.max(4,C.size*.6)}px`,background:C.color,borderRadius:C.borderRadius}},`${C.id}-${l}`))});return typeof document<"u"?sn.createPortal(v,h.current||document.body):v}const Ss=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function U_({trigger:e=0,active:t=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const l=i=>{const u=i.detail??{};r(c=>({n:(c?.n??0)+1,count:Ss(u.count),strength:Ss(u.strength),duration:Ss(u.duration)}))};return window.addEventListener("party:trigger",l),()=>window.removeEventListener("party:trigger",l)},[]);const s=o.useCallback(()=>r(null),[]);return n.jsxs(n.Fragment,{children:[n.jsx(Ds,{active:t,trigger:e}),a&&n.jsx(Ds,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function G_({title:e,sub:t,rightAction:a,titleAction:r,badge:s,badgeVariant:l="default",documentTitle:i,onBack:u,backLabel:c,wrap:d=!1}){const{t:m}=xe.useTranslation();gy(typeof e=="string"?e:i??null);const p=c??m("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[n.jsxs("div",{className:"page-title__main",children:[n.jsxs("div",{className:"page-title__title-row",children:[u&&n.jsx(be,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:u}),n.jsx("h1",{className:"page-title__title h1",children:e}),s&&n.jsx("div",{className:"page-title__badge",children:n.jsx($t,{label:s,size:"small",variant:l,fill:"outline"})}),r?n.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&n.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?n.jsx("div",{className:"page-title__action",children:a}):null]})}function K_(e){return e??""}const hd=o.createContext({words:[],loading:!1});function Y_(){return o.useContext(hd)}function Z_({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:l,progress:i,clearAndRefetch:u,checkRemoteVersion:c,children:d}){const m=o.useMemo(()=>({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:l,progress:i,clearAndRefetch:u,checkRemoteVersion:c}),[e,t,a,r,s,l,i,u,c]);return n.jsx(hd.Provider,{value:m,children:d})}function X_({items:e,actions:t,columns:a,flat:r=!1,className:s,style:l}){const i=a??e.length;return n.jsx("section",{className:Be("summary-strip",r&&"summary-strip--flat",s),style:{"--summary-strip-cols":String(i),...l},children:n.jsxs("div",{className:"summary-strip__row",children:[n.jsx("div",{className:"summary-strip__items",children:e.map((u,c)=>n.jsxs("div",{className:"summary-strip__item",children:[n.jsx("p",{className:"summary-strip__label caption-1",children:u.label}),n.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})]},c))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const J_=(e,t)=>`${e} / ${t}`;function Q_({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:s=J_,pageWidth:l,pageHeight:i,margin:u,className:c,style:d}){const{t:m}=xe.useTranslation(),p=o.useRef(null),h=o.useRef(null),g=o.useRef(null),v=o.useRef(null),[C,f]=o.useState(null),[_,b]=o.useState(!1);o.useEffect(()=>{const L=p.current;if(!L)return;const P=()=>b(L.scrollWidth>L.clientWidth+1);if(P(),typeof ResizeObserver>"u")return;const M=new ResizeObserver(P);return M.observe(L),()=>M.disconnect()},[C]);const k=e.map(L=>`${L.id}\0${L.section??""}\0${L.group??""}`).join(""),x=C&&C.shape===k?C.pages:null,[N,y]=o.useState(0);o.useEffect(()=>{const L=v.current;if(!L||typeof ResizeObserver>"u")return;const P=new ResizeObserver(()=>y(L.offsetHeight));return P.observe(L),()=>P.disconnect()},[]);const[w,B]=o.useState(0);o.useEffect(()=>{const L=h.current;if(!L||typeof ResizeObserver>"u")return;let P=null;const M=typeof requestAnimationFrame=="function"?O=>requestAnimationFrame(O):O=>setTimeout(O,16),G=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:O=>clearTimeout(O),H=new ResizeObserver(()=>{P==null&&(P=M(()=>{P=null,B(O=>O+1)}))});return Array.from(L.children).forEach(O=>H.observe(O)),()=>{H.disconnect(),P!=null&&G(P)}},[k]),o.useLayoutEffect(()=>{const L=h.current,P=v.current;if(!L||!P)return;const M=S=>S.getBoundingClientRect().height||S.offsetHeight,G=new Map;g.current?.querySelectorAll("[data-chrome-section]").forEach(S=>{G.set(S.dataset.chromeSection??"",M(S))});const H=S=>M(P)-(G.get(S??"")??0),O=Array.from(L.children).map(S=>M(S)),Q=[];e.forEach((S,R)=>{const T=Q[Q.length-1],Y=T?e[T[0]]:void 0;Y&&S.group!=null&&Y.group===S.group&&Y.section===S.section?T.push(R):Q.push([R])});const I=[];let q=[],Z=0;const V=()=>{q.length&&I.push(q),q=[],Z=0};Q.forEach(S=>{const R=S.reduce((Y,ce)=>Y+O[ce],0),T=H(e[S[0]].section);q.length&&e[q[0]].section!==e[S[0]].section&&V(),R>T?S.forEach(Y=>{q.length&&Z+O[Y]>T+.01&&V(),q.push(Y),Z+=O[Y]}):(q.length&&Z+R>T+.01&&V(),S.forEach(Y=>q.push(Y)),Z+=R)}),V(),f(S=>S&&S.shape===k&&JSON.stringify(S.pages)===JSON.stringify(I)?S:{shape:k,pages:I})},[k,N,l,i,u,w]);const E=Mo,D=E,A=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:D,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),F=(L,P,M)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:M!=null&&t?.[M]||null}),a]}),footer:n.jsxs("div",{className:"report-doc__footer caption-1",children:[n.jsx("span",{className:"report-doc__footer-left",children:A}),n.jsx("span",{className:"report-doc__page-no",children:s(L,P)})]})}),$=Array.from(new Set(e.map(L=>L.section??""))),K={...l?{"--report-page-w":l}:null,...i?{"--report-page-h":i}:null,...u?{"--report-margin":u}:null,...d};return n.jsxs("div",{ref:p,className:Be("report-doc",c),style:K,tabIndex:_?0:void 0,role:_?"group":void 0,"aria-label":_?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[n.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[n.jsx("div",{ref:v,className:"report-doc__ruler"}),n.jsx("div",{ref:g,children:$.map(L=>{const P=F(1,1,L||void 0);return n.jsxs("div",{"data-chrome-section":L,children:[P.header,P.footer]},L)})}),n.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(L=>n.jsx("div",{children:L.content},L.id))})]}),x&&n.jsx("div",{className:"report-doc__pages",children:x.map((L,P)=>{const{header:M,footer:G}=F(P+1,x.length,e[L[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[M,L.map(H=>n.jsx("div",{children:e[H].content},e[H].id)),G]},P)})})]})}function ew({title:e,fields:t,columns:a=4,className:r,style:s}){return n.jsxs("div",{className:Be("report-info",r),style:{"--report-info-cols":String(a),...s},children:[e&&n.jsx("p",{className:"report-info__title h5b",children:e}),n.jsx("div",{className:"report-info__grid",children:t.map((l,i)=>n.jsxs("div",{className:"report-info__field body-2",children:[n.jsx("span",{className:"report-info__label body-3",children:l.label}),n.jsx("span",{className:"report-info__value",children:l.value})]},i))})]})}const aa=new Map;let Lr=null;const tw=12;function nw(e){for(let t=e.parentElement;t&&t!==document.body;t=t.parentElement){const a=window.getComputedStyle(t);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return t}return document}function $r(){const e=new Map;for(const t of aa.keys()){if(!t.isConnected)continue;const a=nw(t),r=e.get(a)??[];r.push(t),e.set(a,r)}for(const t of e.values()){t.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of t){a>0?r.style.setProperty("--update-alert-stack-offset",`${a}px`):r.style.removeProperty("--update-alert-stack-offset");const s=r.getBoundingClientRect().height;s>0&&(a+=s+tw)}}}function aw(e){return typeof window>"u"?()=>{}:(aa.set(e,(aa.get(e)??0)+1),aa.get(e)===1&&typeof ResizeObserver<"u"&&(Lr??(Lr=new ResizeObserver(()=>$r())),Lr.observe(e)),$r(),()=>{const t=(aa.get(e)??1)-1;if(t>0){aa.set(e,t),$r();return}aa.delete(e),Lr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),$r()})}function rw({title:e,message:t,actionLabel:a,onAction:r,icon:s,onClose:l,className:i=""}){const{t:u}=xe.useTranslation(),c=a??u("common.update","\uC5C5\uB370\uC774\uD2B8"),d=o.useRef(null),m=o.useRef(!1);return o.useLayoutEffect(()=>{const p=d.current,h=p?.parentElement?.closest(".update-alert-stack")??p,g=h?aw(h):null;return()=>{g?.(),m.current&&p&&p.contains(document.activeElement)&&sr(p)}},[]),n.jsxs("div",{ref:d,className:Be("update-alert",i),role:"alert",children:[l&&n.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{m.current=!0,l()},"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"}),n.jsxs("div",{className:"update-alert__top",children:[n.jsx("div",{className:"update-alert__icon",children:s??n.jsx(Ws,{size:20,strokeWidth:2})}),n.jsxs("div",{className:"update-alert__body",children:[n.jsx("div",{className:"update-alert__title h4",children:e}),n.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&n.jsx(be,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:c})]})}function ow({title:e,titleLevel:t=3,description:a,topActions:r,children:s,footerLeft:l,footerRight:i,ariaLabel:u,onClick:c,draggable:d,onDragStart:m,onDragEnd:p,className:h}){const g=t?`h${t}`:"div",v=l!=null||i!=null,C=s!=null&&s!==!1,f=o.useCallback(_=>{c&&_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),c())},[c]);return n.jsxs("div",{className:Be("training-card",c?"training-card--clickable":"",h),onClick:c,onKeyDown:c?f:void 0,role:c?"button":void 0,"aria-label":c?u??(typeof e=="string"?e:void 0):void 0,tabIndex:c?0:void 0,draggable:d,onDragStart:m,onDragEnd:p,children:[n.jsxs("div",{className:"training-card__header",children:[n.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?n.jsx(g,{className:"training-card__title h4",children:e}):e,r!=null&&n.jsx("div",{className:"training-card__top-actions",onClick:_=>_.stopPropagation(),children:r})]}),a!=null?typeof a=="string"?n.jsx("p",{className:"training-card__description body-3",children:a}):a:n.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),C&&n.jsx("div",{className:"training-card__body",children:s}),v&&n.jsxs("div",{className:"training-card__footer",children:[l!=null&&n.jsx("div",{className:"training-card__footer-left",children:l}),i!=null&&n.jsx("div",{className:"training-card__meta",children:i})]})]})}function sw({title:e,titleLevel:t=3,count:a,collapsed:r=!1,onToggle:s,beforeSort:l,sort:i,actions:u,empty:c=!1,emptyContent:d,dragOver:m=!1,onDragOver:p,onDragLeave:h,onDrop:g,children:v,className:C}){const{t:f}=xe.useTranslation(),_=o.useId(),b=t?`h${t}`:"span",k=s!=null,x=Be("training-card-group",m&&"training-card-group--dragover",r&&"training-card-group--collapsed",k&&"training-card-group--collapsible",C);return n.jsxs("div",{className:x,onDragOver:p,onDragLeave:h,onDrop:g,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?_:void 0,children:[n.jsxs("header",{className:"training-card-group__header",children:[k&&n.jsx(be,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:typeof e=="string"&&e?r?f("common.expandFor",{name:e}):f("common.collapseFor",{name:e}):r?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:s}),typeof e=="string"?n.jsx(b,{id:_,className:"training-card-group__title h5b",children:e}):e,a!==void 0&&n.jsx("span",{className:"training-card-group__count body-3b",children:a}),(l!=null||i||u!=null)&&n.jsxs("span",{className:"training-card-group__actions",onClick:N=>N.stopPropagation(),children:[l,i&&n.jsx(Cn,{size:40,options:i.options,value:i.value,placeholder:i.placeholder,onChange:i.onChange,ariaLabel:typeof e=="string"&&e?f("common.sortFor",{name:e}):void 0}),u]})]}),!r&&(c?n.jsx("div",{className:"training-card-group__empty body-3",children:d}):n.jsx("div",{className:"training-card-group__grid",children:v}))]})}const lw="speechear:saved_word_tables";function iw(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function uw(){try{const e=localStorage.getItem(lw);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(iw):[]}catch{return[]}}function Cd(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 js(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function cw(e){const t=new Set;return e.map(a=>{let r=a.id;for(let s=2;t.has(r);s++)r=`${a.id}~${s}`;return t.add(r),r===a.id?a:{...a,id:r}})}function dw({title:e,titleIcon:t,disc:a,filterTitle:r,filterCollapsible:s,filterDefaultCollapsed:l,filterCollapsed:i,onFilterCollapsedChange:u,filterHeaderSummary:c,brand:d,code:m,baseItem:p,baseContentTypes:h,items:g,onSaveComplete:v,onLoad:C,onRemoveItem:f,onReset:_,resetLabel:b,saveButtonLabel:k,secondarySaveButtonLabel:x,onReorder:N,showCellCount:y,onAddItem:w,className:B,renderSavePopup:E,renderWordSearch:D,hideControls:A,saveOnly:F,tableName:$,nameValue:K,onNameChange:L,descriptionValue:P,onDescriptionChange:M,namePlaceholder:G,descriptionPlaceholder:H,existingNames:O,editingName:Q,onCancel:I,initialItemsPerPage:q,renderCellAction:Z,actionsLeftExtra:V}){const{t:S}=xe.useTranslation(),R=b??S("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),T=g===void 0,Y=!!L,[ce,re]=o.useState([]),oe=(K??"").trim(),ae=oe||(G??"").trim(),z=(P??"").trim()||(H??"").trim(),ee=(O??[]).map(me=>me.trim().toLowerCase()),W=[Q?.trim().toLowerCase(),...ce].filter(me=>!!me),U=[...ee];for(const me of W){const we=U.indexOf(me);we!==-1&&U.splice(we,1)}const de=oe!==""&&U.includes(oe.toLowerCase()),[De,ye]=o.useState(Array(4).fill(null)),[pe,ie]=o.useState(4),[ge,he]=o.useState(null),se=De.slice(0,pe),Le=!!d?.show,[Oe,Me]=o.useState(!0),[qe,We]=o.useState(!0),dt=d&&{...d,top:Oe,bottom:qe},[at,st]=o.useState("landscape"),[it,Ee]=o.useState(["image","word","standardPron"]),[Ue,Ae]=o.useState("show"),[He,et]=o.useState(!0),[pt,Dt]=o.useState(!0),vt=o.useRef(null),Pt=o.useRef([]),[nt,lt]=o.useState(q==="all"?Number.POSITIVE_INFINITY:q??8),[At,Bt]=o.useState("right"),[ke,$e]=o.useState(!1),[je,Ve]=o.useState(!1),{toastMessage:Ge,toastType:kt,showWarning:ut,clearToast:mt}=Wi("warning"),St=o.useCallback(()=>he(null),[he]);w&&!T&&!y&&Tt("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.'),p&&T&&Tt("word-table-block-base-item-in-edit","[WordTableBlock] baseItem \uC740 \uD45C\uC2DC \uBAA8\uB4DC(items \uB97C \uC8FC\uB294 \uAF34)\uC5D0\uC11C\uB9CC \uAC78\uB9B0\uB2E4 \u2014 \uD3B8\uC9D1 \uACA9\uC790\uC5D0\uB294 \uC11C\uC9C0 \uC54A\uB294\uB2E4.");const[Ke,gt]=o.useState(()=>Math.max(g?.length??1,1)),xt=T?pe:y?Math.max(Ke,g?.length??1,1):Math.max(g?.length??0,1),{width:Re,height:Ye}=Jn[at],ft=!T&&!y,tt=g?.length??0,Nt=Math.min(nt,Math.max(tt,1)),ne=ft?Nt:xt,ve=ft?Qu(g??[],ne):null,Pe=!!ve&&ve.length>1,Qe=T?se.some(me=>me!==null&&me.length>1):(g??[]).some(me=>(me.words??[]).length>1),yt=$?.trim()||`${ql(La())} ${Qe?S("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):S("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,ct=o.useCallback(()=>Pe?Pt.current.filter(me=>me!==null):vt.current?[vt.current]:[],[Pe]),{print:Ft,openNewWindow:Gt,downloadHtml:kn}=us({getElements:ct,paperW:Re,paperH:Ye,fileName:yt,onPopupBlocked:()=>{ut(S("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."))}}),Ht=me=>{ie(me),ye(we=>we.length>=me?we:[...we,...Array(me-we.length).fill(null)]),he(null)},Kt=me=>{ye(we=>{const Xe=[...we];return Xe[me]=null,Xe}),ge===me&&he(null)},Rt=me=>{if(ge===null)return;const we=ge;ye(rt=>{const Ce=[...rt];return Ce[we]=me.length>0?me:null,Ce});const Xe=se.findIndex((rt,Ce)=>Ce>we&&rt===null);he(Xe!==-1?Xe:null)},bt=T?se.some(me=>me?.some(we=>!!we.colloquialPronunciation)):(g??[]).some(me=>(me.words??[]).some(we=>!!we.colloquialLabel)),ht=o.useMemo(()=>la()?T?De.slice(0,pe).flatMap(me=>(me??[]).map(we=>[we.word,we.homonum])):(g??[]).flatMap(me=>(me.words??[]).map(we=>[we.label,we.homonum])):[],[T,De,pe,g]),[_t,Yt]=o.useState(!1);o.useEffect(()=>{if(ht.length===0)return;let me=!1;return Promise.all(ht.map(([we,Xe])=>Dl(we,Xe))).then(we=>{me||Yt(we.some(Boolean))},()=>{}),()=>{me=!0}},[ht]);const fn=ht.length>0&&_t,An=o.useMemo(()=>[...T||y?[{label:S("wordTable.filter.columns","\uCE78 \uC218"),items:E4.map(me=>({value:`${me}\uCE78`,displayLabel:S("wordTable.filter.column",{count:me})})),display:"segmented"}]:[],...ft&&(g?.length??0)>0?[bc(S,{hasPairs:Qe,itemCount:tt})]:[],...Pe?[D4(S)]:[]],[S,T,y,ft,g?.length,Qe,tt,Pe]),Rn={...T||y?{[S("wordTable.filter.columns","\uCE78 \uC218")]:`${xt}\uCE78`}:{},...ft&&(g?.length??0)>0?{[S(Qe?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Nt}\uAC1C`}:{},...Pe?{[S("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:At}:{}},pn=(me,we)=>{we===S("wordTable.filter.columns","\uCE78 \uC218")?T?Ht(parseInt(me)):gt(parseInt(me)):we===S(Qe?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?lt(gc(parseInt(me),tt)):we===S("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Bt(yc(me))},Mt=T?cw(se.filter(me=>me!==null&&me.length>0).map(me=>({id:js(me),words:me.map(Cd)}))):g??[],Qt=()=>{T&&ye(me=>me.length>pe?me.slice(0,pe):me)},en=(me=!1)=>{if(Ve(me),Y&&v){const we=ae.trim().toLowerCase();we&&re(Xe=>Xe.includes(we)?Xe:[...Xe,we]),v(ae,Mt,z||void 0,me),Qt();return}if(F&&v){v("",Mt,void 0,me),Qt();return}if(v){$e(!0);return}kn()},[mn,Ot]=o.useState(!1),[bn,le]=o.useState(""),_e=bn.trim(),Te=_e!==""&&ee.includes(_e.toLowerCase()),Ze=()=>{le(ae?S("wordTable.save.copyName",{name:ae,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),Ot(!0)},Fe=()=>{!_e||Te||!v||(v(_e,Mt,z||void 0,!0),Qt(),Ot(!1))},X=Mt.length===0,ue=X||Y&&(ae===""||de),Ne=()=>{if(X){ut(S("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(Y&&ae===""){ut(S("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}Y&&de&&ut(S("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},ze=n.jsx(ga,{items:Mt,orientation:at,contentTypes:it,baseItem:p,baseContentTypes:h,cutLine:Ue,showOutline:He,showDivLine:pt,count:xt});return n.jsxs(n.Fragment,{children:[n.jsxs(ba,{type:"page",icon:t,title:e,disc:a,className:Be("word-table-block",B),children:[mn&&n.jsx(Wn,{size:"small",title:x??S("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Ot(!1),footer:({closeWithAnimation:me})=>n.jsxs(n.Fragment,{children:[n.jsx(be,{htmlType:"button",size:48,type:"bar",label:S("common.cancel","\uCDE8\uC18C"),onClick:me}),n.jsx(be,{htmlType:"button",size:48,type:"bar",variant:"main",label:S("common.save","\uC800\uC7A5"),disabled:!_e||Te,onClick:Fe})]}),children:n.jsx(Xn,{label:S("wordTable.save.nameLabel","\uC774\uB984"),value:bn,onChange:le,placeholder:S("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:Fe,error:Te?S("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),ke&&v&&E?.({defaultName:typeof e=="string"?e:S("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:ze,previewW:Re,previewH:Ye,items:Mt,existingNames:uw().map(me=>me.name),saveAsNew:je,onSave:(me,we)=>{v(me,Mt,we,je),Qt(),$e(!1)},onCancel:()=>$e(!1)}),(T||w)&&ge!==null&&D?.({cellIndex:ge,onConfirm:T?Rt:me=>{if(w){const we=me[0];if(we){const Xe=new Set((g??[]).map(Ce=>Ce.id));let rt=js([we]);for(let Ce=2;Xe.has(rt);Ce++)rt=`${js([we])}~${Ce}`;w({id:rt,words:[Cd(we)]})}}he(null)},onClose:St}),!A&&n.jsx(os,{title:r,collapsible:s,defaultCollapsed:l,collapsed:i,onCollapsedChange:u,headerSummary:c,hasImage:fn,hasColloquial:bt,contentTypes:it,orientation:at,showOutline:He,cutLine:Ue,showDivLine:pt,setters:{setContentTypes:Ee,setOrientation:st,setShowOutline:et,setCutLine:Ae,setShowDivLine:Dt,setShowTopInfo:Me,setShowBottomInfo:We},showCutLine:(ft?ne:xt)>1,showDivLine2:Qe,middleSections:An,extraSelected:Rn,onExtraSelect:pn,showPaperBands:Le,showTopInfo:Oe,showBottomInfo:qe}),Pe&&ve?n.jsx("div",{className:"word-table-block__pages",children:ve.map((me,we)=>n.jsx(ga,{orientation:at,contentTypes:it,cutLine:Ue,showOutline:He,showDivLine:pt,count:ne,items:me,baseItem:p,baseContentTypes:h,onRemoveItem:f,onReorder:N&&((Xe,rt)=>N(Xe+we*ne,rt+we*ne)),renderCellAction:Z&&((Xe,rt)=>Z(Xe+we*ne,rt)),brand:dt,code:m,contentRef:Xe=>{Pt.current[we]=Xe},pageNumber:{current:we+1,total:ve.length},pageNumberPosition:At},we))}):n.jsx(ga,{orientation:at,contentTypes:it,cutLine:Ue,showOutline:He,showDivLine:pt,count:xt,items:T?void 0:g??[],baseItem:T?void 0:p,baseContentTypes:h,editCells:T?se:void 0,activeCell:ge,onActivateCell:T||w?he:void 0,onRemoveCell:T?Kt:void 0,onRemoveItem:T?void 0:f,onReorder:T?void 0:N,renderCellAction:T?void 0:Z,brand:dt,code:m,showFillerAdd:!!w,contentRef:vt}),!A&&!F&&V!=null&&n.jsx("div",{className:"word-table-block__table-actions",children:V}),Y&&!A&&n.jsxs(Nr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(Ln,{variant:"custom",label:S("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(Xn,{required:!0,value:K??"",onChange:L,placeholder:G?G+S("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):S("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:S("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:de?S("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:me=>{(me.key==="Tab"&&!me.shiftKey||me.key===" ")&&!(K??"").trim()&&(G??"").trim()&&(me.preventDefault(),L?.(G??""))}})}),n.jsx(Ln,{variant:"custom",label:S("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(Xn,{value:P??"",onChange:M,placeholder:H?H+S("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):S("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:S("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:me=>{(me.key==="Tab"&&!me.shiftKey||me.key===" ")&&!(P??"").trim()&&(H??"").trim()&&(me.preventDefault(),M?.(H??""))}})})]})]}),!A&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!F&&C&&n.jsx(be,{htmlType:"button",size:40,type:"bar",label:S("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:C}),!F&&_&&n.jsx(be,{htmlType:"button",size:40,type:"bar",label:R,onClick:_}),!F&&n.jsx(be,{htmlType:"button",size:40,type:"bar",label:S("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Gt})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[I&&n.jsx(be,{htmlType:"button",size:"56",type:"bar",label:S("common.cancel","\uCDE8\uC18C"),onClick:I}),!F&&n.jsx(be,{htmlType:"button",size:"56",type:"bar",label:S("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:Ft}),x&&n.jsx(be,{htmlType:"button",size:"56",type:"bar",label:x,onClick:()=>Y?Ze():en(!0),disabled:X,onDisabledClick:()=>{ut(S("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),n.jsx(be,{htmlType:"button",size:"56",type:"bar",variant:"main",label:k??S("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>en(!1),disabled:ue,onDisabledClick:Ne})]})]}),n.jsx(Ca,{message:Ge,type:kt,onClose:mt})]})}const pw=8;function fd({items:e,className:t}){const{t:a}=xe.useTranslation(),r=e.length,s=r<=3?1:2,l=pw,i=r>l,u=e.slice(0,i?l-1:l),c=r-u.length,d=Math.ceil(Math.min(r,l)/s)||1,m=s*d;return n.jsx("div",{className:Be("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${s}, 1fr)`},children:Array.from({length:m},(p,h)=>{if(i&&h===l-1)return n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--more",children:n.jsx("span",{className:"word-table-thumb__more body-3",children:a("wordTable.thumbMore",{count:c,defaultValue:"+{{count}}"})})},h);const g=u[h];return g?n.jsx("div",{className:"word-table-thumb__cell",children:(g.words?.length?g.words:[{label:g.id}]).map((v,C)=>n.jsxs(o.Fragment,{children:[C>0&&n.jsx("span",{className:"word-table-thumb__divider"}),n.jsx("span",{className:"word-table-thumb__word body-3",children:v.label})]},C))},h):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},h)})})}function mw({items:e,name:t,description:a,createdAt:r,code:s,published:l,publishedLabel:i,shared:u,sharedLabel:c,isNew:d,publisherName:m,publishedAt:p,likeCount:h,downloadCount:g,onPublisherClick:v,selected:C,onClick:f,onMore:_,titleNode:b,className:k}){const{t:x}=xe.useTranslation(),N=b!=null,y=m!=null||p!=null||h!=null||g!=null,w=B=>{B.target===B.currentTarget&&!N&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),f?.())};return n.jsxs("div",{className:Be("word-table-button",C?"word-table-button--selected":"",y?"":"word-table-button--no-footer",k),role:"button",tabIndex:0,"aria-label":s?`${t} (${s})`:t,onClick:N?void 0:f,onKeyDown:w,children:[d&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":x("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(fd,{items:e,className:"word-table-button__thumb"}),n.jsxs("div",{className:"word-table-button__info",children:[n.jsxs("div",{className:"word-table-button__info-text",children:[b??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),_&&!N&&n.jsx(be,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:x("common.moreFor",{name:t}),onClick:B=>{B.stopPropagation(),_(B)}})]}),(s||r||l||u)&&n.jsxs("div",{className:"word-table-button__meta-row",children:[n.jsx("span",{className:"word-table-button__meta-left",children:n.jsx("span",{className:"word-table-button__meta caption-1",children:r?Vl(r,x):""})}),n.jsxs("span",{className:"word-table-button__meta-right",children:[(l||u)&&n.jsxs("span",{className:"word-table-button__badges",children:[l&&n.jsx($t,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??x("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),u&&n.jsx($t,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??x("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),s&&n.jsx("span",{className:"word-table-button__code caption-1",children:s})]})]}),y&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[m&&(v?n.jsx("button",{className:"training-card__publisher body-4",type:"button","aria-label":x("wordTable.publisherFilter",{name:m,defaultValue:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30"}),onClick:B=>{B.stopPropagation(),v()},children:m}):n.jsx("span",{className:"training-card__publisher training-card__publisher--static body-4",children:m})),p&&n.jsx("span",{className:"training-card__date body-4",children:Vl(p,x)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&n.jsx($t,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h),"aria-label":x("common.likeCount",{count:h,defaultValue:`\uC88B\uC544\uC694 ${h}`})}),g!=null&&n.jsx($t,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(g),"aria-label":x("common.downloadCount",{count:g,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${g}`})})]})]})]})}/**
|
|
1041
1041
|
* @license lucide-react v1.38.0 - ISC
|
|
1042
1042
|
*
|
|
1043
1043
|
* This source code is licensed under the ISC license.
|
|
1044
1044
|
* See the LICENSE file in the root directory of this source tree.
|
|
1045
|
-
*/const hw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Cw=
|
|
1045
|
+
*/const hw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Cw=te("image",hw);/**
|
|
1046
1046
|
* @license lucide-react v1.38.0 - ISC
|
|
1047
1047
|
*
|
|
1048
1048
|
* This source code is licensed under the ISC license.
|
|
1049
1049
|
* See the LICENSE file in the root directory of this source tree.
|
|
1050
|
-
*/const fw=[["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"}]],gw=ne("circle-x",fw);function bw(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:t,state:a,pct:r,subText:s}){const{t:l}=_e.useTranslation(),i=a==="done",u=a==="pending",c=a==="error",d=i?100:r??0;return n.jsxs("div",{className:"wdup-phase-card",children:[n.jsx("div",{className:`wdup-phase-card__icon${i?" wdup-phase-card__icon--done":c?" wdup-phase-card__icon--error":""}`,children:i?n.jsx(Us,{size:22,color:"white",strokeWidth:2.5}):c?n.jsx(gw,{size:22,color:"white",strokeWidth:2.5}):n.jsx("span",{className:`wdup-phase-card__icon-inner${u?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),n.jsxs("div",{className:"wdup-phase-card__body",children:[n.jsxs("div",{className:"wdup-phase-card__top",children:[n.jsx("span",{className:`wdup-phase-card__label body-2${u?" wdup-phase-card__label--pending":""}`,children:t}),i?n.jsx($t,{variant:"sub",fill:"soft",size:"small",label:l("common.done","\uC644\uB8CC")}):c?n.jsx($t,{variant:"danger",fill:"soft",size:"small",label:l("common.failed","\uC2E4\uD328")}):(s||r!==void 0)&&n.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[s,s&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!u&&n.jsx("div",{className:"wdup-bar",children:n.jsx("div",{className:`wdup-bar__fill${i?" wdup-bar__fill--done":c?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||i||c?`${c?100:d}%`:void 0}})})]})]})}function yw({title:e,progress:t,onDone:a,onRetry:r,onClose:s,inline:l}){const{t:i}=_e.useTranslation(),{phase:u,error:c,wordCount:d,imagePage:m,imageDone:p,imageTotal:h,pairPercent:b}=t,v=bw(u),C=u==="done",f=!!c;function _(w){return f&&v===w?"error":v>w?"done":v===w?"active":"pending"}const g=_(1),k=_(2),x=_(3),A=u==="image-match"&&h?Math.round((p??0)/h*100):void 0,y=o.useMemo(()=>{if(k!=="done"){if(u==="image-list")return i("wordData.checkingPage",{page:m??1});if(u==="image-match"&&h)return i("wordData.imageCount",{done:po(p),total:po(h)})}},[k,u,m,h,p,i]);return n.jsx(Wn,{inline:l,className:"popup--word-data-update",title:e,footer:f&&r?n.jsx(fe,{htmlType:"button",size:56,variant:"main",onClick:r,children:i("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):f?n.jsx(fe,{htmlType:"button",size:56,variant:"main",onClick:s??a,children:i("common.close","\uB2EB\uAE30")}):n.jsx(fe,{htmlType:"button",size:56,variant:"main",disabled:!C,onClick:a,children:i("common.done","\uC644\uB8CC")}),children:n.jsxs("div",{className:"wdup-cards",children:[n.jsx(Ts,{icon:n.jsx(zs,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:g,subText:g==="active"?i("wordData.downloadingCount",{n:po(d),count:d}):void 0}),n.jsx(Ts,{icon:n.jsx(Cw,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:k,pct:A,subText:y}),n.jsx(Ts,{icon:n.jsx(Vs,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:x,pct:x==="active"?b??0:void 0,subText:void 0})]})})}function vw({enabled:e=!1,renderResultPopup:t}={}){const{t:a}=_e.useTranslation(),[r,s]=o.useState(null),[l,i]=o.useState(null),u=b=>{let v=null;b==="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}]}:b==="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}]}:b==="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}]}:b==="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}]}),i(v),s(b)},c=o.useCallback(()=>{s(null),i(null)},[]),d=o.useCallback(()=>u("noise"),[]),m=o.useCallback(()=>u("short"),[]),p=o.useCallback(()=>u("long"),[]),h=o.useCallback(()=>u("order"),[]);return e?n.jsxs("div",{className:"debug-result-launcher",children:[n.jsxs("div",{className:"debug-buttons",children:[n.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:h,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&l?t?.({score:l.score,contextsLength:l.contextsLength,results:l.results,onReplay:c,onClose:c}):null]}):null}exports.Accordion=qy,exports.ActionCard=sy,exports.Alert=$2,exports.AppHeader=Xy,exports.AudioMeter=Uo,exports.AudioPlayer=bs,exports.Avatar=W2,exports.Badge=$t,exports.BarChart=Rv,exports.BarChartControls=Su,exports.Board=sv,exports.BottomNav=Ui,exports.BrandIdentity=Xi,exports.BrandLogo=Dv,exports.Breadcrumb=q2,exports.BulkBar=yv,exports.Button=fe,exports.CORE_VERSION=Zb,exports.Calendar=a4,exports.CardStep=od,exports.ChartLegend=Io,exports.ChartSection=Fo,exports.ChartTotal=Ya,exports.Checkbox=wu,exports.ChoiceChips=ux,exports.CircleBadge=j2,exports.CodeBox=gv,exports.ColorPicker=Z2,exports.CompanyMeta=pv,exports.ConfirmPopup=pd,exports.ConfirmStep=nd,exports.ConfirmWithTextStep=ad,exports.ContrastFilterPanel=O_,exports.CoreScope=ly,exports.CountTile=nv,exports.CouponInputPopup=H_,exports.DEFAULT_NOISE_SETTINGS=ea,exports.DatePicker=Nv,exports.DebugResultLauncher=vw,exports.DescriptionTooltip=Kn,exports.DeviceSideTable=e4,exports.Dialog=ov,exports.Divider=T2,exports.Dropdown=fn,exports.EffectPartyPopper=Ds,exports.EffectPartyPopperHost=U_,exports.EmptyState=ry,exports.ErrorState=oy,exports.FILTER_ALL_VALUE=xn,exports.FileUpload=V2,exports.FilterPanel=Ln,exports.FilterSectionInfo=Ha,exports.Footer=cx,exports.GameIntro=Fv,exports.Header=Ji,exports.Icon=nt,exports.IconGridMenu=ix,exports.IconRenderer=nt,exports.InfoTooltip=Dn,exports.ItemActions=xv,exports.LEVEL_MAX=va,exports.LINE_CHART_HOVER_DELAY_MS=ju,exports.LandingBottomSticky=px,exports.LandingHeader=dx,exports.LineChart=Iv,exports.ListPopup=z_,exports.ListenStep=td,exports.Loader=Ga,exports.MARKS=vr,exports.MARK_ICON=Zu,exports.MARK_VARIANT=Xu,exports.MediaQueryOverrideContext=ni,exports.MenuTooltip=Oa,exports.NOISE_RATIO_MAX=Xa,exports.NOISE_RATIO_STEP=Ac,exports.NoisePlayerContext=hs,exports.NoiseSettingsTooltip=Gc,exports.NoticeBox=uy,exports.NotifyTextPreview=Ev,exports.OrderListStep=rd,exports.PASS_CARD_BG_VARS=Zn,exports.POS_LABEL=tc,exports.PROMO_BANNER_BG_COMPONENTS=Li,exports.PROMO_BANNER_BG_OPTIONS=fy,exports.PROMO_BANNER_BG_VARS=Ra,exports.Page=Dr,exports.PageTitle=G_,exports.Pagination=Cr,exports.Panel=Nr,exports.PanelGrid=e_,exports.PanelRow=$n,exports.PanelRowDevice=Qx,exports.PassCard=iu,exports.PassCardBg=N2,exports.PassCardBgIHAB=E2,exports.PassCardBgLeftColorGrid=D2,exports.PassCardBgTwoCircle=au,exports.PaymentPlan=A2,exports.PersonCard=lv,exports.PhonemeFilterPanel=F_,exports.PhonemeSelectBlock=P_,exports.Popup=Wn,exports.ProgressBar=Uv,exports.ProgressIndicator=Ou,exports.PromoBanner=Wy,exports.PromoBannerBgDark=yi,exports.PromoBannerBgDeep=mi,exports.PromoBannerBgDiagonal=wi,exports.PromoBannerBgDots=ki,exports.PromoBannerBgInstagram=Mi,exports.PromoBannerBgMain=li,exports.PromoBannerBgNaver=ji,exports.PromoBannerBgOutline=Ni,exports.PromoBannerBgRadial=xi,exports.PromoBannerBgSoft=ui,exports.PromoBannerBgSoftSub=Ci,exports.PromoBannerBgSub=di,exports.PromoBannerBgSuccess=Di,exports.PromoBannerBgWarm=gi,exports.PublicationCard=uv,exports.Radio=pu,exports.RadioGroup=M2,exports.Rating=G2,exports.ReportDocument=Q_,exports.ReportInfoPanel=ew,exports.RingChart=zv,exports.SENTENCE_TRAINING_TYPES=cs,exports.SearchSummary=I2,exports.Section=ga,exports.SectionHeadFloat=Au,exports.SectionHeader=dv,exports.SegmentedControl=wn,exports.ShortcutBadge=du,exports.SideNav=Zi,exports.Slider=Ru,exports.SoundCompass=S2,exports.SplashLogo=cv,exports.StatChart=Wv,exports.SummaryStrip=X_,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=hu,exports.Table=Ko,exports.TableFilterPanel=os,exports.Tabs=F2,exports.TextBoxTooltip=Ar,exports.TextField=Xn,exports.Timeline=iv,exports.Toast=Ca,exports.Toggle=_u,exports.Toolbar=Po,exports.Tooltip=vn,exports.TooltipInfo=Dn,exports.TooltipTextBox=Ar,exports.TopBanner=Hy,exports.TrainingBlock=o4,exports.TrainingBlockButton=Lo,exports.TrainingBlockGrid=l4,exports.TrainingCard=ow,exports.TrainingCardGroup=sw,exports.TrainingPagePopup=Hn,exports.TrainingPagePopupBottom=Kc,exports.TrainingPagePopupTitle=Yc,exports.TrainingResultPopup=ud,exports.TrainingStep=ta,exports.TrainingStepAudioPlayer=bs,exports.TrainingStepBullet=Fc,exports.TrainingStepCard=Hc,exports.TrainingStepConfirm=vs,exports.TrainingStepConfirmWithText=xs,exports.TrainingStepListen=_s,exports.TrainingStepOrderList=ws,exports.TrainingStepTextBox=Wc,exports.TrainingStepTitle=zc,exports.TrainingTooltip=Cu,exports.TrainingWordCard=Jo,exports.UpdateAlert=rw,exports.WAVE_A_MAX=Ax,exports.WAVE_H1_PX=fs,exports.WAVE_HMAX_PX=kx,exports.WORD_LABEL_I18N_KEYS=g4,exports.WORD_TABLE_PAPER=Jn,exports.WORD_TYPE_LABEL=nc,exports.WordDataProvider=Z_,exports.WordDataUpdatePopup=yw,exports.WordImageTooltip=dd,exports.WordSearchFilterPanel=I_,exports.WordSearchResultBlock=$_,exports.WordTable=ba,exports.WordTableBlock=dw,exports.WordTableButton=mw,exports.WordTablePopup=L4,exports.WordTableThumbnail=fd,exports.buildMonthChartData=jv,exports.cellKey=W4,exports.cellLabel=z4,exports.cellsForLabels=ex,exports.clearPassCardBgTheme=Tn,exports.clearPromoBannerBgTheme=en,exports.closeTrainingPopup=o_,exports.companyTypeLabel=K_,exports.createTrainingScenario=i_,exports.cx=Be,exports.deriveNoiseContexts=h_,exports.derivePassCard=eu,exports.draftValues=sx,exports.effectiveNoiseVolume=ps,exports.effectiveSpeechVolume=Ec,exports.expandSlashLabel=ns,exports.formatDuration=tx,exports.getControlDateRange=Ov,exports.getPayloadTimestamp=ks,exports.getPromoBannerBgTheme=_o,exports.getSelectedFromPayload=c_,exports.getSelectedText=d_,exports.getStepPayload=Qc,exports.getSteppedPayload=p_,exports.injectPassCardBgTheme=jn,exports.injectPromoBannerBgTheme=Qt,exports.isSelectionCorrect=m_,exports.labelOfCellKey=Bc,exports.labelsForSave=O4,exports.levelToPct=hx,exports.markAfterClick=Yu,exports.marksForSave=Qo,exports.mergeNoiseSettings=Qn,exports.missesByType=Z4,exports.monthKeyOf=Za,exports.monthKeyOfDate=Oo,exports.nextFocus=U4,exports.nextMisses=Y4,exports.noiseElementVolume=ms,exports.noiseRatioOf=Ja,exports.pageStartIndexes=Ju,exports.parseMonthKey=ha,exports.passCardBgIhabTheme=uu,exports.passCardBgLeftColorGridTheme=cu,exports.passCardBgTwoCircleTheme=nu,exports.pctToLevel=Cx,exports.posLabels=ac,exports.printWordTable=m4,exports.promoBannerBgDarkTheme=bi,exports.promoBannerBgDeepTheme=pi,exports.promoBannerBgDiagonalTheme=_i,exports.promoBannerBgDotsTheme=Bi,exports.promoBannerBgInstagramTheme=Ti,exports.promoBannerBgMainTheme=si,exports.promoBannerBgNaverTheme=Si,exports.promoBannerBgOutlineTheme=Ai,exports.promoBannerBgRadialTheme=vi,exports.promoBannerBgSoftSubTheme=hi,exports.promoBannerBgSoftTheme=ii,exports.promoBannerBgSubTheme=ci,exports.promoBannerBgSuccessTheme=Ei,exports.promoBannerBgWarmTheme=fi,exports.recommendTables=J4,exports.regenerateUnpinned=ox,exports.removeItem=rx,exports.resolveTrainingItems=l_,exports.resolveTrainingPopupMeta=Xc,exports.reviewCells=R4,exports.reviewMeta=F4,exports.reviewSetPlan=X4,exports.reviewTableName=I4,exports.scoreKey=yr,exports.scoreSheetHeader=H4,exports.shouldConfirmDiscard=p4,exports.splitTrainingVariants=s_,exports.summarize=d4,exports.summarizeMisses=K4,exports.tableTrends=q4,exports.toDraft=nx,exports.toTrainingText=u_,exports.togglePin=ax,exports.uncoveredLabels=Q4,exports.useAnchoredMenu=Fa,exports.useBarChartControl=Du,exports.useCalendarMonth=Bu,exports.useComboboxSuggestions=vu,exports.useDiscardGuard=W_,exports.useFitScale=lc,exports.useNoisePlayer=_r,exports.useSoundCompassExam=Ly,exports.useToastLifecycle=Iu,exports.useWordData=Y_,exports.useWordTableDisplaySettings=_c,exports.useWordTablePrint=us,exports.waveBarPx=Br,exports.waveBarVal=kr,exports.weakItems=V4,exports.weekValueOf=zo,exports.withStepTimes=Jc,exports.wordTypeLabels=rc;
|
|
1050
|
+
*/const fw=[["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"}]],bw=te("circle-x",fw);function gw(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:t,state:a,pct:r,subText:s}){const{t:l}=xe.useTranslation(),i=a==="done",u=a==="pending",c=a==="error",d=i?100:r??0;return n.jsxs("div",{className:"wdup-phase-card",children:[n.jsx("div",{className:`wdup-phase-card__icon${i?" wdup-phase-card__icon--done":c?" wdup-phase-card__icon--error":""}`,children:i?n.jsx(Us,{size:22,color:"white",strokeWidth:2.5}):c?n.jsx(bw,{size:22,color:"white",strokeWidth:2.5}):n.jsx("span",{className:`wdup-phase-card__icon-inner${u?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),n.jsxs("div",{className:"wdup-phase-card__body",children:[n.jsxs("div",{className:"wdup-phase-card__top",children:[n.jsx("span",{className:`wdup-phase-card__label body-2${u?" wdup-phase-card__label--pending":""}`,children:t}),i?n.jsx($t,{variant:"sub",fill:"soft",size:"small",label:l("common.done","\uC644\uB8CC")}):c?n.jsx($t,{variant:"danger",fill:"soft",size:"small",label:l("common.failed","\uC2E4\uD328")}):(s||r!==void 0)&&n.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[s,s&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!u&&n.jsx("div",{className:"wdup-bar",children:n.jsx("div",{className:`wdup-bar__fill${i?" wdup-bar__fill--done":c?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||i||c?`${c?100:d}%`:void 0}})})]})]})}function yw({title:e,progress:t,onDone:a,onRetry:r,onClose:s,inline:l}){const{t:i}=xe.useTranslation(),{phase:u,error:c,wordCount:d,imagePage:m,imageDone:p,imageTotal:h,pairPercent:g}=t,v=gw(u),C=u==="done",f=!!c;function _(w){return f&&v===w?"error":v>w?"done":v===w?"active":"pending"}const b=_(1),k=_(2),x=_(3),N=u==="image-match"&&h?Math.round((p??0)/h*100):void 0,y=o.useMemo(()=>{if(k!=="done"){if(u==="image-list")return i("wordData.checkingPage",{page:m??1});if(u==="image-match"&&h)return i("wordData.imageCount",{done:po(p),total:po(h)})}},[k,u,m,h,p,i]);return n.jsx(Wn,{inline:l,className:"popup--word-data-update",title:e,footer:f&&r?n.jsx(be,{htmlType:"button",size:56,variant:"main",onClick:r,children:i("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):f?n.jsx(be,{htmlType:"button",size:56,variant:"main",onClick:s??a,children:i("common.close","\uB2EB\uAE30")}):n.jsx(be,{htmlType:"button",size:56,variant:"main",disabled:!C,onClick:a,children:i("common.done","\uC644\uB8CC")}),children:n.jsxs("div",{className:"wdup-cards",children:[n.jsx(Ts,{icon:n.jsx(zs,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:b,subText:b==="active"?i("wordData.downloadingCount",{n:po(d),count:d}):void 0}),n.jsx(Ts,{icon:n.jsx(Cw,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:k,pct:N,subText:y}),n.jsx(Ts,{icon:n.jsx(Vs,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:i("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:x,pct:x==="active"?g??0:void 0,subText:void 0})]})})}function vw({enabled:e=!1,renderResultPopup:t}={}){const{t:a}=xe.useTranslation(),[r,s]=o.useState(null),[l,i]=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}]}),i(v),s(g)},c=o.useCallback(()=>{s(null),i(null)},[]),d=o.useCallback(()=>u("noise"),[]),m=o.useCallback(()=>u("short"),[]),p=o.useCallback(()=>u("long"),[]),h=o.useCallback(()=>u("order"),[]);return e?n.jsxs("div",{className:"debug-result-launcher",children:[n.jsxs("div",{className:"debug-buttons",children:[n.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:h,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&l?t?.({score:l.score,contextsLength:l.contextsLength,results:l.results,onReplay:c,onClose:c}):null]}):null}exports.Accordion=qy,exports.ActionCard=sy,exports.Alert=$2,exports.AppHeader=Xy,exports.AudioMeter=Uo,exports.AudioPlayer=gs,exports.Avatar=W2,exports.Badge=$t,exports.BarChart=Rv,exports.BarChartControls=Su,exports.Board=sv,exports.BottomNav=Ui,exports.BrandIdentity=Xi,exports.BrandLogo=Dv,exports.Breadcrumb=q2,exports.BulkBar=yv,exports.Button=be,exports.CORE_VERSION=Zg,exports.Calendar=a4,exports.CardStep=od,exports.ChartLegend=Io,exports.ChartSection=Fo,exports.ChartTotal=Ya,exports.Checkbox=wu,exports.ChoiceChips=ux,exports.CircleBadge=j2,exports.CodeBox=bv,exports.ColorPicker=Z2,exports.CompanyMeta=pv,exports.ConfirmPopup=pd,exports.ConfirmStep=nd,exports.ConfirmWithTextStep=ad,exports.ContrastFilterPanel=O_,exports.CoreScope=ly,exports.CountTile=nv,exports.CouponInputPopup=H_,exports.DEFAULT_NOISE_SETTINGS=ea,exports.DatePicker=Nv,exports.DebugResultLauncher=vw,exports.DescriptionTooltip=Kn,exports.DeviceSideTable=e4,exports.Dialog=ov,exports.Divider=T2,exports.Dropdown=Cn,exports.EffectPartyPopper=Ds,exports.EffectPartyPopperHost=U_,exports.EmptyState=ry,exports.ErrorState=oy,exports.FILTER_ALL_VALUE=vn,exports.FileUpload=V2,exports.FilterPanel=Mn,exports.FilterSectionInfo=Ha,exports.Footer=cx,exports.GameIntro=Fv,exports.Header=Ji,exports.Icon=ot,exports.IconGridMenu=ix,exports.IconRenderer=ot,exports.InfoTooltip=En,exports.ItemActions=xv,exports.LEVEL_MAX=va,exports.LINE_CHART_HOVER_DELAY_MS=ju,exports.LandingBottomSticky=px,exports.LandingHeader=dx,exports.LineChart=Iv,exports.ListPopup=z_,exports.ListenStep=td,exports.Loader=Ga,exports.MARKS=vr,exports.MARK_ICON=Zu,exports.MARK_VARIANT=Xu,exports.MediaQueryOverrideContext=ni,exports.MenuTooltip=Oa,exports.NOISE_RATIO_MAX=Xa,exports.NOISE_RATIO_STEP=Ac,exports.NoisePlayerContext=hs,exports.NoiseSettingsTooltip=Gc,exports.NoticeBox=uy,exports.NotifyTextPreview=Ev,exports.OrderListStep=rd,exports.PASS_CARD_BG_VARS=Zn,exports.POS_LABEL=tc,exports.PROMO_BANNER_BG_COMPONENTS=Li,exports.PROMO_BANNER_BG_OPTIONS=fy,exports.PROMO_BANNER_BG_VARS=Ra,exports.Page=Dr,exports.PageTitle=G_,exports.Pagination=Cr,exports.Panel=Nr,exports.PanelGrid=e_,exports.PanelRow=Ln,exports.PanelRowDevice=Qx,exports.PassCard=iu,exports.PassCardBg=N2,exports.PassCardBgIHAB=E2,exports.PassCardBgLeftColorGrid=D2,exports.PassCardBgTwoCircle=au,exports.PaymentPlan=A2,exports.PersonCard=lv,exports.PhonemeFilterPanel=F_,exports.PhonemeSelectBlock=P_,exports.Popup=Wn,exports.ProgressBar=Uv,exports.ProgressIndicator=Ou,exports.PromoBanner=Wy,exports.PromoBannerBgDark=yi,exports.PromoBannerBgDeep=mi,exports.PromoBannerBgDiagonal=wi,exports.PromoBannerBgDots=ki,exports.PromoBannerBgInstagram=Mi,exports.PromoBannerBgMain=li,exports.PromoBannerBgNaver=ji,exports.PromoBannerBgOutline=Ni,exports.PromoBannerBgRadial=xi,exports.PromoBannerBgSoft=ui,exports.PromoBannerBgSoftSub=Ci,exports.PromoBannerBgSub=di,exports.PromoBannerBgSuccess=Di,exports.PromoBannerBgWarm=bi,exports.PublicationCard=uv,exports.Radio=pu,exports.RadioGroup=M2,exports.Rating=G2,exports.ReportDocument=Q_,exports.ReportInfoPanel=ew,exports.RingChart=zv,exports.SENTENCE_TRAINING_TYPES=cs,exports.SearchSummary=I2,exports.Section=ba,exports.SectionHeadFloat=Au,exports.SectionHeader=dv,exports.SegmentedControl=_n,exports.ShortcutBadge=du,exports.SideNav=Zi,exports.Slider=Ru,exports.SoundCompass=S2,exports.SplashLogo=cv,exports.StatChart=Wv,exports.SummaryStrip=X_,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=hu,exports.Table=Ko,exports.TableFilterPanel=os,exports.Tabs=F2,exports.TextBoxTooltip=Ar,exports.TextField=Xn,exports.Timeline=iv,exports.Toast=Ca,exports.Toggle=_u,exports.Toolbar=Po,exports.Tooltip=yn,exports.TooltipInfo=En,exports.TooltipTextBox=Ar,exports.TopBanner=Hy,exports.TrainingBlock=o4,exports.TrainingBlockButton=Lo,exports.TrainingBlockGrid=l4,exports.TrainingCard=ow,exports.TrainingCardGroup=sw,exports.TrainingPagePopup=Hn,exports.TrainingPagePopupBottom=Kc,exports.TrainingPagePopupTitle=Yc,exports.TrainingResultPopup=ud,exports.TrainingStep=ta,exports.TrainingStepAudioPlayer=gs,exports.TrainingStepBullet=Fc,exports.TrainingStepCard=Hc,exports.TrainingStepConfirm=vs,exports.TrainingStepConfirmWithText=xs,exports.TrainingStepListen=_s,exports.TrainingStepOrderList=ws,exports.TrainingStepTextBox=Wc,exports.TrainingStepTitle=zc,exports.TrainingTooltip=Cu,exports.TrainingWordCard=Jo,exports.UpdateAlert=rw,exports.WAVE_A_MAX=Ax,exports.WAVE_H1_PX=fs,exports.WAVE_HMAX_PX=kx,exports.WORD_LABEL_I18N_KEYS=b4,exports.WORD_TABLE_PAPER=Jn,exports.WORD_TYPE_LABEL=nc,exports.WordDataProvider=Z_,exports.WordDataUpdatePopup=yw,exports.WordImageTooltip=dd,exports.WordSearchFilterPanel=I_,exports.WordSearchResultBlock=$_,exports.WordTable=ga,exports.WordTableBlock=dw,exports.WordTableButton=mw,exports.WordTablePopup=L4,exports.WordTableThumbnail=fd,exports.buildMonthChartData=jv,exports.cellKey=W4,exports.cellLabel=z4,exports.cellsForLabels=ex,exports.clearPassCardBgTheme=jn,exports.clearPromoBannerBgTheme=Jt,exports.closeTrainingPopup=o_,exports.companyTypeLabel=K_,exports.createTrainingScenario=i_,exports.cx=Be,exports.deriveNoiseContexts=h_,exports.derivePassCard=eu,exports.draftValues=sx,exports.effectiveNoiseVolume=ps,exports.effectiveSpeechVolume=Ec,exports.expandSlashLabel=ns,exports.formatDuration=tx,exports.getControlDateRange=Ov,exports.getPayloadTimestamp=ks,exports.getPromoBannerBgTheme=_o,exports.getSelectedFromPayload=c_,exports.getSelectedText=d_,exports.getStepPayload=Qc,exports.getSteppedPayload=p_,exports.injectPassCardBgTheme=Sn,exports.injectPromoBannerBgTheme=Xt,exports.isSelectionCorrect=m_,exports.labelOfCellKey=Bc,exports.labelsForSave=O4,exports.levelToPct=hx,exports.markAfterClick=Yu,exports.marksForSave=Qo,exports.mergeNoiseSettings=Qn,exports.missesByType=Z4,exports.monthKeyOf=Za,exports.monthKeyOfDate=Oo,exports.nextFocus=U4,exports.nextMisses=Y4,exports.noiseElementVolume=ms,exports.noiseRatioOf=Ja,exports.pageStartIndexes=Ju,exports.parseMonthKey=ha,exports.passCardBgIhabTheme=uu,exports.passCardBgLeftColorGridTheme=cu,exports.passCardBgTwoCircleTheme=nu,exports.pctToLevel=Cx,exports.posLabels=ac,exports.printWordTable=m4,exports.promoBannerBgDarkTheme=gi,exports.promoBannerBgDeepTheme=pi,exports.promoBannerBgDiagonalTheme=_i,exports.promoBannerBgDotsTheme=Bi,exports.promoBannerBgInstagramTheme=Ti,exports.promoBannerBgMainTheme=si,exports.promoBannerBgNaverTheme=Si,exports.promoBannerBgOutlineTheme=Ai,exports.promoBannerBgRadialTheme=vi,exports.promoBannerBgSoftSubTheme=hi,exports.promoBannerBgSoftTheme=ii,exports.promoBannerBgSubTheme=ci,exports.promoBannerBgSuccessTheme=Ei,exports.promoBannerBgWarmTheme=fi,exports.recommendTables=J4,exports.regenerateUnpinned=ox,exports.removeItem=rx,exports.resolveTrainingItems=l_,exports.resolveTrainingPopupMeta=Xc,exports.reviewCells=R4,exports.reviewMeta=F4,exports.reviewSetPlan=X4,exports.reviewTableName=I4,exports.scoreKey=yr,exports.scoreSheetHeader=H4,exports.shouldConfirmDiscard=p4,exports.splitTrainingVariants=s_,exports.summarize=d4,exports.summarizeMisses=K4,exports.tableTrends=q4,exports.toDraft=nx,exports.toTrainingText=u_,exports.togglePin=ax,exports.uncoveredLabels=Q4,exports.useAnchoredMenu=Fa,exports.useBarChartControl=Du,exports.useCalendarMonth=Bu,exports.useComboboxSuggestions=vu,exports.useDiscardGuard=W_,exports.useFitScale=lc,exports.useNoisePlayer=_r,exports.useSoundCompassExam=Ly,exports.useToastLifecycle=Iu,exports.useWordData=Y_,exports.useWordTableDisplaySettings=_c,exports.useWordTablePrint=us,exports.waveBarPx=Br,exports.waveBarVal=kr,exports.weakItems=V4,exports.weekValueOf=zo,exports.withStepTimes=Jc,exports.wordTypeLabels=rc;
|