@readerseye2/cr_viewer 1.0.42 → 1.0.43

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/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";._handle_1ihf3_1{position:absolute;width:26px;height:26px;background-color:#3b82f6;box-shadow:0 2px 4px #0000004d;cursor:grab;z-index:10001;touch-action:none}._handle_1ihf3_1:active{cursor:grabbing;background-color:#2563eb}._handleStart_1ihf3_16{border-radius:13px 0 13px 13px}._handleEnd_1ihf3_21{border-radius:0 13px 13px}._run_zzb61_3{cursor:pointer}._runWrap_zzb61_7{position:relative;isolation:isolate;z-index:0}._highlight_zzb61_13:before,._highlightleft_zzb61_14:before,._highlightright_zzb61_15:before,._highlightcenter_zzb61_16:before{content:"";position:absolute;z-index:-1;top:-4px;bottom:-4px;background:var(--hl-color, pink);pointer-events:none}._highlight_zzb61_13:before{left:-4px;right:-4px}._highlightleft_zzb61_14:before{left:-4px;right:0}._highlightright_zzb61_15:before{left:0;right:-4px}._highlightcenter_zzb61_16:before{left:0;right:0}._underline_zzb61_48:after,._underlineleft_zzb61_49:after,._underlineright_zzb61_50:after,._underlinecenter_zzb61_51:after{content:"";position:absolute;left:0;right:0;height:var(--ul-thickness, .2em);bottom:calc(-1 * var(--ul-offset, .35em));background:var(--ul-color, red);pointer-events:none}._underline_zzb61_48:after{left:-4px;right:-4px}._underlineleft_zzb61_49:after{left:-4px;right:0}._underlineright_zzb61_50:after{left:0;right:0}._underlinecenter_zzb61_51:after{left:0;right:0}._scroller_kqkmq_3{height:100%;overflow-y:auto;overflow-x:hidden;outline:none;scrollbar-width:none;-ms-overflow-style:none}._scroller_kqkmq_3::-webkit-scrollbar{width:0;height:0;background:transparent;pointer-events:none}._scroller_kqkmq_3::-webkit-scrollbar-track{background:transparent;pointer-events:none}._scroller_kqkmq_3::-webkit-scrollbar-thumb{background:transparent;pointer-events:none}._scroller_kqkmq_3::-webkit-scrollbar-button,._scroller_kqkmq_3::-webkit-scrollbar-corner{display:none;pointer-events:none}@media(forced-colors:active){._scroller_kqkmq_3{scrollbar-width:auto}}._navBtn_1fciy_2{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:44px;height:44px;border:none;border-radius:8px;background:none;flex-shrink:0;color:#222;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s ease}._navBtn_1fciy_2:hover:not(:disabled){background:#0000000f}._navBtn_1fciy_2:active:not(:disabled){background:#0000001a}._navBtn_1fciy_2:disabled,._navBtn_1fciy_2._disabled_1fciy_26{opacity:.4;cursor:not-allowed;transform:none}._label_1fciy_32{margin-top:2px;font-size:.55rem;font-weight:500;text-align:center}._navGroup_1fciy_40{display:flex;gap:8px}._wrap_1hfub_4{position:absolute;left:0;right:0;bottom:0;height:auto;display:flex;flex-direction:column;padding:8px 8px 10px;box-sizing:border-box;background:#fff;color:#333;border-top:1px solid #ddd;transition:opacity .15s ease;opacity:0;pointer-events:none;container-type:inline-size;container-name:bottombar}._visible_1hfub_25{opacity:1;pointer-events:auto}._compact_1hfub_31{padding:6px 8px 8px}._compact_1hfub_31 ._row2_1hfub_34{display:none}@container bottombar (min-width: 600px){._compact_1hfub_31 ._row2_1hfub_34{display:contents}}._controls_1hfub_44{display:flex;flex-wrap:wrap;align-items:center;gap:4px}._row1_1hfub_52,._row2_1hfub_34{display:flex;align-items:center;justify-content:space-between;width:100%;gap:4px}._row2_1hfub_34{margin-top:4px}@container bottombar (min-width: 500px){._row1_1hfub_52,._row2_1hfub_34{display:contents}._controls_1hfub_44{flex-wrap:nowrap;justify-content:space-between}._row2_1hfub_34{margin-top:0}}._groupExpand_1hfub_80,._groupPlayback_1hfub_81,._groupSpeed_1hfub_82,._groupFeatures_1hfub_83,._groupNav_1hfub_84{display:flex;align-items:center;flex-shrink:0}._groupExpand_1hfub_80{gap:0}._groupPlayback_1hfub_81{gap:2px}._groupSpeed_1hfub_82{gap:0}._groupFeatures_1hfub_83,._groupNav_1hfub_84{gap:2px}._btn_1hfub_116{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:44px;height:44px;border:none;border-radius:8px;background:none;color:#222;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s ease;flex-shrink:0}._btn_1hfub_116:hover{background:#0000000f}._btn_1hfub_116:active{background:#0000001f}._btnForbidden_1hfub_141{opacity:.4;cursor:not-allowed;background:#f2f2f2!important}._btnActive_1hfub_147{background:#333;color:#fff}._btnActive_1hfub_147:hover{background:#555}._btnActive_1hfub_147:active{background:#666}._label_1hfub_158{margin-top:2px;font-size:.55rem;font-weight:500;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}._compactBtn_1hfub_168{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border:none;border-radius:4px;background:none;color:#000;cursor:pointer;padding:2px;flex-shrink:0}._compactBtn_1hfub_168:hover{background:#0000000f}._compactBtn_1hfub_168:active{background:#0000001f}._scrubberWrap_uw0cd_2{display:grid;gap:8px;-webkit-user-select:none;user-select:none;margin-bottom:6px}._labels_uw0cd_9{display:flex;justify-content:space-between;font-size:12px;color:var(--text-subtle, #666)}._labels_uw0cd_9 ._index_uw0cd_15{font-variant-numeric:tabular-nums}._controls_uw0cd_19{display:grid;grid-template-columns:1fr 40px;align-items:center;gap:8px}._controls_uw0cd_19 ._percent_uw0cd_25{display:flex;justify-content:flex-end;font-size:.8rem;font-variant-numeric:tabular-nums}._stepBtn_uw0cd_32{height:28px;border:1px solid var(--line, #ddd);background:var(--bg, #fff);border-radius:8px;font-size:16px;line-height:1;cursor:pointer}._stepBtn_uw0cd_32:disabled{opacity:.5;cursor:not-allowed}._range_uw0cd_46{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:6px;border-radius:999px;background:linear-gradient(to right,currentColor var(--pct, 50%),#e5e7eb 0);outline:none}._range_uw0cd_46::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:999px;background:currentColor;cursor:pointer}._range_uw0cd_46::-moz-range-thumb{width:16px;height:16px;border-radius:999px;background:currentColor;border:none;cursor:pointer}._WPMSpeedButtonsWrap_r3byt_1{float:right;box-sizing:border-box;display:flex;flex-direction:column}._WPMSpeedButtonsWrap_r3byt_1 ._btnWrap_r3byt_7{box-sizing:border-box;padding:2px;display:flex;gap:1px;align-items:center}._WPMSpeedButtonsWrap_r3byt_1 ._btnWrap_r3byt_7 ._label_r3byt_14{font-size:.55rem;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:24px}._WPMSpeedButtonsWrap_r3byt_1 ._btnWrap_r3byt_7 ._iconBtn_r3byt_22{padding:2px;border-radius:4px;border:1px solid #888;background:none;width:34px;height:34px;flex-shrink:0;cursor:pointer;transition:all .15s ease}._WPMSpeedButtonsWrap_r3byt_1 ._btnWrap_r3byt_7 ._iconBtn_r3byt_22:hover{background:#0000000f}._WPMSpeedButtonsWrap_r3byt_1 ._btnWrap_r3byt_7 ._iconBtn_r3byt_22:active{background:#0000001f}._WPMSpeedButtonsWrap_r3byt_1 ._btnWrap_r3byt_7 ._iconBtn_r3byt_22 img{width:100%;height:100%;object-fit:contain}._StepBtn_15t0r_1{background:none;border:none;border-radius:8px;font-size:1.6rem;display:flex;justify-content:center;align-items:center;color:#000;flex-shrink:0;width:34px;height:34px;cursor:pointer;transition:all .15s ease}._StepBtn_15t0r_1:hover{background:#0000000f}._StepBtn_15t0r_1:active{background:#0000001f}._GCPlayBtn_n54mc_1{width:var(--btn-size);height:var(--btn-size);box-sizing:border-box;border:none;outline:none;position:relative;background:none;border-radius:8px;transition:all .15s ease;cursor:pointer}._GCPlayBtn_n54mc_1:hover{background:#0000000f}._GCPlayBtn_n54mc_1:active{background:#0000001f}._GCPlayBtn_n54mc_1:focus{outline:none}._GCPlayBtn_n54mc_1:before{content:"";position:absolute;top:calc(var(--btn-size) * .3);left:calc(var(--btn-size) * .34);height:0;border-style:solid;border-width:calc(var(--btn-size) * .2) 0 calc(var(--btn-size) * .2) calc(var(--btn-size) * .4);border-color:transparent transparent transparent var(--icon-color);transition:.2s ease;transform:scale(1.3)}._GCPlayBtn_n54mc_1._playing_n54mc_34:before{top:calc(var(--btn-size) * .3);left:calc(var(--btn-size) * .32);width:calc(var(--btn-size) * .12);height:calc(var(--btn-size) * .4);border:none;background-color:var(--icon-color);box-shadow:calc(var(--btn-size) * .18) 0 0 0 var(--icon-color)}._host_gafql_3{position:absolute;left:0;right:0;top:0;z-index:30}._topbar_gafql_11{position:absolute;left:0;right:0;top:0;height:48px;display:flex;align-items:center;gap:8px;padding:0 12px;background:#fff;color:#033233;-webkit-backdrop-filter:saturate(120%) blur(6px);backdrop-filter:saturate(120%) blur(6px);transition:opacity .15s ease;opacity:0;pointer-events:none;border-bottom:4px solid #033233;box-sizing:border-box}._visible_gafql_32{opacity:1;pointer-events:auto}._backBtn_gafql_37{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:none;background:transparent;color:#033233;cursor:pointer;border-radius:50%;flex-shrink:0;transition:background .15s ease}._backBtn_gafql_37:hover{background:#0000000d}._backBtn_gafql_37:active{background:#0000004d}._title_gafql_58{font-size:18px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}._calibrationBtn_gafql_67{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:none;background:transparent;color:#033233;cursor:pointer;border-radius:50%;flex-shrink:0;transition:background .15s ease}._calibrationBtn_gafql_67:hover{background:#0000000d}._calibrationBtn_gafql_67:active{background:#0000004d}._calibrationBtn_gafql_67._disabled_gafql_87{opacity:.4;cursor:not-allowed}._calibrationBtn_gafql_67._disabled_gafql_87:hover,._calibrationBtn_gafql_67._disabled_gafql_87:active{background:transparent}._settingsBtn_gafql_95{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:none;background:transparent;color:#033233;cursor:pointer;border-radius:50%;flex-shrink:0;transition:background .15s ease}._settingsBtn_gafql_95:hover{background:#0000000d}._settingsBtn_gafql_95:active{background:#0000004d}._wrap_62su0_7{position:absolute;pointer-events:auto;background:#fff;color:#111;box-shadow:0 -6px 24px #0000001f;padding:20px 0;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:10px;overflow-y:auto;left:0;right:0;bottom:0;max-height:70%;border-top:1px solid rgba(0,0,0,.08);border-radius:16px 16px 0 0}._wrapHidden_62su0_29{transform:translateY(100%);visibility:hidden;transition:transform .22s ease,visibility 0s .22s}._wrapVisible_62su0_35{transform:translateY(0);visibility:visible;transition:transform .22s ease,visibility 0s 0s}@container viewer (min-aspect-ratio: 1/1){._wrap_62su0_7{left:auto;right:0;top:0;bottom:0;max-height:100%;width:400px;max-width:60%;border-top:none;border-left:1px solid rgba(0,0,0,.08);border-radius:0;box-shadow:-6px 0 24px #0000001f;padding:20px}._wrapHidden_62su0_29{transform:translate(100%);visibility:hidden;transition:transform .22s ease,visibility 0s .22s}._wrapVisible_62su0_35{transform:translate(0);visibility:visible;transition:transform .22s ease,visibility 0s 0s}}._scrollArea_62su0_71{width:100%;display:flex;flex-direction:column;max-width:400px;padding:0 20px;gap:10px;box-sizing:border-box}._row_62su0_81{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:45px}._label_62su0_89{width:78px;flex:0 0 78px;font-weight:700}._btn_62su0_95{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;border:1px solid rgba(0,0,0,.16);background:#fff;color:#111;border-radius:8px;padding:8px 10px;font-size:13px}._btnActive_62su0_106{background:#00000014}._btnSmall_62su0_110{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;border:1px solid rgba(0,0,0,.16);background:#fff;color:#111;border-radius:8px;padding:4px 8px;font-size:14px;line-height:1}._pill_62su0_122{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;background:#fff;color:#111;border:1px solid rgba(0,0,0,.16);border-radius:999px;padding:8px 12px;font-size:13px}._themeCircle_62su0_133{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;cursor:pointer;transition:all .2s ease;border:1px solid rgba(0,0,0,.15)}._themeCircleActive_62su0_146{border:2px solid #007aff;box-shadow:0 0 0 2px #007aff40}._stepRow_62su0_151{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px}._stepLabel_62su0_159{width:78px;flex:0 0 78px;font-weight:700}._stepValue_62su0_165{margin-left:auto;width:72px;text-align:right;font-variant-numeric:tabular-nums}._levelBox_62su0_172{width:28px;text-align:center}._inlineFlex_62su0_177{display:flex;align-items:center;gap:6px;flex-wrap:wrap}._wrapper_dbk3n_1{display:grid;place-items:center;position:absolute;top:0;right:0;bottom:0;left:0;z-index:10000;pointer-events:none}._spinner_dbk3n_10{border-radius:50%;border:3px solid #e5e7eb;border-top-color:#3b82f6;animation:_spin_dbk3n_10 linear infinite}@keyframes _spin_dbk3n_10{to{transform:rotate(360deg)}}._Overlay_ybic8_3{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;background:#11182773;display:flex;align-items:center;justify-content:center;z-index:50}._Dialog_ybic8_15{width:min(760px,90%);max-height:80vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 48px #00000040;padding:20px}._Body_ybic8_25{margin-left:20px;margin-right:20px;display:block}._Header_ybic8_32{display:flex;align-items:center;gap:12px;margin-bottom:12px}._Paging_ybic8_39{font-weight:700;font-size:1rem;color:#333;display:flex;justify-content:center;width:100%}._Remaining_ybic8_48{margin-left:auto;font-weight:700;font-size:1rem;color:#fff}._RemainingDanger_ybic8_55{color:#dc2626}._NextBtn_ybic8_59{padding:10px 16px;border-radius:10px;border:none;background:#2563eb;color:#fff;font-size:1.2rem;font-weight:700;cursor:pointer;width:100%}@keyframes _nextbtn-blink_ybic8_1{0%,49%{transform:none;box-shadow:0 0 #dc262600;outline:0 solid rgba(220,38,38,0);filter:none}50%,to{box-shadow:0 0 0 2px #dc262659,0 6px 14px #dc262640;outline:2px solid rgba(220,38,38,.45)}}._NextBtn_ybic8_59:has(._RemainingDanger_ybic8_55){animation:_nextbtn-blink_ybic8_1 1s steps(2,start) infinite}._NextBtn_ybic8_59:has(._RemainingDanger_ybic8_55):hover,._NextBtn_ybic8_59:has(._RemainingDanger_ybic8_55):focus-visible{animation-play-state:running}._CloseBtn_ybic8_96{margin-left:8px;border:none;background:transparent;color:#6b7280;cursor:pointer;font-size:14px}._Title_ybic8_106{font-weight:700;font-size:18px;margin-bottom:8px;color:#111827}._Question_ybic8_113{font-size:1.2rem;color:#111827;font-weight:700;display:flex;justify-content:center;align-items:center}._Score_ybic8_123{display:flex;justify-content:center;align-items:center;margin-bottom:16px}._Image_ybic8_130{width:100%;display:flex;justify-content:center}._Image_ybic8_130 img{width:80%}._Options_ybic8_140{display:grid;gap:8px}._OptionBtn_ybic8_145{text-align:left;padding:12px 14px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;color:#111827;cursor:pointer;font-size:1rem;transition:box-shadow .15s ease,border-color .15s ease,background .15s ease;display:flex;justify-content:center;align-items:center}._OptionBtn_ybic8_145:hover{border-color:#cbd5e1;background:#f9fafb}._OptionBtnActive_ybic8_165{border-color:#2563eb;background:#2563eb14;box-shadow:0 4px 10px #2563eb33}._Footer_ybic8_172{display:flex;justify-content:space-between;margin-top:16px;gap:8px}._PrevBtn_ybic8_179{flex:0 0 auto;padding:10px 14px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;color:#111827;cursor:pointer}._PrevBtn_ybic8_179:disabled{cursor:not-allowed;opacity:.6}._OptionBtnCorrect_ybic8_195{border-color:#16a34a!important;box-shadow:0 4px 10px #16a34a33}._Judge_ybic8_201{margin:6px 0 10px;font-weight:700;font-size:1.5rem;padding:4px;width:100%;border-radius:10px;display:flex;justify-content:center;color:#fff}._Judge_ybic8_201._Correct_ybic8_212{background:#16a34a}._Judge_ybic8_201._Incorrect_ybic8_215{background:#dc2626}._ResultHeader_ybic8_220{font-weight:800;font-size:20px;margin-bottom:8px;color:#111827}._ResultText_ybic8_227{font-size:16px;margin-bottom:12px;color:#111827}._ResultActions_ybic8_233{display:flex;justify-content:flex-end;gap:8px}._CloseBtnSoft_ybic8_239{padding:10px 16px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;color:#111827;cursor:pointer}._SummaryGrid_ybic8_249{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;margin:12px 0 16px}._StatCard_ybic8_257{border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;background:#fff;box-shadow:0 2px 6px #1118270f}._StatLabel_ybic8_265{font-size:12px;color:#6b7280}._StatValue_ybic8_270{font-size:22px;font-weight:800;margin-top:4px;color:#111827}._StatSub_ybic8_277{font-size:12px;color:#6b7280}._SplitGrid_ybic8_282{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 12px}._SplitBox_ybic8_289{border:1px dashed #e5e7eb;border-radius:10px;padding:10px 12px}._SplitTitle_ybic8_295{font-size:12px;color:#6b7280}._SplitText_ybic8_300{font-size:16px;font-weight:700;color:#111827;margin-top:2px}._Pairs_ybic8_307{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 12px}._PairItem_ybic8_314{border:1px solid #f3f4f6;border-radius:10px;padding:10px 12px;background:#fafafa}._PairLabel_ybic8_321{font-size:12px;color:#6b7280}._PairValue_ybic8_326{font-size:15px;font-weight:700;margin-top:2px;color:#111827}._WrongBox_ybic8_333{margin-top:8px;border-top:1px solid #e5e7eb;padding-top:10px}._WrongTitle_ybic8_339{font-weight:700;font-size:14px;color:#111827;margin-bottom:6px}._WrongList_ybic8_346{list-style:none;padding:0;margin:0}._WrongList_ybic8_346 li{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px dashed #f3f4f6}._Badge_ybic8_360{display:inline-block;font-size:12px;padding:2px 6px;border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:700}._WrongName_ybic8_370{flex:1;color:#111827;font-size:14px}._WrongTime_ybic8_376{font-size:12px;color:#6b7280}._Empty_ybic8_381{color:#6b7280;font-size:13px}._Hint_ybic8_387{margin-top:8px;font-size:12px;color:#6b7280}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  var Ui = Object.defineProperty;
3
3
  var Ki = (e, t, n) => t in e ? Ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var Lr = (e, t, n) => Ki(e, typeof t != "symbol" ? t + "" : t, n);
4
+ var Hr = (e, t, n) => Ki(e, typeof t != "symbol" ? t + "" : t, n);
5
5
  import { jsx as x, jsxs as ee, Fragment as wt } from "react/jsx-runtime";
6
6
  import * as Ye from "react";
7
- import W, { createContext as Ft, useContext as Ue, useMemo as me, useLayoutEffect as _t, useRef as ie, useEffect as pe, useCallback as ne, createElement as gn, useState as pt, memo as Dt, useId as Xi } from "react";
7
+ import W, { createContext as Ft, useContext as Ue, useMemo as me, useLayoutEffect as _t, useRef as ie, useEffect as pe, useCallback as ne, createElement as hn, useState as pt, memo as Dt, useId as Xi } from "react";
8
8
  import Yi from "react-dom";
9
- const Sr = Ft(void 0);
9
+ const yr = Ft(void 0);
10
10
  var an = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
11
11
  function Uo(e) {
12
12
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
13
13
  }
14
- var cn = { exports: {} }, zn = {}, un = { exports: {} }, Pn = {};
14
+ var cn = { exports: {} }, Pn = {}, un = { exports: {} }, An = {};
15
15
  /**
16
16
  * @license React
17
17
  * use-sync-external-store-shim.production.js
@@ -21,10 +21,10 @@ var cn = { exports: {} }, zn = {}, un = { exports: {} }, Pn = {};
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
23
  */
24
- var Hr;
24
+ var Nr;
25
25
  function Qi() {
26
- if (Hr) return Pn;
27
- Hr = 1;
26
+ if (Nr) return An;
27
+ Nr = 1;
28
28
  var e = W;
29
29
  function t(h, f) {
30
30
  return h === f && (h !== 0 || 1 / h === 1 / f) || h !== h && f !== f;
@@ -60,9 +60,9 @@ function Qi() {
60
60
  return f();
61
61
  }
62
62
  var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? l : u;
63
- return Pn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, Pn;
63
+ return An.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, An;
64
64
  }
65
- var An = {};
65
+ var Bn = {};
66
66
  /**
67
67
  * @license React
68
68
  * use-sync-external-store-shim.development.js
@@ -72,9 +72,9 @@ var An = {};
72
72
  * This source code is licensed under the MIT license found in the
73
73
  * LICENSE file in the root directory of this source tree.
74
74
  */
75
- var Nr;
75
+ var Fr;
76
76
  function Zi() {
77
- return Nr || (Nr = 1, process.env.NODE_ENV !== "production" && (function() {
77
+ return Fr || (Fr = 1, process.env.NODE_ENV !== "production" && (function() {
78
78
  function e(m, v) {
79
79
  return m === v && (m !== 0 || 1 / m === 1 / v) || m !== m && v !== v;
80
80
  }
@@ -122,12 +122,12 @@ function Zi() {
122
122
  }
123
123
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
124
124
  var o = W, i = typeof Object.is == "function" ? Object.is : e, s = o.useState, u = o.useEffect, a = o.useLayoutEffect, l = o.useDebugValue, d = !1, h = !1, f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
125
- An.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
126
- })()), An;
125
+ Bn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
126
+ })()), Bn;
127
127
  }
128
- var Fr;
128
+ var Dr;
129
129
  function Ko() {
130
- return Fr || (Fr = 1, process.env.NODE_ENV === "production" ? un.exports = Qi() : un.exports = Zi()), un.exports;
130
+ return Dr || (Dr = 1, process.env.NODE_ENV === "production" ? un.exports = Qi() : un.exports = Zi()), un.exports;
131
131
  }
132
132
  /**
133
133
  * @license React
@@ -138,16 +138,16 @@ function Ko() {
138
138
  * This source code is licensed under the MIT license found in the
139
139
  * LICENSE file in the root directory of this source tree.
140
140
  */
141
- var Dr;
141
+ var Wr;
142
142
  function Ji() {
143
- if (Dr) return zn;
144
- Dr = 1;
143
+ if (Wr) return Pn;
144
+ Wr = 1;
145
145
  var e = W, t = Ko();
146
146
  function n(l, d) {
147
147
  return l === d && (l !== 0 || 1 / l === 1 / d) || l !== l && d !== d;
148
148
  }
149
149
  var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, i = e.useRef, s = e.useEffect, u = e.useMemo, a = e.useDebugValue;
150
- return zn.useSyncExternalStoreWithSelector = function(l, d, h, f, m) {
150
+ return Pn.useSyncExternalStoreWithSelector = function(l, d, h, f, m) {
151
151
  var v = i(null);
152
152
  if (v.current === null) {
153
153
  var y = { hasValue: !1, value: null };
@@ -187,9 +187,9 @@ function Ji() {
187
187
  },
188
188
  [c]
189
189
  ), a(c), c;
190
- }, zn;
190
+ }, Pn;
191
191
  }
192
- var Bn = {};
192
+ var Gn = {};
193
193
  /**
194
194
  * @license React
195
195
  * use-sync-external-store-shim/with-selector.development.js
@@ -199,15 +199,15 @@ var Bn = {};
199
199
  * This source code is licensed under the MIT license found in the
200
200
  * LICENSE file in the root directory of this source tree.
201
201
  */
202
- var Wr;
202
+ var $r;
203
203
  function es() {
204
- return Wr || (Wr = 1, process.env.NODE_ENV !== "production" && (function() {
204
+ return $r || ($r = 1, process.env.NODE_ENV !== "production" && (function() {
205
205
  function e(l, d) {
206
206
  return l === d && (l !== 0 || 1 / l === 1 / d) || l !== l && d !== d;
207
207
  }
208
208
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
209
209
  var t = W, n = Ko(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, s = t.useEffect, u = t.useMemo, a = t.useDebugValue;
210
- Bn.useSyncExternalStoreWithSelector = function(l, d, h, f, m) {
210
+ Gn.useSyncExternalStoreWithSelector = function(l, d, h, f, m) {
211
211
  var v = i(null);
212
212
  if (v.current === null) {
213
213
  var y = { hasValue: !1, value: null };
@@ -249,14 +249,14 @@ function es() {
249
249
  [c]
250
250
  ), a(c), c;
251
251
  }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
252
- })()), Bn;
252
+ })()), Gn;
253
253
  }
254
- var $r;
254
+ var Vr;
255
255
  function ts() {
256
- return $r || ($r = 1, process.env.NODE_ENV === "production" ? cn.exports = Ji() : cn.exports = es()), cn.exports;
256
+ return Vr || (Vr = 1, process.env.NODE_ENV === "production" ? cn.exports = Ji() : cn.exports = es()), cn.exports;
257
257
  }
258
258
  var ns = ts();
259
- const rs = /* @__PURE__ */ Uo(ns), Vr = (e) => {
259
+ const rs = /* @__PURE__ */ Uo(ns), qr = (e) => {
260
260
  let t;
261
261
  const n = /* @__PURE__ */ new Set(), r = (l, d) => {
262
262
  const h = typeof l == "function" ? l(t) : l;
@@ -266,8 +266,8 @@ const rs = /* @__PURE__ */ Uo(ns), Vr = (e) => {
266
266
  }
267
267
  }, o = () => t, u = { setState: r, getState: o, getInitialState: () => a, subscribe: (l) => (n.add(l), () => n.delete(l)) }, a = t = e(r, o, u);
268
268
  return u;
269
- }, rn = ((e) => e ? Vr(e) : Vr), { useSyncExternalStoreWithSelector: os } = rs, is = (e) => e;
270
- function Tn(e, t = is, n) {
269
+ }, rn = ((e) => e ? qr(e) : qr), { useSyncExternalStoreWithSelector: os } = rs, is = (e) => e;
270
+ function kn(e, t = is, n) {
271
271
  const r = os(
272
272
  e.subscribe,
273
273
  e.getState,
@@ -278,13 +278,13 @@ function Tn(e, t = is, n) {
278
278
  return W.useDebugValue(r), r;
279
279
  }
280
280
  function X(e, t) {
281
- const n = Ue(Sr);
281
+ const n = Ue(yr);
282
282
  if (!n)
283
283
  throw new Error("useCRViewerScopedStore must be used inside <InternalCRViewerProvider>");
284
- return Tn(n, e, t);
284
+ return kn(n, e, t);
285
285
  }
286
- function kn() {
287
- const e = Ue(Sr);
286
+ function Rn() {
287
+ const e = Ue(yr);
288
288
  if (!e)
289
289
  throw new Error("useCRViewerStoreApi must be used inside <InternalCRViewerProvider>");
290
290
  return e;
@@ -354,18 +354,18 @@ function It() {
354
354
  throw new Error("useViewerEventBridgeStoreApi must be used inside <ViewerEventBridgeProvider>");
355
355
  return e;
356
356
  }
357
- const yr = Ft(void 0);
357
+ const xr = Ft(void 0);
358
358
  function yt() {
359
- const e = Ue(yr);
359
+ const e = Ue(xr);
360
360
  if (!e)
361
361
  throw new Error("useProgressStoreApi must be used within InternalCRViewerProgressProvider");
362
362
  return e;
363
363
  }
364
364
  function j(e, t) {
365
- const n = Ue(yr);
365
+ const n = Ue(xr);
366
366
  if (!n)
367
367
  throw new Error("useProgressStore must be used within InternalCRViewerProgressProvider");
368
- return Tn(n, (o) => e(o.progress), t);
368
+ return kn(n, (o) => e(o.progress), t);
369
369
  }
370
370
  function as({
371
371
  onSingle: e,
@@ -395,7 +395,7 @@ function as({
395
395
  );
396
396
  return { onClick: i, onDoubleClick: s };
397
397
  }
398
- const bn = {
398
+ const vn = {
399
399
  light: {
400
400
  bg: "#ffffff",
401
401
  fg: "#111827",
@@ -424,14 +424,14 @@ const bn = {
424
424
  overlayFg: "#1b3d1f",
425
425
  borderColor: "#93b48b"
426
426
  }
427
- }, Gn = [8, 16, 24, 40, 64], Ln = [1.2, 1.4, 1.6, 1.8, 2, 2.2, 2.4], Hn = [4, 8, 12, 16, 24], ur = (e) => Math.round(12 + (e - 1) * (16 / 11)), cs = (e) => {
427
+ }, Ln = [8, 16, 24, 40, 64], Hn = [1.2, 1.4, 1.6, 1.8, 2, 2.2, 2.4], Nn = [4, 8, 12, 16, 24], dr = (e) => Math.round(12 + (e - 1) * (16 / 11)), cs = (e) => {
428
428
  let t = 1, n = 1 / 0;
429
429
  for (let r = 1; r <= 12; r++) {
430
- const o = ur(r), i = Math.abs(o - e);
430
+ const o = dr(r), i = Math.abs(o - e);
431
431
  i < n && (t = r, n = i);
432
432
  }
433
433
  return t;
434
- }, Nn = (e, t) => {
434
+ }, Fn = (e, t) => {
435
435
  let n = 0, r = 1 / 0;
436
436
  return t.forEach((o, i) => {
437
437
  const s = Math.abs(o - e);
@@ -533,11 +533,11 @@ function us(e) {
533
533
  })),
534
534
  // ===== 파생: 맵/레벨 =====
535
535
  maps: {
536
- MARGIN_MAP: Gn,
537
- LINEHEIGHT_MAP: Ln,
538
- BREAK_GAP_MAP: Hn,
536
+ MARGIN_MAP: Ln,
537
+ LINEHEIGHT_MAP: Hn,
538
+ BREAK_GAP_MAP: Nn,
539
539
  // ✅ (추가)
540
- fontSizeFromLevel: ur
540
+ fontSizeFromLevel: dr
541
541
  },
542
542
  // ✅ (추가) 포인터/끊기 설정 액션
543
543
  setPointerStyle: (i) => r({ pointerStyle: i }),
@@ -552,18 +552,18 @@ function us(e) {
552
552
  },
553
553
  setBreakGapPx: (i) => r({ breakGapPx: i }),
554
554
  setBreakGapLevel: (i) => {
555
- const s = Hn[Math.max(1, Math.min(5, i)) - 1];
555
+ const s = Nn[Math.max(1, Math.min(5, i)) - 1];
556
556
  r({ breakGapPx: s });
557
557
  },
558
- getBreakGapLevel: () => Nn(o().breakGapPx, Hn),
558
+ getBreakGapLevel: () => Fn(o().breakGapPx, Nn),
559
559
  // ✅ (추가)
560
560
  getFontLevel: () => cs(o().fontSizePx),
561
- getLineLevel: () => Nn(o().lineHeight, Ln),
562
- getMarginLevel: () => Nn(o().marginX, Gn),
563
- setFontLevel: (i) => r({ fontSizePx: ur(Math.max(1, Math.min(12, i))) }),
564
- setLineLevel: (i) => r({ lineHeight: Ln[Math.max(1, Math.min(7, i)) - 1] }),
561
+ getLineLevel: () => Fn(o().lineHeight, Hn),
562
+ getMarginLevel: () => Fn(o().marginX, Ln),
563
+ setFontLevel: (i) => r({ fontSizePx: dr(Math.max(1, Math.min(12, i))) }),
564
+ setLineLevel: (i) => r({ lineHeight: Hn[Math.max(1, Math.min(7, i)) - 1] }),
565
565
  setMarginLevel: (i) => {
566
- const s = Gn[Math.max(1, Math.min(5, i)) - 1];
566
+ const s = Ln[Math.max(1, Math.min(5, i)) - 1];
567
567
  r({ marginX: s, marginY: s });
568
568
  },
569
569
  setMuteAudio: (i) => {
@@ -608,8 +608,8 @@ function us(e) {
608
608
  setViewportSize: (i, s) => r({ viewportWidth: i, viewportHeight: s })
609
609
  }));
610
610
  }
611
- const Rn = 0, Ct = 1, Wt = 2, Qo = 4;
612
- function qr(e) {
611
+ const _n = 0, Ct = 1, Wt = 2, Qo = 4;
612
+ function jr(e) {
613
613
  return () => e;
614
614
  }
615
615
  function ds(e) {
@@ -618,13 +618,13 @@ function ds(e) {
618
618
  function Zo(e, t) {
619
619
  return (n) => e(t(n));
620
620
  }
621
- function jr(e, t) {
621
+ function Ur(e, t) {
622
622
  return () => e(t);
623
623
  }
624
624
  function fs(e, t) {
625
625
  return (n) => e(t, n);
626
626
  }
627
- function xr(e) {
627
+ function wr(e) {
628
628
  return e !== void 0;
629
629
  }
630
630
  function ps(...e) {
@@ -634,7 +634,7 @@ function ps(...e) {
634
634
  }
635
635
  function $t() {
636
636
  }
637
- function _n(e, t) {
637
+ function Mn(e, t) {
638
638
  return t(e), e;
639
639
  }
640
640
  function gs(e, t) {
@@ -647,16 +647,16 @@ function Ie(e, t) {
647
647
  return e(Ct, t);
648
648
  }
649
649
  function fe(e, t) {
650
- e(Rn, t);
650
+ e(_n, t);
651
651
  }
652
- function wr(e) {
652
+ function Ir(e) {
653
653
  e(Wt);
654
654
  }
655
655
  function Pe(e) {
656
656
  return e(Qo);
657
657
  }
658
658
  function oe(e, t) {
659
- return Ie(e, fs(t, Rn));
659
+ return Ie(e, fs(t, _n));
660
660
  }
661
661
  function at(e, t) {
662
662
  const n = e(Ct, (r) => {
@@ -664,7 +664,7 @@ function at(e, t) {
664
664
  });
665
665
  return n;
666
666
  }
667
- function Ur(e) {
667
+ function Kr(e) {
668
668
  let t, n;
669
669
  return (r) => (o) => {
670
670
  t = o, n && clearTimeout(n), n = setTimeout(() => {
@@ -699,7 +699,7 @@ function H(e, ...t) {
699
699
  return ((r, o) => {
700
700
  switch (r) {
701
701
  case Wt:
702
- wr(e);
702
+ Ir(e);
703
703
  return;
704
704
  case Ct:
705
705
  return Ie(e, n(o));
@@ -762,7 +762,7 @@ function D(e) {
762
762
  const n = ve();
763
763
  return ((r, o) => {
764
764
  switch (r) {
765
- case Rn:
765
+ case _n:
766
766
  t = o;
767
767
  break;
768
768
  case Ct: {
@@ -776,13 +776,13 @@ function D(e) {
776
776
  });
777
777
  }
778
778
  function je(e, t) {
779
- return _n(D(t), (n) => oe(e, n));
779
+ return Mn(D(t), (n) => oe(e, n));
780
780
  }
781
781
  function ve() {
782
782
  const e = [];
783
783
  return ((t, n) => {
784
784
  switch (t) {
785
- case Rn:
785
+ case _n:
786
786
  e.slice().forEach((r) => {
787
787
  r(n);
788
788
  });
@@ -799,7 +799,7 @@ function ve() {
799
799
  });
800
800
  }
801
801
  function tt(e) {
802
- return _n(ve(), (t) => oe(e, t));
802
+ return Mn(ve(), (t) => oe(e, t));
803
803
  }
804
804
  function ye(e, t = [], { singleton: n } = { singleton: !0 }) {
805
805
  return {
@@ -831,7 +831,7 @@ function Ne(...e) {
831
831
  }), function(i, s) {
832
832
  switch (i) {
833
833
  case Wt: {
834
- wr(t);
834
+ Ir(t);
835
835
  return;
836
836
  }
837
837
  case Ct:
@@ -842,7 +842,7 @@ function Ne(...e) {
842
842
  function le(e, t = Jo) {
843
843
  return H(e, Me(t));
844
844
  }
845
- function dr(...e) {
845
+ function fr(...e) {
846
846
  return function(t, n) {
847
847
  switch (t) {
848
848
  case Wt:
@@ -883,9 +883,9 @@ const Ss = {
883
883
  { singleton: !0 }
884
884
  );
885
885
  function zt(e, t, n) {
886
- return Ir(e, t, n).callbackRef;
886
+ return Cr(e, t, n).callbackRef;
887
887
  }
888
- function Ir(e, t, n) {
888
+ function Cr(e, t, n) {
889
889
  const r = W.useRef(null);
890
890
  let o = (s) => {
891
891
  };
@@ -916,12 +916,12 @@ function xs(e, t, n, r, o, i, s, u, a) {
916
916
  scrollTop: Math.max(y, 0),
917
917
  viewportHeight: p
918
918
  }), i == null || i(
919
- u ? Kr("column-gap", getComputedStyle(d).columnGap, o) : Kr("row-gap", getComputedStyle(d).rowGap, o)
919
+ u ? Xr("column-gap", getComputedStyle(d).columnGap, o) : Xr("row-gap", getComputedStyle(d).rowGap, o)
920
920
  ), h !== null && e(h);
921
921
  },
922
922
  [e, t, o, i, s, r, u]
923
923
  );
924
- return Ir(l, n, a);
924
+ return Cr(l, n, a);
925
925
  }
926
926
  function ws(e, t, n, r) {
927
927
  const o = e.length;
@@ -940,7 +940,7 @@ function ws(e, t, n, r) {
940
940
  }
941
941
  return i;
942
942
  }
943
- function Kr(e, t, n) {
943
+ function Xr(e, t, n) {
944
944
  return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, Qe.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
945
945
  }
946
946
  function ei(e, t, n) {
@@ -965,7 +965,7 @@ function ei(e, t, n) {
965
965
  },
966
966
  // eslint-disable-next-line react-hooks/exhaustive-deps
967
967
  [e, t]
968
- ), { callbackRef: i, ref: s } = Ir(o, !0, n), u = W.useCallback(() => {
968
+ ), { callbackRef: i, ref: s } = Cr(o, !0, n), u = W.useCallback(() => {
969
969
  o(s.current);
970
970
  }, [o, s]);
971
971
  return W.useEffect(() => {
@@ -1057,7 +1057,7 @@ function ct(e, t, n = "k") {
1057
1057
  return ct(e.l, t, n);
1058
1058
  }
1059
1059
  function et(e, t, n) {
1060
- return Te(e) ? oi(t, n, 1) : t === e.k ? We(e, { k: t, v: n }) : t < e.k ? Xr(We(e, { l: et(e.l, t, n) })) : Xr(We(e, { r: et(e.r, t, n) }));
1060
+ return Te(e) ? oi(t, n, 1) : t === e.k ? We(e, { k: t, v: n }) : t < e.k ? Yr(We(e, { l: et(e.l, t, n) })) : Yr(We(e, { r: et(e.r, t, n) }));
1061
1061
  }
1062
1062
  function Lt() {
1063
1063
  return Xt;
@@ -1066,9 +1066,9 @@ function Ht(e, t, n) {
1066
1066
  if (Te(e))
1067
1067
  return [];
1068
1068
  const r = ct(e, t)[0];
1069
- return Is(pr(e, r, n));
1069
+ return Is(gr(e, r, n));
1070
1070
  }
1071
- function fr(e, t) {
1071
+ function pr(e, t) {
1072
1072
  if (Te(e)) return Xt;
1073
1073
  const { k: n, l: r, r: o } = e;
1074
1074
  if (t === n) {
@@ -1078,26 +1078,26 @@ function fr(e, t) {
1078
1078
  return r;
1079
1079
  {
1080
1080
  const [i, s] = ri(r);
1081
- return hn(We(e, { k: i, l: ni(r), v: s }));
1081
+ return mn(We(e, { k: i, l: ni(r), v: s }));
1082
1082
  }
1083
- } else return t < n ? hn(We(e, { l: fr(r, t) })) : hn(We(e, { r: fr(o, t) }));
1083
+ } else return t < n ? mn(We(e, { l: pr(r, t) })) : mn(We(e, { r: pr(o, t) }));
1084
1084
  }
1085
1085
  function Mt(e) {
1086
1086
  return Te(e) ? [] : [...Mt(e.l), { k: e.k, v: e.v }, ...Mt(e.r)];
1087
1087
  }
1088
- function pr(e, t, n) {
1088
+ function gr(e, t, n) {
1089
1089
  if (Te(e))
1090
1090
  return [];
1091
1091
  const { k: r, l: o, r: i, v: s } = e;
1092
1092
  let u = [];
1093
- return r > t && (u = u.concat(pr(o, t, n))), r >= t && r <= n && u.push({ k: r, v: s }), r <= n && (u = u.concat(pr(i, t, n))), u;
1093
+ return r > t && (u = u.concat(gr(o, t, n))), r >= t && r <= n && u.push({ k: r, v: s }), r <= n && (u = u.concat(gr(i, t, n))), u;
1094
1094
  }
1095
- function hn(e) {
1095
+ function mn(e) {
1096
1096
  const { l: t, lvl: n, r } = e;
1097
1097
  if (r.lvl >= n - 1 && t.lvl >= n - 1)
1098
1098
  return e;
1099
1099
  if (n > r.lvl + 1) {
1100
- if (Fn(t))
1100
+ if (Dn(t))
1101
1101
  return ii(We(e, { lvl: n - 1 }));
1102
1102
  if (!Te(t) && !Te(t.r))
1103
1103
  return We(t.r, {
@@ -1110,17 +1110,17 @@ function hn(e) {
1110
1110
  });
1111
1111
  throw new Error("Unexpected empty nodes");
1112
1112
  } else {
1113
- if (Fn(e))
1114
- return gr(We(e, { lvl: n - 1 }));
1113
+ if (Dn(e))
1114
+ return hr(We(e, { lvl: n - 1 }));
1115
1115
  if (!Te(r) && !Te(r.l)) {
1116
- const o = r.l, i = Fn(o) ? r.lvl - 1 : r.lvl;
1116
+ const o = r.l, i = Dn(o) ? r.lvl - 1 : r.lvl;
1117
1117
  return We(o, {
1118
1118
  l: We(e, {
1119
1119
  lvl: n - 1,
1120
1120
  r: o.l
1121
1121
  }),
1122
1122
  lvl: o.lvl + 1,
1123
- r: gr(We(r, { l: o.r, lvl: i }))
1123
+ r: hr(We(r, { l: o.r, lvl: i }))
1124
1124
  });
1125
1125
  } else
1126
1126
  throw new Error("Unexpected empty nodes");
@@ -1136,9 +1136,9 @@ function We(e, t) {
1136
1136
  );
1137
1137
  }
1138
1138
  function ni(e) {
1139
- return Te(e.r) ? e.l : hn(We(e, { r: ni(e.r) }));
1139
+ return Te(e.r) ? e.l : mn(We(e, { r: ni(e.r) }));
1140
1140
  }
1141
- function Fn(e) {
1141
+ function Dn(e) {
1142
1142
  return Te(e) || e.lvl > e.r.lvl;
1143
1143
  }
1144
1144
  function ri(e) {
@@ -1147,14 +1147,14 @@ function ri(e) {
1147
1147
  function oi(e, t, n, r = Xt, o = Xt) {
1148
1148
  return { k: e, l: r, lvl: n, r: o, v: t };
1149
1149
  }
1150
- function Xr(e) {
1151
- return gr(ii(e));
1150
+ function Yr(e) {
1151
+ return hr(ii(e));
1152
1152
  }
1153
1153
  function ii(e) {
1154
1154
  const { l: t } = e;
1155
1155
  return !Te(t) && t.lvl === e.lvl ? We(t, { r: We(e, { l: t.r }) }) : e;
1156
1156
  }
1157
- function gr(e) {
1157
+ function hr(e) {
1158
1158
  const { lvl: t, r: n } = e;
1159
1159
  return !Te(n) && !Te(n.r) && n.lvl === t && n.r.lvl === t ? We(n, { l: We(e, { r: n.l }), lvl: t + 1 }) : e;
1160
1160
  }
@@ -1167,15 +1167,15 @@ function si(e, t) {
1167
1167
  function Qt(e, t) {
1168
1168
  return !!(e && e[0] === t[0] && e[1] === t[1]);
1169
1169
  }
1170
- const Cr = ye(
1170
+ const Tr = ye(
1171
1171
  () => ({ recalcInProgress: D(!1) }),
1172
1172
  [],
1173
1173
  { singleton: !0 }
1174
1174
  );
1175
1175
  function li(e, t, n) {
1176
- return e[vn(e, t, n)];
1176
+ return e[Sn(e, t, n)];
1177
1177
  }
1178
- function vn(e, t, n, r = 0) {
1178
+ function Sn(e, t, n, r = 0) {
1179
1179
  let o = e.length - 1;
1180
1180
  for (; r <= o; ) {
1181
1181
  const i = Math.floor((r + o) / 2), s = e[i], u = n(s, t);
@@ -1194,16 +1194,16 @@ function vn(e, t, n, r = 0) {
1194
1194
  throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`);
1195
1195
  }
1196
1196
  function Cs(e, t, n, r) {
1197
- const o = vn(e, t, r), i = vn(e, n, r, o);
1197
+ const o = Sn(e, t, r), i = Sn(e, n, r, o);
1198
1198
  return e.slice(o, i + 1);
1199
1199
  }
1200
1200
  function xt(e, t) {
1201
1201
  return Math.round(e.getBoundingClientRect()[t]);
1202
1202
  }
1203
- function Mn(e) {
1203
+ function En(e) {
1204
1204
  return !Te(e.groupOffsetTree);
1205
1205
  }
1206
- function Tr({ index: e }, t) {
1206
+ function kr({ index: e }, t) {
1207
1207
  return t === e ? 0 : t < e ? -1 : 1;
1208
1208
  }
1209
1209
  function Ts() {
@@ -1230,7 +1230,7 @@ function ks(e, t) {
1230
1230
  continue;
1231
1231
  let a = !1, l = !1;
1232
1232
  for (const { end: d, start: h, value: f } of u)
1233
- a ? (o >= h || i === f) && (e = fr(e, h)) : (l = f !== i, a = !0), d > o && o >= h && f !== i && (e = et(e, o + 1, f));
1233
+ a ? (o >= h || i === f) && (e = pr(e, h)) : (l = f !== i, a = !0), d > o && o >= h && f !== i && (e = et(e, o + 1, f));
1234
1234
  l && (e = et(e, s, i));
1235
1235
  }
1236
1236
  return [e, n];
@@ -1244,11 +1244,11 @@ function _s({ offset: e }, t) {
1244
1244
  function Zt(e, t, n) {
1245
1245
  if (t.length === 0)
1246
1246
  return 0;
1247
- const { index: r, offset: o, size: i } = li(t, e, Tr), s = e - r, u = i * s + (s - 1) * n + o;
1247
+ const { index: r, offset: o, size: i } = li(t, e, kr), s = e - r, u = i * s + (s - 1) * n + o;
1248
1248
  return u > 0 ? u + n : u;
1249
1249
  }
1250
1250
  function ai(e, t) {
1251
- if (!Mn(t))
1251
+ if (!En(t))
1252
1252
  return e;
1253
1253
  let n = 0;
1254
1254
  for (; t.groupIndices[n] <= e + n; )
@@ -1265,7 +1265,7 @@ function ci(e, t, n) {
1265
1265
  }
1266
1266
  }
1267
1267
  function Ms(e, t, n, r = 0) {
1268
- return r > 0 && (t = Math.max(t, li(e, r, Tr).offset)), ti(Cs(e, t, n, _s), zs);
1268
+ return r > 0 && (t = Math.max(t, li(e, r, kr).offset)), ti(Cs(e, t, n, _s), zs);
1269
1269
  }
1270
1270
  function Es(e, [t, n, r, o]) {
1271
1271
  t.length > 0 && r("received item sizes", t, Qe.DEBUG);
@@ -1278,7 +1278,7 @@ function Es(e, [t, n, r, o]) {
1278
1278
  [s, u] = ks(s, t);
1279
1279
  if (s === i)
1280
1280
  return e;
1281
- const { lastIndex: a, lastOffset: l, lastSize: d, offsetTree: h } = hr(e.offsetTree, u, s, o);
1281
+ const { lastIndex: a, lastOffset: l, lastSize: d, offsetTree: h } = mr(e.offsetTree, u, s, o);
1282
1282
  return {
1283
1283
  groupIndices: n,
1284
1284
  groupOffsetTree: n.reduce((f, m) => et(f, m, Zt(m, h, o)), Lt()),
@@ -1295,16 +1295,16 @@ function Os(e) {
1295
1295
  return { endIndex: i ? i.k - 1 : 1 / 0, size: n, startIndex: t };
1296
1296
  });
1297
1297
  }
1298
- function Yr(e, t) {
1298
+ function Qr(e, t) {
1299
1299
  let n = 0, r = 0;
1300
1300
  for (; n < e; )
1301
1301
  n += t[r + 1] - t[r] - 1, r++;
1302
1302
  return r - (n === e ? 0 : 1);
1303
1303
  }
1304
- function hr(e, t, n, r) {
1304
+ function mr(e, t, n, r) {
1305
1305
  let o = e, i = 0, s = 0, u = 0, a = 0;
1306
1306
  if (t !== 0) {
1307
- a = vn(o, t - 1, Tr), u = o[a].offset;
1307
+ a = Sn(o, t - 1, kr), u = o[a].offset;
1308
1308
  const l = ct(n, t - 1);
1309
1309
  i = l[0], s = l[1], o.length && o[a].size === ct(n, t)[1] && (a -= 1), o = o.slice(0, a + 1);
1310
1310
  } else
@@ -1474,10 +1474,10 @@ const As = {
1474
1474
  (b) => {
1475
1475
  const { groupIndices: S } = Pe(p);
1476
1476
  if (b > 0)
1477
- fe(t, !0), fe(i, b + Yr(b, S));
1477
+ fe(t, !0), fe(i, b + Qr(b, S));
1478
1478
  else if (b < 0) {
1479
1479
  const _ = Pe(g);
1480
- _.length > 0 && (b -= Yr(-b, _)), fe(s, b);
1480
+ _.length > 0 && (b -= Qr(-b, _)), fe(s, b);
1481
1481
  }
1482
1482
  }
1483
1483
  ), Ie(H(u, he(e)), ([b, S]) => {
@@ -1584,14 +1584,14 @@ const As = {
1584
1584
  return {
1585
1585
  ...S,
1586
1586
  sizeTree: C,
1587
- ...hr(S.offsetTree, 0, C, _)
1587
+ ...mr(S.offsetTree, 0, C, _)
1588
1588
  };
1589
1589
  } else {
1590
1590
  const C = Mt(S.sizeTree).reduce((O, { k: P, v: I }) => et(O, Math.max(0, P + b), I), Lt());
1591
1591
  return {
1592
1592
  ...S,
1593
1593
  sizeTree: C,
1594
- ...hr(S.offsetTree, 0, C, _)
1594
+ ...mr(S.offsetTree, 0, C, _)
1595
1595
  };
1596
1596
  }
1597
1597
  })
@@ -1621,7 +1621,7 @@ const As = {
1621
1621
  unshiftWith: i
1622
1622
  };
1623
1623
  },
1624
- Ee(Tt, Cr),
1624
+ Ee(Tt, Tr),
1625
1625
  { singleton: !0 }
1626
1626
  );
1627
1627
  function Bs(e) {
@@ -1651,7 +1651,7 @@ const ui = ye(
1651
1651
  ), oe(
1652
1652
  H(
1653
1653
  Ne(o, t, r),
1654
- ae(([a, l]) => Mn(l)),
1654
+ ae(([a, l]) => En(l)),
1655
1655
  Q(([a, l, d]) => ct(l.groupOffsetTree, Math.max(a - d, 0), "v")[0]),
1656
1656
  Me(),
1657
1657
  Q((a) => [a])
@@ -1753,12 +1753,12 @@ function Ls(e) {
1753
1753
  };
1754
1754
  };
1755
1755
  }
1756
- function kr(e, t) {
1756
+ function Rr(e, t) {
1757
1757
  e == 0 ? t() : requestAnimationFrame(() => {
1758
- kr(e - 1, t);
1758
+ Rr(e - 1, t);
1759
1759
  });
1760
1760
  }
1761
- function Rr(e, t) {
1761
+ function _r(e, t) {
1762
1762
  const n = t - 1;
1763
1763
  return typeof e == "number" ? e : e.index === "LAST" ? n : e.index;
1764
1764
  }
@@ -1785,13 +1785,13 @@ const sn = ye(
1785
1785
  H(
1786
1786
  Ne(t, s),
1787
1787
  he(u, n, e, l),
1788
- ae(([[, d], h, { sizeTree: f }, m, v]) => d && (!Te(f) || xr(m)) && !h && !v),
1788
+ ae(([[, d], h, { sizeTree: f }, m, v]) => d && (!Te(f) || wr(m)) && !h && !v),
1789
1789
  he(a)
1790
1790
  ),
1791
1791
  ([, d]) => {
1792
1792
  at(o, () => {
1793
1793
  fe(l, !0);
1794
- }), kr(4, () => {
1794
+ }), Rr(4, () => {
1795
1795
  at(r, () => {
1796
1796
  fe(u, !0);
1797
1797
  }), fe(i, d);
@@ -1821,12 +1821,12 @@ const Jt = "up", Ut = "down", Hs = "none", Ns = {
1821
1821
  }, Fs = 0, ln = ye(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: i }]) => {
1822
1822
  const s = D(!1), u = D(!0), a = ve(), l = ve(), d = D(4), h = D(Fs), f = je(
1823
1823
  H(
1824
- dr(H(le(o), Et(1), ft(!0)), H(le(o), Et(1), ft(!1), Ur(100))),
1824
+ fr(H(le(o), Et(1), ft(!0)), H(le(o), Et(1), ft(!1), Kr(100))),
1825
1825
  Me()
1826
1826
  ),
1827
1827
  !1
1828
1828
  ), m = je(
1829
- H(dr(H(n, ft(!0)), H(n, ft(!1), Ur(200))), Me()),
1829
+ H(fr(H(n, ft(!0)), H(n, ft(!1), Kr(200))), Me()),
1830
1830
  !1
1831
1831
  );
1832
1832
  oe(
@@ -1950,15 +1950,15 @@ const Jt = "up", Ut = "down", Hs = "none", Ns = {
1950
1950
  scrollDirection: c,
1951
1951
  scrollVelocity: p
1952
1952
  };
1953
- }, Ee(Ke)), en = "top", tn = "bottom", Qr = "none";
1954
- function Zr(e, t, n) {
1953
+ }, Ee(Ke)), en = "top", tn = "bottom", Zr = "none";
1954
+ function Jr(e, t, n) {
1955
1955
  return typeof e == "number" ? n === Jt && t === en || n === Ut && t === tn ? e : 0 : n === Jt ? t === en ? e.main : e.reverse : t === tn ? e.main : e.reverse;
1956
1956
  }
1957
- function Jr(e, t) {
1957
+ function eo(e, t) {
1958
1958
  var n;
1959
1959
  return typeof e == "number" ? e : (n = e[t]) != null ? n : 0;
1960
1960
  }
1961
- const _r = ye(
1961
+ const Mr = ye(
1962
1962
  ([{ deviation: e, fixedHeaderHeight: t, headerHeight: n, scrollTop: r, viewportHeight: o }]) => {
1963
1963
  const i = ve(), s = D(0), u = D(0), a = D(0), l = je(
1964
1964
  H(
@@ -1986,11 +1986,11 @@ const _r = ye(
1986
1986
  w
1987
1987
  ]) => {
1988
1988
  const T = d - g, k = c + p, M = Math.max(f - T, 0);
1989
- let b = Qr;
1990
- const S = Jr(w, en), _ = Jr(w, tn);
1991
- return m -= g, m += f + p, v += f + p, v -= g, m > d + k - S && (b = Jt), v < d - M + h + _ && (b = Ut), b !== Qr ? [
1992
- Math.max(T - f - Zr(y, en, b) - S, 0),
1993
- T - M - p + h + Zr(y, tn, b) + _
1989
+ let b = Zr;
1990
+ const S = eo(w, en), _ = eo(w, tn);
1991
+ return m -= g, m += f + p, v += f + p, v -= g, m > d + k - S && (b = Jt), v < d - M + h + _ && (b = Ut), b !== Zr ? [
1992
+ Math.max(T - f - Jr(y, en, b) - S, 0),
1993
+ T - M - p + h + Jr(y, tn, b) + _
1994
1994
  ] : null;
1995
1995
  }
1996
1996
  ),
@@ -2013,7 +2013,7 @@ const _r = ye(
2013
2013
  { singleton: !0 }
2014
2014
  );
2015
2015
  function Ds(e, t, n) {
2016
- if (Mn(t)) {
2016
+ if (En(t)) {
2017
2017
  const r = ai(e, t);
2018
2018
  return [
2019
2019
  { index: ct(t.groupOffsetTree, r)[0], offset: 0, size: 0 },
@@ -2022,7 +2022,7 @@ function Ds(e, t, n) {
2022
2022
  }
2023
2023
  return [{ data: n == null ? void 0 : n[0], index: e, offset: 0, size: 0 }];
2024
2024
  }
2025
- const Dn = {
2025
+ const Wn = {
2026
2026
  bottom: 0,
2027
2027
  firstItemIndex: 0,
2028
2028
  items: [],
@@ -2033,7 +2033,7 @@ const Dn = {
2033
2033
  topListHeight: 0,
2034
2034
  totalCount: 0
2035
2035
  };
2036
- function mn(e, t, n, r, o, i) {
2036
+ function bn(e, t, n, r, o, i) {
2037
2037
  const { lastIndex: s, lastOffset: u, lastSize: a } = o;
2038
2038
  let l = 0, d = 0;
2039
2039
  if (e.length > 0) {
@@ -2045,11 +2045,11 @@ function mn(e, t, n, r, o, i) {
2045
2045
  return {
2046
2046
  bottom: d,
2047
2047
  firstItemIndex: i,
2048
- items: eo(e, o, i),
2048
+ items: to(e, o, i),
2049
2049
  offsetBottom: v,
2050
2050
  offsetTop: l,
2051
2051
  top: m,
2052
- topItems: eo(t, o, i),
2052
+ topItems: to(t, o, i),
2053
2053
  topListHeight: t.reduce((y, c) => c.size + y, 0),
2054
2054
  totalCount: n
2055
2055
  };
@@ -2062,18 +2062,18 @@ function pi(e, t, n, r, o, i) {
2062
2062
  break;
2063
2063
  s++;
2064
2064
  }
2065
- const u = e + s, a = Rr(t, u), l = Array.from({ length: u }).map((d, h) => ({
2065
+ const u = e + s, a = _r(t, u), l = Array.from({ length: u }).map((d, h) => ({
2066
2066
  data: i[h + a],
2067
2067
  index: h + a,
2068
2068
  offset: 0,
2069
2069
  size: 0
2070
2070
  }));
2071
- return mn(l, [], u, o, n, r);
2071
+ return bn(l, [], u, o, n, r);
2072
2072
  }
2073
- function eo(e, t, n) {
2073
+ function to(e, t, n) {
2074
2074
  if (e.length === 0)
2075
2075
  return [];
2076
- if (!Mn(t))
2076
+ if (!En(t))
2077
2077
  return e.map((l) => ({ ...l, index: l.index + n, originalIndex: l.index }));
2078
2078
  const r = e[0].index, o = e[e.length - 1].index, i = [], s = Ht(t.groupOffsetTree, r, o);
2079
2079
  let u, a = 0;
@@ -2096,7 +2096,7 @@ function eo(e, t, n) {
2096
2096
  }
2097
2097
  return i;
2098
2098
  }
2099
- function to(e, t) {
2099
+ function no(e, t) {
2100
2100
  var n;
2101
2101
  return e === void 0 ? 0 : typeof e == "number" ? e : (n = e[t]) != null ? n : 0;
2102
2102
  }
@@ -2151,12 +2151,12 @@ const Pt = ye(
2151
2151
  var V, re, be, Se;
2152
2152
  const Ce = C, { offsetTree: xe, sizeTree: Fe } = Ce, K = Pe(c);
2153
2153
  if (_ === 0)
2154
- return { ...Dn, totalCount: _ };
2154
+ return { ...Wn, totalCount: _ };
2155
2155
  if (b === 0 && S === 0)
2156
- return K === 0 ? { ...Dn, totalCount: _ } : pi(K, O, C, R, z, A || []);
2156
+ return K === 0 ? { ...Wn, totalCount: _ } : pi(K, O, C, R, z, A || []);
2157
2157
  if (Te(Fe))
2158
- return K > 0 ? null : mn(
2159
- Ds(Rr(O, _), Ce, A),
2158
+ return K > 0 ? null : bn(
2159
+ Ds(_r(O, _), Ce, A),
2160
2160
  [],
2161
2161
  _,
2162
2162
  z,
@@ -2174,11 +2174,11 @@ const Pt = ye(
2174
2174
  }
2175
2175
  }
2176
2176
  if (!P)
2177
- return mn([], $, _, z, Ce, R);
2177
+ return bn([], $, _, z, Ce, R);
2178
2178
  const G = I.length > 0 ? I[I.length - 1] + 1 : 0, E = Ms(xe, b, S, G);
2179
2179
  if (E.length === 0)
2180
2180
  return null;
2181
- const L = _ - 1, q = _n([], (F) => {
2181
+ const L = _ - 1, q = Mn([], (F) => {
2182
2182
  for (const Y of E) {
2183
2183
  const te = Y.value;
2184
2184
  let J = te.offset, ce = Y.start;
@@ -2193,7 +2193,7 @@ const Pt = ye(
2193
2193
  for (let ge = ce; ge <= we && !(J >= S); ge++)
2194
2194
  F.push({ data: A == null ? void 0 : A[ge], index: ge, offset: J, size: se }), J += se + z;
2195
2195
  }
2196
- }), B = to(N, en), Z = to(N, tn);
2196
+ }), B = no(N, en), Z = no(N, tn);
2197
2197
  if (q.length > 0 && (B > 0 || Z > 0)) {
2198
2198
  const F = q[0], Y = q[q.length - 1];
2199
2199
  if (B > 0 && F.index > G) {
@@ -2214,19 +2214,19 @@ const Pt = ye(
2214
2214
  }
2215
2215
  }
2216
2216
  }
2217
- return mn(q, $, _, z, Ce, R);
2217
+ return bn(q, $, _, z, Ce, R);
2218
2218
  }
2219
2219
  ),
2220
2220
  //@ts-expect-error filter needs to be fixed
2221
2221
  ae((b) => b !== null),
2222
2222
  Me()
2223
2223
  ),
2224
- Dn
2224
+ Wn
2225
2225
  );
2226
2226
  oe(
2227
2227
  H(
2228
2228
  e,
2229
- ae(xr),
2229
+ ae(wr),
2230
2230
  Q((b) => b == null ? void 0 : b.length)
2231
2231
  ),
2232
2232
  o
@@ -2300,12 +2300,12 @@ const Pt = ye(
2300
2300
  Ee(
2301
2301
  ht,
2302
2302
  ui,
2303
- _r,
2303
+ Mr,
2304
2304
  sn,
2305
2305
  on,
2306
2306
  ln,
2307
2307
  kt,
2308
- Cr
2308
+ Tr
2309
2309
  ),
2310
2310
  { singleton: !0 }
2311
2311
  ), gi = ye(
@@ -2386,10 +2386,10 @@ const Pt = ye(
2386
2386
  Ee(ht, Ke, on, Pt, Tt),
2387
2387
  { singleton: !0 }
2388
2388
  );
2389
- function no(e) {
2389
+ function ro(e) {
2390
2390
  return e ? e === "smooth" ? "smooth" : "auto" : !1;
2391
2391
  }
2392
- const Vs = (e, t) => typeof e == "function" ? no(e(t)) : t && no(e), qs = ye(
2392
+ const Vs = (e, t) => typeof e == "function" ? ro(e(t)) : t && ro(e), qs = ye(
2393
2393
  ([
2394
2394
  { listRefresh: e, totalCount: t, fixedItemSize: n, data: r },
2395
2395
  { atBottomState: o, isAtBottom: i },
@@ -2455,7 +2455,7 @@ const Vs = (e, t) => typeof e == "function" ? no(e(t)) : t && no(e), qs = ye(
2455
2455
  });
2456
2456
  const w = D(null), T = ve();
2457
2457
  return oe(
2458
- dr(
2458
+ fr(
2459
2459
  H(
2460
2460
  le(r),
2461
2461
  Q((k) => {
@@ -2566,7 +2566,7 @@ const Vs = (e, t) => typeof e == "function" ? no(e(t)) : t && no(e), qs = ye(
2566
2566
  },
2567
2567
  Ee(ln),
2568
2568
  { singleton: !0 }
2569
- ), Mr = ye(([{ scrollContainerState: e, scrollTo: t }]) => {
2569
+ ), Er = ye(([{ scrollContainerState: e, scrollTo: t }]) => {
2570
2570
  const n = ve(), r = ve(), o = ve(), i = D(!1), s = D(void 0);
2571
2571
  return oe(
2572
2572
  H(
@@ -2616,7 +2616,7 @@ const Vs = (e, t) => typeof e == "function" ? no(e(t)) : t && no(e), qs = ye(
2616
2616
  const T = Os(v.sizeTree);
2617
2617
  c && p !== null && g !== null && (y = p.scrollTop - g.offsetTop), y -= w, m({ ranges: T, scrollTop: y });
2618
2618
  }
2619
- ), oe(H(d, ae(xr), Q(Xs)), o), oe(
2619
+ ), oe(H(d, ae(wr), Q(Xs)), o), oe(
2620
2620
  H(
2621
2621
  i,
2622
2622
  he(d),
@@ -2630,7 +2630,7 @@ const Vs = (e, t) => typeof e == "function" ? no(e(t)) : t && no(e), qs = ye(
2630
2630
  restoreStateFrom: d
2631
2631
  };
2632
2632
  },
2633
- Ee(ht, Ke, sn, kt, Mr)
2633
+ Ee(ht, Ke, sn, kt, Er)
2634
2634
  );
2635
2635
  function Xs(e) {
2636
2636
  return { align: "start", index: 0, offset: e.scrollTop };
@@ -2728,7 +2728,7 @@ const Qs = vi(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2728
2728
  }
2729
2729
  ), { deviation: e };
2730
2730
  },
2731
- Ee(Ke, ln, Pt, ht, Tt, Cr)
2731
+ Ee(Ke, ln, Pt, ht, Tt, Tr)
2732
2732
  ), Js = ye(
2733
2733
  ([
2734
2734
  e,
@@ -2756,14 +2756,14 @@ const Qs = vi(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2756
2756
  ...d
2757
2757
  }),
2758
2758
  Ee(
2759
- _r,
2759
+ Mr,
2760
2760
  js,
2761
2761
  kt,
2762
2762
  bi,
2763
2763
  gi,
2764
2764
  Us,
2765
2765
  Ws,
2766
- Mr,
2766
+ Er,
2767
2767
  mi,
2768
2768
  Tt,
2769
2769
  hi
@@ -2890,18 +2890,18 @@ function yi(e, t, n) {
2890
2890
  return s.reduce((p, g) => (p[g] = ms(c[t.events[g]]), p), {});
2891
2891
  }
2892
2892
  const h = W.forwardRef((c, p) => {
2893
- const { children: g, ...w } = c, [T] = W.useState(() => _n(vs(e), (b) => {
2893
+ const { children: g, ...w } = c, [T] = W.useState(() => Mn(vs(e), (b) => {
2894
2894
  a(b, w);
2895
- })), [k] = W.useState(jr(d, T));
2895
+ })), [k] = W.useState(Ur(d, T));
2896
2896
  dn(() => {
2897
2897
  for (const b of s)
2898
2898
  b in w && Ie(k[b], w[b]);
2899
2899
  return () => {
2900
- Object.values(k).map(wr);
2900
+ Object.values(k).map(Ir);
2901
2901
  };
2902
2902
  }, [w, k, T]), dn(() => {
2903
2903
  a(T, w);
2904
- }), W.useImperativeHandle(p, qr(l(T)));
2904
+ }), W.useImperativeHandle(p, jr(l(T)));
2905
2905
  const M = n;
2906
2906
  return /* @__PURE__ */ x(u.Provider, { value: T, children: n ? /* @__PURE__ */ x(M, { ...el([...r, ...o, ...s], w), children: g }) : g });
2907
2907
  }), f = (c) => {
@@ -2923,10 +2923,10 @@ function yi(e, t, n) {
2923
2923
  () => Pe(p)
2924
2924
  );
2925
2925
  }, v = (c) => {
2926
- const p = W.useContext(u)[c], [g, w] = W.useState(jr(Pe, p));
2926
+ const p = W.useContext(u)[c], [g, w] = W.useState(Ur(Pe, p));
2927
2927
  return dn(
2928
2928
  () => Ie(p, (T) => {
2929
- T !== g && w(qr(T));
2929
+ T !== g && w(jr(T));
2930
2930
  }),
2931
2931
  [p, g]
2932
2932
  ), g;
@@ -2942,7 +2942,7 @@ function yi(e, t, n) {
2942
2942
  };
2943
2943
  }
2944
2944
  const xi = W.createContext(void 0), wi = W.createContext(void 0), Ii = typeof document < "u" ? W.useLayoutEffect : W.useEffect;
2945
- function Wn(e) {
2945
+ function $n(e) {
2946
2946
  return "self" in e;
2947
2947
  }
2948
2948
  function tl(e) {
@@ -2953,8 +2953,8 @@ function Ci(e, t, n, r = $t, o, i) {
2953
2953
  (f) => {
2954
2954
  let m, v, y;
2955
2955
  const c = f.target;
2956
- if (tl(c) || Wn(c)) {
2957
- const g = Wn(c) ? c : c.defaultView;
2956
+ if (tl(c) || $n(c)) {
2957
+ const g = $n(c) ? c : c.defaultView;
2958
2958
  y = i ? g.scrollX : g.scrollY, m = i ? g.document.documentElement.scrollWidth : g.document.documentElement.scrollHeight, v = i ? g.innerWidth : g.innerHeight;
2959
2959
  } else
2960
2960
  y = i ? c.scrollLeft : c.scrollTop, m = i ? c.scrollWidth : c.scrollHeight, v = i ? c.offsetWidth : c.offsetHeight;
@@ -2981,7 +2981,7 @@ function Ci(e, t, n, r = $t, o, i) {
2981
2981
  return;
2982
2982
  const v = f.behavior === "smooth";
2983
2983
  let y, c, p;
2984
- Wn(m) ? (c = Math.max(
2984
+ $n(m) ? (c = Math.max(
2985
2985
  xt(m.document.documentElement, i ? "width" : "height"),
2986
2986
  i ? m.document.documentElement.scrollWidth : m.document.documentElement.scrollHeight
2987
2987
  ), y = i ? m.innerWidth : m.innerHeight, p = i ? window.scrollX : window.scrollY) : (c = m[i ? "scrollWidth" : "scrollHeight"], y = xt(m, i ? "width" : "height"), p = m[i ? "scrollLeft" : "scrollTop"]);
@@ -2999,17 +2999,17 @@ function Ci(e, t, n, r = $t, o, i) {
2999
2999
  }
3000
3000
  return { scrollByCallback: h, scrollerRef: s, scrollToCallback: d };
3001
3001
  }
3002
- const $n = "-webkit-sticky", ro = "sticky", Er = vi(() => {
3002
+ const Vn = "-webkit-sticky", oo = "sticky", Or = vi(() => {
3003
3003
  if (typeof document > "u")
3004
- return ro;
3004
+ return oo;
3005
3005
  const e = document.createElement("div");
3006
- return e.style.position = $n, e.style.position === $n ? $n : ro;
3006
+ return e.style.position = Vn, e.style.position === Vn ? Vn : oo;
3007
3007
  });
3008
- function Or(e) {
3008
+ function zr(e) {
3009
3009
  return e;
3010
3010
  }
3011
3011
  const nl = /* @__PURE__ */ ye(() => {
3012
- const e = D((u) => `Item ${u}`), t = D((u) => `Group ${u}`), n = D({}), r = D(Or), o = D("div"), i = D($t), s = (u, a = null) => je(
3012
+ const e = D((u) => `Item ${u}`), t = D((u) => `Group ${u}`), n = D({}), r = D(zr), o = D("div"), i = D($t), s = (u, a = null) => je(
3013
3013
  H(
3014
3014
  n,
3015
3015
  Q((l) => l[u]),
@@ -3037,7 +3037,7 @@ const nl = /* @__PURE__ */ ye(() => {
3037
3037
  }), rl = /* @__PURE__ */ ye(
3038
3038
  ([e, t]) => ({ ...e, ...t }),
3039
3039
  Ee(Si, nl)
3040
- ), ol = ({ height: e }) => /* @__PURE__ */ x("div", { style: { height: e } }), il = { overflowAnchor: "none", position: Er(), zIndex: 1 }, Ti = { overflowAnchor: "none" }, sl = { ...Ti, display: "inline-block", height: "100%" }, oo = /* @__PURE__ */ W.memo(function({ showTopList: e = !1 }) {
3040
+ ), ol = ({ height: e }) => /* @__PURE__ */ x("div", { style: { height: e } }), il = { overflowAnchor: "none", position: Or(), zIndex: 1 }, Ti = { overflowAnchor: "none" }, sl = { ...Ti, display: "inline-block", height: "100%" }, io = /* @__PURE__ */ W.memo(function({ showTopList: e = !1 }) {
3041
3041
  const t = ue("listState"), n = ot("sizeRanges"), r = ue("useWindowScroll"), o = ue("customScrollParent"), i = ot("windowScrollContainerState"), s = ot("scrollContainerState"), u = o || r ? i : s, a = ue("itemContent"), l = ue("context"), d = ue("groupContent"), h = ue("trackItemSizes"), f = ue("itemSize"), m = ue("log"), v = ot("gap"), y = ue("horizontalDirection"), { callbackRef: c } = xs(
3042
3042
  n,
3043
3043
  f,
@@ -3049,7 +3049,7 @@ const nl = /* @__PURE__ */ ye(() => {
3049
3049
  y,
3050
3050
  ue("skipAnimationFrameInResizeObserver")
3051
3051
  ), [p, g] = W.useState(0);
3052
- zr("deviation", (R) => {
3052
+ Pr("deviation", (R) => {
3053
3053
  p !== R && g(R);
3054
3054
  });
3055
3055
  const w = ue("EmptyPlaceholder"), T = ue("ScrollSeekPlaceholder") || ol, k = ue("ListComponent"), M = ue("ItemComponent"), b = ue("GroupComponent"), S = ue("computeItemKey"), _ = ue("isSeeking"), C = ue("groupIndices").length > 0, O = ue("alignToBottom"), P = ue("initialItemFinalLocationReached"), I = e ? {} : {
@@ -3077,7 +3077,7 @@ const nl = /* @__PURE__ */ ye(() => {
3077
3077
  style: I,
3078
3078
  children: (e ? t.topItems : t.items).map((R) => {
3079
3079
  const z = R.originalIndex, N = S(z + t.firstItemIndex, R.data, l);
3080
- return _ ? /* @__PURE__ */ gn(
3080
+ return _ ? /* @__PURE__ */ hn(
3081
3081
  T,
3082
3082
  {
3083
3083
  ...qe(T, l),
@@ -3087,7 +3087,7 @@ const nl = /* @__PURE__ */ ye(() => {
3087
3087
  type: R.type || "item",
3088
3088
  ...R.type === "group" ? {} : { groupIndex: R.groupIndex }
3089
3089
  }
3090
- ) : R.type === "group" ? /* @__PURE__ */ gn(
3090
+ ) : R.type === "group" ? /* @__PURE__ */ hn(
3091
3091
  b,
3092
3092
  {
3093
3093
  ...qe(b, l),
@@ -3098,7 +3098,7 @@ const nl = /* @__PURE__ */ ye(() => {
3098
3098
  style: il
3099
3099
  },
3100
3100
  d(R.index, l)
3101
- ) : /* @__PURE__ */ gn(
3101
+ ) : /* @__PURE__ */ hn(
3102
3102
  M,
3103
3103
  {
3104
3104
  ...qe(M, l),
@@ -3125,14 +3125,14 @@ const nl = /* @__PURE__ */ ye(() => {
3125
3125
  outline: "none",
3126
3126
  overflowX: "auto",
3127
3127
  position: "relative"
3128
- }, En = (e) => ({
3128
+ }, On = (e) => ({
3129
3129
  height: "100%",
3130
3130
  position: "absolute",
3131
3131
  top: 0,
3132
3132
  width: "100%",
3133
3133
  ...e ? { display: "flex", flexDirection: "column" } : {}
3134
3134
  }), cl = {
3135
- position: Er(),
3135
+ position: Or(),
3136
3136
  top: 0,
3137
3137
  width: "100%",
3138
3138
  zIndex: 1
@@ -3228,7 +3228,7 @@ const pl = ({ children: e }) => {
3228
3228
  ), u = zt(s, !0, ue("skipAnimationFrameInResizeObserver"));
3229
3229
  return W.useEffect(() => {
3230
3230
  t && (n(t.viewportHeight), r(t.itemHeight));
3231
- }, [t, n, r]), /* @__PURE__ */ x("div", { "data-viewport-type": "element", ref: u, style: En(o), children: e });
3231
+ }, [t, n, r]), /* @__PURE__ */ x("div", { "data-viewport-type": "element", ref: u, style: On(o), children: e });
3232
3232
  }, gl = ({ children: e }) => {
3233
3233
  const t = W.useContext(xi), n = ot("windowViewportRect"), r = ot("fixedItemHeight"), o = ue("customScrollParent"), i = ei(
3234
3234
  n,
@@ -3237,23 +3237,23 @@ const pl = ({ children: e }) => {
3237
3237
  ), s = ue("alignToBottom");
3238
3238
  return W.useEffect(() => {
3239
3239
  t && (r(t.itemHeight), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
3240
- }, [t, n, r]), /* @__PURE__ */ x("div", { "data-viewport-type": "window", ref: i, style: En(s), children: e });
3240
+ }, [t, n, r]), /* @__PURE__ */ x("div", { "data-viewport-type": "window", ref: i, style: On(s), children: e });
3241
3241
  }, hl = ({ children: e }) => {
3242
3242
  const t = ue("TopItemListComponent") || "div", n = ue("headerHeight"), r = { ...cl, marginTop: `${n}px` }, o = ue("context");
3243
3243
  return /* @__PURE__ */ x(t, { style: r, ...qe(t, o), children: e });
3244
3244
  }, ml = /* @__PURE__ */ W.memo(function(e) {
3245
3245
  const t = ue("useWindowScroll"), n = ue("topItemsIndexes").length > 0, r = ue("customScrollParent"), o = ue("context");
3246
3246
  return /* @__PURE__ */ ee(r || t ? Sl : vl, { ...e, context: o, children: [
3247
- n && /* @__PURE__ */ x(hl, { children: /* @__PURE__ */ x(oo, { showTopList: !0 }) }),
3247
+ n && /* @__PURE__ */ x(hl, { children: /* @__PURE__ */ x(io, { showTopList: !0 }) }),
3248
3248
  /* @__PURE__ */ ee(r || t ? gl : pl, { children: [
3249
3249
  /* @__PURE__ */ x(dl, {}),
3250
- /* @__PURE__ */ x(oo, {}),
3250
+ /* @__PURE__ */ x(io, {}),
3251
3251
  /* @__PURE__ */ x(fl, {})
3252
3252
  ] })
3253
3253
  ] });
3254
3254
  }), {
3255
3255
  Component: bl,
3256
- useEmitter: zr,
3256
+ useEmitter: Pr,
3257
3257
  useEmitterValue: ue,
3258
3258
  usePublisher: ot
3259
3259
  } = /* @__PURE__ */ yi(
@@ -3319,14 +3319,14 @@ const pl = ({ children: e }) => {
3319
3319
  }
3320
3320
  },
3321
3321
  ml
3322
- ), vl = /* @__PURE__ */ ki({ useEmitter: zr, useEmitterValue: ue, usePublisher: ot }), Sl = /* @__PURE__ */ Ri({ useEmitter: zr, useEmitterValue: ue, usePublisher: ot }), yl = bl, xl = /* @__PURE__ */ ye(() => {
3322
+ ), vl = /* @__PURE__ */ ki({ useEmitter: Pr, useEmitterValue: ue, usePublisher: ot }), Sl = /* @__PURE__ */ Ri({ useEmitter: Pr, useEmitterValue: ue, usePublisher: ot }), yl = bl, xl = /* @__PURE__ */ ye(() => {
3323
3323
  const e = D((l) => /* @__PURE__ */ ee("td", { children: [
3324
3324
  "Item $",
3325
3325
  l
3326
3326
  ] })), t = D(null), n = D((l) => /* @__PURE__ */ ee("td", { colSpan: 1e3, children: [
3327
3327
  "Group ",
3328
3328
  l
3329
- ] })), r = D(null), o = D(null), i = D({}), s = D(Or), u = D($t), a = (l, d = null) => je(
3329
+ ] })), r = D(null), o = D(null), i = D({}), s = D(zr), u = D($t), a = (l, d = null) => je(
3330
3330
  H(
3331
3331
  i,
3332
3332
  Q((h) => h[l]),
@@ -3356,8 +3356,8 @@ const pl = ({ children: e }) => {
3356
3356
  };
3357
3357
  });
3358
3358
  Ee(Si, xl);
3359
- Er();
3360
- const io = {
3359
+ Or();
3360
+ const so = {
3361
3361
  bottom: 0,
3362
3362
  itemHeight: 0,
3363
3363
  items: [],
@@ -3373,8 +3373,8 @@ const io = {
3373
3373
  offsetBottom: 0,
3374
3374
  offsetTop: 0,
3375
3375
  top: 0
3376
- }, { ceil: so, floor: Sn, max: Kt, min: Vn, round: lo } = Math;
3377
- function ao(e, t, n) {
3376
+ }, { ceil: lo, floor: yn, max: Kt, min: qn, round: ao } = Math;
3377
+ function co(e, t, n) {
3378
3378
  return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
3379
3379
  }
3380
3380
  function Il(e) {
@@ -3399,7 +3399,7 @@ const Tl = /* @__PURE__ */ ye(
3399
3399
  { customScrollParent: c, useWindowScroll: p, windowScrollContainerState: g, windowScrollTo: w, windowViewportRect: T },
3400
3400
  k
3401
3401
  ]) => {
3402
- const M = D(0), b = D(0), S = D(io), _ = D({ height: 0, width: 0 }), C = D({ height: 0, width: 0 }), O = ve(), P = ve(), I = D(0), R = D(null), z = D({ column: 0, row: 0 }), N = ve(), A = ve(), V = D(!1), re = D(0), be = D(!0), Se = D(!1), Ce = D(!1);
3402
+ const M = D(0), b = D(0), S = D(so), _ = D({ height: 0, width: 0 }), C = D({ height: 0, width: 0 }), O = ve(), P = ve(), I = D(0), R = D(null), z = D({ column: 0, row: 0 }), N = ve(), A = ve(), V = D(!1), re = D(0), be = D(!0), Se = D(!1), Ce = D(!1);
3403
3403
  Ie(
3404
3404
  H(
3405
3405
  v,
@@ -3415,7 +3415,7 @@ const Tl = /* @__PURE__ */ ye(
3415
3415
  ae(([E, L, q, B, , Z]) => E && !L && q.height !== 0 && B.height !== 0 && !Z)
3416
3416
  ),
3417
3417
  ([, , , , E]) => {
3418
- fe(Se, !0), kr(1, () => {
3418
+ fe(Se, !0), Rr(1, () => {
3419
3419
  fe(O, E);
3420
3420
  }), at(H(l), () => {
3421
3421
  fe(t, [0, 0]), fe(be, !0);
@@ -3491,15 +3491,15 @@ const Tl = /* @__PURE__ */ ye(
3491
3491
  ]) => {
3492
3492
  const { column: se, row: we } = B, { height: ge, width: ke } = Z, { width: Oe } = F;
3493
3493
  if (te === 0 && (E === 0 || Oe === 0))
3494
- return io;
3494
+ return so;
3495
3495
  if (ke === 0) {
3496
- const bt = Rr(ce, E), Vt = bt + Math.max(te - 1, 0);
3497
- return Il(ao(bt, Vt, Y));
3496
+ const bt = _r(ce, E), Vt = bt + Math.max(te - 1, 0);
3497
+ return Il(co(bt, Vt, Y));
3498
3498
  }
3499
3499
  const He = _i(Oe, ke, se);
3500
3500
  let Be, $e;
3501
- J ? L === 0 && q === 0 && te > 0 ? (Be = 0, $e = te - 1) : (Be = He * Sn((L + we) / (ge + we)), $e = He * so((q + we) / (ge + we)) - 1, $e = Vn(E - 1, Kt($e, He - 1)), Be = Vn($e, Kt(0, Be))) : (Be = 0, $e = -1);
3502
- const ut = ao(Be, $e, Y), { bottom: Xe, top: Ge } = co(F, B, Z, ut), st = so(E / He), nt = st * ge + (st - 1) * we - Xe;
3501
+ J ? L === 0 && q === 0 && te > 0 ? (Be = 0, $e = te - 1) : (Be = He * yn((L + we) / (ge + we)), $e = He * lo((q + we) / (ge + we)) - 1, $e = qn(E - 1, Kt($e, He - 1)), Be = qn($e, Kt(0, Be))) : (Be = 0, $e = -1);
3502
+ const ut = co(Be, $e, Y), { bottom: Xe, top: Ge } = uo(F, B, Z, ut), st = lo(E / He), nt = st * ge + (st - 1) * we - Xe;
3503
3503
  return { bottom: Xe, itemHeight: ge, items: ut, itemWidth: ke, offsetBottom: nt, offsetTop: Ge, top: Ge };
3504
3504
  }
3505
3505
  )
@@ -3517,7 +3517,7 @@ const Tl = /* @__PURE__ */ ye(
3517
3517
  Ne(_, C, S, z),
3518
3518
  ae(([E, L, { items: q }]) => q.length > 0 && L.height !== 0 && E.height !== 0),
3519
3519
  Q(([E, L, { items: q }, B]) => {
3520
- const { bottom: Z, top: F } = co(E, B, L, q);
3520
+ const { bottom: Z, top: F } = uo(E, B, L, q);
3521
3521
  return [F, Z];
3522
3522
  }),
3523
3523
  Me(Qt)
@@ -3572,9 +3572,9 @@ const Tl = /* @__PURE__ */ ye(
3572
3572
  Q(([E, L, q, B, Z]) => {
3573
3573
  const F = di(E), { align: Y, behavior: te, offset: J } = F;
3574
3574
  let ce = F.index;
3575
- ce === "LAST" && (ce = B - 1), ce = Kt(0, ce, Vn(B - 1, ce));
3576
- let se = mr(L, Z, q, ce);
3577
- return Y === "end" ? se = lo(se - L.height + q.height) : Y === "center" && (se = lo(se - L.height / 2 + q.height / 2)), J && (se += J), { behavior: te, top: se };
3575
+ ce === "LAST" && (ce = B - 1), ce = Kt(0, ce, qn(B - 1, ce));
3576
+ let se = br(L, Z, q, ce);
3577
+ return Y === "end" ? se = ao(se - L.height + q.height) : Y === "center" && (se = ao(se - L.height / 2 + q.height / 2)), J && (se += J), { behavior: te, top: se };
3578
3578
  })
3579
3579
  ),
3580
3580
  a
@@ -3634,24 +3634,24 @@ const Tl = /* @__PURE__ */ ye(
3634
3634
  ...k
3635
3635
  };
3636
3636
  },
3637
- Ee(_r, Ke, ln, bi, kt, Mr, Tt)
3637
+ Ee(Mr, Ke, ln, bi, kt, Er, Tt)
3638
3638
  );
3639
3639
  function _i(e, t, n) {
3640
- return Kt(1, Sn((e + n) / (Sn(t) + n)));
3640
+ return Kt(1, yn((e + n) / (yn(t) + n)));
3641
3641
  }
3642
- function co(e, t, n, r) {
3642
+ function uo(e, t, n, r) {
3643
3643
  const { height: o } = n;
3644
3644
  if (o === void 0 || r.length === 0)
3645
3645
  return { bottom: 0, top: 0 };
3646
- const i = mr(e, t, n, r[0].index);
3647
- return { bottom: mr(e, t, n, r[r.length - 1].index) + o, top: i };
3646
+ const i = br(e, t, n, r[0].index);
3647
+ return { bottom: br(e, t, n, r[r.length - 1].index) + o, top: i };
3648
3648
  }
3649
- function mr(e, t, n, r) {
3650
- const o = _i(e.width, n.width, t.column), i = Sn(r / o), s = i * n.height + Kt(0, i - 1) * t.row;
3649
+ function br(e, t, n, r) {
3650
+ const o = _i(e.width, n.width, t.column), i = yn(r / o), s = i * n.height + Kt(0, i - 1) * t.row;
3651
3651
  return s > 0 ? s + t.row : s;
3652
3652
  }
3653
3653
  const kl = /* @__PURE__ */ ye(() => {
3654
- const e = D((h) => `Item ${h}`), t = D({}), n = D(null), r = D("virtuoso-grid-item"), o = D("virtuoso-grid-list"), i = D(Or), s = D("div"), u = D($t), a = (h, f = null) => je(
3654
+ const e = D((h) => `Item ${h}`), t = D({}), n = D(null), r = D("virtuoso-grid-item"), o = D("virtuoso-grid-list"), i = D(zr), s = D("div"), u = D($t), a = (h, f = null) => je(
3655
3655
  H(
3656
3656
  t,
3657
3657
  Q((m) => m[h]),
@@ -3692,8 +3692,8 @@ const kl = /* @__PURE__ */ ye(() => {
3692
3692
  h({ height: T, width: k });
3693
3693
  }
3694
3694
  f({
3695
- column: uo("column-gap", getComputedStyle(p).columnGap, m),
3696
- row: uo("row-gap", getComputedStyle(p).rowGap, m)
3695
+ column: fo("column-gap", getComputedStyle(p).columnGap, m),
3696
+ row: fo("row-gap", getComputedStyle(p).rowGap, m)
3697
3697
  });
3698
3698
  },
3699
3699
  [s, h, f, m]
@@ -3722,7 +3722,7 @@ const kl = /* @__PURE__ */ ye(() => {
3722
3722
  width: e.itemWidth
3723
3723
  },
3724
3724
  g
3725
- ) : /* @__PURE__ */ gn(
3725
+ ) : /* @__PURE__ */ hn(
3726
3726
  u,
3727
3727
  {
3728
3728
  ...qe(u, d),
@@ -3772,12 +3772,12 @@ const kl = /* @__PURE__ */ ye(() => {
3772
3772
  );
3773
3773
  return W.useEffect(() => {
3774
3774
  t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
3775
- }, [t, r, n]), /* @__PURE__ */ x("div", { ref: o, style: En(!1), children: e });
3775
+ }, [t, r, n]), /* @__PURE__ */ x("div", { ref: o, style: On(!1), children: e });
3776
3776
  }, zl = ({ children: e }) => {
3777
3777
  const t = W.useContext(wi), n = it("windowViewportRect"), r = it("itemDimensions"), o = ze("customScrollParent"), i = ei(n, o, !1);
3778
3778
  return W.useEffect(() => {
3779
3779
  t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
3780
- }, [t, n, r]), /* @__PURE__ */ x("div", { ref: i, style: En(!1), children: e });
3780
+ }, [t, n, r]), /* @__PURE__ */ x("div", { ref: i, style: On(!1), children: e });
3781
3781
  }, Pl = /* @__PURE__ */ W.memo(function({ ...e }) {
3782
3782
  const t = ze("useWindowScroll"), n = ze("customScrollParent"), r = n || t ? Bl : Al, o = n || t ? zl : Ol, i = ze("context");
3783
3783
  return /* @__PURE__ */ x(r, { ...e, ...qe(r, i), children: /* @__PURE__ */ ee(o, { children: [
@@ -3831,28 +3831,28 @@ const kl = /* @__PURE__ */ ye(() => {
3831
3831
  },
3832
3832
  Pl
3833
3833
  ), Al = /* @__PURE__ */ ki({ useEmitter: Mi, useEmitterValue: ze, usePublisher: it }), Bl = /* @__PURE__ */ Ri({ useEmitter: Mi, useEmitterValue: ze, usePublisher: it });
3834
- function uo(e, t, n) {
3834
+ function fo(e, t, n) {
3835
3835
  return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, Qe.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
3836
3836
  }
3837
- const On = Ft(void 0);
3837
+ const zn = Ft(void 0);
3838
3838
  function _e(e, t) {
3839
- const n = Ue(On);
3839
+ const n = Ue(zn);
3840
3840
  if (!n) throw new Error("useAudioStore must be used within CRAudioProvider");
3841
- return Tn(n, e, t);
3841
+ return kn(n, e, t);
3842
3842
  }
3843
- function yn() {
3844
- const e = Ue(On);
3843
+ function xn() {
3844
+ const e = Ue(zn);
3845
3845
  if (!e)
3846
3846
  throw new Error("useAudioStoreApi must be used within CRAudioProvider");
3847
3847
  return e;
3848
3848
  }
3849
- const Gl = "_handleStart_1ihf3_16 _handle_1ihf3_1", Ll = "_handleEnd_1ihf3_21 _handle_1ihf3_1", fo = {
3849
+ const Gl = "_handleStart_1ihf3_16 _handle_1ihf3_1", Ll = "_handleEnd_1ihf3_21 _handle_1ihf3_1", po = {
3850
3850
  handleStart: Gl,
3851
3851
  handleEnd: Ll
3852
3852
  };
3853
- let br = !1;
3853
+ let vr = !1;
3854
3854
  function Ei() {
3855
- return br;
3855
+ return vr;
3856
3856
  }
3857
3857
  const Hl = ({ containerRef: e }) => {
3858
3858
  const t = j((c) => c.rangeStartGI), n = j((c) => c.rangeEndGI), r = j((c) => c.setRange), o = It(), i = t != null && n != null, [s, u] = pt(null), [a, l] = pt(null), d = ie(null), h = ie({ startGI: t, endGI: n });
@@ -3909,7 +3909,7 @@ const Hl = ({ containerRef: e }) => {
3909
3909
  k != null && (d.current === "start" ? k <= T ? f.current(k, T) : (f.current(T, k), d.current = "end") : k >= w ? f.current(w, k) : (f.current(k, w), d.current = "start"));
3910
3910
  }, p = () => {
3911
3911
  d.current = null, setTimeout(() => {
3912
- br = !1;
3912
+ vr = !1;
3913
3913
  }, 50);
3914
3914
  };
3915
3915
  return document.addEventListener("pointermove", c), document.addEventListener("pointerup", p), document.addEventListener("pointercancel", p), () => {
@@ -3918,7 +3918,7 @@ const Hl = ({ containerRef: e }) => {
3918
3918
  }, [m]);
3919
3919
  const v = ne(
3920
3920
  (c) => (p) => {
3921
- p.preventDefault(), p.stopPropagation(), d.current = c, br = !0;
3921
+ p.preventDefault(), p.stopPropagation(), d.current = c, vr = !0;
3922
3922
  },
3923
3923
  []
3924
3924
  );
@@ -3926,7 +3926,7 @@ const Hl = ({ containerRef: e }) => {
3926
3926
  s && /* @__PURE__ */ x(
3927
3927
  "div",
3928
3928
  {
3929
- className: fo.handleStart,
3929
+ className: po.handleStart,
3930
3930
  "data-range-handle": "start",
3931
3931
  style: {
3932
3932
  left: s.x - 26,
@@ -3938,7 +3938,7 @@ const Hl = ({ containerRef: e }) => {
3938
3938
  a && /* @__PURE__ */ x(
3939
3939
  "div",
3940
3940
  {
3941
- className: fo.handleEnd,
3941
+ className: po.handleEnd,
3942
3942
  "data-range-handle": "end",
3943
3943
  style: {
3944
3944
  left: a.x,
@@ -3959,10 +3959,10 @@ const Hl = ({ containerRef: e }) => {
3959
3959
  underlineleft: jl,
3960
3960
  underlineright: Ul,
3961
3961
  underlinecenter: Kl
3962
- }, po = (e) => Symbol.iterator in e, go = (e) => (
3962
+ }, go = (e) => Symbol.iterator in e, ho = (e) => (
3963
3963
  // HACK: avoid checking entries type
3964
3964
  "entries" in e
3965
- ), ho = (e, t) => {
3965
+ ), mo = (e, t) => {
3966
3966
  const n = e instanceof Map ? e : new Map(e.entries()), r = t instanceof Map ? t : new Map(t.entries());
3967
3967
  if (n.size !== r.size)
3968
3968
  return !1;
@@ -3981,7 +3981,7 @@ const Hl = ({ containerRef: e }) => {
3981
3981
  return !!o.done && !!i.done;
3982
3982
  };
3983
3983
  function Yl(e, t) {
3984
- return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t) ? !1 : po(e) && po(t) ? go(e) && go(t) ? ho(e, t) : Xl(e, t) : ho(
3984
+ return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t) ? !1 : go(e) && go(t) ? ho(e) && ho(t) ? mo(e, t) : Xl(e, t) : mo(
3985
3985
  { entries: () => Object.entries(e) },
3986
3986
  { entries: () => Object.entries(t) }
3987
3987
  );
@@ -4007,7 +4007,7 @@ const Jl = Object.freeze({
4007
4007
  pointerColor: void 0
4008
4008
  }), Oi = W.memo(
4009
4009
  function({ runs: t, ns: n, baseIndex: r, preGroups: o }) {
4010
- const i = _e((O) => O.setClipIndex), s = _e((O) => O.seek), u = j((O) => O.setCurrentGlobalRunIndex), a = yn(), l = j((O) => O.rangeStartGI), d = j((O) => O.rangeEndGI), h = j((O) => O.setRange), f = l != null && d != null, m = ne(
4010
+ const i = _e((O) => O.setClipIndex), s = _e((O) => O.seek), u = j((O) => O.setCurrentGlobalRunIndex), a = xn(), l = j((O) => O.rangeStartGI), d = j((O) => O.rangeEndGI), h = j((O) => O.setRange), f = l != null && d != null, m = ne(
4011
4011
  (O) => {
4012
4012
  var re;
4013
4013
  const P = (re = O.target) == null ? void 0 : re.closest("[data-g]");
@@ -4243,14 +4243,14 @@ function ia(e, t) {
4243
4243
  return e < 10 ? `0${e}` : String(e);
4244
4244
  case "loweralpha":
4245
4245
  case "lowerlatin":
4246
- return bo(e, !1);
4246
+ return vo(e, !1);
4247
4247
  case "upperalpha":
4248
4248
  case "upperlatin":
4249
- return bo(e, !0);
4249
+ return vo(e, !0);
4250
4250
  case "lowerroman":
4251
- return mo(e, !1);
4251
+ return bo(e, !1);
4252
4252
  case "upperroman":
4253
- return mo(e, !0);
4253
+ return bo(e, !0);
4254
4254
  case "decimalenclosedcircle":
4255
4255
  return sa(e);
4256
4256
  default:
@@ -4260,7 +4260,7 @@ function ia(e, t) {
4260
4260
  function sa(e) {
4261
4261
  return e >= 1 && e <= 20 ? String.fromCharCode(9312 + (e - 1)) : `(${e})`;
4262
4262
  }
4263
- function mo(e, t = !0) {
4263
+ function bo(e, t = !0) {
4264
4264
  if (e <= 0) return "";
4265
4265
  const n = [
4266
4266
  [1e3, "M"],
@@ -4283,13 +4283,13 @@ function mo(e, t = !0) {
4283
4283
  o += s, r -= i;
4284
4284
  return t ? o : o.toLowerCase();
4285
4285
  }
4286
- function bo(e, t = !1) {
4286
+ function vo(e, t = !1) {
4287
4287
  let n = e, r = "";
4288
4288
  for (; n > 0; )
4289
4289
  n--, r = String.fromCharCode(97 + n % 26) + r, n = Math.floor(n / 26);
4290
4290
  return t ? r.toUpperCase() : r;
4291
4291
  }
4292
- function Pr(e) {
4292
+ function Ar(e) {
4293
4293
  const t = /* @__PURE__ */ new Map();
4294
4294
  return {
4295
4295
  next(n, r) {
@@ -4301,7 +4301,7 @@ function Pr(e) {
4301
4301
  }
4302
4302
  };
4303
4303
  }
4304
- function Ar(e, t) {
4304
+ function Br(e, t) {
4305
4305
  const n = e.list;
4306
4306
  if (!n || n.kind !== "ordered") return;
4307
4307
  const r = t.next(n.numId ?? 0, n.level), o = ia(r, n.format), i = (n.format || "").toLowerCase();
@@ -4350,7 +4350,7 @@ const ua = "_scroller_kqkmq_3", da = {
4350
4350
  ...r
4351
4351
  }
4352
4352
  );
4353
- }), vr = (e) => /[가-힣a-zA-Z0-9]/.test(e), pa = (e) => ((e == null ? void 0 : e.textContent) ?? "").trim(), xn = (e, t) => e.querySelector(`[data-g="${t}"]`);
4353
+ }), Sr = (e) => /[가-힣a-zA-Z0-9]/.test(e), pa = (e) => ((e == null ? void 0 : e.textContent) ?? "").trim(), wn = (e, t) => e.querySelector(`[data-g="${t}"]`);
4354
4354
  function ga(e, t = 12, n = 1.5, r = 0.5) {
4355
4355
  if (!e) return -1;
4356
4356
  const o = e.getBoundingClientRect(), i = o.top + t;
@@ -4360,7 +4360,7 @@ function ga(e, t = 12, n = 1.5, r = 0.5) {
4360
4360
  const v = f[m];
4361
4361
  if (!v || !v.isConnected) continue;
4362
4362
  const y = pa(v);
4363
- if (!y || !vr(y)) continue;
4363
+ if (!y || !Sr(y)) continue;
4364
4364
  const c = v.getBoundingClientRect();
4365
4365
  if (c.height <= r || c.width <= r || c.bottom <= o.top || c.top >= o.bottom) continue;
4366
4366
  if (c.top < i) {
@@ -4378,13 +4378,13 @@ function ga(e, t = 12, n = 1.5, r = 0.5) {
4378
4378
  }
4379
4379
  const zi = async (e, t, { timeoutMs: n = 1200, intervalMs: r = 16 } = {}) => {
4380
4380
  const o = performance.now();
4381
- let i = xn(e, t);
4381
+ let i = wn(e, t);
4382
4382
  for (; !i; ) {
4383
4383
  if (performance.now() - o > n) return null;
4384
- await new Promise((s) => setTimeout(s, r)), i = xn(e, t);
4384
+ await new Promise((s) => setTimeout(s, r)), i = wn(e, t);
4385
4385
  }
4386
4386
  return i;
4387
- }, vo = (e) => {
4387
+ }, So = (e) => {
4388
4388
  const t = e.getBoundingClientRect(), n = t.top + t.height * 0.15, r = t.top + t.height * 0.8, o = Array.from(e.querySelectorAll("[data-g]"));
4389
4389
  let i = Number.POSITIVE_INFINITY, s = Number.NEGATIVE_INFINITY;
4390
4390
  for (const u of o) {
@@ -4395,7 +4395,7 @@ const zi = async (e, t, { timeoutMs: n = 1200, intervalMs: r = 16 } = {}) => {
4395
4395
  }
4396
4396
  return !Number.isFinite(i) || !Number.isFinite(s) ? null : { first: i, last: s };
4397
4397
  }, ha = (e, t, { topPaddingRatio: n = 0.15, behavior: r = "auto" } = {}) => {
4398
- const o = xn(e, t);
4398
+ const o = wn(e, t);
4399
4399
  if (!o) return !1;
4400
4400
  const i = e.getBoundingClientRect(), s = o.getBoundingClientRect(), u = i.height * n, a = s.top - (i.top + u);
4401
4401
  return e.scrollTo({ top: e.scrollTop + a, behavior: r }), !0;
@@ -4411,10 +4411,10 @@ function ma(e, t = 120) {
4411
4411
  e.addEventListener("scroll", o, { passive: !0, capture: !0 }), o();
4412
4412
  });
4413
4413
  }
4414
- const qn = async (e, t, { topPaddingRatio: n = 0.15, behavior: r = "smooth", quietMs: o = 120 } = {}) => {
4414
+ const jn = async (e, t, { topPaddingRatio: n = 0.15, behavior: r = "smooth", quietMs: o = 120 } = {}) => {
4415
4415
  if (!ha(e, t, { topPaddingRatio: n, behavior: r })) return !1;
4416
4416
  await ma(e, o);
4417
- const s = xn(e, t);
4417
+ const s = wn(e, t);
4418
4418
  if (!s) return !1;
4419
4419
  const u = e.getBoundingClientRect(), a = s.getBoundingClientRect(), l = u.height * n, d = u.top + l, h = a.top - d;
4420
4420
  return Math.abs(h) <= 1;
@@ -4422,18 +4422,18 @@ const qn = async (e, t, { topPaddingRatio: n = 0.15, behavior: r = "smooth", qui
4422
4422
  requestAnimationFrame(() => {
4423
4423
  requestAnimationFrame(() => e());
4424
4424
  });
4425
- }), Br = Ft(null);
4425
+ }), Gr = Ft(null);
4426
4426
  function Pi() {
4427
- const e = Ue(Br);
4427
+ const e = Ue(Gr);
4428
4428
  if (!e)
4429
4429
  throw new Error("useQuizStoreApi must be used within QuizProgressProvider");
4430
4430
  return e;
4431
4431
  }
4432
4432
  function Je(e, t) {
4433
- const n = Ue(Br);
4433
+ const n = Ue(Gr);
4434
4434
  if (!n)
4435
4435
  throw new Error("useQuizStore must be used within QuizProgressProvider");
4436
- return Tn(n, e, t);
4436
+ return kn(n, e, t);
4437
4437
  }
4438
4438
  const Ai = () => {
4439
4439
  const e = j((l) => l.section), t = Pi(), n = Je((l) => l.retryAllowed), r = Je((l) => l.previousResult), o = r != null, i = e.quizzes;
@@ -4480,7 +4480,7 @@ var Bi = {
4480
4480
  className: void 0,
4481
4481
  style: void 0,
4482
4482
  attr: void 0
4483
- }, So = W.createContext && /* @__PURE__ */ W.createContext(Bi), ya = ["attr", "size", "title"];
4483
+ }, yo = W.createContext && /* @__PURE__ */ W.createContext(Bi), ya = ["attr", "size", "title"];
4484
4484
  function xa(e, t) {
4485
4485
  if (e == null) return {};
4486
4486
  var n = wa(e, t), r, o;
@@ -4501,17 +4501,17 @@ function wa(e, t) {
4501
4501
  }
4502
4502
  return n;
4503
4503
  }
4504
- function wn() {
4505
- return wn = Object.assign ? Object.assign.bind() : function(e) {
4504
+ function In() {
4505
+ return In = Object.assign ? Object.assign.bind() : function(e) {
4506
4506
  for (var t = 1; t < arguments.length; t++) {
4507
4507
  var n = arguments[t];
4508
4508
  for (var r in n)
4509
4509
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
4510
4510
  }
4511
4511
  return e;
4512
- }, wn.apply(this, arguments);
4512
+ }, In.apply(this, arguments);
4513
4513
  }
4514
- function yo(e, t) {
4514
+ function xo(e, t) {
4515
4515
  var n = Object.keys(e);
4516
4516
  if (Object.getOwnPropertySymbols) {
4517
4517
  var r = Object.getOwnPropertySymbols(e);
@@ -4521,12 +4521,12 @@ function yo(e, t) {
4521
4521
  }
4522
4522
  return n;
4523
4523
  }
4524
- function In(e) {
4524
+ function Cn(e) {
4525
4525
  for (var t = 1; t < arguments.length; t++) {
4526
4526
  var n = arguments[t] != null ? arguments[t] : {};
4527
- t % 2 ? yo(Object(n), !0).forEach(function(r) {
4527
+ t % 2 ? xo(Object(n), !0).forEach(function(r) {
4528
4528
  Ia(e, r, n[r]);
4529
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yo(Object(n)).forEach(function(r) {
4529
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xo(Object(n)).forEach(function(r) {
4530
4530
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
4531
4531
  });
4532
4532
  }
@@ -4550,13 +4550,13 @@ function Ta(e, t) {
4550
4550
  return (t === "string" ? String : Number)(e);
4551
4551
  }
4552
4552
  function Gi(e) {
4553
- return e && e.map((t, n) => /* @__PURE__ */ W.createElement(t.tag, In({
4553
+ return e && e.map((t, n) => /* @__PURE__ */ W.createElement(t.tag, Cn({
4554
4554
  key: n
4555
4555
  }, t.attr), Gi(t.child)));
4556
4556
  }
4557
4557
  function Ze(e) {
4558
- return (t) => /* @__PURE__ */ W.createElement(ka, wn({
4559
- attr: In({}, e.attr)
4558
+ return (t) => /* @__PURE__ */ W.createElement(ka, In({
4559
+ attr: Cn({}, e.attr)
4560
4560
  }, t), Gi(e.child));
4561
4561
  }
4562
4562
  function ka(e) {
@@ -4566,13 +4566,13 @@ function ka(e) {
4566
4566
  size: o,
4567
4567
  title: i
4568
4568
  } = e, s = xa(e, ya), u = o || n.size || "1em", a;
4569
- return n.className && (a = n.className), e.className && (a = (a ? a + " " : "") + e.className), /* @__PURE__ */ W.createElement("svg", wn({
4569
+ return n.className && (a = n.className), e.className && (a = (a ? a + " " : "") + e.className), /* @__PURE__ */ W.createElement("svg", In({
4570
4570
  stroke: "currentColor",
4571
4571
  fill: "currentColor",
4572
4572
  strokeWidth: "0"
4573
4573
  }, n.attr, r, s, {
4574
4574
  className: a,
4575
- style: In(In({
4575
+ style: Cn(Cn({
4576
4576
  color: e.color || n.color
4577
4577
  }, n.style), e.style),
4578
4578
  height: u,
@@ -4580,12 +4580,12 @@ function ka(e) {
4580
4580
  xmlns: "http://www.w3.org/2000/svg"
4581
4581
  }), i && /* @__PURE__ */ W.createElement("title", null, i), e.children);
4582
4582
  };
4583
- return So !== void 0 ? /* @__PURE__ */ W.createElement(So.Consumer, null, (n) => t(n)) : t(Bi);
4583
+ return yo !== void 0 ? /* @__PURE__ */ W.createElement(yo.Consumer, null, (n) => t(n)) : t(Bi);
4584
4584
  }
4585
- function xo(e) {
4585
+ function wo(e) {
4586
4586
  return Ze({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M18.464 2.114a.998.998 0 0 0-1.033.063l-13 9a1.003 1.003 0 0 0 0 1.645l13 9A1 1 0 0 0 19 21V3a1 1 0 0 0-.536-.886zM17 19.091 6.757 12 17 4.909v14.182z" }, child: [] }] })(e);
4587
4587
  }
4588
- function wo(e) {
4588
+ function Io(e) {
4589
4589
  return Ze({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M5.536 21.886a1.004 1.004 0 0 0 1.033-.064l13-9a1 1 0 0 0 0-1.644l-13-9A.998.998 0 0 0 5 3v18a1 1 0 0 0 .536.886zM7 4.909 17.243 12 7 19.091V4.909z" }, child: [] }] })(e);
4590
4590
  }
4591
4591
  const Ra = ({ isIcon: e = !0 }) => {
@@ -4608,7 +4608,7 @@ const Ra = ({ isIcon: e = !0 }) => {
4608
4608
  (s.key === "Enter" || s.key === " ") && o(s);
4609
4609
  },
4610
4610
  children: [
4611
- /* @__PURE__ */ x(xo, { size: 18 }),
4611
+ /* @__PURE__ */ x(wo, { size: 18 }),
4612
4612
  /* @__PURE__ */ x("span", { className: Nt.label, children: "이전" })
4613
4613
  ]
4614
4614
  }
@@ -4638,7 +4638,7 @@ const Ra = ({ isIcon: e = !0 }) => {
4638
4638
  },
4639
4639
  children: r ? "첫섹션입니다" : /* @__PURE__ */ ee(wt, { children: [
4640
4640
  /* @__PURE__ */ x(
4641
- xo,
4641
+ wo,
4642
4642
  {
4643
4643
  size: 18,
4644
4644
  style: {
@@ -4652,7 +4652,7 @@ const Ra = ({ isIcon: e = !0 }) => {
4652
4652
  ] })
4653
4653
  }
4654
4654
  );
4655
- }, Cn = ({ isIcon: e = !0 }) => {
4655
+ }, Tn = ({ isIcon: e = !0 }) => {
4656
4656
  const t = j((s) => s.isCanNext), n = j((s) => s.onSectionNav), r = !t, o = ne(
4657
4657
  (s) => {
4658
4658
  s.stopPropagation(), s.preventDefault(), t && (n == null || n("next"));
@@ -4672,7 +4672,7 @@ const Ra = ({ isIcon: e = !0 }) => {
4672
4672
  (s.key === "Enter" || s.key === " ") && o(s);
4673
4673
  },
4674
4674
  children: [
4675
- /* @__PURE__ */ x(wo, { size: 18 }),
4675
+ /* @__PURE__ */ x(Io, { size: 18 }),
4676
4676
  /* @__PURE__ */ x("span", { className: Nt.label, children: "다음" })
4677
4677
  ]
4678
4678
  }
@@ -4703,7 +4703,7 @@ const Ra = ({ isIcon: e = !0 }) => {
4703
4703
  children: r ? "마지막섹션입니다" : /* @__PURE__ */ ee(wt, { children: [
4704
4704
  "NextSection",
4705
4705
  /* @__PURE__ */ x(
4706
- wo,
4706
+ Io,
4707
4707
  {
4708
4708
  size: 18,
4709
4709
  style: {
@@ -4731,9 +4731,9 @@ function _a({
4731
4731
  nsPrefix: n
4732
4732
  }) {
4733
4733
  const r = me(() => {
4734
- const _ = [], C = Pr();
4734
+ const _ = [], C = Ar();
4735
4735
  return t.forEach((O, P) => {
4736
- O.type === "paragraph" && (_[P] = Ar(O, C));
4736
+ O.type === "paragraph" && (_[P] = Br(O, C));
4737
4737
  }), _;
4738
4738
  }, [t]), o = j((_) => {
4739
4739
  var C;
@@ -4841,10 +4841,10 @@ function _a({
4841
4841
  const _ = e.quizzes, C = Math.max(80, Math.floor(u * 0.5));
4842
4842
  return _ && _.length ? /* @__PURE__ */ ee("div", { style: { display: "block" }, children: [
4843
4843
  /* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", marginTop: 20 }, children: /* @__PURE__ */ x(Ai, {}) }),
4844
- /* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", marginTop: 20 }, children: /* @__PURE__ */ x(Cn, { isIcon: !1 }) }),
4844
+ /* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", marginTop: 20 }, children: /* @__PURE__ */ x(Tn, { isIcon: !1 }) }),
4845
4845
  /* @__PURE__ */ x("div", { style: { height: C, width: "100%" } })
4846
4846
  ] }) : /* @__PURE__ */ ee("div", { children: [
4847
- /* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", marginTop: 20 }, children: /* @__PURE__ */ x(Cn, { isIcon: !1 }) }),
4847
+ /* @__PURE__ */ x("div", { style: { display: "flex", justifyContent: "center", marginTop: 20 }, children: /* @__PURE__ */ x(Tn, { isIcon: !1 }) }),
4848
4848
  /* @__PURE__ */ x("div", { style: { height: 40 } })
4849
4849
  ] });
4850
4850
  }, [y, e, u]), w = me(
@@ -5000,7 +5000,7 @@ const Ma = ({
5000
5000
  }), S = ie(!1), _ = ne(() => {
5001
5001
  const I = e.current;
5002
5002
  if (!I) return;
5003
- const R = vo(I), z = (R == null ? void 0 : R.first) ?? -1, N = (R == null ? void 0 : R.last) ?? -1;
5003
+ const R = So(I), z = (R == null ? void 0 : R.first) ?? -1, N = (R == null ? void 0 : R.last) ?? -1;
5004
5004
  b.current = { first: z, last: N };
5005
5005
  }, [e]), C = ie(!1), O = ne(() => {
5006
5006
  const I = e.current;
@@ -5028,7 +5028,7 @@ const Ma = ({
5028
5028
  if (I.scrollTop <= 1) {
5029
5029
  (async () => {
5030
5030
  try {
5031
- p.current = !0, await qn(I, i, {
5031
+ p.current = !0, await jn(I, i, {
5032
5032
  behavior: "smooth",
5033
5033
  topPaddingRatio: 0.2
5034
5034
  // ⬅️ 탑일 때는 0으로 고정
@@ -5044,7 +5044,7 @@ const Ma = ({
5044
5044
  async function A() {
5045
5045
  if (!I) return;
5046
5046
  const V = I.scrollTop <= 1 ? 0 : 0.2;
5047
- return await qn(I, i, {
5047
+ return await jn(I, i, {
5048
5048
  behavior: "smooth",
5049
5049
  topPaddingRatio: V
5050
5050
  });
@@ -5107,7 +5107,7 @@ const Ma = ({
5107
5107
  q = ((Z.top + Z.height / 2 - L.top) / L.height > 0.5, 0.15);
5108
5108
  }
5109
5109
  const B = !!E;
5110
- return B ? (await qn(I, G, {
5110
+ return B ? (await jn(I, G, {
5111
5111
  behavior: "smooth",
5112
5112
  topPaddingRatio: q
5113
5113
  }), await V()) : B || await A(G, "auto"), p.current = !1, N(G), R(I, G, 0.1, 0.7);
@@ -5115,7 +5115,7 @@ const Ma = ({
5115
5115
  return {
5116
5116
  ensureVisibleGI: re,
5117
5117
  scrollToGI: be,
5118
- getVisibleRange: () => vo(I),
5118
+ getVisibleRange: () => So(I),
5119
5119
  getScrollTop: () => I.scrollTop,
5120
5120
  setScrollTop: (G) => {
5121
5121
  I.scrollTop = G;
@@ -5149,11 +5149,11 @@ function Ea(e) {
5149
5149
  return !!(["a", "button", "input", "textarea", "select", "label"].includes(n) || t.isContentEditable);
5150
5150
  }
5151
5151
  function Oa() {
5152
- const e = j((v) => v.section), t = X((v) => v.theme), n = X((v) => v.fontFamily), r = X((v) => v.fontSizePx), o = X((v) => v.lineHeight), i = bn[t], { blocks: s, nsPrefix: u } = me(() => ({
5152
+ const e = j((v) => v.section), t = X((v) => v.theme), n = X((v) => v.fontFamily), r = X((v) => v.fontSizePx), o = X((v) => v.lineHeight), i = vn[t], { blocks: s, nsPrefix: u } = me(() => ({
5153
5153
  sectionId: e.section_id,
5154
5154
  blocks: e.ast.blocks,
5155
5155
  nsPrefix: `sec-${e.section_id ?? "0"}/`
5156
- }), [e]), a = kn(), l = ne(() => {
5156
+ }), [e]), a = Rn(), l = ne(() => {
5157
5157
  const { isSettingsOpen: v, setSettingsOpen: y, toggleOverlays: c } = a.getState();
5158
5158
  v ? y(!1) : c();
5159
5159
  }, [a]), { onClick: d, onDoubleClick: h } = as({
@@ -5483,8 +5483,8 @@ const uc = W.memo(cc), dc = Dt(function() {
5483
5483
  btnWrap: mc,
5484
5484
  label: bc,
5485
5485
  iconBtn: vc
5486
- }, Io = 350, Sc = 40, yc = 0.85, xc = Dt(function() {
5487
- const t = X((f) => f.audioSpeed), n = X((f) => f.incAudioSpeed), r = X((f) => f.decAudioSpeed), o = ie(null), i = ie(Io), s = ie(null), u = ne(
5486
+ }, Co = 350, Sc = 40, yc = 0.85, xc = Dt(function() {
5487
+ const t = X((f) => f.audioSpeed), n = X((f) => f.incAudioSpeed), r = X((f) => f.decAudioSpeed), o = ie(null), i = ie(Co), s = ie(null), u = ne(
5488
5488
  (f) => {
5489
5489
  const m = t;
5490
5490
  if (f === "inc") {
@@ -5506,7 +5506,7 @@ const uc = W.memo(cc), dc = Dt(function() {
5506
5506
  }, [u, a]), d = ne(
5507
5507
  (f) => {
5508
5508
  if (s.current) return;
5509
- s.current = f, i.current = Io, u(f) && l();
5509
+ s.current = f, i.current = Co, u(f) && l();
5510
5510
  const v = () => a();
5511
5511
  window.addEventListener("mouseup", v, { once: !0 }), window.addEventListener("touchend", v, { once: !0 });
5512
5512
  },
@@ -5561,7 +5561,7 @@ function Cc(e) {
5561
5561
  function Tc(e) {
5562
5562
  return Ze({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M221.66,133.66l-80,80A8,8,0,0,1,128,208V147.31L61.66,213.66A8,8,0,0,1,48,208V48a8,8,0,0,1,13.66-5.66L128,108.69V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,221.66,133.66Z" }, child: [] }] })(e);
5563
5563
  }
5564
- function Co({ direction: e }) {
5564
+ function To({ direction: e }) {
5565
5565
  const t = j((h) => h.currentGlobalRunIndex), n = j((h) => h.totalRuns), r = j((h) => h.hasReadableInDir), o = j((h) => h.computeStepTarget), i = j((h) => h.setCurrentGlobalRunIndex), s = _e((h) => h.syncToGI), u = j((h) => h.getSectionScrollApi), a = ne(
5566
5566
  async (h) => {
5567
5567
  var v, y;
@@ -5595,7 +5595,7 @@ function Co({ direction: e }) {
5595
5595
  }
5596
5596
  );
5597
5597
  }
5598
- const kc = "_GCPlayBtn_n54mc_1", Rc = "_playing_n54mc_34", To = {
5598
+ const kc = "_GCPlayBtn_n54mc_1", Rc = "_playing_n54mc_34", ko = {
5599
5599
  GCPlayBtn: kc,
5600
5600
  playing: Rc
5601
5601
  }, _c = ({
@@ -5609,7 +5609,7 @@ const kc = "_GCPlayBtn_n54mc_1", Rc = "_playing_n54mc_34", To = {
5609
5609
  }) => /* @__PURE__ */ x(
5610
5610
  "button",
5611
5611
  {
5612
- className: `${To.GCPlayBtn} ${r ? To.playing : ""}`,
5612
+ className: `${ko.GCPlayBtn} ${r ? ko.playing : ""}`,
5613
5613
  onClick: o,
5614
5614
  "data-tip": i,
5615
5615
  title: s,
@@ -5628,7 +5628,7 @@ function Ec(e) {
5628
5628
  }
5629
5629
  function Oc() {
5630
5630
  var _;
5631
- const e = X((C) => C.showOverlays), t = j((C) => C.section), n = !!t.ast.isAddedSplit, r = !!((_ = t.audios) != null && _.length), o = j((C) => C.canTracking), i = j((C) => C.canToggleShowGaze), s = j((C) => C.showGaze), u = j((C) => C.onToggleShowGaze), a = X((C) => C.muteAudio), l = X((C) => C.showPointer), d = X((C) => C.showSplit), h = X((C) => C.toggleMuteAudio), f = X((C) => C.toggleShowPointer), m = X((C) => C.toggleShowSplit), v = X((C) => C.overlayCompactMode), y = X((C) => C.toggleOverlayCompactMode), c = yn(), p = yt();
5631
+ const e = X((C) => C.showOverlays), t = j((C) => C.section), n = !!t.ast.isAddedSplit, r = !!((_ = t.audios) != null && _.length), o = j((C) => C.canTracking), i = j((C) => C.canToggleShowGaze), s = j((C) => C.showGaze), u = j((C) => C.onToggleShowGaze), a = X((C) => C.muteAudio), l = X((C) => C.showPointer), d = X((C) => C.showSplit), h = X((C) => C.toggleMuteAudio), f = X((C) => C.toggleShowPointer), m = X((C) => C.toggleShowSplit), v = X((C) => C.overlayCompactMode), y = X((C) => C.toggleOverlayCompactMode), c = xn(), p = yt();
5632
5632
  pe(() => {
5633
5633
  const C = c.getState(), { syncToGI: O, useFake: P, useReal: I } = C, R = C.playbackKind, z = p.getState().progress.currentGlobalRunIndex ?? 0;
5634
5634
  if (!r) {
@@ -5642,7 +5642,7 @@ function Oc() {
5642
5642
  C.stopPropagation(), T === "playing" || T === "loading" ? w() : g();
5643
5643
  },
5644
5644
  [T, g, w]
5645
- ), M = yn(), b = yt(), S = ne(
5645
+ ), M = xn(), b = yt(), S = ne(
5646
5646
  async (C) => {
5647
5647
  var xe, Fe;
5648
5648
  if (C.stopPropagation(), T === "playing" || T === "loading") {
@@ -5692,7 +5692,7 @@ function Oc() {
5692
5692
  }
5693
5693
  ) }),
5694
5694
  /* @__PURE__ */ ee("div", { className: Re.groupPlayback, children: [
5695
- /* @__PURE__ */ x(Co, { direction: "left" }),
5695
+ /* @__PURE__ */ x(To, { direction: "left" }),
5696
5696
  /* @__PURE__ */ x(
5697
5697
  _c,
5698
5698
  {
@@ -5702,7 +5702,7 @@ function Oc() {
5702
5702
  title: T === "playing" ? "일시정지" : "재생"
5703
5703
  }
5704
5704
  ),
5705
- /* @__PURE__ */ x(Co, { direction: "right" })
5705
+ /* @__PURE__ */ x(To, { direction: "right" })
5706
5706
  ] }),
5707
5707
  /* @__PURE__ */ x("div", { className: Re.groupSpeed, children: /* @__PURE__ */ x(xc, {}) })
5708
5708
  ] }),
@@ -5773,7 +5773,7 @@ function Oc() {
5773
5773
  ] }),
5774
5774
  /* @__PURE__ */ ee("div", { className: Re.groupNav, children: [
5775
5775
  /* @__PURE__ */ x(Ra, {}),
5776
- /* @__PURE__ */ x(Cn, {})
5776
+ /* @__PURE__ */ x(Tn, {})
5777
5777
  ] })
5778
5778
  ] })
5779
5779
  ] })
@@ -5854,8 +5854,8 @@ function su({ visible: e }) {
5854
5854
  /* @__PURE__ */ x(Gt, { active: t === "page", onClick: () => n("page"), children: "페이지" }),
5855
5855
  /* @__PURE__ */ x(Gt, { active: t === "scroll", onClick: () => n("scroll"), children: "스크롤" })
5856
5856
  ] }) }),
5857
- /* @__PURE__ */ x(jt, { label: "테마", children: /* @__PURE__ */ x("div", { className: Ae.inlineFlex, children: Object.keys(bn).map((b) => {
5858
- const S = b, _ = bn[S];
5857
+ /* @__PURE__ */ x(jt, { label: "테마", children: /* @__PURE__ */ x("div", { className: Ae.inlineFlex, children: Object.keys(vn).map((b) => {
5858
+ const S = b, _ = vn[S];
5859
5859
  return /* @__PURE__ */ x(
5860
5860
  "button",
5861
5861
  {
@@ -6286,7 +6286,7 @@ function gu({
6286
6286
  initialState: t
6287
6287
  }) {
6288
6288
  const n = Ue(Ot) ?? void 0, r = me(() => pu({ ...t, recorderStore: n }), [t, n]);
6289
- return /* @__PURE__ */ x(On.Provider, { value: r, children: e });
6289
+ return /* @__PURE__ */ x(zn.Provider, { value: r, children: e });
6290
6290
  }
6291
6291
  function hu(e) {
6292
6292
  var i, s;
@@ -6323,7 +6323,7 @@ function bu(e) {
6323
6323
  const f = n[h] ?? 0, m = d.runs ?? [];
6324
6324
  for (let p = 0; p < m.length; p++) {
6325
6325
  const g = ((c = m[p]) == null ? void 0 : c.text) || "";
6326
- vr(g) && (i[f + p] = 1);
6326
+ Sr(g) && (i[f + p] = 1);
6327
6327
  }
6328
6328
  const y = ca(m, f).map((p) => {
6329
6329
  var k;
@@ -6331,7 +6331,7 @@ function bu(e) {
6331
6331
  let T = -1;
6332
6332
  for (let M = 0; M < w; M++) {
6333
6333
  const b = ((k = m[g + M]) == null ? void 0 : k.text) ?? "";
6334
- if (vr(b)) {
6334
+ if (Sr(b)) {
6335
6335
  T = p.startG + M;
6336
6336
  break;
6337
6337
  }
@@ -6694,14 +6694,14 @@ function yu({
6694
6694
  }));
6695
6695
  };
6696
6696
  return i(), n.subscribe(i);
6697
- }, [o, n]), /* @__PURE__ */ x(yr.Provider, { value: o, children: e });
6697
+ }, [o, n]), /* @__PURE__ */ x(xr.Provider, { value: o, children: e });
6698
6698
  }
6699
6699
  function xu({
6700
6700
  children: e,
6701
6701
  initialState: t
6702
6702
  }) {
6703
6703
  const n = Ue(Ot) ?? void 0, r = ie(us({ init: t, recorderStore: n }));
6704
- return /* @__PURE__ */ x(Sr.Provider, { value: r.current, children: e });
6704
+ return /* @__PURE__ */ x(yr.Provider, { value: r.current, children: e });
6705
6705
  }
6706
6706
  const wu = ({
6707
6707
  // paraIndexMap,
@@ -6739,9 +6739,9 @@ const wu = ({
6739
6739
  }
6740
6740
  return g;
6741
6741
  }, [v, o]), c = me(() => {
6742
- const g = [], w = Pr();
6742
+ const g = [], w = Ar();
6743
6743
  return y.forEach((T, k) => {
6744
- g[k] = Ar(T.b, w);
6744
+ g[k] = Br(T.b, w);
6745
6745
  }), g;
6746
6746
  }, [y]), p = (g, w, T) => {
6747
6747
  if (!g || g.length === 0) return [];
@@ -6916,7 +6916,7 @@ const wu = ({
6916
6916
  )
6917
6917
  }
6918
6918
  );
6919
- }, ko = 0.5;
6919
+ }, gn = 0.5;
6920
6920
  function Iu(e, t) {
6921
6921
  const n = ie(null), r = ie(null), o = ie(!1);
6922
6922
  pe(() => {
@@ -6933,12 +6933,22 @@ function Iu(e, t) {
6933
6933
  r.current = { w: d, h };
6934
6934
  return;
6935
6935
  }
6936
- Math.abs(f.w - d) < ko && Math.abs(f.h - h) < ko || (r.current = { w: d, h }, i());
6936
+ Math.abs(f.w - d) < gn && Math.abs(f.h - h) < gn || (r.current = { w: d, h }, i());
6937
6937
  });
6938
6938
  e.forEach((a) => {
6939
6939
  a.current && s.observe(a.current);
6940
6940
  });
6941
- const u = () => i();
6941
+ const u = () => {
6942
+ var l;
6943
+ const a = (l = e[0]) == null ? void 0 : l.current;
6944
+ if (a && r.current) {
6945
+ const { width: d, height: h } = a.getBoundingClientRect();
6946
+ if (Math.abs(r.current.w - d) < gn && Math.abs(r.current.h - h) < gn)
6947
+ return;
6948
+ r.current = { w: d, h };
6949
+ }
6950
+ i();
6951
+ };
6942
6952
  return window.addEventListener("resize", u), () => {
6943
6953
  window.removeEventListener("resize", u), s.disconnect(), n.current != null && cancelAnimationFrame(n.current), n.current = null;
6944
6954
  };
@@ -7110,42 +7120,42 @@ function Cu(e) {
7110
7120
  onClick: I
7111
7121
  };
7112
7122
  }
7113
- var jn, Ro;
7123
+ var Un, Ro;
7114
7124
  function Hi() {
7115
- if (Ro) return jn;
7125
+ if (Ro) return Un;
7116
7126
  Ro = 1;
7117
7127
  function e(t) {
7118
7128
  var n = typeof t;
7119
7129
  return t != null && (n == "object" || n == "function");
7120
7130
  }
7121
- return jn = e, jn;
7131
+ return Un = e, Un;
7122
7132
  }
7123
- var Un, _o;
7133
+ var Kn, _o;
7124
7134
  function Tu() {
7125
- if (_o) return Un;
7135
+ if (_o) return Kn;
7126
7136
  _o = 1;
7127
7137
  var e = typeof an == "object" && an && an.Object === Object && an;
7128
- return Un = e, Un;
7138
+ return Kn = e, Kn;
7129
7139
  }
7130
- var Kn, Mo;
7140
+ var Xn, Mo;
7131
7141
  function Ni() {
7132
- if (Mo) return Kn;
7142
+ if (Mo) return Xn;
7133
7143
  Mo = 1;
7134
7144
  var e = Tu(), t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
7135
- return Kn = n, Kn;
7145
+ return Xn = n, Xn;
7136
7146
  }
7137
- var Xn, Eo;
7147
+ var Yn, Eo;
7138
7148
  function ku() {
7139
- if (Eo) return Xn;
7149
+ if (Eo) return Yn;
7140
7150
  Eo = 1;
7141
7151
  var e = Ni(), t = function() {
7142
7152
  return e.Date.now();
7143
7153
  };
7144
- return Xn = t, Xn;
7154
+ return Yn = t, Yn;
7145
7155
  }
7146
- var Yn, Oo;
7156
+ var Qn, Oo;
7147
7157
  function Ru() {
7148
- if (Oo) return Yn;
7158
+ if (Oo) return Qn;
7149
7159
  Oo = 1;
7150
7160
  var e = /\s/;
7151
7161
  function t(n) {
@@ -7153,28 +7163,28 @@ function Ru() {
7153
7163
  ;
7154
7164
  return r;
7155
7165
  }
7156
- return Yn = t, Yn;
7166
+ return Qn = t, Qn;
7157
7167
  }
7158
- var Qn, zo;
7168
+ var Zn, zo;
7159
7169
  function _u() {
7160
- if (zo) return Qn;
7170
+ if (zo) return Zn;
7161
7171
  zo = 1;
7162
7172
  var e = Ru(), t = /^\s+/;
7163
7173
  function n(r) {
7164
7174
  return r && r.slice(0, e(r) + 1).replace(t, "");
7165
7175
  }
7166
- return Qn = n, Qn;
7176
+ return Zn = n, Zn;
7167
7177
  }
7168
- var Zn, Po;
7178
+ var Jn, Po;
7169
7179
  function Fi() {
7170
- if (Po) return Zn;
7180
+ if (Po) return Jn;
7171
7181
  Po = 1;
7172
7182
  var e = Ni(), t = e.Symbol;
7173
- return Zn = t, Zn;
7183
+ return Jn = t, Jn;
7174
7184
  }
7175
- var Jn, Ao;
7185
+ var er, Ao;
7176
7186
  function Mu() {
7177
- if (Ao) return Jn;
7187
+ if (Ao) return er;
7178
7188
  Ao = 1;
7179
7189
  var e = Fi(), t = Object.prototype, n = t.hasOwnProperty, r = t.toString, o = e ? e.toStringTag : void 0;
7180
7190
  function i(s) {
@@ -7187,50 +7197,50 @@ function Mu() {
7187
7197
  var d = r.call(s);
7188
7198
  return l && (u ? s[o] = a : delete s[o]), d;
7189
7199
  }
7190
- return Jn = i, Jn;
7200
+ return er = i, er;
7191
7201
  }
7192
- var er, Bo;
7202
+ var tr, Bo;
7193
7203
  function Eu() {
7194
- if (Bo) return er;
7204
+ if (Bo) return tr;
7195
7205
  Bo = 1;
7196
7206
  var e = Object.prototype, t = e.toString;
7197
7207
  function n(r) {
7198
7208
  return t.call(r);
7199
7209
  }
7200
- return er = n, er;
7210
+ return tr = n, tr;
7201
7211
  }
7202
- var tr, Go;
7212
+ var nr, Go;
7203
7213
  function Ou() {
7204
- if (Go) return tr;
7214
+ if (Go) return nr;
7205
7215
  Go = 1;
7206
7216
  var e = Fi(), t = Mu(), n = Eu(), r = "[object Null]", o = "[object Undefined]", i = e ? e.toStringTag : void 0;
7207
7217
  function s(u) {
7208
7218
  return u == null ? u === void 0 ? o : r : i && i in Object(u) ? t(u) : n(u);
7209
7219
  }
7210
- return tr = s, tr;
7220
+ return nr = s, nr;
7211
7221
  }
7212
- var nr, Lo;
7222
+ var rr, Lo;
7213
7223
  function zu() {
7214
- if (Lo) return nr;
7224
+ if (Lo) return rr;
7215
7225
  Lo = 1;
7216
7226
  function e(t) {
7217
7227
  return t != null && typeof t == "object";
7218
7228
  }
7219
- return nr = e, nr;
7229
+ return rr = e, rr;
7220
7230
  }
7221
- var rr, Ho;
7231
+ var or, Ho;
7222
7232
  function Pu() {
7223
- if (Ho) return rr;
7233
+ if (Ho) return or;
7224
7234
  Ho = 1;
7225
7235
  var e = Ou(), t = zu(), n = "[object Symbol]";
7226
7236
  function r(o) {
7227
7237
  return typeof o == "symbol" || t(o) && e(o) == n;
7228
7238
  }
7229
- return rr = r, rr;
7239
+ return or = r, or;
7230
7240
  }
7231
- var or, No;
7241
+ var ir, No;
7232
7242
  function Au() {
7233
- if (No) return or;
7243
+ if (No) return ir;
7234
7244
  No = 1;
7235
7245
  var e = _u(), t = Hi(), n = Pu(), r = NaN, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, s = /^0o[0-7]+$/i, u = parseInt;
7236
7246
  function a(l) {
@@ -7248,11 +7258,11 @@ function Au() {
7248
7258
  var h = i.test(l);
7249
7259
  return h || s.test(l) ? u(l.slice(2), h ? 2 : 8) : o.test(l) ? r : +l;
7250
7260
  }
7251
- return or = a, or;
7261
+ return ir = a, ir;
7252
7262
  }
7253
- var ir, Fo;
7263
+ var sr, Fo;
7254
7264
  function Bu() {
7255
- if (Fo) return ir;
7265
+ if (Fo) return sr;
7256
7266
  Fo = 1;
7257
7267
  var e = Hi(), t = ku(), n = Au(), r = "Expected a function", o = Math.max, i = Math.min;
7258
7268
  function s(u, a, l) {
@@ -7302,7 +7312,7 @@ function Bu() {
7302
7312
  }
7303
7313
  return P.cancel = C, P.flush = O, P;
7304
7314
  }
7305
- return ir = s, ir;
7315
+ return sr = s, sr;
7306
7316
  }
7307
7317
  var Gu = Bu();
7308
7318
  const Lu = /* @__PURE__ */ Uo(Gu);
@@ -7329,17 +7339,17 @@ function Hu(e, t = 200, n, r) {
7329
7339
  return pe(() => () => s.cancel(), [s]), s;
7330
7340
  }
7331
7341
  const Nu = "https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700&family=Noto+Sans+KR:wght@300;400;500;700&family=Noto+Serif+KR:wght@400;700&display=swap";
7332
- let sr = !1;
7342
+ let lr = !1;
7333
7343
  function Fu() {
7334
- if (sr || typeof document > "u") return;
7344
+ if (lr || typeof document > "u") return;
7335
7345
  if (document.querySelector(
7336
7346
  'link[href*="fonts.googleapis.com"][href*="Noto"]'
7337
7347
  )) {
7338
- sr = !0;
7348
+ lr = !0;
7339
7349
  return;
7340
7350
  }
7341
7351
  const t = document.createElement("link");
7342
- t.rel = "stylesheet", t.href = Nu, document.head.appendChild(t), sr = !0;
7352
+ t.rel = "stylesheet", t.href = Nu, document.head.appendChild(t), lr = !0;
7343
7353
  }
7344
7354
  const Di = /* @__PURE__ */ new Map(), Wi = (e) => Di.get(e) ?? 0, Du = (e) => {
7345
7355
  const t = Wi(e) + 1;
@@ -7348,13 +7358,13 @@ const Di = /* @__PURE__ */ new Map(), Wi = (e) => Di.get(e) ?? 0, Du = (e) => {
7348
7358
  class $i extends Error {
7349
7359
  constructor() {
7350
7360
  super("calcPages canceled due to a newer invocation");
7351
- Lr(this, "code", "CALC_PAGES_CANCELED");
7361
+ Hr(this, "code", "CALC_PAGES_CANCELED");
7352
7362
  this.name = "CalcPagesCanceled";
7353
7363
  }
7354
7364
  }
7355
7365
  const rt = (e, t) => {
7356
7366
  if (e !== Wi(t)) throw new $i();
7357
- }, lr = (e) => {
7367
+ }, ar = (e) => {
7358
7368
  const t = getComputedStyle(e), n = parseFloat(t.marginTop || "0") || 0, r = parseFloat(t.marginBottom || "0") || 0;
7359
7369
  return { mt: n, mb: r };
7360
7370
  }, Do = (e) => {
@@ -7471,7 +7481,7 @@ async function $u({
7471
7481
  if (A.dataset.block = String(B), A.innerHTML = "", Z.kind === "image") {
7472
7482
  const ke = Z.block, Oe = Fe(ke);
7473
7483
  A.appendChild(Oe);
7474
- const He = Oe.getBoundingClientRect(), { mt: Be, mb: $e } = lr(Oe);
7484
+ const He = Oe.getBoundingClientRect(), { mt: Be, mb: $e } = ar(Oe);
7475
7485
  re[B] = { contentH: Math.ceil(He.height), mt: Be, mb: $e }, await be(24);
7476
7486
  continue;
7477
7487
  }
@@ -7491,7 +7501,7 @@ async function $u({
7491
7501
  }
7492
7502
  const se = A.querySelector('p[data-variant="with"]'), we = A.querySelector('p[data-variant="no"]'), ge = we ?? se;
7493
7503
  if (se && ge) {
7494
- const ke = Do(se), Oe = Do(ge), { mt: He, mb: Be } = lr(se), { mt: $e, mb: ut } = lr(ge), Xe = ((w = F.runs) == null ? void 0 : w.length) ?? 0, Ge = we ? Oe : ke, st = we ? $e : He, nt = we ? ut : Be;
7504
+ const ke = Do(se), Oe = Do(ge), { mt: He, mb: Be } = ar(se), { mt: $e, mb: ut } = ar(ge), Xe = ((w = F.runs) == null ? void 0 : w.length) ?? 0, Ge = we ? Oe : ke, st = we ? $e : He, nt = we ? ut : Be;
7495
7505
  if (B < 3) {
7496
7506
  const bt = se.getBoundingClientRect().height;
7497
7507
  console.log(
@@ -7652,20 +7662,20 @@ function Uu(e) {
7652
7662
  }), { items: t, paraIndexMap: n };
7653
7663
  }
7654
7664
  function Ku() {
7655
- var Gr;
7665
+ var Lr;
7656
7666
  const e = Xi(), t = j((U) => U.section), n = j((U) => U.sectionLoading), r = yt(), o = ie(!1);
7657
7667
  pe(() => r.subscribe((U) => {
7658
7668
  o.current = U.progress.rangeStartGI != null && U.progress.rangeEndGI != null;
7659
7669
  }), [r]);
7660
- const i = o.current, s = It(), u = X((U) => U.theme), a = bn[u], l = X((U) => U.fontFamily), d = X((U) => U.fontSizePx), h = X((U) => U.lineHeight), f = X((U) => U.marginX), m = X((U) => U.viewportHeight), v = 860, y = ie(null), { items: c } = me(() => {
7670
+ const i = o.current, s = It(), u = X((U) => U.theme), a = vn[u], l = X((U) => U.fontFamily), d = X((U) => U.fontSizePx), h = X((U) => U.lineHeight), f = X((U) => U.marginX), m = X((U) => U.viewportHeight), v = 860, y = ie(null), { items: c } = me(() => {
7661
7671
  var U;
7662
7672
  return Uu(((U = t == null ? void 0 : t.ast) == null ? void 0 : U.blocks) ?? []);
7663
7673
  }, [t]), p = me(() => {
7664
- const U = [], Le = Pr();
7674
+ const U = [], Le = Ar();
7665
7675
  return c.forEach((De) => {
7666
7676
  if (De.kind === "paragraph") {
7667
7677
  const Rt = De.paraIndex;
7668
- U[Rt] = Ar(De.block, Le);
7678
+ U[Rt] = Br(De.block, Le);
7669
7679
  }
7670
7680
  }), U;
7671
7681
  }, [c]), [g, w] = pt({
@@ -7788,10 +7798,10 @@ function Ku() {
7788
7798
  S || M.current !== 0 ? (O("prev"), _(!1)) : xe(-1);
7789
7799
  }, [S, xe]), K = ne(() => {
7790
7800
  S || M.current !== 0 ? (O("next"), _(!1)) : xe(1);
7791
- }, [S, xe]), $ = kn(), G = ne(() => {
7801
+ }, [S, xe]), $ = Rn(), G = ne(() => {
7792
7802
  const { isSettingsOpen: U, setSettingsOpen: Le, toggleOverlays: De } = $.getState();
7793
7803
  U ? Le(!1) : De();
7794
- }, [$]), E = g.pages.length + 1, L = ((Gr = y.current) == null ? void 0 : Gr.clientWidth) || 400, q = ne((U) => {
7804
+ }, [$]), E = g.pages.length + 1, L = ((Lr = y.current) == null ? void 0 : Lr.clientWidth) || 400, q = ne((U) => {
7795
7805
  var lt;
7796
7806
  const Le = b.current;
7797
7807
  if (!Le) return;
@@ -7821,7 +7831,7 @@ function Ku() {
7821
7831
  });
7822
7832
  });
7823
7833
  }, [P]);
7824
- const Y = yn(), te = ne(
7834
+ const Y = xn(), te = ne(
7825
7835
  (U) => i || ju(U) ? !0 : qu(U),
7826
7836
  [i]
7827
7837
  ), J = ne(
@@ -7899,7 +7909,7 @@ function Ku() {
7899
7909
  },
7900
7910
  children: [
7901
7911
  $e && /* @__PURE__ */ x(Ai, {}),
7902
- /* @__PURE__ */ x(Cn, { isIcon: !1 })
7912
+ /* @__PURE__ */ x(Tn, { isIcon: !1 })
7903
7913
  ]
7904
7914
  }
7905
7915
  ) : /* @__PURE__ */ x(wu, { pages: g.pages, pageIndex: U, maxWidth: v }), bt = {
@@ -8278,11 +8288,11 @@ function Ad(e, t) {
8278
8288
  for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
8279
8289
  return !0;
8280
8290
  }
8281
- function ar(e) {
8291
+ function cr(e) {
8282
8292
  var t;
8283
8293
  return (((t = e.answers) == null ? void 0 : t.length) ?? 0) > 1;
8284
8294
  }
8285
- function cr(e) {
8295
+ function ur(e) {
8286
8296
  const t = e.answers ?? [], n = [];
8287
8297
  return t.forEach((r) => {
8288
8298
  const o = e.options.findIndex((i) => i === r);
@@ -8407,12 +8417,12 @@ function Bd(e, t) {
8407
8417
  submitCurrent: () => {
8408
8418
  const l = a();
8409
8419
  if (l.phase !== "doing") return;
8410
- const d = l.order[l.currentIndex], h = l.quizzes[d], f = h.qid, m = (l.answers[f] ?? []).slice().sort((w, T) => w - T), v = cr(h), y = Ad(m, v), c = l.questionStartedAt ? Date.now() - l.questionStartedAt : 0, p = l.perQ[f], g = {
8420
+ const d = l.order[l.currentIndex], h = l.quizzes[d], f = h.qid, m = (l.answers[f] ?? []).slice().sort((w, T) => w - T), v = ur(h), y = Ad(m, v), c = l.questionStartedAt ? Date.now() - l.questionStartedAt : 0, p = l.perQ[f], g = {
8411
8421
  qid: f,
8412
8422
  index: h.index,
8413
8423
  question: h.question,
8414
8424
  score: h.score ?? 0,
8415
- multi: ar(h),
8425
+ multi: cr(h),
8416
8426
  selected: m,
8417
8427
  correctIdxes: v,
8418
8428
  isCorrect: y,
@@ -8444,9 +8454,9 @@ function Bd(e, t) {
8444
8454
  index: h.index,
8445
8455
  question: h.question,
8446
8456
  score: h.score ?? 0,
8447
- multi: ar(h),
8457
+ multi: cr(h),
8448
8458
  selected: (m == null ? void 0 : m.selected) ?? [],
8449
- correctIdxes: (m == null ? void 0 : m.correctIdxes) ?? cr(h),
8459
+ correctIdxes: (m == null ? void 0 : m.correctIdxes) ?? ur(h),
8450
8460
  isCorrect: (m == null ? void 0 : m.isCorrect) ?? !1,
8451
8461
  ms: (m == null ? void 0 : m.ms) ?? 0,
8452
8462
  revealed: !0,
@@ -8500,9 +8510,9 @@ function Bd(e, t) {
8500
8510
  index: h.index,
8501
8511
  question: h.question,
8502
8512
  score: h.score ?? 0,
8503
- multi: ar(h),
8513
+ multi: cr(h),
8504
8514
  selected: (m == null ? void 0 : m.selected) ?? [],
8505
- correctIdxes: (m == null ? void 0 : m.correctIdxes) ?? cr(h),
8515
+ correctIdxes: (m == null ? void 0 : m.correctIdxes) ?? ur(h),
8506
8516
  isCorrect: (m == null ? void 0 : m.isCorrect) ?? !1,
8507
8517
  ms: (m == null ? void 0 : m.ms) ?? 0,
8508
8518
  revealed: !0,
@@ -8566,7 +8576,7 @@ function Gd({ children: e, initialState: t }) {
8566
8576
  }
8567
8577
  });
8568
8578
  return () => o();
8569
- }, [n]), /* @__PURE__ */ x(Br.Provider, { value: n, children: e });
8579
+ }, [n]), /* @__PURE__ */ x(Gr.Provider, { value: n, children: e });
8570
8580
  }
8571
8581
  const jo = [
8572
8582
  "mode",
@@ -8589,7 +8599,7 @@ const jo = [
8589
8599
  "isSettingsOpen"
8590
8600
  ];
8591
8601
  function Ld({ containerRef: e }) {
8592
- const t = It(), n = kn(), r = ie(null);
8602
+ const t = It(), n = Rn(), r = ie(null);
8593
8603
  return pe(() => {
8594
8604
  const o = e.current;
8595
8605
  if (!o) return;
@@ -8628,7 +8638,7 @@ function Ld({ containerRef: e }) {
8628
8638
  }, [t, n]), null;
8629
8639
  }
8630
8640
  function Hd() {
8631
- const e = It(), t = kn(), n = yt(), r = Ue(Xo), o = Ue(On), i = ne(
8641
+ const e = It(), t = Rn(), n = yt(), r = Ue(Xo), o = Ue(zn), i = ne(
8632
8642
  (a) => {
8633
8643
  const { viewerState: l } = a;
8634
8644
  if (l) {