@ihabdevteam/core 0.376.0 → 0.377.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 +72 -0
- package/dist/components.cjs.js +167 -167
- package/dist/components.esm.css +2 -2
- package/dist/hooks.cjs.js +1 -1
- package/dist/i18n.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +173 -173
- package/dist/ihabdevteam-core.d.ts +12 -1
- package/dist/packages/core/src/components/Word/WordSearchResultBlock.css +0 -7
- package/dist/packages/core/src/components/Word/WordSearchResultBlock.js +1 -1
- package/dist/packages/core/src/components/WordTable.css +45 -18
- package/dist/packages/core/src/components/WordTable.js +41 -26
- package/dist/packages/core/src/types/wordSearch.d.ts +11 -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
|
@@ -23,779 +23,779 @@
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var
|
|
26
|
+
*/var Pr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
27
27
|
* @license lucide-react v1.38.0 - ISC
|
|
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 yd=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},vd=o.createContext({}),xd=()=>o.useContext(vd),_d=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=""}=xd()??{},y=r??p?Number(a??m)*24/Number(t??d):a??m;return o.createElement("svg",{ref:c,...
|
|
31
|
+
*/const yd=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},vd=o.createContext({}),xd=()=>o.useContext(vd),_d=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=""}=xd()??{},y=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:y,className:$s("lucide",g,s),...!l&&!yd(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 ne=(e,t)=>{const a=o.forwardRef(({className:r,...s},l)=>o.createElement(_d,{ref:l,iconNode:t,className:$s(`lucide-${bd(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 wd=[["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 wd=[["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=ne("triangle-alert",wd);/**
|
|
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 Bd=[["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"}]],kd=
|
|
46
|
+
*/const Bd=[["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"}]],kd=ne("align-start-vertical",Bd);/**
|
|
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 Ad=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Nd=
|
|
51
|
+
*/const Ad=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Nd=ne("arrow-down",Ad);/**
|
|
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 Ed=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Dd=
|
|
56
|
+
*/const Ed=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Dd=ne("arrow-left",Ed);/**
|
|
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 Sd=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],jd=
|
|
61
|
+
*/const Sd=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],jd=ne("arrow-right",Sd);/**
|
|
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 Td=[["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"}]],Md=
|
|
66
|
+
*/const Td=[["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"}]],Md=ne("arrow-right-left",Td);/**
|
|
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 Ld=[["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"}]],$d=
|
|
71
|
+
*/const Ld=[["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"}]],$d=ne("audio-lines",Ld);/**
|
|
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 Rd=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],Pd=
|
|
76
|
+
*/const Rd=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],Pd=ne("ban",Rd);/**
|
|
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 Id=[["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"}]],Fd=
|
|
81
|
+
*/const Id=[["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"}]],Fd=ne("bell",Id);/**
|
|
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 Od=[["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"}]],zd=
|
|
86
|
+
*/const Od=[["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"}]],zd=ne("book-marked",Od);/**
|
|
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 Wd=[["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"}]],Hd=
|
|
91
|
+
*/const Wd=[["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"}]],Hd=ne("book-open",Wd);/**
|
|
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 Vd=[["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"}]],qd=
|
|
96
|
+
*/const Vd=[["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"}]],qd=ne("bow-arrow",Vd);/**
|
|
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 Ud=[["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"}]],Gd=
|
|
101
|
+
*/const Ud=[["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"}]],Gd=ne("braces",Ud);/**
|
|
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 Kd=[["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"}]],Yd=
|
|
106
|
+
*/const Kd=[["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"}]],Yd=ne("bug",Kd);/**
|
|
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 Zd=[["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"}]],Xd=
|
|
111
|
+
*/const Zd=[["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"}]],Xd=ne("calendar-check",Zd);/**
|
|
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 Jd=[["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"}]],Qd=
|
|
116
|
+
*/const Jd=[["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"}]],Qd=ne("calendar-days",Jd);/**
|
|
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 ep=[["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"}]],tp=
|
|
121
|
+
*/const ep=[["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"}]],tp=ne("camera",ep);/**
|
|
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 np=[["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"}]],ap=
|
|
126
|
+
*/const np=[["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"}]],ap=ne("chart-column",np);/**
|
|
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 rp=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],op=
|
|
131
|
+
*/const rp=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],op=ne("chart-line",rp);/**
|
|
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 sp=[["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"}]],lp=
|
|
136
|
+
*/const sp=[["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"}]],lp=ne("chart-pie",sp);/**
|
|
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 ip=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Is=
|
|
141
|
+
*/const ip=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Is=ne("check",ip);/**
|
|
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 up=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Fs=
|
|
146
|
+
*/const up=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Fs=ne("chevron-left",up);/**
|
|
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 cp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Os=
|
|
151
|
+
*/const cp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Os=ne("chevron-right",cp);/**
|
|
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 dp=[["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"}]],pp=
|
|
156
|
+
*/const dp=[["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"}]],pp=ne("clipboard-list",dp);/**
|
|
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 mp=[["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"}]],hp=
|
|
161
|
+
*/const mp=[["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"}]],hp=ne("combine",mp);/**
|
|
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 Cp=[["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"}]],fp=
|
|
166
|
+
*/const Cp=[["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"}]],fp=ne("copy",Cp);/**
|
|
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 bp=[["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"}]],gp=
|
|
171
|
+
*/const bp=[["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"}]],gp=ne("chevrons-left-right-ellipsis",bp);/**
|
|
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 yp=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],vp=
|
|
176
|
+
*/const yp=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],vp=ne("credit-card",yp);/**
|
|
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 xp=[["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 xp=[["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=ne("database",xp);/**
|
|
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 _p=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],wp=
|
|
186
|
+
*/const _p=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],wp=ne("diff",_p);/**
|
|
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 Bp=[["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 Bp=[["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=ne("download",Bp);/**
|
|
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 kp=[["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"}]],Ap=
|
|
196
|
+
*/const kp=[["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"}]],Ap=ne("ear",kp);/**
|
|
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 Np=[["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"}]],Ep=
|
|
201
|
+
*/const Np=[["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"}]],Ep=ne("square-pen",Np);/**
|
|
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 Dp=[["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"}]],Sp=
|
|
206
|
+
*/const Dp=[["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"}]],Sp=ne("pen",Dp);/**
|
|
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 jp=[["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"}]],Tp=
|
|
211
|
+
*/const jp=[["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"}]],Tp=ne("pen-line",jp);/**
|
|
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 Mp=[["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 Mp=[["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=ne("ellipsis",Mp);/**
|
|
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 Lp=[["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"}]],$p=
|
|
221
|
+
*/const Lp=[["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"}]],$p=ne("eraser",Lp);/**
|
|
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 Rp=[["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"}]],Pp=
|
|
226
|
+
*/const Rp=[["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"}]],Pp=ne("external-link",Rp);/**
|
|
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 Ip=[["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"}]],Fp=
|
|
231
|
+
*/const Ip=[["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"}]],Fp=ne("eye",Ip);/**
|
|
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 Op=[["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"}]],zp=
|
|
236
|
+
*/const Op=[["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"}]],zp=ne("file-text",Op);/**
|
|
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 Wp=[["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"}]],Hp=
|
|
241
|
+
*/const Wp=[["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"}]],Hp=ne("square-centerline-dashed-horizontal",Wp);/**
|
|
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 Vp=[["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"}]],qp=
|
|
246
|
+
*/const Vp=[["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"}]],qp=ne("folder-open",Vp);/**
|
|
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 Up=[["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"}]],Gp=
|
|
251
|
+
*/const Up=[["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"}]],Gp=ne("folder-plus",Up);/**
|
|
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 Kp=[["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"}]],Yp=
|
|
256
|
+
*/const Kp=[["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"}]],Yp=ne("gamepad",Kp);/**
|
|
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 Zp=[["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"}]],Xp=
|
|
261
|
+
*/const Zp=[["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"}]],Xp=ne("gavel",Zp);/**
|
|
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 Jp=[["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 Jp=[["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=ne("git-merge",Jp);/**
|
|
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 Qp=[["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"}]],em=
|
|
271
|
+
*/const Qp=[["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"}]],em=ne("globe",Qp);/**
|
|
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 tm=[["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"}]],nm=
|
|
276
|
+
*/const tm=[["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"}]],nm=ne("grip-vertical",tm);/**
|
|
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 am=[["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"}]],rm=
|
|
281
|
+
*/const am=[["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"}]],rm=ne("headphones",am);/**
|
|
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 om=[["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"}]],sm=
|
|
286
|
+
*/const om=[["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"}]],sm=ne("heart",om);/**
|
|
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 lm=[["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"}]],im=
|
|
291
|
+
*/const lm=[["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"}]],im=ne("house",lm);/**
|
|
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 um=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],cm=
|
|
296
|
+
*/const um=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],cm=ne("info",um);/**
|
|
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 dm=[["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"}]],pm=
|
|
301
|
+
*/const dm=[["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"}]],pm=ne("key-round",dm);/**
|
|
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 mm=[["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"}]],hm=
|
|
306
|
+
*/const mm=[["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"}]],hm=ne("landmark",mm);/**
|
|
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 Cm=[["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"}]],fm=
|
|
311
|
+
*/const Cm=[["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"}]],fm=ne("layers",Cm);/**
|
|
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 bm=[["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"}]],gm=
|
|
316
|
+
*/const bm=[["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"}]],gm=ne("layout-dashboard",bm);/**
|
|
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 ym=[["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"}]],vm=
|
|
321
|
+
*/const ym=[["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"}]],vm=ne("leaf",ym);/**
|
|
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 xm=[["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"}]],_m=
|
|
326
|
+
*/const xm=[["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"}]],_m=ne("lightbulb",xm);/**
|
|
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 wm=[["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"}]],Bm=
|
|
331
|
+
*/const wm=[["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"}]],Bm=ne("link",wm);/**
|
|
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 km=[["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"}]],Am=
|
|
336
|
+
*/const km=[["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"}]],Am=ne("link-2",km);/**
|
|
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 Nm=[["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"}]],Em=
|
|
341
|
+
*/const Nm=[["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"}]],Em=ne("link-2-off",Nm);/**
|
|
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 Dm=[["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"}]],Sm=
|
|
346
|
+
*/const Dm=[["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"}]],Sm=ne("list",Dm);/**
|
|
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 jm=[["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"}]],Tm=
|
|
351
|
+
*/const jm=[["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"}]],Tm=ne("list-checks",jm);/**
|
|
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 Mm=[["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"}]],Lm=
|
|
356
|
+
*/const Mm=[["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"}]],Lm=ne("list-ordered",Mm);/**
|
|
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 $m=[["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"}]],Rm=
|
|
361
|
+
*/const $m=[["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"}]],Rm=ne("loader",$m);/**
|
|
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 Pm=[["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"}]],Im=
|
|
366
|
+
*/const Pm=[["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"}]],Im=ne("lock",Pm);/**
|
|
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 Fm=[["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"}]],Om=
|
|
371
|
+
*/const Fm=[["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"}]],Om=ne("log-out",Fm);/**
|
|
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 zm=[["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"}]],Wm=
|
|
376
|
+
*/const zm=[["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"}]],Wm=ne("mail",zm);/**
|
|
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 Hm=[["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"}]],Vm=
|
|
381
|
+
*/const Hm=[["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"}]],Vm=ne("map-pin",Hm);/**
|
|
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 qm=[["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"}]],Um=
|
|
386
|
+
*/const qm=[["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"}]],Um=ne("message-circle",qm);/**
|
|
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 Gm=[["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"}]],Km=
|
|
391
|
+
*/const Gm=[["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"}]],Km=ne("message-circle-question-mark",Gm);/**
|
|
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 Ym=[["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"}]],Zm=
|
|
396
|
+
*/const Ym=[["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"}]],Zm=ne("message-square",Ym);/**
|
|
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 Xm=[["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"}]],Jm=
|
|
401
|
+
*/const Xm=[["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"}]],Jm=ne("message-square-text",Xm);/**
|
|
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 Qm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],eh=
|
|
406
|
+
*/const Qm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],eh=ne("circle-minus",Qm);/**
|
|
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 th=[["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"}]],nh=
|
|
411
|
+
*/const th=[["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"}]],nh=ne("package",th);/**
|
|
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 ah=[["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"}]],rh=
|
|
416
|
+
*/const ah=[["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"}]],rh=ne("party-popper",ah);/**
|
|
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 oh=[["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"}]],sh=
|
|
421
|
+
*/const oh=[["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"}]],sh=ne("pause",oh);/**
|
|
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 lh=[["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"}]],ih=
|
|
426
|
+
*/const lh=[["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"}]],ih=ne("pencil",lh);/**
|
|
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 uh=[["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"}]],ch=
|
|
431
|
+
*/const uh=[["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"}]],ch=ne("phone",uh);/**
|
|
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 dh=[["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"}]],ph=
|
|
436
|
+
*/const dh=[["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"}]],ph=ne("play",dh);/**
|
|
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 mh=[["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"}]],hh=
|
|
441
|
+
*/const mh=[["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"}]],hh=ne("circle-play",mh);/**
|
|
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 Ch=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],fh=
|
|
446
|
+
*/const Ch=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],fh=ne("plus",Ch);/**
|
|
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 bh=[["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"}]],gh=
|
|
451
|
+
*/const bh=[["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"}]],gh=ne("printer",bh);/**
|
|
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 yh=[["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"}]],vh=
|
|
456
|
+
*/const yh=[["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"}]],vh=ne("refresh-cw",yh);/**
|
|
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 xh=[["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"}]],_h=
|
|
461
|
+
*/const xh=[["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"}]],_h=ne("repeat",xh);/**
|
|
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 wh=[["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"}]],Bh=
|
|
466
|
+
*/const wh=[["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"}]],Bh=ne("replace",wh);/**
|
|
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 kh=[["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"}]],Ah=
|
|
471
|
+
*/const kh=[["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"}]],Ah=ne("rocket",kh);/**
|
|
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 Nh=[["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"}]],Eh=
|
|
476
|
+
*/const Nh=[["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"}]],Eh=ne("rotate-ccw",Nh);/**
|
|
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 Dh=[["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"}]],Sh=
|
|
481
|
+
*/const Dh=[["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"}]],Sh=ne("rotate-cw",Dh);/**
|
|
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 jh=[["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"}]],Th=
|
|
486
|
+
*/const jh=[["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"}]],Th=ne("salad",jh);/**
|
|
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 Mh=[["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"}]],Lh=
|
|
491
|
+
*/const Mh=[["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"}]],Lh=ne("scan-search",Mh);/**
|
|
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 $h=[["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 $h=[["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=ne("circle-alert",$h);/**
|
|
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 Rh=[["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 Rh=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Us=ne("circle-check-big",Rh);/**
|
|
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 Ph=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ih=
|
|
506
|
+
*/const Ph=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ih=ne("search",Ph);/**
|
|
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 Fh=[["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"}]],Oh=
|
|
511
|
+
*/const Fh=[["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"}]],Oh=ne("scissors",Fh);/**
|
|
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 zh=[["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"}]],Wh=
|
|
516
|
+
*/const zh=[["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"}]],Wh=ne("search-x",zh);/**
|
|
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 Hh=[["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"}]],Vh=
|
|
521
|
+
*/const Hh=[["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"}]],Vh=ne("send",Hh);/**
|
|
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 qh=[["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"}]],Uh=
|
|
526
|
+
*/const qh=[["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"}]],Uh=ne("settings",qh);/**
|
|
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 Gh=[["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"}]],Kh=
|
|
531
|
+
*/const Gh=[["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"}]],Kh=ne("share-2",Gh);/**
|
|
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 Yh=[["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"}]],Zh=
|
|
536
|
+
*/const Yh=[["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"}]],Zh=ne("shield-check",Yh);/**
|
|
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 Xh=[["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"}]],Jh=
|
|
541
|
+
*/const Xh=[["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"}]],Jh=ne("shopping-cart",Xh);/**
|
|
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 Qh=[["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"}]],e0=
|
|
546
|
+
*/const Qh=[["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"}]],e0=ne("shuffle",Qh);/**
|
|
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 t0=[["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"}]],n0=
|
|
551
|
+
*/const t0=[["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"}]],n0=ne("skip-back",t0);/**
|
|
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 a0=[["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"}]],r0=
|
|
556
|
+
*/const a0=[["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"}]],r0=ne("skip-forward",a0);/**
|
|
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 o0=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],s0=
|
|
561
|
+
*/const o0=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],s0=ne("square",o0);/**
|
|
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 l0=[["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"}]],i0=
|
|
566
|
+
*/const l0=[["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"}]],i0=ne("star",l0);/**
|
|
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 u0=[["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"}]],c0=
|
|
571
|
+
*/const u0=[["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"}]],c0=ne("store",u0);/**
|
|
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 d0=[["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"}]],p0=
|
|
576
|
+
*/const d0=[["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"}]],p0=ne("sun-medium",d0);/**
|
|
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 m0=[["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"}]],h0=
|
|
581
|
+
*/const m0=[["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"}]],h0=ne("table",m0);/**
|
|
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 C0=[["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"}]],f0=
|
|
586
|
+
*/const C0=[["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"}]],f0=ne("table-2",C0);/**
|
|
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 b0=[["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"}]],g0=
|
|
591
|
+
*/const b0=[["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"}]],g0=ne("tag",b0);/**
|
|
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 y0=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],v0=
|
|
596
|
+
*/const y0=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],v0=ne("terminal",y0);/**
|
|
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 x0=[["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"}]],_0=
|
|
601
|
+
*/const x0=[["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"}]],_0=ne("text-cursor-input",x0);/**
|
|
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 w0=[["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"}]],B0=
|
|
606
|
+
*/const w0=[["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"}]],B0=ne("text-initial",w0);/**
|
|
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 k0=[["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"}]],A0=
|
|
611
|
+
*/const k0=[["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"}]],A0=ne("ticket",k0);/**
|
|
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 N0=[["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"}]],E0=
|
|
616
|
+
*/const N0=[["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"}]],E0=ne("trash-2",N0);/**
|
|
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 D0=[["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"}]],S0=
|
|
621
|
+
*/const D0=[["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"}]],S0=ne("trash",D0);/**
|
|
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 j0=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],T0=
|
|
626
|
+
*/const j0=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],T0=ne("trending-up",j0);/**
|
|
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 M0=[["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"}]],L0=
|
|
631
|
+
*/const M0=[["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"}]],L0=ne("trophy",M0);/**
|
|
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 $0=[["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"}]],R0=
|
|
636
|
+
*/const $0=[["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"}]],R0=ne("unlink",$0);/**
|
|
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 P0=[["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"}]],I0=
|
|
641
|
+
*/const P0=[["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"}]],I0=ne("upload",P0);/**
|
|
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 F0=[["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"}]],
|
|
646
|
+
*/const F0=[["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=ne("user",F0);/**
|
|
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 O0=[["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"}]],z0=
|
|
651
|
+
*/const O0=[["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"}]],z0=ne("user-plus",O0);/**
|
|
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 W0=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],H0=
|
|
656
|
+
*/const W0=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],H0=ne("user-round",W0);/**
|
|
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 V0=[["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"}]],q0=
|
|
661
|
+
*/const V0=[["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"}]],q0=ne("user-round-check",V0);/**
|
|
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 U0=[["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"}]],G0=
|
|
666
|
+
*/const U0=[["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"}]],G0=ne("users",U0);/**
|
|
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 K0=[["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"}]],Y0=
|
|
671
|
+
*/const K0=[["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"}]],Y0=ne("users-round",K0);/**
|
|
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 Z0=[["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 Z0=[["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=ne("volume-2",Z0);/**
|
|
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 X0=[["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"}]],J0=
|
|
681
|
+
*/const X0=[["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"}]],J0=ne("wrench",X0);/**
|
|
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 Q0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ks=
|
|
686
|
+
*/const Q0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ks=ne("x",Q0);/**
|
|
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 e1=[["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"}]],t1=
|
|
691
|
+
*/const e1=[["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"}]],t1=ne("anchor",e1);/**
|
|
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 n1=[["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"}]],a1=
|
|
696
|
+
*/const n1=[["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"}]],a1=ne("armchair",n1);/**
|
|
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 r1=[["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 r1=[["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=ne("calendar",r1);/**
|
|
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 o1=[["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"}]],s1=
|
|
706
|
+
*/const o1=[["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"}]],s1=ne("car",o1);/**
|
|
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 l1=[["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"}]],i1=
|
|
711
|
+
*/const l1=[["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"}]],i1=ne("coffee",l1);/**
|
|
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 u1=[["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"}]],c1=
|
|
716
|
+
*/const u1=[["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"}]],c1=ne("gamepad-2",u1);/**
|
|
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 d1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],p1=
|
|
721
|
+
*/const d1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],p1=ne("clock",d1);/**
|
|
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 m1=[["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"}]],h1=
|
|
726
|
+
*/const m1=[["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"}]],h1=ne("target",m1);/**
|
|
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 C1=[["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"}]],f1=
|
|
731
|
+
*/const C1=[["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"}]],f1=ne("percent",C1);/**
|
|
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 b1=[["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"}]],g1=
|
|
736
|
+
*/const b1=[["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"}]],g1=ne("inbox",b1);/**
|
|
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 y1=[["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"}]],v1=
|
|
741
|
+
*/const y1=[["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"}]],v1=ne("message-square-more",y1);/**
|
|
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 x1=[["path",{d:"M5 12h14",key:"1ays0h"}]],_1=
|
|
746
|
+
*/const x1=[["path",{d:"M5 12h14",key:"1ays0h"}]],_1=ne("minus",x1);/**
|
|
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 w1=[["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"}]],B1=
|
|
751
|
+
*/const w1=[["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"}]],B1=ne("sparkles",w1);/**
|
|
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 k1=[["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"}]],A1=
|
|
756
|
+
*/const k1=[["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"}]],A1=ne("type",k1);/**
|
|
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 N1=[["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"}]],E1=
|
|
761
|
+
*/const N1=[["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"}]],E1=ne("volume",N1);/**
|
|
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 D1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zs=
|
|
766
|
+
*/const D1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zs=ne("chevron-down",D1);/**
|
|
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 S1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Xs=
|
|
771
|
+
*/const S1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Xs=ne("chevron-up",S1);/**
|
|
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 j1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],T1=
|
|
776
|
+
*/const j1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],T1=ne("circle",j1);/**
|
|
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 M1=[["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"}]],L1=
|
|
781
|
+
*/const M1=[["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"}]],L1=ne("triangle",M1);/**
|
|
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 $1=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],R1=
|
|
786
|
+
*/const $1=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],R1=ne("menu",$1);/**
|
|
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 P1=[["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"}]],I1=
|
|
791
|
+
*/const P1=[["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"}]],I1=ne("moon",P1);/**
|
|
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 F1=[["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"}]],O1=
|
|
797
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y1(e,t){return U1(e)||G1(e,t)||Z1(e,t)||K1()}function Z1(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,X1=Object.isFrozen,J1=Object.getPrototypeOf,Q1=Object.getOwnPropertyDescriptor;let Ot=Object.freeze,Ht=Object.seal,ra=Object.create,al=typeof Reflect<"u"&&Reflect,zr=al.apply,Wr=al.construct;Ot||(Ot=function(t){return t}),Ht||(Ht=function(t){return t}),zr||(zr=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)}),Wr||(Wr=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=Pt(Array.prototype.forEach),eC=Pt(Array.prototype.lastIndexOf),rl=Pt(Array.prototype.pop),wa=Pt(Array.prototype.push),tC=Pt(Array.prototype.splice),oa=Array.isArray,Ba=Pt(String.prototype.toLowerCase),Hr=Pt(String.prototype.toString),ol=Pt(String.prototype.match),ka=Pt(String.prototype.replace),sl=Pt(String.prototype.indexOf),nC=Pt(String.prototype.trim),aC=Pt(Number.prototype.toString),rC=Pt(Boolean.prototype.toString),ll=typeof BigInt>"u"?null:Pt(BigInt.prototype.toString),il=typeof Symbol>"u"?null:Pt(Symbol.prototype.toString),an=Pt(Object.prototype.hasOwnProperty),Aa=Pt(Object.prototype.toString),Kt=Pt(RegExp.prototype.test),qn=oC(TypeError);function Pt(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 zr(e,t,r)}}function oC(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return Wr(e,a)}}function mt(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ba;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&&(X1(t)||(t[r]=l),s=l)}e[s]=!0}return e}function sC(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=Y1(r,2);const s=a[0],l=a[1];an(e,s)&&(oa(l)?t[s]=sC(l):l&&typeof l=="object"&&l.constructor===Object?t[s]=ln(l):t[s]=l)}return t}function lC(e){switch(typeof e){case"string":return e;case"number":return aC(e);case"boolean":return rC(e);case"bigint":return ll?ll(e):"0";case"symbol":return il?il(e):"Symbol()";case"undefined":return Aa(e);case"function":case"object":{if(e===null)return Aa(e);const t=e,a=bn(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:Aa(r)}return Aa(e)}default:return Aa(e)}}function bn(e,t){for(;e!==null;){const r=Q1(e,t);if(r){if(r.get)return Pt(r.get);if(typeof r.value=="function")return Pt(r.value)}e=J1(e)}function a(){return null}return a}function iC(e){try{return Kt(e,""),!0}catch{return!1}}const ul=Ot(["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"]),Vr=Ot(["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"]),qr=Ot(["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"]),uC=Ot(["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"]),Ur=Ot(["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"]),cC=Ot(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),cl=Ot(["#text"]),dl=Ot(["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"]),Gr=Ot(["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=Ot(["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"]),tr=Ot(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dC=Ht(/{{[\w\W]*|^[\w\W]*}}/g),pC=Ht(/<%[\w\W]*|^[\w\W]*%>/g),mC=Ht(/\${[\w\W]*/g),hC=Ht(/^data-[\-\w.\u00B7-\uFFFF]+$/),CC=Ht(/^aria-[\-\w]+$/),ml=Ht(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fC=Ht(/^(?:\w+script|data):/i),bC=Ht(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gC=Ht(/^html$/i),yC=Ht(/^[a-z][.\w]*(-[.\w]+)+$/i),hl=Ht(/<[/\w!]/g),Cl=Ht(/<[/\w]/g),vC=Ht(/<\/no(script|embed|frames)/i),xC=Ht(/\/>/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"],_C=Ot(mt({},fl)),wC=(function(){const e={};return Vn(fl,t=>{e[t]=Ht(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Ot(e)})(),BC=function(){return typeof window>"u"?null:window},kC=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])?mt(s.base?ln(s.base):{},t[a],s.transform):r},Kr=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]:BC();const t=se=>gl(se);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=bn(h,"cloneNode"),y=bn(h,"remove"),C=bn(h,"nextSibling"),f=bn(h,"childNodes"),_=bn(h,"parentNode"),b=bn(h,"shadowRoot"),k=bn(h,"attributes"),x=i&&i.prototype?bn(i.prototype,"nodeType"):null,N=i&&i.prototype?bn(i.prototype,"nodeName"):null,v=i&&i.prototype?bn(i.prototype,"ownerDocument"):null,B=function(S){return x?x(S):S.nodeType},w=function(S){return N?N(S):S.nodeName};if(typeof l=="function"){const se=a.createElement("template");se.content&&se.content.ownerDocument&&(a=se.content.ownerDocument)}let E,D="",A,R=!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.')},M=function(S){K(),$++;try{return E.createHTML(S)}finally{$--}},I=function(S){K(),$++;try{return E.createScriptURL(S)}finally{$--}},L=function(){return R||(A=kC(p,s),R=!0),A},Z=a,U=Z.implementation,F=Z.createNodeIterator,Q=Z.createDocumentFragment,P=Z.getElementsByTagName,q=r.importNode;let X=bl();t.isSupported=typeof tl=="function"&&typeof _=="function"&&U&&U.createHTMLDocument!==void 0;const V=dC,T=pC,j=mC,O=hC,H=CC,oe=fC,ne=bC,le=yC;let ee=ml,z=null;const te=mt({},[...ul,...Vr,...qr,...Ur,...cl]);let W=null;const G=mt({},[...dl,...Gr,...pl,...tr]);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}})),Ee=null,ve=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 ce=!0,ge=!0,he=!1,de=!0,Le=!1,ze=!0,Me=!1,Ve=!1,We=null,dt=null,lt=!1,tt=!1,yt=!1,_e=!1,Ge=!0,Be=!1;const qe="user-content-";let Ke=!0,pt=!1,xt={},Dt=null;const St=mt({},["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 it=null;const at=mt({},["audio","video","img","source","image","track"]);let At=null;const _t=mt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Mt="http://www.w3.org/1998/Math/MathML",Ne="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml";let Se=$e,He=!1,rt=null;const vt=mt({},[Mt,Ne,$e],Hr),et=Ot(["mi","mo","mn","ms","mtext"]);let Nt=mt({},et);const Ye=Ot(["annotation-xml"]);let bt=mt({},Ye);const kt=mt({},["title","style","font","a","script"]);let gt=null;const ft=["application/xhtml+xml","text/html"],ut="text/html";let De=null,nt=null;const re=a.createElement("form"),Ce=function(S){return S instanceof RegExp||S instanceof Function},Fe=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(nt&&nt===S)return;(!S||typeof S!="object")&&(S={}),S=ln(S),gt=ft.indexOf(S.PARSER_MEDIA_TYPE)===-1?ut:S.PARSER_MEDIA_TYPE,De=gt==="application/xhtml+xml"?Hr:Ba,z=In(S,"ALLOWED_TAGS",te,{transform:De}),W=In(S,"ALLOWED_ATTR",G,{transform:De}),rt=In(S,"ALLOWED_NAMESPACES",vt,{transform:Hr}),At=In(S,"ADD_URI_SAFE_ATTR",_t,{transform:De,base:_t}),it=In(S,"ADD_DATA_URI_TAGS",at,{transform:De,base:at}),Dt=In(S,"FORBID_CONTENTS",St,{transform:De}),Ee=In(S,"FORBID_TAGS",ln({}),{transform:De}),ve=In(S,"FORBID_ATTR",ln({}),{transform:De}),xt=an(S,"USE_PROFILES")?S.USE_PROFILES&&typeof S.USE_PROFILES=="object"?ln(S.USE_PROFILES):S.USE_PROFILES:!1,ce=S.ALLOW_ARIA_ATTR!==!1,ge=S.ALLOW_DATA_ATTR!==!1,he=S.ALLOW_UNKNOWN_PROTOCOLS||!1,de=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=S.SAFE_FOR_TEMPLATES||!1,ze=S.SAFE_FOR_XML!==!1,Me=S.WHOLE_DOCUMENT||!1,tt=S.RETURN_DOM||!1,yt=S.RETURN_DOM_FRAGMENT||!1,_e=S.RETURN_TRUSTED_TYPE||!1,lt=S.FORCE_BODY||!1,Ge=S.SANITIZE_DOM!==!1,Be=S.SANITIZE_NAMED_PROPS||!1,Ke=S.KEEP_CONTENT!==!1,pt=S.IN_PLACE||!1,ee=iC(S.ALLOWED_URI_REGEXP)?S.ALLOWED_URI_REGEXP:ml,Se=typeof S.NAMESPACE=="string"?S.NAMESPACE:$e,Nt=Kr(S,"MATHML_TEXT_INTEGRATION_POINTS",()=>mt({},et)),bt=Kr(S,"HTML_INTEGRATION_POINTS",()=>mt({},Ye));const Y=Kr(S,"CUSTOM_ELEMENT_HANDLING",()=>ra(null));if(pe=ra(null),an(Y,"tagNameCheck")&&Ce(Y.tagNameCheck)&&(pe.tagNameCheck=Y.tagNameCheck),an(Y,"attributeNameCheck")&&Ce(Y.attributeNameCheck)&&(pe.attributeNameCheck=Y.attributeNameCheck),an(Y,"allowCustomizedBuiltInElements")&&typeof Y.allowCustomizedBuiltInElements=="boolean"&&(pe.allowCustomizedBuiltInElements=Y.allowCustomizedBuiltInElements),Ht(pe),Le&&(ge=!1),yt&&(tt=!0),xt&&(z=mt({},cl),W=ra(null),xt.html===!0&&(mt(z,ul),mt(W,dl)),xt.svg===!0&&(mt(z,Vr),mt(W,Gr),mt(W,tr)),xt.svgFilters===!0&&(mt(z,qr),mt(W,Gr),mt(W,tr)),xt.mathMl===!0&&(mt(z,Ur),mt(W,pl),mt(W,tr))),me.tagCheck=null,me.attributeCheck=null,an(S,"ADD_TAGS")&&(typeof S.ADD_TAGS=="function"?me.tagCheck=S.ADD_TAGS:oa(S.ADD_TAGS)&&(z===te&&(z=ln(z)),mt(z,S.ADD_TAGS,De))),an(S,"ADD_ATTR")&&(typeof S.ADD_ATTR=="function"?me.attributeCheck=S.ADD_ATTR:oa(S.ADD_ATTR)&&(W===G&&(W=ln(W)),mt(W,S.ADD_ATTR,De))),an(S,"ADD_FORBID_CONTENTS")&&oa(S.ADD_FORBID_CONTENTS)&&(Dt===St&&(Dt=ln(Dt)),mt(Dt,S.ADD_FORBID_CONTENTS,De)),Ke&&(z["#text"]=!0),Me&&mt(z,["html","head","body"]),z.table&&(mt(z,["tbody"]),delete Ee.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const fe=E;E=S.TRUSTED_TYPES_POLICY;try{D=M("")}catch(Te){throw E=fe,Te}}else S.TRUSTED_TYPES_POLICY===null?(E=void 0,D=""):(E===void 0&&(E=L()),E&&typeof D=="string"&&(D=M("")));Ot&&Ot(S),nt=S},Qe=mt({},[...Vr,...qr,...uC]),ct=mt({},[...Ur,...cC]),ot=function(S,Y,fe){return Y.namespaceURI===$e?S==="svg":Y.namespaceURI===Mt?S==="svg"&&(fe==="annotation-xml"||Nt[fe]):!!Qe[S]},It=function(S,Y,fe){return Y.namespaceURI===$e?S==="math":Y.namespaceURI===Ne?S==="math"&&bt[fe]:!!ct[S]},Yt=function(S,Y,fe){return Y.namespaceURI===Ne&&!bt[fe]||Y.namespaceURI===Mt&&!Nt[fe]?!1:!ct[S]&&(kt[S]||!Qe[S])},kn=function(S){let Y=_(S);(!Y||!Y.tagName)&&(Y={namespaceURI:Se,tagName:"template"});const fe=Ba(S.tagName),Te=Ba(Y.tagName);return rt[S.namespaceURI]?S.namespaceURI===Ne?ot(fe,Y,Te):S.namespaceURI===Mt?It(fe,Y,Te):S.namespaceURI===$e?Yt(fe,Y,Te):!!(gt==="application/xhtml+xml"&&rt[S.namespaceURI]):!1},Vt=function(S){wa(t.removed,{element:S});try{_(S).removeChild(S)}catch{if(y(S),!_(S))throw qn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Zt=function(S,Y,fe){try{S.removeAttributeNode(Y)}catch{try{S.removeAttribute(fe)}catch{}}},Rt=function(S){wt(S);const Y=f(S);if(Y){const Te=[];Vn(Y,Pe=>{wa(Te,Pe)}),Vn(Te,Pe=>{try{y(Pe)}catch{}})}const fe=k(S);if(fe)for(let Te=fe.length-1;Te>=0;--Te){const Pe=fe[Te],Xe=Pe&&Pe.name;typeof Xe=="string"&&Zt(S,Pe,Xe)}},ht=function(S,Y,fe){if(!fe)try{fe=Y.getAttributeNode(S)}catch{fe=null}wa(t.removed,{attribute:fe||null,from:Y});try{fe?Y.removeAttributeNode(fe):Y.removeAttribute(S)}catch{try{Y.removeAttribute(S)}catch{}}if(S==="is")if(tt||yt)try{Vt(Y)}catch{}else try{Y.setAttribute(S,"")}catch{}},Ct=function(S){const Y=k(S);if(Y)for(let fe=Y.length-1;fe>=0;--fe){const Te=Y[fe],Pe=Te&&Te.name;typeof Pe!="string"||W[De(Pe)]||Zt(S,Te,Pe)}},wt=function(S){const Y=[S];for(;Y.length>0;){const fe=Y.pop();B(fe)===un.element&&Ct(fe);const Pe=f(fe);if(Pe)for(let Xe=Pe.length-1;Xe>=0;--Xe)Y.push(Pe[Xe])}},zt=function(S,Y){return ze?S==="patchsrc"?!0:S==="for"&&Y!=="label"&&Y!=="output":!1},Cn=function(S){if(!ze)return;const Y=[S];for(;Y.length>0;){const fe=Y.pop(),Te=B(fe);if(Te===un.processingInstruction||Te===un.comment&&Kt(Cl,fe.data)){try{y(fe)}catch{}continue}if(Te===un.element){const Xe=fe,Bt=De(w(fe));try{Xe.hasAttribute&&Xe.hasAttribute("patchsrc")&&Xe.removeAttribute("patchsrc"),Xe.hasAttribute&&Xe.hasAttribute("for")&&zt("for",Bt)&&Xe.removeAttribute("for")}catch{}}const Pe=f(fe);if(Pe)for(let Xe=Pe.length-1;Xe>=0;--Xe)Y.push(Pe[Xe])}},An=function(S){let Y=null,fe=null;if(lt)S="<remove></remove>"+S;else{const Xe=ol(S,/^[\r\n\t ]+/);fe=Xe&&Xe[0]}gt==="application/xhtml+xml"&&Se===$e&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const Te=E?M(S):S;if(Se===$e)try{Y=new m().parseFromString(Te,gt)}catch{}if(!Y||!Y.documentElement){Y=U.createDocument(Se,"template",null);try{Y.documentElement.innerHTML=He?D:Te}catch{}}const Pe=Y.body||Y.documentElement;return S&&fe&&Pe.insertBefore(a.createTextNode(fe),Pe.childNodes[0]||null),Se===$e?P.call(Y,Me?"html":"body")[0]:Me?Y.documentElement:Pe},Rn=function(S){const Y=v?v(S):S.ownerDocument;return F.call(Y||S,S,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},pn=function(S){return S=ka(S,V," "),S=ka(S,T," "),S=ka(S,j," "),S},Gt=function(S){var Y;S.normalize();const fe=v?v(S):S.ownerDocument,Te=F.call(fe||S,S,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Pe=Te.nextNode();for(;Pe;)Pe.data=pn(Pe.data),Pe=Te.nextNode();const Xe=(Y=S.querySelectorAll)===null||Y===void 0?void 0:Y.call(S,"template");Xe&&Vn(Xe,Bt=>{Ft(Bt.content)&&Gt(Bt.content)})},fn=function(S){const Y=N?N(S):null;return typeof Y!="string"||De(Y)!=="form"?!1:typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||S.attributes!==k(S)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function"||S.nodeType!==x(S)||S.childNodes!==f(S)},Ft=function(S){if(!x||typeof S!="object"||S===null)return!1;try{return x(S)===un.documentFragment}catch{return!1}},Xt=function(S){if(!x||typeof S!="object"||S===null)return!1;try{return typeof x(S)=="number"}catch{return!1}};function Wt(se,S,Y){se.length!==0&&Vn(se,fe=>{fe.call(t,S,Y,nt)})}const vn=function(S,Y){return!!(ze&&S.hasChildNodes()&&!Xt(S.firstElementChild)&&Kt(hl,S.textContent)&&Kt(hl,S.innerHTML)||ze&&S.namespaceURI===$e&&_C[Y]&&(Xt(S.firstElementChild)||typeof S.textContent=="string"&&Kt(wC[Y],S.textContent))||S.nodeType===un.processingInstruction||ze&&S.nodeType===un.comment&&Kt(Cl,S.data))},ie=function(S,Y){if(S instanceof RegExp)return Kt(S,Y);if(S instanceof Function){for(var fe=arguments.length,Te=new Array(fe>2?fe-2:0),Pe=2;Pe<fe;Pe++)Te[Pe-2]=arguments[Pe];return!!S(Y,...Te)}return!1},Ae=function(S,Y,fe){if(!Ee[Y]&&ke(Y)&&ie(pe.tagNameCheck,Y))return!1;if(Ke&&!Dt[Y]){const Te=_(S),Pe=f(S);if(Pe&&Te){const Xe=Pe.length;for(let Bt=Xe-1;Bt>=0;--Bt){const jt=S===fe?g(Pe[Bt],!0):Pe[Bt];Te.insertBefore(jt,C(S))}}}return Vt(S),!0},Re=function(S,Y,fe,Te){return S.length===0?Y:Y===fe||Y===Te?ln(Y):Y},Ue=function(S,Y){return S===Y||_(S)!==null?!1:(pt&&wt(S),!0)},Ie=function(S,Y){if(Wt(X.beforeSanitizeElements,S,null),Ue(S,Y))return!0;if(fn(S))return Vt(S),!0;const fe=De(w(S));if(z=Re(X.uponSanitizeElement,z,te,We),Wt(X.uponSanitizeElement,S,{tagName:fe,allowedTags:z}),Ue(S,Y))return!0;if(vn(S,fe))return Vt(S),!0;if(Ee[fe]||!(me.tagCheck instanceof Function&&me.tagCheck(fe))&&!z[fe]){const Pe=Ae(S,fe,Y);return Pe===!1&&Wt(X.afterSanitizeElements,S,null),Pe}if(B(S)===un.element&&!kn(S)||(fe==="noscript"||fe==="noembed"||fe==="noframes")&&Kt(vC,S.innerHTML))return Vt(S),!0;if(Le&&S.nodeType===un.text){const Pe=pn(S.textContent);S.textContent!==Pe&&(wa(t.removed,{element:S.cloneNode()}),S.textContent=Pe)}return Wt(X.afterSanitizeElements,S,null),!1},J=function(S,Y,fe){if(ve[Y]||zt(Y,S)||Ge&&(Y==="id"||Y==="name")&&(fe in a||fe in re))return!1;const Te=W[Y]||me.attributeCheck instanceof Function&&me.attributeCheck(Y,S);return ge&&Kt(O,Y)||ce&&Kt(H,Y)?!0:Te?At[Y]||Kt(ee,ka(fe,ne,""))||(Y==="src"||Y==="xlink:href"||Y==="href")&&S!=="script"&&sl(fe,"data:")===0&&it[S]||he&&!Kt(oe,ka(fe,ne,""))?!0:!fe:ke(S)&&ie(pe.tagNameCheck,S)&&ie(pe.attributeNameCheck,Y,S)||Y==="is"&&pe.allowCustomizedBuiltInElements&&ie(pe.tagNameCheck,fe)},ue=mt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ke=function(S){return!ue[Ba(S)]&&Kt(le,S)},Oe=function(S,Y,fe,Te){if(E&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!fe)switch(p.getAttributeType(S,Y)){case"TrustedHTML":return M(Te);case"TrustedScriptURL":return I(Te)}return Te},Ze=function(S,Y,fe,Te){try{fe?S.setAttributeNS(fe,Y,Te):S.setAttribute(Y,Te),fn(S)?Vt(S):rl(t.removed)}catch{ht(Y,S)}},Je=function(S){Wt(X.beforeSanitizeAttributes,S,null);const Y=S.attributes;if(!Y||fn(S))return;W=Re(X.uponSanitizeAttribute,W,G,dt);const fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let Te=Y.length;const Pe=De(S.nodeName);for(;Te--;){const Xe=Y[Te],Bt=Xe.name,jt=Xe.namespaceURI,tn=Xe.value,nn=De(Bt),Pr=tn;let Jt=Bt==="value"?Pr:nC(Pr);if(fe.attrName=nn,fe.attrValue=Jt,fe.keepAttr=!0,fe.forceKeepAttr=void 0,Wt(X.uponSanitizeAttribute,S,fe),Jt=fe.attrValue,Be&&(nn==="id"||nn==="name")&&sl(Jt,qe)!==0&&(ht(Bt,S,Xe),Jt=qe+Jt),ze&&Kt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Jt)){ht(Bt,S,Xe);continue}if(nn==="attributename"&&ol(Jt,"href")){ht(Bt,S,Xe);continue}if(!fe.forceKeepAttr){if(!fe.keepAttr){ht(Bt,S,Xe);continue}if(!de&&Kt(xC,Jt)){ht(Bt,S,Xe);continue}if(Le&&(Jt=pn(Jt)),!J(Pe,nn,Jt)){ht(Bt,S,Xe);continue}Jt=Oe(Pe,nn,jt,Jt),Jt!==Pr&&Ze(S,Bt,jt,Jt)}}Wt(X.afterSanitizeAttributes,S,null)},ye=function(S){let Y=null;const fe=Rn(S);for(Wt(X.beforeSanitizeShadowDOM,S,null);Y=fe.nextNode();)if(Wt(X.uponSanitizeShadowNode,Y,null),Ie(Y,S),Je(Y),Ft(Y.content)&&ye(Y.content),B(Y)===un.element){const Te=b(Y);Ft(Te)&&(je(Te),ye(Te))}Wt(X.afterSanitizeShadowDOM,S,null)},je=function(S){const Y=[{node:S,shadow:null}];for(;Y.length>0;){const fe=Y.pop();if(fe.shadow){ye(fe.shadow);continue}const Te=fe.node,Xe=B(Te)===un.element,Bt=f(Te);if(Bt)for(let jt=Bt.length-1;jt>=0;--jt)Y.push({node:Bt[jt],shadow:null});if(Xe){const jt=N?N(Te):null;if(typeof jt=="string"&&De(jt)==="template"){const tn=Te.content;Ft(tn)&&Y.push({node:tn,shadow:null})}}if(Xe){const jt=b(Te);Ft(jt)&&Y.push({node:null,shadow:jt},{node:jt,shadow:null})}}};return t.sanitize=function(se){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,fe=null,Te=null,Pe=null;if(He=!se,He&&(se="<!-->"),typeof se!="string"&&!Xt(se)&&(se=lC(se),typeof se!="string"))throw qn("dirty is not a string, aborting");if(!t.isSupported)return se;Ve?(z=We,W=dt):Fe(S),(X.uponSanitizeElement.length>0||X.uponSanitizeAttribute.length>0)&&(z=ln(z)),X.uponSanitizeAttribute.length>0&&(W=ln(W)),t.removed=[];const Xe=pt&&typeof se!="string"&&Xt(se);if(Xe){Cn(se);const tn=w(se);if(typeof tn=="string"){const nn=De(tn);if(!z[nn]||Ee[nn])throw Rt(se),qn("root node is forbidden and cannot be sanitized in-place")}if(fn(se))throw Rt(se),qn("root node is clobbered and cannot be sanitized in-place");try{je(se)}catch(nn){throw Rt(se),nn}}else if(Xt(se))Y=An("<!---->"),fe=Y.ownerDocument.importNode(se,!0),fe.nodeType===un.element&&fe.nodeName==="BODY"||fe.nodeName==="HTML"?Y=fe:Y.appendChild(fe),je(fe);else{if(!tt&&!Le&&!Me&&se.indexOf("<")===-1)return E&&_e?M(se):se;if(Y=An(se),!Y)return tt?null:_e?D:""}Y&<&&Vt(Y.firstChild);const Bt=Xe?se:Y;try{const tn=Rn(Bt);for(;Te=tn.nextNode();)Ie(Te,Bt),Je(Te),Ft(Te.content)&&ye(Te.content)}catch(tn){throw Xe&&(Rt(se),Vn(t.removed,nn=>{nn.element&&wt(nn.element)})),tn}if(Xe)return Vn(t.removed,tn=>{tn.element&&wt(tn.element)}),Le&&Gt(se),se;if(tt){if(Le&&Gt(Y),yt)for(Pe=Q.call(Y.ownerDocument);Y.firstChild;)Pe.appendChild(Y.firstChild);else Pe=Y;return(W.shadowroot||W.shadowrootmode)&&(Pe=q.call(r,Pe,!0)),Pe}let jt=Me?Y.outerHTML:Y.innerHTML;return Me&&z["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&Kt(gC,Y.ownerDocument.doctype.name)&&(jt="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
|
|
798
|
-
`+jt),Le&&(jt=pn(jt)),E&&_e?M(jt):jt},t.setConfig=function(){let
|
|
796
|
+
*/const F1=[["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"}]],O1=ne("thumbs-up",F1),Fr={"alert-triangle":Ps,"align-start-vertical":kd,anchor:t1,armchair:a1,"arrow-down":Nd,"arrow-left":Dd,"arrow-right":jd,"arrow-right-left":Md,"audio-lines":$d,ban:Pd,bell:Fd,"book-marked":zd,"book-open":Hd,"bow-arrow":qd,braces:Gd,bug:Yd,calendar:Ys,"calendar-check":Xd,"calendar-days":Qd,camera:tp,car:s1,"chart-column":ap,"chart-line":op,"chart-pie":lp,check:Is,"chevron-down":Zs,"chevron-left":Fs,"chevron-right":Os,"chevron-up":Xs,circle:T1,"clipboard-list":pp,coffee:i1,combine:hp,copy:fp,"chevrons-left-right-ellipsis":gp,"credit-card":vp,database:zs,diff:wp,download:Ws,ear:Ap,edit:Ep,"edit-2":Sp,"edit-3":Tp,ellipsis:Hs,eraser:$p,"external-link":Pp,eye:Fp,"file-text":zp,"flip-horizontal":Hp,"folder-open":qp,"folder-plus":Gp,gamepad:Yp,"gamepad-2":c1,clock:p1,lock:Im,"search-x":Wh,"share-2":Kh,tag:g0,target:h1,percent:f1,gavel:Xp,"git-merge":Vs,globe:em,"grip-vertical":nm,headphones:rm,heart:sm,home:im,inbox:g1,info:cm,"key-round":pm,landmark:hm,layers:fm,"layout-dashboard":gm,leaf:vm,lightbulb:_m,link:Bm,"link-2":Am,"link-2-off":Em,list:Sm,"list-checks":Tm,"list-ordered":Lm,loader:Rm,"log-out":Om,mail:Wm,"map-pin":Vm,menu:R1,"message-circle":Um,"message-circle-question-mark":Km,"message-square":Zm,"message-square-more":v1,"message-square-text":Jm,minus:_1,"minus-circle":eh,moon:I1,"more-horizontal":Hs,package:nh,"party-popper":rh,pause:sh,pencil:ih,phone:ch,play:ph,"play-circle":hh,plus:fh,printer:gh,"refresh-cw":vh,repeat:_h,replace:Bh,rocket:Ah,"rotate-ccw":Eh,"rotate-cw":Sh,salad:Th,"scan-search":Lh,search:Ih,"circle-alert":qs,"alert-circle":qs,"check-circle":Us,scissors:Oh,send:Vh,settings:Uh,"shield-check":Zh,"shopping-cart":Jh,shuffle:e0,"skip-back":n0,"skip-forward":r0,sparkles:B1,square:s0,star:i0,store:c0,"sun-medium":p0,table:h0,"table-2":f0,terminal:v0,"text-cursor-input":_0,"text-initial":B0,"thumbs-up":O1,ticket:A0,trash:S0,triangle:L1,"trash-2":E0,"trending-up":T0,"triangle-alert":Ps,trophy:L0,type:A1,unlink:R0,upload:I0,user:Ir,"user-plus":z0,"user-round":H0,"user-round-check":q0,users:G0,"users-round":Y0,volume:E1,"volume-2":Gs,wrench:J0,x:Ks};Object.freeze(Object.keys(Fr));function z1(e){return Fr[e]??null}const Js=new Set;function W1(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 H1=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 V1(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?H1(a):null}const Qs=new Map;function q1(e){const t=typeof e=="string"?V1(e):null,a=t?z1(t)??Qs.get(t)??null:null,[r,s]=o.useState(null);return o.useEffect(()=>{if(!t||a)return;let l=!1;return W1(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 U1(e){if(Array.isArray(e))return e}function G1(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 K1(){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 Y1(e,t){return U1(e)||G1(e,t)||Z1(e,t)||K1()}function Z1(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,X1=Object.isFrozen,J1=Object.getPrototypeOf,Q1=Object.getOwnPropertyDescriptor;let Ot=Object.freeze,Ht=Object.seal,ra=Object.create,al=typeof Reflect<"u"&&Reflect,Or=al.apply,zr=al.construct;Ot||(Ot=function(t){return t}),Ht||(Ht=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=Pt(Array.prototype.forEach),eC=Pt(Array.prototype.lastIndexOf),rl=Pt(Array.prototype.pop),wa=Pt(Array.prototype.push),tC=Pt(Array.prototype.splice),oa=Array.isArray,Ba=Pt(String.prototype.toLowerCase),Wr=Pt(String.prototype.toString),ol=Pt(String.prototype.match),ka=Pt(String.prototype.replace),sl=Pt(String.prototype.indexOf),nC=Pt(String.prototype.trim),aC=Pt(Number.prototype.toString),rC=Pt(Boolean.prototype.toString),ll=typeof BigInt>"u"?null:Pt(BigInt.prototype.toString),il=typeof Symbol>"u"?null:Pt(Symbol.prototype.toString),an=Pt(Object.prototype.hasOwnProperty),Aa=Pt(Object.prototype.toString),Kt=Pt(RegExp.prototype.test),qn=oC(TypeError);function Pt(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 oC(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 mt(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ba;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&&(X1(t)||(t[r]=l),s=l)}e[s]=!0}return e}function sC(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=Y1(r,2);const s=a[0],l=a[1];an(e,s)&&(oa(l)?t[s]=sC(l):l&&typeof l=="object"&&l.constructor===Object?t[s]=ln(l):t[s]=l)}return t}function lC(e){switch(typeof e){case"string":return e;case"number":return aC(e);case"boolean":return rC(e);case"bigint":return ll?ll(e):"0";case"symbol":return il?il(e):"Symbol()";case"undefined":return Aa(e);case"function":case"object":{if(e===null)return Aa(e);const t=e,a=bn(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:Aa(r)}return Aa(e)}default:return Aa(e)}}function bn(e,t){for(;e!==null;){const r=Q1(e,t);if(r){if(r.get)return Pt(r.get);if(typeof r.value=="function")return Pt(r.value)}e=J1(e)}function a(){return null}return a}function iC(e){try{return Kt(e,""),!0}catch{return!1}}const ul=Ot(["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=Ot(["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=Ot(["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"]),uC=Ot(["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=Ot(["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"]),cC=Ot(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),cl=Ot(["#text"]),dl=Ot(["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=Ot(["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=Ot(["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"]),tr=Ot(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),dC=Ht(/{{[\w\W]*|^[\w\W]*}}/g),pC=Ht(/<%[\w\W]*|^[\w\W]*%>/g),mC=Ht(/\${[\w\W]*/g),hC=Ht(/^data-[\-\w.\u00B7-\uFFFF]+$/),CC=Ht(/^aria-[\-\w]+$/),ml=Ht(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fC=Ht(/^(?:\w+script|data):/i),bC=Ht(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gC=Ht(/^html$/i),yC=Ht(/^[a-z][.\w]*(-[.\w]+)+$/i),hl=Ht(/<[/\w!]/g),Cl=Ht(/<[/\w]/g),vC=Ht(/<\/no(script|embed|frames)/i),xC=Ht(/\/>/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"],_C=Ot(mt({},fl)),wC=(function(){const e={};return Vn(fl,t=>{e[t]=Ht(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Ot(e)})(),BC=function(){return typeof window>"u"?null:window},kC=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])?mt(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]:BC();const t=le=>gl(le);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=bn(h,"cloneNode"),y=bn(h,"remove"),C=bn(h,"nextSibling"),f=bn(h,"childNodes"),_=bn(h,"parentNode"),b=bn(h,"shadowRoot"),k=bn(h,"attributes"),x=i&&i.prototype?bn(i.prototype,"nodeType"):null,N=i&&i.prototype?bn(i.prototype,"nodeName"):null,v=i&&i.prototype?bn(i.prototype,"ownerDocument"):null,B=function(S){return x?x(S):S.nodeType},w=function(S){return N?N(S):S.nodeName};if(typeof l=="function"){const le=a.createElement("template");le.content&&le.content.ownerDocument&&(a=le.content.ownerDocument)}let E,D="",A,R=!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.')},M=function(S){K(),$++;try{return E.createHTML(S)}finally{$--}},P=function(S){K(),$++;try{return E.createScriptURL(S)}finally{$--}},L=function(){return R||(A=kC(p,s),R=!0),A},Z=a,U=Z.implementation,F=Z.createNodeIterator,Q=Z.createDocumentFragment,I=Z.getElementsByTagName,q=r.importNode;let J=bl();t.isSupported=typeof tl=="function"&&typeof _=="function"&&U&&U.createHTMLDocument!==void 0;const V=dC,T=pC,j=mC,O=hC,H=CC,oe=fC,se=bC,re=yC;let ee=ml,z=null;const te=mt({},[...ul,...Hr,...Vr,...qr,...cl]);let W=null;const G=mt({},[...dl,...Ur,...pl,...tr]);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}})),Ee=null,ve=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 ce=!0,ge=!0,he=!1,pe=!0,Le=!1,ze=!0,Me=!1,Ve=!1,We=null,dt=null,lt=!1,tt=!1,yt=!1,_e=!1,Ge=!0,Be=!1;const qe="user-content-";let Ke=!0,pt=!1,xt={},Dt=null;const St=mt({},["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 it=null;const at=mt({},["audio","video","img","source","image","track"]);let At=null;const _t=mt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Lt="http://www.w3.org/1998/Math/MathML",Ne="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml";let Se=$e,He=!1,rt=null;const vt=mt({},[Lt,Ne,$e],Wr),et=Ot(["mi","mo","mn","ms","mtext"]);let Nt=mt({},et);const Ye=Ot(["annotation-xml"]);let bt=mt({},Ye);const kt=mt({},["title","style","font","a","script"]);let gt=null;const ft=["application/xhtml+xml","text/html"],ut="text/html";let De=null,nt=null;const ae=a.createElement("form"),Ce=function(S){return S instanceof RegExp||S instanceof Function},Fe=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(nt&&nt===S)return;(!S||typeof S!="object")&&(S={}),S=ln(S),gt=ft.indexOf(S.PARSER_MEDIA_TYPE)===-1?ut:S.PARSER_MEDIA_TYPE,De=gt==="application/xhtml+xml"?Wr:Ba,z=In(S,"ALLOWED_TAGS",te,{transform:De}),W=In(S,"ALLOWED_ATTR",G,{transform:De}),rt=In(S,"ALLOWED_NAMESPACES",vt,{transform:Wr}),At=In(S,"ADD_URI_SAFE_ATTR",_t,{transform:De,base:_t}),it=In(S,"ADD_DATA_URI_TAGS",at,{transform:De,base:at}),Dt=In(S,"FORBID_CONTENTS",St,{transform:De}),Ee=In(S,"FORBID_TAGS",ln({}),{transform:De}),ve=In(S,"FORBID_ATTR",ln({}),{transform:De}),xt=an(S,"USE_PROFILES")?S.USE_PROFILES&&typeof S.USE_PROFILES=="object"?ln(S.USE_PROFILES):S.USE_PROFILES:!1,ce=S.ALLOW_ARIA_ATTR!==!1,ge=S.ALLOW_DATA_ATTR!==!1,he=S.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=S.SAFE_FOR_TEMPLATES||!1,ze=S.SAFE_FOR_XML!==!1,Me=S.WHOLE_DOCUMENT||!1,tt=S.RETURN_DOM||!1,yt=S.RETURN_DOM_FRAGMENT||!1,_e=S.RETURN_TRUSTED_TYPE||!1,lt=S.FORCE_BODY||!1,Ge=S.SANITIZE_DOM!==!1,Be=S.SANITIZE_NAMED_PROPS||!1,Ke=S.KEEP_CONTENT!==!1,pt=S.IN_PLACE||!1,ee=iC(S.ALLOWED_URI_REGEXP)?S.ALLOWED_URI_REGEXP:ml,Se=typeof S.NAMESPACE=="string"?S.NAMESPACE:$e,Nt=Gr(S,"MATHML_TEXT_INTEGRATION_POINTS",()=>mt({},et)),bt=Gr(S,"HTML_INTEGRATION_POINTS",()=>mt({},Ye));const Y=Gr(S,"CUSTOM_ELEMENT_HANDLING",()=>ra(null));if(de=ra(null),an(Y,"tagNameCheck")&&Ce(Y.tagNameCheck)&&(de.tagNameCheck=Y.tagNameCheck),an(Y,"attributeNameCheck")&&Ce(Y.attributeNameCheck)&&(de.attributeNameCheck=Y.attributeNameCheck),an(Y,"allowCustomizedBuiltInElements")&&typeof Y.allowCustomizedBuiltInElements=="boolean"&&(de.allowCustomizedBuiltInElements=Y.allowCustomizedBuiltInElements),Ht(de),Le&&(ge=!1),yt&&(tt=!0),xt&&(z=mt({},cl),W=ra(null),xt.html===!0&&(mt(z,ul),mt(W,dl)),xt.svg===!0&&(mt(z,Hr),mt(W,Ur),mt(W,tr)),xt.svgFilters===!0&&(mt(z,Vr),mt(W,Ur),mt(W,tr)),xt.mathMl===!0&&(mt(z,qr),mt(W,pl),mt(W,tr))),me.tagCheck=null,me.attributeCheck=null,an(S,"ADD_TAGS")&&(typeof S.ADD_TAGS=="function"?me.tagCheck=S.ADD_TAGS:oa(S.ADD_TAGS)&&(z===te&&(z=ln(z)),mt(z,S.ADD_TAGS,De))),an(S,"ADD_ATTR")&&(typeof S.ADD_ATTR=="function"?me.attributeCheck=S.ADD_ATTR:oa(S.ADD_ATTR)&&(W===G&&(W=ln(W)),mt(W,S.ADD_ATTR,De))),an(S,"ADD_FORBID_CONTENTS")&&oa(S.ADD_FORBID_CONTENTS)&&(Dt===St&&(Dt=ln(Dt)),mt(Dt,S.ADD_FORBID_CONTENTS,De)),Ke&&(z["#text"]=!0),Me&&mt(z,["html","head","body"]),z.table&&(mt(z,["tbody"]),delete Ee.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const fe=E;E=S.TRUSTED_TYPES_POLICY;try{D=M("")}catch(Te){throw E=fe,Te}}else S.TRUSTED_TYPES_POLICY===null?(E=void 0,D=""):(E===void 0&&(E=L()),E&&typeof D=="string"&&(D=M("")));Ot&&Ot(S),nt=S},Qe=mt({},[...Hr,...Vr,...uC]),ct=mt({},[...qr,...cC]),ot=function(S,Y,fe){return Y.namespaceURI===$e?S==="svg":Y.namespaceURI===Lt?S==="svg"&&(fe==="annotation-xml"||Nt[fe]):!!Qe[S]},It=function(S,Y,fe){return Y.namespaceURI===$e?S==="math":Y.namespaceURI===Ne?S==="math"&&bt[fe]:!!ct[S]},Yt=function(S,Y,fe){return Y.namespaceURI===Ne&&!bt[fe]||Y.namespaceURI===Lt&&!Nt[fe]?!1:!ct[S]&&(kt[S]||!Qe[S])},kn=function(S){let Y=_(S);(!Y||!Y.tagName)&&(Y={namespaceURI:Se,tagName:"template"});const fe=Ba(S.tagName),Te=Ba(Y.tagName);return rt[S.namespaceURI]?S.namespaceURI===Ne?ot(fe,Y,Te):S.namespaceURI===Lt?It(fe,Y,Te):S.namespaceURI===$e?Yt(fe,Y,Te):!!(gt==="application/xhtml+xml"&&rt[S.namespaceURI]):!1},Vt=function(S){wa(t.removed,{element:S});try{_(S).removeChild(S)}catch{if(y(S),!_(S))throw qn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Zt=function(S,Y,fe){try{S.removeAttributeNode(Y)}catch{try{S.removeAttribute(fe)}catch{}}},Rt=function(S){wt(S);const Y=f(S);if(Y){const Te=[];Vn(Y,Pe=>{wa(Te,Pe)}),Vn(Te,Pe=>{try{y(Pe)}catch{}})}const fe=k(S);if(fe)for(let Te=fe.length-1;Te>=0;--Te){const Pe=fe[Te],Xe=Pe&&Pe.name;typeof Xe=="string"&&Zt(S,Pe,Xe)}},ht=function(S,Y,fe){if(!fe)try{fe=Y.getAttributeNode(S)}catch{fe=null}wa(t.removed,{attribute:fe||null,from:Y});try{fe?Y.removeAttributeNode(fe):Y.removeAttribute(S)}catch{try{Y.removeAttribute(S)}catch{}}if(S==="is")if(tt||yt)try{Vt(Y)}catch{}else try{Y.setAttribute(S,"")}catch{}},Ct=function(S){const Y=k(S);if(Y)for(let fe=Y.length-1;fe>=0;--fe){const Te=Y[fe],Pe=Te&&Te.name;typeof Pe!="string"||W[De(Pe)]||Zt(S,Te,Pe)}},wt=function(S){const Y=[S];for(;Y.length>0;){const fe=Y.pop();B(fe)===un.element&&Ct(fe);const Pe=f(fe);if(Pe)for(let Xe=Pe.length-1;Xe>=0;--Xe)Y.push(Pe[Xe])}},zt=function(S,Y){return ze?S==="patchsrc"?!0:S==="for"&&Y!=="label"&&Y!=="output":!1},Cn=function(S){if(!ze)return;const Y=[S];for(;Y.length>0;){const fe=Y.pop(),Te=B(fe);if(Te===un.processingInstruction||Te===un.comment&&Kt(Cl,fe.data)){try{y(fe)}catch{}continue}if(Te===un.element){const Xe=fe,Bt=De(w(fe));try{Xe.hasAttribute&&Xe.hasAttribute("patchsrc")&&Xe.removeAttribute("patchsrc"),Xe.hasAttribute&&Xe.hasAttribute("for")&&zt("for",Bt)&&Xe.removeAttribute("for")}catch{}}const Pe=f(fe);if(Pe)for(let Xe=Pe.length-1;Xe>=0;--Xe)Y.push(Pe[Xe])}},An=function(S){let Y=null,fe=null;if(lt)S="<remove></remove>"+S;else{const Xe=ol(S,/^[\r\n\t ]+/);fe=Xe&&Xe[0]}gt==="application/xhtml+xml"&&Se===$e&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const Te=E?M(S):S;if(Se===$e)try{Y=new m().parseFromString(Te,gt)}catch{}if(!Y||!Y.documentElement){Y=U.createDocument(Se,"template",null);try{Y.documentElement.innerHTML=He?D:Te}catch{}}const Pe=Y.body||Y.documentElement;return S&&fe&&Pe.insertBefore(a.createTextNode(fe),Pe.childNodes[0]||null),Se===$e?I.call(Y,Me?"html":"body")[0]:Me?Y.documentElement:Pe},Rn=function(S){const Y=v?v(S):S.ownerDocument;return F.call(Y||S,S,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},pn=function(S){return S=ka(S,V," "),S=ka(S,T," "),S=ka(S,j," "),S},Gt=function(S){var Y;S.normalize();const fe=v?v(S):S.ownerDocument,Te=F.call(fe||S,S,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Pe=Te.nextNode();for(;Pe;)Pe.data=pn(Pe.data),Pe=Te.nextNode();const Xe=(Y=S.querySelectorAll)===null||Y===void 0?void 0:Y.call(S,"template");Xe&&Vn(Xe,Bt=>{Ft(Bt.content)&&Gt(Bt.content)})},fn=function(S){const Y=N?N(S):null;return typeof Y!="string"||De(Y)!=="form"?!1:typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||S.attributes!==k(S)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function"||S.nodeType!==x(S)||S.childNodes!==f(S)},Ft=function(S){if(!x||typeof S!="object"||S===null)return!1;try{return x(S)===un.documentFragment}catch{return!1}},Xt=function(S){if(!x||typeof S!="object"||S===null)return!1;try{return typeof x(S)=="number"}catch{return!1}};function Wt(le,S,Y){le.length!==0&&Vn(le,fe=>{fe.call(t,S,Y,nt)})}const vn=function(S,Y){return!!(ze&&S.hasChildNodes()&&!Xt(S.firstElementChild)&&Kt(hl,S.textContent)&&Kt(hl,S.innerHTML)||ze&&S.namespaceURI===$e&&_C[Y]&&(Xt(S.firstElementChild)||typeof S.textContent=="string"&&Kt(wC[Y],S.textContent))||S.nodeType===un.processingInstruction||ze&&S.nodeType===un.comment&&Kt(Cl,S.data))},ie=function(S,Y){if(S instanceof RegExp)return Kt(S,Y);if(S instanceof Function){for(var fe=arguments.length,Te=new Array(fe>2?fe-2:0),Pe=2;Pe<fe;Pe++)Te[Pe-2]=arguments[Pe];return!!S(Y,...Te)}return!1},Ae=function(S,Y,fe){if(!Ee[Y]&&ke(Y)&&ie(de.tagNameCheck,Y))return!1;if(Ke&&!Dt[Y]){const Te=_(S),Pe=f(S);if(Pe&&Te){const Xe=Pe.length;for(let Bt=Xe-1;Bt>=0;--Bt){const jt=S===fe?g(Pe[Bt],!0):Pe[Bt];Te.insertBefore(jt,C(S))}}}return Vt(S),!0},Re=function(S,Y,fe,Te){return S.length===0?Y:Y===fe||Y===Te?ln(Y):Y},Ue=function(S,Y){return S===Y||_(S)!==null?!1:(pt&&wt(S),!0)},Ie=function(S,Y){if(Wt(J.beforeSanitizeElements,S,null),Ue(S,Y))return!0;if(fn(S))return Vt(S),!0;const fe=De(w(S));if(z=Re(J.uponSanitizeElement,z,te,We),Wt(J.uponSanitizeElement,S,{tagName:fe,allowedTags:z}),Ue(S,Y))return!0;if(vn(S,fe))return Vt(S),!0;if(Ee[fe]||!(me.tagCheck instanceof Function&&me.tagCheck(fe))&&!z[fe]){const Pe=Ae(S,fe,Y);return Pe===!1&&Wt(J.afterSanitizeElements,S,null),Pe}if(B(S)===un.element&&!kn(S)||(fe==="noscript"||fe==="noembed"||fe==="noframes")&&Kt(vC,S.innerHTML))return Vt(S),!0;if(Le&&S.nodeType===un.text){const Pe=pn(S.textContent);S.textContent!==Pe&&(wa(t.removed,{element:S.cloneNode()}),S.textContent=Pe)}return Wt(J.afterSanitizeElements,S,null),!1},X=function(S,Y,fe){if(ve[Y]||zt(Y,S)||Ge&&(Y==="id"||Y==="name")&&(fe in a||fe in ae))return!1;const Te=W[Y]||me.attributeCheck instanceof Function&&me.attributeCheck(Y,S);return ge&&Kt(O,Y)||ce&&Kt(H,Y)?!0:Te?At[Y]||Kt(ee,ka(fe,se,""))||(Y==="src"||Y==="xlink:href"||Y==="href")&&S!=="script"&&sl(fe,"data:")===0&&it[S]||he&&!Kt(oe,ka(fe,se,""))?!0:!fe:ke(S)&&ie(de.tagNameCheck,S)&&ie(de.attributeNameCheck,Y,S)||Y==="is"&&de.allowCustomizedBuiltInElements&&ie(de.tagNameCheck,fe)},ue=mt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ke=function(S){return!ue[Ba(S)]&&Kt(re,S)},Oe=function(S,Y,fe,Te){if(E&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!fe)switch(p.getAttributeType(S,Y)){case"TrustedHTML":return M(Te);case"TrustedScriptURL":return P(Te)}return Te},Ze=function(S,Y,fe,Te){try{fe?S.setAttributeNS(fe,Y,Te):S.setAttribute(Y,Te),fn(S)?Vt(S):rl(t.removed)}catch{ht(Y,S)}},Je=function(S){Wt(J.beforeSanitizeAttributes,S,null);const Y=S.attributes;if(!Y||fn(S))return;W=Re(J.uponSanitizeAttribute,W,G,dt);const fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let Te=Y.length;const Pe=De(S.nodeName);for(;Te--;){const Xe=Y[Te],Bt=Xe.name,jt=Xe.namespaceURI,tn=Xe.value,nn=De(Bt),Rr=tn;let Jt=Bt==="value"?Rr:nC(Rr);if(fe.attrName=nn,fe.attrValue=Jt,fe.keepAttr=!0,fe.forceKeepAttr=void 0,Wt(J.uponSanitizeAttribute,S,fe),Jt=fe.attrValue,Be&&(nn==="id"||nn==="name")&&sl(Jt,qe)!==0&&(ht(Bt,S,Xe),Jt=qe+Jt),ze&&Kt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Jt)){ht(Bt,S,Xe);continue}if(nn==="attributename"&&ol(Jt,"href")){ht(Bt,S,Xe);continue}if(!fe.forceKeepAttr){if(!fe.keepAttr){ht(Bt,S,Xe);continue}if(!pe&&Kt(xC,Jt)){ht(Bt,S,Xe);continue}if(Le&&(Jt=pn(Jt)),!X(Pe,nn,Jt)){ht(Bt,S,Xe);continue}Jt=Oe(Pe,nn,jt,Jt),Jt!==Rr&&Ze(S,Bt,jt,Jt)}}Wt(J.afterSanitizeAttributes,S,null)},ye=function(S){let Y=null;const fe=Rn(S);for(Wt(J.beforeSanitizeShadowDOM,S,null);Y=fe.nextNode();)if(Wt(J.uponSanitizeShadowNode,Y,null),Ie(Y,S),Je(Y),Ft(Y.content)&&ye(Y.content),B(Y)===un.element){const Te=b(Y);Ft(Te)&&(je(Te),ye(Te))}Wt(J.afterSanitizeShadowDOM,S,null)},je=function(S){const Y=[{node:S,shadow:null}];for(;Y.length>0;){const fe=Y.pop();if(fe.shadow){ye(fe.shadow);continue}const Te=fe.node,Xe=B(Te)===un.element,Bt=f(Te);if(Bt)for(let jt=Bt.length-1;jt>=0;--jt)Y.push({node:Bt[jt],shadow:null});if(Xe){const jt=N?N(Te):null;if(typeof jt=="string"&&De(jt)==="template"){const tn=Te.content;Ft(tn)&&Y.push({node:tn,shadow:null})}}if(Xe){const jt=b(Te);Ft(jt)&&Y.push({node:null,shadow:jt},{node:jt,shadow:null})}}};return t.sanitize=function(le){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,fe=null,Te=null,Pe=null;if(He=!le,He&&(le="<!-->"),typeof le!="string"&&!Xt(le)&&(le=lC(le),typeof le!="string"))throw qn("dirty is not a string, aborting");if(!t.isSupported)return le;Ve?(z=We,W=dt):Fe(S),(J.uponSanitizeElement.length>0||J.uponSanitizeAttribute.length>0)&&(z=ln(z)),J.uponSanitizeAttribute.length>0&&(W=ln(W)),t.removed=[];const Xe=pt&&typeof le!="string"&&Xt(le);if(Xe){Cn(le);const tn=w(le);if(typeof tn=="string"){const nn=De(tn);if(!z[nn]||Ee[nn])throw Rt(le),qn("root node is forbidden and cannot be sanitized in-place")}if(fn(le))throw Rt(le),qn("root node is clobbered and cannot be sanitized in-place");try{je(le)}catch(nn){throw Rt(le),nn}}else if(Xt(le))Y=An("<!---->"),fe=Y.ownerDocument.importNode(le,!0),fe.nodeType===un.element&&fe.nodeName==="BODY"||fe.nodeName==="HTML"?Y=fe:Y.appendChild(fe),je(fe);else{if(!tt&&!Le&&!Me&&le.indexOf("<")===-1)return E&&_e?M(le):le;if(Y=An(le),!Y)return tt?null:_e?D:""}Y&<&&Vt(Y.firstChild);const Bt=Xe?le:Y;try{const tn=Rn(Bt);for(;Te=tn.nextNode();)Ie(Te,Bt),Je(Te),Ft(Te.content)&&ye(Te.content)}catch(tn){throw Xe&&(Rt(le),Vn(t.removed,nn=>{nn.element&&wt(nn.element)})),tn}if(Xe)return Vn(t.removed,tn=>{tn.element&&wt(tn.element)}),Le&&Gt(le),le;if(tt){if(Le&&Gt(Y),yt)for(Pe=Q.call(Y.ownerDocument);Y.firstChild;)Pe.appendChild(Y.firstChild);else Pe=Y;return(W.shadowroot||W.shadowrootmode)&&(Pe=q.call(r,Pe,!0)),Pe}let jt=Me?Y.outerHTML:Y.innerHTML;return Me&&z["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&Kt(gC,Y.ownerDocument.doctype.name)&&(jt="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>
|
|
798
|
+
`+jt),Le&&(jt=pn(jt)),E&&_e?M(jt):jt},t.setConfig=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fe(le),Ve=!0,We=z,dt=W},t.clearConfig=function(){nt=null,Ve=!1,We=null,dt=null,E=A,D=""},t.isValidAttribute=function(le,S,Y){nt||Fe({});const fe=De(le),Te=De(S);return X(fe,Te,Y)},t.addHook=function(le,S){typeof S=="function"&&an(J,le)&&wa(J[le],S)},t.removeHook=function(le,S){if(an(J,le)){if(S!==void 0){const Y=eC(J[le],S);return Y===-1?void 0:tC(J[le],Y,1)[0]}return rl(J[le])}},t.removeHooks=function(le){an(J,le)&&(J[le]=[])},t.removeAllHooks=function(){J=bl()},t}var sa=gl();let Kr=null;const AC=1500;function Yr(){Kr?.clear(),Kr=null}function NC(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,AC);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 EC=/^(?:[a-z]+:)?\/\//i,DC="__ihab_core_asset_base_url__";function SC(){return globalThis[DC]??""}function Xr(e){const t=String(e||"").trim();if(!t)return"";if(EC.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=SC();return r?`${r}${a}`:a}const yl="__ihab_core_storage_resolvers__";function Na(){return globalThis[yl]??null}function jC(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:
|
|
@@ -814,20 +814,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
814
814
|
\uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
|
|
815
815
|
npm install @supabase/supabase-js
|
|
816
816
|
pnpm add @supabase/supabase-js
|
|
817
|
-
`),this.name="StorageNotConfiguredError"}};function TC(e){jC(e)}function xl(e,t){if(!e)return null;const a=Na();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function _l(e){if(!e)return null;const t=Na();if(!t)throw new vl("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function wl(e){const t=Na();if(!t)throw new vl("downloadSound");return t.download(e)}function MC(){return Na()?.noiseBaseUrl??"/sounds/noise"}function LC(){const e=Number(Na()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function $C(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 Ea(){return globalThis[Bl]?.urlResolver??null}function nr(){return globalThis[Bl]?.fallbackUrlResolver??null}const RC="__ihab_core_pronunciation_resolver__";function PC(){return globalThis[RC]??null}let Fn=null;const Da=new WeakMap,
|
|
818
|
-
`||a==="\r"?t+=2:t+=r<128?1:2}return t}function YC(e){return jl(e)>90?"LMS":"SMS"}function Tl(e,t=85){const a=jl(e),r=YC(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 ZC=["onset","vowel","coda","glide"],Ml="none",XC={\uCD08\uC131:"onset",\uBAA8\uC74C:"vowel",\uC885\uC131:"coda",\uD65C\uC74C:"glide"},JC="\uC5C6\uC74C";function QC(e){return ZC.includes(e)}function ef(e){const t={};for(const[a,r]of Object.entries(e)){const s=QC(a)?a:XC[a];s&&(t[s]=r===JC?Ml:r)}return t}const tf={\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"],nf=["","\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 Ta(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 af(e){const t=Ta(e[0]||"");return t?Ll[t.cho]:""}function rf(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":Ta(i)?"syl":"other"),l=t.map(i=>Ta(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(af(p)!==t[m]){d=!1;break}}else if(h==="jung"){const g=Ta(p);if(!g||$l[g.jung]!==t[m]){d=!1;break}}else{const g=l[m];if(g&&g.jong===0){const y=Ta(p);if(!y||y.cho!==g.cho||y.jung!==g.jung){d=!1;break}}else if(p!==t[m]){d=!1;break}}}if(d)return!0}return!1}}const of={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(of).map(([e,t])=>[t.join(""),nf[Number(e)]]));const sf="word_pair_index_v2",lf="word_pair_index_sig_v2";let or=null;function uf(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 cf(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(sf),t=localStorage.getItem(lf);if(!e||!t)return null;const a=JSON.parse(e);return uf(a)?{index:a,sig:t}:null}catch{return null}}function df(){if(or)return or;const e=cf();return e?(or=e.index,e.sig,or):null}function pf(e,t,a){return!(e>0)||!(t>0)?1:Math.max(1,Math.floor((e+a)/(t+a)))}function mf(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=/[ㄱ-ㅎ]/,hf=/[ㅏ-ㅣ]/;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)||hf.test(a))return a}return null}function Cf(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 ff(e){return`${e}${Cf(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 gf(e){return`${e}${bf(e)}`}function yf(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function Ma(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 vf=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof qt?.t=="function"?qt.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function Pl(e,t){if(t===void 0&&(t=vf()),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 xf="__ihab_core_word_pool__";function Il(){return globalThis[xf]??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 _f(e){Ol("time",()=>Fl.__ihabTrainingTimeLogger?.(e))}function wf(e){Ol("completion",()=>Fl.__ihabTrainingCompletionLogger?.(e))}const Bf="Asia/Seoul",kf=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function La(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=kf.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 Af(e){return La(e)!==null}const Nf=e=>La(e);function zl(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US",r=Nf(e);return r?r.toLocaleDateString(a,{timeZone:Bf,year:"numeric",month:"short",day:"numeric"}):""}function Wl(e){return e&&e.startsWith("ko")?"ko-KR":e||"en-US"}function Ef(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:""})||Ef(a,r,t)}function $a(){return io(new Date)}function lo(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)&&La(e)?.toISOString().slice(0,10)===e?e:$a()}function ia(){return Sf($a())}const Df=540*60*1e3;function Hl(e,t,a){return new Date(Date.UTC(e,t,a)-Df)}function Sf(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=La(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function Vl(e,t){if(!e)return"";const a=La(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 sr(e){if(typeof e=="string"){const t=e.trim();return t&&Af(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 jf(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 Tf(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:jf(r),shownAt:sr(r.shownAt)??sr(r.shown_at),answeredAt:sr(r.answeredAt)??sr(r.answered_at)}}):[]}const uo=globalThis;async function Mf(){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 lr(e){try{uo.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function Lf(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 $f=[{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"}]}],Rf=[{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 $f}function Pf(){return Rf}const If=[],Ff=[],Of=[],zf=[];function Wf(){return{LISTEN_IN_NOISE:If,SHORT_STORY:Ff,LONG_STORY:Of,ORDERING_SENTENCE:zf}}const Hf=[{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 Vf(e){return Hf.map(t=>{const a=Kl[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}var qf={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",collapseFor:"{{name}} \uC811\uAE30",expandFor:"{{name}} \uD3BC\uCE58\uAE30",sortFor:"{{name}} \uC815\uB82C",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",loading:"\uBD88\uB7EC\uC624\uB294 \uC911",playFor:"{{name}} \uC7AC\uC0DD",pauseFor:"{{name}} \uBA48\uCDA4",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",noMatches:"\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."},Uf={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"},Gf={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"}},Kf={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Yf={selected:"\uC120\uD0DD\uB428"},Zf={placeholder:"\uC120\uD0DD"},Xf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},Jf={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"},Qf={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"},eb={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"}}}},tb={couponButton:"\uCFE0\uD3F0 \uC785\uB825"},nb={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."}}},ab={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"}},rb={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"}},ob={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"}}}},sb={input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9"},lb={showN:"{{n}}\uAC1C\uC529"},ib={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."}},ub={newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},cb={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},db={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}}"},pb={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"},mb={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},hb={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"}},Cb={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"}},fb={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"}},bb={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."]},gb={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
817
|
+
`),this.name="StorageNotConfiguredError"}};function TC(e){jC(e)}function xl(e,t){if(!e)return null;const a=Na();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function _l(e){if(!e)return null;const t=Na();if(!t)throw new vl("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function wl(e){const t=Na();if(!t)throw new vl("downloadSound");return t.download(e)}function MC(){return Na()?.noiseBaseUrl??"/sounds/noise"}function LC(){const e=Number(Na()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function $C(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 Ea(){return globalThis[Bl]?.urlResolver??null}function nr(){return globalThis[Bl]?.fallbackUrlResolver??null}const RC="__ihab_core_pronunciation_resolver__";function PC(){return globalThis[RC]??null}let Fn=null;const Da=new WeakMap,Jr=new WeakMap,Qr=new WeakMap;let kl=!1;const Al=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function IC(){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,IC(),Fn):null}catch{return null}}function eo(){try{Fn?.resume()}catch{}}function to(e,t){const a=Da.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(Jr.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 Da.set(t,i),i}catch{return null}}function ar(e){if(!e)return Promise.resolve(null);const t=Da.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(to(a,e)?.analyser??null);const r=Qr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?to(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Qr.delete(e)});return Qr.set(e,s),s}function FC(e){if(!e)return null;const t=Da.get(e);if(t)return t.analyser;const a=Nl();return a?a.state==="running"?to(a,e)?.analyser??null:(ar(e),null):null}function On(e,t){const a=Al(t);Jr.set(e,a);const r=Da.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 rr(e){return Jr.get(e)??e.volume}function OC(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 zC="__ihab_core_image_config__";function la(){return globalThis[zC]??null}const El="word_image_existence_map_v1",WC="ihab:image-existence-updated";let Sa=null;function HC(){Sa!==null&&(clearTimeout(Sa),Sa=null),typeof window<"u"&&window.dispatchEvent(new Event(WC))}function VC(){Sa===null&&(Sa=setTimeout(HC,200))}let Un=null,no=0;const ja=new Map;function qC(){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 ao=null;function UC(){ao===null&&(ao=setTimeout(()=>{ao=null;try{typeof localStorage<"u"&&Un&&localStorage.setItem(El,JSON.stringify(Un))}catch{}},200))}function GC(e,t){return`${e}_${t??1}`}async function KC(e,t,a=!1){const r=qC(),s=GC(e,t);if(!a&&s in r)return r[s];if(!a&&ja.has(s))return ja.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:$C(8e3)})}catch{return!1}const c=u.then(d=>d.ok?!0:d.status===404||d.status===410?!1:null,()=>null).then(d=>ja.get(s)!==c?d??!1:(ja.delete(s),d===null?!1:(r[s]=d,no++,UC(),d)));return ja.set(s,c),c}async function Dl(e,t){const a=no,r=await KC(e,t);return no!==a&&VC(),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 YC(e){return jl(e)>90?"LMS":"SMS"}function Tl(e,t=85){const a=jl(e),r=YC(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 ZC=["onset","vowel","coda","glide"],Ml="none",XC={\uCD08\uC131:"onset",\uBAA8\uC74C:"vowel",\uC885\uC131:"coda",\uD65C\uC74C:"glide"},JC="\uC5C6\uC74C";function QC(e){return ZC.includes(e)}function ef(e){const t={};for(const[a,r]of Object.entries(e)){const s=QC(a)?a:XC[a];s&&(t[s]=r===JC?Ml:r)}return t}const tf={\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"],nf=["","\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 Ta(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 af(e){const t=Ta(e[0]||"");return t?Ll[t.cho]:""}function rf(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":Ta(i)?"syl":"other"),l=t.map(i=>Ta(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(af(p)!==t[m]){d=!1;break}}else if(h==="jung"){const g=Ta(p);if(!g||$l[g.jung]!==t[m]){d=!1;break}}else{const g=l[m];if(g&&g.jong===0){const y=Ta(p);if(!y||y.cho!==g.cho||y.jung!==g.jung){d=!1;break}}else if(p!==t[m]){d=!1;break}}}if(d)return!0}return!1}}const of={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(of).map(([e,t])=>[t.join(""),nf[Number(e)]]));const sf="word_pair_index_v2",lf="word_pair_index_sig_v2";let or=null;function uf(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 cf(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(sf),t=localStorage.getItem(lf);if(!e||!t)return null;const a=JSON.parse(e);return uf(a)?{index:a,sig:t}:null}catch{return null}}function df(){if(or)return or;const e=cf();return e?(or=e.index,e.sig,or):null}function pf(e,t,a){return!(e>0)||!(t>0)?1:Math.max(1,Math.floor((e+a)/(t+a)))}function mf(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 ro=/[ㄱ-ㅎ]/,hf=/[ㅏ-ㅣ]/;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||ro.test(a)||hf.test(a))return a}return null}function Cf(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":ro.test(t)?"\uC774":"\uAC00"}function ff(e){return`${e}${Cf(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":ro.test(t)?"\uC744":"\uB97C"}function gf(e){return`${e}${bf(e)}`}function yf(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function Ma(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 vf=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof qt?.t=="function"?qt.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function Pl(e,t){if(t===void 0&&(t=vf()),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 xf="__ihab_core_word_pool__";function Il(){return globalThis[xf]??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 _f(e){Ol("time",()=>Fl.__ihabTrainingTimeLogger?.(e))}function wf(e){Ol("completion",()=>Fl.__ihabTrainingCompletionLogger?.(e))}const Bf="Asia/Seoul",kf=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function La(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=kf.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 Af(e){return La(e)!==null}const Nf=e=>La(e);function zl(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US",r=Nf(e);return r?r.toLocaleDateString(a,{timeZone:Bf,year:"numeric",month:"short",day:"numeric"}):""}function Wl(e){return e&&e.startsWith("ko")?"ko-KR":e||"en-US"}function Ef(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 oo(e,t,a,r){return e("calendar.yearMonth",{year:a,month:r,defaultValue:""})||Ef(a,r,t)}function $a(){return lo(new Date)}function so(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)&&La(e)?.toISOString().slice(0,10)===e?e:$a()}function ia(){return Sf($a())}const Df=540*60*1e3;function Hl(e,t,a){return new Date(Date.UTC(e,t,a)-Df)}function Sf(e){const[t,a,r]=e.split("-").map(Number);return new Date(t,(a||1)-1,r||1)}function lo(e){if(e==null||e==="")return"";const t=La(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function Vl(e,t){if(!e)return"";const a=La(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=lo(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 sr(e){if(typeof e=="string"){const t=e.trim();return t&&Af(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 jf(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 Tf(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:jf(r),shownAt:sr(r.shownAt)??sr(r.shown_at),answeredAt:sr(r.answeredAt)??sr(r.answered_at)}}):[]}const io=globalThis;async function Mf(){try{return await io.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function uo(e){const t=a=>{};try{const a=io.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function lr(e){try{io.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function Lf(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 co(e){return(e??0).toLocaleString("ko-KR")}const $f=[{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"}]}],Rf=[{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 $f}function Pf(){return Rf}const If=[],Ff=[],Of=[],zf=[];function Wf(){return{LISTEN_IN_NOISE:If,SHORT_STORY:Ff,LONG_STORY:Of,ORDERING_SENTENCE:zf}}const Hf=[{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 Vf(e){return Hf.map(t=>{const a=Kl[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}var qf={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",collapseFor:"{{name}} \uC811\uAE30",expandFor:"{{name}} \uD3BC\uCE58\uAE30",sortFor:"{{name}} \uC815\uB82C",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",loading:"\uBD88\uB7EC\uC624\uB294 \uC911",playFor:"{{name}} \uC7AC\uC0DD",pauseFor:"{{name}} \uBA48\uCDA4",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",noMatches:"\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."},Uf={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"},Gf={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"}},Kf={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Yf={selected:"\uC120\uD0DD\uB428"},Zf={placeholder:"\uC120\uD0DD"},Xf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},Jf={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"},Qf={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"},eb={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"}}}},tb={couponButton:"\uCFE0\uD3F0 \uC785\uB825"},nb={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."}}},ab={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"}},rb={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"}},ob={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"}}}},sb={input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9"},lb={showN:"{{n}}\uAC1C\uC529"},ib={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."}},ub={newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},cb={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},db={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}}"},pb={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"},mb={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},hb={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"}},Cb={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"}},fb={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"}},bb={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."]},gb={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
819
819
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
820
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"},yb={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},vb={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"},xb={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},_b={ariaLabel:"\uC120\uD0DD \uD0ED"},wb={ariaLabel:"\uD0ED"},Bb={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},kb={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Ab={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"}},Nb={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"},Eb={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"}},Db={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},Sb={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"},jb={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"},Tb={viewWords:"\uB0B1\uB9D0"},Mb={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Lb={chooseDate:"\uB0A0\uC9DC \uC120\uD0DD",selectYear:"\uC5F0 \uC120\uD0DD",selectMonth:"\uC6D4 \uC120\uD0DD"},$b={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},Rb={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Pb={place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},Ib={clearSelection:"\uC120\uD0DD \uD574\uC81C"},Fb={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Ob={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},zb={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Wb={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Hb={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},Vb={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},qb={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"},Ub={common:qf,calendar:Uf,passCard:Gf,rating:Kf,colorPicker:Yf,dropdown:Zf,accordion:Xf,header:Jf,nav:Qf,settings:eb,usage:tb,account:nb,training:ab,customers:rb,payment:ob,coupons:sb,visits:lb,trainingType:ib,myWordTable:ub,keyWords:cb,wordTable:db,wordSearch:pb,wordPrint:mb,topic:hb,device:Cb,manager:fb,wordPairs:bb,footer:gb,date:yb,wordData:vb,textField:xb,segmentedControl:_b,tabs:wb,fileUpload:Bb,avatar:kb,myHomework:Ab,trainingStatus:Nb,store:Eb,progress:Db,trainingMiss:Sb,table:jb,wordScore:Tb,topBanner:Mb,datePicker:Lb,report:$b,tooltip:Rb,phonemeProfile:Pb,bulkBar:Ib,debug:Fb,badge:Ob,loader:zb,soundCompass:Wb,breadcrumb:Hb,board:Vb,promoBannerBg:qb},Gb={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",collapseFor:"Collapse {{name}}",expandFor:"Expand {{name}}",sortFor:"Sort {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount_one:"{{count}} like",likeCount_other:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount_one:"{{count}} download",downloadCount_other:"{{count}} downloads",descriptionFor:"About {{name}}",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",loading:"Loading",playFor:"Play {{name}}",pauseFor:"Pause {{name}}",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",noMatches:"No matching items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},Kb={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"]},Yb={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"}},Zb={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},Xb={selected:"selected"},Jb={placeholder:"Select"},Qb={collapse:"Collapse",expand:"Expand"},eg={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},tg={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"},ng={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"}}}},ag={couponButton:"Enter Coupon"},rg={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."}}},og={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"}},sg={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"}},lg={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},ig={input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply"},ug={showN:"Show {{n}}"},cg={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."}},dg={newBadge:"Newly created",publishedBadge:"Published",sharedBadge:"Shared"},pg={title:"Key Words",empty:"No key words available."},mg={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}}"},hg={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"},Cg={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},fg={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"}},bg={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"}},gg={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}}"}},yg={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."]},vg={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"},xg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},_g={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"},wg={clearAriaLabel:"Clear input"},Bg={ariaLabel:"Select tab"},kg={ariaLabel:"Tabs"},Ag={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Ng={ariaLabel:"User avatar"},Eg={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"}},Dg={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"},Sg={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"}},jg={steps:"Step {{current}} of {{total}}"},Tg={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"},Mg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},Lg={viewWords:"Words"},$g={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Rg={chooseDate:"Choose a date",selectYear:"Select year",selectMonth:"Select month"},Pg={previewRegion:"Report preview \u2014 scrollable sideways"},Ig={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Fg={place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Og={clearSelection:"Clear selection"},zg={showResult:"Show {{type}} result"},Wg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Hg={loading:"Loading"},Vg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},qg={ariaLabel:"Breadcrumb"},Ug={empty:"No items yet."},Gg={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"},Kg={common:Gb,calendar:Kb,passCard:Yb,rating:Zb,colorPicker:Xb,dropdown:Jb,accordion:Qb,header:eg,nav:tg,settings:ng,usage:ag,account:rg,training:og,customers:sg,payment:lg,coupons:ig,visits:ug,trainingType:cg,myWordTable:dg,keyWords:pg,wordTable:mg,wordSearch:hg,wordPrint:Cg,topic:fg,device:bg,manager:gg,wordPairs:yg,footer:vg,date:xg,wordData:_g,textField:wg,segmentedControl:Bg,tabs:kg,fileUpload:Ag,avatar:Ng,myHomework:Eg,trainingStatus:Dg,store:Sg,progress:jg,trainingMiss:Tg,table:Mg,wordScore:Lg,topBanner:$g,datePicker:Rg,report:Pg,tooltip:Ig,phonemeProfile:Fg,bulkBar:Og,debug:zg,badge:Wg,loader:Hg,soundCompass:Vg,breadcrumb:qg,board:Ug,promoBannerBg:Gg};const Yg="0.376.0",Zg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],mo="ko",Xg="ihab_display_language";function Yl(){if(typeof window>"u")return mo;try{const e=localStorage.getItem(Xg);if(e&&Zg.some(t=>t.code===e))return e}catch{}return mo}function Zl(e){try{document.documentElement.lang=e}catch{}}qt.on("languageChanged",Zl),Zl(Yl()),qt.use(xe.initReactI18next).init({resources:{ko:{translation:Ub},en:{translation:Kg}},lng:Yl(),fallbackLng:mo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Jg=new Map;try{qt.store?.on?.("added",()=>Jg.clear())}catch{}let ir=null,Xl=null,Jl=null;function Qg(){const e=Il();if(e&&e.entries.length>0){const t=df();if(ir&&Xl===e&&Jl===t)return ir;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 ir=r,Xl=e,Jl=t,ir}return[]}new Proxy([],{get(e,t){const a=Qg(),r=a[t];return typeof r=="function"?r.bind(a):r}});function ey(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 ty(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&ey(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 ny(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=Jr(e):/^(Logo|Symbol)/i.test(p)?h=Jr(`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 y=g.headers.get("content-type")||"";if(p)return;if(y.includes("svg")){i("mask");return}if(y.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 _=ty(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 st(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,y=q1(g),{iconToUse:C,mode:f,svgText:_,blobUrl:b}=ny(g),k=(w,E={})=>n.jsx("span",{className:d,style:u,...E,children:w}),x=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,N=(w,E={})=>n.jsx("img",{src:w,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(y)try{return k(o.createElement(y,{className:h,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(f==="mask"){const w={"--icon-url":b?`url(${b})`:`url(${C})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return k(n.jsx("span",{className:p,style:w}),{"aria-hidden":"true"})}return f==="img"?k(N(C,{onError:w=>{w.currentTarget.onerror=null,w.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(Jr(t),{style:u,onError:w=>{w.currentTarget.onerror=null,w.currentTarget.style.display="none"}});const v=typeof c=="number"?c:20,B=`<svg width="${v}" height="${v}" 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:B}}),{"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 ay({icon:e,title:t,message:a,action:r,className:s}){const{pending:l,press:i}=Ql(r?.onClick);return n.jsxs("div",{className:we("empty-state",s),children:[e&&n.jsx(st,{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(st,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function ry({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:we("empty-state","error-state",l),role:"alert",children:[n.jsx(st,{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(st,{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 oy({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:we("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(st,{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(st,{icon:"arrow-right",size:18})})]})]})})}function sy({as:e="div",className:t="",children:a,storage:r,...s}){r&&TC({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=we("ihabdevteam-core-scope",t);return n.jsx(e,{className:l,...s,children:a})}function ly(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(ly);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 ur(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 iy({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)&&ur(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 y=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:[y,g]})}const uy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function ca(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:uy,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"})]})]})}const da=[];let cr=!1;function ti(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=da[da.length-1];t&&(e.stopPropagation(),t())}function Gn(e){return da.push(e),!cr&&typeof document<"u"&&(document.addEventListener("keydown",ti),cr=!0),()=>{const t=da.lastIndexOf(e);t>=0&&da.splice(t,1),da.length===0&&cr&&typeof document<"u"&&(document.removeEventListener("keydown",ti),cr=!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 mn(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 mn(hy)}function gn(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:y,focusOnOpen:C}=e||{},f=o.useRef(null),[_,b]=o.useState({position:"fixed",left:0,top:-9999}),[k,x]=o.useState(!1),[N,v]=o.useState("bottom"),[B,w]=o.useState(!1),[E,D]=o.useState(!1),A=!t&&!a,R=o.useRef(null),$=o.useCallback((P=!1,q=!1)=>{if(E&&h)return;const X=a?a.getBoundingClientRect():t,V=q&&R.current?R.current:X;if(!V||!f.current)return;const T=f.current,{offsetWidth:j,offsetHeight:O}=T,H=window.innerWidth,oe=window.innerHeight,ne=H-V.right,le=V.left,ee=V.top,z=oe-V.bottom;let te=0,W=0,G="top";if(ee>=O+r)G="top",W=V.top-r-O,te=V.left+V.width/2-j/2;else if(z>=O+r)G="bottom",W=V.bottom+r,te=V.left+V.width/2-j/2;else if(ne>=j+r)G="right",te=V.right+r,W=V.top+V.height/2-O/2;else if(le>=j+r)G="left",te=V.left-r-j,W=V.top+V.height/2-O/2;else{const me=Math.max(ee,z,ne,le);me===ee?(G="top",W=V.top-r-O,te=V.left+V.width/2-j/2):me===z?(G="bottom",W=V.bottom+r,te=V.left+V.width/2-j/2):me===ne?(G="right",te=V.right+r,W=V.top+V.height/2-O/2):(G="left",te=V.left-r-j,W=V.top+V.height/2-O/2)}const pe=Number.isFinite(Number(s))?Number(s):8;te=Math.min(Math.max(te,pe),H-j-pe),W=Math.min(Math.max(W,pe),oe-O-pe);const Ee=Math.round(te),ve=Math.round(W);P&&f.current?(f.current.style.left=`${Ee}px`,f.current.style.top=`${ve}px`,f.current.dataset.placement=G):(v(G||N),b({position:"fixed",left:Ee,top:ve}),w(!0))},[E,h,a,t,r,s,N]);o.useEffect(()=>()=>{R.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)"}),w(!0);return}R.current===null&&(R.current=a?a.getBoundingClientRect():t??null),$(!1,!0);const P=requestAnimationFrame(()=>$(!1,!0));return()=>cancelAnimationFrame(P)},[t,a,r,m,s,A,E,h,$]),o.useEffect(()=>{if(A||E&&h||!f.current||typeof ResizeObserver>"u")return;const P=new ResizeObserver(()=>{t&&$()});return P.observe(f.current),()=>P.disconnect()},[t,m,s,A,E,h,$]),o.useEffect(()=>{if(A||E&&h)return;let P=null;const q=()=>{if(a&&(R.current=a.getBoundingClientRect()),typeof requestAnimationFrame>"u"){$(!0);return}P===null&&(P=requestAnimationFrame(()=>{P=null,$(!0)}))},X=V=>{if(!a&&l){const T=V.target;if(T&&f.current&&f.current.contains(T))return;try{if(T&&T.closest&&T.closest("[data-tooltip-ignore]"))return}catch{}Z.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",X,{passive:!0,capture:!0}),()=>{P!==null&&cancelAnimationFrame(P),window.removeEventListener("resize",q),document.removeEventListener("scroll",X,{capture:!0})}},[t,a,l,r,m,s,A,E,h,$]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const P=window.matchMedia("(max-width: 768px)"),q=()=>D(!!P.matches);q();try{P.addEventListener?P.addEventListener("change",q):P.addListener(q)}catch{try{P.addListener(q)}catch{}}return()=>{try{P.removeEventListener?P.removeEventListener("change",q):P.removeListener(q)}catch{}}},[]);const K=o.useRef(!1),M=o.useRef(null),I=go(),L=o.useCallback((P=!1)=>{if(l&&!(k||K.current)){if(K.current=!0,P){x(!0);try{l&&l()}catch{K.current=!1,x(!1)}return}x(!0),M.current=setTimeout(()=>{M.current=null;try{l&&l()}catch{K.current=!1,x(!1)}},I?0:200)}},[k,l,x,I]);o.useEffect(()=>()=>{M.current&&clearTimeout(M.current)},[]),o.useEffect(()=>{if(A)return;const P=V=>{const T=f.current;if(!T)return;const j=V.target;if(j&&!T.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}i&&L(!0)}},q=V=>{const T=f.current;if(!T)return;const j=V.target;if(j&&!T.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}i&&L(!0)}},X=V=>{if(V.key==="Tab"){const T=f.current;if(!T)return;const j=T.querySelectorAll(xn);if(!j||j.length===0)return;const O=j[0],H=j[j.length-1],oe=document.activeElement;V.shiftKey?oe===O&&(V.preventDefault(),H.focus()):oe===H&&(V.preventDefault(),O.focus())}};return document.addEventListener("pointerdown",P,!0),document.addEventListener("click",q,!0),document.addEventListener("keydown",X),()=>{document.removeEventListener("pointerdown",P,!0),document.removeEventListener("click",q,!0),document.removeEventListener("keydown",X)}},[l,i,L,A]);const Z=o.useRef(L);o.useEffect(()=>{Z.current=L});const U=!!l;o.useEffect(()=>{if(!(A||!U))return Gn(()=>Z.current())},[A,U]),o.useEffect(()=>{const P=()=>{L(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",P),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",P)}},[L]);const F=o.useRef(null);o.useEffect(()=>{if(A||C===!1||!B)return;const P=f.current;if(!P)return;const q=P.querySelector(xn);if(q)return F.current=document.activeElement,q.focus({preventScroll:!0}),()=>{const X=F.current;F.current=null,X&&document.contains(X)&&X.focus({preventScroll:!0})}},[A,C,B]),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:B?"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:[y!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:y}),m]});if(A||typeof document>"u")return Q;if(p||E&&h){const P=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{i&&L(!0)}}),Q]});return sn.createPortal(P,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(gn,{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(gn,{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 Ra(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 pa(e){return!!e&&e.pointerType==="touch"}function ma(e=1e3){return oi(),Date.now()-yo<e}function vo(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const l=Ra(e),i=Ra(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,y=a.current,C=!!(g&&y&&y.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,y)};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},y=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",y,{passive:!0}),p.addEventListener("touchend",C),()=>{p.removeEventListener("touchstart",y),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:y,variant:C="default",align:f="center",nowrap:_=!1,selected:b,toggleable:k=!1,ariaExpanded:x,ariaControls:N,disabled:v=!1,loading:B=!1,useLabel:w=!0,useBorder:E=!0,useBG:D=!0,useDisabledCovered:A=!1,useDisabledInvisible:R=!1,useDisabledFilled:$=!1,width:K,minWidth:M,onClick:I,onDisabledClick:L,showTooltipInfo:Z=!1,tooltipInfoText:U=null,tooltipDescription:F=null,tooltipOnly:Q=!1,iconSize:P="medium",iconColor:q,shape:X="rounded",color:V,className:T,...j}=e,O=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),H=O.match(/^\d+$/)?`button${O}`:`button-${O}`,oe=Number(a),ne=!isNaN(oe)&&oe<40?"button-2":"button-1",le=m??g,ee=v||!!j.disabled,z=ee?A?"disabled-covered":R?"disabled-invisibled":$?"disabled-filled":"disabled":C,te=z?`button--variant-${z}`:"",W=f?`button--align-${f}`:"",G=_?"button--nowrap":"",pe=X?`button--shape-${X}`:"",Ee=typeof q=="string"&&q.startsWith("--")?`var(${q})`:q,ve={...K?{width:typeof K=="number"?`${K}px`:K}:{},...M?{minWidth:typeof M=="number"?`${M}px`:M}:{},...E?{}:{"--button-border":ee?"0":"1px solid transparent"},...Ee?{"--button-icon-color":Ee}:{},...V?{"--color-main":V}:{}},me=w===!1?"":le,ce=Array.isArray(me)?me.length>0:!!me,ge=!!d,he=r??(ce||c||ge?"bar":"dot"),de=`${H}--${he}`,Le=o.useRef(null);o.useEffect(()=>{!Pn||s!==void 0||Le.current?.closest("form")&&Tt(`button-in-form:${typeof le=="string"?le:""}`,'[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 le=="string"&&le?` \uB2E8\uCD94: ${le}`:""))},[s,le]);const ze=o.useRef(t);ze.current=t;const Me=o.useCallback(De=>{Le.current=De;const nt=ze.current;typeof nt=="function"?nt(De):nt&&(nt.current=De)},[]),Ve=o.useRef(ee),[We,dt]=o.useState(!!b),[lt,tt]=o.useState(!1),[yt,_e]=o.useState(null),Ge=o.useCallback(()=>tt(!1),[]),[Be,qe]=o.useState(!1),Ke=o.useId();o.useEffect(()=>{typeof b=="boolean"&&dt(b)},[b]),o.useEffect(()=>{if(Ve.current&&!ee&&Le.current){const De=Le.current;let nt=!1;try{nt=De.matches(":focus:not(:focus-visible)")}catch{nt=!1}nt&&De.blur(),De.style.pointerEvents="none";const re=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Le.current&&(Le.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(re)}Ve.current=ee},[ee]);const pt=typeof b=="boolean"?!!b:We,xt=typeof x=="boolean"?void 0:k||typeof b=="boolean"?pt?"true":"false":j["aria-pressed"],Dt=we("button",H,de,te,W,G,pe,pt?"is-selected":null,D?null:"button--no-bg",Q?"button--tooltip-only":null,T),St=`button__icon button__icon--${P}`,it=Array.isArray(h)?h:h!==void 0?[h]:[],at=()=>{if(Array.isArray(me))return me.map((nt,re)=>{const Ce=it[re];return n.jsxs("span",{className:`button__label-text${Ce!==void 0?" button__label-text--has-sub":""}`,children:[nt,Ce!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:Ce})]},re)});const De=h!==void 0;return n.jsxs("span",{className:`button__label-text${De?" button__label-text--has-sub":""}`,children:[me,p!=null&&n.jsx("span",{className:"button__count",children:p}),De&&n.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},At=De=>{typeof b!="boolean"&&!k&&dt(!1),De.currentTarget.blur()},_t=De=>{ee||(typeof j.onMouseLeave=="function"&&j.onMouseLeave(De),At(De))},Mt=De=>{if(Q&&Se&&He.touchPress(De.currentTarget),ee){Se&&He.touchPress(De.currentTarget),De.preventDefault(),L?.(De);return}typeof b!="boolean"&&k&&dt(nt=>!nt),I?.(De)},Ne=o.useCallback(()=>{(Z||F)&&(tt(!0),_e(Le.current?.getBoundingClientRect()??null))},[Z,F]),$e=o.useCallback(()=>{(Z||F)&&(tt(!1),_e(null))},[Z,F]),Se=!!(Z||F),He=vo(lt,De=>{De?Ne():$e()},Le,{enabled:Se&&(ee||Q),fallbackOnParent:Se&&ee}),rt={...j};delete rt.disabled,delete rt.className,delete rt.faded,delete rt.useFaded,delete rt.loading,delete rt.onMouseLeave,delete rt.onPointerEnter,delete rt.onPointerLeave,delete rt.onPointerUp,delete rt.onFocus,delete rt.onBlur,ee&&(Object.keys(rt).forEach(De=>{/^on[A-Z]/.test(De)&&typeof rt[De]=="function"&&delete rt[De]}),rt["aria-disabled"]="true"),B&&(rt["aria-busy"]="true");const vt=(typeof Z=="string"?Z:null)??(typeof U=="string"?U:null)??(typeof y=="string"?y:null)??(typeof le=="string"?le:null)??void 0,et=typeof y=="string"?y:typeof le=="string"?le:vt,Nt=F?[F.title,...F.items??[]].filter(Boolean).join(". "):Z&&vt&&vt!==et?vt:"",Ye=[typeof j["aria-describedby"]=="string"?j["aria-describedby"]:void 0,Nt?Ke:null].filter(Boolean).join(" ")||void 0,bt=()=>n.jsx("span",{className:`${St} button__spinner`,"aria-hidden":"true",children:n.jsx(ca,{variant:"spinner",size:"100%"})}),kt=(De,nt)=>n.jsx(st,{icon:De,label:nt??et,className:St,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),gt=De=>B?bt():kt(c,De),ft=()=>he==="dot"?n.jsxs(n.Fragment,{children:[gt(),ce&&n.jsx("span",{className:`button__label ${ne}`,children:at()})]}):f==="center"&&(c||B)?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:gt()}),ce&&n.jsx("span",{className:`button__label ${ne}`,children:at()})]}),ge&&n.jsx("span",{className:"button__right",children:kt(d)})]}):n.jsxs(n.Fragment,{children:[(c||B)&&n.jsx("span",{className:"button__left",children:gt(y??le)}),ce&&n.jsx("span",{className:`button__label ${ne}`,children:at()}),ge&&n.jsx("span",{className:"button__right",children:kt(d)})]}),ut=!!l&&!ee;return n.jsxs(n.Fragment,{children:[n.jsxs(ut?"a":"button",{...rt,ref:Me,...ut?{href:l,target:i,rel:u??(i==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:ee&&!L&&!Be},className:Dt,"aria-pressed":xt,"aria-expanded":typeof x=="boolean"?x:j["aria-expanded"],"aria-controls":N??j["aria-controls"],"aria-label":et,"aria-disabled":ee&&(ut||L||Be)?!0:void 0,"aria-describedby":Ye,style:ve,onClick:Mt,onMouseLeave:_t,onPointerEnter:De=>{pa(De)||Ne(),!ee&&typeof j.onPointerEnter=="function"&&j.onPointerEnter(De)},onPointerLeave:De=>{pa(De)||$e(),!ee&&typeof j.onPointerLeave=="function"&&j.onPointerLeave(De)},onPointerUp:De=>{ee&&Se&&He.touchPress(De.currentTarget),!ee&&typeof j.onPointerUp=="function"&&j.onPointerUp(De)},onFocus:De=>{qe(!0),ma()||Ne(),!ee&&typeof j.onFocus=="function"&&j.onFocus(De)},onBlur:De=>{qe(!1),ee||At(De),$e(),!ee&&typeof j.onBlur=="function"&&j.onBlur(De)},children:[ft(),Nt?n.jsx("span",{id:Ke,hidden:!0,"aria-label":Nt}):null]}),lt&&F?n.jsx(Kn,{anchorRect:yt,title:F.title,items:F.items,onClose:Ge}):lt&&vt?n.jsx(En,{anchorRect:yt,text:vt,onClose:Ge}):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 Pa={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(Pa.title,t.title),e.style.setProperty(Pa.description,t.description),xo.set(e,t))}function en(e){e&&(e.style.removeProperty(Pa.title),e.style.removeProperty(Pa.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 bi(){const e=Lt(fi,Qt,en);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,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 on=(e,t,a)=>({key:e,get label(){return qt.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)),y=()=>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:y,canIncrease:C,canDecrease:f,fontSize:_,lineHeight:b}}function Ri(e,t){const a=Ra(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 dr=new Map;function vy(e){const t=dr.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)),dr.size>5e3&&dr.clear(),dr.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 pr(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 y=a?.initialPageSize;return y&&Bo.some(C=>C.value===y)?y:"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(y=>({...y,label:r("visits.showN",{n:y.value})})),[r]),p=o.useCallback(y=>{Bo.some(C=>C.value===y)&&(l(y),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)=>pr(d(h,m),d(g,m),p))},[t]);return{sort:t,field:i,sortRows:u}}const yn="\uC804\uCCB4";Object.fromEntries(Object.entries(tf).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})),Ut=(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:[[Ut("\u3163","frontHigh"),Ut("\u315F","frontHigh","w"),Ut("\u3162","frontHigh","velar")],[Ut("\u3161","backHighUnrounded")],[Ut("\u315C","backHighRounded"),Ut("\u3160","backHighRounded","j")],[Ut("\u3154\u3150","frontMid"),Ut("\u3156\u3152","frontMid","j"),Ut("\u3159\u315A\u315E","frontMid","w")],[Ut("\u3153","backMidUnrounded"),Ut("\u3155","backMidUnrounded","j"),Ut("\u315D","backMidUnrounded","w")],[Ut("\u3157","backMidRounded"),Ut("\u315B","backMidRounded","j")],[Ut("\u314F","low"),Ut("\u3151","low","j"),Ut("\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=Ra(e);o.useEffect(()=>{if(t)return Gn(()=>{a.current?.()})},[t,a])}function Ia(){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 Fa(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 Oa({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 y=0,C=null;typeof ResizeObserver<"u"&&d.current&&(C=new ResizeObserver(()=>{const B=d.current?.offsetHeight??0;if(B!==g){if(g=B,++y>4){C?.disconnect(),C=null;return}m()}}),C.observe(d.current));const f=B=>{const w=B.target;r&&w.closest?.(r)||c.current?.contains(w)||d.current?.contains(w)||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=B=>{d.current?.contains(B.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 v=()=>{x(),N&&clearTimeout(N),N=setTimeout(()=>{N=null,a==="reposition"&&m()},250)};return a!=="ignore"&&(window.addEventListener("resize",x),window.addEventListener("orientationchange",v)),()=>{_!==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",v)),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,y]=o.useState(null),[C,f]=o.useState([]),[_,b]=o.useState(null),[k,x]=o.useState(0),N=o.useRef(0),v=o.useCallback(P=>{N.current=typeof P=="function"?P(N.current):P,x(N.current)},[]),B=o.useRef(r),w=o.useRef(s);o.useEffect(()=>{B.current=r,w.current=s},[r,s]);const E=o.useRef([]),D=()=>{E.current.forEach(clearTimeout),E.current=[]},A=(P,q)=>{E.current.push(setTimeout(q,P))};o.useEffect(()=>()=>D(),[]);const R=u[d]?.id??null,$=o.useRef(null),K=o.useCallback(()=>{D(),h("playing"),f([]),b(null),v(0);let P=0;e.forEach((q,X)=>{A(P,()=>{m(X),y(q.id),B.current?.(q)}),A(P+1e3,()=>{y(null),f(V=>[...V,q.id])}),P+=1300}),A(P,()=>{h("done"),w.current?.({score:0,total:e.length})})},[e,v]),M=o.useCallback((P,q)=>{if(q>=P.length){h("done"),w.current?.({score:N.current,total:P.length});return}$.current=null,m(q),b(null),h("playing"),y(P[q].id),B.current?.(P[q]),A(l,()=>{y(null),h("waiting")})},[l]),I=o.useCallback(()=>{D();const P=Ma(e);c(P),v(0),f([]),M(P,0)},[e,M,v]),L=o.useCallback(()=>{t==="playback"?(c(e),K()):I()},[t,e,K,I]),Z=o.useCallback(()=>{D(),h("idle"),y(null),f([]),b(null),m(0),v(0),c([])},[v]),U=JSON.stringify(e.map(P=>[P.id,P.label,P.angleDeg,P.deg,P.row,P.shortcut]));o.useEffect(()=>(a?L():Z(),()=>D()),[t,U,a]);const F=o.useCallback(P=>{p!=="waiting"||t==="playback"||$.current===d||($.current=d,b(P),P===u[d]?.id&&v(q=>q+1),t==="exam"?(h("playing"),A(400,()=>M(u,d+1))):(h("feedback"),A(i,()=>M(u,d+1))))},[p,t,u,d,M,i,v]),Q=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:g,playedIds:C,selectedId:_,answerId:R,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:F},index:d,total:Q,score:k,phase:p,done:p==="done",start:L,reset:Z}}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,y]=o.useState("main"),C=mn("(max-width: 767px)"),f=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const k=h.current;if(!k)return;const x=_o(k),N=(v,B,w)=>{if(w!==void 0)k.style.setProperty(B,w),f.current[v]=!0;else if(f.current[v]){const E=x?.[v];E?k.style.setProperty(B,E):k.style.removeProperty(B),f.current[v]=!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);y(x?.actionVariant??"main")},[p]);const _=we("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,y]=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,v=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||N||x)return;const w=window.setInterval(()=>m(E=>(Math.min(E,c-1)+1)%c),t);return()=>window.clearInterval(w)},[c,t,N,x]);const B=w=>{b.current!=null&&window.clearTimeout(b.current),b.current=window.setTimeout(()=>{b.current=null,f(!1)},w)};return o.useEffect(()=>()=>{b.current!=null&&window.clearTimeout(b.current)},[]),o.useEffect(()=>{if(!C)return;const w=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",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[C]),c===0?null:n.jsxs("section",{ref:k,className:we("top-banner",r),"aria-label":i,"aria-roledescription":"carousel",onPointerEnter:w=>{_.current=w.pointerType},onPointerDown:w=>{_.current=w.pointerType,w.pointerType==="touch"&&(b.current!=null&&(window.clearTimeout(b.current),b.current=null),f(!0))},onPointerUp:w=>{w.pointerType==="touch"&&B(5e3)},onPointerCancel:w=>{w.pointerType==="touch"&&B(5e3)},onMouseEnter:()=>{_.current!=="touch"&&h(!0)},onMouseLeave:()=>h(!1),onFocus:w=>{let E=!0;try{E=w.target.matches(":focus-visible")}catch{E=!0}y(E)},onBlur:w=>{w.currentTarget.contains(w.relatedTarget)||y(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${v*100}%)`},children:u.map((w,E)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":E!==v,...E!==v?{inert:!0}:{},children:w},E))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[v]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((w,E)=>n.jsx("button",{type:"button",className:`top-banner__dot${E===v?" 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===v,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(st,{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:v,position:B="top-right",onClick:w,animate:E=!1}=e,D=N??"check",A=v!==void 0?"number":D,R=typeof r=="number"?r:32,$=we("circle-badge",`circle-badge--${A}`,`circle-badge--${B}`,`circle-badge--${R}`,E?"circle-badge--animate":"",w?"circle-badge--clickable":"",s),K=v!==void 0?t("badge.nthSelected",{n:v,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:w,onKeyDown:w?M=>{M.key!=="Enter"&&M.key!==" "||(M.preventDefault(),M.currentTarget.click())}:void 0,"aria-label":i?void 0:l??K,"aria-hidden":i||void 0,role:w?"button":i?void 0:"img",tabIndex:w?0:void 0,children:[v!==void 0&&v,v===void 0&&D==="check"&&n.jsx(Uy,{}),v===void 0&&D==="remove"&&n.jsx(Gy,{}),v===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:y}=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=we("badge",`badge--${d}`,`badge--${C}`,m!=="filled"?`badge--${m}`:"",f,s),k=y?.startsWith("--")?`var(${y})`:y,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(st,{icon:h,size:_,className:"badge__icon"}),u??c,g&&n.jsx(st,{icon:g,size:_,className:"badge__icon"})]})}function za({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),y=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)},[y]),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,mr=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),y=e.length;o.useEffect(()=>{const P=p.current;if(!P)return;const q=()=>{const T=typeof getComputedStyle=="function"?getComputedStyle(P):null,j=P.clientWidth-(parseFloat(T?.paddingLeft??"")||0)-(parseFloat(T?.paddingRight??"")||0),O=P.querySelector(".bottom-nav__left"),H=O?.nextElementSibling,oe=(O?.offsetWidth??0)+(O&&H?.classList.contains("bottom-nav__divider")?H.offsetWidth:0);g(Math.max(0,j-oe))};if(q(),typeof ResizeObserver>"u")return;const X=new ResizeObserver(q);X.observe(P);const V=P.querySelector(".bottom-nav__left");return V&&X.observe(V),()=>X.disconnect()},[s]);const C=So+1,f=P=>Math.max(0,Math.floor((P+mr)/(So+mr))),_=y*(So+mr)-mr<=h,b=h<=0||l.length===0&&_?y:Math.min(y,f(h-C)),k=h>0&&b<y,x=k?b:y,N=e.slice(0,x),v=e.slice(x),B=k||l.length>0,w=o.useCallback((P,q)=>({position:"fixed",bottom:window.innerHeight-P.top+8,right:window.innerWidth-P.right,zIndex:Fa(q)}),[]),E=o.useId(),{open:D,toggle:A,close:R,style:$,triggerRef:K,menuRef:M}=Oa({computeStyle:w,onScroll:"ignore",onResize:"reposition"}),I=o.useCallback((P,q)=>q>0?u("nav.badgeLabel",{label:P,count:q,defaultValue:"{{label}}, {{count}}\uAC1C"}):P,[u]),L=o.useCallback((P,q)=>q>0?u("nav.badgeInsideLabel",{label:P,count:q,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):P,[u]),Z=o.useCallback(()=>s?.(c),[s,c]),U=o.useMemo(()=>v.find(P=>!!P.key&&P.key===t)??l.find(P=>P.selected||P.key&&P.key===t),[v,t,l]),F=o.useMemo(()=>[{items:[...v.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:!!P.key&&P.key===t,closeOnSelect:!0,disabled:P.state==="disabled",onClick:()=>{P.state!=="disabled"&&(P.key&&a&&(a(P.key),Do(i,"BottomNav")),R())}})),...l.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:P.selected??(!!P.key&&P.key===t),closeOnSelect:!0,onClick:()=>{P.onClick?.(),R()}}))]}],[v,l,t,a,R]),Q=[...v,...l].reduce((P,q)=>P+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:Z})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:N.map((P,q)=>{const X=qi(P.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(be,{htmlType:"button",size:52,type:"dot",icon:P.icon,ariaLabel:I(P.label,X),selected:!!P.key&&P.key===t,disabled:P.state==="disabled",className:"bottom-nav-item",onClick:()=>{P.key&&(a?.(P.key),Do(i,"BottomNav"))}}),X>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx($t,{type:"dot",position:"top-right",number:Math.min(X,99),size:24})})]},P.key??`__slot-${q}`)})}),B&&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:U?.icon??"ellipsis",ariaLabel:L(U?.label??u("nav.more","\uB354\uBCF4\uAE30"),Q),selected:!!U,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:M,children:n.jsx(za,{columns:F,onClose:R})}),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??"",y=a?.badge??0,C=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(st,{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,y):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}),y>0&&n.jsx($t,{type:"dot",position:"inline",number:Math.min(y,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:y}=e||{},C=h==="manager",f=o.useCallback(()=>g?.(C?"malgwi":"manager"),[g,C]),_=o.useRef(null),[b,k]=o.useState(null);o.useEffect(()=>{const w=_.current;if(!w)return;let E=null;const D=()=>{const{scrollHeight:$,clientHeight:K,scrollTop:M}=w;if($<=K+1){k(F=>F===null?F:null);return}const I=Math.max(24,K/$*K),L=K-I,Z=$-K,U={top:Math.round(M/Z*L),height:Math.round(I)};k(F=>F&&F.top===U.top&&F.height===U.height?F:U)},A=()=>{if(typeof requestAnimationFrame>"u"){D();return}E===null&&(E=requestAnimationFrame(()=>{E=null,D()}))};D(),w.addEventListener("scroll",A,{passive:!0});const R=typeof ResizeObserver<"u"?new ResizeObserver(A):null;R?.observe(w);for(const $ of Array.from(w.children))R?.observe($);return()=>{E!==null&&cancelAnimationFrame(E),w.removeEventListener("scroll",A),R?.disconnect()}},[a]);const x=o.useRef(null),N=o.useCallback(w=>{const E=_.current;E&&(w.preventDefault(),x.current={y:w.clientY,top:E.scrollTop},w.currentTarget.setPointerCapture(w.pointerId))},[]),v=o.useCallback(w=>{const E=_.current,D=x.current;!E||!D||(E.scrollTop=D.top+(w.clientY-D.y)*(E.scrollHeight/E.clientHeight))},[]),B=o.useCallback(w=>{x.current=null,w.currentTarget.hasPointerCapture(w.pointerId)&&w.currentTarget.releasePointerCapture(w.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:v,onPointerUp:B,onPointerCancel:B})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(w=>!w.section&&(w.key||w.label)).map((w,E)=>n.jsxs(o.Fragment,{children:[w.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(Yi,{item:w,active:!!w.key&&w.key===r,state:w.disabled?"disabled":void 0,onClick:(D,A,R)=>{if(w.disabled)return;if(w.href){if(Gi(w.href)&&window.open(w.href,"_blank","noopener,noreferrer"),R)try{A?.blur()}catch{}return}if(s?.(w.key),Do(y,"SideNav"),!R)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 M=()=>{$.classList.remove("header--force-collapsed"),$.removeEventListener("mouseenter",M)};$.addEventListener("mouseenter",M)}}}})]},w.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 hr='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:hr,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:y}){const{t:C}=xe.useTranslation(),f=mn("(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(M=>M.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:Fa(K)}),[]),N=o.useId(),{open:v,toggle:B,close:w,style:E,triggerRef:D,menuRef:A}=Oa({computeStyle:x,onScroll:"ignore",onResize:"reposition"}),R=o.useMemo(()=>[{items:k.map($=>({label:$.label,icon:$.icon,badgeCount:$.badgeCount,selected:$.selected??(!!$.key&&$.key===e),closeOnSelect:!0,onClick:()=>{$.onClick?.(),w()}}))}],[k,e,w]);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:B,"aria-expanded":v,"aria-controls":v?N:void 0}),!!u&&!!l&&l>0&&n.jsx($t,{type:"dot",number:Math.min(l,99),size:24,"aria-hidden":!0}),v&&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(za,{columns:R,onClose:w})}),document.body)]})]}),n.jsx(Zi,{scrollContainer:y,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:y,appMode:h,onAppModeChange:g})]})}const Xy=Ji,Jy=()=>qt.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",ha=240;var Wa='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/ha}) translate(${-ha/2} ${-ha/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("${Wa}")`}})]})}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/ha}) translate(${-ha/2} ${-ha/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("${Wa}")`}})]})}const h2={Logo_SpeechEar_ko:{"":hr,_mono:n2},Logo_SpeechEarManager_ko:{"":jo,_mono:a2}};function C2(e,t){if(e)return h2[e]?.[t??""]??void 0}const f2={speechear:hr,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===qt.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:y,label:C,price:f,originalPrice:_,discountLabel:b,onUse:k,onRefund:x,onDelete:N}){const{t:v}=xe.useTranslation(),B=t?eu(t):void 0,w=s??B?.type??"speechear",E=r??B?.plan??v("passCard.planSuffix","\uC774\uC6A9\uAD8C"),D=C??B?.label,A=f??(a?B?.price:void 0),R=_??(a?B?.originalPrice:void 0),$=b??B?.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,v)}:null;const G=W*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 ce=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(l)),ge=/^(\d{4})-(\d{2})-(\d{2})/.exec($a()),he=Math.round(ce&&ge?(Date.UTC(+ce[1],+ce[2]-1,+ce[3])-Date.UTC(+ge[1],+ge[2]-1,+ge[3]))/864e5:(me-Date.now())/864e5);pe=Math.max(0,u?he+1:he)*86400}else c==="expired"?pe=0:pe=G;const Ee=g2(pe),ve=Math.max(0,Math.min(100,Math.floor(Math.min(Ee,G)/G*100)));return c==="pending"&&ve>=100?null:{percent:ve,remainingLabel:c==="expired"?v("passCard.expired","\uB9CC\uB8CC\uB428"):lu(pe,v)}},[A,c,l,i,u,t?.durationDays,t?.code,v]),M=o.useRef(null),[I,L]=o.useState({}),[Z,U]=o.useState(null),F=!!(k||x||N),Q=o.useRef(!1),P=o.useRef(void 0),[q,X]=o.useState(y);o.useLayoutEffect(()=>{X(y)},[y]),o.useLayoutEffect(()=>{const W=M.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=M.current;if(!W)return;const G=r2(W);if(!y){const pe=b2[w],Ee=c==="expired"?"_mono":G?.logoColor??"",ve=C2(pe,Ee);X(ve)}},[d,y,w,c]);const V=W=>{const G=M.current;if(!G)return null;const{left:pe,top:Ee,width:ve,height:me}=G.getBoundingClientRect(),ce=(W.clientX-pe)/ve-.5;return{rotateX:-((W.clientY-Ee)/me-.5)*su,rotateY:ce*su}},T=(W,G)=>{const pe=G*-.7,Ee=W*.7+10,ve=20+(Math.abs(W)+Math.abs(G))*.4;return`${pe}px ${Ee}px ${ve}px rgba(0, 0, 0, 0.18)`},j=o.useCallback(W=>{if(ma())return;Q.current=!0,clearTimeout(P.current),P.current=setTimeout(()=>{Q.current=!1},200);const G=V(W);G&&L({transform:`perspective(800px) rotateX(${G.rotateX}deg) rotateY(${G.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:T(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)"})},[]),O=o.useCallback(W=>{if(ma())return;const G=V(W);if(!G)return;const pe=Q.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";L({transform:`perspective(800px) rotateX(${G.rotateX}deg) rotateY(${G.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:T(G.rotateX,G.rotateY),transition:pe})},[]),H=o.useCallback(()=>{clearTimeout(P.current),Q.current=!1,L({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)"})},[]),oe=o.useCallback(()=>U(null),[]),ne=o.useMemo(()=>{const W=v("passCard.planSuffix","\uC774\uC6A9\uAD8C"),G=E.replace("\uC774\uC6A9\uAD8C","").replace(W==="\uC774\uC6A9\uAD8C"?"":W,"").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"?v("passCard.unitYear","\uB144"):v("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:G})},[E,v]),le=o.useMemo(()=>{const W=ua(A);if(!W)return null;const G=W.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!G)return n.jsx("span",{className:"h1",children:W});const[,pe,Ee,ve]=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:Ee}),ve.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:ve.trim()})]})},[A]),ee=o.useCallback(()=>{F&&U(W=>{if(W)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}})},[F]),z=o.useCallback(W=>{F&&(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),ee())},[F,ee]),te=[{items:[...k?[{label:v("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{k(),U(null)},closeOnSelect:!0}]:[],...x?[{label:v("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),U(null)},closeOnSelect:!0}]:[],...N?[{label:v("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{N(),U(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}${F?" pass-card--clickable":""}`,style:I,onMouseEnter:j,onMouseMove:O,onMouseLeave:H,onPointerUp:W=>{W.pointerType==="touch"&&H()},onPointerCancel:W=>{W.pointerType==="touch"&&H()},onClick:ee,onKeyDown:F?z:void 0,role:F?"button":void 0,tabIndex:F?0:void 0,"aria-label":e,"aria-haspopup":F?"menu":void 0,"aria-expanded":F?!!Z:void 0,children:[d??y2(w,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[w],className:"pass-card__logo",alt:w==="manager"?v("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):v("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:ne}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:D?v("passCard.labeledPlan",{label:D}):v("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:[R&&n.jsx("span",{className:"pass-card__price-original body-3",children:ua(R)}),le]})]}):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."})]})]})}),Z&&n.jsx(gn,{anchorRect:Z,onClose:oe,ariaLabel:v("tooltip.menu","\uBA54\uB274"),children:n.jsx(za,{columns:te,onClose:oe,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("${Wa}")`}})]})}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("${Wa}")`}})]})}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(v=>!!v.badge&&v.originals?.[i]===N):!1},h=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",g=t("payment.plan.freePrice","\uBB34\uB8CC"),y=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===y}),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(st,{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(st,{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,v=d(x),B=v||x.openPromo===!0,w=N.replace(/^오픈\s*특가\s*/,"")||a,E=x.prices?x.prices[i]:x.price,D=x.badge?B?`${r}
|
|
823
|
-
${x.badge}`:x.badge:void 0;if(v&&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),R=n.jsx(iu,{showPrice:!0,product:{type:k,code:x.code,name:w,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:R});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:R},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("${Wa}")`}})]})}function du({keys:e,anchor:t="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return n.jsx("span",{className:we("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 Ha=(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:y=!0,onCenterClick:C,centerLabel:f,centerDisabled:_=!1,centerAttention:b=!1,shortcutAnchor:k="top-right",shortcutScale:x,scaleShortcut:N=!1}){const{t:v}=xe.useTranslation(),B=Math.max(0,Math.min(1,a)),w=t/2,E=110/300,D=.18,A=W=>t*(E+(W-1)*D),R=W=>{const G=A(W.row??1),pe=W.angleDeg*Math.PI/180;return{x:w+G*Math.cos(pe),y:w+G*Math.sin(pe)}},$=Math.max(...e.map(W=>W.row??1),1),K=t*.08,M=t*.1,I=t*.24,L=t-2*K,Z=t-M-I,U=t-I/2,F=o.useMemo(()=>[...new Set(e.map(W=>W.deg))].sort((W,G)=>W-G),[e]),Q=F.length,P=Math.max(68,Q>1?L/(Q-1):0),q=o.useMemo(()=>new Map(F.map((W,G)=>[W,G])),[F]),X=W=>{const G=q.get(W.deg)??0,pe=w+(G-(Q-1)/2)*P,Ee=$>1?Math.min(68,Z/($-1)):0,ve=Ee*($-1),me=M+(Z-ve)/2,ce=$===1?M+Z*.4:me+($-(W.row??1))*Ee;return{x:pe,y:ce}},V=W=>{const G=R(W),pe=X(W);return{x:Ha(G.x,pe.x,B),y:Ha(G.y,pe.y,B)}},T={x:w,y:Ha(w,U,B)},j=Math.round(g*1.2),O=Math.round(Math.max(16,Math.min(80,g*.7))),H=[],oe=new Map;for(const W of e){const G=W.row??1;oe.has(G)||oe.set(G,[]),oe.get(G).push(W)}for(const[W,G]of oe.entries()){if(G.length<2)continue;const pe=[...G].sort((We,dt)=>We.deg-dt.deg),Ee=pe.map(We=>V(We)),ve=pe.map(We=>We.deg),me=ve[ve.length-1]-ve[0],ce=me/(ve.length-1),ge=360-me,he=pe.length>=3&&ce>0&&ge<=ce*1.5,de=Math.round(A(W)*1e3)/1e3,Le=(We,dt,lt,tt)=>{const yt=(dt.angleDeg-We.angleDeg+540)%360-180;if(yt===0)return`L ${tt.x} ${tt.y}`;if(B===0)return`A ${de} ${de} 0 0 ${yt>0?1:0} ${tt.x} ${tt.y}`;const _e=(We.angleDeg+yt/2)*Math.PI/180,Ge={x:w+de*Math.cos(_e),y:w+de*Math.sin(_e)},Be={x:(lt.x+tt.x)/2,y:(lt.y+tt.y)/2},qe={x:Ha(Ge.x,Be.x,B),y:Ha(Ge.y,Be.y,B)},Ke={x:2*qe.x-Be.x,y:2*qe.y-Be.y};return`Q ${Ke.x} ${Ke.y} ${tt.x} ${tt.y}`},ze=he?[...pe,pe[0]]:pe,Me=he?[...Ee,Ee[0]]:Ee;let Ve=`M ${Me[0].x} ${Me[0].y}`;for(let We=1;We<Me.length;We++)Ve+=" "+Le(ze[We-1],ze[We],Me[We-1],Me[We]);H.push({key:`arc-${W}`,d:Ve})}const ne=o.useMemo(()=>new Set(s??[]),[s]),le=W=>({idle:"",active:v("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:v("soundCompass.state.played","\uB4E4\uC74C"),correct:v("soundCompass.state.correct","\uC815\uB2F5"),wrong:v("soundCompass.state.wrong","\uC624\uB2F5")})[W],ee=W=>{if(r===W.id)return"active";if(u){if(W.id===i)return"correct";if(W.id===l&&l!==i)return"wrong"}return ne.has(W.id)?"played":"idle"},z=W=>r===W.id?"loop":u?W.id===i?"loop":null:c&&W.id===l?"once":null,te=(W,G)=>{switch(W){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:[B===0&&e.map(W=>{const{x:G,y:pe}=V(W);return n.jsx("line",{x1:T.x,y1:T.y,x2:G,y2:pe,stroke:"#dde3ec",strokeWidth:"1"},W.id)}),H.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:j,height:j,left:T.x-j/2,top:T.y-j/2}}),C?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${_?" sound-compass__center--disabled":""}`,style:{width:j,height:j,left:T.x,top:T.y},"aria-label":f,"aria-disabled":_||void 0,tabIndex:_?-1:0,onClick:_?void 0:C,children:n.jsx(Fr,{size:O,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:j,height:j,left:T.x,top:T.y},children:n.jsx(Fr,{size:O,color:"currentColor",strokeWidth:1.5})}),e.map((W,G)=>{const{x:pe,y:Ee}=V(W),ve=ee(W),me=z(W),ce={...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:ve!=="idle"?10:1},ge=g,he=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=y==="answered"&&(ve==="played"||ve==="correct"||ve==="wrong"),Me=y===!0||ze,Ve=!ze;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...ce,left:pe-ge/2,top:Ee-ge/2},children:[me&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ve}`+(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?.(W.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ve}`,style:{width:ge,height:ge},"aria-label":le(ve)?`${W.label}, ${le(ve)}`:W.label,"aria-pressed":l!=null?W.id===l:void 0,children:[Me&&te(ve,he),Ve&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?de:Le},children:G+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:we("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=we("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)&&ur(b),m(!0),l?.()},[l]);if(d)return null;const g=we("alert",`alert--${e}`,u),y=i??(e==="danger"||e==="warning"?"assertive":"polite"),C=y==="assertive"?"alert":y==="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(st,{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=we("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(st,{icon:i,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function Va({title:e,items:t}){const{t:a}=xe.useTranslation(),{anchorRect:r,openAt:s,close:l}=Ia(),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=>{pa(c)||s(c.currentTarget)},onPointerLeave:c=>{pa(c)||l()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{ma()||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)},y=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))}),y&&n.jsx("div",{id:`tabs__panel-${l}-${y.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${l}-${y.key}`,tabIndex:0,className:"tabs__panel",children:y.panel},y.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(st,{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([]),y=l??h,C=v=>{if(!v||v.length===0)return;const B=Array.from(v).filter(E=>H2(E,t));if(B.length===0)return;const w=a?B:B.slice(0,1);if(l===void 0){const E=a?[...y,...w]:w;g(E),e?.(E)}else e?.(w)},f=v=>{v.preventDefault(),!r&&p(!0)},_=v=>{v.preventDefault(),p(!1)},b=v=>{v.preventDefault(),p(!1),!r&&C(v.dataTransfer.files)},k=v=>{const B=v.target;try{C(B.files)}finally{B.value=""}},x=()=>{r||d.current?.click()},N=v=>{if(!r&&(i?.(v),l===void 0)){const B=y.filter((w,E)=>E!==v);g(B),i||e?.(B)}};return n.jsxs("div",{className:`file-upload ${u}`.trim(),children:[n.jsxs("div",{className:we("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:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),x())},onDragOver:f,onDragLeave:_,onDrop:b,children:[n.jsx(st,{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:v=>{v.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&&y.length>0&&n.jsx("ul",{className:"file-upload__list",children:y.map((v,B)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:v.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:v.name}),disabled:r,onClick:()=>N(B),children:n.jsx(st,{icon:"x",size:14})})]},`${v.name}-${B}`))})]})}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(st,{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],y=v=>{v!==e&&t?.(v)},C=v=>{c||y(v)},f=v=>{c||ma()||m(v)},_=o.useRef(null),b=v=>{const B=Math.min(a,Math.max(1,v));y(B),Array.from(_.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(B))?.focus()},k=v=>{if(!c){switch(v.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}v.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:v=>{v.pointerType==="touch"&&N()},onPointerCancel:v=>{v.pointerType==="touch"&&N()},children:Array.from({length:a},(v,B)=>{const w=B+1,E=Math.max(0,Math.min(1,h-B)),D=E>0&&E<1,A=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(st,{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(st,{icon:"star",size:g,className:"rating__star rating__star--filled"})})]});return c?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:A},w):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":p===w,"aria-label":u("rating.starLabel",{n:w}),"data-star":w,tabIndex:w===x?0:-1,onClick:()=>C(w),onMouseEnter:()=>f(w),children:A},w)})})}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(st,{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=we("category-icon",d?"category-icon--small":""),p=d?16:20,h=o.useRef(null),[g,y]=o.useState(!1),C=o.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!s&&!l?w:{...w,...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{y(!1)}catch{}},[i,g]),o.useEffect(()=>{if(!g)return;const w=E=>{const D=h.current;if(!D)return;const A=E.target;A&&!D.contains(A)&&y(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[g]);const x=o.useCallback(()=>{i&&y(!0)},[i]),N=o.useCallback(()=>{i&&y(!1)},[i]),v=o.useCallback(()=>y(!1),[]),B=o.useCallback(w=>{if(w.key==="Escape"){y(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),y(E=>!E))},[]);return n.jsxs("span",{ref:h,className:we("category-icon__wrap",_&&"category-icon__wrap--interactive"),onPointerEnter:x,onPointerLeave:N,onFocus:x,onBlur:N,onKeyDown:B,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(st,{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:v,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}let zn=null;function qa(e){if(zn&&zn!==e)try{zn()}catch{}return zn=e,()=>{zn===e&&(zn=null)}}function Cr(e){if(zn===e){zn=null;try{e()}catch{}}}function Ua(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),y=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=[],v=[];for(const B of C)try{const w=xl(B,f);if(!w){N.push("");continue}let E=null;try{E=await _l(w)}catch{}if(!E)try{const D=await wl(w);D&&(E=URL.createObjectURL(D),v.push(E))}catch{}N.push(E??"")}catch{N.push("")}x?v.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}):(y.current.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}),y.current=v,u({key:_,urls:N}))})(),()=>{x=!0}},[C.join(","),f]),o.useEffect(()=>()=>{y.current.forEach(x=>{try{URL.revokeObjectURL(x)}catch{}}),y.current=[]},[]);const k=o.useCallback(async x=>{if(x.stopPropagation(),x.preventDefault(),d.current){m.current&&Cr(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 v=()=>{d.current=!1,N?.stop()};m.current=v;const B=qa(v);d.current=!0,r(!0);for(let w=0;w<b.length&&d.current;w++){const E=b[w];if(E&&(l(w),N=Ua(E),c.current=N.el,!await N.done))break}B(),m.current===v&&(m.current=null,d.current=!1,r(!1),l(-1))},[b]);return o.useEffect(()=>()=>{m.current&&Cr(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:y=!1,onComplete:C,onSelect:f,onMore:_,countLabelOverride:b,size:k="square"}=e||{},{t:x}=xe.useTranslation(),[N,v]=o.useState(!1),B=o.useRef(null),[w,E]=o.useState(!1);o.useEffect(()=>{B.current?.matches(":hover")&&E(!0)},[]);const{playing:D,playingIndex:A,previewUrls:R,previewHover:$,setPreviewHover:K,previewBtnRef:M,handlePreview:I}=J2(r,a?.key),L=o.useCallback(()=>{f?f():v(!0)},[f]),Z=o.useCallback(()=>v(!1),[]),U=o.useCallback(()=>E(!0),[]),F=o.useCallback(()=>E(!1),[]),Q=o.useCallback(()=>K(!0),[K]),P=o.useCallback(()=>K(!1),[K]),[q,X]=o.useState(null);o.useLayoutEffect(()=>{$&&X(M.current?.getBoundingClientRect()??null)},[$,M]);const[V,T]=o.useState(null);o.useLayoutEffect(()=>{w&&!N&&p&&T(B.current?.getBoundingClientRect()??null)},[w,N,p]);const j=o.useCallback(Be=>{Be.target===Be.currentTarget&&(Be.key==="Enter"||Be.key===" ")&&(Be.preventDefault(),L())},[L]),O=r||null,H=o.useMemo(()=>{if(!p)return null;const Be=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,qe=Be&&Be.length>0?Be:Q2(O);return qe&&qe.length>0?qe:null},[p,m,O]),oe=o.useCallback(Be=>{Be.stopPropagation(),h?.()},[h]),ne=o.useCallback(Be=>Be.stopPropagation(),[]),le=o.useCallback(Be=>{typeof C=="function"&&C(Be)},[C]),ee=u||(c&&r?.id!=null?c.has(String(r.id)):!1),z=!ee&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);Ri("speechear.popup.close",Z);const te=Gl(),W=`${a?.label||""} ${t+1}`,G=O?.title||O?.name||W;let pe=a?.icon,Ee,ve="",me="";try{const Be=O?.category_0||O?.category_main_code||O?.category_main,qe=O?.category_1||O?.category_sub_code||O?.category_sub,Ke=te.find(pt=>pt.key===Be);Ke?.icon&&(pe=Ke.icon),!Ee&&Ke?.color&&(Ee={"--t-item-fg":Ke.color}),!Ee&&O?.iconColor&&(Ee={"--t-item-fg":O.iconColor}),ve=Ke?x(`topic.${Ke.key}`,{defaultValue:Ke.label||""}):"";try{const pt=Ke?.subs?.find(xt=>xt.key===qe);me=pt?x(`topic.sub.${pt.key}`,{defaultValue:pt.label||""}):""}catch{}}catch{}const ce=me?`${ve} / ${me}`:ve||a?.label||G,ge=Be=>x("training.countQuestions",{n:Be,count:Be}),he=Be=>x("training.countSentences",{n:Be,count:Be});let de="";try{if(O)if(a?.key==="LISTEN_IN_NOISE"){let Be=0;Array.isArray(O.items)&&O.items.length>0?Be=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0?Be=O.sentences.length:O.sentences&&(Be=1),de=he(Be)}else if(a?.key==="SHORT_STORY"){let Be=1;Array.isArray(r?.items)?Be=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Be=r.raw.items.length:Array.isArray(O?.questions)?Be=O.questions.length:Array.isArray(O?.sentences)&&(Be=O.sentences.length),de=ge(Be)}else if(a?.key==="LONG_STORY"){let Be=1;if(Array.isArray(O.items)&&O.items.length>0){const qe=O.items.reduce((Ke,pt)=>{const xt=pt.questionItems;return Array.isArray(xt)?Ke+xt.length:Array.isArray(pt.questions)?Ke+pt.questions.length:Ke},0);Be=qe>0?qe:O.items.length}else Array.isArray(O.questions)&&O.questions.length>0?Be=O.questions.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(Be=O.sentences.length);de=ge(Be)}else if(a?.key==="ORDERING_SENTENCE"){let Be=1;Array.isArray(O.items)&&O.items.length>0?Be=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(Be=O.sentences.length),de=he(Be)}else Array.isArray(O.items)&&(de=O.items.length>0?ge(O.items.length):"")}catch{}const Le=k==="row",ze=k==="list"||Le,Me=k==="compact",Ve=k==="small",We=Ve&&a?.key?Pf().find(Be=>Be.key===a.key):void 0,dt=We?Kl[We.key]:void 0,lt=We?dt?x(`trainingType.${dt}.title`,{defaultValue:We.label}):We.label??"":"",tt=y&&a?.label&&a.label!==String(G)?String(a.label):Ve&<&<!==String(G)?lt:"",yt=!!tt,_e=b!==void 0?b:de,Ge=[tt,typeof G=="string"?G:"",_e].map(Be=>String(Be??"").trim()).filter(Boolean).join(" ");return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:B,className:`training-block-button${ze?" training-block-button--list":""}${Le?" training-block-button--row":""}${Me?" training-block-button--compact":""}${Ve?" training-block-button--small":""}${ee?" training-block-button--completed":""}${z?" training-block-button--selected":""}${yt&&!Ve?" training-block-button--withType":""}${Ve&&!yt?" training-block-button--no-type-label":""}`,onClick:L,onPointerEnter:U,onPointerLeave:F,role:"button",tabIndex:0,onKeyDown:j,"aria-label":typeof s=="string"?s:Ge||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:[y&&a?.label&&a.label!==String(G)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ve&<&<!==String(G)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:lt}),n.jsx(mu,{icon:pe,label:G,tooltip:ce,wrapperStyle:Ee,iconSize:Ve||Me?"small":"medium"}),!g&&(ee||z)&&!(h&&w)&&n.jsx($t,{className:h?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":ee?x("training.completed","\uD6C8\uB828 \uC644\uB8CC"):x("training.selected","\uC120\uD0DD\uB428")}),h&&n.jsx($t,{className:`training-block-button__remove${w?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":x("common.remove","\uC81C\uAC70"),onClick:oe}),n.jsx("div",{className:`training-block-button__title ${Me?"body-3":Ve?"body-3b":"h3"}`,children:String(G)}),n.jsxs("div",{className:"training-block-button__description",children:[_e?n.jsx("div",{className:`training-block-button__count ${Ve?"caption-2":"caption-1"}`,children:_e}):null,n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(st,{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:Ve?12:20})})]}),(ze&&!Le||Ve)&&R.length>0&&n.jsx("div",{ref:M,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ne,onPointerEnter:Q,onPointerLeave:P,children:n.jsx(be,{htmlType:"button",size:Ve?28:32,type:"dot",icon:D?"pause":"play",variant:Ve?"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:I})})]}),_&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:Be=>{Be.stopPropagation(),_(Be)},children:n.jsx(be,{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(En,{anchorRect:q,text:D?x("training.stop","\uC815\uC9C0"):x("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),w&&!N&&p&&(H?n.jsx(Kn,{anchorRect:V,items:H,activeIndex:A,onClose:F}):O?.subTitle?n.jsx(En,{anchorRect:V,text:O.subTitle,offset:8,onClose:F}):null),N&&i&&i({trainingData:O,typeKey:a?.key??"",onClose:Z,onComplete:le,popupTitle:String(G),popupSubTitle:a?.subTitle,depth:l!=null?String(l):void 0,popupIcon:pe,popupIconTooltip:String(ce),popupWrapperStyle:Ee})]})}const hu=200;function ev(e){return e.itemId?(Wf()[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):Vf(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,y)=>n.jsx(Lo,{index:y,type:m,trainingData:g,size:"compact",hideCheckBadge:!0},String(g.id??y)))})]},c)])})});return a?n.jsx(gn,{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=we("count-tile",m&&"count-tile--interactive",m&&l&&"count-tile--accent",u&&"count-tile--clickable",i),h=o.useRef(null),[g,y]=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(),y(null)},[b]),x=o.useCallback(()=>{!s||!r||(b(),C.current=setTimeout(()=>{C.current=null,y(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,y(null)},tv))},[]);return o.useEffect(()=>()=>{b()},[b]),o.useEffect(()=>{(!s||!r)&&k()},[s,r,k]),o.useEffect(()=>{if(!_)return;const v=w=>w instanceof Element&&(h.current?.contains(w)||!!w.closest(".tooltip-training")),B=w=>{v(w.target)?b():N()};return document.addEventListener("pointerover",B,!0),()=>document.removeEventListener("pointerover",B,!0)},[_,b,N]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:h,className:p,onClick:u?v=>{k(),u(v)}:void 0,onKeyDown:u?v=>{v.key!=="Enter"&&v.key!==" "||(v.preventDefault(),v.currentTarget.click())}:void 0,onPointerEnter:v=>{v.pointerType==="touch"||v.pointerType==="pen"?k():x()},onMouseEnter:c,onMouseLeave:v=>{N(),d?.(v)},role:u?"button":"img",tabIndex:u?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(st,{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 Ga=0,fu="",$o="",Ka=0;function bu(){return gu(!1)}function av(){return gu(!0)}function gu(e){const t=typeof document<"u";Ga===0&&t&&(fu=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Ka===0&&($o=document.body.style.paddingRight),Ka++,document.body.style.paddingRight="0px"),Ga++;let a=!1;return()=>{a||(a=!0,Ga=Math.max(0,Ga-1),e&&t&&(Ka=Math.max(0,Ka-1),Ka===0&&($o?document.body.style.paddingRight=$o:document.body.style.removeProperty("padding-right"))),Ga===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),y=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(y),f=o.useRef(u);o.useEffect(()=>{C.current=y,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:we("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&&y()}: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:we("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:y,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:we("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:we("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:we("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:we("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:we("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:we("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=Ra(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:we("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:we("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(R=>yu(R).toLowerCase().includes(A.toLowerCase())):r?a:[]},[a,e,r,s]),[y,C]=o.useState(!1),f=o.useRef([]),_=y&&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,v=o.useCallback(A=>{l?l(A):t?.(yu(A)),d(!1)},[t,l]),B=o.useCallback(()=>d(!0),[]),w=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(R=>Math.min(_.length-1,(R<_.length?R:x)+1))):A.key==="ArrowUp"?(A.preventDefault(),p(R=>Math.max(x,(R<_.length?R:_.length)-1))):A.key==="Enter"?N>=0&&v(_[N]):A.key==="Escape"&&c&&(A.preventDefault(),d(!1)))},[_,N,c,v,x]);return{listId:u,open:c,activeIdx:N,filtered:_,handleFocus:B,handleBlur:E,handleInput:w,handleKeyDown:D,handleSelect:v,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:y=!1,readOnly:C=!1,error:f,helperText:_,maxLength:b,size:k=40,variant:x="input",fullWidth:N=!1,newline:v=!1,multiline:B=!1,rows:w=3,leftIcon:E,rightIcon:D,clearable:A=!1,list:R,showCount:$=!0,className:K="",onFocus:M,onBlur:I,onKeyDown:L,onEnter:Z,inputMode:U,autoComplete:F,autoFocus:Q,suggestions:P,filterSuggestions:q,onSelectSuggestion:X,autoActiveFirst:V,openOnFocus:T=!1}=e,j=C||y?void 0:P,{t:O}=xe.useTranslation(),H=o.useId();!i&&!u&&Tt(`TextField:unnamed:${H}`,"[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 oe=`tf-${H}`,ne=`tf-helper-${H}`,le=o.useRef(null),ee=vu({value:t??"",onChange:l,suggestions:j??[],openOnFocus:T,filterSuggestions:q,onSelectSuggestion:X,autoActiveFirst:V}),z=!!j&&ee.open&&ee.filtered.length>0,te=o.useRef(null),[W,G]=o.useState(null),pe=o.useCallback(()=>{const _e=te.current;if(!_e||typeof window>"u")return;const Ge=_e.getBoundingClientRect(),Be=230,qe=window.innerHeight-Ge.bottom<Be+8&&Ge.top>Be+8;G({position:"fixed",left:Ge.left,width:Ge.width,...qe?{bottom:window.innerHeight-Ge.top+8}:{top:Ge.bottom+8},zIndex:Fa(_e)})},[]);Ro(()=>{if(!z)return;pe();let _e=null;const Ge=()=>{if(typeof requestAnimationFrame>"u"){pe();return}_e===null&&(_e=requestAnimationFrame(()=>{_e=null,pe()}))},Be=qe=>{const Ke=qe.target;Ke&&Ke.nodeType===1&&Ke.closest?.(".text-field__suggestions")||Ge()};return window.addEventListener("scroll",Be,!0),window.addEventListener("resize",Ge),()=>{_e!==null&&cancelAnimationFrame(_e),window.removeEventListener("scroll",Be,!0),window.removeEventListener("resize",Ge)}},[z,pe]);const Ee=o.useCallback(_e=>{le.current=_e,typeof s=="function"?s(_e):s&&(s.current=_e)},[s]),ve=p?`${p}${h??O("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:m,me=t!==void 0,ce=me&&g==="password",[ge,he]=o.useState((a??"").length),de=me?(t??"").length:ge,Le=o.useRef(t);Ro(()=>{Le.current=t}),o.useEffect(()=>{const _e=le.current;if(!ce||!_e)return;const Ge=t??"";_e.value!==Ge&&(_e.value=Ge)},[ce,t]),o.useEffect(()=>{if(!v||!le.current)return;const _e=le.current;_e.style.height="",_e.scrollHeight>_e.clientHeight&&(_e.style.height=`${_e.scrollHeight}px`)},[t,ge,v]);const ze=b!=null&&de>b,Me=k===32?16:20,Ve=we("text-field",`text-field--s${k}`,x==="display"?"text-field--display":"",N?"text-field--full-width":"",y?"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:oe,...ce?{}:me?{value:t}:{defaultValue:a},ref:Ee,placeholder:ve,name:r,disabled:y,readOnly:C,autoFocus:Q,maxLength:b,list:R,inputMode:U,autoComplete:F,"aria-label":!i&&u?u:void 0,"aria-required":d,"aria-invalid":!!f,"aria-describedby":[_||f?ne:null,c].filter(Boolean).join(" ")||void 0,role:j?"combobox":void 0,"aria-autocomplete":j?"list":void 0,"aria-haspopup":j?"listbox":void 0,"aria-expanded":j?z:void 0,"aria-controls":z?ee.listId:void 0,"aria-activedescendant":z&&ee.activeIdx>=0?`${ee.listId}-option-${ee.activeIdx}`:void 0,onChange:_e=>{const Ge=_e.target;me||he(Ge.value.length),l?.(Ge.value),j&&ee.handleInput(),ce&&queueMicrotask(()=>{const Be=Le.current??"";Ge.value!==Be&&(Ge.value=Be)})},onCompositionStart:j?ee.handleCompositionStart:void 0,onCompositionEnd:j?ee.handleCompositionEnd:void 0,onFocus:(_e=>{M?.(_e),j&&ee.handleFocus()}),onBlur:(_e=>{I?.(_e),j&&ee.handleBlur()}),onKeyDown:(_e=>{const Ge=(_e.key==="Tab"&&!_e.shiftKey||_e.key===" ")&&!_e.nativeEvent.isComposing;if(p&&Ge&&!C&&!y&&!(_e.currentTarget.value??"").trim()){_e.preventDefault();const Be=_e.currentTarget;me||(Be.value=p,he(p.length)),l?.(p);return}j&&_e.key==="Enter"&&!_e.nativeEvent.isComposing&&ee.activeIdx>=0?_e.preventDefault():Z&&_e.key==="Enter"&&!_e.nativeEvent.isComposing&&(_e.preventDefault(),Z()),L?.(_e),j&&ee.handleKeyDown(_e)})},dt=A&&!y&&!C&&de>0,lt=()=>v?n.jsx("textarea",{...We,className:"text-field__input text-field__input--auto body-2",rows:1}):B?n.jsx("textarea",{...We,className:"text-field__input text-field__input--textarea body-2",rows:w}):n.jsx("input",{...We,type:g,className:"text-field__input body-2"}),tt=x==="display"&&!v&&!B&&!!ve,yt=()=>n.jsxs(n.Fragment,{children:[lt(),tt&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:ve})]});return n.jsxs("div",{ref:te,className:Ve,children:[i&&n.jsxs("label",{htmlFor:oe,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(st,{icon:E,label:"",className:"",svgClassName:"text-field__icon-svg",size:Me})}),yt(),b!=null&&$&&n.jsxs("span",{className:`text-field__count caption-2${ze?" text-field__count--over":""}`,children:[de,"/",b]}),dt&&n.jsx(be,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:O("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:_e=>{_e.preventDefault()},onClick:()=>{!me&&le.current&&(le.current.value="",he(0)),l?.("")},tabIndex:-1}),D&&!dt&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(st,{icon:D,label:"",className:"",svgClassName:"text-field__icon-svg",size:Me})})]}),!!j&&n.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:ee.open&&(t??"").length>0&&ee.filtered.length===0?O("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),z&&(typeof document>"u"?null:sn.createPortal(n.jsx("ul",{id:ee.listId,className:"text-field__suggestions",role:"listbox",style:W??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:ee.filtered.map((_e,Ge)=>n.jsx("li",{id:`${ee.listId}-option-${Ge}`,role:"option","aria-selected":Ge===ee.activeIdx,className:`text-field__suggestion body-2${Ge===ee.activeIdx?" is-active":""}`,onMouseDown:Be=>Be.preventDefault(),onClick:()=>{ee.handleSelect(_e),le.current?.focus()},children:typeof _e=="string"?_e:n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-field__suggestion-label",children:_e.label}),_e.hint&&n.jsx("span",{className:"text-field__suggestion-hint caption-1",children:_e.hint})]})},typeof _e=="string"?`${_e}-${Ge}`:_e.id))}),document.body)),(_||f)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:ne,className:"text-field__helper caption-1",role:f?"alert":void 0,children:f||_})})]})}function hn({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(),y=o.useId(),C=o.useRef(null),f=o.useCallback((M,I)=>{const L=window.innerHeight-M.bottom<260&&M.top>260;return{position:"fixed",left:M.left,minWidth:M.width,...L?{bottom:window.innerHeight-M.top+6}:{top:M.bottom+6},zIndex:Fa(I)}},[]),{open:_,setOpen:b,toggle:k,style:x,triggerRef:N,menuRef:v}=Oa({computeStyle:f}),[B,w]=o.useState(-1),E=o.useCallback(()=>w(-1),[]),D=e.find(M=>M.value===t);o.useEffect(()=>{if(_){const M=e.findIndex(I=>I.value===t);w(M>=0?M:e.length?0:-1),requestAnimationFrame(()=>{const I=v.current;if(!I)return;const L=I.querySelectorAll(".dropdown__option")[M];L&&(I.scrollTop=Math.max(0,L.offsetTop-I.clientHeight/2+L.clientHeight/2))})}},[_]),o.useEffect(()=>{_&&w(M=>{if(M>=0&&M<e.length)return M;const I=e.findIndex(L=>L.value===t);return I>=0?I:e.length?0:-1})},[_,e.length]);const A=o.useCallback(()=>{s||k()},[s,k]),R=o.useCallback(M=>{M.disabled||s||(M.value!==t&&a?.(M.value),b(!1))},[a,b,s,t]);o.useEffect(()=>{s&&b(!1)},[s,b]);const $=o.useCallback(M=>{if(!s){if(!_){(M.key==="Enter"||M.key===" "||M.key==="ArrowDown")&&(M.preventDefault(),b(!0));return}if(M.key==="Escape"){M.preventDefault(),b(!1);return}M.key==="ArrowDown"?(M.preventDefault(),w(I=>{let L=I+1;for(;L<e.length&&e[L].disabled;)L++;return L<e.length?L:I})):M.key==="ArrowUp"?(M.preventDefault(),w(I=>{let L=I-1;for(;L>=0&&e[L].disabled;)L--;return L>=0?L:I})):(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),e[B]?R(e[B]):b(!1))}},[s,_,e,B,R,b]),K=_?n.jsx("div",{ref:v,id:g,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:x,onMouseLeave:E,onMouseDown:M=>M.preventDefault(),children:e.map((M,I)=>n.jsxs("button",{id:`${g}-option-${I}`,type:"button",role:"option","aria-selected":M.value===t,className:we("dropdown__option body-2",M.value===t?"dropdown__option--active":"",I===B?"dropdown__option--active":"",M.disabled?"dropdown__option--disabled":""),onMouseDown:L=>L.preventDefault(),onClick:()=>R(M),onMouseEnter:()=>w(I),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:we("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":_&&B>=0?`${g}-option-${B}`:void 0,"aria-label":d,"aria-describedby":[d&&D?y:"",m??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:A,onBlur:M=>{_&&!v.current?.contains(M.relatedTarget)&&b(!1)},children:[n.jsx("span",{id:y,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 fr({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:we("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 Ya=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),y=o.useId(),C=a.map(x=>x.key).join("\xB7");o.useEffect(()=>{if(!(!Pn||p!=null&&p!=="")){if(Ya.set(y,C||"(\uBCF4\uAE30 \uC5C6\uC74C)"),Ya.size>1){const x=[...Ya.values()].sort();Tt(`segmented-control-unnamed:${x.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${Ya.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()=>{Ya.delete(y)}}},[p,C,y]);const f=x=>{if(!g.length)return;const N=Math.max(0,g.findIndex(B=>B.key===r)),v=x==="first"?g[0]:x==="last"?g[g.length-1]:g[(N+x+g.length)%g.length];v&&(s(v.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(B=>B.dataset.segkey===v.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=v=>typeof v=="string"||typeof v=="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:we("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:we("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(hn,{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(hn,{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(fr,{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"},xg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},_g={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"},wg={clearAriaLabel:"Clear input"},Bg={ariaLabel:"Select tab"},kg={ariaLabel:"Tabs"},Ag={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Ng={ariaLabel:"User avatar"},Eg={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"}},Dg={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"},Sg={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"}},jg={steps:"Step {{current}} of {{total}}"},Tg={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"},Mg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},Lg={viewWords:"Words"},$g={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Rg={chooseDate:"Choose a date",selectYear:"Select year",selectMonth:"Select month"},Pg={previewRegion:"Report preview \u2014 scrollable sideways"},Ig={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Fg={place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Og={clearSelection:"Clear selection"},zg={showResult:"Show {{type}} result"},Wg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Hg={loading:"Loading"},Vg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},qg={ariaLabel:"Breadcrumb"},Ug={empty:"No items yet."},Gg={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"},Kg={common:Gb,calendar:Kb,passCard:Yb,rating:Zb,colorPicker:Xb,dropdown:Jb,accordion:Qb,header:eg,nav:tg,settings:ng,usage:ag,account:rg,training:og,customers:sg,payment:lg,coupons:ig,visits:ug,trainingType:cg,myWordTable:dg,keyWords:pg,wordTable:mg,wordSearch:hg,wordPrint:Cg,topic:fg,device:bg,manager:gg,wordPairs:yg,footer:vg,date:xg,wordData:_g,textField:wg,segmentedControl:Bg,tabs:kg,fileUpload:Ag,avatar:Ng,myHomework:Eg,trainingStatus:Dg,store:Sg,progress:jg,trainingMiss:Tg,table:Mg,wordScore:Lg,topBanner:$g,datePicker:Rg,report:Pg,tooltip:Ig,phonemeProfile:Fg,bulkBar:Og,debug:zg,badge:Wg,loader:Hg,soundCompass:Vg,breadcrumb:qg,board:Ug,promoBannerBg:Gg};const Yg="0.377.0",Zg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],po="ko",Xg="ihab_display_language";function Yl(){if(typeof window>"u")return po;try{const e=localStorage.getItem(Xg);if(e&&Zg.some(t=>t.code===e))return e}catch{}return po}function Zl(e){try{document.documentElement.lang=e}catch{}}qt.on("languageChanged",Zl),Zl(Yl()),qt.use(xe.initReactI18next).init({resources:{ko:{translation:Ub},en:{translation:Kg}},lng:Yl(),fallbackLng:po,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Jg=new Map;try{qt.store?.on?.("added",()=>Jg.clear())}catch{}let ir=null,Xl=null,Jl=null;function Qg(){const e=Il();if(e&&e.entries.length>0){const t=df();if(ir&&Xl===e&&Jl===t)return ir;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 ir=r,Xl=e,Jl=t,ir}return[]}new Proxy([],{get(e,t){const a=Qg(),r=a[t];return typeof r=="function"?r.bind(a):r}});function ey(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 ty(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&ey(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 ny(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 y=g.headers.get("content-type")||"";if(p)return;if(y.includes("svg")){i("mask");return}if(y.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 _=ty(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 st(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,y=q1(g),{iconToUse:C,mode:f,svgText:_,blobUrl:b}=ny(g),k=(w,E={})=>n.jsx("span",{className:d,style:u,...E,children:w}),x=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,N=(w,E={})=>n.jsx("img",{src:w,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(y)try{return k(o.createElement(y,{className:h,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(f==="mask"){const w={"--icon-url":b?`url(${b})`:`url(${C})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return k(n.jsx("span",{className:p,style:w}),{"aria-hidden":"true"})}return f==="img"?k(N(C,{onError:w=>{w.currentTarget.onerror=null,w.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:w=>{w.currentTarget.onerror=null,w.currentTarget.style.display="none"}});const v=typeof c=="number"?c:20,B=`<svg width="${v}" height="${v}" 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:B}}),{"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 ay({icon:e,title:t,message:a,action:r,className:s}){const{pending:l,press:i}=Ql(r?.onClick);return n.jsxs("div",{className:we("empty-state",s),children:[e&&n.jsx(st,{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(st,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function ry({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:we("empty-state","error-state",l),role:"alert",children:[n.jsx(st,{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(st,{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 oy({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:we("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(st,{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(st,{icon:"arrow-right",size:18})})]})]})})}function sy({as:e="div",className:t="",children:a,storage:r,...s}){r&&TC({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=we("ihabdevteam-core-scope",t);return n.jsx(e,{className:l,...s,children:a})}function ly(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 mo(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(ly);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"])',ho=new WeakMap;function Co(e,t){e&&ho.set(e,t)}function fo(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!ho.has(r);)r=r.parentElement;if(!r)return t;t=ho.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 ur(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 iy({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)&&ur(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 y=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:[y,g]})}const uy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function ca(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:uy,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"})]})]})}const da=[];let cr=!1;function ti(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=da[da.length-1];t&&(e.stopPropagation(),t())}function Gn(e){return da.push(e),!cr&&typeof document<"u"&&(document.addEventListener("keydown",ti),cr=!0),()=>{const t=da.lastIndexOf(e);t>=0&&da.splice(t,1),da.length===0&&cr&&typeof document<"u"&&(document.removeEventListener("keydown",ti),cr=!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 mn(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 mn(hy)}function gn(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:y,focusOnOpen:C}=e||{},f=o.useRef(null),[_,b]=o.useState({position:"fixed",left:0,top:-9999}),[k,x]=o.useState(!1),[N,v]=o.useState("bottom"),[B,w]=o.useState(!1),[E,D]=o.useState(!1),A=!t&&!a,R=o.useRef(null),$=o.useCallback((I=!1,q=!1)=>{if(E&&h)return;const J=a?a.getBoundingClientRect():t,V=q&&R.current?R.current:J;if(!V||!f.current)return;const T=f.current,{offsetWidth:j,offsetHeight:O}=T,H=window.innerWidth,oe=window.innerHeight,se=H-V.right,re=V.left,ee=V.top,z=oe-V.bottom;let te=0,W=0,G="top";if(ee>=O+r)G="top",W=V.top-r-O,te=V.left+V.width/2-j/2;else if(z>=O+r)G="bottom",W=V.bottom+r,te=V.left+V.width/2-j/2;else if(se>=j+r)G="right",te=V.right+r,W=V.top+V.height/2-O/2;else if(re>=j+r)G="left",te=V.left-r-j,W=V.top+V.height/2-O/2;else{const me=Math.max(ee,z,se,re);me===ee?(G="top",W=V.top-r-O,te=V.left+V.width/2-j/2):me===z?(G="bottom",W=V.bottom+r,te=V.left+V.width/2-j/2):me===se?(G="right",te=V.right+r,W=V.top+V.height/2-O/2):(G="left",te=V.left-r-j,W=V.top+V.height/2-O/2)}const de=Number.isFinite(Number(s))?Number(s):8;te=Math.min(Math.max(te,de),H-j-de),W=Math.min(Math.max(W,de),oe-O-de);const Ee=Math.round(te),ve=Math.round(W);I&&f.current?(f.current.style.left=`${Ee}px`,f.current.style.top=`${ve}px`,f.current.dataset.placement=G):(v(G||N),b({position:"fixed",left:Ee,top:ve}),w(!0))},[E,h,a,t,r,s,N]);o.useEffect(()=>()=>{R.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)"}),w(!0);return}R.current===null&&(R.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&&(R.current=a.getBoundingClientRect()),typeof requestAnimationFrame>"u"){$(!0);return}I===null&&(I=requestAnimationFrame(()=>{I=null,$(!0)}))},J=V=>{if(!a&&l){const T=V.target;if(T&&f.current&&f.current.contains(T))return;try{if(T&&T.closest&&T.closest("[data-tooltip-ignore]"))return}catch{}Z.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",J,{passive:!0,capture:!0}),()=>{I!==null&&cancelAnimationFrame(I),window.removeEventListener("resize",q),document.removeEventListener("scroll",J,{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),M=o.useRef(null),P=bo(),L=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),M.current=setTimeout(()=>{M.current=null;try{l&&l()}catch{K.current=!1,x(!1)}},P?0:200)}},[k,l,x,P]);o.useEffect(()=>()=>{M.current&&clearTimeout(M.current)},[]),o.useEffect(()=>{if(A)return;const I=V=>{const T=f.current;if(!T)return;const j=V.target;if(j&&!T.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}i&&L(!0)}},q=V=>{const T=f.current;if(!T)return;const j=V.target;if(j&&!T.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}i&&L(!0)}},J=V=>{if(V.key==="Tab"){const T=f.current;if(!T)return;const j=T.querySelectorAll(xn);if(!j||j.length===0)return;const O=j[0],H=j[j.length-1],oe=document.activeElement;V.shiftKey?oe===O&&(V.preventDefault(),H.focus()):oe===H&&(V.preventDefault(),O.focus())}};return document.addEventListener("pointerdown",I,!0),document.addEventListener("click",q,!0),document.addEventListener("keydown",J),()=>{document.removeEventListener("pointerdown",I,!0),document.removeEventListener("click",q,!0),document.removeEventListener("keydown",J)}},[l,i,L,A]);const Z=o.useRef(L);o.useEffect(()=>{Z.current=L});const U=!!l;o.useEffect(()=>{if(!(A||!U))return Gn(()=>Z.current())},[A,U]),o.useEffect(()=>{const I=()=>{L(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",I),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",I)}},[L]);const F=o.useRef(null);o.useEffect(()=>{if(A||C===!1||!B)return;const I=f.current;if(!I)return;const q=I.querySelector(xn);if(q)return F.current=document.activeElement,q.focus({preventScroll:!0}),()=>{const J=F.current;F.current=null,J&&document.contains(J)&&J.focus({preventScroll:!0})}},[A,C,B]),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:B?"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:[y!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:y}),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&&L(!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(gn,{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(gn,{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 Ra(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let go=0,ri=!1;function oi(){ri||typeof document>"u"||(ri=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(go=Date.now())},!0),document.addEventListener("touchstart",()=>{go=Date.now()},{capture:!0,passive:!0}))}oi();function pa(e){return!!e&&e.pointerType==="touch"}function ma(e=1e3){return oi(),Date.now()-go<e}function yo(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const l=Ra(e),i=Ra(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,y=a.current,C=!!(g&&y&&y.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,y)};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},y=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",y,{passive:!0}),p.addEventListener("touchend",C),()=>{p.removeEventListener("touchstart",y),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:y,variant:C="default",align:f="center",nowrap:_=!1,selected:b,toggleable:k=!1,ariaExpanded:x,ariaControls:N,disabled:v=!1,loading:B=!1,useLabel:w=!0,useBorder:E=!0,useBG:D=!0,useDisabledCovered:A=!1,useDisabledInvisible:R=!1,useDisabledFilled:$=!1,width:K,minWidth:M,onClick:P,onDisabledClick:L,showTooltipInfo:Z=!1,tooltipInfoText:U=null,tooltipDescription:F=null,tooltipOnly:Q=!1,iconSize:I="medium",iconColor:q,shape:J="rounded",color:V,className:T,...j}=e,O=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),H=O.match(/^\d+$/)?`button${O}`:`button-${O}`,oe=Number(a),se=!isNaN(oe)&&oe<40?"button-2":"button-1",re=m??g,ee=v||!!j.disabled,z=ee?A?"disabled-covered":R?"disabled-invisibled":$?"disabled-filled":"disabled":C,te=z?`button--variant-${z}`:"",W=f?`button--align-${f}`:"",G=_?"button--nowrap":"",de=J?`button--shape-${J}`:"",Ee=typeof q=="string"&&q.startsWith("--")?`var(${q})`:q,ve={...K?{width:typeof K=="number"?`${K}px`:K}:{},...M?{minWidth:typeof M=="number"?`${M}px`:M}:{},...E?{}:{"--button-border":ee?"0":"1px solid transparent"},...Ee?{"--button-icon-color":Ee}:{},...V?{"--color-main":V}:{}},me=w===!1?"":re,ce=Array.isArray(me)?me.length>0:!!me,ge=!!d,he=r??(ce||c||ge?"bar":"dot"),pe=`${H}--${he}`,Le=o.useRef(null);o.useEffect(()=>{!Pn||s!==void 0||Le.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 ze=o.useRef(t);ze.current=t;const Me=o.useCallback(De=>{Le.current=De;const nt=ze.current;typeof nt=="function"?nt(De):nt&&(nt.current=De)},[]),Ve=o.useRef(ee),[We,dt]=o.useState(!!b),[lt,tt]=o.useState(!1),[yt,_e]=o.useState(null),Ge=o.useCallback(()=>tt(!1),[]),[Be,qe]=o.useState(!1),Ke=o.useId();o.useEffect(()=>{typeof b=="boolean"&&dt(b)},[b]),o.useEffect(()=>{if(Ve.current&&!ee&&Le.current){const De=Le.current;let nt=!1;try{nt=De.matches(":focus:not(:focus-visible)")}catch{nt=!1}nt&&De.blur(),De.style.pointerEvents="none";const ae=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Le.current&&(Le.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(ae)}Ve.current=ee},[ee]);const pt=typeof b=="boolean"?!!b:We,xt=typeof x=="boolean"?void 0:k||typeof b=="boolean"?pt?"true":"false":j["aria-pressed"],Dt=we("button",H,pe,te,W,G,de,pt?"is-selected":null,D?null:"button--no-bg",Q?"button--tooltip-only":null,T),St=`button__icon button__icon--${I}`,it=Array.isArray(h)?h:h!==void 0?[h]:[],at=()=>{if(Array.isArray(me))return me.map((nt,ae)=>{const Ce=it[ae];return n.jsxs("span",{className:`button__label-text${Ce!==void 0?" button__label-text--has-sub":""}`,children:[nt,Ce!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:Ce})]},ae)});const De=h!==void 0;return n.jsxs("span",{className:`button__label-text${De?" button__label-text--has-sub":""}`,children:[me,p!=null&&n.jsx("span",{className:"button__count",children:p}),De&&n.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},At=De=>{typeof b!="boolean"&&!k&&dt(!1),De.currentTarget.blur()},_t=De=>{ee||(typeof j.onMouseLeave=="function"&&j.onMouseLeave(De),At(De))},Lt=De=>{if(Q&&Se&&He.touchPress(De.currentTarget),ee){Se&&He.touchPress(De.currentTarget),De.preventDefault(),L?.(De);return}typeof b!="boolean"&&k&&dt(nt=>!nt),P?.(De)},Ne=o.useCallback(()=>{(Z||F)&&(tt(!0),_e(Le.current?.getBoundingClientRect()??null))},[Z,F]),$e=o.useCallback(()=>{(Z||F)&&(tt(!1),_e(null))},[Z,F]),Se=!!(Z||F),He=yo(lt,De=>{De?Ne():$e()},Le,{enabled:Se&&(ee||Q),fallbackOnParent:Se&&ee}),rt={...j};delete rt.disabled,delete rt.className,delete rt.faded,delete rt.useFaded,delete rt.loading,delete rt.onMouseLeave,delete rt.onPointerEnter,delete rt.onPointerLeave,delete rt.onPointerUp,delete rt.onFocus,delete rt.onBlur,ee&&(Object.keys(rt).forEach(De=>{/^on[A-Z]/.test(De)&&typeof rt[De]=="function"&&delete rt[De]}),rt["aria-disabled"]="true"),B&&(rt["aria-busy"]="true");const vt=(typeof Z=="string"?Z:null)??(typeof U=="string"?U:null)??(typeof y=="string"?y:null)??(typeof re=="string"?re:null)??void 0,et=typeof y=="string"?y:typeof re=="string"?re:vt,Nt=F?[F.title,...F.items??[]].filter(Boolean).join(". "):Z&&vt&&vt!==et?vt:"",Ye=[typeof j["aria-describedby"]=="string"?j["aria-describedby"]:void 0,Nt?Ke:null].filter(Boolean).join(" ")||void 0,bt=()=>n.jsx("span",{className:`${St} button__spinner`,"aria-hidden":"true",children:n.jsx(ca,{variant:"spinner",size:"100%"})}),kt=(De,nt)=>n.jsx(st,{icon:De,label:nt??et,className:St,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),gt=De=>B?bt():kt(c,De),ft=()=>he==="dot"?n.jsxs(n.Fragment,{children:[gt(),ce&&n.jsx("span",{className:`button__label ${se}`,children:at()})]}):f==="center"&&(c||B)?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:gt()}),ce&&n.jsx("span",{className:`button__label ${se}`,children:at()})]}),ge&&n.jsx("span",{className:"button__right",children:kt(d)})]}):n.jsxs(n.Fragment,{children:[(c||B)&&n.jsx("span",{className:"button__left",children:gt(y??re)}),ce&&n.jsx("span",{className:`button__label ${se}`,children:at()}),ge&&n.jsx("span",{className:"button__right",children:kt(d)})]}),ut=!!l&&!ee;return n.jsxs(n.Fragment,{children:[n.jsxs(ut?"a":"button",{...rt,ref:Me,...ut?{href:l,target:i,rel:u??(i==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:ee&&!L&&!Be},className:Dt,"aria-pressed":xt,"aria-expanded":typeof x=="boolean"?x:j["aria-expanded"],"aria-controls":N??j["aria-controls"],"aria-label":et,"aria-disabled":ee&&(ut||L||Be)?!0:void 0,"aria-describedby":Ye,style:ve,onClick:Lt,onMouseLeave:_t,onPointerEnter:De=>{pa(De)||Ne(),!ee&&typeof j.onPointerEnter=="function"&&j.onPointerEnter(De)},onPointerLeave:De=>{pa(De)||$e(),!ee&&typeof j.onPointerLeave=="function"&&j.onPointerLeave(De)},onPointerUp:De=>{ee&&Se&&He.touchPress(De.currentTarget),!ee&&typeof j.onPointerUp=="function"&&j.onPointerUp(De)},onFocus:De=>{qe(!0),ma()||Ne(),!ee&&typeof j.onFocus=="function"&&j.onFocus(De)},onBlur:De=>{qe(!1),ee||At(De),$e(),!ee&&typeof j.onBlur=="function"&&j.onBlur(De)},children:[ft(),Nt?n.jsx("span",{id:Ke,hidden:!0,"aria-label":Nt}):null]}),lt&&F?n.jsx(Kn,{anchorRect:yt,title:F.title,items:F.items,onClose:Ge}):lt&&vt?n.jsx(En,{anchorRect:yt,text:vt,onClose:Ge}):null]})}const be=o.forwardRef(Cy);be.displayName="Button";function $t(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 Pa={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},vo=new WeakMap;function xo(e){if(e)return vo.get(e)}function Qt(e,t){e&&(e.style.setProperty(Pa.title,t.title),e.style.setProperty(Pa.description,t.description),vo.set(e,t))}function en(e){e&&(e.style.removeProperty(Pa.title),e.style.removeProperty(Pa.description),vo.delete(e))}const si={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function li(){const e=$t(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=$t(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=$t(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=$t(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=$t(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 bi(){const e=$t(fi,Qt,en);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=$t(gi,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=$t(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=$t(_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=$t(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=$t(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=$t(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=$t(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=$t(Ti,Qt,en);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 qt.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)),y=()=>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:y,canIncrease:C,canDecrease:f,fontSize:_,lineHeight:b}}function Ri(e,t){const a=Ra(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const _o=" \xB7 ",Pi=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(_o)?e.split(_o).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}${_o}${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 wo=[{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 dr=new Map;function vy(e){const t=dr.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)),dr.size>5e3&&dr.clear(),dr.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 pr(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 y=a?.initialPageSize;return y&&wo.some(C=>C.value===y)?y:"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(()=>wo.map(y=>({...y,label:r("visits.showN",{n:y.value})})),[r]),p=o.useCallback(y=>{wo.some(C=>C.value===y)&&(l(y),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)=>pr(d(h,m),d(g,m),p))},[t]);return{sort:t,field:i,sortRows:u}}const yn="\uC804\uCCB4";Object.fromEntries(Object.entries(tf).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})),Ut=(e,t,a)=>Oi([...e],a?{vowel:t,glide:a}:{vowel:t}),Bo={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:[[Ut("\u3163","frontHigh"),Ut("\u315F","frontHigh","w"),Ut("\u3162","frontHigh","velar")],[Ut("\u3161","backHighUnrounded")],[Ut("\u315C","backHighRounded"),Ut("\u3160","backHighRounded","j")],[Ut("\u3154\u3150","frontMid"),Ut("\u3156\u3152","frontMid","j"),Ut("\u3159\u315A\u315E","frontMid","w")],[Ut("\u3153","backMidUnrounded"),Ut("\u3155","backMidUnrounded","j"),Ut("\u315D","backMidUnrounded","w")],[Ut("\u3157","backMidRounded"),Ut("\u315B","backMidRounded","j")],[Ut("\u314F","low"),Ut("\u3151","low","j"),Ut("\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__",ko=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),zi={cho:ko(Bo.cho),jung:ko(Bo.jung),jong:ko(Bo.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=Ra(e);o.useEffect(()=>{if(t)return Gn(()=>{a.current?.()})},[t,a])}function Ia(){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 Fa(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 Oa({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 y=0,C=null;typeof ResizeObserver<"u"&&d.current&&(C=new ResizeObserver(()=>{const B=d.current?.offsetHeight??0;if(B!==g){if(g=B,++y>4){C?.disconnect(),C=null;return}m()}}),C.observe(d.current));const f=B=>{const w=B.target;r&&w.closest?.(r)||c.current?.contains(w)||d.current?.contains(w)||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=B=>{d.current?.contains(B.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 v=()=>{x(),N&&clearTimeout(N),N=setTimeout(()=>{N=null,a==="reposition"&&m()},250)};return a!=="ignore"&&(window.addEventListener("resize",x),window.addEventListener("orientationchange",v)),()=>{_!==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",v)),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,y]=o.useState(null),[C,f]=o.useState([]),[_,b]=o.useState(null),[k,x]=o.useState(0),N=o.useRef(0),v=o.useCallback(I=>{N.current=typeof I=="function"?I(N.current):I,x(N.current)},[]),B=o.useRef(r),w=o.useRef(s);o.useEffect(()=>{B.current=r,w.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 R=u[d]?.id??null,$=o.useRef(null),K=o.useCallback(()=>{D(),h("playing"),f([]),b(null),v(0);let I=0;e.forEach((q,J)=>{A(I,()=>{m(J),y(q.id),B.current?.(q)}),A(I+1e3,()=>{y(null),f(V=>[...V,q.id])}),I+=1300}),A(I,()=>{h("done"),w.current?.({score:0,total:e.length})})},[e,v]),M=o.useCallback((I,q)=>{if(q>=I.length){h("done"),w.current?.({score:N.current,total:I.length});return}$.current=null,m(q),b(null),h("playing"),y(I[q].id),B.current?.(I[q]),A(l,()=>{y(null),h("waiting")})},[l]),P=o.useCallback(()=>{D();const I=Ma(e);c(I),v(0),f([]),M(I,0)},[e,M,v]),L=o.useCallback(()=>{t==="playback"?(c(e),K()):P()},[t,e,K,P]),Z=o.useCallback(()=>{D(),h("idle"),y(null),f([]),b(null),m(0),v(0),c([])},[v]),U=JSON.stringify(e.map(I=>[I.id,I.label,I.angleDeg,I.deg,I.row,I.shortcut]));o.useEffect(()=>(a?L():Z(),()=>D()),[t,U,a]);const F=o.useCallback(I=>{p!=="waiting"||t==="playback"||$.current===d||($.current=d,b(I),I===u[d]?.id&&v(q=>q+1),t==="exam"?(h("playing"),A(400,()=>M(u,d+1))):(h("feedback"),A(i,()=>M(u,d+1))))},[p,t,u,d,M,i,v]),Q=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:g,playedIds:C,selectedId:_,answerId:R,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:F},index:d,total:Q,score:k,phase:p,done:p==="done",start:L,reset:Z}}const Ao=new Map,No=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=No.get(e);if(t)return t;const a=fetch(e).then(r=>r.ok?r.text():null).then(r=>(r!=null&&Ao.set(e,r),r)).catch(()=>null).finally(()=>{No.delete(e)});return No.set(e,a),a}function zy(e,t=!0){const a=o.useSyncExternalStore($y,Ry,Py)&&t&&e?Hi(e)??Ao.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)??Ao.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,y]=o.useState("main"),C=mn("(max-width: 767px)"),f=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const k=h.current;if(!k)return;const x=xo(k),N=(v,B,w)=>{if(w!==void 0)k.style.setProperty(B,w),f.current[v]=!0;else if(f.current[v]){const E=x?.[v];E?k.style.setProperty(B,E):k.style.removeProperty(B),f.current[v]=!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=xo(k);y(x?.actionVariant??"main")},[p]);const _=we("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,y]=o.useState(!1),[C,f]=o.useState(!1),_=o.useRef(null),b=o.useRef(null),k=o.useRef(null),x=bo(),N=p||g||C,v=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||N||x)return;const w=window.setInterval(()=>m(E=>(Math.min(E,c-1)+1)%c),t);return()=>window.clearInterval(w)},[c,t,N,x]);const B=w=>{b.current!=null&&window.clearTimeout(b.current),b.current=window.setTimeout(()=>{b.current=null,f(!1)},w)};return o.useEffect(()=>()=>{b.current!=null&&window.clearTimeout(b.current)},[]),o.useEffect(()=>{if(!C)return;const w=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",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[C]),c===0?null:n.jsxs("section",{ref:k,className:we("top-banner",r),"aria-label":i,"aria-roledescription":"carousel",onPointerEnter:w=>{_.current=w.pointerType},onPointerDown:w=>{_.current=w.pointerType,w.pointerType==="touch"&&(b.current!=null&&(window.clearTimeout(b.current),b.current=null),f(!0))},onPointerUp:w=>{w.pointerType==="touch"&&B(5e3)},onPointerCancel:w=>{w.pointerType==="touch"&&B(5e3)},onMouseEnter:()=>{_.current!=="touch"&&h(!0)},onMouseLeave:()=>h(!1),onFocus:w=>{let E=!0;try{E=w.target.matches(":focus-visible")}catch{E=!0}y(E)},onBlur:w=>{w.currentTarget.contains(w.relatedTarget)||y(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${v*100}%)`},children:u.map((w,E)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":E!==v,...E!==v?{inert:!0}:{},children:w},E))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[v]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((w,E)=>n.jsx("button",{type:"button",className:`top-banner__dot${E===v?" 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===v,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(st,{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 Mt(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:v,position:B="top-right",onClick:w,animate:E=!1}=e,D=N??"check",A=v!==void 0?"number":D,R=typeof r=="number"?r:32,$=we("circle-badge",`circle-badge--${A}`,`circle-badge--${B}`,`circle-badge--${R}`,E?"circle-badge--animate":"",w?"circle-badge--clickable":"",s),K=v!==void 0?t("badge.nthSelected",{n:v,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:w,onKeyDown:w?M=>{M.key!=="Enter"&&M.key!==" "||(M.preventDefault(),M.currentTarget.click())}:void 0,"aria-label":i?void 0:l??K,"aria-hidden":i||void 0,role:w?"button":i?void 0:"img",tabIndex:w?0:void 0,children:[v!==void 0&&v,v===void 0&&D==="check"&&n.jsx(Uy,{}),v===void 0&&D==="remove"&&n.jsx(Gy,{}),v===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:y}=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=we("badge",`badge--${d}`,`badge--${C}`,m!=="filled"?`badge--${m}`:"",f,s),k=y?.startsWith("--")?`var(${y})`:y,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(st,{icon:h,size:_,className:"badge__icon"}),u??c,g&&n.jsx(st,{icon:g,size:_,className:"badge__icon"})]})}function za({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),y=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)},[y]),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(Mt,{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 Eo(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 Do=52,mr=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),y=e.length;o.useEffect(()=>{const I=p.current;if(!I)return;const q=()=>{const T=typeof getComputedStyle=="function"?getComputedStyle(I):null,j=I.clientWidth-(parseFloat(T?.paddingLeft??"")||0)-(parseFloat(T?.paddingRight??"")||0),O=I.querySelector(".bottom-nav__left"),H=O?.nextElementSibling,oe=(O?.offsetWidth??0)+(O&&H?.classList.contains("bottom-nav__divider")?H.offsetWidth:0);g(Math.max(0,j-oe))};if(q(),typeof ResizeObserver>"u")return;const J=new ResizeObserver(q);J.observe(I);const V=I.querySelector(".bottom-nav__left");return V&&J.observe(V),()=>J.disconnect()},[s]);const C=Do+1,f=I=>Math.max(0,Math.floor((I+mr)/(Do+mr))),_=y*(Do+mr)-mr<=h,b=h<=0||l.length===0&&_?y:Math.min(y,f(h-C)),k=h>0&&b<y,x=k?b:y,N=e.slice(0,x),v=e.slice(x),B=k||l.length>0,w=o.useCallback((I,q)=>({position:"fixed",bottom:window.innerHeight-I.top+8,right:window.innerWidth-I.right,zIndex:Fa(q)}),[]),E=o.useId(),{open:D,toggle:A,close:R,style:$,triggerRef:K,menuRef:M}=Oa({computeStyle:w,onScroll:"ignore",onResize:"reposition"}),P=o.useCallback((I,q)=>q>0?u("nav.badgeLabel",{label:I,count:q,defaultValue:"{{label}}, {{count}}\uAC1C"}):I,[u]),L=o.useCallback((I,q)=>q>0?u("nav.badgeInsideLabel",{label:I,count:q,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):I,[u]),Z=o.useCallback(()=>s?.(c),[s,c]),U=o.useMemo(()=>v.find(I=>!!I.key&&I.key===t)??l.find(I=>I.selected||I.key&&I.key===t),[v,t,l]),F=o.useMemo(()=>[{items:[...v.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),Eo(i,"BottomNav")),R())}})),...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?.(),R()}}))]}],[v,l,t,a,R]),Q=[...v,...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:Z})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:N.map((I,q)=>{const J=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,J),selected:!!I.key&&I.key===t,disabled:I.state==="disabled",className:"bottom-nav-item",onClick:()=>{I.key&&(a?.(I.key),Eo(i,"BottomNav"))}}),J>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(Mt,{type:"dot",position:"top-right",number:Math.min(J,99),size:24})})]},I.key??`__slot-${q}`)})}),B&&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:U?.icon??"ellipsis",ariaLabel:L(U?.label??u("nav.more","\uB354\uBCF4\uAE30"),Q),selected:!!U,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(Mt,{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:M,children:n.jsx(za,{columns:F,onClose:R})}),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(Mt,{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??"",y=a?.badge??0,C=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(st,{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,y):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}),y>0&&n.jsx(Mt,{type:"dot",position:"inline",number:Math.min(y,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:y}=e||{},C=h==="manager",f=o.useCallback(()=>g?.(C?"malgwi":"manager"),[g,C]),_=o.useRef(null),[b,k]=o.useState(null);o.useEffect(()=>{const w=_.current;if(!w)return;let E=null;const D=()=>{const{scrollHeight:$,clientHeight:K,scrollTop:M}=w;if($<=K+1){k(F=>F===null?F:null);return}const P=Math.max(24,K/$*K),L=K-P,Z=$-K,U={top:Math.round(M/Z*L),height:Math.round(P)};k(F=>F&&F.top===U.top&&F.height===U.height?F:U)},A=()=>{if(typeof requestAnimationFrame>"u"){D();return}E===null&&(E=requestAnimationFrame(()=>{E=null,D()}))};D(),w.addEventListener("scroll",A,{passive:!0});const R=typeof ResizeObserver<"u"?new ResizeObserver(A):null;R?.observe(w);for(const $ of Array.from(w.children))R?.observe($);return()=>{E!==null&&cancelAnimationFrame(E),w.removeEventListener("scroll",A),R?.disconnect()}},[a]);const x=o.useRef(null),N=o.useCallback(w=>{const E=_.current;E&&(w.preventDefault(),x.current={y:w.clientY,top:E.scrollTop},w.currentTarget.setPointerCapture(w.pointerId))},[]),v=o.useCallback(w=>{const E=_.current,D=x.current;!E||!D||(E.scrollTop=D.top+(w.clientY-D.y)*(E.scrollHeight/E.clientHeight))},[]),B=o.useCallback(w=>{x.current=null,w.currentTarget.hasPointerCapture(w.pointerId)&&w.currentTarget.releasePointerCapture(w.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:v,onPointerUp:B,onPointerCancel:B})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(w=>!w.section&&(w.key||w.label)).map((w,E)=>n.jsxs(o.Fragment,{children:[w.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(Yi,{item:w,active:!!w.key&&w.key===r,state:w.disabled?"disabled":void 0,onClick:(D,A,R)=>{if(w.disabled)return;if(w.href){if(Gi(w.href)&&window.open(w.href,"_blank","noopener,noreferrer"),R)try{A?.blur()}catch{}return}if(s?.(w.key),Eo(y,"SideNav"),!R)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 M=()=>{$.classList.remove("header--force-collapsed"),$.removeEventListener("mouseenter",M)};$.addEventListener("mouseenter",M)}}}})]},w.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 hr='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>',So='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?So:hr,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:y}){const{t:C}=xe.useTranslation(),f=mn("(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(M=>M.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:Fa(K)}),[]),N=o.useId(),{open:v,toggle:B,close:w,style:E,triggerRef:D,menuRef:A}=Oa({computeStyle:x,onScroll:"ignore",onResize:"reposition"}),R=o.useMemo(()=>[{items:k.map($=>({label:$.label,icon:$.icon,badgeCount:$.badgeCount,selected:$.selected??(!!$.key&&$.key===e),closeOnSelect:!0,onClick:()=>{$.onClick?.(),w()}}))}],[k,e,w]);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:B,"aria-expanded":v,"aria-controls":v?N:void 0}),!!u&&!!l&&l>0&&n.jsx(Mt,{type:"dot",number:Math.min(l,99),size:24,"aria-hidden":!0}),v&&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(za,{columns:R,onClose:w})}),document.body)]})]}),n.jsx(Zi,{scrollContainer:y,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:y,appMode:h,onAppModeChange:g})]})}const Xy=Ji,Jy=()=>qt.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"},jo=new WeakMap;function r2(e){if(e)return jo.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),jo.set(e,t))}function jn(e){e&&(e.style.removeProperty(Zn.text),e.style.removeProperty(Zn.sub),e.style.removeProperty(Zn.copyright),jo.delete(e))}const nu={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#1a1a1a"};function au(e={}){const t=$t(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",ha=240;var Wa='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=$t(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/ha}) translate(${-ha/2} ${-ha/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("${Wa}")`}})]})}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=$t(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/ha}) translate(${-ha/2} ${-ha/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=$t(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("${Wa}")`}})]})}const h2={Logo_SpeechEar_ko:{"":hr,_mono:n2},Logo_SpeechEarManager_ko:{"":So,_mono:a2}};function C2(e,t){if(e)return h2[e]?.[t??""]??void 0}const f2={speechear:hr,manager:So},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===qt.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:y,label:C,price:f,originalPrice:_,discountLabel:b,onUse:k,onRefund:x,onDelete:N}){const{t:v}=xe.useTranslation(),B=t?eu(t):void 0,w=s??B?.type??"speechear",E=r??B?.plan??v("passCard.planSuffix","\uC774\uC6A9\uAD8C"),D=C??B?.label,A=f??(a?B?.price:void 0),R=_??(a?B?.originalPrice:void 0),$=b??B?.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,v)}:null;const G=W*86400;let de;if(i!=null)de=i;else if((c==="active"||c==="expired")&&l){const me=new Date(l).getTime();if(Number.isNaN(me))return null;const ce=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(l)),ge=/^(\d{4})-(\d{2})-(\d{2})/.exec($a()),he=Math.round(ce&&ge?(Date.UTC(+ce[1],+ce[2]-1,+ce[3])-Date.UTC(+ge[1],+ge[2]-1,+ge[3]))/864e5:(me-Date.now())/864e5);de=Math.max(0,u?he+1:he)*86400}else c==="expired"?de=0:de=G;const Ee=g2(de),ve=Math.max(0,Math.min(100,Math.floor(Math.min(Ee,G)/G*100)));return c==="pending"&&ve>=100?null:{percent:ve,remainingLabel:c==="expired"?v("passCard.expired","\uB9CC\uB8CC\uB428"):lu(de,v)}},[A,c,l,i,u,t?.durationDays,t?.code,v]),M=o.useRef(null),[P,L]=o.useState({}),[Z,U]=o.useState(null),F=!!(k||x||N),Q=o.useRef(!1),I=o.useRef(void 0),[q,J]=o.useState(y);o.useLayoutEffect(()=>{J(y)},[y]),o.useLayoutEffect(()=>{const W=M.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=M.current;if(!W)return;const G=r2(W);if(!y){const de=b2[w],Ee=c==="expired"?"_mono":G?.logoColor??"",ve=C2(de,Ee);J(ve)}},[d,y,w,c]);const V=W=>{const G=M.current;if(!G)return null;const{left:de,top:Ee,width:ve,height:me}=G.getBoundingClientRect(),ce=(W.clientX-de)/ve-.5;return{rotateX:-((W.clientY-Ee)/me-.5)*su,rotateY:ce*su}},T=(W,G)=>{const de=G*-.7,Ee=W*.7+10,ve=20+(Math.abs(W)+Math.abs(G))*.4;return`${de}px ${Ee}px ${ve}px rgba(0, 0, 0, 0.18)`},j=o.useCallback(W=>{if(ma())return;Q.current=!0,clearTimeout(I.current),I.current=setTimeout(()=>{Q.current=!1},200);const G=V(W);G&&L({transform:`perspective(800px) rotateX(${G.rotateX}deg) rotateY(${G.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:T(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)"})},[]),O=o.useCallback(W=>{if(ma())return;const G=V(W);if(!G)return;const de=Q.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";L({transform:`perspective(800px) rotateX(${G.rotateX}deg) rotateY(${G.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:T(G.rotateX,G.rotateY),transition:de})},[]),H=o.useCallback(()=>{clearTimeout(I.current),Q.current=!1,L({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)"})},[]),oe=o.useCallback(()=>U(null),[]),se=o.useMemo(()=>{const W=v("passCard.planSuffix","\uC774\uC6A9\uAD8C"),G=E.replace("\uC774\uC6A9\uAD8C","").replace(W==="\uC774\uC6A9\uAD8C"?"":W,"").trim(),de=G.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"?v("passCard.unitYear","\uB144"):v("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:G})},[E,v]),re=o.useMemo(()=>{const W=ua(A);if(!W)return null;const G=W.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!G)return n.jsx("span",{className:"h1",children:W});const[,de,Ee,ve]=G;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:Ee}),ve.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:ve.trim()})]})},[A]),ee=o.useCallback(()=>{F&&U(W=>{if(W)return null;const G=M.current?.getBoundingClientRect();if(!G)return null;const de=50;return{left:G.left,right:G.right,width:G.width,height:G.height,x:G.x,y:G.y+de,top:G.top+de,bottom:G.bottom+de}})},[F]),z=o.useCallback(W=>{F&&(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),ee())},[F,ee]),te=[{items:[...k?[{label:v("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{k(),U(null)},closeOnSelect:!0}]:[],...x?[{label:v("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),U(null)},closeOnSelect:!0}]:[],...N?[{label:v("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{N(),U(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}${F?" pass-card--clickable":""}`,style:P,onMouseEnter:j,onMouseMove:O,onMouseLeave:H,onPointerUp:W=>{W.pointerType==="touch"&&H()},onPointerCancel:W=>{W.pointerType==="touch"&&H()},onClick:ee,onKeyDown:F?z:void 0,role:F?"button":void 0,tabIndex:F?0:void 0,"aria-label":e,"aria-haspopup":F?"menu":void 0,"aria-expanded":F?!!Z:void 0,children:[d??y2(w,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[w],className:"pass-card__logo",alt:w==="manager"?v("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):v("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:se}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:D?v("passCard.labeledPlan",{label:D}):v("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:[R&&n.jsx("span",{className:"pass-card__price-original body-3",children:ua(R)}),re]})]}):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."})]})]})}),Z&&n.jsx(gn,{anchorRect:Z,onClose:oe,ariaLabel:v("tooltip.menu","\uBA54\uB274"),children:n.jsx(za,{columns:te,onClose:oe,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=$t(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("${Wa}")`}})]})}const _2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function w2(e={}){const t=$t(_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("${Wa}")`}})]})}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(v=>!!v.badge&&v.originals?.[i]===N):!1},h=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",g=t("payment.plan.freePrice","\uBB34\uB8CC"),y=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===y}),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(Mt,{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(st,{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(st,{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,v=d(x),B=v||x.openPromo===!0,w=N.replace(/^오픈\s*특가\s*/,"")||a,E=x.prices?x.prices[i]:x.price,D=x.badge?B?`${r}
|
|
823
|
+
${x.badge}`:x.badge:void 0;if(v&&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),R=n.jsx(iu,{showPrice:!0,product:{type:k,code:x.code,name:w,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:R});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:R},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 To='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=$t(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("${To}")`}})})}const cu={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEarManager_ko",logoColor:"_mono",copyrightColor:"#ffffff"};function D2(e={}){const t=$t(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("${Wa}")`}})]})}function du({keys:e,anchor:t="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return n.jsx("span",{className:we("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 Ha=(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:y=!0,onCenterClick:C,centerLabel:f,centerDisabled:_=!1,centerAttention:b=!1,shortcutAnchor:k="top-right",shortcutScale:x,scaleShortcut:N=!1}){const{t:v}=xe.useTranslation(),B=Math.max(0,Math.min(1,a)),w=t/2,E=110/300,D=.18,A=W=>t*(E+(W-1)*D),R=W=>{const G=A(W.row??1),de=W.angleDeg*Math.PI/180;return{x:w+G*Math.cos(de),y:w+G*Math.sin(de)}},$=Math.max(...e.map(W=>W.row??1),1),K=t*.08,M=t*.1,P=t*.24,L=t-2*K,Z=t-M-P,U=t-P/2,F=o.useMemo(()=>[...new Set(e.map(W=>W.deg))].sort((W,G)=>W-G),[e]),Q=F.length,I=Math.max(68,Q>1?L/(Q-1):0),q=o.useMemo(()=>new Map(F.map((W,G)=>[W,G])),[F]),J=W=>{const G=q.get(W.deg)??0,de=w+(G-(Q-1)/2)*I,Ee=$>1?Math.min(68,Z/($-1)):0,ve=Ee*($-1),me=M+(Z-ve)/2,ce=$===1?M+Z*.4:me+($-(W.row??1))*Ee;return{x:de,y:ce}},V=W=>{const G=R(W),de=J(W);return{x:Ha(G.x,de.x,B),y:Ha(G.y,de.y,B)}},T={x:w,y:Ha(w,U,B)},j=Math.round(g*1.2),O=Math.round(Math.max(16,Math.min(80,g*.7))),H=[],oe=new Map;for(const W of e){const G=W.row??1;oe.has(G)||oe.set(G,[]),oe.get(G).push(W)}for(const[W,G]of oe.entries()){if(G.length<2)continue;const de=[...G].sort((We,dt)=>We.deg-dt.deg),Ee=de.map(We=>V(We)),ve=de.map(We=>We.deg),me=ve[ve.length-1]-ve[0],ce=me/(ve.length-1),ge=360-me,he=de.length>=3&&ce>0&&ge<=ce*1.5,pe=Math.round(A(W)*1e3)/1e3,Le=(We,dt,lt,tt)=>{const yt=(dt.angleDeg-We.angleDeg+540)%360-180;if(yt===0)return`L ${tt.x} ${tt.y}`;if(B===0)return`A ${pe} ${pe} 0 0 ${yt>0?1:0} ${tt.x} ${tt.y}`;const _e=(We.angleDeg+yt/2)*Math.PI/180,Ge={x:w+pe*Math.cos(_e),y:w+pe*Math.sin(_e)},Be={x:(lt.x+tt.x)/2,y:(lt.y+tt.y)/2},qe={x:Ha(Ge.x,Be.x,B),y:Ha(Ge.y,Be.y,B)},Ke={x:2*qe.x-Be.x,y:2*qe.y-Be.y};return`Q ${Ke.x} ${Ke.y} ${tt.x} ${tt.y}`},ze=he?[...de,de[0]]:de,Me=he?[...Ee,Ee[0]]:Ee;let Ve=`M ${Me[0].x} ${Me[0].y}`;for(let We=1;We<Me.length;We++)Ve+=" "+Le(ze[We-1],ze[We],Me[We-1],Me[We]);H.push({key:`arc-${W}`,d:Ve})}const se=o.useMemo(()=>new Set(s??[]),[s]),re=W=>({idle:"",active:v("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:v("soundCompass.state.played","\uB4E4\uC74C"),correct:v("soundCompass.state.correct","\uC815\uB2F5"),wrong:v("soundCompass.state.wrong","\uC624\uB2F5")})[W],ee=W=>{if(r===W.id)return"active";if(u){if(W.id===i)return"correct";if(W.id===l&&l!==i)return"wrong"}return se.has(W.id)?"played":"idle"},z=W=>r===W.id?"loop":u?W.id===i?"loop":null:c&&W.id===l?"once":null,te=(W,G)=>{switch(W){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:[B===0&&e.map(W=>{const{x:G,y:de}=V(W);return n.jsx("line",{x1:T.x,y1:T.y,x2:G,y2:de,stroke:"#dde3ec",strokeWidth:"1"},W.id)}),H.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:j,height:j,left:T.x-j/2,top:T.y-j/2}}),C?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${_?" sound-compass__center--disabled":""}`,style:{width:j,height:j,left:T.x,top:T.y},"aria-label":f,"aria-disabled":_||void 0,tabIndex:_?-1:0,onClick:_?void 0:C,children:n.jsx(Ir,{size:O,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:j,height:j,left:T.x,top:T.y},children:n.jsx(Ir,{size:O,color:"currentColor",strokeWidth:1.5})}),e.map((W,G)=>{const{x:de,y:Ee}=V(W),ve=ee(W),me=z(W),ce={...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:ve!=="idle"?10:1},ge=g,he=Math.round(Math.max(10,Math.min(56,ge*.38))),pe=Math.round(Math.max(7,Math.min(18,ge*.2))),Le=Math.round(Math.max(10,Math.min(56,ge*.4))),ze=y==="answered"&&(ve==="played"||ve==="correct"||ve==="wrong"),Me=y===!0||ze,Ve=!ze;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...ce,left:de-ge/2,top:Ee-ge/2},children:[me&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ve}`+(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?.(W.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ve}`,style:{width:ge,height:ge},"aria-label":re(ve)?`${W.label}, ${re(ve)}`:W.label,"aria-pressed":l!=null?W.id===l:void 0,children:[Me&&te(ve,he),Ve&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?pe:Le},children:G+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:we("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=we("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)&&ur(b),m(!0),l?.()},[l]);if(d)return null;const g=we("alert",`alert--${e}`,u),y=i??(e==="danger"||e==="warning"?"assertive":"polite"),C=y==="assertive"?"alert":y==="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(st,{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=we("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(st,{icon:i,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function Va({title:e,items:t}){const{t:a}=xe.useTranslation(),{anchorRect:r,openAt:s,close:l}=Ia(),i=o.useRef(null),u=yo(!!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=>{pa(c)||s(c.currentTarget)},onPointerLeave:c=>{pa(c)||l()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{ma()||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)},y=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))}),y&&n.jsx("div",{id:`tabs__panel-${l}-${y.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${l}-${y.key}`,tabIndex:0,className:"tabs__panel",children:y.panel},y.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(st,{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([]),y=l??h,C=v=>{if(!v||v.length===0)return;const B=Array.from(v).filter(E=>H2(E,t));if(B.length===0)return;const w=a?B:B.slice(0,1);if(l===void 0){const E=a?[...y,...w]:w;g(E),e?.(E)}else e?.(w)},f=v=>{v.preventDefault(),!r&&p(!0)},_=v=>{v.preventDefault(),p(!1)},b=v=>{v.preventDefault(),p(!1),!r&&C(v.dataTransfer.files)},k=v=>{const B=v.target;try{C(B.files)}finally{B.value=""}},x=()=>{r||d.current?.click()},N=v=>{if(!r&&(i?.(v),l===void 0)){const B=y.filter((w,E)=>E!==v);g(B),i||e?.(B)}};return n.jsxs("div",{className:`file-upload ${u}`.trim(),children:[n.jsxs("div",{className:we("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:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),x())},onDragOver:f,onDragLeave:_,onDrop:b,children:[n.jsx(st,{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:v=>{v.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&&y.length>0&&n.jsx("ul",{className:"file-upload__list",children:y.map((v,B)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:v.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:v.name}),disabled:r,onClick:()=>N(B),children:n.jsx(st,{icon:"x",size:14})})]},`${v.name}-${B}`))})]})}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(st,{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],y=v=>{v!==e&&t?.(v)},C=v=>{c||y(v)},f=v=>{c||ma()||m(v)},_=o.useRef(null),b=v=>{const B=Math.min(a,Math.max(1,v));y(B),Array.from(_.current?.querySelectorAll("[data-star]")??[]).find(w=>w.dataset.star===String(B))?.focus()},k=v=>{if(!c){switch(v.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}v.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:v=>{v.pointerType==="touch"&&N()},onPointerCancel:v=>{v.pointerType==="touch"&&N()},children:Array.from({length:a},(v,B)=>{const w=B+1,E=Math.max(0,Math.min(1,h-B)),D=E>0&&E<1,A=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(st,{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(st,{icon:"star",size:g,className:"rating__star rating__star--filled"})})]});return c?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:A},w):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":p===w,"aria-label":u("rating.starLabel",{n:w}),"data-star":w,tabIndex:w===x?0:-1,onClick:()=>C(w),onMouseEnter:()=>f(w),children:A},w)})})}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(st,{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=we("category-icon",d?"category-icon--small":""),p=d?16:20,h=o.useRef(null),[g,y]=o.useState(!1),C=o.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!s&&!l?w:{...w,...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{y(!1)}catch{}},[i,g]),o.useEffect(()=>{if(!g)return;const w=E=>{const D=h.current;if(!D)return;const A=E.target;A&&!D.contains(A)&&y(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[g]);const x=o.useCallback(()=>{i&&y(!0)},[i]),N=o.useCallback(()=>{i&&y(!1)},[i]),v=o.useCallback(()=>y(!1),[]),B=o.useCallback(w=>{if(w.key==="Escape"){y(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),y(E=>!E))},[]);return n.jsxs("span",{ref:h,className:we("category-icon__wrap",_&&"category-icon__wrap--interactive"),onPointerEnter:x,onPointerLeave:N,onFocus:x,onBlur:N,onKeyDown:B,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(st,{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:v,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}let zn=null;function qa(e){if(zn&&zn!==e)try{zn()}catch{}return zn=e,()=>{zn===e&&(zn=null)}}function Cr(e){if(zn===e){zn=null;try{e()}catch{}}}function Ua(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),y=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=[],v=[];for(const B of C)try{const w=xl(B,f);if(!w){N.push("");continue}let E=null;try{E=await _l(w)}catch{}if(!E)try{const D=await wl(w);D&&(E=URL.createObjectURL(D),v.push(E))}catch{}N.push(E??"")}catch{N.push("")}x?v.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}):(y.current.forEach(B=>{try{URL.revokeObjectURL(B)}catch{}}),y.current=v,u({key:_,urls:N}))})(),()=>{x=!0}},[C.join(","),f]),o.useEffect(()=>()=>{y.current.forEach(x=>{try{URL.revokeObjectURL(x)}catch{}}),y.current=[]},[]);const k=o.useCallback(async x=>{if(x.stopPropagation(),x.preventDefault(),d.current){m.current&&Cr(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 v=()=>{d.current=!1,N?.stop()};m.current=v;const B=qa(v);d.current=!0,r(!0);for(let w=0;w<b.length&&d.current;w++){const E=b[w];if(E&&(l(w),N=Ua(E),c.current=N.el,!await N.done))break}B(),m.current===v&&(m.current=null,d.current=!1,r(!1),l(-1))},[b]);return o.useEffect(()=>()=>{m.current&&Cr(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 Mo(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:y=!1,onComplete:C,onSelect:f,onMore:_,countLabelOverride:b,size:k="square"}=e||{},{t:x}=xe.useTranslation(),[N,v]=o.useState(!1),B=o.useRef(null),[w,E]=o.useState(!1);o.useEffect(()=>{B.current?.matches(":hover")&&E(!0)},[]);const{playing:D,playingIndex:A,previewUrls:R,previewHover:$,setPreviewHover:K,previewBtnRef:M,handlePreview:P}=J2(r,a?.key),L=o.useCallback(()=>{f?f():v(!0)},[f]),Z=o.useCallback(()=>v(!1),[]),U=o.useCallback(()=>E(!0),[]),F=o.useCallback(()=>E(!1),[]),Q=o.useCallback(()=>K(!0),[K]),I=o.useCallback(()=>K(!1),[K]),[q,J]=o.useState(null);o.useLayoutEffect(()=>{$&&J(M.current?.getBoundingClientRect()??null)},[$,M]);const[V,T]=o.useState(null);o.useLayoutEffect(()=>{w&&!N&&p&&T(B.current?.getBoundingClientRect()??null)},[w,N,p]);const j=o.useCallback(Be=>{Be.target===Be.currentTarget&&(Be.key==="Enter"||Be.key===" ")&&(Be.preventDefault(),L())},[L]),O=r||null,H=o.useMemo(()=>{if(!p)return null;const Be=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,qe=Be&&Be.length>0?Be:Q2(O);return qe&&qe.length>0?qe:null},[p,m,O]),oe=o.useCallback(Be=>{Be.stopPropagation(),h?.()},[h]),se=o.useCallback(Be=>Be.stopPropagation(),[]),re=o.useCallback(Be=>{typeof C=="function"&&C(Be)},[C]),ee=u||(c&&r?.id!=null?c.has(String(r.id)):!1),z=!ee&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);Ri("speechear.popup.close",Z);const te=Gl(),W=`${a?.label||""} ${t+1}`,G=O?.title||O?.name||W;let de=a?.icon,Ee,ve="",me="";try{const Be=O?.category_0||O?.category_main_code||O?.category_main,qe=O?.category_1||O?.category_sub_code||O?.category_sub,Ke=te.find(pt=>pt.key===Be);Ke?.icon&&(de=Ke.icon),!Ee&&Ke?.color&&(Ee={"--t-item-fg":Ke.color}),!Ee&&O?.iconColor&&(Ee={"--t-item-fg":O.iconColor}),ve=Ke?x(`topic.${Ke.key}`,{defaultValue:Ke.label||""}):"";try{const pt=Ke?.subs?.find(xt=>xt.key===qe);me=pt?x(`topic.sub.${pt.key}`,{defaultValue:pt.label||""}):""}catch{}}catch{}const ce=me?`${ve} / ${me}`:ve||a?.label||G,ge=Be=>x("training.countQuestions",{n:Be,count:Be}),he=Be=>x("training.countSentences",{n:Be,count:Be});let pe="";try{if(O)if(a?.key==="LISTEN_IN_NOISE"){let Be=0;Array.isArray(O.items)&&O.items.length>0?Be=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0?Be=O.sentences.length:O.sentences&&(Be=1),pe=he(Be)}else if(a?.key==="SHORT_STORY"){let Be=1;Array.isArray(r?.items)?Be=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Be=r.raw.items.length:Array.isArray(O?.questions)?Be=O.questions.length:Array.isArray(O?.sentences)&&(Be=O.sentences.length),pe=ge(Be)}else if(a?.key==="LONG_STORY"){let Be=1;if(Array.isArray(O.items)&&O.items.length>0){const qe=O.items.reduce((Ke,pt)=>{const xt=pt.questionItems;return Array.isArray(xt)?Ke+xt.length:Array.isArray(pt.questions)?Ke+pt.questions.length:Ke},0);Be=qe>0?qe:O.items.length}else Array.isArray(O.questions)&&O.questions.length>0?Be=O.questions.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(Be=O.sentences.length);pe=ge(Be)}else if(a?.key==="ORDERING_SENTENCE"){let Be=1;Array.isArray(O.items)&&O.items.length>0?Be=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(Be=O.sentences.length),pe=he(Be)}else Array.isArray(O.items)&&(pe=O.items.length>0?ge(O.items.length):"")}catch{}const Le=k==="row",ze=k==="list"||Le,Me=k==="compact",Ve=k==="small",We=Ve&&a?.key?Pf().find(Be=>Be.key===a.key):void 0,dt=We?Kl[We.key]:void 0,lt=We?dt?x(`trainingType.${dt}.title`,{defaultValue:We.label}):We.label??"":"",tt=y&&a?.label&&a.label!==String(G)?String(a.label):Ve&<&<!==String(G)?lt:"",yt=!!tt,_e=b!==void 0?b:pe,Ge=[tt,typeof G=="string"?G:"",_e].map(Be=>String(Be??"").trim()).filter(Boolean).join(" ");return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:B,className:`training-block-button${ze?" training-block-button--list":""}${Le?" training-block-button--row":""}${Me?" training-block-button--compact":""}${Ve?" training-block-button--small":""}${ee?" training-block-button--completed":""}${z?" training-block-button--selected":""}${yt&&!Ve?" training-block-button--withType":""}${Ve&&!yt?" training-block-button--no-type-label":""}`,onClick:L,onPointerEnter:U,onPointerLeave:F,role:"button",tabIndex:0,onKeyDown:j,"aria-label":typeof s=="string"?s:Ge||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:[y&&a?.label&&a.label!==String(G)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ve&<&<!==String(G)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:lt}),n.jsx(mu,{icon:de,label:G,tooltip:ce,wrapperStyle:Ee,iconSize:Ve||Me?"small":"medium"}),!g&&(ee||z)&&!(h&&w)&&n.jsx(Mt,{className:h?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":ee?x("training.completed","\uD6C8\uB828 \uC644\uB8CC"):x("training.selected","\uC120\uD0DD\uB428")}),h&&n.jsx(Mt,{className:`training-block-button__remove${w?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":x("common.remove","\uC81C\uAC70"),onClick:oe}),n.jsx("div",{className:`training-block-button__title ${Me?"body-3":Ve?"body-3b":"h3"}`,children:String(G)}),n.jsxs("div",{className:"training-block-button__description",children:[_e?n.jsx("div",{className:`training-block-button__count ${Ve?"caption-2":"caption-1"}`,children:_e}):null,n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(st,{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:Ve?12:20})})]}),(ze&&!Le||Ve)&&R.length>0&&n.jsx("div",{ref:M,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:se,onPointerEnter:Q,onPointerLeave:I,children:n.jsx(be,{htmlType:"button",size:Ve?28:32,type:"dot",icon:D?"pause":"play",variant:Ve?"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:Be=>{Be.stopPropagation(),_(Be)},children:n.jsx(be,{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(En,{anchorRect:q,text:D?x("training.stop","\uC815\uC9C0"):x("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:I}),w&&!N&&p&&(H?n.jsx(Kn,{anchorRect:V,items:H,activeIndex:A,onClose:F}):O?.subTitle?n.jsx(En,{anchorRect:V,text:O.subTitle,offset:8,onClose:F}):null),N&&i&&i({trainingData:O,typeKey:a?.key??"",onClose:Z,onComplete:re,popupTitle:String(G),popupSubTitle:a?.subTitle,depth:l!=null?String(l):void 0,popupIcon:de,popupIconTooltip:String(ce),popupWrapperStyle:Ee})]})}const hu=200;function ev(e){return e.itemId?(Wf()[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):Vf(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,y)=>n.jsx(Mo,{index:y,type:m,trainingData:g,size:"compact",hideCheckBadge:!0},String(g.id??y)))})]},c)])})});return a?n.jsx(gn,{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=we("count-tile",m&&"count-tile--interactive",m&&l&&"count-tile--accent",u&&"count-tile--clickable",i),h=o.useRef(null),[g,y]=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(),y(null)},[b]),x=o.useCallback(()=>{!s||!r||(b(),C.current=setTimeout(()=>{C.current=null,y(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,y(null)},tv))},[]);return o.useEffect(()=>()=>{b()},[b]),o.useEffect(()=>{(!s||!r)&&k()},[s,r,k]),o.useEffect(()=>{if(!_)return;const v=w=>w instanceof Element&&(h.current?.contains(w)||!!w.closest(".tooltip-training")),B=w=>{v(w.target)?b():N()};return document.addEventListener("pointerover",B,!0),()=>document.removeEventListener("pointerover",B,!0)},[_,b,N]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:h,className:p,onClick:u?v=>{k(),u(v)}:void 0,onKeyDown:u?v=>{v.key!=="Enter"&&v.key!==" "||(v.preventDefault(),v.currentTarget.click())}:void 0,onPointerEnter:v=>{v.pointerType==="touch"||v.pointerType==="pen"?k():x()},onMouseEnter:c,onMouseLeave:v=>{N(),d?.(v)},role:u?"button":"img",tabIndex:u?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(st,{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 Ga=0,fu="",Lo="",Ka=0;function bu(){return gu(!1)}function av(){return gu(!0)}function gu(e){const t=typeof document<"u";Ga===0&&t&&(fu=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Ka===0&&(Lo=document.body.style.paddingRight),Ka++,document.body.style.paddingRight="0px"),Ga++;let a=!1;return()=>{a||(a=!0,Ga=Math.max(0,Ga-1),e&&t&&(Ka=Math.max(0,Ka-1),Ka===0&&(Lo?document.body.style.paddingRight=Lo:document.body.style.removeProperty("padding-right"))),Ga===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),y=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const b=document.activeElement,k=bu(),x=g.current;return Co(x,b),x?.focus(),()=>{k();const N=document.activeElement;(!N||N===document.body||x&&x.contains(N))&&fo(b)?.focus?.()}},[e]);const C=o.useRef(y),f=o.useRef(u);o.useEffect(()=>{C.current=y,f.current=u}),o.useEffect(()=>{if(e)return Gn(()=>{f.current&&C.current()})},[e]);const _=o.useRef(!1);return mo(g,e),!e||typeof document>"u"?null:sn.createPortal(n.jsx("div",{className:we("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&&y()}: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:we("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:y,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:we("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:we("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:we("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:we("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:we("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:we("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=Ra(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:we("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:we("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(R=>yu(R).toLowerCase().includes(A.toLowerCase())):r?a:[]},[a,e,r,s]),[y,C]=o.useState(!1),f=o.useRef([]),_=y&&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,v=o.useCallback(A=>{l?l(A):t?.(yu(A)),d(!1)},[t,l]),B=o.useCallback(()=>d(!0),[]),w=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(R=>Math.min(_.length-1,(R<_.length?R:x)+1))):A.key==="ArrowUp"?(A.preventDefault(),p(R=>Math.max(x,(R<_.length?R:_.length)-1))):A.key==="Enter"?N>=0&&v(_[N]):A.key==="Escape"&&c&&(A.preventDefault(),d(!1)))},[_,N,c,v,x]);return{listId:u,open:c,activeIdx:N,filtered:_,handleFocus:B,handleBlur:E,handleInput:w,handleKeyDown:D,handleSelect:v,handleCompositionStart:b,handleCompositionEnd:k}}const $o=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:y=!1,readOnly:C=!1,error:f,helperText:_,maxLength:b,size:k=40,variant:x="input",fullWidth:N=!1,newline:v=!1,multiline:B=!1,rows:w=3,leftIcon:E,rightIcon:D,clearable:A=!1,list:R,showCount:$=!0,className:K="",onFocus:M,onBlur:P,onKeyDown:L,onEnter:Z,inputMode:U,autoComplete:F,autoFocus:Q,suggestions:I,filterSuggestions:q,onSelectSuggestion:J,autoActiveFirst:V,openOnFocus:T=!1}=e,j=C||y?void 0:I,{t:O}=xe.useTranslation(),H=o.useId();!i&&!u&&Tt(`TextField:unnamed:${H}`,"[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 oe=`tf-${H}`,se=`tf-helper-${H}`,re=o.useRef(null),ee=vu({value:t??"",onChange:l,suggestions:j??[],openOnFocus:T,filterSuggestions:q,onSelectSuggestion:J,autoActiveFirst:V}),z=!!j&&ee.open&&ee.filtered.length>0,te=o.useRef(null),[W,G]=o.useState(null),de=o.useCallback(()=>{const _e=te.current;if(!_e||typeof window>"u")return;const Ge=_e.getBoundingClientRect(),Be=230,qe=window.innerHeight-Ge.bottom<Be+8&&Ge.top>Be+8;G({position:"fixed",left:Ge.left,width:Ge.width,...qe?{bottom:window.innerHeight-Ge.top+8}:{top:Ge.bottom+8},zIndex:Fa(_e)})},[]);$o(()=>{if(!z)return;de();let _e=null;const Ge=()=>{if(typeof requestAnimationFrame>"u"){de();return}_e===null&&(_e=requestAnimationFrame(()=>{_e=null,de()}))},Be=qe=>{const Ke=qe.target;Ke&&Ke.nodeType===1&&Ke.closest?.(".text-field__suggestions")||Ge()};return window.addEventListener("scroll",Be,!0),window.addEventListener("resize",Ge),()=>{_e!==null&&cancelAnimationFrame(_e),window.removeEventListener("scroll",Be,!0),window.removeEventListener("resize",Ge)}},[z,de]);const Ee=o.useCallback(_e=>{re.current=_e,typeof s=="function"?s(_e):s&&(s.current=_e)},[s]),ve=p?`${p}${h??O("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:m,me=t!==void 0,ce=me&&g==="password",[ge,he]=o.useState((a??"").length),pe=me?(t??"").length:ge,Le=o.useRef(t);$o(()=>{Le.current=t}),o.useEffect(()=>{const _e=re.current;if(!ce||!_e)return;const Ge=t??"";_e.value!==Ge&&(_e.value=Ge)},[ce,t]),o.useEffect(()=>{if(!v||!re.current)return;const _e=re.current;_e.style.height="",_e.scrollHeight>_e.clientHeight&&(_e.style.height=`${_e.scrollHeight}px`)},[t,ge,v]);const ze=b!=null&&pe>b,Me=k===32?16:20,Ve=we("text-field",`text-field--s${k}`,x==="display"?"text-field--display":"",N?"text-field--full-width":"",y?"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:oe,...ce?{}:me?{value:t}:{defaultValue:a},ref:Ee,placeholder:ve,name:r,disabled:y,readOnly:C,autoFocus:Q,maxLength:b,list:R,inputMode:U,autoComplete:F,"aria-label":!i&&u?u:void 0,"aria-required":d,"aria-invalid":!!f,"aria-describedby":[_||f?se:null,c].filter(Boolean).join(" ")||void 0,role:j?"combobox":void 0,"aria-autocomplete":j?"list":void 0,"aria-haspopup":j?"listbox":void 0,"aria-expanded":j?z:void 0,"aria-controls":z?ee.listId:void 0,"aria-activedescendant":z&&ee.activeIdx>=0?`${ee.listId}-option-${ee.activeIdx}`:void 0,onChange:_e=>{const Ge=_e.target;me||he(Ge.value.length),l?.(Ge.value),j&&ee.handleInput(),ce&&queueMicrotask(()=>{const Be=Le.current??"";Ge.value!==Be&&(Ge.value=Be)})},onCompositionStart:j?ee.handleCompositionStart:void 0,onCompositionEnd:j?ee.handleCompositionEnd:void 0,onFocus:(_e=>{M?.(_e),j&&ee.handleFocus()}),onBlur:(_e=>{P?.(_e),j&&ee.handleBlur()}),onKeyDown:(_e=>{const Ge=(_e.key==="Tab"&&!_e.shiftKey||_e.key===" ")&&!_e.nativeEvent.isComposing;if(p&&Ge&&!C&&!y&&!(_e.currentTarget.value??"").trim()){_e.preventDefault();const Be=_e.currentTarget;me||(Be.value=p,he(p.length)),l?.(p);return}j&&_e.key==="Enter"&&!_e.nativeEvent.isComposing&&ee.activeIdx>=0?_e.preventDefault():Z&&_e.key==="Enter"&&!_e.nativeEvent.isComposing&&(_e.preventDefault(),Z()),L?.(_e),j&&ee.handleKeyDown(_e)})},dt=A&&!y&&!C&&pe>0,lt=()=>v?n.jsx("textarea",{...We,className:"text-field__input text-field__input--auto body-2",rows:1}):B?n.jsx("textarea",{...We,className:"text-field__input text-field__input--textarea body-2",rows:w}):n.jsx("input",{...We,type:g,className:"text-field__input body-2"}),tt=x==="display"&&!v&&!B&&!!ve,yt=()=>n.jsxs(n.Fragment,{children:[lt(),tt&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:ve})]});return n.jsxs("div",{ref:te,className:Ve,children:[i&&n.jsxs("label",{htmlFor:oe,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(st,{icon:E,label:"",className:"",svgClassName:"text-field__icon-svg",size:Me})}),yt(),b!=null&&$&&n.jsxs("span",{className:`text-field__count caption-2${ze?" text-field__count--over":""}`,children:[pe,"/",b]}),dt&&n.jsx(be,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:O("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:_e=>{_e.preventDefault()},onClick:()=>{!me&&re.current&&(re.current.value="",he(0)),l?.("")},tabIndex:-1}),D&&!dt&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(st,{icon:D,label:"",className:"",svgClassName:"text-field__icon-svg",size:Me})})]}),!!j&&n.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:ee.open&&(t??"").length>0&&ee.filtered.length===0?O("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),z&&(typeof document>"u"?null:sn.createPortal(n.jsx("ul",{id:ee.listId,className:"text-field__suggestions",role:"listbox",style:W??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:ee.filtered.map((_e,Ge)=>n.jsx("li",{id:`${ee.listId}-option-${Ge}`,role:"option","aria-selected":Ge===ee.activeIdx,className:`text-field__suggestion body-2${Ge===ee.activeIdx?" is-active":""}`,onMouseDown:Be=>Be.preventDefault(),onClick:()=>{ee.handleSelect(_e),re.current?.focus()},children:typeof _e=="string"?_e:n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-field__suggestion-label",children:_e.label}),_e.hint&&n.jsx("span",{className:"text-field__suggestion-hint caption-1",children:_e.hint})]})},typeof _e=="string"?`${_e}-${Ge}`:_e.id))}),document.body)),(_||f)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:se,className:"text-field__helper caption-1",role:f?"alert":void 0,children:f||_})})]})}function hn({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(),y=o.useId(),C=o.useRef(null),f=o.useCallback((M,P)=>{const L=window.innerHeight-M.bottom<260&&M.top>260;return{position:"fixed",left:M.left,minWidth:M.width,...L?{bottom:window.innerHeight-M.top+6}:{top:M.bottom+6},zIndex:Fa(P)}},[]),{open:_,setOpen:b,toggle:k,style:x,triggerRef:N,menuRef:v}=Oa({computeStyle:f}),[B,w]=o.useState(-1),E=o.useCallback(()=>w(-1),[]),D=e.find(M=>M.value===t);o.useEffect(()=>{if(_){const M=e.findIndex(P=>P.value===t);w(M>=0?M:e.length?0:-1),requestAnimationFrame(()=>{const P=v.current;if(!P)return;const L=P.querySelectorAll(".dropdown__option")[M];L&&(P.scrollTop=Math.max(0,L.offsetTop-P.clientHeight/2+L.clientHeight/2))})}},[_]),o.useEffect(()=>{_&&w(M=>{if(M>=0&&M<e.length)return M;const P=e.findIndex(L=>L.value===t);return P>=0?P:e.length?0:-1})},[_,e.length]);const A=o.useCallback(()=>{s||k()},[s,k]),R=o.useCallback(M=>{M.disabled||s||(M.value!==t&&a?.(M.value),b(!1))},[a,b,s,t]);o.useEffect(()=>{s&&b(!1)},[s,b]);const $=o.useCallback(M=>{if(!s){if(!_){(M.key==="Enter"||M.key===" "||M.key==="ArrowDown")&&(M.preventDefault(),b(!0));return}if(M.key==="Escape"){M.preventDefault(),b(!1);return}M.key==="ArrowDown"?(M.preventDefault(),w(P=>{let L=P+1;for(;L<e.length&&e[L].disabled;)L++;return L<e.length?L:P})):M.key==="ArrowUp"?(M.preventDefault(),w(P=>{let L=P-1;for(;L>=0&&e[L].disabled;)L--;return L>=0?L:P})):(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),e[B]?R(e[B]):b(!1))}},[s,_,e,B,R,b]),K=_?n.jsx("div",{ref:v,id:g,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:`${g}-option-${P}`,type:"button",role:"option","aria-selected":M.value===t,className:we("dropdown__option body-2",M.value===t?"dropdown__option--active":"",P===B?"dropdown__option--active":"",M.disabled?"dropdown__option--disabled":""),onMouseDown:L=>L.preventDefault(),onClick:()=>R(M),onMouseEnter:()=>w(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:we("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":_&&B>=0?`${g}-option-${B}`:void 0,"aria-label":d,"aria-describedby":[d&&D?y:"",m??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:A,onBlur:M=>{_&&!v.current?.contains(M.relatedTarget)&&b(!1)},children:[n.jsx("span",{id:y,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 Ro({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:we("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 Ya=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),y=o.useId(),C=a.map(x=>x.key).join("\xB7");o.useEffect(()=>{if(!(!Pn||p!=null&&p!=="")){if(Ya.set(y,C||"(\uBCF4\uAE30 \uC5C6\uC74C)"),Ya.size>1){const x=[...Ya.values()].sort();Tt(`segmented-control-unnamed:${x.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${Ya.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()=>{Ya.delete(y)}}},[p,C,y]);const f=x=>{if(!g.length)return;const N=Math.max(0,g.findIndex(B=>B.key===r)),v=x==="first"?g[0]:x==="last"?g[g.length-1]:g[(N+x+g.length)%g.length];v&&(s(v.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(B=>B.dataset.segkey===v.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=v=>typeof v=="string"||typeof v=="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:we("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:we("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(hn,{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(hn,{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(Ro,{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 y=a.indexOf(`
|
|
829
829
|
`),C=y===-1?a:a.slice(0,y);l("comment",C),a=a.slice(C.length);continue}if(s&&a.startsWith("#")){const y=a.indexOf(`
|
|
830
|
-
`),C=y===-1?a:a.slice(0,y);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 y=p[0];l(s&&hv.has(y)?"command":"identifier",y),a=a.slice(y.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 Lf(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:we("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((y,C)=>n.jsx("span",{className:`code-token ${y.type} ${g}`,children:y.content},C))})})]})}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:we("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 gv({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)&&ur(b,h.current)},[c]);const[y,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,R=D.some(L=>L.offsetTop!==A);if(!f.current){_.current=b.clientWidth,R&&k(!0);return}if(R)return;const $=D[0],K=D[D.length-1],M=K.offsetLeft+K.offsetWidth-$.offsetLeft,I=_.current;(I==null||M<=I)&&k(!1)};if(x(),typeof ResizeObserver>"u")return;const N=new ResizeObserver(x);N.observe(b);const v=b.parentElement;let B=v?.clientWidth??0;const w=new ResizeObserver(()=>{const E=v?.clientWidth??0;E!==B&&(B=E,_.current=null,x())});return v&&w.observe(v),()=>{N.disconnect(),w.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${y?" 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 yv=[{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 vv(e){const{onClose:t,className:a}=e;return n.jsx("div",{className:we("item-actions",a),children:yv.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,y]=lo(t).split("-");return{y:+g,m:+y-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 y=c.current.y*12+c.current.m+g,C=Math.floor(y/12),f=y-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,y)=>{c.current={y:g,m:y},s(g),i(y)},[]);return{viewY:r,viewM:l,prevMonth:m,nextMonth:p,setViewYM:h}}function br(e,t){return new Date(e,t+1,0).getDate()}function xv(e,t){return new Date(e,t,1).getDay()}function Za(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function _v(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function wv(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:Za(a,r-1,s)}const Bv=1900;function kv(e,t,a,r,s){const l=r?+r.split("-")[0]:Math.min(Bv,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 Av({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:y,viewM:C,prevMonth:f,nextMonth:_,setViewYM:b}=Bu(e,c),k=o.useId(),x=o.useCallback((z,te)=>{const W=window.innerHeight,G=window.innerWidth,pe=typeof document<"u"?document.getElementById(k):null,Ee=Math.max(pe?.offsetHeight||0,pe?.scrollHeight||0)||300,ve=Math.max(z.width,pe?.offsetWidth||0,260),me=W-z.bottom,ce=z.top,ge=me<Ee&&ce>me,he=8,de=(Le,ze)=>Math.min(Math.max(he,Le),Math.max(he,ze));return{position:"fixed",left:de(z.left,G-ve-he),width:z.width,minWidth:260,...ge?{top:"auto",bottom:de(W-z.top+6,W-Ee-he)}:{bottom:"auto",top:de(z.bottom+6,W-Ee-he)},zIndex:Fa(te)}},[k]),{open:N,setOpen:v,toggle:B,style:w,triggerRef:E,menuRef:D}=Oa({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 te=document.activeElement;(!te||te===document.body)&&E.current?.focus?.()}},[N,D,E]);const[A,R]=o.useState(1),$=o.useRef(null),K=o.useRef(null);o.useEffect(()=>{if(!N)return;const z=e&&e.slice(0,7)===`${y}-${String(C+1).padStart(2,"0")}`?+e.slice(8):g.slice(0,7)===`${y}-${String(C+1).padStart(2,"0")}`?+g.slice(8):1;R(z)},[N]),o.useEffect(()=>{if(K.current==null)return;const z=K.current;K.current=null,$.current?.querySelector(`[data-day="${z}"]`)?.focus()}),o.useEffect(()=>{R(z=>Math.min(z,br(y,C)))},[y,C]);const M=o.useCallback(z=>{let te=Za(z.getFullYear(),z.getMonth(),z.getDate());r&&te<r&&(te=r),s&&te>s&&(te=s);const[W,G,pe]=te.split("-").map(Number);(W!==y||G-1!==C)&&b(W,G-1),R(pe),K.current=pe},[r,s,y,C,b]),I=o.useCallback(z=>{const te=new Date(y,C,A),W=pe=>{te.setDate(te.getDate()+pe),M(te)},G=pe=>{const Ee=te.getFullYear()*12+te.getMonth()+pe,ve=Math.floor(Ee/12),me=Ee-ve*12;M(new Date(ve,me,Math.min(te.getDate(),br(ve,me))))};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(-te.getDay());break;case"End":W(6-te.getDay());break;case"PageUp":z.shiftKey?G(-12):G(-1);break;case"PageDown":z.shiftKey?G(12):G(1);break;default:return}z.preventDefault()},[y,C,A,M]),L=o.useCallback(z=>{l||(t(Za(y,C,z)),v(!1))},[y,C,t,v,l]);o.useEffect(()=>{l&&v(!1)},[l,v]);const Z=z=>{const te=Za(y,C,z);return!!(r&&te<r||s&&te>s)},U=(()=>{const z=br(y,C);if(A>=1&&A<=z&&!Z(A))return A;for(let te=1;te<=z;te++)if(!Z(te))return te;return-1})(),F=[];for(let z=0;z<xv(y,C);z++)F.push(null);for(let z=1;z<=br(y,C);z++)F.push(z);const Q=a===64?20:a===40?16:18,P=Wl(m.language),q=z=>new Intl.DateTimeFormat(P,{year:"numeric"}).format(new Date(z,0,1)),X=(z,te)=>new Intl.DateTimeFormat(P,{month:"long"}).format(new Date(z,te-1,1)),V=kv(y,+g.slice(0,4),q,r,s),T=ku(y,X,r,s),j=z=>{const te=ku(z,X,r,s);if(te.length===0)return;const W=te.some(G=>+G.value===C+1);b(z,W?C:+te[0].value-1)},[O,H]=o.useState(null);o.useEffect(()=>{H(null)},[e]);const oe=o.useCallback(z=>{H(z);const te=wv(z);if(!te||r&&te<r||s&&te>s)return;t(te);const[W,G]=te.split("-");b(+W,+G-1)},[r,s,t,b]),ne=o.useCallback(()=>{H(null)},[]),le=o.useCallback(z=>{z.key==="Enter"?(z.preventDefault(),ne(),v(!1)):z.key==="Escape"?(ne(),v(!1)):z.key==="ArrowDown"&&!N&&(z.preventDefault(),v(!0))},[ne,v,N]),ee=N?sn.createPortal(n.jsxs("div",{ref:D,id:k,className:"date-picker__dropdown",style:w,"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(hn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYear","\uC5F0 \uC120\uD0DD"),options:V,value:String(y),onChange:z=>j(+z),size:40}),n.jsx(hn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectMonth","\uC6D4 \uC120\uD0DD"),options:T,value:String(C+1),onChange:z=>b(y,+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:I,children:[h.map(z=>n.jsx("div",{className:"date-picker__dow caption-1",children:z},z)),F.map((z,te)=>{if(z===null)return n.jsx("div",{},`e${te}`);const W=Za(y,C,z),G=W===e,pe=W===g,Ee=Z(z),ve=te%7;return n.jsx("button",{type:"button",disabled:Ee,"data-day":z,tabIndex:z===U?0:-1,"aria-current":pe?"date":void 0,onClick:()=>!Ee&&L(z),className:we("date-picker__day caption-1",G&&"date-picker__day--selected",pe&&!G&&"date-picker__day--today",Ee&&"date-picker__day--disabled",ve===0&&"date-picker__day--sun",ve===6&&"date-picker__day--sat"),children:z},z)})]})]}),document.body):null;return n.jsxs("div",{className:we("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:O??_v(e),placeholder:p,onChange:z=>oe(z.target.value),onClick:()=>!l&&!N&&B(),onKeyDown:le,onBlur:ne,disabled:l,"aria-haspopup":"dialog","aria-expanded":N,inputMode:"numeric",autoComplete:"off"}),n.jsx("button",{type:"button",className:"date-picker__icon-btn",onClick:()=>!l&&B(),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})})]}),ee]})}function Nv({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 Ev({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:we("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:we("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:we("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:we("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 Xa({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:y,totalLabel:C,subRow:f,subRowAlign:_="start",className:b,inGrid:k=!1,children:x}){const{t:N}=xe.useTranslation(),v=o.useRef(null),{anchorRect:B,openAt:w,close:E}=Ia(),D=o.useCallback(()=>{h&&v.current&&w(v.current)},[h,w]),[A,R]=o.useState(!1);Ro(()=>{const T=v.current;if(!T||!u)return;const j=H=>R(H>0&&H<d);if(j(T.clientWidth),typeof ResizeObserver>"u")return;const O=new ResizeObserver(H=>j(H[0].contentRect.width));return O.observe(T),()=>O.disconnect()},[u,d]);const[$,K]=o.useState(null),M=o.useCallback(()=>K(null),[]),I=o.useCallback(T=>{const j=T.currentTarget.getBoundingClientRect();K(O=>O?null:{left:j.left,right:j.right,top:j.top,bottom:j.bottom,width:j.width,height:j.height,x:j.x,y:j.y})},[]),L=!!u&&A;o.useEffect(()=>{L||K(null)},[L]);const Z=u?[...u.options.map(T=>({label:T.label,icon:T.icon,selected:T.key===u.value,disabled:T.disabled,onClick:()=>u.onChange(T.key),closeOnSelect:!0})),...(c??[]).map((T,j)=>j===0?{...T,separatorBefore:!0}:T)]:[],U=o.useCallback(T=>{if(!m)return;const j=T.target;j&&typeof j.closest=="function"&&j.closest('button, a, input, select, textarea, [role="radiogroup"]')||m()},[m]),F=o.useCallback(T=>{m&&T.target===T.currentTarget&&(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),m())},[m]),Q=typeof l=="function"?l({collapsed:L}):l,P=g!=null||C?n.jsxs(Xa,{label:C,children:[g!=null&&n.jsx("span",{className:"barchart-total__num h0",children:g}),y&&n.jsx("span",{className:"barchart-total__unit h5",children:y})]}):null,q=Q||u?n.jsxs("div",{className:"manager-section__head-right",children:[u&&(L?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:I}):n.jsx(_n,{size:32,ariaLabel:u.ariaLabel,options:u.options.map(T=>({key:T.key,label:T.label,disabled:T.disabled})),value:u.value,onChange:u.onChange})),Q]}):null,X=o.useId(),V=a?`h${a}`:"div";return n.jsxs("section",{ref:v,className:["manager-section",k&&"manager-section--grid",m&&"manager-section--clickable",b].filter(Boolean).join(" "),onClick:m?U:void 0,onKeyDown:m?F: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?X:void 0,children:[h&&B&&n.jsx(En,{anchorRect:{left:B.left,top:B.top+21,right:B.right,bottom:B.bottom,width:B.width,height:B.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(st,{icon:r,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),n.jsx(V,{id:X,className:["manager-section__title",t].filter(Boolean).join(" "),children:e})]}),q,s&&n.jsx("div",{className:"manager-section__disc body-3",children:s})]}),(P||f)&&n.jsxs("div",{className:["barchart-sub-row",_!=="start"&&`barchart-sub-row--${_}`].filter(Boolean).join(" "),children:[P,f]}),x,$&&n.jsx(gn,{anchorRect:$,onClose:M,ariaLabel:u?.ariaLabel??N("tooltip.menu","\uBA54\uB274"),children:n.jsx(za,{columns:[{items:Z}],onClose:M,size:"small"})})]})}const Ja=(e,t)=>`${e}-${String(t).padStart(2,"0")}`,Oo=e=>Ja(e.getFullYear(),e.getMonth()+1);function Ca(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 Dv(){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=Ja(t,a+1);return{monthKey:l,value:zo(l,s)}}function Sv(e){const t=ia(),a=Oo(t),r=(c,d)=>Ja(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=Ca(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 y=new Date(p,h,0),C=r(y.getFullYear(),y.getMonth());s.has(C)||s.set(C,[])}const l=new Map;for(const[c,d]of s){const m=Ca(c);if(!m)continue;const p=m.year,h=m.month1-1,g=new Date(p,h+1,0).getDate(),y=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(y).fill(0)),k=Array.from({length:g+1},()=>new Array(y).fill(0));for(const x of d){const N=x.date.getDate();if(f[N]+=x.a,_[N]+=x.b,x.parts)for(let v=0;v<y;v++)b[N][v]+=x.parts[v]??0;if(x.partsB)for(let v=0;v<y;v++)k[N][v]+=x.partsB[v]??0}l.set(c,{year:p,month:h,daysInMonth:g,partsLen:y,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:y,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 B=1;B<=h;B++){const w=_&&B>b;N.push({label:String(B),...w&&g[B]===0&&y[B]===0?{future:!0}:{},a:w&&g[B]===0&&y[B]===0?-1:g[B],b:y[B],...x?{parts:C[B]}:{},...x&&d.hasPartsB?{partsB:f[B]}:{}})}const v=[];for(let B=wn(m,p);B<=h;B+=7){const w=Math.max(0,B+6-h),E=w&&k?Math.max(x,k.partsLen):x,D=d.hasPartsB||!!(w&&k?.hasPartsB);let A=0,R=0;const $=new Array(E).fill(0),K=new Array(E).fill(0);for(let I=B;I<=Math.min(B+6,h);I++){A+=g[I],R+=y[I];for(let L=0;L<x;L++)$[L]+=C[I][L],K[L]+=f[I][L]}if(w&&k)for(let I=1;I<=w&&!i(k.year,k.month,I);I++){A+=k.dayA[I],R+=k.dayB[I];for(let L=0;L<k.partsLen;L++)$[L]+=k.dayParts[I][L],K[L]+=k.dayPartsB[I][L]}const M=w?`${(p+1)%12+1}/${w}`:`${B+6}`;v.push({label:`${v.length+1}\uC8FC`,sublabel:`[${B}\uC77C~${M}\uC77C]`,a:A,b:R,...E?{parts:$}:{},...E&&D?{partsB:K}:{}})}u[c]={weekly:v,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:Ja(s,i),year:s,month:i})}return r.reverse()}Nu();function jv(){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(()=>jv().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(),R=wn(D.year,D.month-1),$=Math.ceil((A-R+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(()=>Dv(),[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,y]=o.useState(""),[C,f]=o.useState("");o.useEffect(()=>{l.find(E=>E.value===g)||y(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"?y: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),v=o.useCallback(()=>{const E=_.findIndex(D=>D.value===b);E<_.length-1&&k(_[E+1].value)},[_,b,k]),B=o.useCallback(()=>{const E=_.findIndex(D=>D.value===b);E>0&&k(_[E-1].value)},[_,b,k]),w=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:v,handleNext:B,periodOptions:w,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 Tv({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:y,focusableBars:C=!1}){const f=!a,_=!!(m&&m.length>0),b=y,k=o.useMemo(()=>_?Math.max(0,...e.filter(F=>!Tn(F,b==null)).map(F=>g?Math.max(0,...(F.parts??[]).map(Et)):(F.parts??[]).reduce((Q,P)=>Q+Math.max(0,Et(P)),0))):Math.max(0,...e.filter(F=>!Tn(F,b==null)).flatMap(F=>f?[Et(F.a)]:[Et(F.a),Et(F.b)])),[e,f,_,g]),x=o.useMemo(()=>{if(b==null)return 0;const F=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,...F.map(Q=>Math.abs(Q-b)))},[e,b,_,f]),N=o.useMemo(()=>{const F=b!=null?x:k;return c??(d?F>0?F:10:Math.ceil(F/10)*10||10)},[k,x,b,c,d]),v=u,B=_?g?Math.max(1,m.length):1:f?1:2,w={"--bar-width":`${o.useMemo(()=>{const F=Math.max(1,e.length);return Math.max(2,Math.min(l,Math.round(120/(F*B)+6)))},[e.length,B,l])}px`},E={"--bar-group-gap":`${Math.max(0,i)}px`},D=o.useMemo(()=>{const F=Math.round(N/2);return b!=null?[b+N,...F!==N?[b+F]:[],b,...F!==N?[b-F]:[],b-N]:F!==N?[N,F,0]:[N,0]},[N,b]),A=F=>b!=null?1-(F-(b-N))/(2*N):1-F/N,[R,$]=o.useState(null),K=o.useCallback(()=>$(null),[]),M=o.useCallback((F,Q)=>{const P=[F.label,F.sublabel].filter(Boolean).join(" ");let q;if(_&&g&&F.rawPartsB)q=(p??[]).map((X,V)=>{const T=F.rawPartsB[V]??0;return{text:T>0?`${X}: ${Q[V]??0}% (${F.rawParts?.[V]??0}/${T})`:`${X}: -`,color:(m??[])[V]}});else if(_&&g)q=(p??[]).map((X,V)=>({text:`${X}: ${Z(Q[V]??0)}`,color:(m??[])[V]}));else if(_){const X=(p??[]).map((T,j)=>({text:`${T}: ${Q[j]??0}`,color:(m??[])[j]})),V=X.filter((T,j)=>(Q[j]??0)>0);q=V.length?V:X}else h&&!f?q=[{text:`${r} ${Et(F.a)}%`,color:t},{text:`${s} ${Et(F.b)}%`,color:a}]:h&&F.rawB!==void 0?q=[{text:`${h.total} ${F.rawB}`},{text:`${h.done} ${F.rawA??0}`,color:t}]:f?q=[{text:`${r}: ${Et(F.a)}`,color:t}]:q=[{text:`${r}: ${Et(F.a)}`,color:t},{text:`${s}: ${Et(F.b)}`,color:a}];return{title:P,items:q}},[_,g,p,m,h,f,r,s,t,a,b]),I=o.useCallback((F,Q,P)=>{const q=F.getBoundingClientRect(),{title:X,items:V}=M(Q,P);$({rect:{left:q.left,top:q.top,right:q.right,bottom:q.bottom,width:q.width,height:q.height},title:X,items:V})},[M]),L=o.useCallback((F,Q)=>{const{title:P,items:q}=M(F,Q);return[P,...q.map(X=>X.text)].filter(Boolean).join(", ")},[M]),Z=F=>b!=null&&F>b?`+${F}`:`${F}`,U=R!=null;return o.useEffect(()=>{if(!U)return;const F=()=>$(null),Q=P=>{const q=P.target;q&&typeof q.closest=="function"&&q.closest(".manager-bar-chart-col")||$(null)};return window.addEventListener("scroll",F,!0),document.addEventListener("pointerdown",Q,!0),()=>{window.removeEventListener("scroll",F,!0),document.removeEventListener("pointerdown",Q,!0)}},[U]),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:v},children:[D.slice(0,-1).map((F,Q)=>n.jsx("div",{className:`manager-bar-chart-gridline${b!=null&&F===b?" manager-bar-chart-gridline--baseline":""}`,style:{top:A(F)*v},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:F})},Q)),e.map((F,Q)=>{const P=Tn(F,b==null),q=v/2,X=O=>b!=null?Math.min(q,Math.abs(Et(O)-b)/N*q):Math.min(v,Math.max(0,Et(O)/N*v)),V=P?0:X(F.a),T=P?0:X(F.b),j=(F.parts??[]).map(Et);return n.jsx("div",{className:`manager-bar-chart-col${g&&_?" manager-bar-chart-col--group":""}`,style:{cursor:P?"default":"pointer"},tabIndex:C&&!P?0:void 0,role:C&&!P?"img":void 0,"aria-label":C&&!P?L(F,j):void 0,onMouseEnter:P?void 0:O=>I(O.currentTarget,F,j),onFocus:P||!C?void 0:O=>I(O.currentTarget,F,j),onBlur:C?K:void 0,onMouseLeave:K,children:!P&&(_&&g?(m??[]).map((O,H)=>{const oe=j[H]??0;if(b==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:X(oe),background:O}},H);const ne=Et(oe)<b;return n.jsxs("div",{className:"manager-bar-chart-slot",style:w,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!ne&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:X(oe),background:O}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:ne&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:X(oe),background:O}})})]},H)}):_?n.jsx("div",{className:"manager-bar-chart-stack",style:w,children:(()=>{const O=j.reduce((oe,ne,le)=>ne>0?le:oe,-1);let H=v;return j.map((oe,ne)=>{if(oe<=0)return null;const le=Math.min(H,oe/N*v);return H-=le,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:le,background:(m??[])[ne],borderRadius:ne===O?"6px 6px 0 0":void 0}},ne)})})()}):b!=null?n.jsx(n.Fragment,{children:[{v:Et(F.a),c:t},...f?[]:[{v:Et(F.b),c:a}]].map(({v:O,c:H},oe)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:w,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:O>=b&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:X(O),background:H}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:O<b&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:X(O),background:H}})})]},oe))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:V,background:t}}),!f&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:T,background:a}})]}))},Q)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((F,Q)=>{const P=Tn(F,b==null);return n.jsxs("span",{className:`manager-bar-chart-x-axis__label${P?" manager-bar-chart-x-axis__label--future":""}`,children:[n.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[F.isToday&&n.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),F.label]}),F.sublabel&&n.jsx("span",{className:"caption-1",children:F.sublabel})]},Q)})})]})})}),R&&n.jsx(Kn,{anchorRect:R.rect,title:R.title,items:R.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(hn,{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 Mv(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=Ca(l),_=f?f.year:null,b=f?f.month1:null,k=_&&b?wn(_,b-1):1;return C.weekly.map((x,N)=>{const v=N+1;let B=x.label,w=!1,E=!1;if(_&&b){const D=k+N*7,A=new Date(_,b-1,D+6),R=A.getMonth()+1,$=A.getDate(),K=R===b?`${$}`:`${R}/${$}`;B=a("manager.chart.weekRange",{start:D,end:K});const M=new Date(m,p-1,h).getTime();w=M>=new Date(_,b-1,D).getTime()&&M<=A.getTime(),E=_>m||_===m&&(b>p||b===p&&D>h)}return{...x,label:B,sublabel:Eu(a,v-1),isToday:w,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 y=new Date(g.year,g.month-1,wn(g.year,g.month-1)+g.week*7);return Wo(e,y,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 Lv={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function $v({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:y=!1,rate:C=!1,rateAgg:f="dayMean",tightMax:_=!1,avgMode:b=!1,totalFormat:k,series:x,seriesMode:N="stack",loading:v=!1,onDetail:B,headExtra:w,headSegment:E,icon:D,disc:A,onClick:R,cardAriaLabel:$,cardTooltip:K,detailSize:M=32,barGap:I,baseline:L,className:Z,inGrid:U=!1}){const{t:F}=xe.useTranslation(),Q=Lv[t],P=Du(l),q=g??P,X=o.useMemo(()=>Mv(l,q,F,L==null),[l,q,F,L]),V=N==="group"&&!!x&&x.length>0;I!=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 T=o.useMemo(()=>{if(!C)return X;const ee=q.period==="month"?Ca(q.monthRange):null,z=ia(),te=x?.length??0,W=G=>{const pe=[],Ee=[],ve=[];for(let me=0;me<te;me++){let ce=0,ge=0,he=0;for(const de of G){const Le=Et(de.a[me]),ze=Et(de.b[me]);ze<=0||(ce+=Le,ge+=ze,he+=Le/ze*100)}pe.push(f==="weighted"?ge>0?Math.round(ce/ge*100):0:G.length?Math.round(he/G.length):0),Ee.push(ce),ve.push(ge)}return{pct:pe,ra:Ee,rb:ve}};return X.map((G,pe)=>{let Ee=G.a===-1?-1:G.b>0?Math.round(G.a/G.b*100):0;if(ee&&!Tn(G)){const me=ee.year,ce=ee.month1-1,ge=Wo(l,new Date(me,ce,wn(me,ce)+pe*7),z).filter(he=>!he.isFuture);if(f==="weighted"){let he=0,de=0;for(const{entry:Le}of ge)Le&&Le.b>0&&(he+=Le.a,de+=Le.b);Ee=de>0?Math.round(he/de*100):0}else Ee=ge.length?Math.round(ge.reduce((he,{entry:de})=>he+(de&&de.b>0?de.a/de.b*100:0),0)/ge.length):0}let ve=null;if(V&&!Tn(G)){let me;if(ee){const ge=ee.year,he=ee.month1-1;me=Wo(l,new Date(ge,he,wn(ge,he)+pe*7),z).filter(de=>!de.isFuture).map(({entry:de})=>({a:de?.parts??[],b:de?.partsB??[]}))}else me=[{a:G.parts??[],b:G.partsB??[]}];const ce=W(me);ve={parts:ce.pct,rawParts:ce.ra,rawPartsB:ce.rb}}return{...G,a:Ee,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,...ve??{}}})},[X,C,f,d,q.period,q.monthRange,l,V,x?.length]),j=o.useMemo(()=>{if(C||b){const z=(q.period==="week"?X:l[q.monthRange]?.daily??[]).filter(W=>W.a!==-1);if(z.length===0)return 0;if(C&&f==="weighted"){let W=0,G=0;for(const pe of z)pe.b>0&&(W+=pe.a,G+=pe.b);return G>0?Math.round(W/G*100):0}const te=C?z.reduce((W,G)=>W+(G.b>0?G.a/G.b*100:0),0):z.reduce((W,G)=>W+(G.a>0?G.a:0),0);return Math.round(te/z.length)}const ee=q.period==="month"?l[q.monthRange]?.daily??[]:T;return L!=null?ee.reduce((z,te)=>z+(Tn(te,!1)?0:Et(te.a)+(d?Et(te.b):0)),0):ee.reduce((z,te)=>z+(te.a>0?te.a:0)+(d&&te.b>0?te.b:0),0)},[T,X,C,f,b,L,d,q.period,q.monthRange,l]),O=x&&x.length>0?x.map(ee=>({color:ee.color,label:ee.label})):[{color:i,label:F(c)},...d?[{color:u,label:F(d)}]:[]],H=t==="small",oe=[H?"manager-section--compact":t==="large"?"manager-section--full":void 0,Z].filter(Boolean).join(" ")||void 0,ne=r?F(r):"",le=ne?F("trainingStatus.detailFor",{name:ne,defaultValue:"{{name}} \uC0C1\uC138\uBCF4\uAE30"}):F("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30");return n.jsx(Fo,{className:oe,inGrid:U,icon:D,disc:A,onClick:R,ariaLabel:$,tooltip:K,headSegment:E,headMenuItems:B?[{label:le,icon:"list",onClick:B,closeOnSelect:!0}]:void 0,title:F(r),titleLevel:s,titleClassName:H?"h5 chart-section-title--small":void 0,headRight:H?w??void 0:({collapsed:ee})=>n.jsxs(n.Fragment,{children:[!y&&n.jsx(Su,{control:q}),w,B&&!ee&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(be,{htmlType:"button",size:M,type:"dot",icon:"list",ariaLabel:le,showTooltipInfo:le,onClick:B})})]}),subRow:n.jsxs(n.Fragment,{children:[m?C||b||h&&k?n.jsx(Xa,{label:H?void 0:`${F(q.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${F(h??c)}`,children:k?(k(j).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((ee,z)=>/\d/.test(ee)?n.jsx("span",{className:"barchart-total__num h0",children:ee},z):n.jsx("span",{className:"barchart-total__unit h5",children:ee},z)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:j}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:F(p)})]})}):n.jsxs(Xa,{children:[n.jsx("span",{className:"barchart-total__num h0",children:j}),n.jsx("span",{className:"barchart-total__unit h5",children:F(c)}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:F(p)})]}):n.jsx("span",{}),n.jsx(Io,{items:O,className:"caption-1"})]}),children:v?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(ca,{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"}),T.some(ee=>!!ee.sublabel)&&n.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):n.jsx(Tv,{focusableBars:e,data:T,colorA:i,colorB:d?u:void 0,labelA:F(c),labelB:d?F(d):void 0,barWidth:a??Q.barWidth,barGap:I,baseline:L,height:Q.height,maxOverride:C?100:void 0,tightMax:_,seriesColors:x?.map(ee=>ee.color),seriesLabels:x?.map(ee=>ee.label),rateLabels:C?{total:F("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:F("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:V})})}const ju=120,Rv={left:38,right:16,top:26,bottom:24};function Pv({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,y]=o.useState(null);o.useEffect(()=>{if(!g)return;const L=U=>h(Math.round(U)||null);if(L(g.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const Z=new ResizeObserver(([U])=>L(U.contentRect.width));return Z.observe(g),()=>{Z.disconnect()}},[g]);const{payload:C,anchorRect:f,openAfterDelay:_,close:b}=My(ju),k=o.useCallback((L,Z)=>{L&&_(L,Z.getBoundingClientRect())},[_]),x=p??i,N=l,{left:v,right:B,top:w,bottom:E}={...Rv,...u},[D,A]=t,R=L=>A===D?v:v+(x-v-B)*(L-D)/(A-D),$=L=>w+(N-w-E)*(100-L)/100,K={x:R,y:$,plot:{left:v,right:x-B,top:w,bottom:N-E,width:Math.max(0,x-v-B),height:Math.max(0,N-w-E)}},M=e.filter(L=>!L.hollow),I=s??"var(--color-main)";return n.jsxs(n.Fragment,{children:[n.jsxs("svg",{ref:y,className:we("line-chart",m),viewBox:`0 0 ${x} ${N}`,role:"img","aria-label":d??e.map(L=>L.description).filter(Boolean).join(", "),children:[r&&n.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(L=>n.jsxs("g",{children:[n.jsx("line",{className:"line-chart__grid",x1:v,x2:x-B,y1:$(L),y2:$(L)}),n.jsxs("text",{className:"line-chart__tick",x:v-6,y:$(L)+4,textAnchor:"end",children:[L,"%"]})]},L)),c?.(K),a.map(L=>n.jsx("text",{className:"line-chart__tick",x:R(L.x),y:N-5,textAnchor:"middle",children:L.label},L.x)),M.length>1&&n.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:I,points:M.map(L=>`${R(L.x)},${$(L.pct)}`).join(" ")}),e.map(L=>n.jsxs("g",{className:"line-chart__dot",onPointerEnter:Z=>k(L.description,Z.currentTarget),onPointerLeave:b,children:[n.jsx("circle",{className:"line-chart__dot-hit",cx:R(L.x),cy:$(L.pct),r:12}),n.jsx("circle",{className:we("line-chart__dot-main",L.hollow&&"is-hollow"),cx:R(L.x),cy:$(L.pct),r:4,stroke:I,fill:L.hollow?void 0:I})]},L.x))]}),C!=null&&n.jsx(gn,{anchorRect:f,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:C,children:C})]})}function Iv({icon:e,iconSize:t=56,title:a,titleClass:r="h2",description:s,tipGroups:l,start:i,className:u}){return n.jsxs("div",{className:we("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:we("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 Fv(e,t=0){if(e.period==="month"){const s=Ca(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=$a();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,v=Math.max(0,Math.min(N,1-x));return b.push({color:k.color,rotate:-90+x*360,dash:g*v,acc:x+v}),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 y=(t??0)>0?Math.min((e??0)/t,1):0,C=g*y,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}),y>0&&n.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${C} ${f}`,strokeLinecap:y<.02||y>.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(y)}),!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 Ov({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:y}=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(st,{icon:r,className:"chart-section-icon-inner"})});return n.jsx(Fo,{className:k,inGrid:d,onClick:m,ariaLabel:p,tooltip:h,title:y(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(Xa,{label:!f&&l?y(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(ca,{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 zv({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}=Ia(),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"),y=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,y].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(st,{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}),y&&n.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${g??"neutral"} caption-1`,children:y})]}),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:y="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 v=Math.min(r,Math.max(a,e)),B=r>a?(v-a)/(r-a):0,w=l==="vertical",E=!t,D=X=>t?.(Number(X.target.value)),A=typeof d=="number"?`${d}px`:d,R={"--slider-ratio":String(B),"--slider-thumb":`${i}px`,...A?w?{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 X=N!=="dash",V=oe=>X?`radial-gradient(circle, ${oe} 0.5px, transparent 1px)`:w?`linear-gradient(to bottom, transparent calc(50% - 2px), ${oe} calc(50% - 2px), ${oe} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${oe} calc(50% - 2px), ${oe} calc(50% + 2px), transparent calc(50% + 2px))`,T=X?"2px":"4px",j=[],O=[],H=[];for(let oe=0;oe<=K;oe++){const ne=oe*$/(r-a);if(ne>1+1e-6)break;const le=`${((w?1-ne:ne)*100).toFixed(4)}%`,ee=ne<=B+1e-6;if(ee?!k:!b)continue;const z=ee?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";j.push(V(z)),O.push(w?`${T} var(--slider-thumb)`:`var(--slider-thumb) ${T}`),H.push(w?`center ${le}`:`${le} center`)}j.push(w?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),O.push("100% 100%"),H.push("0 0"),R.backgroundImage=j.join(", "),R.backgroundSize=O.join(", "),R.backgroundPosition=H.join(", "),R.backgroundRepeat="no-repeat"}const M=h?h(v):p==="percent"?`${Math.round(r>a?(v-a)/(r-a)*100:0)}%`:p==="count"?`${v} / ${r}`:v===a&&f?f:v===r&&_?_:void 0,I=n.jsx("input",{type:"range",className:we("slider",`slider--${l}`,E&&"slider--static",!p&&!C&&m),min:a,max:r,step:s,value:v,disabled:u,readOnly:E,tabIndex:E?-1:void 0,"aria-label":c,"aria-valuetext":M,"aria-orientation":l,onChange:D,style:R});if(!p&&!C)return I;const L=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:f??a}),Z=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??r}),U=C?n.jsxs("div",{className:we("slider-track-group",`slider-track-group--${l}`,!p&&m),children:[w?Z:L,I,w?L:Z]}):I;if(!p)return U;const F=g??(w?"bottom":"right"),Q=`${Math.round(r>a?(v-a)/(r-a)*100:0)}%`,P=h?h(v):p==="percent"?Q:p==="count"?`${v} / ${r}`:String(v),q=n.jsx("span",{className:"slider-wrap__value body-3b",children:P});return n.jsxs("div",{className:we("slider-wrap",`slider-wrap--${l}`,`slider-wrap--label-${F}`,`slider-wrap--align-${y}`,m),children:[U,q]})}const Wv=.86,Hv=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),y=o.useRef(null),C=o.useRef(null),f=o.useRef(null),[_,b]=o.useState(null);o.useEffect(()=>{const v=I=>{const L=qo(I,c,d,m);C.current&&(C.current.textContent=L);const Z=g.current;Z&&(Z.setAttribute("aria-valuenow",String(Vo(I,c,d,m))),Z.setAttribute("aria-valuetext",L))},B=e??FC(t)??(_&&_.el===t?_.node:null),w=y.current;if(!B||!w){w?.style.setProperty("--meter-level","0"),v(u);let I=!1;return!e&&t&&ar(t).then(L=>{!I&&L&&b({el:t,node:L})}),()=>{I=!0}}to();const E=new Float32Array(B.fftSize);let D=0,A=0,R=0,$=0,K=null;const M=I=>{const L=OC(B,E);D=L>D?L:D*Wv;const Z=D>1e-5?20*Math.log10(D):-1/0,U=Math.max(u,Z),F=U-c,Q=Math.min(1,Math.max(0,(F-d)/(m-d)));if(w.style.setProperty("--meter-level",Q.toFixed(3)),A+=U,R+=1,I-$>=Hv){const P=A/R;K=K==null?P:K*.6+P*.4,v(K),A=0,R=0,$=I}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:y,className:"audio-meter__fill"})}),N=l??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:g,className:we("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,y=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),v=o.useRef(()=>{});v.current=E=>{E<0||(C.current=Date.now(),f.current=E,y.current=setTimeout(()=>{y.current=null,l(!1),b.current=setTimeout(()=>{u(!1);try{h.current()}catch{}},Pu)},E))};const B=o.useCallback(()=>{_.current||!y.current||(_.current=!0,clearTimeout(y.current),y.current=null,f.current=Math.max(0,f.current-(Date.now()-C.current)))},[]),w=o.useCallback(()=>{_.current&&(_.current=!1,v.current(f.current))},[]);return o.useEffect(()=>{if(e!==p.current&&(y.current&&(clearTimeout(y.current),y.current=null),b.current&&(clearTimeout(b.current),b.current=null)),e){if(d.current)return g>0&&!y.current&&(_.current?f.current=g:v.current(g)),p.current=e,()=>{y.current&&(clearTimeout(y.current),y.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,v.current(g))}else l(!1),b.current=setTimeout(()=>u(!1),Pu);return p.current=e,()=>{y.current&&clearTimeout(y.current),b.current&&clearTimeout(b.current),k.current&&cancelAnimationFrame(k.current),x.current&&cancelAnimationFrame(x.current),N.current&&clearTimeout(N.current),y.current=null,b.current=null,k.current=null,x.current=null,N.current=null}},[e,g,t]),{mounted:i,showing:s,popupRef:m,pause:B,resume:w}}function fa({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",y=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(y,document.body):y}const Vv=24;function qv({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,y=Number.isFinite(t)&&t>0?t:0,C=u??(a>=Vv?"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:we("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":y,"aria-valuetext":l?i?i(h):l==="percent"?void 0:l==="raw"?String(h):`${h} / ${y}`: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} / ${y}`})]})}const Fu={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Uv="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=mn("(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"]=Uv),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((y,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((y,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 Gv(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 Kv({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(y=>{s&&y.target===y.currentTarget&&(y.key==="Enter"||y.key===" ")&&(y.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(ca,{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 Yv({dir:e}){return n.jsx(e==="asc"?Xs:Zs,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Zv({children:e,onClick:t,className:a,sortDir:r,ariaSort:s,onResizeStart:l}){const i=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(Yv,{dir:r})]});return n.jsxs("div",{onClick:t,role:"columnheader","aria-sort":s,className:we("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:y,resizable:C=!0,resizeMode:f="grow",resizeStorageKey:_,size:b="small",title:k,icon:x,count:N,collapsed:v=!1,onToggleCollapse:B,headerActions:w,empty:E,loading:D,dragOver:A=!1,onDragOver:R,onDragLeave:$,onDrop:K,renderExpandedRow:M,expandedId:I}){const{t:L}=xe.useTranslation(),Z=o.useId(),U=`table-title-${Z}`,F=`table-row-hint-${Z}`,[Q,P]=o.useState(null),q=o.useCallback((re,Ce)=>{const Fe=e[Ce];if(!Fe)return;if(Fe.sortValue)return Fe.sortValue(re);if(Fe.sortKey)return re[Fe.sortKey];const Qe=l(re)[Ce]?.content;return typeof Qe=="string"||typeof Qe=="number"?Qe:void 0},[e,l]),X=!t&&a&&!e.some(re=>re.sortDir!==void 0||re.onClick),V=o.useCallback(re=>{const Ce=e[re];if(!Ce||Ce.sortable===!1)return!1;if(Ce.sortValue||Ce.sortKey)return!0;const Fe=s[0];return Fe!==void 0&&q(Fe,re)!==void 0},[e,s,q]),T=o.useMemo(()=>t?e.map(re=>{if(!re.sortKey||re.sortDir!==void 0)return re;const Ce=t.field(String(re.label??""),re.sortKey);return{...re,sortDir:Ce.sortDir,onClick:re.onClick??Ce.onClick}}):X?e.map((re,Ce)=>V(Ce)?{...re,sortDir:Q?.index===Ce?Q.asc?"asc":"desc":null,onClick:()=>P(Fe=>Fe?.index===Ce?{index:Ce,asc:!Fe.asc}:{index:Ce,asc:!0})}:re):e,[e,t,X,Q,V]),j=o.useMemo(()=>{if(!X||!Q)return s;const{index:re,asc:Ce}=Q;return[...s].sort((Fe,Qe)=>pr(q(Fe,re),q(Qe,re),Ce))},[s,X,Q,q]),O=mn("(max-width: 767px)"),H=y&&O?y:null,oe=C&&!O,ne=o.useRef(oe);ne.current=oe;const le=48,ee=40,z=o.useRef(()=>le),te=_?`table-cols:${_}`:null,W=o.useRef(null),G=o.useRef(null),pe=o.useRef(null),Ee=o.useRef(null),[ve,me]=o.useState(!1),[ce,ge]=o.useState(0),he=o.useCallback(()=>{const re=pe.current;if(!re)return;const Ce=Ee.current,Fe=W.current;if(Ce&&(Ce.style.minWidth="",Fe)){const Qe=Fe.scrollWidth,ct=ne.current?ee:0;Ce.style.minWidth=Qe>re.clientWidth+1?`${Qe+ct}px`:""}me(re.scrollWidth>re.clientWidth+1),ge(re.clientWidth)},[]),de=o.useCallback((re,Ce)=>{const Fe=re.current;Fe&&G.current&&G.current.unobserve(Fe),re.current=Ce,Ce?(!G.current&&typeof ResizeObserver<"u"&&(G.current=new ResizeObserver(()=>he())),G.current?.observe(Ce)):!pe.current&&!Ee.current&&(G.current?.disconnect(),G.current=null),he()},[he]),Le=o.useCallback(re=>de(pe,re),[de]),ze=o.useCallback(re=>de(Ee,re),[de]);o.useEffect(()=>{he()}),o.useEffect(()=>{if(typeof window>"u")return;const re=typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>he()):null;return window.addEventListener("resize",he),()=>{re!=null&&cancelAnimationFrame(re),window.removeEventListener("resize",he)}},[he]);const Me=o.useRef(()=>!1),Ve=o.useRef([]),We=o.useRef(null),dt=re=>{if(!re||typeof window>"u")return null;try{const Ce=JSON.parse(window.localStorage.getItem(re)??"null");return Array.isArray(Ce)&&Ce.length>0&&Ce.every(Fe=>typeof Fe=="number"&&Number.isFinite(Fe)&&Fe>0)?Ce:null}catch{return null}},[lt,tt]=o.useState(()=>dt(te)),[yt,_e]=o.useState(te),[Ge,Be]=o.useState(()=>dt(te)!==null);if(yt!==te){_e(te);const re=dt(te);tt(re),Be(re!==null)}const qe=o.useRef(lt);o.useEffect(()=>{qe.current=lt},[lt]);const Ke=o.useCallback(re=>{const Ce=We.current;if(!Ce)return;const Fe=qe.current;if(Fe){const Qe=[...Fe],ct=()=>le;if(Ce.next!=null&&Ce.startWNext!=null){const ot=re.clientX-Ce.startX,It=Math.max(ct()-Ce.startW,Math.min(Ce.startWNext-ct(),ot));Qe[Ce.index]=Ce.startW+It,Qe[Ce.next]=Ce.startWNext-It}else Qe[Ce.index]=Math.max(ct(),Ce.startW+(re.clientX-Ce.startX));qe.current=Qe,tt(Qe)}},[]),pt=o.useCallback(()=>{if(We.current=null,window.removeEventListener("pointermove",Ke),window.removeEventListener("pointerup",pt),window.removeEventListener("pointercancel",pt),document.body.style.cursor="",document.body.style.userSelect="",te&&qe.current)try{window.localStorage.setItem(te,JSON.stringify(qe.current))}catch{}},[Ke,te]),xt=o.useCallback((re,Ce)=>{Ce.preventDefault(),Ce.stopPropagation();const Fe=W.current;if(!Fe)return;const Qe=Array.from(Fe.children).map(ot=>ot.getBoundingClientRect().width),ct=f==="fit"?T.findIndex((ot,It)=>It>re&&ot.resizable!==!1):-1;We.current=ct>=0?{index:re,startX:Ce.clientX,startW:Qe[re],next:ct,startWNext:Qe[ct]}:{index:re,startX:Ce.clientX,startW:Qe[re]},qe.current=Qe,tt(Qe),Be(!0),window.addEventListener("pointermove",Ke),window.addEventListener("pointerup",pt),window.addEventListener("pointercancel",pt),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[Ke,pt,f,T]),Dt=o.useCallback(()=>{const re=W.current,Ce=re?.closest(".table-wrap");if(!re||!Ce)return null;const Fe=Ce.style.getPropertyValue("--table-grid-cols");Ce.style.setProperty("--table-grid-cols",T.map(()=>"max-content").join(" "));const Qe=Array.from(Ce.querySelectorAll(".table-row")).filter(Rt=>!Rt.classList.contains("table-row--loading")&&!Rt.classList.contains("table-row--empty")),ct=T.map((Rt,ht)=>{let Ct=re.children[ht]?.getBoundingClientRect().width??0;for(const zt of Qe){const Cn=zt.children[ht];Cn&&(Ct=Math.max(Ct,Cn.getBoundingClientRect().width))}const wt=Me.current(ht)?parseFloat(Ve.current[ht]):NaN;return Number.isFinite(wt)&&Math.ceil(Ct)>wt&&Tt(`table-fixed-col-overflow:${ht}:${wt}`,`[ihabdevteam-core] Table \uC758 ${ht+1}\uBC88\uC9F8 \uC5F4\uC744 ${wt}px \uB85C \uC815\uD574 \uB450\uC5C8\uB294\uB370 \uC548\uC758 \uB0B4\uC6A9\uC740 ${Math.ceil(Ct)}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(Ct)}px \uC774\uC0C1\uC73C\uB85C \uB298\uB9AC\uC138\uC694.`),Number.isFinite(wt)?wt:Math.max(z.current(ht),Math.ceil(Ct))}),ot=window.getComputedStyle(re),It=re.clientWidth-(parseFloat(ot.paddingLeft)||0)-(parseFloat(ot.paddingRight)||0);Fe?Ce.style.setProperty("--table-grid-cols",Fe):Ce.style.removeProperty("--table-grid-cols");let Yt=ct;const kn=ct.reduce((Rt,ht,Ct)=>Rt+(Me.current(Ct)?ht:0),0),Vt=ct.reduce((Rt,ht,Ct)=>Rt+(Me.current(Ct)?0:ht),0),Zt=It-kn;if(It>0&&Vt>0&&Zt>0){const Rt=Zt/Vt;Yt=ct.map((Ct,wt)=>Me.current(wt)?Ct:Math.max(z.current(wt),Math.round(Ct*Rt)));const ht=Math.round(Zt-Yt.reduce((Ct,wt,zt)=>Ct+(Me.current(zt)?0:wt),0));if(ht!==0){let Ct=-1;Yt.forEach((wt,zt)=>{!Me.current(zt)&&(Ct<0||wt>Yt[Ct])&&(Ct=zt)}),Ct>=0&&(Yt[Ct]=Math.max(z.current(Ct),Yt[Ct]+ht))}}return Yt},[T,f]),St=(re,Ce)=>re!==null&&re.length===Ce.length&&re.every((Fe,Qe)=>Fe===Ce[Qe]),it=o.useRef(Dt);o.useEffect(()=>{it.current=Dt});const[at,At]=o.useState(0),_t=j.length>0,Mt=`${te??""}|${at}|${T.length}|${ce}`,Ne=!Ge&&oe&&te!==null&&!D?`${Mt}|${_t?1:0}`:null,$e=o.useRef(null);o.useEffect(()=>{if(Ne===null||!_t||$e.current===Mt)return;const re=it.current();re&&($e.current=Mt,tt(Ce=>St(Ce,re)?Ce:re))},[Ne]);const Se=o.useCallback(()=>{if(te)try{window.localStorage.removeItem(te)}catch{}Be(!1);const re=it.current();tt(re),qe.current=re,At(Ce=>Ce+1)},[te]);o.useEffect(()=>()=>{We.current&&(window.removeEventListener("pointermove",Ke),window.removeEventListener("pointerup",pt),window.removeEventListener("pointercancel",pt),document.body.style.cursor="",document.body.style.userSelect="")},[Ke,pt]);const He=T.length>0&&T.every(re=>re.width!=null)?T.map(re=>typeof re.width=="number"?`${re.width}px`:String(re.width)).join(" "):null;T.some(re=>re.width!=null)&&!He&&Tt(`table-field-width:${T.map(re=>re.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."),He&&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 rt=g??He??void 0,vt=Gv(rt),et=vt.filter(re=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(re));et.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(${et.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 Nt=T.findIndex(re=>!!re.sortDir);T.filter(re=>!!re.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 Ye=re=>re===Nt?T[re].sortDir==="asc"?"ascending":"descending":T[re].onClick?"none":void 0,bt=re=>/^\d+(\.\d+)?px$/.test(vt[re]??""),kt=re=>{const Ce=vt[re]??"",Fe=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(Ce)??/^(\d+(?:\.\d+)?)px$/.exec(Ce);return Fe?parseFloat(Fe[1]):le};Me.current=bt,z.current=kt,Ve.current=vt;const gt=re=>f==="fit"&&!bt(re)?"fr":"px",ft=lt&<.length===T.length&&!O,ut=H??(ft?T.map((re,Ce)=>re.resizable===!1&&vt[Ce]?vt[Ce]:`${lt[Ce]}${gt(Ce)}`).join(" "):rt),De=ut?{"--table-grid-cols":ut}:void 0,nt=k!==void 0;return n.jsxs("div",{ref:Le,className:`table-wrap table-wrap--${b}${oe?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${v?" table-wrap--collapsed":""}`,style:De,onDragOver:R,onDragLeave:$,onDrop:K,tabIndex:ve?0:void 0,role:ve?"region":void 0,"aria-label":ve?typeof k=="string"?k:L("table.scrollRegion","\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"):void 0,children:[!!i&&n.jsx("span",{id:F,className:"table-row-hint",children:L("table.rowActionHint","\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4")}),n.jsxs("div",{ref:ze,role:"table","aria-labelledby":nt&&typeof k=="string"?U:void 0,className:"table body-2",children:[nt&&n.jsxs("div",{className:we("table-header",B&&"table-header--clickable"),onClick:B,role:"caption",children:[B&&n.jsx(be,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:v?"chevron-right":"chevron-down",ariaLabel:v?L("common.expand","\uD3BC\uCE58\uAE30"):L("common.collapse","\uC811\uAE30"),ariaExpanded:!v,className:"table-header__chevron"}),x&&n.jsx(st,{icon:x,label:typeof k=="string"?k:void 0,className:"table-header__icon"}),n.jsx("span",{id:U,className:"table-header__title h5b",children:k}),N!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:N}),w&&n.jsx("span",{className:"table-header__actions",onClick:re=>re.stopPropagation(),children:w})]}),!v&&n.jsxs(n.Fragment,{children:[r&&r.length>0&&n.jsx("div",{role:"row",className:"table-fields table-fields--groups",children:r.map((re,Ce)=>n.jsx("div",{role:"columnheader","aria-colspan":re.span,className:we("table-field body-3",re.className),style:{gridColumn:`span ${re.span}`},children:re.label},Ce))}),n.jsxs("div",{role:"presentation",className:we("table-fields-strip",oe&&"table-fields-strip--resizable"),children:[n.jsx("div",{role:"row",className:"table-fields",ref:W,children:T.map((re,Ce)=>n.jsx(Zv,{onClick:re.onClick,className:we(re.className,zu(re.align)),sortDir:re.sortDir,ariaSort:Ye(Ce),onResizeStart:oe&&Ce<T.length-1&&re.resizable!==!1&&(f!=="fit"||T.some((Fe,Qe)=>Qe>Ce&&Fe.resizable!==!1))?Fe=>xt(Ce,Fe):void 0,children:re.label},Ce))}),oe&&n.jsx(be,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:L("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:L("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:Se})]}),n.jsx("div",{role:"rowgroup",className:"table-body",children:D?n.jsx(Go,{variant:"loading",colSpan:T.length||void 0}):j.length===0&&E?n.jsx(Go,{variant:"empty",colSpan:T.length||void 0,children:E}):j.map((re,Ce)=>{const Fe=h!=null&&re.id===h,Qe=!!i&&(u?u(re):!0),ct=I!=null&&re.id!=null&&(I instanceof Set?I.has(re.id)||[...I].some(ot=>String(ot)===String(re.id)):String(re.id)===String(I));return n.jsx(Go,{className:`${Qe?" table-row--clickable":""}${m?" table-row--draggable":""}${Fe?" table-row--dragging":""}`.trim(),draggable:!!m,onClick:Qe?()=>i(re):void 0,colSpan:T.length||void 0,rowHasButton:l(re).some(ot=>!!ot.rowLabel),describedBy:F,onMouseEnter:c?ot=>c(re,ot):void 0,onMouseLeave:d?ot=>d(re,ot):void 0,onDragStart:m?ot=>m(re,ot):void 0,onDragEnd:p?ot=>p(re,ot):void 0,expandedContent:ct&&M?M(re):void 0,children:l(re).map((ot,It)=>n.jsx(Kv,{className:we(ot.className,zu(T[It]?.align)),style:ot.style,rowLabel:Qe?ot.rowLabel:void 0,onRowClick:Qe?()=>i(re):void 0,children:ot.content},It))},re.id!=null?`${typeof re.id}:${re.id}`:`__idx:${Ce}`)})})]})]})]})}const Xv={hearingAid:"hearingAid",cochlearImplant:"cochlearImplant",other:"other",\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant",\uAE30\uD0C0:"other"};function Wu(e){return e?Xv[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 ba=e=>e==null?"":String(e).trim();function Yo(e,t,a,r){const s=ba(e),l=ba(t),i=ba(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 Jv(e,t,a){const r=ba(e);return r?`${r}-${ba(t).padStart(2,"0")}-${ba(a).padStart(2,"0")}`:""}function qu(e,t){return t!=="wornAt"?String(e[t]??""):Jv(e.wornYear,e.wornMonth,e.wornDay)}function Qv({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 pr(qu(b,f),qu(k,f),_)})},[e,m]),{pageRows:g,pageSizeProps:y,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:y,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 e4(e,t){return new Date(e,t+1,0).getDate()}function t4(e,t){return new Date(e,t,1).getDay()}function n4({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,y]=o.useState(null),C=o.useRef(null),f=o.useMemo(()=>{const v={};return e.forEach(B=>{v[B.date]||(v[B.date]=[]),v[B.date].push(B)}),v},[e]),_=o.useMemo(()=>{const v=e4(d,p),B=t4(d,p),w=[];for(let E=0;E<B;E++)w.push(null);for(let E=1;E<=v;E++)w.push(E);for(;w.length<35;)w.push(null);return w},[d,p]),b=o.useCallback(()=>{p===0?(m(v=>v-1),h(11)):h(v=>v-1)},[p]),k=o.useCallback(()=>{p===11?(m(v=>v+1),h(0)):h(v=>v+1)},[p]),x=v=>`${d}-${String(p+1).padStart(2,"0")}-${String(v).padStart(2,"0")}`,N=v=>x(v)===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(st,{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(st,{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(v=>n.jsx("div",{className:"calendar-day-header body-3",children:v},v)),_.map((v,B)=>{if(v===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${B}`);const w=v,E=x(w),D=f[E]??[],A=zl(E,i.language),R=g===E;return n.jsxs("div",{className:`calendar-cell${N(w)?" today":""}${R?" 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(w)?"date":void 0,onClick:r?()=>r(E):void 0,onKeyDown:r?$=>{$.target===$.currentTarget&&($.key!=="Enter"&&$.key!==" "||($.preventDefault(),r(E)))}:void 0,onDragOver:a?$=>{$.preventDefault(),y(E)}:void 0,onDragLeave:a?$=>{$.currentTarget.contains($.relatedTarget)||y(null)}:void 0,onDrop:a?$=>{$.preventDefault(),C.current!=null&&(a(C.current,E),C.current=null),y(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:w}),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),K=$.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":`${A} ${K}`,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(($,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?M=>{C.current=$.id,M.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{C.current=null,y(null)}:void 0,onClick:t?M=>{M.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))})]},w)})]})]})}const a4={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=a4[e],p=t||l||s||r,h=a?`h${a}`:"div";return n.jsxs("div",{className:we("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(st,{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 yr=20;function r4(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||{},[,y]=o.useState(0),C=typeof r<"u"?Array.isArray(r)?r:[]:[],f=C.length,[_,b]=o.useState(Math.min(f,yr)),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,yr))},[f]),Ri("speechear.data.updated",()=>y(B=>B+1));const x=o.useRef(null),N=o.useRef(null);function v(){const B=document.activeElement;N.current=gr()&&B&&B.closest?.(".training-block__more")?_:null,b(w=>Math.min(f,w+yr))}return o.useEffect(()=>{const B=N.current;if(B==null)return;N.current=null;const w=document.activeElement;w&&w!==document.body||x.current?.querySelectorAll(".training-block-button")[B]?.focus()},[_]),n.jsxs(ga,{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((B,w)=>{const E=B;return n.jsx(Lo,{index:w,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"}-${w}`)})}),f>yr&&_<f&&n.jsx("div",{className:"training-block__more",children:n.jsx(be,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:v,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function o4(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 s4({gap:e=10,count:t,className:a,children:r}){const s=o.useRef(null),[l,i]=o.useState({width:0,card:0}),u=t??o4(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 y=new ResizeObserver(g);return y.observe(h),()=>y.disconnect()},[u,e]);const c=l.card>0?l.card:0,d=c>0?pf(l.width,c,e):0,m=d>0?mf(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:we("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 l4='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 i4=l4,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,y=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=mn("(max-width: 767px)"),[N,v]=o.useState(!1),[B,w]=o.useState(!1),E=`${typeof y=="string"?y:y?.src??""}\0${h}`,[D,A]=o.useState({for:"",url:""}),R=D.for===E?D.url:"",$=Il(),K=e.textOnly??(!e.image&&!!_.label&&!!$&&$.entries.length>0&&!$.byWord.has(_.label)),M=K?"":la()?.(_.label,_.homonum)??e.image??"",{imgRef:I,loading:L,hasImage:Z,onLoad:U,onError:F}=Xo(M);o.useEffect(()=>{let H=!1;return(async()=>{if(y){if(typeof y=="string"){if(y.startsWith("http")||y.includes("/")){A({for:E,url:y});return}}else if(typeof y=="object"&&!Array.isArray(y)){const ne=y.src;if(ne){A({for:E,url:ne});return}}}const oe=Ea();if(oe&&h)try{const ne=await Promise.resolve(oe(h));!H&&ne&&A({for:E,url:ne})}catch{}})(),()=>{H=!0}},[y,h,E]);const Q=o.useRef(!0),P=o.useRef(null);o.useEffect(()=>(Q.current=!0,()=>{Q.current=!1,P.current&&Cr(P.current),P.current=null;try{k.current?.pause()}catch{}k.current=null}),[]);const q=o.useCallback(()=>new Promise(H=>{if(typeof window<"u"&&window.speechSynthesis&&h){v(!0),window.speechSynthesis.cancel();const oe=new SpeechSynthesisUtterance(h);oe.lang="ko-KR",oe.onend=()=>{v(!1);try{a?.()}catch{}H()},oe.onerror=()=>{v(!1),H()},window.speechSynthesis.speak(oe)}else H()}),[h,a]),X=o.useCallback(H=>{const oe=Ua(H,ne=>{if(v(!1),ne)try{a?.()}catch{}});return k.current=oe.el,oe.done},[a]),V=o.useCallback(async()=>{if(t||!Q.current)return;const H=()=>{P.current===H&&(P.current=null);try{k.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}v(!1)},oe=qa(H);P.current=H;try{window.speechSynthesis?.cancel()}catch{}try{if(R&&(v(!0),await X(R)))return;const ne=nr();if(ne&&h)try{w(!0);const le=await Promise.resolve(ne(h));if(!Q.current||P.current!==H||(w(!1),le&&(v(!0),await X(le))))return}catch{}if(!Q.current||P.current!==H)return;await q()}finally{P.current===H&&w(!1),oe(),P.current===H&&(P.current=null)}},[t,R,h,X,q]);o.useImperativeHandle(m,()=>({play:()=>V()}),[V]);const T=H=>H.stopPropagation(),j=o.useCallback(H=>{if(H.stopPropagation(),!t){if(N){try{k.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}v(!1);return}V()}},[t,N,V]),O=we("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:O,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?H=>{H.target===H.currentTarget&&(H.key==="Enter"||H.key===" "||H.key==="Spacebar")&&(H.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:T,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:K?n.jsx("div",{className:"training-word-card__text-face",children:_.label}):Z?n.jsxs(n.Fragment,{children:[L&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:I,className:"training-word-card__image",src:M,alt:_.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:L?0:1},onLoad:U,onError:F})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!u&&n.jsxs("div",{className:"training-word-card__body",children:[!K&&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?T: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,loading:B,onClick:j,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("${i4}")`}})})]})})}),u4=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:y="center",onClose:C,closeDisabled:f=!1,beforeClose:_,closeOnBackdrop:b=!0,className:k="",ariaLabel:x,useTitle:N=!0,inline:v=!1,size:B,layer:w="modal",height:E,fillBody:D=!1,resetScrollKey:A}=e||{},[R,$]=o.useState(!1),K=o.useRef(!1),M=o.useRef(null),I=o.useId(),L=o.useRef(null);o.useEffect(()=>{},[v,a,x,k]),o.useEffect(()=>{A!==void 0&&L.current&&(L.current.scrollTop=0)},[A]);const[Z,U]=o.useState(!1);o.useEffect(()=>{const z=L.current;if(!z)return;const te=()=>U(z.scrollHeight>z.clientHeight+1);if(te(),typeof ResizeObserver>"u")return;const W=new ResizeObserver(te);W.observe(z);const G=z.firstElementChild;return G&&W.observe(G),()=>W.disconnect()},[i,A]),o.useEffect(()=>{if(!v)return bu()},[v]);const F=o.useRef(typeof document>"u"?null:document.activeElement);o.useEffect(()=>{if(v)return;const z=F.current,te=M.current;return fo(te,z),te&&!te.contains(document.activeElement)&&(te.querySelector(xn)??te).focus(),()=>{const W=document.activeElement;(!W||W===document.body||te&&te.contains(W))&&bo(z)?.focus?.()}},[v]),ho(M,!v);const Q=o.useRef(!0),P=go(),q=o.useRef(null);o.useEffect(()=>(Q.current=!0,()=>{Q.current=!1,q.current&&(clearTimeout(q.current),q.current=null)}),[]);const X=o.useCallback(()=>{!Q.current||!K.current||(K.current=!1,$(!1))},[]),V=o.useCallback((z,te=!1)=>{if(te&&!Q.current||K.current)return;K.current=!0,$(!0);const W=setTimeout(()=>{q.current===W&&(q.current=null);let G;try{G=z?z():void 0}catch{X();return}G&&typeof G.then=="function"&&G.then(()=>{setTimeout(X,120)},X)},P?0:u4);te&&(q.current=W)},[X,P]),T=o.useCallback(()=>{f||_&&_()===!1||V(C,!0)},[V,C,f,_]),j=o.useRef(T);o.useEffect(()=>{j.current=T});const O=!v&&!!C;o.useEffect(()=>{if(O)return Gn(()=>j.current())},[O]);const H=O&&b,oe=o.useRef(!1),ne=z=>{oe.current=z.target===z.currentTarget},le=z=>{const te=oe.current;oe.current=!1,te&&z.target===z.currentTarget&&T()},ee=n.jsx("div",{className:`popup ${v?"popup--inline":""} ${w==="belowPagePopup"?"popup--below-page-popup":""} ${R?"popup--closing":""} ${k}`,onPointerDown:H?ne:void 0,onClick:H?le:void 0,onMouseDown:v?void 0:z=>{z.target===z.currentTarget&&z.preventDefault()},children:n.jsxs("div",{ref:M,className:`popup-panel${B?` popup-panel--${B}`:""}${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:v?void 0:"dialog","aria-modal":v?void 0:!0,"aria-labelledby":!v&&N&&a?I:void 0,"aria-label":!v&&!(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:T,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:I,className:"popup-title popup-title--left h2",children:a}):n.jsx("span",{id:I,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:T,disabled:f,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:L,tabIndex:Z?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:V,closeWithAnimation:T}):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:T}):d}),n.jsx("div",{className:"popup-footer__end",children:typeof m=="function"?m({animateThen:V,closeWithAnimation:T}):m})]}):u?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${y!=="center"?` popup-footer--${y}`:""}`,children:u.map((z,te)=>n.jsx(be,{htmlType:"button",size:48,variant:z.variant??"default",label:z.label,disabled:z.disabled,onClick:()=>z.onClick?.({animateThen:V,closeWithAnimation:T})},te))}):c?n.jsx("div",{className:`popup-footer${y!=="center"?` popup-footer--${y}`:""}${g?` ${g}`:""}`,children:typeof c=="function"?c({animateThen:V,closeWithAnimation:T}):c}):null]})});return v||typeof document>"u"?ee:sn.createPortal(ee,document.body)}function vr(e){return String(e)}const xr=["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 c4(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 d4(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 p4(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 m4(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 Qu(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=Qu(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/rc,i/g/oc),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 y=u(h,g);y>p&&(m={cols:h,rows:g},p=y)}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:""},ec={\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"},tc={\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 nc(e){return Object.fromEntries(Object.entries(ec).map(([t,a])=>[t,es[t]?e(`wordTable.pos.${es[t]}`,{defaultValue:a}):a]))}function ac(e){return Object.fromEntries(Object.entries(tc).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 rc=280,g4=240,y4=280,oc=400,v4=120,x4=280;function sc(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,lc=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),y=o.useRef(null),C=o.useRef(null),[f,_]=o.useState(1),[b,k]=o.useState(!1),[x,N]=o.useState(!1),[v,B]=o.useState({for:"",url:""}),[w,E]=o.useState(null),D=t&&t.length>0?t:PC()?.(e,s)??"",A=la()?.(e,s)??"",{imgRef:R,loading:$,failed:K,onLoad:M,onError:I}=Xo(A),L=o.useCallback(()=>E(y.current?.getBoundingClientRect()??null),[]),Z=o.useCallback(()=>E(null),[]),U=vo(!!w,ne=>{ne?L():Z()},y),F=o.useMemo(()=>{if(!m)return null;const ne=[];return m.grade&&ne.push(h("wordTable.info.grade",{n:m.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),m.syllables&&ne.push(h("wordTable.info.syllables",{n:m.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),m.pos&&ne.push(h("wordTable.info.pos",{v:ns(m.pos,nc(h)),defaultValue:"\uD488\uC0AC: {{v}}"})),m.wordType&&ne.push(h("wordTable.info.wordType",{v:ns(m.wordType,ac(h)),defaultValue:"\uC720\uD615: {{v}}"})),ne.length?ne:null},[m,h]),Q=D||e,P=v.for===Q?v.url:"";o.useEffect(()=>{const ne=Ea(),le=D||e;if(!ne||!le)return;let ee=!1;return Promise.resolve(ne(le)).then(z=>{!ee&&z&&B({for:le,url:z})}),()=>{ee=!0}},[D,e]);const q=o.useRef(null),X=o.useRef(null);o.useEffect(()=>()=>{C.current?.pause(),X.current?.()},[]);const V=o.useRef(null);o.useEffect(()=>()=>{V.current&&(V.current.cancelled=!0)},[]);const T=o.useCallback(ne=>{if(ne.stopPropagation(),b||x){q.current?.();return}if(!P){const ee=nr(),z=D||e;if(!ee||!z)return;const te={cancelled:!1,stop:null};V.current=te;const W=()=>{te.cancelled=!0,te.stop?.(),N(!1),k(!1),X.current?.()};q.current=W,X.current=qa(W),N(!0),Promise.resolve().then(()=>ee(z)).then(G=>{if(te.cancelled)return;if(!G){W();return}B({for:z,url:G});const pe=Ua(G,()=>{k(!1),X.current?.()});C.current=pe.el,te.stop=pe.stop,N(!1),k(!0)}).catch(()=>{W()});return}k(!0);const le=Ua(P,()=>{k(!1),X.current?.()});C.current=le.el,q.current=le.stop,X.current=qa(le.stop)},[b,x,P,D,e]),j=i&&!!A&&!K,O=j&&l?rc:j?y4:g4,H=j&&l?oc:j?x4:v4;o.useEffect(()=>{const ne=g.current;if(!ne||typeof ResizeObserver>"u")return;const le=new ResizeObserver(([ee])=>{const{width:z,height:te}=ee.contentRect;_(Math.min(z/O,te/H))});return le.observe(ne),()=>le.disconnect()},[O,H]);const oe=d*p<_4;return n.jsxs("div",{ref:g,className:we("word-table-cell",oe&&"word-table-cell--tap-too-small",j?"word-table-cell--with-image":""),"data-ref-w":O,"data-ref-h":H,children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${f})`},children:[j&&n.jsxs("div",{className:"word-table-cell__image-wrap",children:[$&&n.jsx("div",{className:"word-table-cell__spinner"}),n.jsx("img",{ref:R,className:"word-table-cell__image",src:A,alt:e,draggable:!1,style:{opacity:$?0:1},onLoad:M,onError:I})]}),r&&n.jsx("span",{className:"word-table-cell__caption h5",children:r}),l&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),u&&D&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",D,"]"]}),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":P,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,loading:x,showTooltipInfo:x?h("common.loading","\uBD88\uB7EC\uC624\uB294 \uC911"):h("common.play","\uC7AC\uC0DD"),ariaLabel:e?h("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):h("common.play","\uC7AC\uC0DD"),onClick:T})}),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:T})})]}),m&&n.jsxs("div",{ref:y,className:"word-table-cell__info-button",onPointerEnter:ne=>{pa(ne)||L()},onPointerLeave:ne=>{pa(ne)||Z()},onFocus:()=>{ma()||L()},onBlur:Z,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:ne=>{ne.stopPropagation(),U.touchPress()}}),w&&F&&n.jsx(Kn,{anchorRect:w,items:F,showIndex:!1})]})]})}function ya({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:y=null,onActivateCell:C,onRemoveCell:f,onRemoveItem:_,onReorder:b,renderCellAction:k,showFillerAdd:x=!1,addableCount:N,contentRef:v,buttonSize:B=40,brand:w,code:E,pageNumber:D,pageNumberPosition:A="right",fitHeight:R=!1,scoring:$=!1,marks:K,onMarkClick:M,scoreIndexOffset:I=0}){const L=o.useCallback((Ne,$e)=>{M?.(I+Ne,$e)},[M,I]),Z=(Ne,$e)=>{const Se=K?.[vr(I+Ne)]??null;return n.jsx("div",{className:we("word-table-cell__score",Se?"word-table-cell__score--marked":""),style:At>1?{transform:`translateX(-50%) scale(${At})`,transformOrigin:"bottom center"}:void 0,children:xr.map(He=>n.jsx("span",{className:we("word-table-cell__score-slot",Se===He?"word-table-cell__score-slot--on":""),children:n.jsx(be,{htmlType:"button",size:B,type:"dot",shape:"pill",icon:Zu[He],variant:Se===He?Xu[He]:"default",selected:Se===He,useBorder:!1,...at?{}:{tabIndex:-1,role:"img"},showTooltipInfo:U(`wordTable.scoring.markName.${He}`,{defaultValue:He}),ariaLabel:U(`wordTable.scoring.${He}`,{word:$e,defaultValue:`${$e} ${He}`}),onClick:at?rt=>{rt.stopPropagation(),L(Ne,He)}:void 0})},He))})},{t:U}=xe.useTranslation(),F=h!==void 0,Q=e!=null||!!t||!!a,P=mn("(max-width: 767px)"),q=o.useRef(null),[X,V]=o.useState(null),T=p?.length??0,[j,O]=o.useState(null),[H,oe]=o.useState(""),ne=o.useRef(null),le=o.useRef(null),ee=o.useRef(null),z=o.useRef(null),te=o.useCallback(Ne=>{le.current=Ne,typeof v=="function"?v(Ne):v&&(v.current=Ne)},[v]),W=o.useCallback((Ne,$e)=>{ne.current=$e,b?.(Ne,$e),oe(U("wordTable.reorder.moved",{n:$e+1,total:T,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[b,U,T]);o.useEffect(()=>{const Ne=ne.current;Ne!=null&&(ne.current=null,le.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler):not(.word-table-block__card--base)")?.[Ne]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{z.current?.()},[]);const G=o.useCallback((Ne,$e)=>{if(!b||!Ne.altKey||Ne.ctrlKey||Ne.metaKey)return;const Se=Ne.key==="ArrowRight";if(!Se&&Ne.key!=="ArrowLeft")return;Ne.preventDefault();const He=$e+(Se?1:-1);He<0||He>=T||W($e,He)},[b,T,W]),pe=o.useCallback((Ne,$e)=>{if(!b||Ne.pointerType==="mouse")return;const Se=Ne.target.closest?.("button");if(Se&&!Se.closest(".word-table-block__card-handle"))return;z.current?.();const He={x:Ne.clientX,y:Ne.clientY};let rt=!1;const vt=ut=>{rt&&ut.cancelable&&ut.preventDefault()};let et=null,Nt=null;const Ye=()=>{const ut=Nt;if(!ut)return;const De=document.elementFromPoint?.(ut.x,ut.y)?.closest?.("[data-wordtable-cell]"),nt=De?Number(De.dataset.wordtableCell):NaN,re=Number.isInteger(nt)?nt:null;ee.current=re,V(Ce=>Ce===re?Ce:re)},bt=ut=>{if(!rt){(Math.abs(ut.clientX-He.x)>lc||Math.abs(ut.clientY-He.y)>lc)&&ft();return}if(Nt={x:ut.clientX,y:ut.clientY},typeof requestAnimationFrame>"u"){Ye();return}et===null&&(et=requestAnimationFrame(()=>{et=null,Ye()}))},kt=()=>{et!==null&&(cancelAnimationFrame(et),et=null,Ye());const ut=ee.current,De=rt;ft(),De&&ut!=null&&ut!==$e&&W($e,ut)},gt=setTimeout(()=>{rt=!0,O($e),ee.current=$e,V($e),window.addEventListener("touchmove",vt,{passive:!1})},B4);function ft(){clearTimeout(gt),window.removeEventListener("pointermove",bt),window.removeEventListener("pointerup",kt),window.removeEventListener("pointercancel",kt),window.removeEventListener("touchmove",vt),rt=!1,et!==null&&(cancelAnimationFrame(et),et=null),ee.current=null,z.current=null,O(null),V(null)}z.current=ft,window.addEventListener("pointermove",bt),window.addEventListener("pointerup",kt),window.addEventListener("pointercancel",kt)},[b,W]),{width:Ee,height:ve}=Jn[s],me=typeof R=="number"?R:R&&typeof R=="object"?P?R.narrow:R.wide:null,{scalerRef:ce,scale:ge,offset:he}=sc(Ee,R?ve:void 0),de=F?h?.length??0:p?.length??0,Le=Math.max(g??de,1),ze=!F&&!!i,Me=C4(s,Le),Ve=Qu(s,Le),We=ze?Me.cols:Ve.cols,dt=ze?Me.rows:Ve.rows,lt=ze&&s==="landscape"?Me.cols*2:We,tt=ze&&s==="portrait"?Me.rows*2:dt,yt=Ne=>({word:Ne.length===0||Ne.includes("word"),image:Ne.length===0||Ne.includes("image"),pron:Ne.length===0||Ne.includes("standardPron"),colloq:Ne.length===0||Ne.includes("colloquialPron")}),_e=yt(l),Ge=yt(u??l),Be=F?(h??[]).some(Ne=>Ne!==null&&Ne.length>1):(p??[]).some(Ne=>(Ne.words??[]).length>1),qe=!!w?.show,Ke=!!w?.show&&w?.top!==!1,pt=!!w?.show&&w?.bottom!==!1,xt=w?.copyright??"\xA9 IHAB, Inc. All rights reserved.",Dt=we("word-table-block__content",f4[c],d&&"word-table-block__content--outline",m&&Be&&"word-table-block__content--div-line",!qe&&D&&A!=="none"&&"word-table-block__content--page-number",Ke&&"word-table-block__content--brand-top",pt&&"word-table-block__content--brand-bottom"),St={transform:`scale(${1/ge})`,transformOrigin:"center center"},it=B*xr.length+4*(xr.length-1),at=!!M,At=at?Math.max(1,Math.min(1/ge,Ee/lt/it)):1,_t=n.jsxs("div",{ref:ce,className:"word-table__scaler",style:{height:ve*ge},children:[n.jsx("div",{className:we("word-table",$&&!at&&"word-table--score-readonly",!Q&&r),style:{width:Ee,height:ve,transform:`scale(${ge})`,transformOrigin:"top left",marginLeft:he},children:n.jsxs("div",{ref:te,className:Dt,style:{gridTemplateColumns:`repeat(${lt}, 1fr)`,gridTemplateRows:`repeat(${tt}, 1fr)`},children:[F?n.jsx(n.Fragment,{children:(h??[]).map((Ne,$e)=>n.jsx("div",{className:we("word-table-block__edit-cell",Ne?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",y===$e?"word-table-block__edit-cell--active":""),style:as($e,lt,tt,c),children:Ne?n.jsxs(n.Fragment,{children:[Ne.map((Se,He)=>n.jsxs(o.Fragment,{children:[He>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(rs,{outerScale:ge,label:Se.word,subLabel:Se.pronunciation,colloquialLabel:Se.colloquialPronunciation,homonum:Se.homonum,showWord:_e.word,showImage:_e.image,showPronunciation:_e.pron,showColloquial:_e.colloq,buttonSize:B})]},He)),$&&Z($e,Ne.map(Se=>Se.word).join(" / ")),f&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(be,{htmlType:"button",size:B,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:Ne.length>1?U("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):U("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:Ne.length>1?U("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):U("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f($e)})})]}):C&&n.jsx("div",{style:St,children:n.jsx(be,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:U("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C($e)})})},$e))}):n.jsxs(n.Fragment,{children:[ze&&i&&n.jsx("div",{className:"word-table-block__card word-table-block__card--base",style:{gridColumn:`1 / span ${Me.cols}`,gridRow:`1 / span ${Me.rows}`,...as(0,s==="landscape"?2:1,s==="landscape"?1:2,c)},children:(i.words??[]).map((Ne,$e)=>n.jsxs(o.Fragment,{children:[$e>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(rs,{outerScale:ge,label:Ne.label,subLabel:Ne.subLabel,colloquialLabel:Ne.colloquialLabel,captionLabel:Ne.captionLabel,homonum:Ne.homonum,showWord:Ge.word,showImage:Ge.image,showPronunciation:Ge.pron,showColloquial:Ge.colloq,buttonSize:B,wordInfo:Ne.grade||Ne.syllables!=null||Ne.pos||Ne.wordType?{grade:Ne.grade,syllables:Ne.syllables,pos:Ne.pos,wordType:Ne.wordType}:void 0})]},$e))}),(p??[]).map((Ne,$e)=>n.jsxs("div",{"data-wordtable-cell":b?$e:void 0,className:`word-table-block__card${b?" word-table-block__card--draggable":""}${X===$e?" word-table-block__card--drag-over":""}${j===$e?" word-table-block__card--dragging":""}`,style:as($e,We,dt,c),draggable:!!b,onPointerDown:b?Se=>pe(Se,$e):void 0,onKeyDown:b?Se=>G(Se,$e):void 0,onDragStart:b?()=>{q.current=$e}:void 0,onDragOver:b?Se=>{Se.preventDefault(),V($e)}:void 0,onDragLeave:b?()=>V(null):void 0,onDrop:b?Se=>{Se.preventDefault(),q.current!==null&&q.current!==$e&&b(q.current,$e),q.current=null,V(null)}:void 0,onDragEnd:b?()=>{q.current=null,V(null)}:void 0,children:[(Ne.words??[]).map((Se,He)=>n.jsxs(o.Fragment,{children:[He>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(rs,{outerScale:ge,label:Se.label,subLabel:Se.subLabel,colloquialLabel:Se.colloquialLabel,captionLabel:Se.captionLabel,homonum:Se.homonum,showWord:_e.word,showImage:_e.image,showPronunciation:_e.pron,showColloquial:_e.colloq,buttonSize:B,wordInfo:Se.grade||Se.syllables!=null||Se.pos||Se.wordType?{grade:Se.grade,syllables:Se.syllables,pos:Se.pos,wordType:Se.wordType}:void 0})]},He)),$&&Z($e,(Ne.words??[]).map(Se=>Se.label).join(" / ")),b&&n.jsx("div",{className:"word-table-block__card-handle",children:n.jsx(be,{htmlType:"button",size:B,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:U("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:U("wordTable.reorder.handle",{word:(Ne.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?.($e,Ne),_&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(be,{htmlType:"button",size:B,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(Ne.words??[]).length>1?U("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):U("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(Ne.words??[]).length>1?U("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):U("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>_(Ne.id)})})]})]},$e)),Array.from({length:Math.max(0,We*dt-(p?.length??0))}).map((Ne,$e)=>{const Se=(p?.length??0)+$e<(N??Le);return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:x&&C&&Se&&n.jsx("div",{style:St,children:n.jsx(be,{htmlType:"button",size:B,type:"bar",icon:"plus",label:U("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C((p?.length??0)+$e)})})},`filler-${$e}`)})]}),Ke&&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??hr,alt:w?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const Ne=[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"),E&&n.jsx("span",{className:"word-table__code",children:E},"c")].filter(Boolean);return Ne.length===0?null:n.jsx("span",{className:"word-table__ident",children:Ne.map(($e,Se)=>n.jsxs(o.Fragment,{children:[Se>0&&n.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),$e]},Se))})})()]})}),pt&&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:xt})]}),n.jsxs("span",{className:"word-table__band-end",children:[w?.link&&n.jsx("span",{className:"word-table__link",children:w.link}),D&&A!=="none"&&n.jsx("span",{className:"word-table__page-count",children:U("wordTable.filter.pageIndicator",{current:D.current,total:D.total})})]})]})}),!qe&&D&&A!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${A}`,children:U("wordTable.filter.pageIndicator",{current:D.current,total:D.total})})]})}),b&&n.jsx("span",{role:"status",style:w4,children:H})]}),Mt=me==null?_t:n.jsx("div",{className:"word-table__frame",style:{height:me},children:_t});return Q?n.jsx(ga,{type:"page",icon:t,title:e,disc:a,className:we("word-table-block",r),children:Mt}):Mt}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!==yn);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:y}){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 R=A.target;!R||typeof R.closest!="function"||R.closest(".filter-panel__collapse-toggle")||R.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||x()},v=o.useMemo(()=>r!==void 0||!k?"":k4(d,m,f("common.all","\uC804\uCCB4")),[r,k,d,m,f]),B=r??(v?n.jsx("span",{className:"filter-panel__header-summary body-3",children:v}):null),w=e||a||r||s,E=o.useId(),D=t?`h${t}`:"span";return n.jsxs("div",{className:we("filter-panel",s?"filter-panel--collapsible":"",k?"filter-panel--collapsed":"",y),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?E:void 0,children:[w&&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?B: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:we("filter-panel__sections",C?"filter-panel__sections--row":""),children:d.map(A=>{const R=m[A.label],$=R===void 0||(Array.isArray(R)?R.length===0:!1),K=(A.items??[]).filter(I=>I!=null);A.allOption&&K.some(I=>(typeof I=="string"?I:I.value)===yn)&&Tt(`filter-panel-all-value:${A.label}`,`[FilterPanel] '${A.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${yn}' \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=I=>{const L=typeof I=="string"?I:I.value,Z=typeof I!="string"&&!!I.disabled,U=typeof I!="string"?I.labels:void 0,F=typeof I!="string"?I.displayLabel:void 0,Q=typeof I!="string"?I.tooltip:void 0,P=typeof I!="string"?I.descriptionTooltip:void 0,q=typeof I!="string"?I.shape:void 0,X=Array.isArray(R)?R.includes(L):R===L;return n.jsx(be,{htmlType:"button",size:"keyboard",label:U??F??L,type:A.itemType??(U?"bar":L.length===1?"dot":void 0),selected:X,disabled:Z,shape:q,showTooltipInfo:!!Q,tooltipInfoText:Q,tooltipDescription:P,onClick:()=>p?.(L,A.label)},L)};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:we("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(Va,{...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:I=>p?.(I,A.label),error:A.error}):!A.multiple&&A.display==="segmented"?n.jsx(_n,{ariaLabel:A.displayLabel??A.label,options:[...A.allOption?[{key:yn,label:A.allLabel??f("common.all","\uC804\uCCB4"),disabled:A.allOptionDisabled}]:[],...K.map(I=>{const L=typeof I=="string"?I:I.value,Z=typeof I!="string"?I.displayLabel:void 0,U=typeof I!="string"?I.disabled:void 0;return{key:L,label:Z??L,disabled:U}})],value:$&&A.allOption?yn:m[A.label]??"",onChange:I=>p?.(I,A.label),size:32}):!A.multiple&&A.display==="dropdown"?n.jsx(hn,{className:"filter-panel__dropdown",ariaLabel:typeof A.label=="string"?A.label:void 0,size:40,options:[...A.allOption?[{value:yn,label:A.allLabel??f("common.all","\uC804\uCCB4"),disabled:A.allOptionDisabled}]:[],...K.map(I=>{const L=typeof I=="string"?I:I.value,Z=typeof I!="string"?I.displayLabel:void 0,U=typeof I!="string"?I.disabled:void 0;return{value:L,label:Z??L,disabled:U}})],value:$&&A.allOption?yn:m[A.label],onChange:I=>p?.(I,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?.(yn,A.label)}),A.groups?A.groups.map((I,L)=>n.jsxs("div",{className:"filter-panel__item-group",children:[L===0&&A.allOption&&n.jsx(be,{htmlType:"button",size:"keyboard",label:A.allLabel??f("common.all","\uC804\uCCB4"),selected:$,disabled:A.allOptionDisabled,onClick:()=>p?.(yn,A.label)}),I.filter(Z=>Z!=null).map(M)]},L)):K.map(M)]})]})]},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],ic=[8,6,4,2,1],dn="show",Bn="hide";function uc(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 cc(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 dc(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 pc(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 mc(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 hc(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 Cc(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 fc(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...ic.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||!ic.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 gc(e){return e==="left"||e==="center"||e==="right"?e:"none"}function yc(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 vc(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===yn?(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:y,cutLine:C,showDivLine:f,setters:_,showCutLine:b=!1,showDivLine2:k=!1,middleSections:x=[],extraSelected:N={},onExtraSelect:v,showPaperBands:B=!1,showTopInfo:w=!0,showBottomInfo:E=!0}=e,D=[uc(t,{hasImage:m,hasColloquial:p}),cc(t),...x,dc(t),...b?[hc(t)]:[],...k?[Cc(t)]:[],...B?[pc(t),mc(t)]:[]],A={...yc(t,{contentTypes:h,orientation:g,showOutline:y,cutLine:C,showDivLine:f,showTopInfo:w,showBottomInfo:E}),...N},R=($,K)=>{vc(t,$,K,_)||v?.($,K)};return n.jsx(Mn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:D,selected:A,onSelect:R,...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 _r=null,va=null;function T4(e,t,a,r="",s=""){if(e.length===0||va&&va.iframe.isConnected&&Date.now()-va.at<1e4)return;const l=r?ls(r):"";_r?.();let i=null;if(l){const d=document.title;document.title=l,i=()=>{document.title=d,window.removeEventListener("afterprint",i),_r===i&&(_r=null)},_r=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}va={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(),va?.iframe===u&&(va=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(`
|
|
830
|
+
`),C=y===-1?a:a.slice(0,y);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 y=p[0];l(s&&hv.has(y)?"command":"identifier",y),a=a.slice(y.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 Lf(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:we("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((y,C)=>n.jsx("span",{className:`code-token ${y.type} ${g}`,children:y.content},C))})})]})}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:we("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 gv({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)&&ur(b,h.current)},[c]);const[y,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,R=D.some(L=>L.offsetTop!==A);if(!f.current){_.current=b.clientWidth,R&&k(!0);return}if(R)return;const $=D[0],K=D[D.length-1],M=K.offsetLeft+K.offsetWidth-$.offsetLeft,P=_.current;(P==null||M<=P)&&k(!1)};if(x(),typeof ResizeObserver>"u")return;const N=new ResizeObserver(x);N.observe(b);const v=b.parentElement;let B=v?.clientWidth??0;const w=new ResizeObserver(()=>{const E=v?.clientWidth??0;E!==B&&(B=E,_.current=null,x())});return v&&w.observe(v),()=>{N.disconnect(),w.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(Mt,{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${y?" 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 yv=[{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 vv(e){const{onClose:t,className:a}=e;return n.jsx("div",{className:we("item-actions",a),children:yv.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,y]=so(t).split("-");return{y:+g,m:+y-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 y=c.current.y*12+c.current.m+g,C=Math.floor(y/12),f=y-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,y)=>{c.current={y:g,m:y},s(g),i(y)},[]);return{viewY:r,viewM:l,prevMonth:m,nextMonth:p,setViewYM:h}}function fr(e,t){return new Date(e,t+1,0).getDate()}function xv(e,t){return new Date(e,t,1).getDay()}function Za(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function _v(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function wv(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:Za(a,r-1,s)}const Bv=1900;function kv(e,t,a,r,s){const l=r?+r.split("-")[0]:Math.min(Bv,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 Av({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=so(c),{viewY:y,viewM:C,prevMonth:f,nextMonth:_,setViewYM:b}=Bu(e,c),k=o.useId(),x=o.useCallback((z,te)=>{const W=window.innerHeight,G=window.innerWidth,de=typeof document<"u"?document.getElementById(k):null,Ee=Math.max(de?.offsetHeight||0,de?.scrollHeight||0)||300,ve=Math.max(z.width,de?.offsetWidth||0,260),me=W-z.bottom,ce=z.top,ge=me<Ee&&ce>me,he=8,pe=(Le,ze)=>Math.min(Math.max(he,Le),Math.max(he,ze));return{position:"fixed",left:pe(z.left,G-ve-he),width:z.width,minWidth:260,...ge?{top:"auto",bottom:pe(W-z.top+6,W-Ee-he)}:{bottom:"auto",top:pe(z.bottom+6,W-Ee-he)},zIndex:Fa(te)}},[k]),{open:N,setOpen:v,toggle:B,style:w,triggerRef:E,menuRef:D}=Oa({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 te=document.activeElement;(!te||te===document.body)&&E.current?.focus?.()}},[N,D,E]);const[A,R]=o.useState(1),$=o.useRef(null),K=o.useRef(null);o.useEffect(()=>{if(!N)return;const z=e&&e.slice(0,7)===`${y}-${String(C+1).padStart(2,"0")}`?+e.slice(8):g.slice(0,7)===`${y}-${String(C+1).padStart(2,"0")}`?+g.slice(8):1;R(z)},[N]),o.useEffect(()=>{if(K.current==null)return;const z=K.current;K.current=null,$.current?.querySelector(`[data-day="${z}"]`)?.focus()}),o.useEffect(()=>{R(z=>Math.min(z,fr(y,C)))},[y,C]);const M=o.useCallback(z=>{let te=Za(z.getFullYear(),z.getMonth(),z.getDate());r&&te<r&&(te=r),s&&te>s&&(te=s);const[W,G,de]=te.split("-").map(Number);(W!==y||G-1!==C)&&b(W,G-1),R(de),K.current=de},[r,s,y,C,b]),P=o.useCallback(z=>{const te=new Date(y,C,A),W=de=>{te.setDate(te.getDate()+de),M(te)},G=de=>{const Ee=te.getFullYear()*12+te.getMonth()+de,ve=Math.floor(Ee/12),me=Ee-ve*12;M(new Date(ve,me,Math.min(te.getDate(),fr(ve,me))))};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(-te.getDay());break;case"End":W(6-te.getDay());break;case"PageUp":z.shiftKey?G(-12):G(-1);break;case"PageDown":z.shiftKey?G(12):G(1);break;default:return}z.preventDefault()},[y,C,A,M]),L=o.useCallback(z=>{l||(t(Za(y,C,z)),v(!1))},[y,C,t,v,l]);o.useEffect(()=>{l&&v(!1)},[l,v]);const Z=z=>{const te=Za(y,C,z);return!!(r&&te<r||s&&te>s)},U=(()=>{const z=fr(y,C);if(A>=1&&A<=z&&!Z(A))return A;for(let te=1;te<=z;te++)if(!Z(te))return te;return-1})(),F=[];for(let z=0;z<xv(y,C);z++)F.push(null);for(let z=1;z<=fr(y,C);z++)F.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)),J=(z,te)=>new Intl.DateTimeFormat(I,{month:"long"}).format(new Date(z,te-1,1)),V=kv(y,+g.slice(0,4),q,r,s),T=ku(y,J,r,s),j=z=>{const te=ku(z,J,r,s);if(te.length===0)return;const W=te.some(G=>+G.value===C+1);b(z,W?C:+te[0].value-1)},[O,H]=o.useState(null);o.useEffect(()=>{H(null)},[e]);const oe=o.useCallback(z=>{H(z);const te=wv(z);if(!te||r&&te<r||s&&te>s)return;t(te);const[W,G]=te.split("-");b(+W,+G-1)},[r,s,t,b]),se=o.useCallback(()=>{H(null)},[]),re=o.useCallback(z=>{z.key==="Enter"?(z.preventDefault(),se(),v(!1)):z.key==="Escape"?(se(),v(!1)):z.key==="ArrowDown"&&!N&&(z.preventDefault(),v(!0))},[se,v,N]),ee=N?sn.createPortal(n.jsxs("div",{ref:D,id:k,className:"date-picker__dropdown",style:w,"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(hn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYear","\uC5F0 \uC120\uD0DD"),options:V,value:String(y),onChange:z=>j(+z),size:40}),n.jsx(hn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectMonth","\uC6D4 \uC120\uD0DD"),options:T,value:String(C+1),onChange:z=>b(y,+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)),F.map((z,te)=>{if(z===null)return n.jsx("div",{},`e${te}`);const W=Za(y,C,z),G=W===e,de=W===g,Ee=Z(z),ve=te%7;return n.jsx("button",{type:"button",disabled:Ee,"data-day":z,tabIndex:z===U?0:-1,"aria-current":de?"date":void 0,onClick:()=>!Ee&&L(z),className:we("date-picker__day caption-1",G&&"date-picker__day--selected",de&&!G&&"date-picker__day--today",Ee&&"date-picker__day--disabled",ve===0&&"date-picker__day--sun",ve===6&&"date-picker__day--sat"),children:z},z)})]})]}),document.body):null;return n.jsxs("div",{className:we("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:O??_v(e),placeholder:p,onChange:z=>oe(z.target.value),onClick:()=>!l&&!N&&B(),onKeyDown:re,onBlur:se,disabled:l,"aria-haspopup":"dialog","aria-expanded":N,inputMode:"numeric",autoComplete:"off"}),n.jsx("button",{type:"button",className:"date-picker__icon-btn",onClick:()=>!l&&B(),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})})]}),ee]})}function Nv({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 Ev({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:we("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:we("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:we("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:we("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 Xa({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:y,totalLabel:C,subRow:f,subRowAlign:_="start",className:b,inGrid:k=!1,children:x}){const{t:N}=xe.useTranslation(),v=o.useRef(null),{anchorRect:B,openAt:w,close:E}=Ia(),D=o.useCallback(()=>{h&&v.current&&w(v.current)},[h,w]),[A,R]=o.useState(!1);$o(()=>{const T=v.current;if(!T||!u)return;const j=H=>R(H>0&&H<d);if(j(T.clientWidth),typeof ResizeObserver>"u")return;const O=new ResizeObserver(H=>j(H[0].contentRect.width));return O.observe(T),()=>O.disconnect()},[u,d]);const[$,K]=o.useState(null),M=o.useCallback(()=>K(null),[]),P=o.useCallback(T=>{const j=T.currentTarget.getBoundingClientRect();K(O=>O?null:{left:j.left,right:j.right,top:j.top,bottom:j.bottom,width:j.width,height:j.height,x:j.x,y:j.y})},[]),L=!!u&&A;o.useEffect(()=>{L||K(null)},[L]);const Z=u?[...u.options.map(T=>({label:T.label,icon:T.icon,selected:T.key===u.value,disabled:T.disabled,onClick:()=>u.onChange(T.key),closeOnSelect:!0})),...(c??[]).map((T,j)=>j===0?{...T,separatorBefore:!0}:T)]:[],U=o.useCallback(T=>{if(!m)return;const j=T.target;j&&typeof j.closest=="function"&&j.closest('button, a, input, select, textarea, [role="radiogroup"]')||m()},[m]),F=o.useCallback(T=>{m&&T.target===T.currentTarget&&(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),m())},[m]),Q=typeof l=="function"?l({collapsed:L}):l,I=g!=null||C?n.jsxs(Xa,{label:C,children:[g!=null&&n.jsx("span",{className:"barchart-total__num h0",children:g}),y&&n.jsx("span",{className:"barchart-total__unit h5",children:y})]}):null,q=Q||u?n.jsxs("div",{className:"manager-section__head-right",children:[u&&(L?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(T=>({key:T.key,label:T.label,disabled:T.disabled})),value:u.value,onChange:u.onChange})),Q]}):null,J=o.useId(),V=a?`h${a}`:"div";return n.jsxs("section",{ref:v,className:["manager-section",k&&"manager-section--grid",m&&"manager-section--clickable",b].filter(Boolean).join(" "),onClick:m?U:void 0,onKeyDown:m?F: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?J:void 0,children:[h&&B&&n.jsx(En,{anchorRect:{left:B.left,top:B.top+21,right:B.right,bottom:B.bottom,width:B.width,height:B.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(st,{icon:r,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),n.jsx(V,{id:J,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(gn,{anchorRect:$,onClose:M,ariaLabel:u?.ariaLabel??N("tooltip.menu","\uBA54\uB274"),children:n.jsx(za,{columns:[{items:Z}],onClose:M,size:"small"})})]})}const Ja=(e,t)=>`${e}-${String(t).padStart(2,"0")}`,Oo=e=>Ja(e.getFullYear(),e.getMonth()+1);function Ca(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 Dv(){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=Ja(t,a+1);return{monthKey:l,value:zo(l,s)}}function Sv(e){const t=ia(),a=Oo(t),r=(c,d)=>Ja(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=Ca(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 y=new Date(p,h,0),C=r(y.getFullYear(),y.getMonth());s.has(C)||s.set(C,[])}const l=new Map;for(const[c,d]of s){const m=Ca(c);if(!m)continue;const p=m.year,h=m.month1-1,g=new Date(p,h+1,0).getDate(),y=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(y).fill(0)),k=Array.from({length:g+1},()=>new Array(y).fill(0));for(const x of d){const N=x.date.getDate();if(f[N]+=x.a,_[N]+=x.b,x.parts)for(let v=0;v<y;v++)b[N][v]+=x.parts[v]??0;if(x.partsB)for(let v=0;v<y;v++)k[N][v]+=x.partsB[v]??0}l.set(c,{year:p,month:h,daysInMonth:g,partsLen:y,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:y,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 B=1;B<=h;B++){const w=_&&B>b;N.push({label:String(B),...w&&g[B]===0&&y[B]===0?{future:!0}:{},a:w&&g[B]===0&&y[B]===0?-1:g[B],b:y[B],...x?{parts:C[B]}:{},...x&&d.hasPartsB?{partsB:f[B]}:{}})}const v=[];for(let B=wn(m,p);B<=h;B+=7){const w=Math.max(0,B+6-h),E=w&&k?Math.max(x,k.partsLen):x,D=d.hasPartsB||!!(w&&k?.hasPartsB);let A=0,R=0;const $=new Array(E).fill(0),K=new Array(E).fill(0);for(let P=B;P<=Math.min(B+6,h);P++){A+=g[P],R+=y[P];for(let L=0;L<x;L++)$[L]+=C[P][L],K[L]+=f[P][L]}if(w&&k)for(let P=1;P<=w&&!i(k.year,k.month,P);P++){A+=k.dayA[P],R+=k.dayB[P];for(let L=0;L<k.partsLen;L++)$[L]+=k.dayParts[P][L],K[L]+=k.dayPartsB[P][L]}const M=w?`${(p+1)%12+1}/${w}`:`${B+6}`;v.push({label:`${v.length+1}\uC8FC`,sublabel:`[${B}\uC77C~${M}\uC77C]`,a:A,b:R,...E?{parts:$}:{},...E&&D?{partsB:K}:{}})}u[c]={weekly:v,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:Ja(s,i),year:s,month:i})}return r.reverse()}Nu();function jv(){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(()=>jv().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(),R=wn(D.year,D.month-1),$=Math.ceil((A-R+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=>`${oo(t,a.language,E.year,E.month)} ${Eu(t,E.week)}`,[t]),c=o.useMemo(()=>l.map(E=>({value:E.value,label:oo(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(()=>Dv(),[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,y]=o.useState(""),[C,f]=o.useState("");o.useEffect(()=>{l.find(E=>E.value===g)||y(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"?y: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),v=o.useCallback(()=>{const E=_.findIndex(D=>D.value===b);E<_.length-1&&k(_[E+1].value)},[_,b,k]),B=o.useCallback(()=>{const E=_.findIndex(D=>D.value===b);E>0&&k(_[E-1].value)},[_,b,k]),w=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:v,handleNext:B,periodOptions:w,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 Tv({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:y,focusableBars:C=!1}){const f=!a,_=!!(m&&m.length>0),b=y,k=o.useMemo(()=>_?Math.max(0,...e.filter(F=>!Tn(F,b==null)).map(F=>g?Math.max(0,...(F.parts??[]).map(Et)):(F.parts??[]).reduce((Q,I)=>Q+Math.max(0,Et(I)),0))):Math.max(0,...e.filter(F=>!Tn(F,b==null)).flatMap(F=>f?[Et(F.a)]:[Et(F.a),Et(F.b)])),[e,f,_,g]),x=o.useMemo(()=>{if(b==null)return 0;const F=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,...F.map(Q=>Math.abs(Q-b)))},[e,b,_,f]),N=o.useMemo(()=>{const F=b!=null?x:k;return c??(d?F>0?F:10:Math.ceil(F/10)*10||10)},[k,x,b,c,d]),v=u,B=_?g?Math.max(1,m.length):1:f?1:2,w={"--bar-width":`${o.useMemo(()=>{const F=Math.max(1,e.length);return Math.max(2,Math.min(l,Math.round(120/(F*B)+6)))},[e.length,B,l])}px`},E={"--bar-group-gap":`${Math.max(0,i)}px`},D=o.useMemo(()=>{const F=Math.round(N/2);return b!=null?[b+N,...F!==N?[b+F]:[],b,...F!==N?[b-F]:[],b-N]:F!==N?[N,F,0]:[N,0]},[N,b]),A=F=>b!=null?1-(F-(b-N))/(2*N):1-F/N,[R,$]=o.useState(null),K=o.useCallback(()=>$(null),[]),M=o.useCallback((F,Q)=>{const I=[F.label,F.sublabel].filter(Boolean).join(" ");let q;if(_&&g&&F.rawPartsB)q=(p??[]).map((J,V)=>{const T=F.rawPartsB[V]??0;return{text:T>0?`${J}: ${Q[V]??0}% (${F.rawParts?.[V]??0}/${T})`:`${J}: -`,color:(m??[])[V]}});else if(_&&g)q=(p??[]).map((J,V)=>({text:`${J}: ${Z(Q[V]??0)}`,color:(m??[])[V]}));else if(_){const J=(p??[]).map((T,j)=>({text:`${T}: ${Q[j]??0}`,color:(m??[])[j]})),V=J.filter((T,j)=>(Q[j]??0)>0);q=V.length?V:J}else h&&!f?q=[{text:`${r} ${Et(F.a)}%`,color:t},{text:`${s} ${Et(F.b)}%`,color:a}]:h&&F.rawB!==void 0?q=[{text:`${h.total} ${F.rawB}`},{text:`${h.done} ${F.rawA??0}`,color:t}]:f?q=[{text:`${r}: ${Et(F.a)}`,color:t}]:q=[{text:`${r}: ${Et(F.a)}`,color:t},{text:`${s}: ${Et(F.b)}`,color:a}];return{title:I,items:q}},[_,g,p,m,h,f,r,s,t,a,b]),P=o.useCallback((F,Q,I)=>{const q=F.getBoundingClientRect(),{title:J,items:V}=M(Q,I);$({rect:{left:q.left,top:q.top,right:q.right,bottom:q.bottom,width:q.width,height:q.height},title:J,items:V})},[M]),L=o.useCallback((F,Q)=>{const{title:I,items:q}=M(F,Q);return[I,...q.map(J=>J.text)].filter(Boolean).join(", ")},[M]),Z=F=>b!=null&&F>b?`+${F}`:`${F}`,U=R!=null;return o.useEffect(()=>{if(!U)return;const F=()=>$(null),Q=I=>{const q=I.target;q&&typeof q.closest=="function"&&q.closest(".manager-bar-chart-col")||$(null)};return window.addEventListener("scroll",F,!0),document.addEventListener("pointerdown",Q,!0),()=>{window.removeEventListener("scroll",F,!0),document.removeEventListener("pointerdown",Q,!0)}},[U]),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:v},children:[D.slice(0,-1).map((F,Q)=>n.jsx("div",{className:`manager-bar-chart-gridline${b!=null&&F===b?" manager-bar-chart-gridline--baseline":""}`,style:{top:A(F)*v},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:F})},Q)),e.map((F,Q)=>{const I=Tn(F,b==null),q=v/2,J=O=>b!=null?Math.min(q,Math.abs(Et(O)-b)/N*q):Math.min(v,Math.max(0,Et(O)/N*v)),V=I?0:J(F.a),T=I?0:J(F.b),j=(F.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?L(F,j):void 0,onMouseEnter:I?void 0:O=>P(O.currentTarget,F,j),onFocus:I||!C?void 0:O=>P(O.currentTarget,F,j),onBlur:C?K:void 0,onMouseLeave:K,children:!I&&(_&&g?(m??[]).map((O,H)=>{const oe=j[H]??0;if(b==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:J(oe),background:O}},H);const se=Et(oe)<b;return n.jsxs("div",{className:"manager-bar-chart-slot",style:w,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!se&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:J(oe),background:O}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:se&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:J(oe),background:O}})})]},H)}):_?n.jsx("div",{className:"manager-bar-chart-stack",style:w,children:(()=>{const O=j.reduce((oe,se,re)=>se>0?re:oe,-1);let H=v;return j.map((oe,se)=>{if(oe<=0)return null;const re=Math.min(H,oe/N*v);return H-=re,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:re,background:(m??[])[se],borderRadius:se===O?"6px 6px 0 0":void 0}},se)})})()}):b!=null?n.jsx(n.Fragment,{children:[{v:Et(F.a),c:t},...f?[]:[{v:Et(F.b),c:a}]].map(({v:O,c:H},oe)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:w,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:O>=b&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:J(O),background:H}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:O<b&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:J(O),background:H}})})]},oe))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:V,background:t}}),!f&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...w,height:T,background:a}})]}))},Q)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((F,Q)=>{const I=Tn(F,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:[F.isToday&&n.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),F.label]}),F.sublabel&&n.jsx("span",{className:"caption-1",children:F.sublabel})]},Q)})})]})})}),R&&n.jsx(Kn,{anchorRect:R.rect,title:R.title,items:R.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(hn,{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 Mv(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=Ca(l),_=f?f.year:null,b=f?f.month1:null,k=_&&b?wn(_,b-1):1;return C.weekly.map((x,N)=>{const v=N+1;let B=x.label,w=!1,E=!1;if(_&&b){const D=k+N*7,A=new Date(_,b-1,D+6),R=A.getMonth()+1,$=A.getDate(),K=R===b?`${$}`:`${R}/${$}`;B=a("manager.chart.weekRange",{start:D,end:K});const M=new Date(m,p-1,h).getTime();w=M>=new Date(_,b-1,D).getTime()&&M<=A.getTime(),E=_>m||_===m&&(b>p||b===p&&D>h)}return{...x,label:B,sublabel:Eu(a,v-1),isToday:w,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 y=new Date(g.year,g.month-1,wn(g.year,g.month-1)+g.week*7);return Wo(e,y,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 Lv={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function $v({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:y=!1,rate:C=!1,rateAgg:f="dayMean",tightMax:_=!1,avgMode:b=!1,totalFormat:k,series:x,seriesMode:N="stack",loading:v=!1,onDetail:B,headExtra:w,headSegment:E,icon:D,disc:A,onClick:R,cardAriaLabel:$,cardTooltip:K,detailSize:M=32,barGap:P,baseline:L,className:Z,inGrid:U=!1}){const{t:F}=xe.useTranslation(),Q=Lv[t],I=Du(l),q=g??I,J=o.useMemo(()=>Mv(l,q,F,L==null),[l,q,F,L]),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 T=o.useMemo(()=>{if(!C)return J;const ee=q.period==="month"?Ca(q.monthRange):null,z=ia(),te=x?.length??0,W=G=>{const de=[],Ee=[],ve=[];for(let me=0;me<te;me++){let ce=0,ge=0,he=0;for(const pe of G){const Le=Et(pe.a[me]),ze=Et(pe.b[me]);ze<=0||(ce+=Le,ge+=ze,he+=Le/ze*100)}de.push(f==="weighted"?ge>0?Math.round(ce/ge*100):0:G.length?Math.round(he/G.length):0),Ee.push(ce),ve.push(ge)}return{pct:de,ra:Ee,rb:ve}};return J.map((G,de)=>{let Ee=G.a===-1?-1:G.b>0?Math.round(G.a/G.b*100):0;if(ee&&!Tn(G)){const me=ee.year,ce=ee.month1-1,ge=Wo(l,new Date(me,ce,wn(me,ce)+de*7),z).filter(he=>!he.isFuture);if(f==="weighted"){let he=0,pe=0;for(const{entry:Le}of ge)Le&&Le.b>0&&(he+=Le.a,pe+=Le.b);Ee=pe>0?Math.round(he/pe*100):0}else Ee=ge.length?Math.round(ge.reduce((he,{entry:pe})=>he+(pe&&pe.b>0?pe.a/pe.b*100:0),0)/ge.length):0}let ve=null;if(V&&!Tn(G)){let me;if(ee){const ge=ee.year,he=ee.month1-1;me=Wo(l,new Date(ge,he,wn(ge,he)+de*7),z).filter(pe=>!pe.isFuture).map(({entry:pe})=>({a:pe?.parts??[],b:pe?.partsB??[]}))}else me=[{a:G.parts??[],b:G.partsB??[]}];const ce=W(me);ve={parts:ce.pct,rawParts:ce.ra,rawPartsB:ce.rb}}return{...G,a:Ee,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,...ve??{}}})},[J,C,f,d,q.period,q.monthRange,l,V,x?.length]),j=o.useMemo(()=>{if(C||b){const z=(q.period==="week"?J:l[q.monthRange]?.daily??[]).filter(W=>W.a!==-1);if(z.length===0)return 0;if(C&&f==="weighted"){let W=0,G=0;for(const de of z)de.b>0&&(W+=de.a,G+=de.b);return G>0?Math.round(W/G*100):0}const te=C?z.reduce((W,G)=>W+(G.b>0?G.a/G.b*100:0),0):z.reduce((W,G)=>W+(G.a>0?G.a:0),0);return Math.round(te/z.length)}const ee=q.period==="month"?l[q.monthRange]?.daily??[]:T;return L!=null?ee.reduce((z,te)=>z+(Tn(te,!1)?0:Et(te.a)+(d?Et(te.b):0)),0):ee.reduce((z,te)=>z+(te.a>0?te.a:0)+(d&&te.b>0?te.b:0),0)},[T,J,C,f,b,L,d,q.period,q.monthRange,l]),O=x&&x.length>0?x.map(ee=>({color:ee.color,label:ee.label})):[{color:i,label:F(c)},...d?[{color:u,label:F(d)}]:[]],H=t==="small",oe=[H?"manager-section--compact":t==="large"?"manager-section--full":void 0,Z].filter(Boolean).join(" ")||void 0,se=r?F(r):"",re=se?F("trainingStatus.detailFor",{name:se,defaultValue:"{{name}} \uC0C1\uC138\uBCF4\uAE30"}):F("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30");return n.jsx(Fo,{className:oe,inGrid:U,icon:D,disc:A,onClick:R,ariaLabel:$,tooltip:K,headSegment:E,headMenuItems:B?[{label:re,icon:"list",onClick:B,closeOnSelect:!0}]:void 0,title:F(r),titleLevel:s,titleClassName:H?"h5 chart-section-title--small":void 0,headRight:H?w??void 0:({collapsed:ee})=>n.jsxs(n.Fragment,{children:[!y&&n.jsx(Su,{control:q}),w,B&&!ee&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(be,{htmlType:"button",size:M,type:"dot",icon:"list",ariaLabel:re,showTooltipInfo:re,onClick:B})})]}),subRow:n.jsxs(n.Fragment,{children:[m?C||b||h&&k?n.jsx(Xa,{label:H?void 0:`${F(q.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${F(h??c)}`,children:k?(k(j).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((ee,z)=>/\d/.test(ee)?n.jsx("span",{className:"barchart-total__num h0",children:ee},z):n.jsx("span",{className:"barchart-total__unit h5",children:ee},z)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:j}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:F(p)})]})}):n.jsxs(Xa,{children:[n.jsx("span",{className:"barchart-total__num h0",children:j}),n.jsx("span",{className:"barchart-total__unit h5",children:F(c)}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:F(p)})]}):n.jsx("span",{}),n.jsx(Io,{items:O,className:"caption-1"})]}),children:v?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(ca,{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"}),T.some(ee=>!!ee.sublabel)&&n.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):n.jsx(Tv,{focusableBars:e,data:T,colorA:i,colorB:d?u:void 0,labelA:F(c),labelB:d?F(d):void 0,barWidth:a??Q.barWidth,barGap:P,baseline:L,height:Q.height,maxOverride:C?100:void 0,tightMax:_,seriesColors:x?.map(ee=>ee.color),seriesLabels:x?.map(ee=>ee.label),rateLabels:C?{total:F("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:F("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:V})})}const ju=120,Rv={left:38,right:16,top:26,bottom:24};function Pv({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,y]=o.useState(null);o.useEffect(()=>{if(!g)return;const L=U=>h(Math.round(U)||null);if(L(g.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const Z=new ResizeObserver(([U])=>L(U.contentRect.width));return Z.observe(g),()=>{Z.disconnect()}},[g]);const{payload:C,anchorRect:f,openAfterDelay:_,close:b}=My(ju),k=o.useCallback((L,Z)=>{L&&_(L,Z.getBoundingClientRect())},[_]),x=p??i,N=l,{left:v,right:B,top:w,bottom:E}={...Rv,...u},[D,A]=t,R=L=>A===D?v:v+(x-v-B)*(L-D)/(A-D),$=L=>w+(N-w-E)*(100-L)/100,K={x:R,y:$,plot:{left:v,right:x-B,top:w,bottom:N-E,width:Math.max(0,x-v-B),height:Math.max(0,N-w-E)}},M=e.filter(L=>!L.hollow),P=s??"var(--color-main)";return n.jsxs(n.Fragment,{children:[n.jsxs("svg",{ref:y,className:we("line-chart",m),viewBox:`0 0 ${x} ${N}`,role:"img","aria-label":d??e.map(L=>L.description).filter(Boolean).join(", "),children:[r&&n.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(L=>n.jsxs("g",{children:[n.jsx("line",{className:"line-chart__grid",x1:v,x2:x-B,y1:$(L),y2:$(L)}),n.jsxs("text",{className:"line-chart__tick",x:v-6,y:$(L)+4,textAnchor:"end",children:[L,"%"]})]},L)),c?.(K),a.map(L=>n.jsx("text",{className:"line-chart__tick",x:R(L.x),y:N-5,textAnchor:"middle",children:L.label},L.x)),M.length>1&&n.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:P,points:M.map(L=>`${R(L.x)},${$(L.pct)}`).join(" ")}),e.map(L=>n.jsxs("g",{className:"line-chart__dot",onPointerEnter:Z=>k(L.description,Z.currentTarget),onPointerLeave:b,children:[n.jsx("circle",{className:"line-chart__dot-hit",cx:R(L.x),cy:$(L.pct),r:12}),n.jsx("circle",{className:we("line-chart__dot-main",L.hollow&&"is-hollow"),cx:R(L.x),cy:$(L.pct),r:4,stroke:P,fill:L.hollow?void 0:P})]},L.x))]}),C!=null&&n.jsx(gn,{anchorRect:f,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:C,children:C})]})}function Iv({icon:e,iconSize:t=56,title:a,titleClass:r="h2",description:s,tipGroups:l,start:i,className:u}){return n.jsxs("div",{className:we("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:we("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 Fv(e,t=0){if(e.period==="month"){const s=Ca(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=$a();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,v=Math.max(0,Math.min(N,1-x));return b.push({color:k.color,rotate:-90+x*360,dash:g*v,acc:x+v}),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 y=(t??0)>0?Math.min((e??0)/t,1):0,C=g*y,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}),y>0&&n.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${C} ${f}`,strokeLinecap:y<.02||y>.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(y)}),!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 Ov({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:y}=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(st,{icon:r,className:"chart-section-icon-inner"})});return n.jsx(Fo,{className:k,inGrid:d,onClick:m,ariaLabel:p,tooltip:h,title:y(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(Xa,{label:!f&&l?y(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(ca,{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 zv({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}=Ia(),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"),y=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,y].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(st,{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}),y&&n.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${g??"neutral"} caption-1`,children:y})]}),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:y="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 v=Math.min(r,Math.max(a,e)),B=r>a?(v-a)/(r-a):0,w=l==="vertical",E=!t,D=J=>t?.(Number(J.target.value)),A=typeof d=="number"?`${d}px`:d,R={"--slider-ratio":String(B),"--slider-thumb":`${i}px`,...A?w?{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 J=N!=="dash",V=oe=>J?`radial-gradient(circle, ${oe} 0.5px, transparent 1px)`:w?`linear-gradient(to bottom, transparent calc(50% - 2px), ${oe} calc(50% - 2px), ${oe} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${oe} calc(50% - 2px), ${oe} calc(50% + 2px), transparent calc(50% + 2px))`,T=J?"2px":"4px",j=[],O=[],H=[];for(let oe=0;oe<=K;oe++){const se=oe*$/(r-a);if(se>1+1e-6)break;const re=`${((w?1-se:se)*100).toFixed(4)}%`,ee=se<=B+1e-6;if(ee?!k:!b)continue;const z=ee?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";j.push(V(z)),O.push(w?`${T} var(--slider-thumb)`:`var(--slider-thumb) ${T}`),H.push(w?`center ${re}`:`${re} center`)}j.push(w?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),O.push("100% 100%"),H.push("0 0"),R.backgroundImage=j.join(", "),R.backgroundSize=O.join(", "),R.backgroundPosition=H.join(", "),R.backgroundRepeat="no-repeat"}const M=h?h(v):p==="percent"?`${Math.round(r>a?(v-a)/(r-a)*100:0)}%`:p==="count"?`${v} / ${r}`:v===a&&f?f:v===r&&_?_:void 0,P=n.jsx("input",{type:"range",className:we("slider",`slider--${l}`,E&&"slider--static",!p&&!C&&m),min:a,max:r,step:s,value:v,disabled:u,readOnly:E,tabIndex:E?-1:void 0,"aria-label":c,"aria-valuetext":M,"aria-orientation":l,onChange:D,style:R});if(!p&&!C)return P;const L=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:f??a}),Z=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??r}),U=C?n.jsxs("div",{className:we("slider-track-group",`slider-track-group--${l}`,!p&&m),children:[w?Z:L,P,w?L:Z]}):P;if(!p)return U;const F=g??(w?"bottom":"right"),Q=`${Math.round(r>a?(v-a)/(r-a)*100:0)}%`,I=h?h(v):p==="percent"?Q:p==="count"?`${v} / ${r}`:String(v),q=n.jsx("span",{className:"slider-wrap__value body-3b",children:I});return n.jsxs("div",{className:we("slider-wrap",`slider-wrap--${l}`,`slider-wrap--label-${F}`,`slider-wrap--align-${y}`,m),children:[U,q]})}const Wv=.86,Hv=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),y=o.useRef(null),C=o.useRef(null),f=o.useRef(null),[_,b]=o.useState(null);o.useEffect(()=>{const v=P=>{const L=qo(P,c,d,m);C.current&&(C.current.textContent=L);const Z=g.current;Z&&(Z.setAttribute("aria-valuenow",String(Vo(P,c,d,m))),Z.setAttribute("aria-valuetext",L))},B=e??FC(t)??(_&&_.el===t?_.node:null),w=y.current;if(!B||!w){w?.style.setProperty("--meter-level","0"),v(u);let P=!1;return!e&&t&&ar(t).then(L=>{!P&&L&&b({el:t,node:L})}),()=>{P=!0}}eo();const E=new Float32Array(B.fftSize);let D=0,A=0,R=0,$=0,K=null;const M=P=>{const L=OC(B,E);D=L>D?L:D*Wv;const Z=D>1e-5?20*Math.log10(D):-1/0,U=Math.max(u,Z),F=U-c,Q=Math.min(1,Math.max(0,(F-d)/(m-d)));if(w.style.setProperty("--meter-level",Q.toFixed(3)),A+=U,R+=1,P-$>=Hv){const I=A/R;K=K==null?I:K*.6+I*.4,v(K),A=0,R=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:y,className:"audio-meter__fill"})}),N=l??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:g,className:we("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,y=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),v=o.useRef(()=>{});v.current=E=>{E<0||(C.current=Date.now(),f.current=E,y.current=setTimeout(()=>{y.current=null,l(!1),b.current=setTimeout(()=>{u(!1);try{h.current()}catch{}},Pu)},E))};const B=o.useCallback(()=>{_.current||!y.current||(_.current=!0,clearTimeout(y.current),y.current=null,f.current=Math.max(0,f.current-(Date.now()-C.current)))},[]),w=o.useCallback(()=>{_.current&&(_.current=!1,v.current(f.current))},[]);return o.useEffect(()=>{if(e!==p.current&&(y.current&&(clearTimeout(y.current),y.current=null),b.current&&(clearTimeout(b.current),b.current=null)),e){if(d.current)return g>0&&!y.current&&(_.current?f.current=g:v.current(g)),p.current=e,()=>{y.current&&(clearTimeout(y.current),y.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,v.current(g))}else l(!1),b.current=setTimeout(()=>u(!1),Pu);return p.current=e,()=>{y.current&&clearTimeout(y.current),b.current&&clearTimeout(b.current),k.current&&cancelAnimationFrame(k.current),x.current&&cancelAnimationFrame(x.current),N.current&&clearTimeout(N.current),y.current=null,b.current=null,k.current=null,x.current=null,N.current=null}},[e,g,t]),{mounted:i,showing:s,popupRef:m,pause:B,resume:w}}function fa({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",y=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(y,document.body):y}const Vv=24;function qv({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,y=Number.isFinite(t)&&t>0?t:0,C=u??(a>=Vv?"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:we("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":y,"aria-valuetext":l?i?i(h):l==="percent"?void 0:l==="raw"?String(h):`${h} / ${y}`: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} / ${y}`})]})}const Fu={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Uv="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=mn("(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"]=Uv),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((y,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((y,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 Gv(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 Kv({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(y=>{s&&y.target===y.currentTarget&&(y.key==="Enter"||y.key===" ")&&(y.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(ca,{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 Yv({dir:e}){return n.jsx(e==="asc"?Xs:Zs,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Zv({children:e,onClick:t,className:a,sortDir:r,ariaSort:s,onResizeStart:l}){const i=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(Yv,{dir:r})]});return n.jsxs("div",{onClick:t,role:"columnheader","aria-sort":s,className:we("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:y,resizable:C=!0,resizeMode:f="grow",resizeStorageKey:_,size:b="small",title:k,icon:x,count:N,collapsed:v=!1,onToggleCollapse:B,headerActions:w,empty:E,loading:D,dragOver:A=!1,onDragOver:R,onDragLeave:$,onDrop:K,renderExpandedRow:M,expandedId:P}){const{t:L}=xe.useTranslation(),Z=o.useId(),U=`table-title-${Z}`,F=`table-row-hint-${Z}`,[Q,I]=o.useState(null),q=o.useCallback((ae,Ce)=>{const Fe=e[Ce];if(!Fe)return;if(Fe.sortValue)return Fe.sortValue(ae);if(Fe.sortKey)return ae[Fe.sortKey];const Qe=l(ae)[Ce]?.content;return typeof Qe=="string"||typeof Qe=="number"?Qe:void 0},[e,l]),J=!t&&a&&!e.some(ae=>ae.sortDir!==void 0||ae.onClick),V=o.useCallback(ae=>{const Ce=e[ae];if(!Ce||Ce.sortable===!1)return!1;if(Ce.sortValue||Ce.sortKey)return!0;const Fe=s[0];return Fe!==void 0&&q(Fe,ae)!==void 0},[e,s,q]),T=o.useMemo(()=>t?e.map(ae=>{if(!ae.sortKey||ae.sortDir!==void 0)return ae;const Ce=t.field(String(ae.label??""),ae.sortKey);return{...ae,sortDir:Ce.sortDir,onClick:ae.onClick??Ce.onClick}}):J?e.map((ae,Ce)=>V(Ce)?{...ae,sortDir:Q?.index===Ce?Q.asc?"asc":"desc":null,onClick:()=>I(Fe=>Fe?.index===Ce?{index:Ce,asc:!Fe.asc}:{index:Ce,asc:!0})}:ae):e,[e,t,J,Q,V]),j=o.useMemo(()=>{if(!J||!Q)return s;const{index:ae,asc:Ce}=Q;return[...s].sort((Fe,Qe)=>pr(q(Fe,ae),q(Qe,ae),Ce))},[s,J,Q,q]),O=mn("(max-width: 767px)"),H=y&&O?y:null,oe=C&&!O,se=o.useRef(oe);se.current=oe;const re=48,ee=40,z=o.useRef(()=>re),te=_?`table-cols:${_}`:null,W=o.useRef(null),G=o.useRef(null),de=o.useRef(null),Ee=o.useRef(null),[ve,me]=o.useState(!1),[ce,ge]=o.useState(0),he=o.useCallback(()=>{const ae=de.current;if(!ae)return;const Ce=Ee.current,Fe=W.current;if(Ce&&(Ce.style.minWidth="",Fe)){const Qe=Fe.scrollWidth,ct=se.current?ee:0;Ce.style.minWidth=Qe>ae.clientWidth+1?`${Qe+ct}px`:""}me(ae.scrollWidth>ae.clientWidth+1),ge(ae.clientWidth)},[]),pe=o.useCallback((ae,Ce)=>{const Fe=ae.current;Fe&&G.current&&G.current.unobserve(Fe),ae.current=Ce,Ce?(!G.current&&typeof ResizeObserver<"u"&&(G.current=new ResizeObserver(()=>he())),G.current?.observe(Ce)):!de.current&&!Ee.current&&(G.current?.disconnect(),G.current=null),he()},[he]),Le=o.useCallback(ae=>pe(de,ae),[pe]),ze=o.useCallback(ae=>pe(Ee,ae),[pe]);o.useEffect(()=>{he()}),o.useEffect(()=>{if(typeof window>"u")return;const ae=typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>he()):null;return window.addEventListener("resize",he),()=>{ae!=null&&cancelAnimationFrame(ae),window.removeEventListener("resize",he)}},[he]);const Me=o.useRef(()=>!1),Ve=o.useRef([]),We=o.useRef(null),dt=ae=>{if(!ae||typeof window>"u")return null;try{const Ce=JSON.parse(window.localStorage.getItem(ae)??"null");return Array.isArray(Ce)&&Ce.length>0&&Ce.every(Fe=>typeof Fe=="number"&&Number.isFinite(Fe)&&Fe>0)?Ce:null}catch{return null}},[lt,tt]=o.useState(()=>dt(te)),[yt,_e]=o.useState(te),[Ge,Be]=o.useState(()=>dt(te)!==null);if(yt!==te){_e(te);const ae=dt(te);tt(ae),Be(ae!==null)}const qe=o.useRef(lt);o.useEffect(()=>{qe.current=lt},[lt]);const Ke=o.useCallback(ae=>{const Ce=We.current;if(!Ce)return;const Fe=qe.current;if(Fe){const Qe=[...Fe],ct=()=>re;if(Ce.next!=null&&Ce.startWNext!=null){const ot=ae.clientX-Ce.startX,It=Math.max(ct()-Ce.startW,Math.min(Ce.startWNext-ct(),ot));Qe[Ce.index]=Ce.startW+It,Qe[Ce.next]=Ce.startWNext-It}else Qe[Ce.index]=Math.max(ct(),Ce.startW+(ae.clientX-Ce.startX));qe.current=Qe,tt(Qe)}},[]),pt=o.useCallback(()=>{if(We.current=null,window.removeEventListener("pointermove",Ke),window.removeEventListener("pointerup",pt),window.removeEventListener("pointercancel",pt),document.body.style.cursor="",document.body.style.userSelect="",te&&qe.current)try{window.localStorage.setItem(te,JSON.stringify(qe.current))}catch{}},[Ke,te]),xt=o.useCallback((ae,Ce)=>{Ce.preventDefault(),Ce.stopPropagation();const Fe=W.current;if(!Fe)return;const Qe=Array.from(Fe.children).map(ot=>ot.getBoundingClientRect().width),ct=f==="fit"?T.findIndex((ot,It)=>It>ae&&ot.resizable!==!1):-1;We.current=ct>=0?{index:ae,startX:Ce.clientX,startW:Qe[ae],next:ct,startWNext:Qe[ct]}:{index:ae,startX:Ce.clientX,startW:Qe[ae]},qe.current=Qe,tt(Qe),Be(!0),window.addEventListener("pointermove",Ke),window.addEventListener("pointerup",pt),window.addEventListener("pointercancel",pt),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[Ke,pt,f,T]),Dt=o.useCallback(()=>{const ae=W.current,Ce=ae?.closest(".table-wrap");if(!ae||!Ce)return null;const Fe=Ce.style.getPropertyValue("--table-grid-cols");Ce.style.setProperty("--table-grid-cols",T.map(()=>"max-content").join(" "));const Qe=Array.from(Ce.querySelectorAll(".table-row")).filter(Rt=>!Rt.classList.contains("table-row--loading")&&!Rt.classList.contains("table-row--empty")),ct=T.map((Rt,ht)=>{let Ct=ae.children[ht]?.getBoundingClientRect().width??0;for(const zt of Qe){const Cn=zt.children[ht];Cn&&(Ct=Math.max(Ct,Cn.getBoundingClientRect().width))}const wt=Me.current(ht)?parseFloat(Ve.current[ht]):NaN;return Number.isFinite(wt)&&Math.ceil(Ct)>wt&&Tt(`table-fixed-col-overflow:${ht}:${wt}`,`[ihabdevteam-core] Table \uC758 ${ht+1}\uBC88\uC9F8 \uC5F4\uC744 ${wt}px \uB85C \uC815\uD574 \uB450\uC5C8\uB294\uB370 \uC548\uC758 \uB0B4\uC6A9\uC740 ${Math.ceil(Ct)}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(Ct)}px \uC774\uC0C1\uC73C\uB85C \uB298\uB9AC\uC138\uC694.`),Number.isFinite(wt)?wt:Math.max(z.current(ht),Math.ceil(Ct))}),ot=window.getComputedStyle(ae),It=ae.clientWidth-(parseFloat(ot.paddingLeft)||0)-(parseFloat(ot.paddingRight)||0);Fe?Ce.style.setProperty("--table-grid-cols",Fe):Ce.style.removeProperty("--table-grid-cols");let Yt=ct;const kn=ct.reduce((Rt,ht,Ct)=>Rt+(Me.current(Ct)?ht:0),0),Vt=ct.reduce((Rt,ht,Ct)=>Rt+(Me.current(Ct)?0:ht),0),Zt=It-kn;if(It>0&&Vt>0&&Zt>0){const Rt=Zt/Vt;Yt=ct.map((Ct,wt)=>Me.current(wt)?Ct:Math.max(z.current(wt),Math.round(Ct*Rt)));const ht=Math.round(Zt-Yt.reduce((Ct,wt,zt)=>Ct+(Me.current(zt)?0:wt),0));if(ht!==0){let Ct=-1;Yt.forEach((wt,zt)=>{!Me.current(zt)&&(Ct<0||wt>Yt[Ct])&&(Ct=zt)}),Ct>=0&&(Yt[Ct]=Math.max(z.current(Ct),Yt[Ct]+ht))}}return Yt},[T,f]),St=(ae,Ce)=>ae!==null&&ae.length===Ce.length&&ae.every((Fe,Qe)=>Fe===Ce[Qe]),it=o.useRef(Dt);o.useEffect(()=>{it.current=Dt});const[at,At]=o.useState(0),_t=j.length>0,Lt=`${te??""}|${at}|${T.length}|${ce}`,Ne=!Ge&&oe&&te!==null&&!D?`${Lt}|${_t?1:0}`:null,$e=o.useRef(null);o.useEffect(()=>{if(Ne===null||!_t||$e.current===Lt)return;const ae=it.current();ae&&($e.current=Lt,tt(Ce=>St(Ce,ae)?Ce:ae))},[Ne]);const Se=o.useCallback(()=>{if(te)try{window.localStorage.removeItem(te)}catch{}Be(!1);const ae=it.current();tt(ae),qe.current=ae,At(Ce=>Ce+1)},[te]);o.useEffect(()=>()=>{We.current&&(window.removeEventListener("pointermove",Ke),window.removeEventListener("pointerup",pt),window.removeEventListener("pointercancel",pt),document.body.style.cursor="",document.body.style.userSelect="")},[Ke,pt]);const He=T.length>0&&T.every(ae=>ae.width!=null)?T.map(ae=>typeof ae.width=="number"?`${ae.width}px`:String(ae.width)).join(" "):null;T.some(ae=>ae.width!=null)&&!He&&Tt(`table-field-width:${T.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."),He&&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 rt=g??He??void 0,vt=Gv(rt),et=vt.filter(ae=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(ae));et.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(${et.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 Nt=T.findIndex(ae=>!!ae.sortDir);T.filter(ae=>!!ae.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 Ye=ae=>ae===Nt?T[ae].sortDir==="asc"?"ascending":"descending":T[ae].onClick?"none":void 0,bt=ae=>/^\d+(\.\d+)?px$/.test(vt[ae]??""),kt=ae=>{const Ce=vt[ae]??"",Fe=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(Ce)??/^(\d+(?:\.\d+)?)px$/.exec(Ce);return Fe?parseFloat(Fe[1]):re};Me.current=bt,z.current=kt,Ve.current=vt;const gt=ae=>f==="fit"&&!bt(ae)?"fr":"px",ft=lt&<.length===T.length&&!O,ut=H??(ft?T.map((ae,Ce)=>ae.resizable===!1&&vt[Ce]?vt[Ce]:`${lt[Ce]}${gt(Ce)}`).join(" "):rt),De=ut?{"--table-grid-cols":ut}:void 0,nt=k!==void 0;return n.jsxs("div",{ref:Le,className:`table-wrap table-wrap--${b}${oe?" table-wrap--resizable":""}${A?" table-wrap--dragover":""}${v?" table-wrap--collapsed":""}`,style:De,onDragOver:R,onDragLeave:$,onDrop:K,tabIndex:ve?0:void 0,role:ve?"region":void 0,"aria-label":ve?typeof k=="string"?k:L("table.scrollRegion","\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"):void 0,children:[!!i&&n.jsx("span",{id:F,className:"table-row-hint",children:L("table.rowActionHint","\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4")}),n.jsxs("div",{ref:ze,role:"table","aria-labelledby":nt&&typeof k=="string"?U:void 0,className:"table body-2",children:[nt&&n.jsxs("div",{className:we("table-header",B&&"table-header--clickable"),onClick:B,role:"caption",children:[B&&n.jsx(be,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:v?"chevron-right":"chevron-down",ariaLabel:v?L("common.expand","\uD3BC\uCE58\uAE30"):L("common.collapse","\uC811\uAE30"),ariaExpanded:!v,className:"table-header__chevron"}),x&&n.jsx(st,{icon:x,label:typeof k=="string"?k:void 0,className:"table-header__icon"}),n.jsx("span",{id:U,className:"table-header__title h5b",children:k}),N!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:N}),w&&n.jsx("span",{className:"table-header__actions",onClick:ae=>ae.stopPropagation(),children:w})]}),!v&&n.jsxs(n.Fragment,{children:[r&&r.length>0&&n.jsx("div",{role:"row",className:"table-fields table-fields--groups",children:r.map((ae,Ce)=>n.jsx("div",{role:"columnheader","aria-colspan":ae.span,className:we("table-field body-3",ae.className),style:{gridColumn:`span ${ae.span}`},children:ae.label},Ce))}),n.jsxs("div",{role:"presentation",className:we("table-fields-strip",oe&&"table-fields-strip--resizable"),children:[n.jsx("div",{role:"row",className:"table-fields",ref:W,children:T.map((ae,Ce)=>n.jsx(Zv,{onClick:ae.onClick,className:we(ae.className,zu(ae.align)),sortDir:ae.sortDir,ariaSort:Ye(Ce),onResizeStart:oe&&Ce<T.length-1&&ae.resizable!==!1&&(f!=="fit"||T.some((Fe,Qe)=>Qe>Ce&&Fe.resizable!==!1))?Fe=>xt(Ce,Fe):void 0,children:ae.label},Ce))}),oe&&n.jsx(be,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:L("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:L("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:Se})]}),n.jsx("div",{role:"rowgroup",className:"table-body",children:D?n.jsx(Go,{variant:"loading",colSpan:T.length||void 0}):j.length===0&&E?n.jsx(Go,{variant:"empty",colSpan:T.length||void 0,children:E}):j.map((ae,Ce)=>{const Fe=h!=null&&ae.id===h,Qe=!!i&&(u?u(ae):!0),ct=P!=null&&ae.id!=null&&(P instanceof Set?P.has(ae.id)||[...P].some(ot=>String(ot)===String(ae.id)):String(ae.id)===String(P));return n.jsx(Go,{className:`${Qe?" table-row--clickable":""}${m?" table-row--draggable":""}${Fe?" table-row--dragging":""}`.trim(),draggable:!!m,onClick:Qe?()=>i(ae):void 0,colSpan:T.length||void 0,rowHasButton:l(ae).some(ot=>!!ot.rowLabel),describedBy:F,onMouseEnter:c?ot=>c(ae,ot):void 0,onMouseLeave:d?ot=>d(ae,ot):void 0,onDragStart:m?ot=>m(ae,ot):void 0,onDragEnd:p?ot=>p(ae,ot):void 0,expandedContent:ct&&M?M(ae):void 0,children:l(ae).map((ot,It)=>n.jsx(Kv,{className:we(ot.className,zu(T[It]?.align)),style:ot.style,rowLabel:Qe?ot.rowLabel:void 0,onRowClick:Qe?()=>i(ae):void 0,children:ot.content},It))},ae.id!=null?`${typeof ae.id}:${ae.id}`:`__idx:${Ce}`)})})]})]})]})}const Xv={hearingAid:"hearingAid",cochlearImplant:"cochlearImplant",other:"other",\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant",\uAE30\uD0C0:"other"};function Wu(e){return e?Xv[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 ba=e=>e==null?"":String(e).trim();function Yo(e,t,a,r){const s=ba(e),l=ba(t),i=ba(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 Jv(e,t,a){const r=ba(e);return r?`${r}-${ba(t).padStart(2,"0")}-${ba(a).padStart(2,"0")}`:""}function qu(e,t){return t!=="wornAt"?String(e[t]??""):Jv(e.wornYear,e.wornMonth,e.wornDay)}function Qv({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 pr(qu(b,f),qu(k,f),_)})},[e,m]),{pageRows:g,pageSizeProps:y,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:y,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(Mt,{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 e4(e,t){return new Date(e,t+1,0).getDate()}function t4(e,t){return new Date(e,t,1).getDay()}function n4({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=so(s),[d,m]=o.useState(()=>Number(c.slice(0,4))),[p,h]=o.useState(()=>Number(c.slice(5,7))-1),[g,y]=o.useState(null),C=o.useRef(null),f=o.useMemo(()=>{const v={};return e.forEach(B=>{v[B.date]||(v[B.date]=[]),v[B.date].push(B)}),v},[e]),_=o.useMemo(()=>{const v=e4(d,p),B=t4(d,p),w=[];for(let E=0;E<B;E++)w.push(null);for(let E=1;E<=v;E++)w.push(E);for(;w.length<35;)w.push(null);return w},[d,p]),b=o.useCallback(()=>{p===0?(m(v=>v-1),h(11)):h(v=>v-1)},[p]),k=o.useCallback(()=>{p===11?(m(v=>v+1),h(0)):h(v=>v+1)},[p]),x=v=>`${d}-${String(p+1).padStart(2,"0")}-${String(v).padStart(2,"0")}`,N=v=>x(v)===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(st,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:oo(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(st,{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(v=>n.jsx("div",{className:"calendar-day-header body-3",children:v},v)),_.map((v,B)=>{if(v===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${B}`);const w=v,E=x(w),D=f[E]??[],A=zl(E,i.language),R=g===E;return n.jsxs("div",{className:`calendar-cell${N(w)?" today":""}${R?" 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(w)?"date":void 0,onClick:r?()=>r(E):void 0,onKeyDown:r?$=>{$.target===$.currentTarget&&($.key!=="Enter"&&$.key!==" "||($.preventDefault(),r(E)))}:void 0,onDragOver:a?$=>{$.preventDefault(),y(E)}:void 0,onDragLeave:a?$=>{$.currentTarget.contains($.relatedTarget)||y(null)}:void 0,onDrop:a?$=>{$.preventDefault(),C.current!=null&&(a(C.current,E),C.current=null),y(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:w}),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),K=$.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":`${A} ${K}`,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(($,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?M=>{C.current=$.id,M.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{C.current=null,y(null)}:void 0,onClick:t?M=>{M.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))})]},w)})]})]})}const a4={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=a4[e],p=t||l||s||r,h=a?`h${a}`:"div";return n.jsxs("div",{className:we("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(st,{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 r4(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||{},[,y]=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",()=>y(B=>B+1));const x=o.useRef(null),N=o.useRef(null);function v(){const B=document.activeElement;N.current=br()&&B&&B.closest?.(".training-block__more")?_:null,b(w=>Math.min(f,w+gr))}return o.useEffect(()=>{const B=N.current;if(B==null)return;N.current=null;const w=document.activeElement;w&&w!==document.body||x.current?.querySelectorAll(".training-block-button")[B]?.focus()},[_]),n.jsxs(ga,{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((B,w)=>{const E=B;return n.jsx(Mo,{index:w,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"}-${w}`)})}),f>gr&&_<f&&n.jsx("div",{className:"training-block__more",children:n.jsx(be,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:v,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function o4(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 s4({gap:e=10,count:t,className:a,children:r}){const s=o.useRef(null),[l,i]=o.useState({width:0,card:0}),u=t??o4(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 y=new ResizeObserver(g);return y.observe(h),()=>y.disconnect()},[u,e]);const c=l.card>0?l.card:0,d=c>0?pf(l.width,c,e):0,m=d>0?mf(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:we("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 l4='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 i4=l4,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,y=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=mn("(max-width: 767px)"),[N,v]=o.useState(!1),[B,w]=o.useState(!1),E=`${typeof y=="string"?y:y?.src??""}\0${h}`,[D,A]=o.useState({for:"",url:""}),R=D.for===E?D.url:"",$=Il(),K=e.textOnly??(!e.image&&!!_.label&&!!$&&$.entries.length>0&&!$.byWord.has(_.label)),M=K?"":la()?.(_.label,_.homonum)??e.image??"",{imgRef:P,loading:L,hasImage:Z,onLoad:U,onError:F}=Xo(M);o.useEffect(()=>{let H=!1;return(async()=>{if(y){if(typeof y=="string"){if(y.startsWith("http")||y.includes("/")){A({for:E,url:y});return}}else if(typeof y=="object"&&!Array.isArray(y)){const se=y.src;if(se){A({for:E,url:se});return}}}const oe=Ea();if(oe&&h)try{const se=await Promise.resolve(oe(h));!H&&se&&A({for:E,url:se})}catch{}})(),()=>{H=!0}},[y,h,E]);const Q=o.useRef(!0),I=o.useRef(null);o.useEffect(()=>(Q.current=!0,()=>{Q.current=!1,I.current&&Cr(I.current),I.current=null;try{k.current?.pause()}catch{}k.current=null}),[]);const q=o.useCallback(()=>new Promise(H=>{if(typeof window<"u"&&window.speechSynthesis&&h){v(!0),window.speechSynthesis.cancel();const oe=new SpeechSynthesisUtterance(h);oe.lang="ko-KR",oe.onend=()=>{v(!1);try{a?.()}catch{}H()},oe.onerror=()=>{v(!1),H()},window.speechSynthesis.speak(oe)}else H()}),[h,a]),J=o.useCallback(H=>{const oe=Ua(H,se=>{if(v(!1),se)try{a?.()}catch{}});return k.current=oe.el,oe.done},[a]),V=o.useCallback(async()=>{if(t||!Q.current)return;const H=()=>{I.current===H&&(I.current=null);try{k.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}v(!1)},oe=qa(H);I.current=H;try{window.speechSynthesis?.cancel()}catch{}try{if(R&&(v(!0),await J(R)))return;const se=nr();if(se&&h)try{w(!0);const re=await Promise.resolve(se(h));if(!Q.current||I.current!==H||(w(!1),re&&(v(!0),await J(re))))return}catch{}if(!Q.current||I.current!==H)return;await q()}finally{I.current===H&&w(!1),oe(),I.current===H&&(I.current=null)}},[t,R,h,J,q]);o.useImperativeHandle(m,()=>({play:()=>V()}),[V]);const T=H=>H.stopPropagation(),j=o.useCallback(H=>{if(H.stopPropagation(),!t){if(N){try{k.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}v(!1);return}V()}},[t,N,V]),O=we("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:O,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?H=>{H.target===H.currentTarget&&(H.key==="Enter"||H.key===" "||H.key==="Spacebar")&&(H.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:T,children:n.jsx(Mt,{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:K?n.jsx("div",{className:"training-word-card__text-face",children:_.label}):Z?n.jsxs(n.Fragment,{children:[L&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:P,className:"training-word-card__image",src:M,alt:_.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:L?0:1},onLoad:U,onError:F})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!u&&n.jsxs("div",{className:"training-word-card__body",children:[!K&&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?T: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,loading:B,onClick:j,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("${i4}")`}})})]})})}),u4=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:y="center",onClose:C,closeDisabled:f=!1,beforeClose:_,closeOnBackdrop:b=!0,className:k="",ariaLabel:x,useTitle:N=!0,inline:v=!1,size:B,layer:w="modal",height:E,fillBody:D=!1,resetScrollKey:A}=e||{},[R,$]=o.useState(!1),K=o.useRef(!1),M=o.useRef(null),P=o.useId(),L=o.useRef(null);o.useEffect(()=>{},[v,a,x,k]),o.useEffect(()=>{A!==void 0&&L.current&&(L.current.scrollTop=0)},[A]);const[Z,U]=o.useState(!1);o.useEffect(()=>{const z=L.current;if(!z)return;const te=()=>U(z.scrollHeight>z.clientHeight+1);if(te(),typeof ResizeObserver>"u")return;const W=new ResizeObserver(te);W.observe(z);const G=z.firstElementChild;return G&&W.observe(G),()=>W.disconnect()},[i,A]),o.useEffect(()=>{if(!v)return bu()},[v]);const F=o.useRef(typeof document>"u"?null:document.activeElement);o.useEffect(()=>{if(v)return;const z=F.current,te=M.current;return Co(te,z),te&&!te.contains(document.activeElement)&&(te.querySelector(xn)??te).focus(),()=>{const W=document.activeElement;(!W||W===document.body||te&&te.contains(W))&&fo(z)?.focus?.()}},[v]),mo(M,!v);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 J=o.useCallback(()=>{!Q.current||!K.current||(K.current=!1,$(!1))},[]),V=o.useCallback((z,te=!1)=>{if(te&&!Q.current||K.current)return;K.current=!0,$(!0);const W=setTimeout(()=>{q.current===W&&(q.current=null);let G;try{G=z?z():void 0}catch{J();return}G&&typeof G.then=="function"&&G.then(()=>{setTimeout(J,120)},J)},I?0:u4);te&&(q.current=W)},[J,I]),T=o.useCallback(()=>{f||_&&_()===!1||V(C,!0)},[V,C,f,_]),j=o.useRef(T);o.useEffect(()=>{j.current=T});const O=!v&&!!C;o.useEffect(()=>{if(O)return Gn(()=>j.current())},[O]);const H=O&&b,oe=o.useRef(!1),se=z=>{oe.current=z.target===z.currentTarget},re=z=>{const te=oe.current;oe.current=!1,te&&z.target===z.currentTarget&&T()},ee=n.jsx("div",{className:`popup ${v?"popup--inline":""} ${w==="belowPagePopup"?"popup--below-page-popup":""} ${R?"popup--closing":""} ${k}`,onPointerDown:H?se:void 0,onClick:H?re:void 0,onMouseDown:v?void 0:z=>{z.target===z.currentTarget&&z.preventDefault()},children:n.jsxs("div",{ref:M,className:`popup-panel${B?` popup-panel--${B}`:""}${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:v?void 0:"dialog","aria-modal":v?void 0:!0,"aria-labelledby":!v&&N&&a?P:void 0,"aria-label":!v&&!(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:T,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:T,disabled:f,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:L,tabIndex:Z?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:V,closeWithAnimation:T}):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:T}):d}),n.jsx("div",{className:"popup-footer__end",children:typeof m=="function"?m({animateThen:V,closeWithAnimation:T}):m})]}):u?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${y!=="center"?` popup-footer--${y}`:""}`,children:u.map((z,te)=>n.jsx(be,{htmlType:"button",size:48,variant:z.variant??"default",label:z.label,disabled:z.disabled,onClick:()=>z.onClick?.({animateThen:V,closeWithAnimation:T})},te))}):c?n.jsx("div",{className:`popup-footer${y!=="center"?` popup-footer--${y}`:""}${g?` ${g}`:""}`,children:typeof c=="function"?c({animateThen:V,closeWithAnimation:T}):c}):null]})});return v||typeof document>"u"?ee:sn.createPortal(ee,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 c4(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 d4(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 p4(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 m4(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 Qu(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=Qu(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/rc,i/g/oc),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 y=u(h,g);y>p&&(m={cols:h,rows:g},p=y)}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:""},ec={\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"},tc={\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 nc(e){return Object.fromEntries(Object.entries(ec).map(([t,a])=>[t,es[t]?e(`wordTable.pos.${es[t]}`,{defaultValue:a}):a]))}function ac(e){return Object.fromEntries(Object.entries(tc).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 rc=280,g4=240,y4=280,oc=400,v4=120,x4=280;function sc(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,lc=8;function rs({label:e,subLabel:t,colloquialLabel:a,captionLabel:r,captionBadge:s,homonum:l,showWord:i=!0,showImage:u=!0,showPronunciation:c=!0,showColloquial:d=!0,buttonSize:m=40,wordInfo:p,outerScale:h=1}){const{t:g}=xe.useTranslation(),y=o.useRef(null),C=o.useRef(null),f=o.useRef(null),[_,b]=o.useState(1),[k,x]=o.useState(!1),[N,v]=o.useState(!1),[B,w]=o.useState({for:"",url:""}),[E,D]=o.useState(null),A=t&&t.length>0?t:PC()?.(e,l)??"",R=la()?.(e,l)??"",{imgRef:$,loading:K,failed:M,onLoad:P,onError:L}=Xo(R),Z=o.useCallback(()=>D(C.current?.getBoundingClientRect()??null),[]),U=o.useCallback(()=>D(null),[]),F=yo(!!E,re=>{re?Z():U()},C),Q=o.useMemo(()=>{if(!p)return null;const re=[];return p.grade&&re.push(g("wordTable.info.grade",{n:p.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),p.syllables&&re.push(g("wordTable.info.syllables",{n:p.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),p.pos&&re.push(g("wordTable.info.pos",{v:ns(p.pos,nc(g)),defaultValue:"\uD488\uC0AC: {{v}}"})),p.wordType&&re.push(g("wordTable.info.wordType",{v:ns(p.wordType,ac(g)),defaultValue:"\uC720\uD615: {{v}}"})),re.length?re:null},[p,g]),I=A||e,q=B.for===I?B.url:"";o.useEffect(()=>{const re=Ea(),ee=A||e;if(!re||!ee)return;let z=!1;return Promise.resolve(re(ee)).then(te=>{!z&&te&&w({for:ee,url:te})}),()=>{z=!0}},[A,e]);const J=o.useRef(null),V=o.useRef(null);o.useEffect(()=>()=>{f.current?.pause(),V.current?.()},[]);const T=o.useRef(null);o.useEffect(()=>()=>{T.current&&(T.current.cancelled=!0)},[]);const j=o.useCallback(re=>{if(re.stopPropagation(),k||N){J.current?.();return}if(!q){const z=nr(),te=A||e;if(!z||!te)return;const W={cancelled:!1,stop:null};T.current=W;const G=()=>{W.cancelled=!0,W.stop?.(),v(!1),x(!1),V.current?.()};J.current=G,V.current=qa(G),v(!0),Promise.resolve().then(()=>z(te)).then(de=>{if(W.cancelled)return;if(!de){G();return}w({for:te,url:de});const Ee=Ua(de,()=>{x(!1),V.current?.()});f.current=Ee.el,W.stop=Ee.stop,v(!1),x(!0)}).catch(()=>{G()});return}x(!0);const ee=Ua(q,()=>{x(!1),V.current?.()});f.current=ee.el,J.current=ee.stop,V.current=qa(ee.stop)},[k,N,q,A,e]),O=u&&!!R&&!M,H=O&&i?rc:O?y4:g4,oe=O&&i?oc:O?x4:v4;o.useEffect(()=>{const re=y.current;if(!re||typeof ResizeObserver>"u")return;const ee=new ResizeObserver(([z])=>{const{width:te,height:W}=z.contentRect;b(Math.min(te/H,W/oe))});return ee.observe(re),()=>ee.disconnect()},[H,oe]);const se=m*h<_4;return n.jsxs("div",{ref:y,className:we("word-table-cell",se&&"word-table-cell--tap-too-small",O?"word-table-cell--with-image":""),"data-ref-w":H,"data-ref-h":oe,children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${_})`},children:[O&&n.jsxs("div",{className:"word-table-cell__image-wrap",children:[K&&n.jsx("div",{className:"word-table-cell__spinner"}),n.jsx("img",{ref:$,className:"word-table-cell__image",src:R,alt:e,draggable:!1,style:{opacity:K?0:1},onLoad:P,onError:L})]}),(s||r)&&n.jsxs("span",{className:"word-table-cell__caption",children:[s&&n.jsx(Mt,{type:"bar",fill:"soft",size:"small",label:s}),r&&n.jsx("span",{className:"word-table-cell__caption-tail h5",children:r})]}),i&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),c&&A&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",A,"]"]}),d&&a&&n.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),n.jsxs("div",{className:"word-table-cell__side",children:[n.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":q,children:[n.jsx("span",{"data-play-state":"play",style:{display:k?"none":void 0},children:n.jsx(be,{htmlType:"button",size:m,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,loading:N,showTooltipInfo:N?g("common.loading","\uBD88\uB7EC\uC624\uB294 \uC911"):g("common.play","\uC7AC\uC0DD"),ariaLabel:e?g("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):g("common.play","\uC7AC\uC0DD"),onClick:j})}),n.jsx("span",{"data-play-state":"pause",style:{display:k?void 0:"none"},children:n.jsx(be,{htmlType:"button",size:m,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:g("common.pause","\uBA48\uCDA4"),ariaLabel:e?g("common.pauseFor",{name:e,defaultValue:`${e} \uBA48\uCDA4`}):g("common.pause","\uBA48\uCDA4"),onClick:j})})]}),p&&n.jsxs("div",{ref:C,className:"word-table-cell__info-button",onPointerEnter:re=>{pa(re)||Z()},onPointerLeave:re=>{pa(re)||U()},onFocus:()=>{ma()||Z()},onBlur:U,children:[n.jsx(be,{htmlType:"button",size:m,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:g("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:re=>{re.stopPropagation(),F.touchPress()}}),E&&Q&&n.jsx(Kn,{anchorRect:E,items:Q,showIndex:!1})]})]})]})}function ya({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:y=null,onActivateCell:C,onRemoveCell:f,onRemoveItem:_,onReorder:b,renderCellAction:k,showFillerAdd:x=!1,addableCount:N,contentRef:v,buttonSize:B=40,brand:w,code:E,pageNumber:D,pageNumberPosition:A="right",fitHeight:R=!1,scoring:$=!1,marks:K,onMarkClick:M,scoreIndexOffset:P=0}){const L=o.useCallback((Ne,$e)=>{M?.(P+Ne,$e)},[M,P]),Z=(Ne,$e)=>{const Se=K?.[yr(P+Ne)]??null;return n.jsx("div",{className:we("word-table-cell__score",Se?"word-table-cell__score--marked":""),style:At>1?{transform:`translateX(-50%) scale(${At})`,transformOrigin:"bottom center"}:void 0,children:vr.map(He=>n.jsx("span",{className:we("word-table-cell__score-slot",Se===He?"word-table-cell__score-slot--on":""),children:n.jsx(be,{htmlType:"button",size:B,type:"dot",shape:"pill",icon:Zu[He],variant:Se===He?Xu[He]:"default",selected:Se===He,useBorder:!1,...at?{}:{tabIndex:-1,role:"img"},showTooltipInfo:U(`wordTable.scoring.markName.${He}`,{defaultValue:He}),ariaLabel:U(`wordTable.scoring.${He}`,{word:$e,defaultValue:`${$e} ${He}`}),onClick:at?rt=>{rt.stopPropagation(),L(Ne,He)}:void 0})},He))})},{t:U}=xe.useTranslation(),F=h!==void 0,Q=e!=null||!!t||!!a,I=mn("(max-width: 767px)"),q=o.useRef(null),[J,V]=o.useState(null),T=p?.length??0,[j,O]=o.useState(null),[H,oe]=o.useState(""),se=o.useRef(null),re=o.useRef(null),ee=o.useRef(null),z=o.useRef(null),te=o.useCallback(Ne=>{re.current=Ne,typeof v=="function"?v(Ne):v&&(v.current=Ne)},[v]),W=o.useCallback((Ne,$e)=>{se.current=$e,b?.(Ne,$e),oe(U("wordTable.reorder.moved",{n:$e+1,total:T,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[b,U,T]);o.useEffect(()=>{const Ne=se.current;Ne!=null&&(se.current=null,re.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler):not(.word-table-block__card--base)")?.[Ne]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{z.current?.()},[]);const G=o.useCallback((Ne,$e)=>{if(!b||!Ne.altKey||Ne.ctrlKey||Ne.metaKey)return;const Se=Ne.key==="ArrowRight";if(!Se&&Ne.key!=="ArrowLeft")return;Ne.preventDefault();const He=$e+(Se?1:-1);He<0||He>=T||W($e,He)},[b,T,W]),de=o.useCallback((Ne,$e)=>{if(!b||Ne.pointerType==="mouse")return;const Se=Ne.target.closest?.("button");if(Se&&!Se.closest(".word-table-block__card-handle"))return;z.current?.();const He={x:Ne.clientX,y:Ne.clientY};let rt=!1;const vt=ut=>{rt&&ut.cancelable&&ut.preventDefault()};let et=null,Nt=null;const Ye=()=>{const ut=Nt;if(!ut)return;const De=document.elementFromPoint?.(ut.x,ut.y)?.closest?.("[data-wordtable-cell]"),nt=De?Number(De.dataset.wordtableCell):NaN,ae=Number.isInteger(nt)?nt:null;ee.current=ae,V(Ce=>Ce===ae?Ce:ae)},bt=ut=>{if(!rt){(Math.abs(ut.clientX-He.x)>lc||Math.abs(ut.clientY-He.y)>lc)&&ft();return}if(Nt={x:ut.clientX,y:ut.clientY},typeof requestAnimationFrame>"u"){Ye();return}et===null&&(et=requestAnimationFrame(()=>{et=null,Ye()}))},kt=()=>{et!==null&&(cancelAnimationFrame(et),et=null,Ye());const ut=ee.current,De=rt;ft(),De&&ut!=null&&ut!==$e&&W($e,ut)},gt=setTimeout(()=>{rt=!0,O($e),ee.current=$e,V($e),window.addEventListener("touchmove",vt,{passive:!1})},B4);function ft(){clearTimeout(gt),window.removeEventListener("pointermove",bt),window.removeEventListener("pointerup",kt),window.removeEventListener("pointercancel",kt),window.removeEventListener("touchmove",vt),rt=!1,et!==null&&(cancelAnimationFrame(et),et=null),ee.current=null,z.current=null,O(null),V(null)}z.current=ft,window.addEventListener("pointermove",bt),window.addEventListener("pointerup",kt),window.addEventListener("pointercancel",kt)},[b,W]),{width:Ee,height:ve}=Jn[s],me=typeof R=="number"?R:R&&typeof R=="object"?I?R.narrow:R.wide:null,{scalerRef:ce,scale:ge,offset:he}=sc(Ee,R?ve:void 0),pe=F?h?.length??0:p?.length??0,Le=Math.max(g??pe,1),ze=!F&&!!i,Me=C4(s,Le),Ve=Qu(s,Le),We=ze?Me.cols:Ve.cols,dt=ze?Me.rows:Ve.rows,lt=ze&&s==="landscape"?Me.cols*2:We,tt=ze&&s==="portrait"?Me.rows*2:dt,yt=Ne=>({word:Ne.length===0||Ne.includes("word"),image:Ne.length===0||Ne.includes("image"),pron:Ne.length===0||Ne.includes("standardPron"),colloq:Ne.length===0||Ne.includes("colloquialPron")}),_e=yt(l),Ge=yt(u??l),Be=F?(h??[]).some(Ne=>Ne!==null&&Ne.length>1):(p??[]).some(Ne=>(Ne.words??[]).length>1),qe=!!w?.show,Ke=!!w?.show&&w?.top!==!1,pt=!!w?.show&&w?.bottom!==!1,xt=w?.copyright??"\xA9 IHAB, Inc. All rights reserved.",Dt=we("word-table-block__content",f4[c],d&&"word-table-block__content--outline",m&&Be&&"word-table-block__content--div-line",!qe&&D&&A!=="none"&&"word-table-block__content--page-number",Ke&&"word-table-block__content--brand-top",pt&&"word-table-block__content--brand-bottom"),St={transform:`scale(${1/ge})`,transformOrigin:"center center"},it=B*vr.length+4*(vr.length-1),at=!!M,At=at?Math.max(1,Math.min(1/ge,Ee/lt/it)):1,_t=n.jsxs("div",{ref:ce,className:"word-table__scaler",style:{height:ve*ge},children:[n.jsx("div",{className:we("word-table",$&&!at&&"word-table--score-readonly",!Q&&r),style:{width:Ee,height:ve,transform:`scale(${ge})`,transformOrigin:"top left",marginLeft:he},children:n.jsxs("div",{ref:te,className:Dt,style:{gridTemplateColumns:`repeat(${lt}, 1fr)`,gridTemplateRows:`repeat(${tt}, 1fr)`},children:[F?n.jsx(n.Fragment,{children:(h??[]).map((Ne,$e)=>n.jsx("div",{className:we("word-table-block__edit-cell",Ne?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",y===$e?"word-table-block__edit-cell--active":""),style:as($e,lt,tt,c),children:Ne?n.jsxs(n.Fragment,{children:[Ne.map((Se,He)=>n.jsxs(o.Fragment,{children:[He>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(rs,{outerScale:ge,label:Se.word,subLabel:Se.pronunciation,colloquialLabel:Se.colloquialPronunciation,homonum:Se.homonum,showWord:_e.word,showImage:_e.image,showPronunciation:_e.pron,showColloquial:_e.colloq,buttonSize:B})]},He)),$&&Z($e,Ne.map(Se=>Se.word).join(" / ")),f&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(be,{htmlType:"button",size:B,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:Ne.length>1?U("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):U("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:Ne.length>1?U("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):U("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f($e)})})]}):C&&n.jsx("div",{style:St,children:n.jsx(be,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:U("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C($e)})})},$e))}):n.jsxs(n.Fragment,{children:[ze&&i&&n.jsx("div",{className:"word-table-block__card word-table-block__card--base",style:{gridColumn:`1 / span ${Me.cols}`,gridRow:`1 / span ${Me.rows}`,...as(0,s==="landscape"?2:1,s==="landscape"?1:2,c)},children:(i.words??[]).map((Ne,$e)=>n.jsxs(o.Fragment,{children:[$e>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(rs,{outerScale:ge,label:Ne.label,subLabel:Ne.subLabel,colloquialLabel:Ne.colloquialLabel,captionLabel:Ne.captionLabel,captionBadge:Ne.captionBadge,homonum:Ne.homonum,showWord:Ge.word,showImage:Ge.image,showPronunciation:Ge.pron,showColloquial:Ge.colloq,buttonSize:B,wordInfo:Ne.grade||Ne.syllables!=null||Ne.pos||Ne.wordType?{grade:Ne.grade,syllables:Ne.syllables,pos:Ne.pos,wordType:Ne.wordType}:void 0})]},$e))}),(p??[]).map((Ne,$e)=>n.jsxs("div",{"data-wordtable-cell":b?$e:void 0,className:`word-table-block__card${b?" word-table-block__card--draggable":""}${J===$e?" word-table-block__card--drag-over":""}${j===$e?" word-table-block__card--dragging":""}`,style:as($e,We,dt,c),draggable:!!b,onPointerDown:b?Se=>de(Se,$e):void 0,onKeyDown:b?Se=>G(Se,$e):void 0,onDragStart:b?()=>{q.current=$e}:void 0,onDragOver:b?Se=>{Se.preventDefault(),V($e)}:void 0,onDragLeave:b?()=>V(null):void 0,onDrop:b?Se=>{Se.preventDefault(),q.current!==null&&q.current!==$e&&b(q.current,$e),q.current=null,V(null)}:void 0,onDragEnd:b?()=>{q.current=null,V(null)}:void 0,children:[(Ne.words??[]).map((Se,He)=>n.jsxs(o.Fragment,{children:[He>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(rs,{outerScale:ge,label:Se.label,subLabel:Se.subLabel,colloquialLabel:Se.colloquialLabel,captionLabel:Se.captionLabel,captionBadge:Se.captionBadge,homonum:Se.homonum,showWord:_e.word,showImage:_e.image,showPronunciation:_e.pron,showColloquial:_e.colloq,buttonSize:B,wordInfo:Se.grade||Se.syllables!=null||Se.pos||Se.wordType?{grade:Se.grade,syllables:Se.syllables,pos:Se.pos,wordType:Se.wordType}:void 0})]},He)),$&&Z($e,(Ne.words??[]).map(Se=>Se.label).join(" / ")),(k||_||b)&&n.jsxs("div",{className:"word-table-block__card-actions",children:[_&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(be,{htmlType:"button",size:B,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(Ne.words??[]).length>1?U("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):U("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(Ne.words??[]).length>1?U("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):U("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>_(Ne.id)})}),k?.($e,Ne),b&&n.jsx("div",{className:"word-table-block__card-handle",children:n.jsx(be,{htmlType:"button",size:B,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:U("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:U("wordTable.reorder.handle",{word:(Ne.words??[]).map(Se=>Se.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})})]})]},$e)),Array.from({length:Math.max(0,We*dt-(p?.length??0))}).map((Ne,$e)=>{const Se=(p?.length??0)+$e<(N??Le);return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:x&&C&&Se&&n.jsx("div",{style:St,children:n.jsx(be,{htmlType:"button",size:B,type:"bar",icon:"plus",label:U("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>C((p?.length??0)+$e)})})},`filler-${$e}`)})]}),Ke&&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??hr,alt:w?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const Ne=[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"),E&&n.jsx("span",{className:"word-table__code",children:E},"c")].filter(Boolean);return Ne.length===0?null:n.jsx("span",{className:"word-table__ident",children:Ne.map(($e,Se)=>n.jsxs(o.Fragment,{children:[Se>0&&n.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),$e]},Se))})})()]})}),pt&&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:xt})]}),n.jsxs("span",{className:"word-table__band-end",children:[w?.link&&n.jsx("span",{className:"word-table__link",children:w.link}),D&&A!=="none"&&n.jsx("span",{className:"word-table__page-count",children:U("wordTable.filter.pageIndicator",{current:D.current,total:D.total})})]})]})}),!qe&&D&&A!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${A}`,children:U("wordTable.filter.pageIndicator",{current:D.current,total:D.total})})]})}),b&&n.jsx("span",{role:"status",style:w4,children:H})]}),Lt=me==null?_t:n.jsx("div",{className:"word-table__frame",style:{height:me},children:_t});return Q?n.jsx(ga,{type:"page",icon:t,title:e,disc:a,className:we("word-table-block",r),children:Lt}):Lt}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!==yn);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:y}){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 R=A.target;!R||typeof R.closest!="function"||R.closest(".filter-panel__collapse-toggle")||R.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||x()},v=o.useMemo(()=>r!==void 0||!k?"":k4(d,m,f("common.all","\uC804\uCCB4")),[r,k,d,m,f]),B=r??(v?n.jsx("span",{className:"filter-panel__header-summary body-3",children:v}):null),w=e||a||r||s,E=o.useId(),D=t?`h${t}`:"span";return n.jsxs("div",{className:we("filter-panel",s?"filter-panel--collapsible":"",k?"filter-panel--collapsed":"",y),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?E:void 0,children:[w&&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?B: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:we("filter-panel__sections",C?"filter-panel__sections--row":""),children:d.map(A=>{const R=m[A.label],$=R===void 0||(Array.isArray(R)?R.length===0:!1),K=(A.items??[]).filter(P=>P!=null);A.allOption&&K.some(P=>(typeof P=="string"?P:P.value)===yn)&&Tt(`filter-panel-all-value:${A.label}`,`[FilterPanel] '${A.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${yn}' \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 L=typeof P=="string"?P:P.value,Z=typeof P!="string"&&!!P.disabled,U=typeof P!="string"?P.labels:void 0,F=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,J=Array.isArray(R)?R.includes(L):R===L;return n.jsx(be,{htmlType:"button",size:"keyboard",label:U??F??L,type:A.itemType??(U?"bar":L.length===1?"dot":void 0),selected:J,disabled:Z,shape:q,showTooltipInfo:!!Q,tooltipInfoText:Q,tooltipDescription:I,onClick:()=>p?.(L,A.label)},L)};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:we("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(Va,{...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:yn,label:A.allLabel??f("common.all","\uC804\uCCB4"),disabled:A.allOptionDisabled}]:[],...K.map(P=>{const L=typeof P=="string"?P:P.value,Z=typeof P!="string"?P.displayLabel:void 0,U=typeof P!="string"?P.disabled:void 0;return{key:L,label:Z??L,disabled:U}})],value:$&&A.allOption?yn:m[A.label]??"",onChange:P=>p?.(P,A.label),size:32}):!A.multiple&&A.display==="dropdown"?n.jsx(hn,{className:"filter-panel__dropdown",ariaLabel:typeof A.label=="string"?A.label:void 0,size:40,options:[...A.allOption?[{value:yn,label:A.allLabel??f("common.all","\uC804\uCCB4"),disabled:A.allOptionDisabled}]:[],...K.map(P=>{const L=typeof P=="string"?P:P.value,Z=typeof P!="string"?P.displayLabel:void 0,U=typeof P!="string"?P.disabled:void 0;return{value:L,label:Z??L,disabled:U}})],value:$&&A.allOption?yn: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?.(yn,A.label)}),A.groups?A.groups.map((P,L)=>n.jsxs("div",{className:"filter-panel__item-group",children:[L===0&&A.allOption&&n.jsx(be,{htmlType:"button",size:"keyboard",label:A.allLabel??f("common.all","\uC804\uCCB4"),selected:$,disabled:A.allOptionDisabled,onClick:()=>p?.(yn,A.label)}),P.filter(Z=>Z!=null).map(M)]},L)):K.map(M)]})]})]},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],ic=[8,6,4,2,1],dn="show",Bn="hide";function uc(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 cc(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 dc(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 pc(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 mc(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 hc(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 Cc(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 fc(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...ic.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||!ic.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 gc(e){return e==="left"||e==="center"||e==="right"?e:"none"}function yc(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 vc(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===yn?(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:y,cutLine:C,showDivLine:f,setters:_,showCutLine:b=!1,showDivLine2:k=!1,middleSections:x=[],extraSelected:N={},onExtraSelect:v,showPaperBands:B=!1,showTopInfo:w=!0,showBottomInfo:E=!0}=e,D=[uc(t,{hasImage:m,hasColloquial:p}),cc(t),...x,dc(t),...b?[hc(t)]:[],...k?[Cc(t)]:[],...B?[pc(t),mc(t)]:[]],A={...yc(t,{contentTypes:h,orientation:g,showOutline:y,cutLine:C,showDivLine:f,showTopInfo:w,showBottomInfo:E}),...N},R=($,K)=>{vc(t,$,K,_)||v?.($,K)};return n.jsx(Mn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:D,selected:A,onSelect:R,...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,va=null;function T4(e,t,a,r="",s=""){if(e.length===0||va&&va.iframe.isConnected&&Date.now()-va.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}va={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(),va?.iframe===u&&(va=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
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}">
|
|
@@ -1034,17 +1034,17 @@ ${x.badge}`:x.badge:void 0;if(v&&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}=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),y=(r?ls(r):"")||i("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),C=Object.assign(document.createElement("a"),{href:g,download:`${y}.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 xc(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),[y,C]=o.useState(!0),[f,_]=o.useState(!0),[b,k]=o.useState(8),[x,N]=o.useState("right"),v=e.length,B=e.some(Z=>(Z.words??[]).length>1),w=e.some(Z=>(Z.words??[]).some(U=>!!U.colloquialLabel)),E=Math.min(b,Math.max(v,1)),D=o.useMemo(()=>m4(e,E),[e,E]),A=D.length>1,R=E,[$,K]=o.useState(!1);o.useEffect(()=>{let Z=!1;if(!la()){K(!1);return}return Promise.all(e.flatMap(U=>(U.words??[]).map(F=>Dl(F.label,F.homonum)))).then(U=>{Z||K(U.some(Boolean))},()=>{}),()=>{Z=!0}},[e]);const M=o.useMemo(()=>[uc(a,{hasImage:$,hasColloquial:w}),cc(a),...v>0?[fc(a,{hasPairs:B,itemCount:v})]:[],dc(a),...R>1?[hc(a)]:[],...B?[Cc(a)]:[],...r?[pc(a),mc(a)]:[]],[a,$,w,v,B,A,R,r]),I={...yc(a,{contentTypes:i,orientation:s,showOutline:m,cutLine:c,showDivLine:f,showTopInfo:h,showBottomInfo:y}),...v>0?{[a(B?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${E}\uAC1C`}:{},...A?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:x}:{}},L=o.useCallback((Z,U)=>{vc(a,Z,U,{setContentTypes:u,setOrientation:l,setShowOutline:p,setCutLine:d,setShowDivLine:_,setShowTopInfo:g,setShowBottomInfo:C})||(U===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||U===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?k(bc(parseInt(Z),v)):U===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&N(gc(Z)))},[a,v]);return{settings:{orientation:s,contentTypes:i,cutLine:c,showOutline:m,showDivLine:f,count:R,showTopInfo:h,showBottomInfo:y},filterSections:M,filterSelected:I,handleSelect:L,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:y,scoring:C=!1,onScoreChange:f,printHeader:_,brand:b,code:k,beforeClose:x}){const{t:N}=xe.useTranslation(),v=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(z=>typeof z=="string"&&z.length>0).map((z,te)=>({id:`${z}-${te}`,words:[{label:z}]})),[e,t]),{settings:B,filterSections:w,filterSelected:E,handleSelect:D,pages:A,isPaginated:R,pageNumberPosition:$}=xc(v,{paperBands:!!b?.show}),K=o.useMemo(()=>Ju(A.map(z=>z.length)),[A]),[M,I]=o.useState({}),L=o.useCallback((z,te)=>{I(W=>({...W,[vr(z)]:Yu(W[vr(z)]??null,te)}))},[]),Z=o.useRef(f);o.useEffect(()=>{Z.current=f});const U=o.useRef(M);o.useEffect(()=>{U.current!==M&&(U.current=M,Z.current?.(Qo(M)))},[M]);const F=o.useMemo(()=>Qo(M),[M]),Q=o.useRef(null),{toastMessage:P,toastKey:q,showWarning:X,clearToast:V}=Wi("warning"),T=o.useRef([]),j=o.useCallback(()=>R?T.current.filter(z=>z!==null):Q.current?[Q.current]:[],[R]),{print:O,openNewWindow:H}=us({getElements:j,paperW:Jn[B.orientation].width,paperH:Jn[B.orientation].height,fileName:m??"",header:_??"",onPopupBlocked:()=>X(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."))}),oe=o.useMemo(()=>u?void 0:i?i({print:O,openNewWindow:H}):m?[{label:N("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>H()},{label:N("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>O()},...l??[]]:l,[u,i,m,l,N,O,H]),ne=o.useMemo(()=>u?u({print:O,openNewWindow:H}):void 0,[u,O,H]),le=o.useRef(!1),ee=o.useRef(O);return o.useEffect(()=>{ee.current=O},[O]),o.useEffect(()=>{if(!h||le.current)return;const z=window.setTimeout(()=>{le.current=!0,ee.current()},100);return()=>window.clearTimeout(z)},[h]),n.jsxs(Wn,{title:a??N("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:we("word-table-popup",g),buttons:oe,footer:ne,footerClassName:c,footerLayout:d,beforeClose:x,onClose:y,children:[v.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[p&&n.jsx(os,{sections:w,selected:E,onSelect:D}),R?n.jsx("div",{className:"word-table-popup__pages",children:A.map((z,te)=>n.jsx(ya,{items:z,orientation:B.orientation,contentTypes:B.contentTypes,cutLine:B.cutLine,showOutline:B.showOutline,showDivLine:B.showDivLine,count:B.count,contentRef:W=>{T.current[te]=W},pageNumber:{current:te+1,total:A.length},pageNumberPosition:$,brand:b&&{...b,top:B.showTopInfo,bottom:B.showBottomInfo},code:k,scoring:C,scoreIndexOffset:K[te],marks:F,onMarkClick:L},te))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(ya,{items:v,orientation:B.orientation,contentTypes:B.contentTypes,cutLine:B.cutLine,showOutline:B.showOutline,showDivLine:B.showDivLine,count:B.count,contentRef:Q,fitHeight:!0,scoring:C,marks:F,onMarkClick:L,brand:b&&{...b,top:B.showTopInfo,bottom:B.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(fa,{message:P,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 _c(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}=_c(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:_c(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 wc(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 Bc(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:wc(s),key:s,tried:i,o:l.o,triangle:l.triangle,x:l.x,rate:Bc(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 Bc(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(qt.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?ds(qt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):ds(qt.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(st,{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 y=c===g?null:g;m.current=!0,l||u(y),r?.(y)},[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
|
|
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),y=(r?ls(r):"")||i("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),C=Object.assign(document.createElement("a"),{href:g,download:`${y}.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 xc(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),[y,C]=o.useState(!0),[f,_]=o.useState(!0),[b,k]=o.useState(8),[x,N]=o.useState("right"),v=e.length,B=e.some(Z=>(Z.words??[]).length>1),w=e.some(Z=>(Z.words??[]).some(U=>!!U.colloquialLabel)),E=Math.min(b,Math.max(v,1)),D=o.useMemo(()=>m4(e,E),[e,E]),A=D.length>1,R=E,[$,K]=o.useState(!1);o.useEffect(()=>{let Z=!1;if(!la()){K(!1);return}return Promise.all(e.flatMap(U=>(U.words??[]).map(F=>Dl(F.label,F.homonum)))).then(U=>{Z||K(U.some(Boolean))},()=>{}),()=>{Z=!0}},[e]);const M=o.useMemo(()=>[uc(a,{hasImage:$,hasColloquial:w}),cc(a),...v>0?[fc(a,{hasPairs:B,itemCount:v})]:[],dc(a),...R>1?[hc(a)]:[],...B?[Cc(a)]:[],...r?[pc(a),mc(a)]:[]],[a,$,w,v,B,A,R,r]),P={...yc(a,{contentTypes:i,orientation:s,showOutline:m,cutLine:c,showDivLine:f,showTopInfo:h,showBottomInfo:y}),...v>0?{[a(B?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${E}\uAC1C`}:{},...A?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:x}:{}},L=o.useCallback((Z,U)=>{vc(a,Z,U,{setContentTypes:u,setOrientation:l,setShowOutline:p,setCutLine:d,setShowDivLine:_,setShowTopInfo:g,setShowBottomInfo:C})||(U===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||U===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?k(bc(parseInt(Z),v)):U===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&N(gc(Z)))},[a,v]);return{settings:{orientation:s,contentTypes:i,cutLine:c,showOutline:m,showDivLine:f,count:R,showTopInfo:h,showBottomInfo:y},filterSections:M,filterSelected:P,handleSelect:L,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:y,scoring:C=!1,onScoreChange:f,printHeader:_,brand:b,code:k,beforeClose:x}){const{t:N}=xe.useTranslation(),v=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(z=>typeof z=="string"&&z.length>0).map((z,te)=>({id:`${z}-${te}`,words:[{label:z}]})),[e,t]),{settings:B,filterSections:w,filterSelected:E,handleSelect:D,pages:A,isPaginated:R,pageNumberPosition:$}=xc(v,{paperBands:!!b?.show}),K=o.useMemo(()=>Ju(A.map(z=>z.length)),[A]),[M,P]=o.useState({}),L=o.useCallback((z,te)=>{P(W=>({...W,[yr(z)]:Yu(W[yr(z)]??null,te)}))},[]),Z=o.useRef(f);o.useEffect(()=>{Z.current=f});const U=o.useRef(M);o.useEffect(()=>{U.current!==M&&(U.current=M,Z.current?.(Qo(M)))},[M]);const F=o.useMemo(()=>Qo(M),[M]),Q=o.useRef(null),{toastMessage:I,toastKey:q,showWarning:J,clearToast:V}=Wi("warning"),T=o.useRef([]),j=o.useCallback(()=>R?T.current.filter(z=>z!==null):Q.current?[Q.current]:[],[R]),{print:O,openNewWindow:H}=us({getElements:j,paperW:Jn[B.orientation].width,paperH:Jn[B.orientation].height,fileName:m??"",header:_??"",onPopupBlocked:()=>J(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."))}),oe=o.useMemo(()=>u?void 0:i?i({print:O,openNewWindow:H}):m?[{label:N("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>H()},{label:N("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>O()},...l??[]]:l,[u,i,m,l,N,O,H]),se=o.useMemo(()=>u?u({print:O,openNewWindow:H}):void 0,[u,O,H]),re=o.useRef(!1),ee=o.useRef(O);return o.useEffect(()=>{ee.current=O},[O]),o.useEffect(()=>{if(!h||re.current)return;const z=window.setTimeout(()=>{re.current=!0,ee.current()},100);return()=>window.clearTimeout(z)},[h]),n.jsxs(Wn,{title:a??N("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:we("word-table-popup",g),buttons:oe,footer:se,footerClassName:c,footerLayout:d,beforeClose:x,onClose:y,children:[v.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[p&&n.jsx(os,{sections:w,selected:E,onSelect:D}),R?n.jsx("div",{className:"word-table-popup__pages",children:A.map((z,te)=>n.jsx(ya,{items:z,orientation:B.orientation,contentTypes:B.contentTypes,cutLine:B.cutLine,showOutline:B.showOutline,showDivLine:B.showDivLine,count:B.count,contentRef:W=>{T.current[te]=W},pageNumber:{current:te+1,total:A.length},pageNumberPosition:$,brand:b&&{...b,top:B.showTopInfo,bottom:B.showBottomInfo},code:k,scoring:C,scoreIndexOffset:K[te],marks:F,onMarkClick:L},te))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(ya,{items:v,orientation:B.orientation,contentTypes:B.contentTypes,cutLine:B.cutLine,showOutline:B.showOutline,showDivLine:B.showDivLine,count:B.count,contentRef:Q,fitHeight:!0,scoring:C,marks:F,onMarkClick:L,brand:b&&{...b,top:B.showTopInfo,bottom:B.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(fa,{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 _c(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]=lo(t).split("-"),s=`${a}.${r}`,{base:l,round:i}=_c(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:_c(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 wc(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 Bc(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:wc(s),key:s,tried:i,o:l.o,triangle:l.triangle,x:l.x,rate:Bc(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 Bc(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(qt.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?ds(qt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):ds(qt.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(st,{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 y=c===g?null:g;m.current=!0,l||u(y),r?.(y)},[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}=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(),y=o.useRef(null);o.useEffect(()=>{if(!p)return;const _=Gn(()=>{const x=document.getElementById(g);x&&x.contains(document.activeElement)&&y.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:y,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,[]),y=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:y}),[p,h,g,u,c,d,m,l,i,y])}const xa=9,hx=e=>Math.round(Math.min(xa,Math.max(0,e))/xa*100),Cx=e=>e/100*xa,Qa=2,kc=.1,fx=e=>Math.min(Qa,Math.max(0,e)),bx=.1,gx=e=>Math.round(e*1e6)/1e6;function er(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return fx(t);const a=Math.min(xa,Math.max(0,Number(e.level)||0))/xa,r=Number(e.mainVolume);return r>0?a>0?gx(Math.min(Qa,Math.max(bx,a/r))):0:1}const Ac=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Nc(e){return Ac(e)}function ps(e){return Ac(e)*er(e)}function ms(e,t=LC()){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=er({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 wr(){return o.useContext(hs)}const Cs=e=>`${MC()}/${e}`,Ec=e=>Array.from({length:10},(t,a)=>Cs(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),Br={get defaultNoise(){return Cs("noise1.mp3")},get street(){return Ec("noise2")},get restaurant(){return Ec("noise3")},get buzz(){return Cs("noise4.mp3")}};function yx(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return Br.defaultNoise;case"street":return Br.street[t];case"restaurant":return Br.restaurant[t];case"buzz":return Br.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),y=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,v=250)=>{const B=l.current;if(!B)return;const w=d.current;if(w){d.current=null;try{B.pause()}catch{}B.src=w,B.load()}if(!B.src)return;h.current+=1,C();try{to(),ar(B).then(R=>{if(l.current===B)try{s.current?.("noise",R)}catch{}})}catch{}const E=B.paused?0:rr(B);B.paused&&On(B,0),B.play().catch(()=>{});const D=performance.now(),A=()=>{const R=Math.min(1,(performance.now()-D)/v);try{On(B,E+(N-E)*R)}catch{}R<1?p.current=requestAnimationFrame(A):p.current=null};p.current=requestAnimationFrame(A)},[C]),_=o.useCallback((N=250,v)=>{const B=l.current;if(!B||B.paused){v?.();return}const w=++h.current;C();const E=performance.now(),D=rr(B),A=()=>{const R=Math.min(1,(performance.now()-E)/N);try{On(B,D*(1-R))}catch{}if(R<1)p.current=requestAnimationFrame(A);else{p.current=null,g.current!==null&&(clearTimeout(g.current),g.current=null);try{B.pause()}catch{}v?.()}};p.current=requestAnimationFrame(A),g.current=setTimeout(()=>{if(g.current=null,h.current===w){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{B.paused||(On(B,0),B.pause(),v?.())}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 v=setInterval(()=>{const B=l.current;if(!B||B.paused){N=0;return}const w=t.current;if(w&&!w.paused&&!w.ended||y()||a.current==="playing"){N=0;return}N+=1,N>=2&&(N=0,_())},400);return()=>clearInterval(v)},[_,k,t,a,y]),o.useEffect(()=>{const N=()=>{const v=l.current;if(document.hidden){if(v&&!v.paused){C();try{v.pause()}catch{}}return}if(!v||!v.paused)return;const B=t.current,w=!!B&&!B.paused&&!B.ended||y()||a.current==="playing",E=m.current;w&&E?.enabled&&E.volume>0&&f(E.volume)};return document.addEventListener("visibilitychange",N),()=>document.removeEventListener("visibilitychange",N)},[C,f,t,a,y]),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,v=l.current;if(!v)return;const B=N?ms(N):0;if(!N||!N.enabled||B===0){_();return}if(c.current!==N.type){const w=yx(N.type);w&&(c.current=N.type,u(w),d.current=w,_(150,()=>{if(d.current!==w)return;d.current=null,v.src=w,v.load();const E=t.current;if(E&&!E.paused||y()){x.current?.();const D=()=>{v.removeEventListener("canplay",D),x.current===A&&(x.current=null);const R=t.current,$=m.current;(R&&!R.paused&&!R.ended||y())&&$?.enabled&&$.volume>0&&f($.volume)},A=()=>v.removeEventListener("canplay",D);x.current=A,v.addEventListener("canplay",D)}}))}else{const w=t.current,E=!!w&&!w.paused&&!w.ended||y()||a.current==="playing";if(E&&d.current)f(B);else if(E&&v.paused&&v.src)f(B);else if(!v.paused)if(!E)_();else{C();const D=rr(v),A=performance.now(),R=()=>{const $=Math.min(1,(performance.now()-A)/150);try{On(v,D+(B-D)*$)}catch{}$<1?p.current=requestAnimationFrame(R):p.current=null};p.current=requestAnimationFrame(R)}}},[e?.settings,e?.settings.enabled,b,e?.settings.type,C,f,_,t,a,m,y]),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),y=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,v=1)=>{try{const B=(N||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(N||"").length);return Math.max(700,Math.round(B*300/Math.max(.25,v)))}catch{return 1200}},k=o.useCallback(N=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!1)}catch{}return}const v=window.speechSynthesis,B=++f.current;try{try{v.cancel()}catch{}const w=N??e,E=Array.isArray(w)?w.filter(M=>!!M):[w||""];E.length===0&&E.push("");const D=Math.max(.3,Math.min(3,t));y.current=E.reduce((M,I)=>M+b(I,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 R=()=>{try{const M=g.current||performance.now(),I=performance.now()-M,L=y.current||1200,Z=Math.min(1,I/L);try{r.current&&(r.current.style.left=`${Z*100}%`),s.current&&s.current.style.setProperty("--progress",String(Z))}catch{}Z<1&&(C.current=requestAnimationFrame(R))}catch{}},$=()=>{if(B===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=M=>{const I=new SpeechSynthesisUtterance(E[M]);try{I.rate=D}catch{}try{I.volume=Math.max(0,Math.min(1,a))}catch{}I.onend=()=>{if(B===f.current){if(M<E.length-1){try{K(M+1)}catch{$()}return}$()}},I.onerror=()=>{$()},I.onstart=()=>{if(!(M>0))try{C.current&&(cancelAnimationFrame(C.current),C.current=null),C.current=requestAnimationFrame(R)}catch{}},_.current=!0,v.speak(I)};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),y=Math.min(u.length,g);for(;c<y&&Math.abs(u[c])<=_x;)c++;c>=y&&(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,y)=>{const C=c+y*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 Dc(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 kr(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function Ar(e){return kr(e)/45}const Nx=e=>Math.max(0,(typeof e=="number"&&Number.isFinite(e)?e:0)*1e3),Sc=e=>Math.max(0,typeof e=="number"&&Number.isFinite(e)?e:0);function jc({durationsSec:e,leadInMs:t=0,tailMs:a=0}){const r=Sc(t),s=Sc(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 Tc(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=Tc(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=Tc(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=jc({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(jc({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?Mc(a)!==Mc(t):!0}function Mc(e){try{return new URL(e,typeof location>"u"?"http://localhost/":location.href).href}catch{return e}}const Lc=4,Fx=Ar(Lc/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:y=0}=e,C=o.useRef(null),f=o.useRef(null),[_,b]=o.useState(null),[k,x]=o.useState(!1),[N,v]=o.useState(null),[B,w]=o.useState(2),[E,D]=o.useState(0),[A,R]=o.useState(null),[$,K]=o.useState(!1),[M,I]=o.useState(!1),L=3,Z=3,U=1,F=300,Q=o.useRef(0),P=o.useCallback(()=>{const ve=C.current,me=f&&f.current?f.current:ve?ve.closest(".audio-player__wave"):null,ce=me?me.getBoundingClientRect():ve?ve.getBoundingClientRect():null,ge=ce?ce.width:0,he=ce?Math.max(100,ce.width):320,de=ce?ce.height:0,Le=Math.max(U,Math.min(F,Math.floor((he+Z)/(L+Z)))),ze=Le*L,Me=Math.max(0,Le-1),Ve=Math.max(0,Me>0?(he-ze)/Me:Z);return{bars:Le,gap:Ve,height:de,width:ge}},[]),q=o.useRef(void 0),X=o.useRef(null),V=o.useCallback(async(ve,me,{quiet:ce=!1}={})=>{const ge=++Q.current,he=()=>Q.current===ge;try{if(ce||x(!1),q.current=ve,!ve){he()&&b(null);return}let de=me;if(!de)try{for(let Me=0;Me<4&&!(C.current||f.current);Me++)await new Promise(Ve=>requestAnimationFrame(Ve));await new Promise(Me=>requestAnimationFrame(Me));const ze=P();ze.height>0&&D(ze.height),de=ze.bars,w(ze.gap)}catch{de=120}X.current=de;const Le=await Dc(ve,de);if(!he())return;if(!Le){b(null),x(!1);return}b(Le),v(de),x(!0)}catch{if(!he())return;b(null),x(!1)}},[x,b,D,w,v,P]);o.useEffect(()=>{const ve=f.current;if(!ve||typeof ResizeObserver>"u")return;let me=null;const ce=new ResizeObserver(()=>{me!==null&&cancelAnimationFrame(me),me=requestAnimationFrame(()=>{me=null;try{const ge=P();if(ge.width<=0||(ge.height>0&&D(ge.height),X.current===null||ge.bars===X.current))return;const he=q.current;w(ge.gap),he?V(he,ge.bars,{quiet:!0}).catch(()=>{}):X.current=ge.bars}catch{}})});return ce.observe(ve),()=>{ce.disconnect(),me!==null&&cancelAnimationFrame(me)}},[P,V]),o.useEffect(()=>{const ve=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;V(typeof ve=="string"?ve:void 0).catch(()=>{}),I(!1)},[t,a,V]),o.useEffect(()=>{let ve=!1;if(K(!1),R(null),!l||!N)return;const me=c>0?c*(u||1):void 0;return Dc(l,N,me,!0).then(ce=>{ve||(R(ce),ce||K(!0))}).catch(()=>{ve||(R(null),K(!0))}),()=>{ve=!0}},[l,N,c,u]);const T=Math.max(0,Math.min(1,d)),j=o.useMemo(()=>_&&_.length&&Math.max(..._)||1,[_]),O=N||40,H=o.useMemo(()=>Tx({bars:O,trackDurationSec:y,leadInMs:h,tailMs:g}),[O,y,h,g]),oe=o.useMemo(()=>Array.from({length:O}).map((ve,me)=>{const ce=me>=H.lead&&me<H.lead+H.sound,ge=H.sound>0&&ce?Math.min(O-1,Math.round((me-H.lead)/H.sound*O)):-1,he=ce?_&&_[ge]!=null?_[ge]:null:_?0:null,de=he==null?null:Math.min(1,he/j*T),Le=de!=null&&E>0&&kr(de)<=Lc,ze=de==null?.15:Le?0:Ar(de),Me=Le,Ve=O>1?me/(O-1):0;return n.jsx("div",{className:Me?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ze,"--i":me,"--mix":Ve}},me)}),[O,_,j,T,E,H]),ne={"--progress":String(Math.max(0,Math.min(1,r)))},le=o.useMemo(()=>A&&A.length&&Math.max(...A.map(ve=>Number.isFinite(ve)?Math.abs(ve):0))||1,[A]),ee=T*Math.max(0,i),z=!l||!A||!A.length?1:Math.max(1,ee),te={"--bar-gap":`${B}px`,"--wave-h":`${kr(z)}px`,"--wave-h1":`${fs}px`},W=k&&(l?!!A||$:!0);o.useEffect(()=>{W&&I(!0)},[W]);const G=M?k:W;o.useEffect(()=>{m?.(G)},[G,m]);const pe=N||40,Ee=o.useMemo(()=>Array.from({length:pe}).map((ve,me)=>{const ce=A&&A[me]!=null?A[me]:null,ge=ce==null?0:Math.abs(ce)/le*ee,he=Math.max(Fx,Ar(ge)),de=pe>1?me/(pe-1):0;return n.jsx("div",{className:"audio-player__bar",style:{"--val":he,"--i":me,"--mix":de}},me)}),[pe,A,le,ee,E]);return n.jsxs("div",{className:"audio-player__wave",ref:f,style:te,children:[l&&n.jsx("div",{className:`audio-player__wave-noise ${W?"is-ready":""}`,"aria-hidden":"true",children:Ee}),p&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${G?"is-ready":""}`,ref:C,children:oe}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${G?"is-ready":""}`,ref:s,style:ne,children:oe})]})]})}const $c={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 Rc(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,Pc=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 y=0;const C=()=>{if(Pn){const f=typeof performance<"u"&&performance.now?performance.now():Date.now();if(y>0&&f-y>Ux){const _=m.current===null||f-m.current>Gx;if(m.current=f,_&&d.current<Pc){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-y)}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>=Pc?`(${b}\uBC88\uC9F8 \u2014 \uB354\uB294 \uC548 \uC54C\uB9BD\uB2C8\uB2E4)`:`(${b}\uBC88\uC9F8)`)}}y=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,v=N&&(l?.positionRef.current?.phase??"sound")!=="sound";if(k===null&&!v)try{x&&x.style.visibility!=="hidden"&&(x.style.visibility="hidden")}catch{}else{const B=b?_.duration:k||0;Pn&&v&&!(B>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 w=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:B,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=`${w*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(w))}catch{}}}catch{}c.current=requestAnimationFrame(C)};c.current=requestAnimationFrame(C)},[e,t,a,r,s,l,i,u]),g=o.useCallback(y=>{p();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${y*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(y))}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=wr(),y=o.useRef(g?.registerAnalyser);o.useEffect(()=>{y.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:v,rect:B,show:w,hide:E}=Vx();o.useEffect(()=>()=>{y.current?.("main",null),y.current?.("noise",null)},[]);const[D,A]=o.useState(!1),[R,$]=o.useState("idle"),[K,M]=o.useState("stopped"),I=o.useRef("stopped");o.useEffect(()=>{I.current=K},[K]);const[L,Z]=o.useState(0),[U,F]=o.useState("active"),Q=o.useRef(!1);o.useEffect(()=>{if(U!=="playMode"||!Q.current)return;Q.current=!1;const J=typeof document<"u"?document.activeElement:null;if(J&&J!==document.body)return;const ue=_.current?.querySelectorAll("button")[1];try{ue?.focus()}catch{}},[U]);const[P,q]=o.useState(null),[X,V]=o.useState(null),[T,j]=o.useState(0),[O,H]=o.useState(!1),[oe,ne]=o.useState(0),le=g?.playbackRate??1,ee=g?.mainVolume??1,z=g?ps(g.settings):0,te=g?Nc(g.settings):ee,[W,G]=o.useState("idle"),[pe,Ee]=o.useState(""),[ve]=o.useState("top"),me=o.useRef(null),ce=o.useRef(0),ge=o.useRef(null),he=o.useRef(!0),de=mx({mountedRef:he}),Le=o.useRef(null),ze=o.useRef(d),Me=o.useRef(m);o.useEffect(()=>{ze.current=Math.max(0,d||0)},[d]),o.useEffect(()=>{Me.current=Math.max(0,m||0)},[m]);const{start:Ve,stop:We,settleTo:dt}=Kx({audioRef:C,fillRef:f,waveProgressRef:ge,sourcesRef:me,currentIndexRef:ce,sequencer:de,leadInMs:d,tailMs:m}),{onReadyChange:lt,waitForReady:tt,markNotReady:yt}=Wx({showSoundWaveForm:u,showNoiseWaveForm:c}),_e=o.useRef(null),Ge=o.useRef(s),Be=o.useRef(r),qe=o.useRef(null),Ke=o.useRef(!1),[pt,xt]=o.useState(!1),Dt=o.useCallback(J=>{Ke.current=J,xt(J)},[]),St=o.useRef(null),{activeNoiseUrl:it,noiseSettingsRef:at,fadeInNoise:At,fadeOutNoise:_t}=vx({noisePlayer:g,audioRef:C,playbackStateRef:I,sequencer:de}),{startTTS:Mt,stopTTS:Ne}=xx({ttsText:l,playbackRate:le,mainVolume:te,fillRef:f,waveProgressRef:ge,setProgress:Z,setPlaybackState:M,setStateLocal:F,fadeInNoise:At,fadeOutNoise:_t,noiseSettingsRef:at,onDoneRef:Be,handleEndRef:St});o.useEffect(()=>{Nt.current=Ne});const $e=J=>{if(typeof window>"u"||!window.speechSynthesis){try{Ee(p("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Mt(J);return}gt("tts"),Mt(J)},Se=Array.isArray(t)?t.filter(Boolean):t?[t]:[],He=(!Se||Se.length===0)&&!!l,rt=Array.isArray(P)&&P.length>0?P:Array.isArray(X)&&X.length>0?X:null,vt=Math.max(Array.isArray(rt)?rt.length:0,Se.length);o.useEffect(()=>(he.current=!0,()=>{he.current=!1}),[]);const et=()=>{de.abort()},Nt=o.useRef(null),Ye=o.useRef(null),bt=o.useRef(null),kt=o.useRef(null);kt.current||(kt.current=()=>{bt.current=null;const J=C.current;if(Ye.current==="audio"&&J&&(!J.paused||de.isRunning())){et();try{J.pause()}catch{}he.current&&(M("paused"),We(),_t())}else if(Ye.current==="tts")try{Nt.current?.()}catch{}});const gt=J=>{Ye.current=J,bt.current=qa(kt.current)},ft=()=>{bt.current?.(),bt.current=null};o.useEffect(()=>()=>{kt.current&&Cr(kt.current)},[]);const ut=o.useRef(le);o.useEffect(()=>{ut.current=le||1},[le]);const De=o.useCallback(J=>{const ue=ut.current||1;try{J.defaultPlaybackRate=ue}catch{}try{J.playbackRate=ue}catch{}},[]),nt=o.useCallback((J,ue)=>{if(!Ix(J,ue)){try{J.currentTime=0}catch{}De(J);return}J.src=ue,De(J),J.load(),De(J)},[De]),re=o.useCallback(()=>{qe.current&&(clearTimeout(qe.current),qe.current=null),G("idle")},[]),Ce=o.useCallback(async(J,ue=3,ke=50,Oe=0)=>{re();const Ze=de.generation(),Je=!!J&&J.currentTime>0&&!J.ended,ye=Math.max(0,ze.current-Math.max(0,Oe));if(ye>0&&!Je){gt("audio"),Ve(),M("playing");const je=at.current;if(je?.enabled&&(je.volume??0)>0)try{At(je.volume)}catch{}if(!await de.waitPad(ye,"lead",Oe)||!he.current||!de.isCurrent(Ze))return!1}de.enterSound();for(let je=0;je<ue;je++){if(!he.current||!de.isCurrent(Ze))return!1;try{return gt("audio"),await J.play(),!0}catch(se){if((se instanceof Error||typeof se=="object"&&se&&"name"in se?se.name:void 0)==="AbortError"){if(!de.isCurrent(Ze))return!1;await new Promise(S=>setTimeout(S,ke));continue}try{Ee(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{Ee(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[p,Ve,de,At,at,re]),Fe=o.useCallback(J=>{const ue=de.generation(),ke=Math.max(0,Me.current-Math.max(0,J));Ve();const Oe=at.current;if(Oe?.enabled&&(Oe.volume??0)>0)try{At(Oe.volume)}catch{}const Ze=()=>{try{Le.current?.()}catch{}};if(ke<=0){de.leave(),Ze();return}de.waitPad(ke,"tail",J).then(Je=>{de.leave(),Je&&de.isCurrent(ue)&&Ze()}).catch(()=>{})},[de,Ve,At,at]),Qe=o.useCallback(()=>{const J=C.current;if(!J)return;const ue=()=>{M("playing"),F("playMode"),H(!0),Ve();try{to(),ar(J).then(Je=>{if(he.current)try{y.current?.("main",Je)}catch{}})}catch{}const Ze=at.current;Ze?.enabled&&(Ze?.volume??0)>0&&At(Ze.volume)},ke=()=>{Lx({ended:!!J?.ended,completedByEnd:Ke.current})||(M("paused"),We(),_t())},Oe=()=>{const Ze=()=>{try{const Je=me.current,ye=Mx(Je,ce.current);if(ye!==null){ce.current=ye,j(ye),H(!0);const je=Je?.[ye]&&Je[ye].src;if(je&&J){nt(J,je),Ce(J).catch(()=>{});return}}}catch{}M("stopped"),Z(1);try{if(J)try{J.currentTime=0}catch{}}catch{}We(),H(!1),_t();try{!Ge.current&&St.current&&St.current()}catch{}};if(Le.current=Ze,Me.current>0){Ve(),de.waitPad(Me.current,"tail").then(Je=>{de.leave(),Je&&Ze()}).catch(()=>{});return}Ze()};return J.addEventListener("play",ue),J.addEventListener("pause",ke),J.addEventListener("ended",Oe),()=>{try{J.removeEventListener("play",ue),J.removeEventListener("pause",ke),J.removeEventListener("ended",Oe),We()}catch{}}},[At,_t,Ce,at,Ve,We,de]);o.useEffect(()=>Qe(),[Qe]),o.useEffect(()=>{Ge.current=s},[s]),o.useEffect(()=>{Be.current=r},[r]),o.useEffect(()=>{if(s||U!=="active")return;const J=N.current;if(!J)return;let ue=null;const ke=requestAnimationFrame(()=>{try{const Oe=J.getTotalLength();if(!Oe)return;const Ze=Oe*.2;J.style.strokeDasharray=`${Oe-Ze} ${Ze}`;const Je="triFlow_"+Math.random().toString(36).slice(2);ue=document.createElement("style"),ue.textContent=`@keyframes ${Je}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Oe}}}`,document.head.appendChild(ue),J.style.animation=`${Je} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(ke),ue?.remove()}},[U,s]),o.useEffect(()=>{me.current=P},[P]),o.useEffect(()=>{ce.current=T},[T]),o.useEffect(()=>{const J=_.current,ue=k.current;if(!J||!ue)return;let ke=null;const Oe=32,Ze=60,Je=()=>{try{const je=Array.from(J.querySelectorAll(":scope > .button"));let se=0;je.forEach(Pe=>{if(Pe===ue)return;const Xe=Pe.getBoundingClientRect();se+=Xe.width});const S=J.getBoundingClientRect().width,Y=Math.max(0,Math.floor(S-se-8)),fe=vt;if(!fe||Y<=0){Array.from(ue.children).forEach(Pe=>{try{Pe.style.width=""}catch{}});return}let Te=Math.floor(Y/fe);Te>Ze&&(Te=Ze),Te<Oe&&(Te=Math.max(Oe,Math.floor(Y/fe))),Array.from(ue.querySelectorAll(".button")).forEach(Pe=>{try{Pe.style.width=`${Te}px`}catch{}})}catch{}},ye=requestAnimationFrame(Je);try{ke=new ResizeObserver(()=>{requestAnimationFrame(Je)}),ke.observe(J),ke.observe(ue),window.addEventListener("resize",Je)}catch{}return()=>{try{cancelAnimationFrame(ye)}catch{}try{ke&&(ke.disconnect(),ke=null)}catch{}try{window.removeEventListener("resize",Je)}catch{}}},[P,X,vt]),o.useEffect(()=>()=>{try{_e.current&&(clearTimeout(_e.current),_e.current=null),qe.current&&(clearTimeout(qe.current),qe.current=null)}catch{}},[]);const ct=(J,ue)=>{q(J),ne(ue),yt(),V($x(J)),me.current=J},ot=()=>{F("playMode"),j(0),H(!0)},It=async(J,ue)=>{Dt(!1),x.current=!1,nt(J,ue),await Rc(J),await tt()!==!1&&(A(!1),ot(),await Ce(J))},Yt=async(J,ue=!1)=>{const ke=C.current;A(!0),$("measuring_duration");try{const Oe=await bs(J,{timeoutMs:1e4,rejectOnError:!0});ct([{src:J,objectUrl:null,duration:Oe}],Oe),$("ready"),ue&&ke&&await It(ke,J)}finally{x.current=!1,A(!1)}},kn=async(J,ue=!1)=>{const ke=C.current;A(!0),$("measuring_duration");try{const Oe=await Promise.all(J.map(Je=>bs(Je,{timeoutMs:1e4})));if(!he.current)return;const Ze=J.map((Je,ye)=>({src:Je,objectUrl:null,duration:Oe[ye]||0}));ct(Ze,Rx(Ze)),$("ready"),ue&&ke&&Ze.length>0&&await It(ke,Ze[0].src)}finally{x.current=!1,A(!1)}},Vt=async(J=!1,ue=!0)=>{const ke=C.current,Oe=t?Array.isArray(t)?t:[t]:[];if(!Oe||Oe.length===0||!Oe.some(Boolean))return!1;if(x.current)return null;x.current=!0,ue&&A(!0),$("resolving");try{const Ze=Px(t,a,xl),Je=[];let ye=0;for(const je of Ze){let se=je.src??null,S=null;if(!se&&je.resolvedPath){try{$("getting_signed_url"),se=await _l(je.resolvedPath)}catch{se=null}if(!he.current)return!1;if(!se)try{$("downloading");const fe=await wl(je.resolvedPath);if(!he.current)return!1;if(fe){const Te=fe instanceof Blob?fe:new Blob([fe]);S=b.track(URL.createObjectURL(Te)),se=S}}catch{$("error");try{Ee(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),F("active")}catch{}}}if(!se)continue;let Y=0;try{$("measuring_duration"),Y=await bs(se,{timeoutMs:3e3})}catch{Y=0}if(!he.current){if(S)try{URL.revokeObjectURL(S)}catch{}for(const fe of Je)if(fe.objectUrl)try{URL.revokeObjectURL(fe.objectUrl)}catch{}return!1}ye+=Y||0,Je.push({...je,src:se,objectUrl:S,duration:Y})}if(ct(Je,ye),Je.length>0&&J&&ke){const je=Je[0];Dt(!1);try{b.keepOnly(Je.map(se=>se.objectUrl))}catch{}if($("ready"),x.current=!1,je.src&&ke)try{if(nt(ke,je.src),await Rc(ke),await tt()===!1)return!1;ue&&A(!1),ot(),ke&&await Ce(ke)}catch{ue&&A(!1)}else ue&&A(!1);F("playMode"),j(0),H(!0)}return Je.length>0}finally{x.current=!1,ue&&A(!1),$(Ze=>Ze==="ready"?"ready":"idle")}},Zt=async J=>{const ue=de.isRunning();if(J.paused&&!ue){if(Ke.current){await ht();return}const ke=de.resume();if(ke){if(M("playing"),ke.phase==="tail"){Fe(ke.elapsed);return}await Ce(J,3,50,ke.elapsed);return}await Ce(J),M("playing")}else de.pause(),et(),J.pause(),M("paused"),ue&&(We(),_t())},Rt=async()=>{const J=C.current;if(!(!J&&!He)){if(He){const ue=window.speechSynthesis;if(U==="active"){const ke=Ea(),Oe=Array.isArray(l)?l.filter(Boolean):l?[l]:[];if(ke&&Oe.length>0){if(x.current)return;F("load"),A(!0),$("synthesizing"),x.current=!0;try{const Ze=await Promise.all(Oe.map(Je=>Promise.resolve(ke(Je))));Ze.length>1?await kn(Ze,!0):await Yt(Ze[0],!0)}catch{x.current=!1,A(!1),F("active"),$e(Oe.length>0?Oe:void 0)}return}$e(Oe.length>0?Oe:void 0);return}if(U==="playMode"){const ke=!!ue&&(ue.speaking||ue.paused)&&!(J&&(J.currentSrc||J.getAttribute("src")));if(J&&!ke){await Zt(J);return}try{if(ue&&ue.paused)try{gt("tts"),ue.resume(),M("playing")}catch{}else try{ue.pause(),M("paused")}catch{}}catch{}}return}if(U==="active"){if(s&&Array.isArray(me.current)&&me.current.length>0){const ke=me.current[0];try{if(ke.src&&J)try{nt(J,ke.src),ot(),J&&await Ce(J)}catch{}ot();return}catch{}}F("load");let ue;try{ue=await Vt(!0)}catch{ue=!1}if(ue===!1&&he.current){try{Ee(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}F("active")}return}if(U!=="load"&&(U==="playMode"||U==="active"))try{J&&await Zt(J)}catch(ue){(ue instanceof Error||typeof ue=="object"&&ue&&"name"in ue)&&ue.name}}},ht=async()=>{const J=C.current;if(J)try{const ue=me.current;if(Array.isArray(ue)&&ue.length>1){await pn(0);return}Dt(!1);try{J.currentTime=0}catch{}J&&await Ce(J),M("playing"),F("playMode")}catch{}},Ct=()=>{et(),ft(),Nt.current?.();const J=C.current;try{if(J){try{J.pause()}catch{}try{J.currentTime=0}catch{}}}catch{}_t(),M("stopped"),F("active"),Z(0),H(!1)},wt=async(J,{sameSegment:ue=!1}={})=>{et();const ke=de.generation(),Oe=C.current,Ze=me.current?.[J]?.src;try{if(Dt(!1),j(J),H(!0),ce.current=J,!Ze||!Oe||(ue||yt(),nt(Oe,Ze),!ue&&await tt()===!1)||!de.isCurrent(ke)||(await Ce(Oe),!de.isCurrent(ke)))return;M("playing"),F("playMode")}catch{}},zt=async()=>{const J=me.current,ue=ce.current||0;if(!J||ue<=0){await ht();return}await wt(ue-1)},Cn=async()=>{const J=me.current,ue=ce.current||0;if(!J||ue>=J.length-1){Ct();return}await wt(ue+1)},An=()=>{if(Ke.current)return;const J=200,ue=340;Dt(!0),et(),ft();try{Z(1)}catch{}dt(1);try{G("hold")}catch{}try{const ke=C.current,Oe=He&&!!ke?.src;if(!He||Oe){if(ke){ke.pause();try{ke.currentTime=0}catch{}}}else Ne();_t()}catch{}try{M("stopped")}catch{}if(H(!1),!Ge.current)try{qe.current&&(clearTimeout(qe.current),qe.current=null),qe.current=setTimeout(()=>{try{G("out")}catch{}qe.current=setTimeout(()=>{try{typeof Be.current=="function"&&Be.current(!0)}catch{}try{G("idle")}catch{}qe.current=null},ue)},J)}catch{}};o.useEffect(()=>{St.current=An});const Rn=o.useCallback(()=>Ee(""),[]),pn=async J=>{(me.current||[])[J]&&await wt(J,{sameSegment:J===ce.current})},Gt=K==="playing",fn=o.useMemo(()=>{if(!X||X.length<=1)return X;const J=X[T];return J?[J]:X},[X,T]),Ft=s===!0;o.useEffect(()=>{try{const J=C.current;J&&typeof J.playbackRate=="number"&&De(J)}catch{}},[le,De]);const Xt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const J=C.current;if(!J)return;const ue=Math.max(0,Math.min(1,te)),ke=Xt.current,Oe=()=>{ke.raf!==null&&(cancelAnimationFrame(ke.raf),ke.raf=null),ke.timer!==null&&(clearTimeout(ke.timer),ke.timer=null)};Oe();const Ze=rr(J);if(J.paused||Math.abs(Ze-ue)<.001||typeof requestAnimationFrame!="function"){try{On(J,ue)}catch{}return}const Je=performance.now(),ye=()=>{const je=Math.min(1,(performance.now()-Je)/150);try{On(J,Ze+(ue-Ze)*je)}catch{}ke.raf=je<1?requestAnimationFrame(ye):null};return ke.raf=requestAnimationFrame(ye),ke.timer=setTimeout(()=>{Oe();try{On(J,ue)}catch{}},200),Oe},[te]);const Wt=W==="hold",vn=W==="out",ie=U==="playMode"&&!D&&!pt||Wt||vn,Ae=K!=="stopped"||Wt||vn,Re=K==="paused",Ue=Math.max(0,Math.min(100,(L||0)*100)),Ie=we("audio-player__fill",ie?"is-visible":"",Ae?"is-expanded":"",Re?"is-paused":"",vn?"is-out":"");return n.jsxs("div",{className:`audio-player ${Ft?"is-disabled":""}${i?` ${i}`:""}`,role:"group","aria-label":typeof h=="string"?h:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${Gt?"is-playing":""} ${D?"is-loading":""} ${U!=="default"?"is-revealed":""}`,children:[D?n.jsxs("div",{className:"audio-player__loading",role:$c[R]?"status":void 0,"aria-live":$c[R]?"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,U==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Ft,onClick:()=>{Q.current=gr(),E(),Rt()},"aria-label":typeof h=="string"?h:p("training.listen","\uB4E3\uAE30"),onMouseEnter:w,onMouseLeave:E,onFocus:w,onBlur:E,children:n.jsx("span",{ref:v,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,B&&n.jsx(En,{anchorRect:B,text:typeof h=="string"&&h?h:p("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${U==="playMode"||Gt?"is-visible":""}`,inert:!(U==="playMode"||Gt)||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:zt,ariaLabel:p("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:U!=="playMode"}),n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Gt?"pause":"play",onClick:Rt,ariaLabel:p("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":Gt,width:"60px",variant:"transparent-white",disabled:U!=="playMode"}),n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Ct,ariaLabel:p("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:U!=="playMode"}),vt>1?n.jsx("div",{ref:k,className:"audio-player__source-buttons",children:Array.from({length:vt}).map((J,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:O&&T===ue,disabled:U!=="playMode"||!(Array.isArray(P)&&P[ue]),showTooltipInfo:!0},ue))}):null,!Array.isArray(P)||P.length<=1?n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:ht,ariaLabel:p("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:U!=="playMode"}):null,n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Cn,ariaLabel:p("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:U!=="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:U!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:Ie,ref:f,style:{left:`${Ue}%`},"aria-hidden":"true"}),(u||c)&&n.jsx(Ox,{segments:fn,progress:L,totalDuration:oe,waveProgressRef:ge,showSoundWaveForm:u,leadInMs:d,tailMs:m,trackDurationSec:P?.[T]?.duration??0,noiseSrc:c&&g?.settings.enabled&&z>0?it:null,noiseRatio:g?er(g.settings):0,noiseSpeed:g?.settings.speed??1,mainVolume:ee,onReadyChange:lt})]})]}),n.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!u&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(st,{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(fa,{message:pe,position:ve,onClose:Rn})]})}function Nr(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:y,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:`${y}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,v)=>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:v+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:N})]},v))})]}),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(gn,{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 Ic({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(st,{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 Fc(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 Oc({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=mn("(max-width: 767px)"),g=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),y=`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);Fc(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 v=o.useRef(l);o.useEffect(()=>{v.current=l});const B=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]),w=o.useCallback(()=>{_(!1),k(null),N(null)},[]);o.useEffect(()=>{if(!f)return;let D;try{typeof v.current=="function"&&(D=v.current())}catch{}if(D===!1){w();return}N(typeof D<"u"&&D!==null?D:null)},[B]);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:y,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(Nr,{text:x??i,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:b,onClose:w,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 v=ys(e,t);if(v!==p){const B=setTimeout(()=>h(v),0);return()=>clearTimeout(B)}},[e,t,p]);const g=o.useCallback((...v)=>{ys(e,t)==="done"||p==="done"||typeof u=="function"&&u(...v)},[e,t,p,u]),[y,C]=o.useState(!1),[f,_]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),b=o.useCallback(v=>{if(!v)return null;try{const B=v;if(typeof v=="object"&&(B.currentTarget||B.target)&&(B.nativeEvent||B.type)){const D=B.currentTarget??B.target;if(D&&typeof D.getBoundingClientRect=="function")return D.getBoundingClientRect()}if(v instanceof DOMRect)return v;const w=v;if(w&&typeof w.getBoundingClientRect=="function")return w.getBoundingClientRect();const E=v?.current;return E&&typeof E.getBoundingClientRect=="function"?E.getBoundingClientRect():null}catch{return null}},[]),k=o.useCallback((v,{text:B="",label:w="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:E=!1,alignX:D="center",alignY:A="top"}={})=>{const R=b(v);_({text:B,label:w,anchorRect:R,backdrop:E,alignX:D,alignY:A}),C(!0)},[b]),x=o.useCallback(()=>{C(!1),_(v=>({...v,anchorRect:null}))},[]),N=o.Children.map(l,v=>{if(o.isValidElement(v)){const B=v;if(typeof B.type=="string")return B;const w=B.props??{},E=typeof w.onDone=="function"?w.onDone:g,D=typeof w.disabled=="boolean";let A=p==="disabled";return D&&(A=!!w.disabled),o.cloneElement(B,{onDone:E,disabled:A,showTooltip:k,hideTooltip:x})}return v});return n.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${i}`,"aria-current":p==="active",children:[n.jsx(Ic,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(Oc,{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]}),y?n.jsx(gn,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:x,ariaLabel:m("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(Nr,{text:f.text,onClose:x})}):null]})}function zc({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:y}=$i({storageKey:"textbox_fontScale"}),[C,f]=o.useState(""),_=o.useRef(null),b=o.useRef(!1),k=o.useCallback(()=>{b.current=gr()&&!!_.current&&_.current.contains(document.activeElement),l("active")},[]),x=o.useCallback(()=>f(""),[]),N=$=>{try{f($)}catch{}},v=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const $=setTimeout(()=>l(t),0);return()=>clearTimeout($)}},[t]);const B=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[w,E]=o.useState(B);w!==B&&(E(B),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":"",R=o.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${y}px`}),[g,y]);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:R,children:B})}),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,...!v&&{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,...!v&&{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(fa,{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:y,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("||"):"",v=m?m.join("||"):"",[B,w]=o.useState(()=>Array.isArray(x)?C?Ma(x):x.slice():void 0);o.useEffect(()=>{Array.isArray(x)&&x.length?w(C?Ma(x):x.slice()):w(void 0)},[c,N,v,C]);const[E,D]=o.useState(null),[A,R]=o.useState(()=>new Set);o.useEffect(()=>{D(null),R(new Set)},[v,c,N]);const $=o.useRef(void 0);o.useEffect(()=>{const I=$.current;typeof I=="number"&&typeof t=="number"&&typeof e=="number"&&I>=e&&t<e&&(D(null),R(new Set)),$.current=t},[t,e]);const K=o.useCallback(I=>{if(!na(k))return;const L=B?.[I];if(L==null)return;const Z=L;if(p){const U=new Set(A);U.has(Z)?U.delete(Z):U.add(Z),R(U),typeof u=="function"&&u({selectedValues:[...U],__ts:Date.now()}),typeof i=="function"&&i({selectedValues:[...U],__ts:Date.now()})}else D(Z),typeof u=="function"&&u({selectedIndex:I,selectedValue:Z,__ts:Date.now()}),typeof i=="function"&&i({selectedIndex:I,selectedValue:Z,__ts:Date.now()})},[B,k,p,u,A]),M=`training-step__buttons${Array.isArray(B)&&B.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(B)&&B.length>0?B.map((I,L)=>n.jsx(be,{htmlType:"button",size:56,type:"bar",onClick:()=>K(L),ariaLabel:String(I),label:I,useLabel:!0,icon:y?y[String(I)]:void 0,variant:"default",disabled:k==="disabled",selected:p?A.has(I):E===I,useDisabledCovered:g,minWidth:0},String(I))):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:"",y=u&&typeof u=="object"?u.choices:void 0,[C,f]=o.useState(c??null),_=`${String(g)}\0${JSON.stringify(y??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 v=o.useRef(void 0);o.useEffect(()=>{const D=v.current;typeof D=="number"&&typeof t=="number"&&typeof e=="number"&&D>=e&&t<e&&c==null&&f(null),v.current=t},[t,e,c]);const B=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]),w=o.useCallback(()=>{na(h)&&(f(!1),B(!1))},[B,h]),E=o.useCallback(()=>{na(h)&&(f(!0),B(!0))},[B,h]);return n.jsxs(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:m,onDone:l,useTitleFaded:!1,children:[n.jsx(zc,{context:u,state:h}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(y)&&y.length>0?y.slice(0,6).map((D,A)=>n.jsx(be,{htmlType:"button",size:56,type:"bar",onClick:()=>{na(h)&&(f(A),B&&B(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:w,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:y,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:y,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,y]=o.useState(()=>(p||[]).map((V,T)=>({id:T,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 T=(j=>{const O=(j||[]).map((le,ee)=>({id:ee,text:m(le)}));if(O.length<=1)return O;const H=(le,ee)=>{if(le.length!==ee.length)return!1;for(let z=0;z<le.length;z++)if(le[z].text!==ee[z].text)return!1;return!0};let oe=Ma(O),ne=0;for(;H(oe,O)&&ne<20;)oe=Ma(O),ne+=1;return oe})(V);y(T);try{if(typeof i=="function"){const j=T.filter((O,H)=>O.text===m(V[H])).length;i({shuffled:T,score:j,total:(V||[]).length,initial:!0,__ts:Date.now()})}if(typeof l=="function"&&C==="active"){const j=T.filter((O,H)=>O.text===m(V[H])).length;b.current=u,l({shuffled:T,score:j,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:[],T=g.filter((j,O)=>j.text===m(V[O])).length;l({shuffled:g,score:T,total:V.length,initial:!0,__ts:Date.now()})},[C,u]);const k=(V,T)=>{const j=[...g],O=V+T;if(O<0||O>=j.length)return;const H=j[O];j[O]=j[V],j[V]=H,Z(j);try{if(typeof l=="function"&&C==="active"){const oe=j.filter((ne,le)=>ne.text===m(p[le])).length;l({shuffled:j,score:oe,total:(p||[]).length,__ts:Date.now()})}}catch{}},[x,N]=o.useState(null),v=o.useRef(null),B=o.useRef(null),w=o.useRef(null),E=o.useRef(null),D=o.useRef(null),A=o.useRef({x:0,y:0}),R=o.useRef(null),$=o.useRef({dx:0,dy:0}),K=()=>{if(R.current!==null)return;const V=()=>{if(!v.current){R.current=null;return}R.current=requestAnimationFrame(V);const T=A.current,j=$.current||{dx:0,dy:0};v.current&&(v.current.style.transform=`translate3d(${T.x-j.dx}px, ${T.y-j.dy}px, 0)`)};R.current=requestAnimationFrame(V)},M=o.useRef(new Map),I=o.useRef(new Map),L=()=>{const V=new Map;return M.current.forEach((T,j)=>{T&&T.getBoundingClientRect&&V.set(j,T.getBoundingClientRect())}),V},Z=V=>{const T=L();y(V);try{if(typeof i=="function"){const j=V.filter((O,H)=>O.text===m(p[H])).length;i({shuffled:V,score:j,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const j=L();V.forEach(O=>{const H=T.get(O.id),oe=j.get(O.id),ne=M.current.get(O.id);if(!ne||!H||!oe)return;const le=H.top-oe.top;le&&(ne.style.transition="none",ne.style.transform=`translateY(${le}px)`,requestAnimationFrame(()=>{ne.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",ne.style.transform="";const ee=()=>{ne.style.transition="",ne.removeEventListener("transitionend",ee)};ne.addEventListener("transitionend",ee)}))})})},U=(V,T)=>{try{try{T.dataTransfer?.setData("text/plain",String(V))}catch{}try{T.dataTransfer&&(T.dataTransfer.effectAllowed="move")}catch{}try{const j=document.createElement("div");j.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(j),T.dataTransfer?.setDragImage(j,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(j)}catch{}})}catch{}}catch{}N(V);try{const j=g[V],O=document.createElement("div");O.className="order-list__dragging-object order-list__dragging-object--visible",O.textContent=j&&j.text?j.text:"",document.body.appendChild(O),v.current=O;const H=M.current.get(j.id);let oe=T.clientX||0,ne=T.clientY||0;try{if(H&&H.getBoundingClientRect){const G=H.getBoundingClientRect();oe=G.left+G.width/2,ne=G.top+G.height/2}}catch{}const le=O.getBoundingClientRect(),ee=le.width/2,z=le.height/2;$.current={dx:ee,dy:z},O.style.transition="none",A.current={x:oe,y:ne},O.style.transform=`translate3d(${oe-ee}px, ${ne-z}px, 0)`,requestAnimationFrame(()=>{try{O.style.transition=""}catch{}K()});const te=G=>{const pe=G;A.current={x:pe.clientX,y:pe.clientY},K()};w.current=te,document.addEventListener("mousemove",te);const W=G=>{const pe=G;A.current={x:pe.clientX,y:pe.clientY},K()};B.current=W,document.addEventListener("dragover",W);try{T.dataTransfer?.setData("text/plain",String(V));try{T.dataTransfer?.setData("application/json",JSON.stringify({idx:V}))}catch{}}catch{}}catch{}},F=(V,T)=>{T.preventDefault();try{T.dataTransfer&&(T.dataTransfer.dropEffect="move")}catch{}try{D.current!==null&&(clearTimeout(D.current),D.current=null);const j=T.currentTarget&&T.currentTarget.closest?T.currentTarget.closest(".order-list__item"):null;if(j&&E.current!==j){if(E.current)try{E.current.classList.remove("drag-over")}catch{}try{j.classList.add("drag-over")}catch{}E.current=j}}catch{}},Q=(V,T)=>{T.preventDefault();const j=T.dataTransfer?.getData("text/plain")||"",O=j?parseInt(j,10):x,H=V;if(typeof O!="number"||isNaN(O)||O===H){N(null),X(),P();return}const oe=yf(g,O,H);Z(oe),N(null),P();try{if(typeof l=="function"&&C==="active"){const ne=oe.filter((le,ee)=>le.text===m(p[ee])).length;l({shuffled:oe,score:ne,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const ne=document.querySelectorAll(".order-list .order-list__item")[H];if(!ne)return;const le=ne.querySelector(".order-list__slot")||ne;try{le.classList.add("pulse"),le.offsetHeight,le.classList.add("to-dark");const ee=()=>{le.classList.remove("pulse","to-dark"),le.removeEventListener("transitionend",ee)};le.addEventListener("transitionend",ee)}catch{}})}catch{}X()},P=()=>{if(v.current){try{document.body.removeChild(v.current)}catch{}v.current=null}B.current&&(document.removeEventListener("dragover",B.current),B.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),R.current!==null&&(cancelAnimationFrame(R.current),R.current=null)},q=()=>{N(null),X(),P()};o.useEffect(()=>()=>P(),[]);const X=()=>{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((T,j)=>{const O=I.current.get(T.id);if(!O)return;let H=50;V>1&&(H=Math.round(j/(V-1)*100));try{O.style.setProperty("--marker-pos",H+"%")}catch{}})}catch{}},[g]),o.useEffect(()=>()=>{P(),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,T)=>{const j=Math.max(1,(g||[]).length),O=j>1?Math.round(T/(j-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":O+"%"},ref:H=>{const oe=I.current;H?oe.set(V.id,H):oe.delete(V.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:T+1})}):null,n.jsxs("div",{ref:H=>{const oe=M.current;H?oe.set(V.id,H):oe.delete(V.id)},className:`order-list__draggable ${x===T?"dragging":""}`,"data-disabled":C==="disabled","aria-disabled":C==="disabled",tabIndex:C==="disabled"?-1:0,draggable:f,onDragStart:f?H=>U(T,H):void 0,onDragEnter:f?H=>F(T,H):void 0,onDragOver:f?H=>F(T,H):void 0,onDragLeave:f?()=>{try{D.current!==null&&clearTimeout(D.current),D.current=setTimeout(()=>{try{const H=document.querySelectorAll(".order-list .order-list__item");H&&H[T]&&(H[T].classList.remove("drag-over"),E.current===H[T]&&(E.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?H=>Q(T,H):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(T,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:T===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(be,{htmlType:"button",size:32,type:"dot",onClick:()=>k(T,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:T===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 Wc({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(),y=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),v=o.useRef([]),[B,w]=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(L=>L?.id??L?.word??"").join("|"),[C]);o.useEffect(()=>{N(null)},[A]);const R=o.useRef(void 0);o.useEffect(()=>{const L=R.current;typeof L=="number"&&typeof t=="number"&&typeof e=="number"&&L>=e&&t<e&&N(null),R.current=t},[t,e]);const $=o.useCallback((L,Z)=>{if(c)return;const U={item:L,index:Z,__ts:Date.now()};try{typeof i=="function"&&i(U)}catch{}if(k==="active"&&typeof l=="function")try{l(U)}catch{}},[c,i,k,l]),K=o.useRef(h);o.useEffect(()=>{K.current=Math.max(0,h||0)},[h]);const M=o.useCallback(async()=>{if(B||k==="disabled")return;w(!0);let L=!1;const Z=new Promise(U=>{E.current=()=>{L=!0,U()}});try{for(let U=0;U<_.length&&!(!D.current||L);U++){const F=v.current[U];if(!F)continue;await Promise.race([Xx(F.play(),Zx),Z]);const Q=Math.max(0,K.current||0);Q>0&&U<_.length-1&&!L&&D.current&&await Promise.race([new Promise(P=>{setTimeout(P,Q)}),Z])}}finally{E.current=null,w(!1)}},[B,k,_.length]),I=o.useCallback((L,Z)=>{if(!na(k))return;N(Z);const U={selectedValue:L.word||L.title||"",selectedIndex:Z,item:L,__ts:Date.now()};try{typeof i=="function"&&i(U)}catch{}if(typeof l=="function")try{l(U)}catch{}},[i,k,l]);return n.jsx(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:y,onDone:l,titleProps:{usePlayAllBtn:!m&&_.length>0,onPlayAll:M,playAllActive:B},children:n.jsx("div",{className:"training-step__cards",onClickCapture:L=>{const Z=E.current;if(!Z)return;const U=L.target;U&&typeof U.closest=="function"&&U.closest(".training-word-card__bottom")&&Z()},children:_.length===0?n.jsx("div",{className:"training-step__empty",children:g("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):_.map((L,Z)=>n.jsx(Jo,{ref:U=>{v.current[Z]=U},item:L,disabled:k==="disabled",onPlayDone:()=>$(L,Z),selectable:c,selected:c&&x===Z,onSelect:c?()=>I(L,Z):void 0,flipDelay:Z*120,hideLabel:d,hideAudio:m},L&&L.id||Z))})})}const Jx=160,Hc=()=>{};function Ln(e){const t=o.useId();if(!("variant"in e)){const{label:b,sub:k,onClick:x,children:N,align:v="horizontal",icon:B,useFullWidth:w=!1}=e,E=D=>{x&&D.target===D.currentTarget&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),x())};return n.jsxs("div",{className:we("panel-row",v==="vertical"?"panel-row--vertical":"",w?"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:[B!=null&&n.jsx("div",{className:"panel-row__icon",children:B}),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(ca,{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,y=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(hn,{options:x.options,value:x.value,onChange:x.onChange,placeholder:x.placeholder,block:d,error:!!u,ariaDescribedBy:y,ariaLabel:x.ariaLabel??([r,x.placeholder].filter(Boolean).join(" ")||void 0)})},N))}):n.jsx(hn,{options:b.options??[],value:b.value??"",onChange:b.onChange??Hc,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:y});h=u?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[k,n.jsx("span",{id:y,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??Hc,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:y,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:we("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 Vc(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)}),Vc(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:Vc(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 Er({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:y=!0,labelWidth:C,form:f=!1,loading:_,empty:b,children:k}){const x=we("panel",`panel--${l}`,f?"panel--form":"",i!==void 0?"panel--fill":"",h?"":"panel--no-border",g?"":"panel--no-bg",y?"":"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 v=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:we("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&n.jsx(st,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[!!e&&n.jsx(v,{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:we("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:we("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 qc(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_(qt.t.bind(qt)),qc(qt.t.bind(qt));const Dr="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:we("noise-settings__value","button-1",c?"noise-settings__value--disabled":""),children:t})]})}function Uc({anchorRect:e,onClose:t,hideNoiseRows:a=!1}){const{t:r}=xe.useTranslation(),s=mn("(max-width: 767px)")?40:24,l=wr(),i=er(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]),y=o.useCallback(_=>{const b=Math.min(Qa,Math.max(0,Math.round(_*10)/10));try{l?.setSettings({noiseRatio:b})}catch{}},[l]),C=o.useCallback(_=>{try{_===Dr?l?.setSettings({enabled:!1}):l?.setSettings({type:_,enabled:!0})}catch{}},[l]),f=[{key:Dr,label:r("training.noise.type.none","\uC5C6\uC74C")},...qc(r).map(_=>({key:_.value,label:_.label}))];return n.jsx(gn,{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(Er,{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:Dr,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:Qa,step:kc,size:s,disabled:!c,onChange:y})]}),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:Dr,onChange:()=>{}})})})]})})}function Gc({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,y]=o.useState(null),[C,f]=o.useState(!1),_=o.useRef(null),b=o.useRef(null),k=wr(),x=u>0,N=x&&i<u-1,v=!x||i>=u-1,B=s===Math.max(0,l);o.useEffect(()=>{e||(h(!1),y(null))},[e]);const w=o.useCallback(()=>{h(!1),y(null)},[]),E=o.useCallback(()=>{if(p){h(!1),y(null);return}const Z=_?.current?.getBoundingClientRect();Z&&y(Z),t?.(),h(!0)},[p,t]),D=o.useCallback(()=>{if(p){h(!1),y(null);return}const Z=b?.current?.getBoundingClientRect();Z&&y(Z),t?.(),h(!0)},[p,t]),A=mn("(max-width: 767px)"),R=o.useRef(null),[$,K]=o.useState(null),M=o.useCallback(()=>{f(Z=>{const U=!Z;return K(U?R.current?.getBoundingClientRect()??null:null),U})},[]),I=o.useCallback(()=>{f(!1),K(null)},[]);o.useEffect(()=>{c&&(f(!1),K(null))},[c]);const L=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 Fc(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[_.current,b.current].map(Z=>Z?.querySelector("button")??null).find(Z=>!!Z&&Z.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:R,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:M,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:L})]}),e&&C&&A&&$&&n.jsx(gn,{anchorRect:$,onClose:I,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:L})}),n.jsxs("div",{className:"pp-bottom__right",children:[v&&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:!B}),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:!B})]}),e&&p&&n.jsx(Uc,{anchorRect:g,onClose:w,hideNoiseRows:d})]})}function Kc({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(),y=mn("(max-width: 767px)"),C=Number.isInteger(m)?m:u||0,f=Number.isInteger(d)?d:c||0,_=p||h,b=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,k=typeof e=="string"?e.trim():e,x=typeof t=="string"?t.trim():t,N=!!(k||x),v=N?k||x:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),B=b||(k?t:void 0),w=y&&typeof B=="string"&&(B.includes(" \xB7 ")||B.includes(" / "))?B.split(/\s[·/]\s/).pop():B,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:[w?n.jsx("span",{className:"pp-title__depth caption-1",children:w}):null,n.jsx("span",{className:`pp-title__title h2${N?"":" pp-title__title--empty"}`,children:v}),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 Yc=(e,t)=>{if(!t)return t;const a=typeof qt?.t=="function"?qt.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function Zc(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?Yc(`topic.${l.key}`,l.label):void 0,i?Yc(`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 Xc(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=Zc(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 Jc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function p_(e,t,a,r){return Jc(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 Qc=o.createContext(null);function C_(){const e=o.useContext(Qc);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),y=l.length;o.useEffect(()=>{h(Array.from({length:y},()=>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:y},()=>null)),C.current=t},[t,e,y]);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 B=x[k];N=x.map(w=>w!==null&&w>=B?null:w)}else N=[...x],N[k]=f;h(N);const v={selectedOrder:N,words:l,__ts:Date.now()};try{typeof u=="function"&&u(v)}catch{}if(x[k]==null&&N.length>0&&N.every(B=>B!==null))try{typeof i=="function"&&i(v)}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 Sr(e){return null}Sr.__isTrainingPage=!0;function _a(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 ed({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i}=_a(e,t);return n.jsx(_s,{...a,index:r,stepIndex:s,isLast:l,onDone:i})}function td({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=_a(e,t);return n.jsx(vs,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}function nd({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=_a(e,t);return n.jsx(xs,{...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}=_a(e,t);return n.jsx(ws,{...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}=_a(e,t);return n.jsx(Wc,{...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}=_a(e,t);return n.jsx(f_,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}const od=3e4,g_=/^(https?:|blob:|data:audio|\/|\.\/)/;function sd(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?Ea()||nr()?!0:typeof window<"u"&&!!window.speechSynthesis:!1}function __(e,t){const a=[],r=sd(t);r&&a.push({kind:"raw",resolve:async()=>r});const s=(e??"").trim();if(!s)return a;for(const[l,i]of[["urlResolver",Ea()],["fallbackUrlResolver",nr()]])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 ${od}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()+od}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 jr(...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 jr(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function N_(e){return sd(jr(e?.questionSound,e?.soundSrc,e?.audioSrc,e?.sound,e?.audio,e?.src))}function ld(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=jr(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 id(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=ld(D),R=jr(D?.wording,D?.label);return A===!0?{variant:"main",label:R??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:A===!1?{variant:"danger",label:R??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:R??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),g=a??0,y=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 R=Math.round(performance.now()-x.current);console.debug(`[core][\uB2E4\uC2DC\uB4E3\uAE30] +${R}ms ${D}`,A??"")},v=o.useRef(0),B=o.useCallback((D,A,R)=>{k();const $=++v.current,K=()=>v.current===$;x.current=Pn?performance.now():0,N(`\uB20C\uB800\uB2E4 \u2014 \uC904 ${D}`,{text:A,rawUrl:R}),b(D),f.current=()=>{N("\uBA48\uCD94\uAC1C\uAC00 \uBD88\uB838\uB2E4(\uC8FC\uC18C \uC5BB\uAE30 \uC804)"),v.current++,Xr()};const M=U=>{N("\uD2BC\uB2E4",U);const F=Ua(U,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)"),v.current++,F.stop(),Xr()},F.done},I=__(A,R);N("\uCC28\uB840",I.map(U=>U.kind));const L=I[0]?.kind==="raw",Z=L?M(R):Promise.resolve(!1);(async()=>{if(await Z||!K())return;const U=w_(),F=L?I.slice(1):I;for(let Q=0;Q<F.length;Q++){if(!K())return;N(`${F[Q].kind} \uC5D0\uAC8C \uBB3B\uB294\uB2E4`);const P=await F[Q].resolve(B_(U,F.length-Q));if(N(`${F[Q].kind} \uAC00 \uB2F5\uD588\uB2E4`,P),!K()||P&&(await M(P)||!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=()=>{v.current++,Xr()},N("\uB0AD\uB3C5\uD55C\uB2E4"),NC(A,{onEnd:()=>{K()&&(f.current=null,b(null))}}))})()},[k]),w=o.useMemo(()=>C.map(D=>{const A=D??{},R=A_(A)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:$,label:K}=h(A),M=Array.isArray(A.corrects)?A.corrects:[],I=M.length?M.join(", "):A.answer!=null&&A.answer!==""?String(A.answer):null,L=typeof A.selectedText=="string"?A.selectedText:null,Z=ld(A)===!0,U=N_(A),F=!!U||x_(R);return{problem:R,variant:$,label:K,answer:I,selectedText:L,isCorrect:Z,sound:U,canHear:F}}),[C,h,d]),E=o.useMemo(()=>w.some(D=>D.answer!==null||D.selectedText!==null),[w]);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:y,total:g}),children:[n.jsx("span",{className:"trp-score__big",children:y}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:g})]})})]}),w.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")})]}),w.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():B(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,_f({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 Tr(e,t){return e&&e.id||`page-${t??0}`}function Mr(e,t){return e&&e.key||`step-${t??0}`}function Lr(){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({}),ud=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(id,{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:y,onNext:C,onSettings:f,useNoiseSetting:_=!0,children:b,ariaLabel:k,label:x,buildResults:N,onResult:v,typeKey:B,entryPoint:w,dailyTotal:E,itemRef:D,renderResultPopup:A,noiseOverride:R,hideNoiseRows:$=!1}=e;E_(B&&!ud.has(B)?B:"");const K=o.useRef(0);o.useEffect(()=>{K.current=Date.now()},[]);const{t:M}=xe.useTranslation(),I=v,L=!!t,Z=t?.id||null,U=t?.meta||{},F=Array.isArray(t?.pages)?t.pages:[],Q=Array.isArray(b)||o.isValidElement(b)&&typeof b!="function"?o.Children.toArray(b).filter(o.isValidElement):[],P=Q.length>0,q=ie=>ie===Sr||ie?.__isTrainingPage===!0,X=P&&Q.some(ie=>q(ie.type)),V=X?Q.filter(ie=>q(ie.type)).map((ie,Ae)=>{const Re=ie.props||{};return{id:`children-page-${Ae}`,steps:o.Children.toArray(Re.children).filter(o.isValidElement),pageTop:Re.pageTop||Re.top||null,pageBottom:Re.pageBottom||Re.bottom||null}}):[{id:"children-page-0",steps:Q}],T=P&&!L&&typeof b!="function",j=T?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 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[O,H]=o.useState({...ea,enabled:!1}),oe=o.useRef(O);o.useEffect(()=>{oe.current=O},[O]);const ne=o.useRef(R),le=o.useRef(!1),ee=o.useRef(null);o.useEffect(()=>{let ie=!1;const Ae=Re=>{if(ie)return;le.current=!0;const Ue=Re?Qn({...ea,enabled:!1},Re):{...ea},Ie=ee.current;ee.current=null;const J=Ie?Qn(Ue,Ie):Ue;oe.current=J,H(J),Ie&&!ne.current&&co(J),lr(J);const ue=ne.current;if(ue){const ke=typeof ue=="function"?ue(J):ue,Oe=Qn(J,ke);oe.current=Oe,H(Oe),lr(Oe)}};return Mf().then(Re=>{if(ie){const Ue=ee.current;if(ee.current=null,Ue&&!ne.current){const Ie=Re?Qn({...ea,enabled:!1},Re):{...ea};co(Qn(Ie,Ue))}return}Ae(Re)}),()=>{ie=!0}},[]);const[z,te]=o.useState(null),[W,G]=o.useState(null),pe=o.useCallback((ie,Ae)=>{ie==="main"?te(Ae):G(Ae)},[]),Ee=o.useRef(null),ve=o.useRef(null),me=o.useCallback(()=>{ve.current!==null&&(clearTimeout(ve.current),ve.current=null);const ie=Ee.current;Ee.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 ce=o.useCallback(ie=>{const Ae=Qn(oe.current,ie);if(oe.current=Ae,H(Ae),!le.current){ee.current={...ee.current??{},...ie},lr(Ae);return}ne.current||(Ee.current=Ae,ve.current!==null&&clearTimeout(ve.current),ve.current=setTimeout(me,S_)),lr(Ae)},[me]),ge=O.mainSpeed,he=O.mainVolume,de=o.useCallback(ie=>ce({mainSpeed:ie}),[ce]),Le=o.useCallback(ie=>ce({mainVolume:ie}),[ce]),ze=o.useMemo(()=>({settings:O,setSettings:ce,registerAnalyser:pe,mainAnalyser:z,noiseAnalyser:W,playbackRate:ge,setPlaybackRate:de,mainVolume:he,setMainVolume:Le}),[O,ce,pe,z,W,ge,de,he,Le]),Me=o.useRef(null),[Ve,We]=o.useState(0),dt=o.useRef([]),[lt,tt]=o.useState("center"),[yt,_e]=o.useState(!1),Ge=o.useRef(!1),Be=o.useRef(null),qe=o.useCallback(ie=>{Ge.current||(Ge.current=!0,_e(!0),Be.current=setTimeout(()=>{try{ie()}catch{Ge.current=!1,_e(!1)}},j_()?0:Jx))},[]);o.useEffect(()=>()=>{Be.current&&clearTimeout(Be.current)},[]);const Ke=o.useRef(h);o.useEffect(()=>{Ke.current=h});const pt=o.useRef(typeof document>"u"?null:document.activeElement);o.useEffect(()=>{const ie=Me.current,Ae=pt.current;if(fo(ie,Ae),ie){const Re=Array.from(ie.querySelectorAll(xn)).filter(Ue=>!Ue.closest('[aria-hidden="true"]'))[0];if(Re)try{Re.focus()}catch{}}return()=>{const Re=document.activeElement;if(!Re||Re===document.body||ie&&ie.contains(Re))try{bo(Ae)?.focus?.()}catch{}}},[]),o.useEffect(()=>Gn(()=>qe(()=>{const ie=Ke.current;typeof ie=="function"&&ie()})),[qe]),ho(Me,!0);const[xt,Dt]=o.useState(!1),St=o.useRef(!1),[it,at]=o.useState(null),At=o.useRef(0),_t=o.useRef(0),Mt=()=>{At.current+=1,_t.current+=1,at(null)},[Ne,$e]=o.useState(""),[Se,He]=o.useState(()=>Lr()),rt=o.useRef(typeof c=="number"?c:null);o.useEffect(()=>{!L&&!T||(He(Lr()),Mt())},[L,Z,T]),o.useEffect(()=>{T&&He(ie=>{const Ae=Math.max(0,Math.min(ie.pageIndex,Math.max(0,j-1)));return Ae!==ie.pageIndex?{...ie,pageIndex:Ae,stepIndex:0}:ie})},[T,j]);const vt=T?Math.max(0,Math.min(Se.pageIndex,j-1)):0,et=T?V[vt]:null,Nt=T&&et&&Array.isArray(et.steps)?et.steps:[],Ye=L?Se.pageIndex:T?vt:typeof c=="number"?c:0,bt=L?F[Math.max(0,Math.min(Se.pageIndex,Math.max(0,F.length-1)))]:null,kt=L&&bt&&Array.isArray(bt.steps)?bt.steps:[],gt=L?kt.length:T?Nt.length:typeof p=="number"?p:0,ft=L||T?Math.max(0,Math.min(Se.stepIndex,Math.max(0,gt))):typeof m=="number"?m:0,ut=L?F.length:T?j:typeof d=="number"?d:0;o.useEffect(()=>{if(!L&&!T)return;const ie=L?Tr(bt,Ye):et?.id||`children-page-${Ye??0}`,Ae=new Date().toISOString();for(let Re=0;Re<=ft;Re+=1){const Ue=L?Mr(kt[Re],Re):`step-${Re}`,Ie=Ce(ie,Ue);re.current.has(Ie)||re.current.set(Ie,Ae)}},[L,T,Ye,ft,et?.id]),o.useLayoutEffect(()=>{const ie=rt.current;if(typeof Ye=="number"&&ie!==null&&Ye!==ie&&Ye>ie)try{$e(M("training.problemNotice",{n:Ye+1}))}catch{}rt.current=typeof Ye=="number"?Ye:rt.current},[Ye,c,M]),o.useLayoutEffect(()=>{const ie=Me.current;if(!ie)return;const Ae=()=>ie.querySelector(".page-popup__scroll");let Re=null,Ue=null,Ie=null;const J=Je=>{const ye=Ae();if(!ye)return;const je=ye.scrollHeight<=ye.clientHeight;if(tt(je?"center":"top"),Je&&!St.current){St.current=!0;try{Dt(!0)}catch{}try{Oe.disconnect()}catch{}}},ue=()=>{Re!==null&&cancelAnimationFrame(Re),Re=requestAnimationFrame(()=>{Ue!==null&&clearTimeout(Ue),Ue=setTimeout(()=>J(!0),60)})},ke=()=>{Ie!==null&&cancelAnimationFrame(Ie),Ie=requestAnimationFrame(()=>J(!1))};ue(),window.addEventListener("resize",ke);const Oe=new MutationObserver(ue);Oe.observe(ie,{childList:!0,subtree:!0,attributes:!0});const Ze=setTimeout(()=>{St.current||J(!0)},400);return()=>{window.removeEventListener("resize",ke),Re!==null&&cancelAnimationFrame(Re),Ue!==null&&clearTimeout(Ue),Ie!==null&&cancelAnimationFrame(Ie),clearTimeout(Ze);try{Oe.disconnect()}catch{}}},[Me]);const De=o.useCallback(ie=>{Me.current&&(Me.current._childOnNext=ie)},[]),nt=o.useCallback(ie=>{Me.current&&(Me.current._childOnResult=ie)},[]),re=o.useRef(new Map),Ce=(ie,Ae)=>`${ie}\0${Ae}`,Fe=o.useCallback((ie,Ae,Re)=>{He(Ue=>{const Ie=Ue.answersByPage[ie]||{},J=Ie[Ae],ue=ks(Re),ke=ks(J);if(J&&ke>ue)return Ue;const Oe=Xc(Re,re.current.get(Ce(ie,Ae)),ue);return{...Ue,answersByPage:{...Ue.answersByPage,[ie]:{...Ie,[Ae]:Oe}}}})},[He]),Qe=o.useCallback((ie,Ae,Re)=>{const Ue=Tr(bt,Ye),Ie=Mr(ie,Ae);Fe(Ue,Ie,Re)},[bt,Ye,Fe]),ct=o.useCallback((ie,Ae,Re)=>{const Ue=Tr(bt,Ye),Ie=Mr(ie,Ae);Fe(Ue,Ie,Re),!Re?.allowChange&&ie?.autoAdvance!==!1&&He(J=>({...J,stepIndex:Math.max(J.stepIndex,Ae+1)}))},[bt,Ye,Fe,He]),ot=o.useCallback((ie,Ae)=>{const Re=et?.id||`children-page-${Ye??0}`,Ue=typeof Ae=="number"?Ae:ft??0,Ie=`step-${Ue}`;Fe(Re,Ie,ie),ie?.allowChange||He(J=>({...J,stepIndex:Math.max(J.stepIndex,Ue+1)}))},[et,Ye,ft,Fe,He]),It=o.useCallback((ie,Ae)=>{const Re=et?.id||`children-page-${Ye??0}`,Ue=`step-${typeof Ae=="number"?Ae:ft??0}`;Fe(Re,Ue,ie)},[et,Ye,ft,Fe]),Yt=T?{currentPageIndex:Ye??0,currentStepIndex:ft??0,totalStepsInPage:Nt.length,handleStepDone:ot,handleStepChange:It}:null,kn=async()=>{const ie=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:F,flowState:Se,answersByPage:Se.answersByPage})):null;return typeof I=="function"&&await Promise.resolve(I(ie))||ie},Vt=async()=>{const ie=et?.id||`children-page-${Se.pageIndex}`,Ae=Se.answersByPage[ie]||{},Re=X?(()=>{const J={};let ue=0;return V.forEach(ke=>{const Oe=Se.answersByPage[ke.id]||{},Ze=Array.isArray(ke.steps)?ke.steps.length:0;for(let Je=0;Je<Ze;Je+=1){const ye=Oe[`step-${Je}`];typeof ye<"u"&&(J[`step-${ue+Je}`]=ye)}ue+=Ze}),J})():Ae;if(typeof N=="function"){const J=await Promise.resolve(N(Re,{pageAnswers:Ae,answersByPage:Se.answersByPage,pages:V,currentPageId:ie}));return typeof I=="function"&&await Promise.resolve(I(J))||J}const Ue=Object.entries(Ae).map(([J,ue],ke)=>({index:ke,key:J,payload:ue})),Ie={results:Ue,answers:Ue,score:0};return typeof I=="function"&&await Promise.resolve(I(Ie))||Ie},Zt=()=>{const ie=++At.current,Ae=()=>ie!==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(L){const Ie=kn();at($n);const J=Ie;Promise.resolve(J).then(ue=>{Ae()||at(ue||{isEmpty:!0})}).catch(ue=>{!Ae()&&at({isEmpty:!0})});return}if(T){const Ie=Vt();at($n);const J=Ie;Promise.resolve(J).then(ue=>{Ae()||at(ue||{isEmpty:!0})}).catch(ue=>{!Ae()&&at({isEmpty:!0})});return}const Re=Me.current&&Me.current._childOnResult,Ue=Ie=>{try{return Ie?Ie():void 0}catch{return}};if(typeof Re=="function"){const Ie=Ue(Re);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{}Ie&&typeof Ie.then!="function"?at(Ie):at(Ie&&typeof Ie.then=="function"?$n:{});const J=()=>{Ae()||at(ue=>ue===$n?{}:ue)};Promise.resolve(Ie).then(ue=>{ue&&!Ae()?at(ue):J()}).catch(ue=>{J()});return}if(typeof I=="function"){const Ie=Ue(I);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{}Ie&&typeof Ie.then!="function"?at(Ie):at(Ie&&typeof Ie.then=="function"?$n:{});const J=()=>{Ae()||at(ue=>ue===$n?{}:ue)};Promise.resolve(Ie).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&&!Ae()?at(ue):J()}).catch(ue=>{console.error("viewResults external handler failed",ue),J()});return}},Rt=()=>{if(L){if(typeof Ye=="number"&&typeof ut=="number"&&Ye<ut-1){He(Ae=>({...Ae,pageIndex:Ae.pageIndex+1,stepIndex:0}));return}return Zt()}if(T){const Ae=Nt.length;if(typeof ft=="number"&&ft<Ae-1){He(Re=>({...Re,stepIndex:Re.stepIndex+1}));return}if(typeof Ye=="number"&&typeof ut=="number"&&Ye<ut-1){He(Re=>({...Re,pageIndex:Re.pageIndex+1,stepIndex:0}));return}return Zt()}if(typeof C=="function"){try{C()}catch{}return}const ie=Me.current&&Me.current._childOnNext;if(typeof ie=="function"){try{ie()}catch{}return}},ht=L?U.title||U.label||k||M("common.popup","\uD31D\uC5C5"):a||x||(Array.isArray(s)?s[s.length-1]:void 0)||k||M("common.popup","\uD31D\uC5C5"),Ct=k||ht,wt=L?U.title??U.label??ht:a??x??ht,zt=(ie,Ae)=>{const Re=Tr(bt,Ye),Ue=Mr(ie,Ae),Ie=Se.answersByPage[Re]?.[Ue],J=D_(ie,{page:bt,pageIndex:Ye,step:ie,stepIndex:Ae,storedPayload:Ie,answersByPage:Se.answersByPage,flowState:Se}),ue={key:Ue,index:Ae,stepIndex:ft,isLast:Ae===kt.length-1};switch(ie?.type){case"listen":return n.jsx(_s,{...ue,...J,onDone:ke=>ct(ie,Ae,ke)});case"confirm":return n.jsx(vs,{...ue,...J,onDone:ke=>ct(ie,Ae,ke),onChange:ke=>Qe(ie,Ae,ke)});case"confirmWithText":return n.jsx(xs,{...ue,...J,onDone:ke=>ct(ie,Ae,ke),onChange:ke=>Qe(ie,Ae,ke)});case"orderList":return n.jsx(ws,{...ue,...J,onDone:ke=>ct(ie,Ae,ke),onChange:ke=>Qe(ie,Ae,ke)});default:return null}},Cn=o.useRef(void 0);o.useEffect(()=>{const ie=Cn.current;if(Cn.current=Ye,ie===void 0||ie===Ye||!gr())return;const Ae=Me.current;if(!Ae)return;const Re=document.activeElement;if(!(!Re||Re===document.body||!Ae.contains(Re)||Re.disabled===!0))return;const Ue=Ae.querySelector(`.training-steps ${xn.split(", ").join(", .training-steps ")}`)??Array.from(Ae.querySelectorAll(xn)).find(Ie=>!Ie.closest('[aria-hidden="true"]'));try{Ue?.focus()}catch{}},[Ye]);const An=L?F.length>0?n.jsx("div",{className:"training-steps",children:kt.map((ie,Ae)=>zt(ie,Ae))},`replay-${Ve}`):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,Rn=T?n.jsxs(Qc.Provider,{value:Yt,children:[et?.pageTop?n.jsx("div",{className:"training-page-top",children:et.pageTop}):null,n.jsx("div",{className:"training-steps",children:Nt.map((ie,Ae)=>{const Re=ie;return o.cloneElement(Re,{...Re.props,_stepIndex:Ae,_totalSteps:Nt.length,_stepKey:`step-${Ae}`,_pageIndex:Ye})})},`replay-${Ve}`),et?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:et.pageBottom}):null]}):null,pn=o.useRef(-1),Gt=o.useCallback(()=>{if(!B)return;const ie=it,{results:Ae,correct:Re,total:Ue}=Es(it),Ie={correct:Re,total:Ue,attempt:dt.current.length+1,previousAttempts:[...dt.current]};if(pn.current===_t.current)return Ie;pn.current=_t.current,wf({items:Tf(Ae),category:ud.has(B)?"sentence":"word",trainingType:B,entryPoint:w??"sentence",itemRef:D??null,correct:Re,total:Ue,score:typeof ie?.score=="number"?ie.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-K.current)/1e3)),dailyTotal:E??null});try{y?.(Ie)}catch{}return Ie},[B,w,E,D,it,y]);o.useEffect(()=>{!it||it===$n||it?.isEmpty||(Es(it).total??0)>0&&Gt()},[it,Gt]);const fn=o.useCallback(()=>{const ie=Gt();Mt(),qe(()=>{typeof g=="function"&&g(ie),typeof h=="function"&&h()})},[g,h,Gt,at,qe]),Ft=o.useCallback(()=>$e(""),[$e]),Xt=o.useCallback(()=>{qe(()=>{typeof h=="function"&&h()})},[h,qe]),Wt=n.jsxs("div",{className:`page-popup${yt?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Ct,children:[n.jsxs("div",{ref:Me,className:`page-popup__panel ${xt?"":"page-popup__panel--measuring"} ${lt==="center"?"page-popup__panel--center":lt==="top"?"page-popup__panel--top":""}`,children:[n.jsx(Kc,{title:wt,subtitle:L?U.subtitle||U.label:Array.isArray(s)?s.join(" / "):void 0,desc:L?void 0:r,depth:L?U.depth:s,icon:L?U.icon:l,wrapperStyle:L?U.wrapperStyle:i,iconTooltip:L?U.iconTooltip:u,progressMax:ut,progressIndex:Ye,pageIndex:Ye,pageCount:ut,onBack:Xt,onClose:Xt}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${lt==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:T?Rn:L?An:typeof b=="function"?b({registerOnNext:De,registerOnResult:nt,panelRef:Me,setResultOverlay:at}):b})}),n.jsx(Gc,{onSettings:f,onNext:Rt,onResult:Zt,useNoiseSettingBtn:!!(L?U.useNoiseSetting??!0:_),stepIndex:ft,stepCount:gt,pageIndex:Ye,pageCount:ut,resultOpen:!!(it&&!it.isEmpty),hideNoiseRows:$})]}),it&&!it.isEmpty&&(A??T_)({score:it.score,results:it.results||it.answers||[],contextsLength:it.results?it.results.length:it.answers?it.answers.length:0,onReplay:()=>{if(K.current=Date.now(),it!==$n){const{correct:ie,total:Ae}=Es(it);dt.current.push({correct:ie,total:Ae})}if(Mt(),We(ie=>ie+1),L){if(He(Lr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(T){He(Lr());return}try{const ie=Me.current&&Me.current._childOnResult;typeof ie=="function"&&ie({replay:!0})}catch{}},onClose:fn,pending:it===$n}),it?.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(be,{htmlType:"button",variant:"main",size:48,onClick:fn,label:M("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(fa,{message:Ne,position:"top",onClose:Ft})]}),vn=n.jsx(hs.Provider,{value:ze,children:Wt});return typeof document<"u"&&document.body?sn.createPortal(vn,document.body):vn}const Hn=M_;Hn.Page=Sr,Hn.ListenStep=ed,Hn.ConfirmStep=td,Hn.ConfirmWithTextStep=nd,Hn.OrderListStep=ad,Hn.CardStep=rd,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 cd({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:y="page",disc:C}){const{t:f,i18n:_}=xe.useTranslation(),b=_.language?.startsWith("ko")??!1,{anchorRect:k,openAt:x,close:N}=Ia(),[v,B]=o.useState(null),w=o.useCallback(()=>{N(),B(null)},[N]);Ty(w,!!v);const E=(r??"").trim(),D=/^[^,[\]\s]+$/.test(E)?E:"",A=D.length>0,R=r===void 0&&t===void 0,$=A?"match":R?"original":"ganada",[K,M]=o.useState(()=>$),[I,L]=o.useState("50"),[Z,U]=o.useState(1),[F,Q]=o.useState(A);F!==A&&(Q(A),M($));const P=K==="match"&&!A||K==="original"&&!R?$:K,q=o.useMemo(()=>[...A?[{value:"match",label:f("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...R?[{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,R]),X=o.useMemo(()=>["10","25","50","100"].map(ce=>({value:ce,label:f("wordSearch.pageSize",{count:Number(ce),defaultValue:`${ce}\uAC1C\uC529 \uBCF4\uAE30`})})),[f]),V=ce=>ce.words?.[0],T=o.useMemo(()=>{const ce=[...D].length,ge=rf(D),he=new Map;return de=>{let Le=he.get(de);return Le===void 0&&(Le=ge((de.words?.[0]?.label??"").slice(0,ce))?0:1,he.set(de,Le)),Le}},[D]),j=o.useCallback((ce,ge)=>{const he=ze=>V(ze)?.label??"",de=ze=>V(ze)?.syllables??[...he(ze)].length,Le=ze=>(ze.words??[]).reduce((Me,Ve)=>{const We=parseInt(Ve.grade??"",10);return Number.isFinite(We)&&We<Me?We:Me},999);switch(P){case"match":return T(ce)-T(ge)||cn(he(ce),he(ge));case"ganada":return cn(he(ce),he(ge));case"ganada_desc":return cn(he(ge),he(ce));case"syllable":return de(ce)-de(ge)||cn(he(ce),he(ge));case"syllable_desc":return de(ge)-de(ce)||cn(he(ce),he(ge));case"grade":return Le(ce)-Le(ge)||cn(he(ce),he(ge));case"grade_desc":return Le(ge)-Le(ce)||cn(he(ce),he(ge));default:return 0}},[P,T]),O=o.useMemo(()=>s.slice().sort(j),[s,j]),H=Number(I)||10,oe=o.useMemo(()=>(l??[]).flatMap(ce=>ce.items.slice().sort(j).map(ge=>({item:ge,label:ce.label}))),[l,j]),ne=l?oe.length:O.length,le=Math.max(1,Math.ceil(ne/H)),ee=Math.min(Z,le),z=o.useMemo(()=>O.slice((ee-1)*H,ee*H),[O,ee,H]),te=o.useId(),W=o.useMemo(()=>{if(!l)return null;const ce=oe.slice((ee-1)*H,ee*H),ge=new Map;for(const{item:he,label:de}of ce)ge.has(de)||ge.set(de,[]),ge.get(de).push(he);return[...ge.entries()].map(([he,de])=>({label:he,items:de}))},[l,oe,ee,H]);o.useEffect(()=>{U(1)},[K,I,ne,r]);const G=ne>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(hn,{size:40,options:q,value:P,onChange:M,ariaLabel:f("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(hn,{size:40,options:X,value:I,onChange:L,ariaLabel:f("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(fr,{page:ee,totalPages:le,onChange:U})]}):void 0,pe=ce=>{u&&u(ce)},Ee=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?ff(a):a})]}):void 0,ve=t!==void 0&&t>0&&c!==void 0&&a?f("wordSearch.resultDisc",{unit:b?gf(a):a,max:c,selected:i.length}):void 0,me=C??ve;return n.jsxs(ga,{type:y,className:we("word-search-result-block",h),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(Ee||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(st,{icon:e,className:"word-search-result-block__head-icon"}),Ee&&n.jsx("span",{className:"word-search-result-block__title h3",children:Ee})]}),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.")}),g&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),l?(W??[]).map(ce=>n.jsxs("div",{className:"word-search-result-block__group",role:"group","aria-labelledby":`${te}-${ce.label}`,children:[n.jsx("div",{className:"word-search-result-block__group-label caption-1b",id:`${te}-${ce.label}`,children:ce.label}),n.jsx("div",{className:"word-search-result-block__items",children:ce.items.map(ge=>{const he=i.includes(ge.id);return n.jsx("div",{onMouseEnter:de=>{x(de.currentTarget),B(ge.words??[])},onMouseLeave:w,children:n.jsx(be,{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:he,onClick:()=>pe(ge.id),minWidth:200})},ge.id)})})]},ce.label)):n.jsx("div",{className:"word-search-result-block__items",children:z.map(ce=>{const ge=i.includes(ce.id);return n.jsx("div",{onMouseEnter:he=>{x(he.currentTarget),B(ce.words??[])},onMouseLeave:w,children:n.jsx(be,{htmlType:"button",size:"word",align:"grid",label:(ce.words??[]).map(he=>he.label),subLabel:(ce.words??[]).some(he=>he.subLabel)?(ce.words??[]).map(he=>he.subLabel):void 0,selected:ge,onClick:()=>pe(ce.id),minWidth:200})},ce.id)})}),v&&k&&n.jsx(cd,{words:v,anchorRect:k})]}),le>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(fr,{page:ee,totalPages:le,onChange:U})}),(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:y=!0,onClearPhoneme:C,onSearch:f,onSearchEmpty:_,searchDisabled:b=!1,searchLabel:k,searchChecking:x=!1,pairMode:N=!1,sectionType:v="page",beforeSearchContent:B,beforeContent:w,afterContent:E,hideCountControl:D=!1,ordinal:A=!1}){const{t:R}=xe.useTranslation(),$=o.useMemo(()=>R("wordPairs.infoNotes",{returnObjects:!0}),[R]),K=o.useMemo(()=>Array.from({length:s-l+1},(T,j)=>{const O=l+j;return{key:String(O),label:R("wordPairs.count",{n:O})}}),[R,s,l]),M=o.useMemo(()=>R("wordPairs.ordinals",{returnObjects:!0}),[R]),I=o.useCallback(T=>A?R("wordPairs.phonemeOrdinalLabel",{ordinal:M[T-1]??T}):a===1?R("wordPairs.phonemeSingleLabel","\uC74C\uC808"):R("wordPairs.phonemeN",{n:T}),[A,M,a,R]),L=o.useCallback(T=>A?R("wordPairs.phonemeContrastOrdinalLabel",{ordinal:M[T-1]??T}):a===1?R("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):R("wordPairs.phonemeContrast",{n:T}),[A,M,a,R]),Z=o.useCallback((T,j)=>j?n.jsxs(n.Fragment,{children:[T,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):T,[]),{anchorRect:U,toggleAt:F,close:Q}=Ia(),P=o.useCallback(T=>r(Number(T)),[r]),q=mn("(max-width: 767px)"),X=o.useCallback(T=>R_(T,e).map(({label:j,value:O,displayLabel:H})=>{const oe=!!O&&O!=="\uC5C6\uC74C";return n.jsxs("span",{className:we("phoneme-select-block__cell-jamo-part",O?"":"phoneme-select-block__cell-jamo-part--empty",oe?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${O==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:O==="\uC5C6\uC74C"?"x":O||d}),oe&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:H??j})]},j)}),[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:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:U?"is-selected":void 0,"aria-expanded":!!U,"aria-haspopup":"dialog",onClick:T=>F(T.currentTarget)})}),U&&n.jsx(Kn,{title:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:$,anchorRect:U,onClose:Q})]});return n.jsxs(ga,{type:v,title:p,icon:h,disc:g,action:y?V:void 0,className:we("phoneme-select-block",m),children:[w,!D&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(_n,{options:K,value:String(a),onChange:P,size:40,ariaLabel:R("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((T,j)=>{const O=t[j*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:X(O)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:I(j+1)})]},j)})}),n.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:R("wordPairs.phonemeSelect.vs","\uB300")}),n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((T,j)=>{const O=t[j*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:X(O)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(j+1)})]},j)})})]}):t.map((T,j)=>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:X(T)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:I(j+1)})]},j))}),(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((T,j)=>{const O=t[j*2]??{};return n.jsx(Mn,{title:Z(I(j+1),j===0),sections:u?u(O,j*2):i,selected:O,onSelect:c?.(j*2),align:"newline"},j)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((T,j)=>{const O=t[j*2+1]??{};return n.jsx(Mn,{title:L(j+1),sections:u?u(O,j*2+1):i,selected:O,onSelect:c?.(j*2+1),align:"newline"},j)})})]}):t.map((T,j)=>n.jsx(Mn,{title:Z(I(j+1),j===0),sections:u?u(T,j):i,selected:T,onSelect:c?.(j),align:"newline"},j))})}),B&&n.jsx("div",{className:"phoneme-select-block__before-search",children:B}),(C||f||x)&&(()=>{const T=t.every(j=>{const O=ef(j);return Object.entries(O).every(([H,oe])=>!oe||H==="coda"&&oe===Ml)});return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:T?_:void 0,children:[C&&n.jsx(be,{htmlType:"button",size:"56",type:"bar",label:R("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:T,onClick:T?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??R("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:T||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??R("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(Va,{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(Va,{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(Va,{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.")]})}],y={[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:y,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:y,pageSizeOptions:C=[10,25,50,100],initialPageSize:f,emptyText:_,noMatchText:b,countLabel:k,topContent:x,className:N=""}=e,{t:v}=xe.useTranslation(),B=u??v("common.search","\uAC80\uC0C9"),w=_??v("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),E=b??v("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"),[D,A]=o.useState(""),[R,$]=o.useState(d??r[0]?.key??""),[K,M]=o.useState(m),[I,L]=o.useState(String(f??C[0]??10)),[Z,U]=o.useState(1);o.useEffect(()=>{U(1)},[D,I]);const F=c!==null,Q=o.useCallback((ne,le)=>{if(!le)return!0;const ee=le.toLowerCase();return r.some(z=>{const te=ne[z.key];return te==null?!1:String(te).toLowerCase().includes(ee)})},[r]),P=c??Q,q=o.useMemo(()=>{const ne=F?a.filter(le=>P(le,D)):a;return R?[...ne].sort((le,ee)=>{const z=le[R],te=ee[R];return z===te?0:pr(z,te,K)}):ne},[a,D,R,K,F,P]),X=Math.max(1,Math.ceil(q.length/Number(I)));Z>X&&U(X);const V=Math.min(Z,X),T=q.slice((V-1)*Number(I),V*Number(I)),j=o.useCallback(ne=>{R===ne?M(le=>!le):($(ne),M(!0)),U(1)},[R]),O=o.useMemo(()=>{if(typeof k=="function"){const ne=q.length,le=k(ne);if(typeof le=="string"){const ee=le.lastIndexOf(String(ne));if(ee>=0)return{prefix:le.slice(0,ee),suffix:le.slice(ee+String(ne).length)}}return{label:le}}if(typeof k=="string"&&k.includes("{n}")){const[ne,le]=k.split("{n}");return{prefix:ne,suffix:le}}return{prefix:v("common.totalCountPrefix","\uCD1D "),suffix:v("common.totalCountSuffix","\uAC1C")}},[k,q.length,v]),H=o.useMemo(()=>r.map(ne=>({label:ne.label,onClick:ne.sortable!==!1?()=>j(ne.key):void 0,className:ne.className,sortDir:ne.sortable!==!1&&R===ne.key?K?"asc":"desc":null})),[r,R,K,j]),oe=o.useMemo(()=>C.map(ne=>({value:String(ne),label:v("common.pageSizeLabel",{n:ne})})),[C,v]);return n.jsxs(Wn,{className:`popup-list ${N}`,title:t,onClose:y,children:[x,"label"in O&&n.jsx("p",{className:"toolbar__count body-1",children:O.label}),n.jsx(Po,{count:"label"in O?void 0:{value:q.length,prefix:O.prefix,suffix:O.suffix},search:F?{value:D,onChange:A,placeholder:B}:void 0,pageSize:{options:oe,value:I,onChange:L},pagination:{page:V,total:X,onChange:U}}),n.jsx(Ko,{size:"medium",gridTemplateColumns:l,mobileGridTemplateColumns:i,resizable:!0,resizeStorageKey:s,fields:H,items:T,onRowClick:g,renderRow:ne=>{const le=h!=null?ne.id!=null&&h.has(ne.id):p!=null&&ne.id===p;return r.map(ee=>({content:ee.render?ee.render(ne):ne[ee.key]??"",className:we(ee.className,le&&"popup-list__row--selected")}))},empty:F&&D!==""&&a.length>0?E:w})]})}function dd(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:y,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")??[]),R=b==="confirm"?A[A.length-1]:c?void 0:A[d?1:0];R&&!R.disabled&&R.focus()},[]);const N=o.useRef(!1),[v,B]=o.useState(!1),w=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;B(!0);let R=!1;try{R=await D()}catch($){typeof console<"u"&&console.error($)}finally{R||(N.current=!1,B(!1),requestAnimationFrame(()=>{const $=document.activeElement;(!$||$===document.body)&&A?.isConnected&&A.focus()}))}};return n.jsxs(Wn,{title:t,onClose:y,closeDisabled:v,inline:C,size:f,className:we("confirm-popup",r!=null&&"confirm-popup--has-top",_),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||v,onClick:async({closeWithAnimation:D})=>{await E(async()=>{const A=w(D);await d.onClick(A.close);const R=d.closeOnClick??!0;return R&&D(),R||A.didClose()})}}]:[],...c?[]:[{label:u??k("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:v,onClick:({closeWithAnimation:D})=>D()}],{label:i??k("common.confirm","\uD655\uC778"),variant:m,disabled:p||v,onClick:async({closeWithAnimation:D})=>{await E(async()=>{const A=w(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(Er,{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(dd,{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 y=>{const C=r.trim();if(C){i(!0),c(null);try{await e(C),y()}catch(f){c(Pl(f)),i(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),h=o.useCallback((y,C)=>{y.key==="Enter"&&!y.nativeEvent.isComposing&&p(C)},[p]),g=y=>{s(y.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:y})=>y()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||l,onClick:({closeWithAnimation:y})=>{p(y)}}],children:({closeWithAnimation:y})=>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,y),disabled:l,autoComplete:"off",spellCheck:!1}),u&&n.jsx("p",{id:m,className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const pd=["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 v=6+Math.random()*12,B=Math.round(Math.min(18,v*Math.min(1.5,1+r*.4))),w=pd[Math.floor(Math.random()*pd.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,R=Math.cos(A)*D,$=Math.sin(A)*D*1.35,K=Math.random()*720-360,M=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),I=Math.random()>.7?"50%":"3px";return{id:`${k}-${N}`,side:k,size:B,color:w,delay:E,vx:R,vy:$,angularVel:K,life:M,borderRadius:I}});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,v=Q=>{const P=[...Q].sort((q,X)=>q-X);return P[Math.floor(P.length/2)]||1},B=v(i.map(Q=>Math.abs(Q.vy))),w=v(i.map(Q=>Math.abs(Q.vx))),E=Math.sqrt(2*C*(N*.72+b))/B,D=B*E/C,A=x*.5/(w*D),R=(Q,P,q)=>Math.min(q,Math.max(P,Q)),$=R(E,.8,2.4),K=R(A,.7,2.2),M=a>0?a/V_:1,I=i.map(Q=>({...Q,life:Q.life*M,vx:Q.vx*K,vy:Q.vy*$,startTime:f+Q.delay,ended:!1})),L=_?{x:_.left-k(_.width),y:_.top+_.height+b}:{x:-k(window.innerWidth),y:window.innerHeight+b},Z=_?{x:_.left+_.width+k(_.width),y:_.top+_.height+b}:{x:window.innerWidth+k(window.innerWidth),y:window.innerHeight+b},U=Q=>{let P=!1;for(const q of I){const X=c.current[q.id];if(!X||!X)continue;if(Q<q.startTime){X.style.display="none",P=!0;continue}if(!q._inited){const z=q.side==="left"?L.x:Z.x,te=q.side==="left"?L.y:Z.y;X.style.left=`${z}px`,X.style.top=`${te}px`,X.style.transform="translate3d(0px, 0px, 0)",X.style.display="block",X.style.zIndex="100000",typeof q.color=="string"&&q.color.startsWith("var(")&&(X.style.background=q_(X,q.color)??"#FF0060"),q._inited=!0}const V=(Q-q.startTime)/1e3;if(V<0)continue;const T=q.life/1e3;if(V>=T){X.style.opacity="0",X.style.display="none",q.ended=!0;continue}P=!0;const j=q.side==="left"?L.x:Z.x,O=q.side==="left"?L.y:Z.y,H=j+q.vx*V,oe=O+q.vy*V+.5*C*V*V,ne=(q.angularVel||0)*V,le=H-j,ee=oe-O;X.style.transform=`translate3d(${le}px, ${ee}px, 0) rotate(${ne}deg)`,X.style.opacity=`${Math.max(0,1-V/T)}`}P?d.current=requestAnimationFrame(U):m.current?.()};d.current=requestAnimationFrame(U);const F=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const Q=document.createElement("div");Q.className="party-container",Q.style.position="fixed",Q.style.inset="0",Q.style.pointerEvents="none",Q.style.overflow="visible",Q.style.zIndex="2147483647";for(const P of i){const q=document.createElement("span");q.className=`confetti confetti--${P.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=`${P.size}px`,q.style.height=`${Math.max(4,P.size*.6)}px`,q.style.background=P.color,q.style.borderRadius=P.borderRadius,q.style.transform="translate3d(0,0,0)",q.style.opacity="0",Q.appendChild(q),c.current[P.id]=q}(document.body||h.current).appendChild(Q),p.current=Q}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(F),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,l,i]),!e)return null;const y=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(y,h.current||document.body):y}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 md=o.createContext({words:[],loading:!1});function Y_(){return o.useContext(md)}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(md.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:we("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),y=o.useRef(null),[C,f]=o.useState(null),[_,b]=o.useState(!1);o.useEffect(()=>{const M=p.current;if(!M)return;const I=()=>b(M.scrollWidth>M.clientWidth+1);if(I(),typeof ResizeObserver>"u")return;const L=new ResizeObserver(I);return L.observe(M),()=>L.disconnect()},[C]);const k=e.map(M=>`${M.id}\0${M.section??""}\0${M.group??""}`).join(""),x=C&&C.shape===k?C.pages:null,[N,v]=o.useState(0);o.useEffect(()=>{const M=y.current;if(!M||typeof ResizeObserver>"u")return;const I=new ResizeObserver(()=>v(M.offsetHeight));return I.observe(M),()=>I.disconnect()},[]);const[B,w]=o.useState(0);o.useEffect(()=>{const M=h.current;if(!M||typeof ResizeObserver>"u")return;let I=null;const L=typeof requestAnimationFrame=="function"?F=>requestAnimationFrame(F):F=>setTimeout(F,16),Z=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:F=>clearTimeout(F),U=new ResizeObserver(()=>{I==null&&(I=L(()=>{I=null,w(F=>F+1)}))});return Array.from(M.children).forEach(F=>U.observe(F)),()=>{U.disconnect(),I!=null&&Z(I)}},[k]),o.useLayoutEffect(()=>{const M=h.current,I=y.current;if(!M||!I)return;const L=T=>T.getBoundingClientRect().height||T.offsetHeight,Z=new Map;g.current?.querySelectorAll("[data-chrome-section]").forEach(T=>{Z.set(T.dataset.chromeSection??"",L(T))});const U=T=>L(I)-(Z.get(T??"")??0),F=Array.from(M.children).map(T=>L(T)),Q=[];e.forEach((T,j)=>{const O=Q[Q.length-1],H=O?e[O[0]]:void 0;H&&T.group!=null&&H.group===T.group&&H.section===T.section?O.push(j):Q.push([j])});const P=[];let q=[],X=0;const V=()=>{q.length&&P.push(q),q=[],X=0};Q.forEach(T=>{const j=T.reduce((H,oe)=>H+F[oe],0),O=U(e[T[0]].section);q.length&&e[q[0]].section!==e[T[0]].section&&V(),j>O?T.forEach(H=>{q.length&&X+F[H]>O+.01&&V(),q.push(H),X+=F[H]}):(q.length&&X+j>O+.01&&V(),T.forEach(H=>q.push(H)),X+=j)}),V(),f(T=>T&&T.shape===k&&JSON.stringify(T.pages)===JSON.stringify(P)?T:{shape:k,pages:P})},[k,N,l,i,u,B]);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."]}),R=(M,I,L)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:L!=null&&t?.[L]||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(M,I)})]})}),$=Array.from(new Set(e.map(M=>M.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:we("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:y,className:"report-doc__ruler"}),n.jsx("div",{ref:g,children:$.map(M=>{const I=R(1,1,M||void 0);return n.jsxs("div",{"data-chrome-section":M,children:[I.header,I.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,I)=>{const{header:L,footer:Z}=R(I+1,x.length,e[M[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[L,M.map(U=>n.jsx("div",{children:e[U].content},e[U].id)),Z]},I)})})]})}function ew({title:e,fields:t,columns:a=4,className:r,style:s}){return n.jsxs("div",{className:we("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 $r=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 Rr(){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"&&($r??($r=new ResizeObserver(()=>Rr())),$r.observe(e)),Rr(),()=>{const t=(aa.get(e)??1)-1;if(t>0){aa.set(e,t),Rr();return}aa.delete(e),$r?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),Rr()})}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)&&ur(p)}},[]),n.jsxs("div",{ref:d,className:we("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",y=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:we("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}),y&&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:y,className:C}){const{t:f}=xe.useTranslation(),_=o.useId(),b=t?`h${t}`:"span",k=s!=null,x=we("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(hn,{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:y}))]})}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 hd(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,cellCapacity:g,items:y,onSaveComplete:C,onLoad:f,onRemoveItem:_,onReset:b,resetLabel:k,saveButtonLabel:x,secondarySaveButtonLabel:N,onReorder:v,showCellCount:B,onAddItem:w,className:E,renderSavePopup:D,renderWordSearch:A,hideControls:R,saveOnly:$,tableName:K,nameValue:M,onNameChange:I,descriptionValue:L,onDescriptionChange:Z,namePlaceholder:U,descriptionPlaceholder:F,existingNames:Q,editingName:P,onCancel:q,initialItemsPerPage:X,renderCellAction:V,actionsLeftExtra:T}){const{t:j}=xe.useTranslation(),O=k??j("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),H=y===void 0,oe=!!I,[ne,le]=o.useState([]),ee=(M??"").trim(),z=ee||(U??"").trim(),te=(L??"").trim()||(F??"").trim(),W=(Q??[]).map(ye=>ye.trim().toLowerCase()),G=[P?.trim().toLowerCase(),...ne].filter(ye=>!!ye),pe=[...W];for(const ye of G){const je=pe.indexOf(ye);je!==-1&&pe.splice(je,1)}const Ee=ee!==""&&pe.includes(ee.toLowerCase()),[ve,me]=o.useState(Array(4).fill(null)),[ce,ge]=o.useState(4),[he,de]=o.useState(null),Le=ve.slice(0,ce),ze=!!d?.show,[Me,Ve]=o.useState(!0),[We,dt]=o.useState(!0),lt=d&&{...d,top:Me,bottom:We},[tt,yt]=o.useState("landscape"),[_e,Ge]=o.useState(["image","word","standardPron"]),[Be,qe]=o.useState("show"),[Ke,pt]=o.useState(!0),[xt,Dt]=o.useState(!0),St=o.useRef(null),it=o.useRef([]),[at,At]=o.useState(X==="all"?Number.POSITIVE_INFINITY:X??8),[_t,Mt]=o.useState("right"),[Ne,$e]=o.useState(!1),[Se,He]=o.useState(!1),{toastMessage:rt,toastType:vt,showWarning:et,clearToast:Nt}=Wi("warning"),Ye=o.useCallback(()=>de(null),[de]);w&&!H&&!B&&!g&&Tt("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 cellCapacity \uB098 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.'),p&&H&&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[bt,kt]=o.useState(()=>Math.max(y?.length??1,1)),gt=Math.max(g??0,y?.length??0,1),ft=H?ce:B?Math.max(bt,y?.length??1,1):gt,{width:ut,height:De}=Jn[tt],nt=!H&&!B,re=Math.min(at,Math.max(gt,1)),Ce=nt?re:ft,Fe=nt?Math.max(1,Math.ceil(gt/Math.max(1,Ce))):0,Qe=nt?Array.from({length:Fe},(ye,je)=>(y??[]).slice(je*Ce,(je+1)*Ce)):null,ct=!!Qe&&Qe.length>1,ot=H?Le.some(ye=>ye!==null&&ye.length>1):(y??[]).some(ye=>(ye.words??[]).length>1),It=K?.trim()||`${ql($a())} ${ot?j("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):j("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Yt=o.useCallback(()=>ct?it.current.filter(ye=>ye!==null):St.current?[St.current]:[],[ct]),{print:kn,openNewWindow:Vt,downloadHtml:Zt}=us({getElements:Yt,paperW:ut,paperH:De,fileName:It,onPopupBlocked:()=>{et(j("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),Rt=ye=>{ge(ye),me(je=>je.length>=ye?je:[...je,...Array(ye-je.length).fill(null)]),de(null)},ht=ye=>{me(je=>{const se=[...je];return se[ye]=null,se}),he===ye&&de(null)},Ct=ye=>{if(he===null)return;const je=he;me(S=>{const Y=[...S];return Y[je]=ye.length>0?ye:null,Y});const se=Le.findIndex((S,Y)=>Y>je&&S===null);de(se!==-1?se:null)},wt=H?Le.some(ye=>ye?.some(je=>!!je.colloquialPronunciation)):(y??[]).some(ye=>(ye.words??[]).some(je=>!!je.colloquialLabel)),zt=o.useMemo(()=>la()?H?ve.slice(0,ce).flatMap(ye=>(ye??[]).map(je=>[je.word,je.homonum])):(ye=>ye.flatMap(je=>(je.words??[]).map(se=>[se.label,se.homonum])))([...p?[p]:[],...y??[]]):[],[H,ve,ce,y,p]),[Cn,An]=o.useState(!1);o.useEffect(()=>{if(zt.length===0)return;let ye=!1;return Promise.all(zt.map(([je,se])=>Dl(je,se))).then(je=>{ye||An(je.some(Boolean))},()=>{}),()=>{ye=!0}},[zt]);const Rn=zt.length>0&&Cn,pn=o.useMemo(()=>[...H||B?[{label:j("wordTable.filter.columns","\uCE78 \uC218"),items:E4.map(ye=>({value:`${ye}\uCE78`,displayLabel:j("wordTable.filter.column",{count:ye})})),display:"segmented"}]:[],...nt&&(y?.length??0)>0?[fc(j,{hasPairs:ot,itemCount:gt})]:[],...ct?[D4(j)]:[]],[j,H,B,nt,y?.length,ot,gt,ct]),Gt={...H||B?{[j("wordTable.filter.columns","\uCE78 \uC218")]:`${ft}\uCE78`}:{},...nt&&(y?.length??0)>0?{[j(ot?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${re}\uAC1C`}:{},...ct?{[j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:_t}:{}},fn=(ye,je)=>{je===j("wordTable.filter.columns","\uCE78 \uC218")?H?Rt(parseInt(ye)):kt(parseInt(ye)):je===j(ot?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?At(bc(parseInt(ye),gt)):je===j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Mt(gc(ye))},Ft=H?cw(Le.filter(ye=>ye!==null&&ye.length>0).map(ye=>({id:js(ye),words:ye.map(hd)}))):y??[],Xt=()=>{H&&me(ye=>ye.length>ce?ye.slice(0,ce):ye)},Wt=(ye=!1)=>{if(He(ye),oe&&C){const je=z.trim().toLowerCase();je&&le(se=>se.includes(je)?se:[...se,je]),C(z,Ft,te||void 0,ye),Xt();return}if($&&C){C("",Ft,void 0,ye),Xt();return}if(C){$e(!0);return}Zt()},[vn,ie]=o.useState(!1),[Ae,Re]=o.useState(""),Ue=Ae.trim(),Ie=Ue!==""&&W.includes(Ue.toLowerCase()),J=()=>{Re(z?j("wordTable.save.copyName",{name:z,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),ie(!0)},ue=()=>{!Ue||Ie||!C||(C(Ue,Ft,te||void 0,!0),Xt(),ie(!1))},ke=Ft.length===0,Oe=ke||oe&&(z===""||Ee),Ze=()=>{if(ke){et(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(oe&&z===""){et(j("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}oe&&Ee&&et(j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},Je=n.jsx(ya,{items:Ft,orientation:tt,contentTypes:_e,baseItem:p,baseContentTypes:h,cutLine:Be,showOutline:Ke,showDivLine:xt,count:ft});return n.jsxs(n.Fragment,{children:[n.jsxs(ga,{type:"page",icon:t,title:e,disc:a,className:we("word-table-block",E),children:[vn&&n.jsx(Wn,{size:"small",title:N??j("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>ie(!1),footer:({closeWithAnimation:ye})=>n.jsxs(n.Fragment,{children:[n.jsx(be,{htmlType:"button",size:48,type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:ye}),n.jsx(be,{htmlType:"button",size:48,type:"bar",variant:"main",label:j("common.save","\uC800\uC7A5"),disabled:!Ue||Ie,onClick:ue})]}),children:n.jsx(Xn,{label:j("wordTable.save.nameLabel","\uC774\uB984"),value:Ae,onChange:Re,placeholder:j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:ue,error:Ie?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ne&&C&&D?.({defaultName:typeof e=="string"?e:j("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:Je,previewW:ut,previewH:De,items:Ft,existingNames:uw().map(ye=>ye.name),saveAsNew:Se,onSave:(ye,je)=>{C(ye,Ft,je,Se),Xt(),$e(!1)},onCancel:()=>$e(!1)}),(H||w)&&he!==null&&A?.({cellIndex:he,onConfirm:H?Ct:ye=>{if(w){const je=ye[0];if(je){const se=new Set((y??[]).map(Y=>Y.id));let S=js([je]);for(let Y=2;se.has(S);Y++)S=`${js([je])}~${Y}`;w({id:S,words:[hd(je)]})}}de(null)},onClose:Ye}),!R&&n.jsx(os,{title:r,collapsible:s,defaultCollapsed:l,collapsed:i,onCollapsedChange:u,headerSummary:c,hasImage:Rn,hasColloquial:wt,contentTypes:_e,orientation:tt,showOutline:Ke,cutLine:Be,showDivLine:xt,setters:{setContentTypes:Ge,setOrientation:yt,setShowOutline:pt,setCutLine:qe,setShowDivLine:Dt,setShowTopInfo:Ve,setShowBottomInfo:dt},showCutLine:(nt?Ce:ft)>1,showDivLine2:ot,middleSections:pn,extraSelected:Gt,onExtraSelect:fn,showPaperBands:ze,showTopInfo:Me,showBottomInfo:We}),ct&&Qe?n.jsx("div",{className:"word-table-block__pages",children:Qe.map((ye,je)=>n.jsx(ya,{orientation:tt,contentTypes:_e,cutLine:Be,showOutline:Ke,showDivLine:xt,count:Ce,items:ye,baseItem:p,baseContentTypes:h,onRemoveItem:_,onReorder:v&&((se,S)=>v(se+je*Ce,S+je*Ce)),renderCellAction:V&&((se,S)=>V(se+je*Ce,S)),showFillerAdd:!!w,onActivateCell:w?(se=>de(se+je*Ce)):void 0,addableCount:Math.max(0,Math.min(Ce,gt-je*Ce)),brand:lt,code:m,contentRef:se=>{it.current[je]=se},pageNumber:{current:je+1,total:Qe.length},pageNumberPosition:_t},je))}):n.jsx(ya,{orientation:tt,contentTypes:_e,cutLine:Be,showOutline:Ke,showDivLine:xt,count:ft,items:H?void 0:y??[],baseItem:H?void 0:p,baseContentTypes:h,editCells:H?Le:void 0,activeCell:he,onActivateCell:H||w?de:void 0,onRemoveCell:H?ht:void 0,onRemoveItem:H?void 0:_,onReorder:H?void 0:v,renderCellAction:H?void 0:V,brand:lt,code:m,showFillerAdd:!!w,contentRef:St}),!R&&!$&&T!=null&&n.jsx("div",{className:"word-table-block__table-actions",children:T}),oe&&!R&&n.jsxs(Er,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(Ln,{variant:"custom",label:j("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(Xn,{required:!0,value:M??"",onChange:I,placeholder:U?U+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:Ee?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ye=>{(ye.key==="Tab"&&!ye.shiftKey||ye.key===" ")&&!(M??"").trim()&&(U??"").trim()&&(ye.preventDefault(),I?.(U??""))}})}),n.jsx(Ln,{variant:"custom",label:j("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(Xn,{value:L??"",onChange:Z,placeholder:F?F+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ye=>{(ye.key==="Tab"&&!ye.shiftKey||ye.key===" ")&&!(L??"").trim()&&(F??"").trim()&&(ye.preventDefault(),Z?.(F??""))}})})]})]}),!R&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!$&&f&&n.jsx(be,{htmlType:"button",size:40,type:"bar",label:j("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:f}),!$&&b&&n.jsx(be,{htmlType:"button",size:40,type:"bar",label:O,onClick:b}),!$&&n.jsx(be,{htmlType:"button",size:40,type:"bar",label:j("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Vt})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[q&&n.jsx(be,{htmlType:"button",size:"56",type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:q}),!$&&n.jsx(be,{htmlType:"button",size:"56",type:"bar",label:j("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:kn}),N&&n.jsx(be,{htmlType:"button",size:"56",type:"bar",label:N,onClick:()=>oe?J():Wt(!0),disabled:ke,onDisabledClick:()=>{et(j("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:x??j("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Wt(!1),disabled:Oe,onDisabledClick:Ze})]})]}),n.jsx(fa,{message:rt,type:vt,onClose:Nt})]})}const pw=8;function Cd({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:we("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((y,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:y.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:y,selected:C,onClick:f,onMore:_,titleNode:b,className:k}){const{t:x}=xe.useTranslation(),N=b!=null,v=m!=null||p!=null||h!=null||g!=null,B=w=>{w.target===w.currentTarget&&!N&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),f?.())};return n.jsxs("div",{className:we("word-table-button",C?"word-table-button--selected":"",v?"":"word-table-button--no-footer",k),role:"button",tabIndex:0,"aria-label":s?`${t} (${s})`:t,onClick:N?void 0:f,onKeyDown:B,children:[d&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":x("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(Cd,{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:w=>{w.stopPropagation(),_(w)}})]}),(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})]})]}),v&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[m&&(y?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:w=>{w.stopPropagation(),y()},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}`})})]})]})]})}/**
|
|
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:To,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(),y=o.useRef(null);o.useEffect(()=>{if(!p)return;const _=Gn(()=>{const x=document.getElementById(g);x&&x.contains(document.activeElement)&&y.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:y,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,[]),y=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:y}),[p,h,g,u,c,d,m,l,i,y])}const xa=9,hx=e=>Math.round(Math.min(xa,Math.max(0,e))/xa*100),Cx=e=>e/100*xa,Qa=2,kc=.1,fx=e=>Math.min(Qa,Math.max(0,e)),bx=.1,gx=e=>Math.round(e*1e6)/1e6;function er(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return fx(t);const a=Math.min(xa,Math.max(0,Number(e.level)||0))/xa,r=Number(e.mainVolume);return r>0?a>0?gx(Math.min(Qa,Math.max(bx,a/r))):0:1}const Ac=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Nc(e){return Ac(e)}function ps(e){return Ac(e)*er(e)}function ms(e,t=LC()){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=er({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=>`${MC()}/${e}`,Ec=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 Ec("noise2")},get restaurant(){return Ec("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),y=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,v=250)=>{const B=l.current;if(!B)return;const w=d.current;if(w){d.current=null;try{B.pause()}catch{}B.src=w,B.load()}if(!B.src)return;h.current+=1,C();try{eo(),ar(B).then(R=>{if(l.current===B)try{s.current?.("noise",R)}catch{}})}catch{}const E=B.paused?0:rr(B);B.paused&&On(B,0),B.play().catch(()=>{});const D=performance.now(),A=()=>{const R=Math.min(1,(performance.now()-D)/v);try{On(B,E+(N-E)*R)}catch{}R<1?p.current=requestAnimationFrame(A):p.current=null};p.current=requestAnimationFrame(A)},[C]),_=o.useCallback((N=250,v)=>{const B=l.current;if(!B||B.paused){v?.();return}const w=++h.current;C();const E=performance.now(),D=rr(B),A=()=>{const R=Math.min(1,(performance.now()-E)/N);try{On(B,D*(1-R))}catch{}if(R<1)p.current=requestAnimationFrame(A);else{p.current=null,g.current!==null&&(clearTimeout(g.current),g.current=null);try{B.pause()}catch{}v?.()}};p.current=requestAnimationFrame(A),g.current=setTimeout(()=>{if(g.current=null,h.current===w){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{B.paused||(On(B,0),B.pause(),v?.())}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 v=setInterval(()=>{const B=l.current;if(!B||B.paused){N=0;return}const w=t.current;if(w&&!w.paused&&!w.ended||y()||a.current==="playing"){N=0;return}N+=1,N>=2&&(N=0,_())},400);return()=>clearInterval(v)},[_,k,t,a,y]),o.useEffect(()=>{const N=()=>{const v=l.current;if(document.hidden){if(v&&!v.paused){C();try{v.pause()}catch{}}return}if(!v||!v.paused)return;const B=t.current,w=!!B&&!B.paused&&!B.ended||y()||a.current==="playing",E=m.current;w&&E?.enabled&&E.volume>0&&f(E.volume)};return document.addEventListener("visibilitychange",N),()=>document.removeEventListener("visibilitychange",N)},[C,f,t,a,y]),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,v=l.current;if(!v)return;const B=N?ms(N):0;if(!N||!N.enabled||B===0){_();return}if(c.current!==N.type){const w=yx(N.type);w&&(c.current=N.type,u(w),d.current=w,_(150,()=>{if(d.current!==w)return;d.current=null,v.src=w,v.load();const E=t.current;if(E&&!E.paused||y()){x.current?.();const D=()=>{v.removeEventListener("canplay",D),x.current===A&&(x.current=null);const R=t.current,$=m.current;(R&&!R.paused&&!R.ended||y())&&$?.enabled&&$.volume>0&&f($.volume)},A=()=>v.removeEventListener("canplay",D);x.current=A,v.addEventListener("canplay",D)}}))}else{const w=t.current,E=!!w&&!w.paused&&!w.ended||y()||a.current==="playing";if(E&&d.current)f(B);else if(E&&v.paused&&v.src)f(B);else if(!v.paused)if(!E)_();else{C();const D=rr(v),A=performance.now(),R=()=>{const $=Math.min(1,(performance.now()-A)/150);try{On(v,D+(B-D)*$)}catch{}$<1?p.current=requestAnimationFrame(R):p.current=null};p.current=requestAnimationFrame(R)}}},[e?.settings,e?.settings.enabled,b,e?.settings.type,C,f,_,t,a,m,y]),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),y=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,v=1)=>{try{const B=(N||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(N||"").length);return Math.max(700,Math.round(B*300/Math.max(.25,v)))}catch{return 1200}},k=o.useCallback(N=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!1)}catch{}return}const v=window.speechSynthesis,B=++f.current;try{try{v.cancel()}catch{}const w=N??e,E=Array.isArray(w)?w.filter(M=>!!M):[w||""];E.length===0&&E.push("");const D=Math.max(.3,Math.min(3,t));y.current=E.reduce((M,P)=>M+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 R=()=>{try{const M=g.current||performance.now(),P=performance.now()-M,L=y.current||1200,Z=Math.min(1,P/L);try{r.current&&(r.current.style.left=`${Z*100}%`),s.current&&s.current.style.setProperty("--progress",String(Z))}catch{}Z<1&&(C.current=requestAnimationFrame(R))}catch{}},$=()=>{if(B===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=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(B===f.current){if(M<E.length-1){try{K(M+1)}catch{$()}return}$()}},P.onerror=()=>{$()},P.onstart=()=>{if(!(M>0))try{C.current&&(cancelAnimationFrame(C.current),C.current=null),C.current=requestAnimationFrame(R)}catch{}},_.current=!0,v.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),y=Math.min(u.length,g);for(;c<y&&Math.abs(u[c])<=_x;)c++;c>=y&&(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,y)=>{const C=c+y*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 Dc(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),Sc=e=>Math.max(0,typeof e=="number"&&Number.isFinite(e)?e:0);function jc({durationsSec:e,leadInMs:t=0,tailMs:a=0}){const r=Sc(t),s=Sc(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 Tc(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=Tc(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=Tc(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=jc({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(jc({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?Mc(a)!==Mc(t):!0}function Mc(e){try{return new URL(e,typeof location>"u"?"http://localhost/":location.href).href}catch{return e}}const Lc=4,Fx=kr(Lc/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:y=0}=e,C=o.useRef(null),f=o.useRef(null),[_,b]=o.useState(null),[k,x]=o.useState(!1),[N,v]=o.useState(null),[B,w]=o.useState(2),[E,D]=o.useState(0),[A,R]=o.useState(null),[$,K]=o.useState(!1),[M,P]=o.useState(!1),L=3,Z=3,U=1,F=300,Q=o.useRef(0),I=o.useCallback(()=>{const ve=C.current,me=f&&f.current?f.current:ve?ve.closest(".audio-player__wave"):null,ce=me?me.getBoundingClientRect():ve?ve.getBoundingClientRect():null,ge=ce?ce.width:0,he=ce?Math.max(100,ce.width):320,pe=ce?ce.height:0,Le=Math.max(U,Math.min(F,Math.floor((he+Z)/(L+Z)))),ze=Le*L,Me=Math.max(0,Le-1),Ve=Math.max(0,Me>0?(he-ze)/Me:Z);return{bars:Le,gap:Ve,height:pe,width:ge}},[]),q=o.useRef(void 0),J=o.useRef(null),V=o.useCallback(async(ve,me,{quiet:ce=!1}={})=>{const ge=++Q.current,he=()=>Q.current===ge;try{if(ce||x(!1),q.current=ve,!ve){he()&&b(null);return}let pe=me;if(!pe)try{for(let Me=0;Me<4&&!(C.current||f.current);Me++)await new Promise(Ve=>requestAnimationFrame(Ve));await new Promise(Me=>requestAnimationFrame(Me));const ze=I();ze.height>0&&D(ze.height),pe=ze.bars,w(ze.gap)}catch{pe=120}J.current=pe;const Le=await Dc(ve,pe);if(!he())return;if(!Le){b(null),x(!1);return}b(Le),v(pe),x(!0)}catch{if(!he())return;b(null),x(!1)}},[x,b,D,w,v,I]);o.useEffect(()=>{const ve=f.current;if(!ve||typeof ResizeObserver>"u")return;let me=null;const ce=new ResizeObserver(()=>{me!==null&&cancelAnimationFrame(me),me=requestAnimationFrame(()=>{me=null;try{const ge=I();if(ge.width<=0||(ge.height>0&&D(ge.height),J.current===null||ge.bars===J.current))return;const he=q.current;w(ge.gap),he?V(he,ge.bars,{quiet:!0}).catch(()=>{}):J.current=ge.bars}catch{}})});return ce.observe(ve),()=>{ce.disconnect(),me!==null&&cancelAnimationFrame(me)}},[I,V]),o.useEffect(()=>{const ve=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;V(typeof ve=="string"?ve:void 0).catch(()=>{}),P(!1)},[t,a,V]),o.useEffect(()=>{let ve=!1;if(K(!1),R(null),!l||!N)return;const me=c>0?c*(u||1):void 0;return Dc(l,N,me,!0).then(ce=>{ve||(R(ce),ce||K(!0))}).catch(()=>{ve||(R(null),K(!0))}),()=>{ve=!0}},[l,N,c,u]);const T=Math.max(0,Math.min(1,d)),j=o.useMemo(()=>_&&_.length&&Math.max(..._)||1,[_]),O=N||40,H=o.useMemo(()=>Tx({bars:O,trackDurationSec:y,leadInMs:h,tailMs:g}),[O,y,h,g]),oe=o.useMemo(()=>Array.from({length:O}).map((ve,me)=>{const ce=me>=H.lead&&me<H.lead+H.sound,ge=H.sound>0&&ce?Math.min(O-1,Math.round((me-H.lead)/H.sound*O)):-1,he=ce?_&&_[ge]!=null?_[ge]:null:_?0:null,pe=he==null?null:Math.min(1,he/j*T),Le=pe!=null&&E>0&&Br(pe)<=Lc,ze=pe==null?.15:Le?0:kr(pe),Me=Le,Ve=O>1?me/(O-1):0;return n.jsx("div",{className:Me?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ze,"--i":me,"--mix":Ve}},me)}),[O,_,j,T,E,H]),se={"--progress":String(Math.max(0,Math.min(1,r)))},re=o.useMemo(()=>A&&A.length&&Math.max(...A.map(ve=>Number.isFinite(ve)?Math.abs(ve):0))||1,[A]),ee=T*Math.max(0,i),z=!l||!A||!A.length?1:Math.max(1,ee),te={"--bar-gap":`${B}px`,"--wave-h":`${Br(z)}px`,"--wave-h1":`${fs}px`},W=k&&(l?!!A||$:!0);o.useEffect(()=>{W&&P(!0)},[W]);const G=M?k:W;o.useEffect(()=>{m?.(G)},[G,m]);const de=N||40,Ee=o.useMemo(()=>Array.from({length:de}).map((ve,me)=>{const ce=A&&A[me]!=null?A[me]:null,ge=ce==null?0:Math.abs(ce)/re*ee,he=Math.max(Fx,kr(ge)),pe=de>1?me/(de-1):0;return n.jsx("div",{className:"audio-player__bar",style:{"--val":he,"--i":me,"--mix":pe}},me)}),[de,A,re,ee,E]);return n.jsxs("div",{className:"audio-player__wave",ref:f,style:te,children:[l&&n.jsx("div",{className:`audio-player__wave-noise ${W?"is-ready":""}`,"aria-hidden":"true",children:Ee}),p&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${G?"is-ready":""}`,ref:C,children:oe}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${G?"is-ready":""}`,ref:s,style:se,children:oe})]})]})}const $c={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 Rc(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,Pc=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 y=0;const C=()=>{if(Pn){const f=typeof performance<"u"&&performance.now?performance.now():Date.now();if(y>0&&f-y>Ux){const _=m.current===null||f-m.current>Gx;if(m.current=f,_&&d.current<Pc){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-y)}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>=Pc?`(${b}\uBC88\uC9F8 \u2014 \uB354\uB294 \uC548 \uC54C\uB9BD\uB2C8\uB2E4)`:`(${b}\uBC88\uC9F8)`)}}y=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,v=N&&(l?.positionRef.current?.phase??"sound")!=="sound";if(k===null&&!v)try{x&&x.style.visibility!=="hidden"&&(x.style.visibility="hidden")}catch{}else{const B=b?_.duration:k||0;Pn&&v&&!(B>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 w=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:B,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=`${w*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(w))}catch{}}}catch{}c.current=requestAnimationFrame(C)};c.current=requestAnimationFrame(C)},[e,t,a,r,s,l,i,u]),g=o.useCallback(y=>{p();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${y*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(y))}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(),y=o.useRef(g?.registerAnalyser);o.useEffect(()=>{y.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:v,rect:B,show:w,hide:E}=Vx();o.useEffect(()=>()=>{y.current?.("main",null),y.current?.("noise",null)},[]);const[D,A]=o.useState(!1),[R,$]=o.useState("idle"),[K,M]=o.useState("stopped"),P=o.useRef("stopped");o.useEffect(()=>{P.current=K},[K]);const[L,Z]=o.useState(0),[U,F]=o.useState("active"),Q=o.useRef(!1);o.useEffect(()=>{if(U!=="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{}},[U]);const[I,q]=o.useState(null),[J,V]=o.useState(null),[T,j]=o.useState(0),[O,H]=o.useState(!1),[oe,se]=o.useState(0),re=g?.playbackRate??1,ee=g?.mainVolume??1,z=g?ps(g.settings):0,te=g?Nc(g.settings):ee,[W,G]=o.useState("idle"),[de,Ee]=o.useState(""),[ve]=o.useState("top"),me=o.useRef(null),ce=o.useRef(0),ge=o.useRef(null),he=o.useRef(!0),pe=mx({mountedRef:he}),Le=o.useRef(null),ze=o.useRef(d),Me=o.useRef(m);o.useEffect(()=>{ze.current=Math.max(0,d||0)},[d]),o.useEffect(()=>{Me.current=Math.max(0,m||0)},[m]);const{start:Ve,stop:We,settleTo:dt}=Kx({audioRef:C,fillRef:f,waveProgressRef:ge,sourcesRef:me,currentIndexRef:ce,sequencer:pe,leadInMs:d,tailMs:m}),{onReadyChange:lt,waitForReady:tt,markNotReady:yt}=Wx({showSoundWaveForm:u,showNoiseWaveForm:c}),_e=o.useRef(null),Ge=o.useRef(s),Be=o.useRef(r),qe=o.useRef(null),Ke=o.useRef(!1),[pt,xt]=o.useState(!1),Dt=o.useCallback(X=>{Ke.current=X,xt(X)},[]),St=o.useRef(null),{activeNoiseUrl:it,noiseSettingsRef:at,fadeInNoise:At,fadeOutNoise:_t}=vx({noisePlayer:g,audioRef:C,playbackStateRef:P,sequencer:pe}),{startTTS:Lt,stopTTS:Ne}=xx({ttsText:l,playbackRate:re,mainVolume:te,fillRef:f,waveProgressRef:ge,setProgress:Z,setPlaybackState:M,setStateLocal:F,fadeInNoise:At,fadeOutNoise:_t,noiseSettingsRef:at,onDoneRef:Be,handleEndRef:St});o.useEffect(()=>{Nt.current=Ne});const $e=X=>{if(typeof window>"u"||!window.speechSynthesis){try{Ee(p("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Lt(X);return}gt("tts"),Lt(X)},Se=Array.isArray(t)?t.filter(Boolean):t?[t]:[],He=(!Se||Se.length===0)&&!!l,rt=Array.isArray(I)&&I.length>0?I:Array.isArray(J)&&J.length>0?J:null,vt=Math.max(Array.isArray(rt)?rt.length:0,Se.length);o.useEffect(()=>(he.current=!0,()=>{he.current=!1}),[]);const et=()=>{pe.abort()},Nt=o.useRef(null),Ye=o.useRef(null),bt=o.useRef(null),kt=o.useRef(null);kt.current||(kt.current=()=>{bt.current=null;const X=C.current;if(Ye.current==="audio"&&X&&(!X.paused||pe.isRunning())){et();try{X.pause()}catch{}he.current&&(M("paused"),We(),_t())}else if(Ye.current==="tts")try{Nt.current?.()}catch{}});const gt=X=>{Ye.current=X,bt.current=qa(kt.current)},ft=()=>{bt.current?.(),bt.current=null};o.useEffect(()=>()=>{kt.current&&Cr(kt.current)},[]);const ut=o.useRef(re);o.useEffect(()=>{ut.current=re||1},[re]);const De=o.useCallback(X=>{const ue=ut.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{}De(X);return}X.src=ue,De(X),X.load(),De(X)},[De]),ae=o.useCallback(()=>{qe.current&&(clearTimeout(qe.current),qe.current=null),G("idle")},[]),Ce=o.useCallback(async(X,ue=3,ke=50,Oe=0)=>{ae();const Ze=pe.generation(),Je=!!X&&X.currentTime>0&&!X.ended,ye=Math.max(0,ze.current-Math.max(0,Oe));if(ye>0&&!Je){gt("audio"),Ve(),M("playing");const je=at.current;if(je?.enabled&&(je.volume??0)>0)try{At(je.volume)}catch{}if(!await pe.waitPad(ye,"lead",Oe)||!he.current||!pe.isCurrent(Ze))return!1}pe.enterSound();for(let je=0;je<ue;je++){if(!he.current||!pe.isCurrent(Ze))return!1;try{return gt("audio"),await X.play(),!0}catch(le){if((le instanceof Error||typeof le=="object"&&le&&"name"in le?le.name:void 0)==="AbortError"){if(!pe.isCurrent(Ze))return!1;await new Promise(S=>setTimeout(S,ke));continue}try{Ee(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{Ee(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[p,Ve,pe,At,at,ae]),Fe=o.useCallback(X=>{const ue=pe.generation(),ke=Math.max(0,Me.current-Math.max(0,X));Ve();const Oe=at.current;if(Oe?.enabled&&(Oe.volume??0)>0)try{At(Oe.volume)}catch{}const Ze=()=>{try{Le.current?.()}catch{}};if(ke<=0){pe.leave(),Ze();return}pe.waitPad(ke,"tail",X).then(Je=>{pe.leave(),Je&&pe.isCurrent(ue)&&Ze()}).catch(()=>{})},[pe,Ve,At,at]),Qe=o.useCallback(()=>{const X=C.current;if(!X)return;const ue=()=>{M("playing"),F("playMode"),H(!0),Ve();try{eo(),ar(X).then(Je=>{if(he.current)try{y.current?.("main",Je)}catch{}})}catch{}const Ze=at.current;Ze?.enabled&&(Ze?.volume??0)>0&&At(Ze.volume)},ke=()=>{Lx({ended:!!X?.ended,completedByEnd:Ke.current})||(M("paused"),We(),_t())},Oe=()=>{const Ze=()=>{try{const Je=me.current,ye=Mx(Je,ce.current);if(ye!==null){ce.current=ye,j(ye),H(!0);const je=Je?.[ye]&&Je[ye].src;if(je&&X){nt(X,je),Ce(X).catch(()=>{});return}}}catch{}M("stopped"),Z(1);try{if(X)try{X.currentTime=0}catch{}}catch{}We(),H(!1),_t();try{!Ge.current&&St.current&&St.current()}catch{}};if(Le.current=Ze,Me.current>0){Ve(),pe.waitPad(Me.current,"tail").then(Je=>{pe.leave(),Je&&Ze()}).catch(()=>{});return}Ze()};return X.addEventListener("play",ue),X.addEventListener("pause",ke),X.addEventListener("ended",Oe),()=>{try{X.removeEventListener("play",ue),X.removeEventListener("pause",ke),X.removeEventListener("ended",Oe),We()}catch{}}},[At,_t,Ce,at,Ve,We,pe]);o.useEffect(()=>Qe(),[Qe]),o.useEffect(()=>{Ge.current=s},[s]),o.useEffect(()=>{Be.current=r},[r]),o.useEffect(()=>{if(s||U!=="active")return;const X=N.current;if(!X)return;let ue=null;const ke=requestAnimationFrame(()=>{try{const Oe=X.getTotalLength();if(!Oe)return;const Ze=Oe*.2;X.style.strokeDasharray=`${Oe-Ze} ${Ze}`;const Je="triFlow_"+Math.random().toString(36).slice(2);ue=document.createElement("style"),ue.textContent=`@keyframes ${Je}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Oe}}}`,document.head.appendChild(ue),X.style.animation=`${Je} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(ke),ue?.remove()}},[U,s]),o.useEffect(()=>{me.current=I},[I]),o.useEffect(()=>{ce.current=T},[T]),o.useEffect(()=>{const X=_.current,ue=k.current;if(!X||!ue)return;let ke=null;const Oe=32,Ze=60,Je=()=>{try{const je=Array.from(X.querySelectorAll(":scope > .button"));let le=0;je.forEach(Pe=>{if(Pe===ue)return;const Xe=Pe.getBoundingClientRect();le+=Xe.width});const S=X.getBoundingClientRect().width,Y=Math.max(0,Math.floor(S-le-8)),fe=vt;if(!fe||Y<=0){Array.from(ue.children).forEach(Pe=>{try{Pe.style.width=""}catch{}});return}let Te=Math.floor(Y/fe);Te>Ze&&(Te=Ze),Te<Oe&&(Te=Math.max(Oe,Math.floor(Y/fe))),Array.from(ue.querySelectorAll(".button")).forEach(Pe=>{try{Pe.style.width=`${Te}px`}catch{}})}catch{}},ye=requestAnimationFrame(Je);try{ke=new ResizeObserver(()=>{requestAnimationFrame(Je)}),ke.observe(X),ke.observe(ue),window.addEventListener("resize",Je)}catch{}return()=>{try{cancelAnimationFrame(ye)}catch{}try{ke&&(ke.disconnect(),ke=null)}catch{}try{window.removeEventListener("resize",Je)}catch{}}},[I,J,vt]),o.useEffect(()=>()=>{try{_e.current&&(clearTimeout(_e.current),_e.current=null),qe.current&&(clearTimeout(qe.current),qe.current=null)}catch{}},[]);const ct=(X,ue)=>{q(X),se(ue),yt(),V($x(X)),me.current=X},ot=()=>{F("playMode"),j(0),H(!0)},It=async(X,ue)=>{Dt(!1),x.current=!1,nt(X,ue),await Rc(X),await tt()!==!1&&(A(!1),ot(),await Ce(X))},Yt=async(X,ue=!1)=>{const ke=C.current;A(!0),$("measuring_duration");try{const Oe=await bs(X,{timeoutMs:1e4,rejectOnError:!0});ct([{src:X,objectUrl:null,duration:Oe}],Oe),$("ready"),ue&&ke&&await It(ke,X)}finally{x.current=!1,A(!1)}},kn=async(X,ue=!1)=>{const ke=C.current;A(!0),$("measuring_duration");try{const Oe=await Promise.all(X.map(Je=>bs(Je,{timeoutMs:1e4})));if(!he.current)return;const Ze=X.map((Je,ye)=>({src:Je,objectUrl:null,duration:Oe[ye]||0}));ct(Ze,Rx(Ze)),$("ready"),ue&&ke&&Ze.length>0&&await It(ke,Ze[0].src)}finally{x.current=!1,A(!1)}},Vt=async(X=!1,ue=!0)=>{const ke=C.current,Oe=t?Array.isArray(t)?t:[t]:[];if(!Oe||Oe.length===0||!Oe.some(Boolean))return!1;if(x.current)return null;x.current=!0,ue&&A(!0),$("resolving");try{const Ze=Px(t,a,xl),Je=[];let ye=0;for(const je of Ze){let le=je.src??null,S=null;if(!le&&je.resolvedPath){try{$("getting_signed_url"),le=await _l(je.resolvedPath)}catch{le=null}if(!he.current)return!1;if(!le)try{$("downloading");const fe=await wl(je.resolvedPath);if(!he.current)return!1;if(fe){const Te=fe instanceof Blob?fe:new Blob([fe]);S=b.track(URL.createObjectURL(Te)),le=S}}catch{$("error");try{Ee(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),F("active")}catch{}}}if(!le)continue;let Y=0;try{$("measuring_duration"),Y=await bs(le,{timeoutMs:3e3})}catch{Y=0}if(!he.current){if(S)try{URL.revokeObjectURL(S)}catch{}for(const fe of Je)if(fe.objectUrl)try{URL.revokeObjectURL(fe.objectUrl)}catch{}return!1}ye+=Y||0,Je.push({...je,src:le,objectUrl:S,duration:Y})}if(ct(Je,ye),Je.length>0&&X&&ke){const je=Je[0];Dt(!1);try{b.keepOnly(Je.map(le=>le.objectUrl))}catch{}if($("ready"),x.current=!1,je.src&&ke)try{if(nt(ke,je.src),await Rc(ke),await tt()===!1)return!1;ue&&A(!1),ot(),ke&&await Ce(ke)}catch{ue&&A(!1)}else ue&&A(!1);F("playMode"),j(0),H(!0)}return Je.length>0}finally{x.current=!1,ue&&A(!1),$(Ze=>Ze==="ready"?"ready":"idle")}},Zt=async X=>{const ue=pe.isRunning();if(X.paused&&!ue){if(Ke.current){await ht();return}const ke=pe.resume();if(ke){if(M("playing"),ke.phase==="tail"){Fe(ke.elapsed);return}await Ce(X,3,50,ke.elapsed);return}await Ce(X),M("playing")}else pe.pause(),et(),X.pause(),M("paused"),ue&&(We(),_t())},Rt=async()=>{const X=C.current;if(!(!X&&!He)){if(He){const ue=window.speechSynthesis;if(U==="active"){const ke=Ea(),Oe=Array.isArray(l)?l.filter(Boolean):l?[l]:[];if(ke&&Oe.length>0){if(x.current)return;F("load"),A(!0),$("synthesizing"),x.current=!0;try{const Ze=await Promise.all(Oe.map(Je=>Promise.resolve(ke(Je))));Ze.length>1?await kn(Ze,!0):await Yt(Ze[0],!0)}catch{x.current=!1,A(!1),F("active"),$e(Oe.length>0?Oe:void 0)}return}$e(Oe.length>0?Oe:void 0);return}if(U==="playMode"){const ke=!!ue&&(ue.speaking||ue.paused)&&!(X&&(X.currentSrc||X.getAttribute("src")));if(X&&!ke){await Zt(X);return}try{if(ue&&ue.paused)try{gt("tts"),ue.resume(),M("playing")}catch{}else try{ue.pause(),M("paused")}catch{}}catch{}}return}if(U==="active"){if(s&&Array.isArray(me.current)&&me.current.length>0){const ke=me.current[0];try{if(ke.src&&X)try{nt(X,ke.src),ot(),X&&await Ce(X)}catch{}ot();return}catch{}}F("load");let ue;try{ue=await Vt(!0)}catch{ue=!1}if(ue===!1&&he.current){try{Ee(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}F("active")}return}if(U!=="load"&&(U==="playMode"||U==="active"))try{X&&await Zt(X)}catch(ue){(ue instanceof Error||typeof ue=="object"&&ue&&"name"in ue)&&ue.name}}},ht=async()=>{const X=C.current;if(X)try{const ue=me.current;if(Array.isArray(ue)&&ue.length>1){await pn(0);return}Dt(!1);try{X.currentTime=0}catch{}X&&await Ce(X),M("playing"),F("playMode")}catch{}},Ct=()=>{et(),ft(),Nt.current?.();const X=C.current;try{if(X){try{X.pause()}catch{}try{X.currentTime=0}catch{}}}catch{}_t(),M("stopped"),F("active"),Z(0),H(!1)},wt=async(X,{sameSegment:ue=!1}={})=>{et();const ke=pe.generation(),Oe=C.current,Ze=me.current?.[X]?.src;try{if(Dt(!1),j(X),H(!0),ce.current=X,!Ze||!Oe||(ue||yt(),nt(Oe,Ze),!ue&&await tt()===!1)||!pe.isCurrent(ke)||(await Ce(Oe),!pe.isCurrent(ke)))return;M("playing"),F("playMode")}catch{}},zt=async()=>{const X=me.current,ue=ce.current||0;if(!X||ue<=0){await ht();return}await wt(ue-1)},Cn=async()=>{const X=me.current,ue=ce.current||0;if(!X||ue>=X.length-1){Ct();return}await wt(ue+1)},An=()=>{if(Ke.current)return;const X=200,ue=340;Dt(!0),et(),ft();try{Z(1)}catch{}dt(1);try{G("hold")}catch{}try{const ke=C.current,Oe=He&&!!ke?.src;if(!He||Oe){if(ke){ke.pause();try{ke.currentTime=0}catch{}}}else Ne();_t()}catch{}try{M("stopped")}catch{}if(H(!1),!Ge.current)try{qe.current&&(clearTimeout(qe.current),qe.current=null),qe.current=setTimeout(()=>{try{G("out")}catch{}qe.current=setTimeout(()=>{try{typeof Be.current=="function"&&Be.current(!0)}catch{}try{G("idle")}catch{}qe.current=null},ue)},X)}catch{}};o.useEffect(()=>{St.current=An});const Rn=o.useCallback(()=>Ee(""),[]),pn=async X=>{(me.current||[])[X]&&await wt(X,{sameSegment:X===ce.current})},Gt=K==="playing",fn=o.useMemo(()=>{if(!J||J.length<=1)return J;const X=J[T];return X?[X]:J},[J,T]),Ft=s===!0;o.useEffect(()=>{try{const X=C.current;X&&typeof X.playbackRate=="number"&&De(X)}catch{}},[re,De]);const Xt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const X=C.current;if(!X)return;const ue=Math.max(0,Math.min(1,te)),ke=Xt.current,Oe=()=>{ke.raf!==null&&(cancelAnimationFrame(ke.raf),ke.raf=null),ke.timer!==null&&(clearTimeout(ke.timer),ke.timer=null)};Oe();const Ze=rr(X);if(X.paused||Math.abs(Ze-ue)<.001||typeof requestAnimationFrame!="function"){try{On(X,ue)}catch{}return}const Je=performance.now(),ye=()=>{const je=Math.min(1,(performance.now()-Je)/150);try{On(X,Ze+(ue-Ze)*je)}catch{}ke.raf=je<1?requestAnimationFrame(ye):null};return ke.raf=requestAnimationFrame(ye),ke.timer=setTimeout(()=>{Oe();try{On(X,ue)}catch{}},200),Oe},[te]);const Wt=W==="hold",vn=W==="out",ie=U==="playMode"&&!D&&!pt||Wt||vn,Ae=K!=="stopped"||Wt||vn,Re=K==="paused",Ue=Math.max(0,Math.min(100,(L||0)*100)),Ie=we("audio-player__fill",ie?"is-visible":"",Ae?"is-expanded":"",Re?"is-paused":"",vn?"is-out":"");return n.jsxs("div",{className:`audio-player ${Ft?"is-disabled":""}${i?` ${i}`:""}`,role:"group","aria-label":typeof h=="string"?h:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${Gt?"is-playing":""} ${D?"is-loading":""} ${U!=="default"?"is-revealed":""}`,children:[D?n.jsxs("div",{className:"audio-player__loading",role:$c[R]?"status":void 0,"aria-live":$c[R]?"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,U==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Ft,onClick:()=>{Q.current=br(),E(),Rt()},"aria-label":typeof h=="string"?h:p("training.listen","\uB4E3\uAE30"),onMouseEnter:w,onMouseLeave:E,onFocus:w,onBlur:E,children:n.jsx("span",{ref:v,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,B&&n.jsx(En,{anchorRect:B,text:typeof h=="string"&&h?h:p("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${U==="playMode"||Gt?"is-visible":""}`,inert:!(U==="playMode"||Gt)||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:zt,ariaLabel:p("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:U!=="playMode"}),n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Gt?"pause":"play",onClick:Rt,ariaLabel:p("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":Gt,width:"60px",variant:"transparent-white",disabled:U!=="playMode"}),n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Ct,ariaLabel:p("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:U!=="playMode"}),vt>1?n.jsx("div",{ref:k,className:"audio-player__source-buttons",children:Array.from({length:vt}).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:O&&T===ue,disabled:U!=="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:ht,ariaLabel:p("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:U!=="playMode"}):null,n.jsx(be,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Cn,ariaLabel:p("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:U!=="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:U!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:Ie,ref:f,style:{left:`${Ue}%`},"aria-hidden":"true"}),(u||c)&&n.jsx(Ox,{segments:fn,progress:L,totalDuration:oe,waveProgressRef:ge,showSoundWaveForm:u,leadInMs:d,tailMs:m,trackDurationSec:I?.[T]?.duration??0,noiseSrc:c&&g?.settings.enabled&&z>0?it:null,noiseRatio:g?er(g.settings):0,noiseSpeed:g?.settings.speed??1,mainVolume:ee,onReadyChange:lt})]})]}),n.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!u&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(st,{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(fa,{message:de,position:ve,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:y,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:`${y}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,v)=>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:v+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:N})]},v))})]}),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(gn,{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 Ic({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(st,{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 Fc(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 Oc({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=mn("(max-width: 767px)"),g=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),y=`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);Fc(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 v=o.useRef(l);o.useEffect(()=>{v.current=l});const B=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]),w=o.useCallback(()=>{_(!1),k(null),N(null)},[]);o.useEffect(()=>{if(!f)return;let D;try{typeof v.current=="function"&&(D=v.current())}catch{}if(D===!1){w();return}N(typeof D<"u"&&D!==null?D:null)},[B]);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:y,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:w,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 v=ys(e,t);if(v!==p){const B=setTimeout(()=>h(v),0);return()=>clearTimeout(B)}},[e,t,p]);const g=o.useCallback((...v)=>{ys(e,t)==="done"||p==="done"||typeof u=="function"&&u(...v)},[e,t,p,u]),[y,C]=o.useState(!1),[f,_]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),b=o.useCallback(v=>{if(!v)return null;try{const B=v;if(typeof v=="object"&&(B.currentTarget||B.target)&&(B.nativeEvent||B.type)){const D=B.currentTarget??B.target;if(D&&typeof D.getBoundingClientRect=="function")return D.getBoundingClientRect()}if(v instanceof DOMRect)return v;const w=v;if(w&&typeof w.getBoundingClientRect=="function")return w.getBoundingClientRect();const E=v?.current;return E&&typeof E.getBoundingClientRect=="function"?E.getBoundingClientRect():null}catch{return null}},[]),k=o.useCallback((v,{text:B="",label:w="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:E=!1,alignX:D="center",alignY:A="top"}={})=>{const R=b(v);_({text:B,label:w,anchorRect:R,backdrop:E,alignX:D,alignY:A}),C(!0)},[b]),x=o.useCallback(()=>{C(!1),_(v=>({...v,anchorRect:null}))},[]),N=o.Children.map(l,v=>{if(o.isValidElement(v)){const B=v;if(typeof B.type=="string")return B;const w=B.props??{},E=typeof w.onDone=="function"?w.onDone:g,D=typeof w.disabled=="boolean";let A=p==="disabled";return D&&(A=!!w.disabled),o.cloneElement(B,{onDone:E,disabled:A,showTooltip:k,hideTooltip:x})}return v});return n.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${i}`,"aria-current":p==="active",children:[n.jsx(Ic,{state:p}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(Oc,{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]}),y?n.jsx(gn,{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 zc({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:y}=$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{}},v=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const $=setTimeout(()=>l(t),0);return()=>clearTimeout($)}},[t]);const B=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[w,E]=o.useState(B);w!==B&&(E(B),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":"",R=o.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${y}px`}),[g,y]);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:R,children:B})}),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,...!v&&{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,...!v&&{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(fa,{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:y,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("||"):"",v=m?m.join("||"):"",[B,w]=o.useState(()=>Array.isArray(x)?C?Ma(x):x.slice():void 0);o.useEffect(()=>{Array.isArray(x)&&x.length?w(C?Ma(x):x.slice()):w(void 0)},[c,N,v,C]);const[E,D]=o.useState(null),[A,R]=o.useState(()=>new Set);o.useEffect(()=>{D(null),R(new Set)},[v,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),R(new Set)),$.current=t},[t,e]);const K=o.useCallback(P=>{if(!na(k))return;const L=B?.[P];if(L==null)return;const Z=L;if(p){const U=new Set(A);U.has(Z)?U.delete(Z):U.add(Z),R(U),typeof u=="function"&&u({selectedValues:[...U],__ts:Date.now()}),typeof i=="function"&&i({selectedValues:[...U],__ts:Date.now()})}else D(Z),typeof u=="function"&&u({selectedIndex:P,selectedValue:Z,__ts:Date.now()}),typeof i=="function"&&i({selectedIndex:P,selectedValue:Z,__ts:Date.now()})},[B,k,p,u,A]),M=`training-step__buttons${Array.isArray(B)&&B.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(B)&&B.length>0?B.map((P,L)=>n.jsx(be,{htmlType:"button",size:56,type:"bar",onClick:()=>K(L),ariaLabel:String(P),label:P,useLabel:!0,icon:y?y[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:"",y=u&&typeof u=="object"?u.choices:void 0,[C,f]=o.useState(c??null),_=`${String(g)}\0${JSON.stringify(y??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 v=o.useRef(void 0);o.useEffect(()=>{const D=v.current;typeof D=="number"&&typeof t=="number"&&typeof e=="number"&&D>=e&&t<e&&c==null&&f(null),v.current=t},[t,e,c]);const B=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]),w=o.useCallback(()=>{na(h)&&(f(!1),B(!1))},[B,h]),E=o.useCallback(()=>{na(h)&&(f(!0),B(!0))},[B,h]);return n.jsxs(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:m,onDone:l,useTitleFaded:!1,children:[n.jsx(zc,{context:u,state:h}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(y)&&y.length>0?y.slice(0,6).map((D,A)=>n.jsx(be,{htmlType:"button",size:56,type:"bar",onClick:()=>{na(h)&&(f(A),B&&B(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:w,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:y,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:y,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,y]=o.useState(()=>(p||[]).map((V,T)=>({id:T,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 T=(j=>{const O=(j||[]).map((re,ee)=>({id:ee,text:m(re)}));if(O.length<=1)return O;const H=(re,ee)=>{if(re.length!==ee.length)return!1;for(let z=0;z<re.length;z++)if(re[z].text!==ee[z].text)return!1;return!0};let oe=Ma(O),se=0;for(;H(oe,O)&&se<20;)oe=Ma(O),se+=1;return oe})(V);y(T);try{if(typeof i=="function"){const j=T.filter((O,H)=>O.text===m(V[H])).length;i({shuffled:T,score:j,total:(V||[]).length,initial:!0,__ts:Date.now()})}if(typeof l=="function"&&C==="active"){const j=T.filter((O,H)=>O.text===m(V[H])).length;b.current=u,l({shuffled:T,score:j,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:[],T=g.filter((j,O)=>j.text===m(V[O])).length;l({shuffled:g,score:T,total:V.length,initial:!0,__ts:Date.now()})},[C,u]);const k=(V,T)=>{const j=[...g],O=V+T;if(O<0||O>=j.length)return;const H=j[O];j[O]=j[V],j[V]=H,Z(j);try{if(typeof l=="function"&&C==="active"){const oe=j.filter((se,re)=>se.text===m(p[re])).length;l({shuffled:j,score:oe,total:(p||[]).length,__ts:Date.now()})}}catch{}},[x,N]=o.useState(null),v=o.useRef(null),B=o.useRef(null),w=o.useRef(null),E=o.useRef(null),D=o.useRef(null),A=o.useRef({x:0,y:0}),R=o.useRef(null),$=o.useRef({dx:0,dy:0}),K=()=>{if(R.current!==null)return;const V=()=>{if(!v.current){R.current=null;return}R.current=requestAnimationFrame(V);const T=A.current,j=$.current||{dx:0,dy:0};v.current&&(v.current.style.transform=`translate3d(${T.x-j.dx}px, ${T.y-j.dy}px, 0)`)};R.current=requestAnimationFrame(V)},M=o.useRef(new Map),P=o.useRef(new Map),L=()=>{const V=new Map;return M.current.forEach((T,j)=>{T&&T.getBoundingClientRect&&V.set(j,T.getBoundingClientRect())}),V},Z=V=>{const T=L();y(V);try{if(typeof i=="function"){const j=V.filter((O,H)=>O.text===m(p[H])).length;i({shuffled:V,score:j,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const j=L();V.forEach(O=>{const H=T.get(O.id),oe=j.get(O.id),se=M.current.get(O.id);if(!se||!H||!oe)return;const re=H.top-oe.top;re&&(se.style.transition="none",se.style.transform=`translateY(${re}px)`,requestAnimationFrame(()=>{se.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",se.style.transform="";const ee=()=>{se.style.transition="",se.removeEventListener("transitionend",ee)};se.addEventListener("transitionend",ee)}))})})},U=(V,T)=>{try{try{T.dataTransfer?.setData("text/plain",String(V))}catch{}try{T.dataTransfer&&(T.dataTransfer.effectAllowed="move")}catch{}try{const j=document.createElement("div");j.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(j),T.dataTransfer?.setDragImage(j,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(j)}catch{}})}catch{}}catch{}N(V);try{const j=g[V],O=document.createElement("div");O.className="order-list__dragging-object order-list__dragging-object--visible",O.textContent=j&&j.text?j.text:"",document.body.appendChild(O),v.current=O;const H=M.current.get(j.id);let oe=T.clientX||0,se=T.clientY||0;try{if(H&&H.getBoundingClientRect){const G=H.getBoundingClientRect();oe=G.left+G.width/2,se=G.top+G.height/2}}catch{}const re=O.getBoundingClientRect(),ee=re.width/2,z=re.height/2;$.current={dx:ee,dy:z},O.style.transition="none",A.current={x:oe,y:se},O.style.transform=`translate3d(${oe-ee}px, ${se-z}px, 0)`,requestAnimationFrame(()=>{try{O.style.transition=""}catch{}K()});const te=G=>{const de=G;A.current={x:de.clientX,y:de.clientY},K()};w.current=te,document.addEventListener("mousemove",te);const W=G=>{const de=G;A.current={x:de.clientX,y:de.clientY},K()};B.current=W,document.addEventListener("dragover",W);try{T.dataTransfer?.setData("text/plain",String(V));try{T.dataTransfer?.setData("application/json",JSON.stringify({idx:V}))}catch{}}catch{}}catch{}},F=(V,T)=>{T.preventDefault();try{T.dataTransfer&&(T.dataTransfer.dropEffect="move")}catch{}try{D.current!==null&&(clearTimeout(D.current),D.current=null);const j=T.currentTarget&&T.currentTarget.closest?T.currentTarget.closest(".order-list__item"):null;if(j&&E.current!==j){if(E.current)try{E.current.classList.remove("drag-over")}catch{}try{j.classList.add("drag-over")}catch{}E.current=j}}catch{}},Q=(V,T)=>{T.preventDefault();const j=T.dataTransfer?.getData("text/plain")||"",O=j?parseInt(j,10):x,H=V;if(typeof O!="number"||isNaN(O)||O===H){N(null),J(),I();return}const oe=yf(g,O,H);Z(oe),N(null),I();try{if(typeof l=="function"&&C==="active"){const se=oe.filter((re,ee)=>re.text===m(p[ee])).length;l({shuffled:oe,score:se,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const se=document.querySelectorAll(".order-list .order-list__item")[H];if(!se)return;const re=se.querySelector(".order-list__slot")||se;try{re.classList.add("pulse"),re.offsetHeight,re.classList.add("to-dark");const ee=()=>{re.classList.remove("pulse","to-dark"),re.removeEventListener("transitionend",ee)};re.addEventListener("transitionend",ee)}catch{}})}catch{}J()},I=()=>{if(v.current){try{document.body.removeChild(v.current)}catch{}v.current=null}B.current&&(document.removeEventListener("dragover",B.current),B.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),R.current!==null&&(cancelAnimationFrame(R.current),R.current=null)},q=()=>{N(null),J(),I()};o.useEffect(()=>()=>I(),[]);const J=()=>{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((T,j)=>{const O=P.current.get(T.id);if(!O)return;let H=50;V>1&&(H=Math.round(j/(V-1)*100));try{O.style.setProperty("--marker-pos",H+"%")}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,T)=>{const j=Math.max(1,(g||[]).length),O=j>1?Math.round(T/(j-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":O+"%"},ref:H=>{const oe=P.current;H?oe.set(V.id,H):oe.delete(V.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:T+1})}):null,n.jsxs("div",{ref:H=>{const oe=M.current;H?oe.set(V.id,H):oe.delete(V.id)},className:`order-list__draggable ${x===T?"dragging":""}`,"data-disabled":C==="disabled","aria-disabled":C==="disabled",tabIndex:C==="disabled"?-1:0,draggable:f,onDragStart:f?H=>U(T,H):void 0,onDragEnter:f?H=>F(T,H):void 0,onDragOver:f?H=>F(T,H):void 0,onDragLeave:f?()=>{try{D.current!==null&&clearTimeout(D.current),D.current=setTimeout(()=>{try{const H=document.querySelectorAll(".order-list .order-list__item");H&&H[T]&&(H[T].classList.remove("drag-over"),E.current===H[T]&&(E.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?H=>Q(T,H):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(T,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:T===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(be,{htmlType:"button",size:32,type:"dot",onClick:()=>k(T,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:T===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 Wc({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(),y=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),v=o.useRef([]),[B,w]=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(L=>L?.id??L?.word??"").join("|"),[C]);o.useEffect(()=>{N(null)},[A]);const R=o.useRef(void 0);o.useEffect(()=>{const L=R.current;typeof L=="number"&&typeof t=="number"&&typeof e=="number"&&L>=e&&t<e&&N(null),R.current=t},[t,e]);const $=o.useCallback((L,Z)=>{if(c)return;const U={item:L,index:Z,__ts:Date.now()};try{typeof i=="function"&&i(U)}catch{}if(k==="active"&&typeof l=="function")try{l(U)}catch{}},[c,i,k,l]),K=o.useRef(h);o.useEffect(()=>{K.current=Math.max(0,h||0)},[h]);const M=o.useCallback(async()=>{if(B||k==="disabled")return;w(!0);let L=!1;const Z=new Promise(U=>{E.current=()=>{L=!0,U()}});try{for(let U=0;U<_.length&&!(!D.current||L);U++){const F=v.current[U];if(!F)continue;await Promise.race([Xx(F.play(),Zx),Z]);const Q=Math.max(0,K.current||0);Q>0&&U<_.length-1&&!L&&D.current&&await Promise.race([new Promise(I=>{setTimeout(I,Q)}),Z])}}finally{E.current=null,w(!1)}},[B,k,_.length]),P=o.useCallback((L,Z)=>{if(!na(k))return;N(Z);const U={selectedValue:L.word||L.title||"",selectedIndex:Z,item:L,__ts:Date.now()};try{typeof i=="function"&&i(U)}catch{}if(typeof l=="function")try{l(U)}catch{}},[i,k,l]);return n.jsx(ta,{index:e,stepIndex:t,isLast:a,lockedHint:r,title:y,onDone:l,titleProps:{usePlayAllBtn:!m&&_.length>0,onPlayAll:M,playAllActive:B},children:n.jsx("div",{className:"training-step__cards",onClickCapture:L=>{const Z=E.current;if(!Z)return;const U=L.target;U&&typeof U.closest=="function"&&U.closest(".training-word-card__bottom")&&Z()},children:_.length===0?n.jsx("div",{className:"training-step__empty",children:g("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):_.map((L,Z)=>n.jsx(Jo,{ref:U=>{v.current[Z]=U},item:L,disabled:k==="disabled",onPlayDone:()=>$(L,Z),selectable:c,selected:c&&x===Z,onSelect:c?()=>P(L,Z):void 0,flipDelay:Z*120,hideLabel:d,hideAudio:m},L&&L.id||Z))})})}const Jx=160,Hc=()=>{};function Ln(e){const t=o.useId();if(!("variant"in e)){const{label:b,sub:k,onClick:x,children:N,align:v="horizontal",icon:B,useFullWidth:w=!1}=e,E=D=>{x&&D.target===D.currentTarget&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),x())};return n.jsxs("div",{className:we("panel-row",v==="vertical"?"panel-row--vertical":"",w?"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:[B!=null&&n.jsx("div",{className:"panel-row__icon",children:B}),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(ca,{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,y=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(hn,{options:x.options,value:x.value,onChange:x.onChange,placeholder:x.placeholder,block:d,error:!!u,ariaDescribedBy:y,ariaLabel:x.ariaLabel??([r,x.placeholder].filter(Boolean).join(" ")||void 0)})},N))}):n.jsx(hn,{options:b.options??[],value:b.value??"",onChange:b.onChange??Hc,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:y});h=u?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[k,n.jsx("span",{id:y,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??Hc,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:y,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:we("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 Vc(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(Mt,{size:"small",variant:Hu(i.device),fill:"soft",label:Vu(i.device,r)}),Vc(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:Vc(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:y=!0,labelWidth:C,form:f=!1,loading:_,empty:b,children:k}){const x=we("panel",`panel--${l}`,f?"panel--form":"",i!==void 0?"panel--fill":"",h?"":"panel--no-border",g?"":"panel--no-bg",y?"":"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 v=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:we("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&n.jsx(st,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[!!e&&n.jsx(v,{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:we("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:we("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 qc(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_(qt.t.bind(qt)),qc(qt.t.bind(qt));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:we("noise-settings__value","button-1",c?"noise-settings__value--disabled":""),children:t})]})}function Uc({anchorRect:e,onClose:t,hideNoiseRows:a=!1}){const{t:r}=xe.useTranslation(),s=mn("(max-width: 767px)")?40:24,l=_r(),i=er(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]),y=o.useCallback(_=>{const b=Math.min(Qa,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")},...qc(r).map(_=>({key:_.value,label:_.label}))];return n.jsx(gn,{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:Qa,step:kc,size:s,disabled:!c,onChange:y})]}),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 Gc({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,y]=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,v=!x||i>=u-1,B=s===Math.max(0,l);o.useEffect(()=>{e||(h(!1),y(null))},[e]);const w=o.useCallback(()=>{h(!1),y(null)},[]),E=o.useCallback(()=>{if(p){h(!1),y(null);return}const Z=_?.current?.getBoundingClientRect();Z&&y(Z),t?.(),h(!0)},[p,t]),D=o.useCallback(()=>{if(p){h(!1),y(null);return}const Z=b?.current?.getBoundingClientRect();Z&&y(Z),t?.(),h(!0)},[p,t]),A=mn("(max-width: 767px)"),R=o.useRef(null),[$,K]=o.useState(null),M=o.useCallback(()=>{f(Z=>{const U=!Z;return K(U?R.current?.getBoundingClientRect()??null:null),U})},[]),P=o.useCallback(()=>{f(!1),K(null)},[]);o.useEffect(()=>{c&&(f(!1),K(null))},[c]);const L=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 Fc(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[_.current,b.current].map(Z=>Z?.querySelector("button")??null).find(Z=>!!Z&&Z.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:R,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:M,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:L})]}),e&&C&&A&&$&&n.jsx(gn,{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:L})}),n.jsxs("div",{className:"pp-bottom__right",children:[v&&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:!B}),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:!B})]}),e&&p&&n.jsx(Uc,{anchorRect:g,onClose:w,hideNoiseRows:d})]})}function Kc({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(),y=mn("(max-width: 767px)"),C=Number.isInteger(m)?m:u||0,f=Number.isInteger(d)?d:c||0,_=p||h,b=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,k=typeof e=="string"?e.trim():e,x=typeof t=="string"?t.trim():t,N=!!(k||x),v=N?k||x:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),B=b||(k?t:void 0),w=y&&typeof B=="string"&&(B.includes(" \xB7 ")||B.includes(" / "))?B.split(/\s[·/]\s/).pop():B,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:[w?n.jsx("span",{className:"pp-title__depth caption-1",children:w}):null,n.jsx("span",{className:`pp-title__title h2${N?"":" pp-title__title--empty"}`,children:v}),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 Yc=(e,t)=>{if(!t)return t;const a=typeof qt?.t=="function"?qt.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function Zc(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?Yc(`topic.${l.key}`,l.label):void 0,i?Yc(`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 Xc(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=Zc(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 Jc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function p_(e,t,a,r){return Jc(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 Qc=o.createContext(null);function C_(){const e=o.useContext(Qc);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),y=l.length;o.useEffect(()=>{h(Array.from({length:y},()=>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:y},()=>null)),C.current=t},[t,e,y]);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 B=x[k];N=x.map(w=>w!==null&&w>=B?null:w)}else N=[...x],N[k]=f;h(N);const v={selectedOrder:N,words:l,__ts:Date.now()};try{typeof u=="function"&&u(v)}catch{}if(x[k]==null&&N.length>0&&N.every(B=>B!==null))try{typeof i=="function"&&i(v)}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 _a(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 ed({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i}=_a(e,t);return n.jsx(_s,{...a,index:r,stepIndex:s,isLast:l,onDone:i})}function td({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=_a(e,t);return n.jsx(vs,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}function nd({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:l,onDone:i,onChange:u}=_a(e,t);return n.jsx(xs,{...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}=_a(e,t);return n.jsx(ws,{...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}=_a(e,t);return n.jsx(Wc,{...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}=_a(e,t);return n.jsx(f_,{...a,index:r,stepIndex:s,isLast:l,onDone:i,onChange:u})}const od=3e4,g_=/^(https?:|blob:|data:audio|\/|\.\/)/;function sd(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?Ea()||nr()?!0:typeof window<"u"&&!!window.speechSynthesis:!1}function __(e,t){const a=[],r=sd(t);r&&a.push({kind:"raw",resolve:async()=>r});const s=(e??"").trim();if(!s)return a;for(const[l,i]of[["urlResolver",Ea()],["fallbackUrlResolver",nr()]])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 ${od}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()+od}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 sd(Sr(e?.questionSound,e?.soundSrc,e?.audioSrc,e?.sound,e?.audio,e?.src))}function ld(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 id(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=ld(D),R=Sr(D?.wording,D?.label);return A===!0?{variant:"main",label:R??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:A===!1?{variant:"danger",label:R??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:R??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),g=a??0,y=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 R=Math.round(performance.now()-x.current);console.debug(`[core][\uB2E4\uC2DC\uB4E3\uAE30] +${R}ms ${D}`,A??"")},v=o.useRef(0),B=o.useCallback((D,A,R)=>{k();const $=++v.current,K=()=>v.current===$;x.current=Pn?performance.now():0,N(`\uB20C\uB800\uB2E4 \u2014 \uC904 ${D}`,{text:A,rawUrl:R}),b(D),f.current=()=>{N("\uBA48\uCD94\uAC1C\uAC00 \uBD88\uB838\uB2E4(\uC8FC\uC18C \uC5BB\uAE30 \uC804)"),v.current++,Zr()};const M=U=>{N("\uD2BC\uB2E4",U);const F=Ua(U,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)"),v.current++,F.stop(),Zr()},F.done},P=__(A,R);N("\uCC28\uB840",P.map(U=>U.kind));const L=P[0]?.kind==="raw",Z=L?M(R):Promise.resolve(!1);(async()=>{if(await Z||!K())return;const U=w_(),F=L?P.slice(1):P;for(let Q=0;Q<F.length;Q++){if(!K())return;N(`${F[Q].kind} \uC5D0\uAC8C \uBB3B\uB294\uB2E4`);const I=await F[Q].resolve(B_(U,F.length-Q));if(N(`${F[Q].kind} \uAC00 \uB2F5\uD588\uB2E4`,I),!K()||I&&(await M(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=()=>{v.current++,Zr()},N("\uB0AD\uB3C5\uD55C\uB2E4"),NC(A,{onEnd:()=>{K()&&(f.current=null,b(null))}}))})()},[k]),w=o.useMemo(()=>C.map(D=>{const A=D??{},R=A_(A)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:$,label:K}=h(A),M=Array.isArray(A.corrects)?A.corrects:[],P=M.length?M.join(", "):A.answer!=null&&A.answer!==""?String(A.answer):null,L=typeof A.selectedText=="string"?A.selectedText:null,Z=ld(A)===!0,U=N_(A),F=!!U||x_(R);return{problem:R,variant:$,label:K,answer:P,selectedText:L,isCorrect:Z,sound:U,canHear:F}}),[C,h,d]),E=o.useMemo(()=>w.some(D=>D.answer!==null||D.selectedText!==null),[w]);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:y,total:g}),children:[n.jsx("span",{className:"trp-score__big",children:y}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:g})]})})]}),w.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")})]}),w.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():B(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(Mt,{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,_f({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({}),ud=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(id,{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:y,onNext:C,onSettings:f,useNoiseSetting:_=!0,children:b,ariaLabel:k,label:x,buildResults:N,onResult:v,typeKey:B,entryPoint:w,dailyTotal:E,itemRef:D,renderResultPopup:A,noiseOverride:R,hideNoiseRows:$=!1}=e;E_(B&&!ud.has(B)?B:"");const K=o.useRef(0);o.useEffect(()=>{K.current=Date.now()},[]);const{t:M}=xe.useTranslation(),P=v,L=!!t,Z=t?.id||null,U=t?.meta||{},F=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=ie=>ie===Dr||ie?.__isTrainingPage===!0,J=I&&Q.some(ie=>q(ie.type)),V=J?Q.filter(ie=>q(ie.type)).map((ie,Ae)=>{const Re=ie.props||{};return{id:`children-page-${Ae}`,steps:o.Children.toArray(Re.children).filter(o.isValidElement),pageTop:Re.pageTop||Re.top||null,pageBottom:Re.pageBottom||Re.bottom||null}}):[{id:"children-page-0",steps:Q}],T=I&&!L&&typeof b!="function",j=T?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 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[O,H]=o.useState({...ea,enabled:!1}),oe=o.useRef(O);o.useEffect(()=>{oe.current=O},[O]);const se=o.useRef(R),re=o.useRef(!1),ee=o.useRef(null);o.useEffect(()=>{let ie=!1;const Ae=Re=>{if(ie)return;re.current=!0;const Ue=Re?Qn({...ea,enabled:!1},Re):{...ea},Ie=ee.current;ee.current=null;const X=Ie?Qn(Ue,Ie):Ue;oe.current=X,H(X),Ie&&!se.current&&uo(X),lr(X);const ue=se.current;if(ue){const ke=typeof ue=="function"?ue(X):ue,Oe=Qn(X,ke);oe.current=Oe,H(Oe),lr(Oe)}};return Mf().then(Re=>{if(ie){const Ue=ee.current;if(ee.current=null,Ue&&!se.current){const Ie=Re?Qn({...ea,enabled:!1},Re):{...ea};uo(Qn(Ie,Ue))}return}Ae(Re)}),()=>{ie=!0}},[]);const[z,te]=o.useState(null),[W,G]=o.useState(null),de=o.useCallback((ie,Ae)=>{ie==="main"?te(Ae):G(Ae)},[]),Ee=o.useRef(null),ve=o.useRef(null),me=o.useCallback(()=>{ve.current!==null&&(clearTimeout(ve.current),ve.current=null);const ie=Ee.current;Ee.current=null,ie&&uo(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 ce=o.useCallback(ie=>{const Ae=Qn(oe.current,ie);if(oe.current=Ae,H(Ae),!re.current){ee.current={...ee.current??{},...ie},lr(Ae);return}se.current||(Ee.current=Ae,ve.current!==null&&clearTimeout(ve.current),ve.current=setTimeout(me,S_)),lr(Ae)},[me]),ge=O.mainSpeed,he=O.mainVolume,pe=o.useCallback(ie=>ce({mainSpeed:ie}),[ce]),Le=o.useCallback(ie=>ce({mainVolume:ie}),[ce]),ze=o.useMemo(()=>({settings:O,setSettings:ce,registerAnalyser:de,mainAnalyser:z,noiseAnalyser:W,playbackRate:ge,setPlaybackRate:pe,mainVolume:he,setMainVolume:Le}),[O,ce,de,z,W,ge,pe,he,Le]),Me=o.useRef(null),[Ve,We]=o.useState(0),dt=o.useRef([]),[lt,tt]=o.useState("center"),[yt,_e]=o.useState(!1),Ge=o.useRef(!1),Be=o.useRef(null),qe=o.useCallback(ie=>{Ge.current||(Ge.current=!0,_e(!0),Be.current=setTimeout(()=>{try{ie()}catch{Ge.current=!1,_e(!1)}},j_()?0:Jx))},[]);o.useEffect(()=>()=>{Be.current&&clearTimeout(Be.current)},[]);const Ke=o.useRef(h);o.useEffect(()=>{Ke.current=h});const pt=o.useRef(typeof document>"u"?null:document.activeElement);o.useEffect(()=>{const ie=Me.current,Ae=pt.current;if(Co(ie,Ae),ie){const Re=Array.from(ie.querySelectorAll(xn)).filter(Ue=>!Ue.closest('[aria-hidden="true"]'))[0];if(Re)try{Re.focus()}catch{}}return()=>{const Re=document.activeElement;if(!Re||Re===document.body||ie&&ie.contains(Re))try{fo(Ae)?.focus?.()}catch{}}},[]),o.useEffect(()=>Gn(()=>qe(()=>{const ie=Ke.current;typeof ie=="function"&&ie()})),[qe]),mo(Me,!0);const[xt,Dt]=o.useState(!1),St=o.useRef(!1),[it,at]=o.useState(null),At=o.useRef(0),_t=o.useRef(0),Lt=()=>{At.current+=1,_t.current+=1,at(null)},[Ne,$e]=o.useState(""),[Se,He]=o.useState(()=>Mr()),rt=o.useRef(typeof c=="number"?c:null);o.useEffect(()=>{!L&&!T||(He(Mr()),Lt())},[L,Z,T]),o.useEffect(()=>{T&&He(ie=>{const Ae=Math.max(0,Math.min(ie.pageIndex,Math.max(0,j-1)));return Ae!==ie.pageIndex?{...ie,pageIndex:Ae,stepIndex:0}:ie})},[T,j]);const vt=T?Math.max(0,Math.min(Se.pageIndex,j-1)):0,et=T?V[vt]:null,Nt=T&&et&&Array.isArray(et.steps)?et.steps:[],Ye=L?Se.pageIndex:T?vt:typeof c=="number"?c:0,bt=L?F[Math.max(0,Math.min(Se.pageIndex,Math.max(0,F.length-1)))]:null,kt=L&&bt&&Array.isArray(bt.steps)?bt.steps:[],gt=L?kt.length:T?Nt.length:typeof p=="number"?p:0,ft=L||T?Math.max(0,Math.min(Se.stepIndex,Math.max(0,gt))):typeof m=="number"?m:0,ut=L?F.length:T?j:typeof d=="number"?d:0;o.useEffect(()=>{if(!L&&!T)return;const ie=L?jr(bt,Ye):et?.id||`children-page-${Ye??0}`,Ae=new Date().toISOString();for(let Re=0;Re<=ft;Re+=1){const Ue=L?Tr(kt[Re],Re):`step-${Re}`,Ie=Ce(ie,Ue);ae.current.has(Ie)||ae.current.set(Ie,Ae)}},[L,T,Ye,ft,et?.id]),o.useLayoutEffect(()=>{const ie=rt.current;if(typeof Ye=="number"&&ie!==null&&Ye!==ie&&Ye>ie)try{$e(M("training.problemNotice",{n:Ye+1}))}catch{}rt.current=typeof Ye=="number"?Ye:rt.current},[Ye,c,M]),o.useLayoutEffect(()=>{const ie=Me.current;if(!ie)return;const Ae=()=>ie.querySelector(".page-popup__scroll");let Re=null,Ue=null,Ie=null;const X=Je=>{const ye=Ae();if(!ye)return;const je=ye.scrollHeight<=ye.clientHeight;if(tt(je?"center":"top"),Je&&!St.current){St.current=!0;try{Dt(!0)}catch{}try{Oe.disconnect()}catch{}}},ue=()=>{Re!==null&&cancelAnimationFrame(Re),Re=requestAnimationFrame(()=>{Ue!==null&&clearTimeout(Ue),Ue=setTimeout(()=>X(!0),60)})},ke=()=>{Ie!==null&&cancelAnimationFrame(Ie),Ie=requestAnimationFrame(()=>X(!1))};ue(),window.addEventListener("resize",ke);const Oe=new MutationObserver(ue);Oe.observe(ie,{childList:!0,subtree:!0,attributes:!0});const Ze=setTimeout(()=>{St.current||X(!0)},400);return()=>{window.removeEventListener("resize",ke),Re!==null&&cancelAnimationFrame(Re),Ue!==null&&clearTimeout(Ue),Ie!==null&&cancelAnimationFrame(Ie),clearTimeout(Ze);try{Oe.disconnect()}catch{}}},[Me]);const De=o.useCallback(ie=>{Me.current&&(Me.current._childOnNext=ie)},[]),nt=o.useCallback(ie=>{Me.current&&(Me.current._childOnResult=ie)},[]),ae=o.useRef(new Map),Ce=(ie,Ae)=>`${ie}\0${Ae}`,Fe=o.useCallback((ie,Ae,Re)=>{He(Ue=>{const Ie=Ue.answersByPage[ie]||{},X=Ie[Ae],ue=ks(Re),ke=ks(X);if(X&&ke>ue)return Ue;const Oe=Xc(Re,ae.current.get(Ce(ie,Ae)),ue);return{...Ue,answersByPage:{...Ue.answersByPage,[ie]:{...Ie,[Ae]:Oe}}}})},[He]),Qe=o.useCallback((ie,Ae,Re)=>{const Ue=jr(bt,Ye),Ie=Tr(ie,Ae);Fe(Ue,Ie,Re)},[bt,Ye,Fe]),ct=o.useCallback((ie,Ae,Re)=>{const Ue=jr(bt,Ye),Ie=Tr(ie,Ae);Fe(Ue,Ie,Re),!Re?.allowChange&&ie?.autoAdvance!==!1&&He(X=>({...X,stepIndex:Math.max(X.stepIndex,Ae+1)}))},[bt,Ye,Fe,He]),ot=o.useCallback((ie,Ae)=>{const Re=et?.id||`children-page-${Ye??0}`,Ue=typeof Ae=="number"?Ae:ft??0,Ie=`step-${Ue}`;Fe(Re,Ie,ie),ie?.allowChange||He(X=>({...X,stepIndex:Math.max(X.stepIndex,Ue+1)}))},[et,Ye,ft,Fe,He]),It=o.useCallback((ie,Ae)=>{const Re=et?.id||`children-page-${Ye??0}`,Ue=`step-${typeof Ae=="number"?Ae:ft??0}`;Fe(Re,Ue,ie)},[et,Ye,ft,Fe]),Yt=T?{currentPageIndex:Ye??0,currentStepIndex:ft??0,totalStepsInPage:Nt.length,handleStepDone:ot,handleStepChange:It}:null,kn=async()=>{const ie=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:F,flowState:Se,answersByPage:Se.answersByPage})):null;return typeof P=="function"&&await Promise.resolve(P(ie))||ie},Vt=async()=>{const ie=et?.id||`children-page-${Se.pageIndex}`,Ae=Se.answersByPage[ie]||{},Re=J?(()=>{const X={};let ue=0;return V.forEach(ke=>{const Oe=Se.answersByPage[ke.id]||{},Ze=Array.isArray(ke.steps)?ke.steps.length:0;for(let Je=0;Je<Ze;Je+=1){const ye=Oe[`step-${Je}`];typeof ye<"u"&&(X[`step-${ue+Je}`]=ye)}ue+=Ze}),X})():Ae;if(typeof N=="function"){const X=await Promise.resolve(N(Re,{pageAnswers:Ae,answersByPage:Se.answersByPage,pages:V,currentPageId:ie}));return typeof P=="function"&&await Promise.resolve(P(X))||X}const Ue=Object.entries(Ae).map(([X,ue],ke)=>({index:ke,key:X,payload:ue})),Ie={results:Ue,answers:Ue,score:0};return typeof P=="function"&&await Promise.resolve(P(Ie))||Ie},Zt=()=>{const ie=++At.current,Ae=()=>ie!==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(L){const Ie=kn();at($n);const X=Ie;Promise.resolve(X).then(ue=>{Ae()||at(ue||{isEmpty:!0})}).catch(ue=>{!Ae()&&at({isEmpty:!0})});return}if(T){const Ie=Vt();at($n);const X=Ie;Promise.resolve(X).then(ue=>{Ae()||at(ue||{isEmpty:!0})}).catch(ue=>{!Ae()&&at({isEmpty:!0})});return}const Re=Me.current&&Me.current._childOnResult,Ue=Ie=>{try{return Ie?Ie():void 0}catch{return}};if(typeof Re=="function"){const Ie=Ue(Re);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{}Ie&&typeof Ie.then!="function"?at(Ie):at(Ie&&typeof Ie.then=="function"?$n:{});const X=()=>{Ae()||at(ue=>ue===$n?{}:ue)};Promise.resolve(Ie).then(ue=>{ue&&!Ae()?at(ue):X()}).catch(ue=>{X()});return}if(typeof P=="function"){const Ie=Ue(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{}Ie&&typeof Ie.then!="function"?at(Ie):at(Ie&&typeof Ie.then=="function"?$n:{});const X=()=>{Ae()||at(ue=>ue===$n?{}:ue)};Promise.resolve(Ie).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&&!Ae()?at(ue):X()}).catch(ue=>{console.error("viewResults external handler failed",ue),X()});return}},Rt=()=>{if(L){if(typeof Ye=="number"&&typeof ut=="number"&&Ye<ut-1){He(Ae=>({...Ae,pageIndex:Ae.pageIndex+1,stepIndex:0}));return}return Zt()}if(T){const Ae=Nt.length;if(typeof ft=="number"&&ft<Ae-1){He(Re=>({...Re,stepIndex:Re.stepIndex+1}));return}if(typeof Ye=="number"&&typeof ut=="number"&&Ye<ut-1){He(Re=>({...Re,pageIndex:Re.pageIndex+1,stepIndex:0}));return}return Zt()}if(typeof C=="function"){try{C()}catch{}return}const ie=Me.current&&Me.current._childOnNext;if(typeof ie=="function"){try{ie()}catch{}return}},ht=L?U.title||U.label||k||M("common.popup","\uD31D\uC5C5"):a||x||(Array.isArray(s)?s[s.length-1]:void 0)||k||M("common.popup","\uD31D\uC5C5"),Ct=k||ht,wt=L?U.title??U.label??ht:a??x??ht,zt=(ie,Ae)=>{const Re=jr(bt,Ye),Ue=Tr(ie,Ae),Ie=Se.answersByPage[Re]?.[Ue],X=D_(ie,{page:bt,pageIndex:Ye,step:ie,stepIndex:Ae,storedPayload:Ie,answersByPage:Se.answersByPage,flowState:Se}),ue={key:Ue,index:Ae,stepIndex:ft,isLast:Ae===kt.length-1};switch(ie?.type){case"listen":return n.jsx(_s,{...ue,...X,onDone:ke=>ct(ie,Ae,ke)});case"confirm":return n.jsx(vs,{...ue,...X,onDone:ke=>ct(ie,Ae,ke),onChange:ke=>Qe(ie,Ae,ke)});case"confirmWithText":return n.jsx(xs,{...ue,...X,onDone:ke=>ct(ie,Ae,ke),onChange:ke=>Qe(ie,Ae,ke)});case"orderList":return n.jsx(ws,{...ue,...X,onDone:ke=>ct(ie,Ae,ke),onChange:ke=>Qe(ie,Ae,ke)});default:return null}},Cn=o.useRef(void 0);o.useEffect(()=>{const ie=Cn.current;if(Cn.current=Ye,ie===void 0||ie===Ye||!br())return;const Ae=Me.current;if(!Ae)return;const Re=document.activeElement;if(!(!Re||Re===document.body||!Ae.contains(Re)||Re.disabled===!0))return;const Ue=Ae.querySelector(`.training-steps ${xn.split(", ").join(", .training-steps ")}`)??Array.from(Ae.querySelectorAll(xn)).find(Ie=>!Ie.closest('[aria-hidden="true"]'));try{Ue?.focus()}catch{}},[Ye]);const An=L?F.length>0?n.jsx("div",{className:"training-steps",children:kt.map((ie,Ae)=>zt(ie,Ae))},`replay-${Ve}`):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,Rn=T?n.jsxs(Qc.Provider,{value:Yt,children:[et?.pageTop?n.jsx("div",{className:"training-page-top",children:et.pageTop}):null,n.jsx("div",{className:"training-steps",children:Nt.map((ie,Ae)=>{const Re=ie;return o.cloneElement(Re,{...Re.props,_stepIndex:Ae,_totalSteps:Nt.length,_stepKey:`step-${Ae}`,_pageIndex:Ye})})},`replay-${Ve}`),et?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:et.pageBottom}):null]}):null,pn=o.useRef(-1),Gt=o.useCallback(()=>{if(!B)return;const ie=it,{results:Ae,correct:Re,total:Ue}=Es(it),Ie={correct:Re,total:Ue,attempt:dt.current.length+1,previousAttempts:[...dt.current]};if(pn.current===_t.current)return Ie;pn.current=_t.current,wf({items:Tf(Ae),category:ud.has(B)?"sentence":"word",trainingType:B,entryPoint:w??"sentence",itemRef:D??null,correct:Re,total:Ue,score:typeof ie?.score=="number"?ie.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-K.current)/1e3)),dailyTotal:E??null});try{y?.(Ie)}catch{}return Ie},[B,w,E,D,it,y]);o.useEffect(()=>{!it||it===$n||it?.isEmpty||(Es(it).total??0)>0&&Gt()},[it,Gt]);const fn=o.useCallback(()=>{const ie=Gt();Lt(),qe(()=>{typeof g=="function"&&g(ie),typeof h=="function"&&h()})},[g,h,Gt,at,qe]),Ft=o.useCallback(()=>$e(""),[$e]),Xt=o.useCallback(()=>{qe(()=>{typeof h=="function"&&h()})},[h,qe]),Wt=n.jsxs("div",{className:`page-popup${yt?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Ct,children:[n.jsxs("div",{ref:Me,className:`page-popup__panel ${xt?"":"page-popup__panel--measuring"} ${lt==="center"?"page-popup__panel--center":lt==="top"?"page-popup__panel--top":""}`,children:[n.jsx(Kc,{title:wt,subtitle:L?U.subtitle||U.label:Array.isArray(s)?s.join(" / "):void 0,desc:L?void 0:r,depth:L?U.depth:s,icon:L?U.icon:l,wrapperStyle:L?U.wrapperStyle:i,iconTooltip:L?U.iconTooltip:u,progressMax:ut,progressIndex:Ye,pageIndex:Ye,pageCount:ut,onBack:Xt,onClose:Xt}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${lt==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:T?Rn:L?An:typeof b=="function"?b({registerOnNext:De,registerOnResult:nt,panelRef:Me,setResultOverlay:at}):b})}),n.jsx(Gc,{onSettings:f,onNext:Rt,onResult:Zt,useNoiseSettingBtn:!!(L?U.useNoiseSetting??!0:_),stepIndex:ft,stepCount:gt,pageIndex:Ye,pageCount:ut,resultOpen:!!(it&&!it.isEmpty),hideNoiseRows:$})]}),it&&!it.isEmpty&&(A??T_)({score:it.score,results:it.results||it.answers||[],contextsLength:it.results?it.results.length:it.answers?it.answers.length:0,onReplay:()=>{if(K.current=Date.now(),it!==$n){const{correct:ie,total:Ae}=Es(it);dt.current.push({correct:ie,total:Ae})}if(Lt(),We(ie=>ie+1),L){if(He(Mr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(T){He(Mr());return}try{const ie=Me.current&&Me.current._childOnResult;typeof ie=="function"&&ie({replay:!0})}catch{}},onClose:fn,pending:it===$n}),it?.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(be,{htmlType:"button",variant:"main",size:48,onClick:fn,label:M("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(fa,{message:Ne,position:"top",onClose:Ft})]}),vn=n.jsx(hs.Provider,{value:ze,children:Wt});return typeof document<"u"&&document.body?sn.createPortal(vn,document.body):vn}const Hn=M_;Hn.Page=Dr,Hn.ListenStep=ed,Hn.ConfirmStep=td,Hn.ConfirmWithTextStep=nd,Hn.OrderListStep=ad,Hn.CardStep=rd,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 cd({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:y="page",disc:C}){const{t:f,i18n:_}=xe.useTranslation(),b=_.language?.startsWith("ko")??!1,{anchorRect:k,openAt:x,close:N}=Ia(),[v,B]=o.useState(null),w=o.useCallback(()=>{N(),B(null)},[N]);Ty(w,!!v);const E=(r??"").trim(),D=/^[^,[\]\s]+$/.test(E)?E:"",A=D.length>0,R=r===void 0&&t===void 0,$=A?"match":R?"original":"ganada",[K,M]=o.useState(()=>$),[P,L]=o.useState("50"),[Z,U]=o.useState(1),[F,Q]=o.useState(A);F!==A&&(Q(A),M($));const I=K==="match"&&!A||K==="original"&&!R?$:K,q=o.useMemo(()=>[...A?[{value:"match",label:f("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...R?[{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,R]),J=o.useMemo(()=>["10","25","50","100"].map(ce=>({value:ce,label:f("wordSearch.pageSize",{count:Number(ce),defaultValue:`${ce}\uAC1C\uC529 \uBCF4\uAE30`})})),[f]),V=ce=>ce.words?.[0],T=o.useMemo(()=>{const ce=[...D].length,ge=rf(D),he=new Map;return pe=>{let Le=he.get(pe);return Le===void 0&&(Le=ge((pe.words?.[0]?.label??"").slice(0,ce))?0:1,he.set(pe,Le)),Le}},[D]),j=o.useCallback((ce,ge)=>{const he=ze=>V(ze)?.label??"",pe=ze=>V(ze)?.syllables??[...he(ze)].length,Le=ze=>(ze.words??[]).reduce((Me,Ve)=>{const We=parseInt(Ve.grade??"",10);return Number.isFinite(We)&&We<Me?We:Me},999);switch(I){case"match":return T(ce)-T(ge)||cn(he(ce),he(ge));case"ganada":return cn(he(ce),he(ge));case"ganada_desc":return cn(he(ge),he(ce));case"syllable":return pe(ce)-pe(ge)||cn(he(ce),he(ge));case"syllable_desc":return pe(ge)-pe(ce)||cn(he(ce),he(ge));case"grade":return Le(ce)-Le(ge)||cn(he(ce),he(ge));case"grade_desc":return Le(ge)-Le(ce)||cn(he(ce),he(ge));default:return 0}},[I,T]),O=o.useMemo(()=>s.slice().sort(j),[s,j]),H=Number(P)||10,oe=o.useMemo(()=>(l??[]).flatMap(ce=>ce.items.slice().sort(j).map(ge=>({item:ge,label:ce.label}))),[l,j]),se=l?oe.length:O.length,re=Math.max(1,Math.ceil(se/H)),ee=Math.min(Z,re),z=o.useMemo(()=>O.slice((ee-1)*H,ee*H),[O,ee,H]),te=o.useId(),W=o.useMemo(()=>{if(!l)return null;const ce=oe.slice((ee-1)*H,ee*H),ge=new Map;for(const{item:he,label:pe}of ce)ge.has(pe)||ge.set(pe,[]),ge.get(pe).push(he);return[...ge.entries()].map(([he,pe])=>({label:he,items:pe}))},[l,oe,ee,H]);o.useEffect(()=>{U(1)},[K,P,se,r]);const G=se>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(hn,{size:40,options:q,value:I,onChange:M,ariaLabel:f("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(hn,{size:40,options:J,value:P,onChange:L,ariaLabel:f("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(Ro,{page:ee,totalPages:re,onChange:U})]}):void 0,de=ce=>{u&&u(ce)},Ee=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?ff(a):a})]}):void 0,ve=t!==void 0&&t>0&&c!==void 0&&a?f("wordSearch.resultDisc",{unit:b?gf(a):a,max:c,selected:i.length}):void 0,me=C??ve;return n.jsxs(ga,{type:y,className:we("word-search-result-block",h),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(Ee||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(st,{icon:e,className:"word-search-result-block__head-icon"}),Ee&&n.jsx("span",{className:"word-search-result-block__title h3",children:Ee})]}),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.")}),g&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),l?(W??[]).map(ce=>n.jsxs("div",{className:"word-search-result-block__group",role:"group","aria-labelledby":`${te}-${ce.label}`,children:[n.jsx("div",{className:"word-search-result-block__group-label caption-1b",id:`${te}-${ce.label}`,children:ce.label}),n.jsx("div",{className:"word-search-result-block__items",children:ce.items.map(ge=>{const he=i.includes(ge.id);return n.jsx("div",{onMouseEnter:pe=>{x(pe.currentTarget),B(ge.words??[])},onMouseLeave:w,children:n.jsx(be,{htmlType:"button",size:"word",align:"grid",label:(ge.words??[]).map(pe=>pe.label),subLabel:(ge.words??[]).some(pe=>pe.subLabel)?(ge.words??[]).map(pe=>pe.subLabel):void 0,selected:he,onClick:()=>de(ge.id),minWidth:200})},ge.id)})})]},ce.label)):n.jsx("div",{className:"word-search-result-block__items",children:z.map(ce=>{const ge=i.includes(ce.id);return n.jsx("div",{onMouseEnter:he=>{x(he.currentTarget),B(ce.words??[])},onMouseLeave:w,children:n.jsx(be,{htmlType:"button",size:"word",align:"grid",label:(ce.words??[]).map(he=>he.label),subLabel:(ce.words??[]).some(he=>he.subLabel)?(ce.words??[]).map(he=>he.subLabel):void 0,selected:ge,onClick:()=>de(ce.id),minWidth:200})},ce.id)})}),v&&k&&n.jsx(cd,{words:v,anchorRect:k})]}),(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:y=!0,onClearPhoneme:C,onSearch:f,onSearchEmpty:_,searchDisabled:b=!1,searchLabel:k,searchChecking:x=!1,pairMode:N=!1,sectionType:v="page",beforeSearchContent:B,beforeContent:w,afterContent:E,hideCountControl:D=!1,ordinal:A=!1}){const{t:R}=xe.useTranslation(),$=o.useMemo(()=>R("wordPairs.infoNotes",{returnObjects:!0}),[R]),K=o.useMemo(()=>Array.from({length:s-l+1},(T,j)=>{const O=l+j;return{key:String(O),label:R("wordPairs.count",{n:O})}}),[R,s,l]),M=o.useMemo(()=>R("wordPairs.ordinals",{returnObjects:!0}),[R]),P=o.useCallback(T=>A?R("wordPairs.phonemeOrdinalLabel",{ordinal:M[T-1]??T}):a===1?R("wordPairs.phonemeSingleLabel","\uC74C\uC808"):R("wordPairs.phonemeN",{n:T}),[A,M,a,R]),L=o.useCallback(T=>A?R("wordPairs.phonemeContrastOrdinalLabel",{ordinal:M[T-1]??T}):a===1?R("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):R("wordPairs.phonemeContrast",{n:T}),[A,M,a,R]),Z=o.useCallback((T,j)=>j?n.jsxs(n.Fragment,{children:[T,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):T,[]),{anchorRect:U,toggleAt:F,close:Q}=Ia(),I=o.useCallback(T=>r(Number(T)),[r]),q=mn("(max-width: 767px)"),J=o.useCallback(T=>R_(T,e).map(({label:j,value:O,displayLabel:H})=>{const oe=!!O&&O!=="\uC5C6\uC74C";return n.jsxs("span",{className:we("phoneme-select-block__cell-jamo-part",O?"":"phoneme-select-block__cell-jamo-part--empty",oe?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${O==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:O==="\uC5C6\uC74C"?"x":O||d}),oe&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:H??j})]},j)}),[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:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:U?"is-selected":void 0,"aria-expanded":!!U,"aria-haspopup":"dialog",onClick:T=>F(T.currentTarget)})}),U&&n.jsx(Kn,{title:R("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:$,anchorRect:U,onClose:Q})]});return n.jsxs(ga,{type:v,title:p,icon:h,disc:g,action:y?V:void 0,className:we("phoneme-select-block",m),children:[w,!D&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(_n,{options:K,value:String(a),onChange:I,size:40,ariaLabel:R("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((T,j)=>{const O=t[j*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:J(O)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:P(j+1)})]},j)})}),n.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:R("wordPairs.phonemeSelect.vs","\uB300")}),n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((T,j)=>{const O=t[j*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:J(O)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(j+1)})]},j)})})]}):t.map((T,j)=>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:J(T)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:P(j+1)})]},j))}),(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((T,j)=>{const O=t[j*2]??{};return n.jsx(Mn,{title:Z(P(j+1),j===0),sections:u?u(O,j*2):i,selected:O,onSelect:c?.(j*2),align:"newline"},j)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((T,j)=>{const O=t[j*2+1]??{};return n.jsx(Mn,{title:L(j+1),sections:u?u(O,j*2+1):i,selected:O,onSelect:c?.(j*2+1),align:"newline"},j)})})]}):t.map((T,j)=>n.jsx(Mn,{title:Z(P(j+1),j===0),sections:u?u(T,j):i,selected:T,onSelect:c?.(j),align:"newline"},j))})}),B&&n.jsx("div",{className:"phoneme-select-block__before-search",children:B}),(C||f||x)&&(()=>{const T=t.every(j=>{const O=ef(j);return Object.entries(O).every(([H,oe])=>!oe||H==="coda"&&oe===Ml)});return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:T?_:void 0,children:[C&&n.jsx(be,{htmlType:"button",size:"56",type:"bar",label:R("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:T,onClick:T?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??R("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:T||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??R("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(Va,{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(Va,{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(Va,{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.")]})}],y={[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:y,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:y,pageSizeOptions:C=[10,25,50,100],initialPageSize:f,emptyText:_,noMatchText:b,countLabel:k,topContent:x,className:N=""}=e,{t:v}=xe.useTranslation(),B=u??v("common.search","\uAC80\uC0C9"),w=_??v("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),E=b??v("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"),[D,A]=o.useState(""),[R,$]=o.useState(d??r[0]?.key??""),[K,M]=o.useState(m),[P,L]=o.useState(String(f??C[0]??10)),[Z,U]=o.useState(1);o.useEffect(()=>{U(1)},[D,P]);const F=c!==null,Q=o.useCallback((se,re)=>{if(!re)return!0;const ee=re.toLowerCase();return r.some(z=>{const te=se[z.key];return te==null?!1:String(te).toLowerCase().includes(ee)})},[r]),I=c??Q,q=o.useMemo(()=>{const se=F?a.filter(re=>I(re,D)):a;return R?[...se].sort((re,ee)=>{const z=re[R],te=ee[R];return z===te?0:pr(z,te,K)}):se},[a,D,R,K,F,I]),J=Math.max(1,Math.ceil(q.length/Number(P)));Z>J&&U(J);const V=Math.min(Z,J),T=q.slice((V-1)*Number(P),V*Number(P)),j=o.useCallback(se=>{R===se?M(re=>!re):($(se),M(!0)),U(1)},[R]),O=o.useMemo(()=>{if(typeof k=="function"){const se=q.length,re=k(se);if(typeof re=="string"){const ee=re.lastIndexOf(String(se));if(ee>=0)return{prefix:re.slice(0,ee),suffix:re.slice(ee+String(se).length)}}return{label:re}}if(typeof k=="string"&&k.includes("{n}")){const[se,re]=k.split("{n}");return{prefix:se,suffix:re}}return{prefix:v("common.totalCountPrefix","\uCD1D "),suffix:v("common.totalCountSuffix","\uAC1C")}},[k,q.length,v]),H=o.useMemo(()=>r.map(se=>({label:se.label,onClick:se.sortable!==!1?()=>j(se.key):void 0,className:se.className,sortDir:se.sortable!==!1&&R===se.key?K?"asc":"desc":null})),[r,R,K,j]),oe=o.useMemo(()=>C.map(se=>({value:String(se),label:v("common.pageSizeLabel",{n:se})})),[C,v]);return n.jsxs(Wn,{className:`popup-list ${N}`,title:t,onClose:y,children:[x,"label"in O&&n.jsx("p",{className:"toolbar__count body-1",children:O.label}),n.jsx(Po,{count:"label"in O?void 0:{value:q.length,prefix:O.prefix,suffix:O.suffix},search:F?{value:D,onChange:A,placeholder:B}:void 0,pageSize:{options:oe,value:P,onChange:L},pagination:{page:V,total:J,onChange:U}}),n.jsx(Ko,{size:"medium",gridTemplateColumns:l,mobileGridTemplateColumns:i,resizable:!0,resizeStorageKey:s,fields:H,items:T,onRowClick:g,renderRow:se=>{const re=h!=null?se.id!=null&&h.has(se.id):p!=null&&se.id===p;return r.map(ee=>({content:ee.render?ee.render(se):se[ee.key]??"",className:we(ee.className,re&&"popup-list__row--selected")}))},empty:F&&D!==""&&a.length>0?E:w})]})}function dd(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:y,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")??[]),R=b==="confirm"?A[A.length-1]:c?void 0:A[d?1:0];R&&!R.disabled&&R.focus()},[]);const N=o.useRef(!1),[v,B]=o.useState(!1),w=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;B(!0);let R=!1;try{R=await D()}catch($){typeof console<"u"&&console.error($)}finally{R||(N.current=!1,B(!1),requestAnimationFrame(()=>{const $=document.activeElement;(!$||$===document.body)&&A?.isConnected&&A.focus()}))}};return n.jsxs(Wn,{title:t,onClose:y,closeDisabled:v,inline:C,size:f,className:we("confirm-popup",r!=null&&"confirm-popup--has-top",_),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||v,onClick:async({closeWithAnimation:D})=>{await E(async()=>{const A=w(D);await d.onClick(A.close);const R=d.closeOnClick??!0;return R&&D(),R||A.didClose()})}}]:[],...c?[]:[{label:u??k("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:v,onClick:({closeWithAnimation:D})=>D()}],{label:i??k("common.confirm","\uD655\uC778"),variant:m,disabled:p||v,onClick:async({closeWithAnimation:D})=>{await E(async()=>{const A=w(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(dd,{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 y=>{const C=r.trim();if(C){i(!0),c(null);try{await e(C),y()}catch(f){c(Pl(f)),i(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),h=o.useCallback((y,C)=>{y.key==="Enter"&&!y.nativeEvent.isComposing&&p(C)},[p]),g=y=>{s(y.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:y})=>y()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||l,onClick:({closeWithAnimation:y})=>{p(y)}}],children:({closeWithAnimation:y})=>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,y),disabled:l,autoComplete:"off",spellCheck:!1}),u&&n.jsx("p",{id:m,className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const pd=["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 v=6+Math.random()*12,B=Math.round(Math.min(18,v*Math.min(1.5,1+r*.4))),w=pd[Math.floor(Math.random()*pd.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,R=Math.cos(A)*D,$=Math.sin(A)*D*1.35,K=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}-${N}`,side:k,size:B,color:w,delay:E,vx:R,vy:$,angularVel:K,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),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,v=Q=>{const I=[...Q].sort((q,J)=>q-J);return I[Math.floor(I.length/2)]||1},B=v(i.map(Q=>Math.abs(Q.vy))),w=v(i.map(Q=>Math.abs(Q.vx))),E=Math.sqrt(2*C*(N*.72+b))/B,D=B*E/C,A=x*.5/(w*D),R=(Q,I,q)=>Math.min(q,Math.max(I,Q)),$=R(E,.8,2.4),K=R(A,.7,2.2),M=a>0?a/V_:1,P=i.map(Q=>({...Q,life:Q.life*M,vx:Q.vx*K,vy:Q.vy*$,startTime:f+Q.delay,ended:!1})),L=_?{x:_.left-k(_.width),y:_.top+_.height+b}:{x:-k(window.innerWidth),y:window.innerHeight+b},Z=_?{x:_.left+_.width+k(_.width),y:_.top+_.height+b}:{x:window.innerWidth+k(window.innerWidth),y:window.innerHeight+b},U=Q=>{let I=!1;for(const q of P){const J=c.current[q.id];if(!J||!J)continue;if(Q<q.startTime){J.style.display="none",I=!0;continue}if(!q._inited){const z=q.side==="left"?L.x:Z.x,te=q.side==="left"?L.y:Z.y;J.style.left=`${z}px`,J.style.top=`${te}px`,J.style.transform="translate3d(0px, 0px, 0)",J.style.display="block",J.style.zIndex="100000",typeof q.color=="string"&&q.color.startsWith("var(")&&(J.style.background=q_(J,q.color)??"#FF0060"),q._inited=!0}const V=(Q-q.startTime)/1e3;if(V<0)continue;const T=q.life/1e3;if(V>=T){J.style.opacity="0",J.style.display="none",q.ended=!0;continue}I=!0;const j=q.side==="left"?L.x:Z.x,O=q.side==="left"?L.y:Z.y,H=j+q.vx*V,oe=O+q.vy*V+.5*C*V*V,se=(q.angularVel||0)*V,re=H-j,ee=oe-O;J.style.transform=`translate3d(${re}px, ${ee}px, 0) rotate(${se}deg)`,J.style.opacity=`${Math.max(0,1-V/T)}`}I?d.current=requestAnimationFrame(U):m.current?.()};d.current=requestAnimationFrame(U);const F=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(F),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,l,i]),!e)return null;const y=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(y,h.current||document.body):y}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(Mt,{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 md=o.createContext({words:[],loading:!1});function Y_(){return o.useContext(md)}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(md.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:we("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),y=o.useRef(null),[C,f]=o.useState(null),[_,b]=o.useState(!1);o.useEffect(()=>{const M=p.current;if(!M)return;const P=()=>b(M.scrollWidth>M.clientWidth+1);if(P(),typeof ResizeObserver>"u")return;const L=new ResizeObserver(P);return L.observe(M),()=>L.disconnect()},[C]);const k=e.map(M=>`${M.id}\0${M.section??""}\0${M.group??""}`).join(""),x=C&&C.shape===k?C.pages:null,[N,v]=o.useState(0);o.useEffect(()=>{const M=y.current;if(!M||typeof ResizeObserver>"u")return;const P=new ResizeObserver(()=>v(M.offsetHeight));return P.observe(M),()=>P.disconnect()},[]);const[B,w]=o.useState(0);o.useEffect(()=>{const M=h.current;if(!M||typeof ResizeObserver>"u")return;let P=null;const L=typeof requestAnimationFrame=="function"?F=>requestAnimationFrame(F):F=>setTimeout(F,16),Z=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:F=>clearTimeout(F),U=new ResizeObserver(()=>{P==null&&(P=L(()=>{P=null,w(F=>F+1)}))});return Array.from(M.children).forEach(F=>U.observe(F)),()=>{U.disconnect(),P!=null&&Z(P)}},[k]),o.useLayoutEffect(()=>{const M=h.current,P=y.current;if(!M||!P)return;const L=T=>T.getBoundingClientRect().height||T.offsetHeight,Z=new Map;g.current?.querySelectorAll("[data-chrome-section]").forEach(T=>{Z.set(T.dataset.chromeSection??"",L(T))});const U=T=>L(P)-(Z.get(T??"")??0),F=Array.from(M.children).map(T=>L(T)),Q=[];e.forEach((T,j)=>{const O=Q[Q.length-1],H=O?e[O[0]]:void 0;H&&T.group!=null&&H.group===T.group&&H.section===T.section?O.push(j):Q.push([j])});const I=[];let q=[],J=0;const V=()=>{q.length&&I.push(q),q=[],J=0};Q.forEach(T=>{const j=T.reduce((H,oe)=>H+F[oe],0),O=U(e[T[0]].section);q.length&&e[q[0]].section!==e[T[0]].section&&V(),j>O?T.forEach(H=>{q.length&&J+F[H]>O+.01&&V(),q.push(H),J+=F[H]}):(q.length&&J+j>O+.01&&V(),T.forEach(H=>q.push(H)),J+=j)}),V(),f(T=>T&&T.shape===k&&JSON.stringify(T.pages)===JSON.stringify(I)?T:{shape:k,pages:I})},[k,N,l,i,u,B]);const E=To,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."]}),R=(M,P,L)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:L!=null&&t?.[L]||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(M,P)})]})}),$=Array.from(new Set(e.map(M=>M.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:we("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:y,className:"report-doc__ruler"}),n.jsx("div",{ref:g,children:$.map(M=>{const P=R(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:L,footer:Z}=R(P+1,x.length,e[M[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[L,M.map(U=>n.jsx("div",{children:e[U].content},e[U].id)),Z]},P)})})]})}function ew({title:e,fields:t,columns:a=4,className:r,style:s}){return n.jsxs("div",{className:we("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)&&ur(p)}},[]),n.jsxs("div",{ref:d,className:we("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",y=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:we("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}),y&&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:y,className:C}){const{t:f}=xe.useTranslation(),_=o.useId(),b=t?`h${t}`:"span",k=s!=null,x=we("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(hn,{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:y}))]})}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 hd(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,cellCapacity:g,items:y,onSaveComplete:C,onLoad:f,onRemoveItem:_,onReset:b,resetLabel:k,saveButtonLabel:x,secondarySaveButtonLabel:N,onReorder:v,showCellCount:B,onAddItem:w,className:E,renderSavePopup:D,renderWordSearch:A,hideControls:R,saveOnly:$,tableName:K,nameValue:M,onNameChange:P,descriptionValue:L,onDescriptionChange:Z,namePlaceholder:U,descriptionPlaceholder:F,existingNames:Q,editingName:I,onCancel:q,initialItemsPerPage:J,renderCellAction:V,actionsLeftExtra:T}){const{t:j}=xe.useTranslation(),O=k??j("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),H=y===void 0,oe=!!P,[se,re]=o.useState([]),ee=(M??"").trim(),z=ee||(U??"").trim(),te=(L??"").trim()||(F??"").trim(),W=(Q??[]).map(ye=>ye.trim().toLowerCase()),G=[I?.trim().toLowerCase(),...se].filter(ye=>!!ye),de=[...W];for(const ye of G){const je=de.indexOf(ye);je!==-1&&de.splice(je,1)}const Ee=ee!==""&&de.includes(ee.toLowerCase()),[ve,me]=o.useState(Array(4).fill(null)),[ce,ge]=o.useState(4),[he,pe]=o.useState(null),Le=ve.slice(0,ce),ze=!!d?.show,[Me,Ve]=o.useState(!0),[We,dt]=o.useState(!0),lt=d&&{...d,top:Me,bottom:We},[tt,yt]=o.useState("landscape"),[_e,Ge]=o.useState(["image","word","standardPron"]),[Be,qe]=o.useState("show"),[Ke,pt]=o.useState(!0),[xt,Dt]=o.useState(!0),St=o.useRef(null),it=o.useRef([]),[at,At]=o.useState(J==="all"?Number.POSITIVE_INFINITY:J??8),[_t,Lt]=o.useState("right"),[Ne,$e]=o.useState(!1),[Se,He]=o.useState(!1),{toastMessage:rt,toastType:vt,showWarning:et,clearToast:Nt}=Wi("warning"),Ye=o.useCallback(()=>pe(null),[pe]);w&&!H&&!B&&!g&&Tt("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 cellCapacity \uB098 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.'),p&&H&&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[bt,kt]=o.useState(()=>Math.max(y?.length??1,1)),gt=Math.max(g??0,y?.length??0,1),ft=H?ce:B?Math.max(bt,y?.length??1,1):gt,{width:ut,height:De}=Jn[tt],nt=!H&&!B,ae=Math.min(at,Math.max(gt,1)),Ce=nt?ae:ft,Fe=nt?Math.max(1,Math.ceil(gt/Math.max(1,Ce))):0,Qe=nt?Array.from({length:Fe},(ye,je)=>(y??[]).slice(je*Ce,(je+1)*Ce)):null,ct=!!Qe&&Qe.length>1,ot=H?Le.some(ye=>ye!==null&&ye.length>1):(y??[]).some(ye=>(ye.words??[]).length>1),It=K?.trim()||`${ql($a())} ${ot?j("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):j("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,Yt=o.useCallback(()=>ct?it.current.filter(ye=>ye!==null):St.current?[St.current]:[],[ct]),{print:kn,openNewWindow:Vt,downloadHtml:Zt}=us({getElements:Yt,paperW:ut,paperH:De,fileName:It,onPopupBlocked:()=>{et(j("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),Rt=ye=>{ge(ye),me(je=>je.length>=ye?je:[...je,...Array(ye-je.length).fill(null)]),pe(null)},ht=ye=>{me(je=>{const le=[...je];return le[ye]=null,le}),he===ye&&pe(null)},Ct=ye=>{if(he===null)return;const je=he;me(S=>{const Y=[...S];return Y[je]=ye.length>0?ye:null,Y});const le=Le.findIndex((S,Y)=>Y>je&&S===null);pe(le!==-1?le:null)},wt=H?Le.some(ye=>ye?.some(je=>!!je.colloquialPronunciation)):(y??[]).some(ye=>(ye.words??[]).some(je=>!!je.colloquialLabel)),zt=o.useMemo(()=>la()?H?ve.slice(0,ce).flatMap(ye=>(ye??[]).map(je=>[je.word,je.homonum])):(ye=>ye.flatMap(je=>(je.words??[]).map(le=>[le.label,le.homonum])))([...p?[p]:[],...y??[]]):[],[H,ve,ce,y,p]),[Cn,An]=o.useState(!1);o.useEffect(()=>{if(zt.length===0)return;let ye=!1;return Promise.all(zt.map(([je,le])=>Dl(je,le))).then(je=>{ye||An(je.some(Boolean))},()=>{}),()=>{ye=!0}},[zt]);const Rn=zt.length>0&&Cn,pn=o.useMemo(()=>[...H||B?[{label:j("wordTable.filter.columns","\uCE78 \uC218"),items:E4.map(ye=>({value:`${ye}\uCE78`,displayLabel:j("wordTable.filter.column",{count:ye})})),display:"segmented"}]:[],...nt&&(y?.length??0)>0?[fc(j,{hasPairs:ot,itemCount:gt})]:[],...ct?[D4(j)]:[]],[j,H,B,nt,y?.length,ot,gt,ct]),Gt={...H||B?{[j("wordTable.filter.columns","\uCE78 \uC218")]:`${ft}\uCE78`}:{},...nt&&(y?.length??0)>0?{[j(ot?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${ae}\uAC1C`}:{},...ct?{[j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:_t}:{}},fn=(ye,je)=>{je===j("wordTable.filter.columns","\uCE78 \uC218")?H?Rt(parseInt(ye)):kt(parseInt(ye)):je===j(ot?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?At(bc(parseInt(ye),gt)):je===j("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Lt(gc(ye))},Ft=H?cw(Le.filter(ye=>ye!==null&&ye.length>0).map(ye=>({id:js(ye),words:ye.map(hd)}))):y??[],Xt=()=>{H&&me(ye=>ye.length>ce?ye.slice(0,ce):ye)},Wt=(ye=!1)=>{if(He(ye),oe&&C){const je=z.trim().toLowerCase();je&&re(le=>le.includes(je)?le:[...le,je]),C(z,Ft,te||void 0,ye),Xt();return}if($&&C){C("",Ft,void 0,ye),Xt();return}if(C){$e(!0);return}Zt()},[vn,ie]=o.useState(!1),[Ae,Re]=o.useState(""),Ue=Ae.trim(),Ie=Ue!==""&&W.includes(Ue.toLowerCase()),X=()=>{Re(z?j("wordTable.save.copyName",{name:z,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),ie(!0)},ue=()=>{!Ue||Ie||!C||(C(Ue,Ft,te||void 0,!0),Xt(),ie(!1))},ke=Ft.length===0,Oe=ke||oe&&(z===""||Ee),Ze=()=>{if(ke){et(j("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(oe&&z===""){et(j("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}oe&&Ee&&et(j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},Je=n.jsx(ya,{items:Ft,orientation:tt,contentTypes:_e,baseItem:p,baseContentTypes:h,cutLine:Be,showOutline:Ke,showDivLine:xt,count:ft});return n.jsxs(n.Fragment,{children:[n.jsxs(ga,{type:"page",icon:t,title:e,disc:a,className:we("word-table-block",E),children:[vn&&n.jsx(Wn,{size:"small",title:N??j("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>ie(!1),footer:({closeWithAnimation:ye})=>n.jsxs(n.Fragment,{children:[n.jsx(be,{htmlType:"button",size:48,type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:ye}),n.jsx(be,{htmlType:"button",size:48,type:"bar",variant:"main",label:j("common.save","\uC800\uC7A5"),disabled:!Ue||Ie,onClick:ue})]}),children:n.jsx(Xn,{label:j("wordTable.save.nameLabel","\uC774\uB984"),value:Ae,onChange:Re,placeholder:j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:ue,error:Ie?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ne&&C&&D?.({defaultName:typeof e=="string"?e:j("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:Je,previewW:ut,previewH:De,items:Ft,existingNames:uw().map(ye=>ye.name),saveAsNew:Se,onSave:(ye,je)=>{C(ye,Ft,je,Se),Xt(),$e(!1)},onCancel:()=>$e(!1)}),(H||w)&&he!==null&&A?.({cellIndex:he,onConfirm:H?Ct:ye=>{if(w){const je=ye[0];if(je){const le=new Set((y??[]).map(Y=>Y.id));let S=js([je]);for(let Y=2;le.has(S);Y++)S=`${js([je])}~${Y}`;w({id:S,words:[hd(je)]})}}pe(null)},onClose:Ye}),!R&&n.jsx(os,{title:r,collapsible:s,defaultCollapsed:l,collapsed:i,onCollapsedChange:u,headerSummary:c,hasImage:Rn,hasColloquial:wt,contentTypes:_e,orientation:tt,showOutline:Ke,cutLine:Be,showDivLine:xt,setters:{setContentTypes:Ge,setOrientation:yt,setShowOutline:pt,setCutLine:qe,setShowDivLine:Dt,setShowTopInfo:Ve,setShowBottomInfo:dt},showCutLine:(nt?Ce:ft)>1,showDivLine2:ot,middleSections:pn,extraSelected:Gt,onExtraSelect:fn,showPaperBands:ze,showTopInfo:Me,showBottomInfo:We}),ct&&Qe?n.jsx("div",{className:"word-table-block__pages",children:Qe.map((ye,je)=>n.jsx(ya,{orientation:tt,contentTypes:_e,cutLine:Be,showOutline:Ke,showDivLine:xt,count:Ce,items:ye,baseItem:p,baseContentTypes:h,onRemoveItem:_,onReorder:v&&((le,S)=>v(le+je*Ce,S+je*Ce)),renderCellAction:V&&((le,S)=>V(le+je*Ce,S)),showFillerAdd:!!w,onActivateCell:w?(le=>pe(le+je*Ce)):void 0,addableCount:Math.max(0,Math.min(Ce,gt-je*Ce)),brand:lt,code:m,contentRef:le=>{it.current[je]=le},pageNumber:{current:je+1,total:Qe.length},pageNumberPosition:_t},je))}):n.jsx(ya,{orientation:tt,contentTypes:_e,cutLine:Be,showOutline:Ke,showDivLine:xt,count:ft,items:H?void 0:y??[],baseItem:H?void 0:p,baseContentTypes:h,editCells:H?Le:void 0,activeCell:he,onActivateCell:H||w?pe:void 0,onRemoveCell:H?ht:void 0,onRemoveItem:H?void 0:_,onReorder:H?void 0:v,renderCellAction:H?void 0:V,brand:lt,code:m,showFillerAdd:!!w,contentRef:St}),!R&&!$&&T!=null&&n.jsx("div",{className:"word-table-block__table-actions",children:T}),oe&&!R&&n.jsxs(Nr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(Ln,{variant:"custom",label:j("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(Xn,{required:!0,value:M??"",onChange:P,placeholder:U?U+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:Ee?j("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ye=>{(ye.key==="Tab"&&!ye.shiftKey||ye.key===" ")&&!(M??"").trim()&&(U??"").trim()&&(ye.preventDefault(),P?.(U??""))}})}),n.jsx(Ln,{variant:"custom",label:j("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(Xn,{value:L??"",onChange:Z,placeholder:F?F+j("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):j("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:j("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:ye=>{(ye.key==="Tab"&&!ye.shiftKey||ye.key===" ")&&!(L??"").trim()&&(F??"").trim()&&(ye.preventDefault(),Z?.(F??""))}})})]})]}),!R&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!$&&f&&n.jsx(be,{htmlType:"button",size:40,type:"bar",label:j("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:f}),!$&&b&&n.jsx(be,{htmlType:"button",size:40,type:"bar",label:O,onClick:b}),!$&&n.jsx(be,{htmlType:"button",size:40,type:"bar",label:j("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Vt})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[q&&n.jsx(be,{htmlType:"button",size:"56",type:"bar",label:j("common.cancel","\uCDE8\uC18C"),onClick:q}),!$&&n.jsx(be,{htmlType:"button",size:"56",type:"bar",label:j("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:kn}),N&&n.jsx(be,{htmlType:"button",size:"56",type:"bar",label:N,onClick:()=>oe?X():Wt(!0),disabled:ke,onDisabledClick:()=>{et(j("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:x??j("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Wt(!1),disabled:Oe,onDisabledClick:Ze})]})]}),n.jsx(fa,{message:rt,type:vt,onClose:Nt})]})}const pw=8;function Cd({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:we("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((y,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:y.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:y,selected:C,onClick:f,onMore:_,titleNode:b,className:k}){const{t:x}=xe.useTranslation(),N=b!=null,v=m!=null||p!=null||h!=null||g!=null,B=w=>{w.target===w.currentTarget&&!N&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),f?.())};return n.jsxs("div",{className:we("word-table-button",C?"word-table-button--selected":"",v?"":"word-table-button--no-footer",k),role:"button",tabIndex:0,"aria-label":s?`${t} (${s})`:t,onClick:N?void 0:f,onKeyDown:B,children:[d&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":x("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(Cd,{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:w=>{w.stopPropagation(),_(w)}})]}),(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(Mt,{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(Mt,{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})]})]}),v&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[m&&(y?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:w=>{w.stopPropagation(),y()},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(Mt,{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(Mt,{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=ne("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"}]],bw=ae("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,y=gw(u),C=u==="done",f=!!c;function _(B){return f&&y===B?"error":y>B?"done":y===B?"active":"pending"}const b=_(1),k=_(2),x=_(3),N=u==="image-match"&&h?Math.round((p??0)/h*100):void 0,v=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:v}),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 y=null;g==="noise"?y={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:g==="short"?y={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:g==="long"?y={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:g==="order"&&(y={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),i(y),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=oy,exports.Alert=$2,exports.AppHeader=Xy,exports.AudioMeter=Uo,exports.AudioPlayer=gs,exports.Avatar=W2,exports.Badge=$t,exports.BarChart=$v,exports.BarChartControls=Su,exports.Board=sv,exports.BottomNav=Ui,exports.BrandIdentity=Xi,exports.BrandLogo=Ev,exports.Breadcrumb=q2,exports.BulkBar=gv,exports.Button=be,exports.CORE_VERSION=Yg,exports.Calendar=n4,exports.CardStep=rd,exports.ChartLegend=Io,exports.ChartSection=Fo,exports.ChartTotal=Xa,exports.Checkbox=wu,exports.ChoiceChips=ux,exports.CircleBadge=j2,exports.CodeBox=bv,exports.ColorPicker=Z2,exports.CompanyMeta=pv,exports.ConfirmPopup=dd,exports.ConfirmStep=td,exports.ConfirmWithTextStep=nd,exports.ContrastFilterPanel=O_,exports.CoreScope=sy,exports.CountTile=nv,exports.CouponInputPopup=H_,exports.DEFAULT_NOISE_SETTINGS=ea,exports.DatePicker=Av,exports.DebugResultLauncher=vw,exports.DescriptionTooltip=Kn,exports.DeviceSideTable=Qv,exports.Dialog=ov,exports.Divider=T2,exports.Dropdown=hn,exports.EffectPartyPopper=Ds,exports.EffectPartyPopperHost=U_,exports.EmptyState=ay,exports.ErrorState=ry,exports.FILTER_ALL_VALUE=yn,exports.FileUpload=V2,exports.FilterPanel=Mn,exports.FilterSectionInfo=Va,exports.Footer=cx,exports.GameIntro=Iv,exports.Header=Ji,exports.Icon=st,exports.IconGridMenu=ix,exports.IconRenderer=st,exports.InfoTooltip=En,exports.ItemActions=vv,exports.LEVEL_MAX=xa,exports.LINE_CHART_HOVER_DELAY_MS=ju,exports.LandingBottomSticky=px,exports.LandingHeader=dx,exports.LineChart=Pv,exports.ListPopup=z_,exports.ListenStep=ed,exports.Loader=ca,exports.MARKS=xr,exports.MARK_ICON=Zu,exports.MARK_VARIANT=Xu,exports.MediaQueryOverrideContext=ni,exports.MenuTooltip=za,exports.NOISE_RATIO_MAX=Qa,exports.NOISE_RATIO_STEP=kc,exports.NoisePlayerContext=hs,exports.NoiseSettingsTooltip=Uc,exports.NoticeBox=iy,exports.NotifyTextPreview=Nv,exports.OrderListStep=ad,exports.PASS_CARD_BG_VARS=Zn,exports.POS_LABEL=ec,exports.PROMO_BANNER_BG_COMPONENTS=Li,exports.PROMO_BANNER_BG_OPTIONS=fy,exports.PROMO_BANNER_BG_VARS=Pa,exports.Page=Sr,exports.PageTitle=G_,exports.Pagination=fr,exports.Panel=Er,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=qv,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=Ov,exports.SENTENCE_TRAINING_TYPES=cs,exports.SearchSummary=I2,exports.Section=ga,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=zv,exports.SummaryStrip=X_,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=hu,exports.Table=Ko,exports.TableFilterPanel=os,exports.Tabs=F2,exports.TextBoxTooltip=Nr,exports.TextField=Xn,exports.Timeline=iv,exports.Toast=fa,exports.Toggle=_u,exports.Toolbar=Po,exports.Tooltip=gn,exports.TooltipInfo=En,exports.TooltipTextBox=Nr,exports.TopBanner=Hy,exports.TrainingBlock=r4,exports.TrainingBlockButton=Lo,exports.TrainingBlockGrid=s4,exports.TrainingCard=ow,exports.TrainingCardGroup=sw,exports.TrainingPagePopup=Hn,exports.TrainingPagePopupBottom=Gc,exports.TrainingPagePopupTitle=Kc,exports.TrainingResultPopup=id,exports.TrainingStep=ta,exports.TrainingStepAudioPlayer=gs,exports.TrainingStepBullet=Ic,exports.TrainingStepCard=Wc,exports.TrainingStepConfirm=vs,exports.TrainingStepConfirmWithText=xs,exports.TrainingStepListen=_s,exports.TrainingStepOrderList=ws,exports.TrainingStepTextBox=zc,exports.TrainingStepTitle=Oc,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=tc,exports.WordDataProvider=Z_,exports.WordDataUpdatePopup=yw,exports.WordImageTooltip=cd,exports.WordSearchFilterPanel=I_,exports.WordSearchResultBlock=$_,exports.WordTable=ya,exports.WordTableBlock=dw,exports.WordTableButton=mw,exports.WordTablePopup=L4,exports.WordTableThumbnail=Cd,exports.buildMonthChartData=Sv,exports.cellKey=W4,exports.cellLabel=z4,exports.cellsForLabels=ex,exports.clearPassCardBgTheme=jn,exports.clearPromoBannerBgTheme=en,exports.closeTrainingPopup=o_,exports.companyTypeLabel=K_,exports.createTrainingScenario=i_,exports.cx=we,exports.deriveNoiseContexts=h_,exports.derivePassCard=eu,exports.draftValues=sx,exports.effectiveNoiseVolume=ps,exports.effectiveSpeechVolume=Nc,exports.expandSlashLabel=ns,exports.formatDuration=tx,exports.getControlDateRange=Fv,exports.getPayloadTimestamp=ks,exports.getPromoBannerBgTheme=_o,exports.getSelectedFromPayload=c_,exports.getSelectedText=d_,exports.getStepPayload=Jc,exports.getSteppedPayload=p_,exports.injectPassCardBgTheme=Sn,exports.injectPromoBannerBgTheme=Qt,exports.isSelectionCorrect=m_,exports.labelOfCellKey=wc,exports.labelsForSave=O4,exports.levelToPct=hx,exports.markAfterClick=Yu,exports.marksForSave=Qo,exports.mergeNoiseSettings=Qn,exports.missesByType=Z4,exports.monthKeyOf=Ja,exports.monthKeyOfDate=Oo,exports.nextFocus=U4,exports.nextMisses=Y4,exports.noiseElementVolume=ms,exports.noiseRatioOf=er,exports.pageStartIndexes=Ju,exports.parseMonthKey=Ca,exports.passCardBgIhabTheme=uu,exports.passCardBgLeftColorGridTheme=cu,exports.passCardBgTwoCircleTheme=nu,exports.pctToLevel=Cx,exports.posLabels=nc,exports.printWordTable=p4,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=Zc,exports.reviewCells=R4,exports.reviewMeta=F4,exports.reviewSetPlan=X4,exports.reviewTableName=I4,exports.scoreKey=vr,exports.scoreSheetHeader=H4,exports.shouldConfirmDiscard=d4,exports.splitTrainingVariants=s_,exports.summarize=c4,exports.summarizeMisses=K4,exports.tableTrends=q4,exports.toDraft=nx,exports.toTrainingText=u_,exports.togglePin=ax,exports.uncoveredLabels=Q4,exports.useAnchoredMenu=Oa,exports.useBarChartControl=Du,exports.useCalendarMonth=Bu,exports.useComboboxSuggestions=vu,exports.useDiscardGuard=W_,exports.useFitScale=sc,exports.useNoisePlayer=wr,exports.useSoundCompassExam=Ly,exports.useToastLifecycle=Iu,exports.useWordData=Y_,exports.useWordTableDisplaySettings=xc,exports.useWordTablePrint=us,exports.waveBarPx=kr,exports.waveBarVal=Ar,exports.weakItems=V4,exports.weekValueOf=zo,exports.withStepTimes=Xc,exports.wordTypeLabels=ac;
|
|
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=ne("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(Mt,{variant:"sub",fill:"soft",size:"small",label:l("common.done","\uC644\uB8CC")}):c?n.jsx(Mt,{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,y=gw(u),C=u==="done",f=!!c;function _(B){return f&&y===B?"error":y>B?"done":y===B?"active":"pending"}const b=_(1),k=_(2),x=_(3),N=u==="image-match"&&h?Math.round((p??0)/h*100):void 0,v=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:co(p),total:co(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:co(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:v}),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 y=null;g==="noise"?y={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:g==="short"?y={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:g==="long"?y={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:g==="order"&&(y={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),i(y),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=oy,exports.Alert=$2,exports.AppHeader=Xy,exports.AudioMeter=Uo,exports.AudioPlayer=gs,exports.Avatar=W2,exports.Badge=Mt,exports.BarChart=$v,exports.BarChartControls=Su,exports.Board=sv,exports.BottomNav=Ui,exports.BrandIdentity=Xi,exports.BrandLogo=Ev,exports.Breadcrumb=q2,exports.BulkBar=gv,exports.Button=be,exports.CORE_VERSION=Yg,exports.Calendar=n4,exports.CardStep=rd,exports.ChartLegend=Io,exports.ChartSection=Fo,exports.ChartTotal=Xa,exports.Checkbox=wu,exports.ChoiceChips=ux,exports.CircleBadge=j2,exports.CodeBox=bv,exports.ColorPicker=Z2,exports.CompanyMeta=pv,exports.ConfirmPopup=dd,exports.ConfirmStep=td,exports.ConfirmWithTextStep=nd,exports.ContrastFilterPanel=O_,exports.CoreScope=sy,exports.CountTile=nv,exports.CouponInputPopup=H_,exports.DEFAULT_NOISE_SETTINGS=ea,exports.DatePicker=Av,exports.DebugResultLauncher=vw,exports.DescriptionTooltip=Kn,exports.DeviceSideTable=Qv,exports.Dialog=ov,exports.Divider=T2,exports.Dropdown=hn,exports.EffectPartyPopper=Ds,exports.EffectPartyPopperHost=U_,exports.EmptyState=ay,exports.ErrorState=ry,exports.FILTER_ALL_VALUE=yn,exports.FileUpload=V2,exports.FilterPanel=Mn,exports.FilterSectionInfo=Va,exports.Footer=cx,exports.GameIntro=Iv,exports.Header=Ji,exports.Icon=st,exports.IconGridMenu=ix,exports.IconRenderer=st,exports.InfoTooltip=En,exports.ItemActions=vv,exports.LEVEL_MAX=xa,exports.LINE_CHART_HOVER_DELAY_MS=ju,exports.LandingBottomSticky=px,exports.LandingHeader=dx,exports.LineChart=Pv,exports.ListPopup=z_,exports.ListenStep=ed,exports.Loader=ca,exports.MARKS=vr,exports.MARK_ICON=Zu,exports.MARK_VARIANT=Xu,exports.MediaQueryOverrideContext=ni,exports.MenuTooltip=za,exports.NOISE_RATIO_MAX=Qa,exports.NOISE_RATIO_STEP=kc,exports.NoisePlayerContext=hs,exports.NoiseSettingsTooltip=Uc,exports.NoticeBox=iy,exports.NotifyTextPreview=Nv,exports.OrderListStep=ad,exports.PASS_CARD_BG_VARS=Zn,exports.POS_LABEL=ec,exports.PROMO_BANNER_BG_COMPONENTS=Li,exports.PROMO_BANNER_BG_OPTIONS=fy,exports.PROMO_BANNER_BG_VARS=Pa,exports.Page=Dr,exports.PageTitle=G_,exports.Pagination=Ro,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=qv,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=Ov,exports.SENTENCE_TRAINING_TYPES=cs,exports.SearchSummary=I2,exports.Section=ga,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=zv,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=fa,exports.Toggle=_u,exports.Toolbar=Po,exports.Tooltip=gn,exports.TooltipInfo=En,exports.TooltipTextBox=Ar,exports.TopBanner=Hy,exports.TrainingBlock=r4,exports.TrainingBlockButton=Mo,exports.TrainingBlockGrid=s4,exports.TrainingCard=ow,exports.TrainingCardGroup=sw,exports.TrainingPagePopup=Hn,exports.TrainingPagePopupBottom=Gc,exports.TrainingPagePopupTitle=Kc,exports.TrainingResultPopup=id,exports.TrainingStep=ta,exports.TrainingStepAudioPlayer=gs,exports.TrainingStepBullet=Ic,exports.TrainingStepCard=Wc,exports.TrainingStepConfirm=vs,exports.TrainingStepConfirmWithText=xs,exports.TrainingStepListen=_s,exports.TrainingStepOrderList=ws,exports.TrainingStepTextBox=zc,exports.TrainingStepTitle=Oc,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=tc,exports.WordDataProvider=Z_,exports.WordDataUpdatePopup=yw,exports.WordImageTooltip=cd,exports.WordSearchFilterPanel=I_,exports.WordSearchResultBlock=$_,exports.WordTable=ya,exports.WordTableBlock=dw,exports.WordTableButton=mw,exports.WordTablePopup=L4,exports.WordTableThumbnail=Cd,exports.buildMonthChartData=Sv,exports.cellKey=W4,exports.cellLabel=z4,exports.cellsForLabels=ex,exports.clearPassCardBgTheme=jn,exports.clearPromoBannerBgTheme=en,exports.closeTrainingPopup=o_,exports.companyTypeLabel=K_,exports.createTrainingScenario=i_,exports.cx=we,exports.deriveNoiseContexts=h_,exports.derivePassCard=eu,exports.draftValues=sx,exports.effectiveNoiseVolume=ps,exports.effectiveSpeechVolume=Nc,exports.expandSlashLabel=ns,exports.formatDuration=tx,exports.getControlDateRange=Fv,exports.getPayloadTimestamp=ks,exports.getPromoBannerBgTheme=xo,exports.getSelectedFromPayload=c_,exports.getSelectedText=d_,exports.getStepPayload=Jc,exports.getSteppedPayload=p_,exports.injectPassCardBgTheme=Sn,exports.injectPromoBannerBgTheme=Qt,exports.isSelectionCorrect=m_,exports.labelOfCellKey=wc,exports.labelsForSave=O4,exports.levelToPct=hx,exports.markAfterClick=Yu,exports.marksForSave=Qo,exports.mergeNoiseSettings=Qn,exports.missesByType=Z4,exports.monthKeyOf=Ja,exports.monthKeyOfDate=Oo,exports.nextFocus=U4,exports.nextMisses=Y4,exports.noiseElementVolume=ms,exports.noiseRatioOf=er,exports.pageStartIndexes=Ju,exports.parseMonthKey=Ca,exports.passCardBgIhabTheme=uu,exports.passCardBgLeftColorGridTheme=cu,exports.passCardBgTwoCircleTheme=nu,exports.pctToLevel=Cx,exports.posLabels=nc,exports.printWordTable=p4,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=Zc,exports.reviewCells=R4,exports.reviewMeta=F4,exports.reviewSetPlan=X4,exports.reviewTableName=I4,exports.scoreKey=yr,exports.scoreSheetHeader=H4,exports.shouldConfirmDiscard=d4,exports.splitTrainingVariants=s_,exports.summarize=c4,exports.summarizeMisses=K4,exports.tableTrends=q4,exports.toDraft=nx,exports.toTrainingText=u_,exports.togglePin=ax,exports.uncoveredLabels=Q4,exports.useAnchoredMenu=Oa,exports.useBarChartControl=Du,exports.useCalendarMonth=Bu,exports.useComboboxSuggestions=vu,exports.useDiscardGuard=W_,exports.useFitScale=sc,exports.useNoisePlayer=_r,exports.useSoundCompassExam=Ly,exports.useToastLifecycle=Iu,exports.useWordData=Y_,exports.useWordTableDisplaySettings=xc,exports.useWordTablePrint=us,exports.waveBarPx=Br,exports.waveBarVal=kr,exports.weakItems=V4,exports.weekValueOf=zo,exports.withStepTimes=Xc,exports.wordTypeLabels=ac;
|