@instructure/studio-player 0.2.12 → 0.2.13
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-D-eUgNCk.css +1 -0
- package/dist/studio-player.es.js +198 -193
- package/package.json +1 -1
- package/dist/index-DAULLpyh.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._annotation-overlay_1kxzn_1{position:absolute;top:0;right:0;bottom:0;left:0;-webkit-user-select:none;user-select:none;z-index:1;background-color:#000c;display:flex;flex-direction:column;justify-content:center;align-items:center}._media-buffering-indicator_1fwjr_1{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;z-index:1;background-color:#00000080;transition:opacity .2s ease}[data-media-player][data-buffering] ._media-buffering-spinner_1fwjr_17{pointer-events:none;animation:_media-buffering-spin_1fwjr_17 1s linear infinite}._media-buffering-track_1fwjr_22{color:#f5f5f5;opacity:.25}._media-buffering-track-fill_1fwjr_27{color:var(--media-brand, #f5f5f5);opacity:.75}[data-media-player][data-buffering] ._media-buffering-indicator_1fwjr_1{opacity:1}@keyframes _media-buffering-spin_1fwjr_17{to{transform:rotate(360deg)}}._captions_13epz_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:var(--captions-flex-direction, column);align-items:center;padding:var(--spacing-3)}._captions_13epz_1[aria-hidden=true]{display:none}._captions_13epz_1 [data-part=cue-display]{display:inline-block;padding:var(--spacing-2);background-color:var(--captions-background-color, rgba(22 22 22 / .75));border-radius:var(--radius-2)}._captions_13epz_1 [data-part=cue]{color:var(--captions-color, white);text-align:center;max-width:50ch;line-height:1.5;font-size:calc(var(--captions-base-font-size-small) * var(--captions-font-size-multiplier, 1))}@container player (width > 425px){._captions_13epz_1 [data-part=cue]{font-size:calc(var(--captions-base-font-size-normal) * var(--captions-font-size-multiplier, 1))}}._comments-overlay_2woxe_1{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--spacing-1);display:flex;align-items:end}._comments-container_2woxe_9{display:flex;flex-direction:column;gap:.25rem;width:15.625rem}@container player (width >= 900px) and (height >= 640px){._comments-container_2woxe_9{width:23.4375rem}}@media (hover: none) and (orientation: portrait) and (max-width: 720px){[data-fullscreen] ._comments-overlay_2woxe_1{justify-content:end}}._comment_2woxe_1{display:grid;grid-template-areas:"avatar text";grid-template-columns:auto 1fr;align-items:center;padding:var(--spacing-1);gap:var(--spacing-1);border-radius:var(--radius-2);background-color:var(--comments-background-color);cursor:pointer;border:1px solid #666}@container player (width >= 720px) and (height >= 540px){._comment_2woxe_1{grid-template-areas:"text text" "avatar name"}}._comment-text_2woxe_45{grid-area:text;color:var(--comments-color);font-size:var(--comments-font-size-small);line-height:1.5;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;-webkit-user-select:none;user-select:none}@container player (height >= 400px){._comment-text_2woxe_45{-webkit-line-clamp:2;line-clamp:2}}@container player (width >= 900px) and (height >= 640px){._comment-text_2woxe_45{font-size:var(--comments-font-size-normal)}}._comment-author-avatar_2woxe_68{grid-area:avatar;box-sizing:border-box;display:inline-block;object-fit:cover;width:1.25rem;height:1.25rem;border-radius:50%;-webkit-user-select:none;user-select:none;pointer-events:none;background-color:#fff;contain:paint}@container player (width >= 900px) and (height >= 640px){._comment-author-avatar_2woxe_68{width:1.875rem;height:1.875rem}}._comment-author-name_2woxe_87{grid-area:name;color:var(--comments-author-color);font-size:var(--comments-font-size-small);font-weight:700;line-height:1.5;display:none}@container player (width >= 720px) and (height >= 540px){._comment-author-name_2woxe_87{display:inline}}@container player (width >= 900px) and (height >= 640px){._comment-author-name_2woxe_87{font-size:var(--comments-font-size-normal)}}._root_1x28e_1{background-color:var(--controls-layout-bg-color, #f5f5f5);padding:var(--spacing-1);display:grid;align-items:center;grid-template-columns:auto 1fr auto;grid-template-areas:"slider slider slider" "left-controls indicators right-controls";row-gap:.25rem;column-gap:1rem;border-bottom-left-radius:var(--radius-2);border-bottom-right-radius:var(--radius-2)}@container player (width >= 420px) and (height <= 300px){._root_1x28e_1{grid-template-columns:auto auto 1fr auto;grid-template-areas:"left-controls indicators slider right-controls"}}[data-fullscreen] ._root_1x28e_1,[data-darkmode=true]._root_1x28e_1{background-color:#000}._left-controls_1x28e_28{display:flex;gap:.25rem;grid-area:left-controls}._right-controls_1x28e_34{display:flex;gap:.25rem;grid-area:right-controls}._indicators_1x28e_40{grid-area:indicators;font-size:.875rem}@container player (width > 425px) and (height > 300px){._indicators_1x28e_40{font-size:1rem}}@container player (width >= 420px) and (height <= 300px){div._normal-timeline_1x28e_49{display:none}}div._compact-timeline_1x28e_55{display:none}@container player (width >= 420px) and (height <= 300px){div._compact-timeline_1x28e_55{display:flex;padding-bottom:0}}._menu-hint_k49ve_1{color:var(--settings-media-submenu-hint-color, #9ea6ad)}._menu-button_k49ve_5{position:relative;display:flex;align-items:center;width:100%;gap:var(--spacing-1);padding:6px 11px;color:var(--settings-submenu-color, #2d3b45);font-size:1rem;line-height:1.5;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;outline:none;border:none;touch-action:manipulation;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;font-family:inherit}._menu-button_k49ve_5:hover,._menu-button_k49ve_5:focus{color:var(--settings-media-hover-color, white);background-color:var(--settings-media-hover-bg-color, rgb(43 122 188))}._menu-button_k49ve_5:hover ._menu-hint_k49ve_1,._menu-button_k49ve_5:focus ._menu-hint_k49ve_1{color:var(--settings-media-hover-color, white)}._menu-label_k49ve_37{flex-grow:1;text-align:left}._menu-icon_k49ve_42{width:1.125rem;height:1.125rem}._switch-track_vptv3_1{position:relative;background-color:#e8e8e8;width:2.625rem;height:1.75rem;border-radius:.875rem;will-change:background-color;transition:background-color .2s}._switch-thumb_vptv3_11{background-color:#fff;width:1.5rem;height:1.5rem;border-radius:.75rem;transform:translate(.125rem,.125rem);box-shadow:#e8eaec 0 0 0 .0625rem inset;will-change:transform;transition:transform .2s;display:flex;align-items:center;justify-content:center}._switch-icon_vptv3_25{width:.875rem;height:.875rem;color:var(--settings-submenu-color)}._switch-body_vptv3_31{display:flex;align-items:center;gap:var(--spacing-1);padding:.375rem .6875rem;color:var(--settings-submenu-color);font-size:1rem;line-height:1.5;cursor:pointer;outline:none;touch-action:manipulation;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}._switch-body_vptv3_31[aria-checked=true] ._switch-track_vptv3_1{background-color:#03893d}._switch-body_vptv3_31[aria-checked=true] ._switch-icon_vptv3_25{color:#03893d}._switch-body_vptv3_31[aria-checked=true] ._switch-thumb_vptv3_11{transform:translate(1rem,.125rem)}._switch-body_vptv3_31:hover,._switch-body_vptv3_31:focus-visible{color:var(--settings-media-hover-color);background-color:var(--settings-media-hover-bg-color)}[aria-checked=true]:is(._switch-body_vptv3_31:hover,._switch-body_vptv3_31:focus-visible) ._switch-track_vptv3_1{background-color:#e8e8e8}._switch-label_vptv3_68{flex-grow:1}._menu-icon_vptv3_72{width:1.125rem;height:1.125rem}._main-menu_7h96l_1,._menu-container_1bjr3_1,._menu-options_1bjr3_6{display:flex;flex-direction:column}._menu-heading_1bjr3_11{user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;display:block;margin:0 var(--spacing-2);padding-top:var(--spacing-2);padding-bottom:.5625rem;border-bottom:.0625rem solid #c7cdd1;font-weight:700;line-height:1.5}._check-icon_1bjr3_27{width:1.25rem;height:1.25rem;visibility:hidden}._menu-item-label_1bjr3_33{display:block}._menu-item_1bjr3_33{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;outline:none;touch-action:manipulation;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;display:flex;align-items:center;padding:6px 11px;gap:var(--spacing-2);cursor:pointer;font-size:1rem;line-height:1.5;font-family:inherit;color:inherit}._menu-item_1bjr3_33:hover,._menu-item_1bjr3_33:focus{color:var(--settings-media-hover-color, white);background-color:var(--settings-media-hover-bg-color, rgb(43 122 188))}._menu-item_1bjr3_33[aria-checked=true] ._check-icon_1bjr3_27{visibility:visible}._menu-back-button_1bjr3_66{display:flex;align-items:center;gap:var(--spacing-1);padding:6px 11px;color:var(--settings-submenu-color, #2d3b45);font-size:1rem;line-height:1.5;cursor:pointer;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;outline:none;border:none;touch-action:manipulation;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;font-family:inherit}._menu-back-button_1bjr3_66:hover,._menu-back-button_1bjr3_66:focus{color:var(--settings-media-hover-color, white);background-color:var(--settings-media-hover-bg-color, rgb(43 122 188))}._settings-menu_hxlsv_1{display:flex;flex-direction:column;background-color:var(--settings-menu-bg-color, white);padding-top:.25rem;padding-bottom:.25rem;border-radius:var(--radius-2);width:294px;z-index:1000;filter:drop-shadow(0 .125rem .1875rem rgba(0 0 0 / .5))}._arrow_hxlsv_15{fill:#fff}._feedback-overlay_v4lbu_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;padding:var(--spacing-4);flex-direction:column;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;pointer-events:none}._feedback-message_v4lbu_14{font-weight:300;position:absolute;top:10%;display:flex;justify-content:center;align-items:center;padding:var(--spacing-2);background-color:var(--feedback-message-bg-color, black);color:var(--feedback-message-color, white);border-radius:var(--radius-2);font-size:1rem;line-height:1.5;opacity:.75}._feedback-icon_v4lbu_30{box-sizing:border-box;display:inline-flex;color:var(--feedback-icon-color, white);padding:var(--spacing-3);width:4.5rem;height:4.5rem;background-color:var(--feedback-icon-bg-color, black);border-radius:var(--radius-3);animation:_feedback-icon-animation_v4lbu_1 .4s linear;animation-fill-mode:forwards;will-change:transform,opacity}._feedback-icon_v4lbu_30:has(.right){align-self:end}._feedback-icon_v4lbu_30:has(.left){align-self:start}._feedback-icon_v4lbu_30>svg{width:100%;height:100%}@keyframes _feedback-icon-animation_v4lbu_1{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:.5}}@media (max-width: 425px){[data-fullscreen] ._full-screen-button_1xm32_2{display:none}}[data-media-player][data-view-type=audio] ._full-screen-button_1xm32_2{display:none}._gestures-container_1fn3b_1{display:contents}._gesture_1fn3b_1{position:absolute;top:0;right:0;bottom:0;left:0}[data-fullscreen] ._gesture_1fn3b_1{top:3.625rem}._keyboard-shortcuts-overlay_dr03d_1{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;background-color:#000000b3;color:#fff;padding:1.5rem;-webkit-user-select:none;user-select:none;overflow-y:auto;display:flex;flex-direction:column;align-items:center}._keyboard-shortcuts-overlay_dr03d_1 header{width:100%;display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}:is(._keyboard-shortcuts-overlay_dr03d_1 header) h2{font-size:1rem;font-weight:500;margin:0}@container player (width > 400px) and (height > 300px){:is(._keyboard-shortcuts-overlay_dr03d_1 header) h2{font-size:1.5rem}}._keyboard-shortcuts-overlay_dr03d_1 table{width:100%;max-width:54rem;padding:0;border-collapse:collapse}@container player (width > 400px) and (height > 300px){._keyboard-shortcuts-overlay_dr03d_1 table{padding:2rem}}:is(._keyboard-shortcuts-overlay_dr03d_1 table) tr{border-bottom:1px solid rgba(232 234 236 / .2)}:is(._keyboard-shortcuts-overlay_dr03d_1 table) tbody tr:last-child{border-bottom:none}:is(._keyboard-shortcuts-overlay_dr03d_1 table) th,:is(._keyboard-shortcuts-overlay_dr03d_1 table) td{text-align:left;font-size:.75rem;line-height:1.5}@container player (width > 400px) and (height > 300px){:is(._keyboard-shortcuts-overlay_dr03d_1 table) th,:is(._keyboard-shortcuts-overlay_dr03d_1 table) td{font-size:.875rem}}@container player (width >= 720px) and (height > 300px){:is(._keyboard-shortcuts-overlay_dr03d_1 table) th,:is(._keyboard-shortcuts-overlay_dr03d_1 table) td{font-size:1rem}}._keyboard-shortcuts-overlay_dr03d_1 ._screen-reader-content_dr03d_66{width:.0625rem;height:.0625rem;margin:-.0625rem;padding:0;position:absolute;top:0;inset-inline-start:0;overflow:hidden;clip:rect(0 0 0 0);border:0}._keyboard-shortcuts-button_dr03d_80{position:absolute;top:1rem;right:1rem;z-index:1;opacity:0;width:2.25rem;height:2.25rem;pointer-events:none;border-radius:var(--radius-2);border:1px solid #d7dade;background:var(--controls-layout-bg-color)}._keyboard-shortcuts-button_dr03d_80:focus-visible{opacity:1;pointer-events:auto}[data-media-player][data-view-type=audio] ._keyboard-shortcuts-button_dr03d_80{display:none}._close-button_dr03d_106{background-color:transparent;border:none;cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;width:2.25rem;height:2.25rem}@media (max-width: 425px) and (hover: none){button._play-pause-button_kyuc5_1{display:none}}._poster_195hi_1{width:100%;height:100%;object-fit:contain;position:absolute;display:none}._poster_195hi_1[data-visible]{display:block}._small-layout-overlay_1vli4_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;visibility:hidden;align-items:center;justify-content:center}@media (max-width: 425px) and (hover: none){._small-layout-overlay_1vli4_1{visibility:visible}}._small-layout-button_1vli4_14{width:5rem;height:5rem;background-color:#1616164d;display:flex;align-items:center;justify-content:center;border-radius:50%}._small-layout-icon-play_1vli4_24,._small-layout-icon-pause_1vli4_30{width:3rem;height:3rem;color:#fff}._full-screen-close-icon_1vli4_36{display:none}[data-fullscreen] ._full-screen-close-icon_1vli4_36{background-color:transparent;border:none;display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;padding:1.25rem;color:#fff;cursor:pointer;-webkit-user-select:none;user-select:none}[data-fullscreen][data-playing] ._full-screen-close-icon_1vli4_36,[data-media-player][data-playing] ._small-layout-button_1vli4_14{animation:_fade-out_1vli4_1 1s;animation-delay:1.5s;animation-fill-mode:forwards}[data-media-player][data-playing] ._small-layout-icon-play_1vli4_24,[data-media-player][data-paused] ._small-layout-icon-pause_1vli4_30{display:none}@keyframes _fade-out_1vli4_1{0%{opacity:1}to{opacity:0}}._time-indicator_1rlpb_1{display:flex;color:#556572;-webkit-user-select:none;user-select:none}[data-fullscreen] ._time-indicator_1rlpb_1,[data-darkmode=true] ._time-indicator_1rlpb_1{color:#fff}._comment-markers_49pse_1{display:flex;position:relative;width:100%;height:.375rem;-webkit-user-select:none;user-select:none;pointer-events:none}@container player (width >= 420px) and (height <= 300px){._comment-markers_49pse_1{display:none}}._comment-marker_49pse_1{position:absolute;height:100%;background:linear-gradient(90deg,#2b7abc,#abd9ff);border-radius:.125rem}._timeline-wrapper_49pse_21{position:relative;display:flex;flex-direction:column;align-items:center;padding:0 var(--spacing-1);grid-area:slider;padding-bottom:.375rem}._timeline-wrapper_49pse_21:has(._comment-markers_49pse_1){padding-bottom:0}._track_49pse_35{width:100%;height:.25rem;will-change:height;position:relative;background-color:var(--timeline-track-bg-color, #ccd0d2);border-radius:var(--radius-1);contain:strict;transition:height .15s,border-radius .15s}._thumb_49pse_48{position:absolute;width:1.125rem;height:1.125rem;background-color:var(--timeline-thumb-color, #2b7abc);border-radius:var(--radius-3);cursor:pointer;opacity:0;transform:translate(-50%) translateZ(0);transition:opacity .15s ease-in;left:var(--slider-fill);will-change:left}._root_49pse_62{display:inline-flex;width:100%;height:1.25rem;position:relative;align-items:center;contain:layout style;outline:none;cursor:pointer;user-select:none;touch-action:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}._root_49pse_62[data-active] ._track_49pse_35{border-radius:var(--radius-2);height:.625rem}._root_49pse_62[data-focus] ._track_49pse_35{outline:2px solid var(--focus-outline-color);outline-offset:1px;border-radius:2px}._root_49pse_62[data-active] ._thumb_49pse_48{opacity:1}._track-inner_49pse_92{position:absolute;will-change:width;height:100%}._progress_49pse_98{z-index:0;width:var(--slider-progress, 0%);background-color:var(--timeline-track-progress-bg-color, #adb2b6)}._track-fill_49pse_104{z-index:1;width:var(--slider-fill, 0%);background-color:var(--timeline-track-fill-bg-color, #2b7abc)}:is([data-fullscreen] ._root_49pse_62,[data-darkmode=true] ._root_49pse_62) ._track_49pse_35{background-color:#333}:is([data-fullscreen] ._root_49pse_62,[data-darkmode=true] ._root_49pse_62) ._progress_49pse_98{background-color:#666}._pins_49pse_121{display:flex;position:relative;height:2rem;width:100%;-webkit-user-select:none;user-select:none;margin-top:var(--spacing-1)}@container player (width >= 420px) and (height <= 300px){._pins_49pse_121{display:none}}._pin-button_49pse_134{display:flex;background-color:transparent;border:none;padding:0;position:absolute;transform:translate(-50%);cursor:pointer;transition:transform .2s ease-out;touch-action:manipulation;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}._pin-button_49pse_134:hover{transform:translate(-50%) scale(1.25);z-index:1}._annotation-pin_49pse_154{fill:var(--pin-color-1);stroke:var(--pin-color-2)}._quiz-pin_49pse_159{fill:var(--pin-color-2);stroke:none}._annotation-pin-child_49pse_164{fill:var(--pin-color-3)}._quiz-pin-child_49pse_168{fill:#fff;font-size:.875rem}._interactive-pin-container_49pse_173{position:absolute;top:0;right:0;bottom:0;left:0;padding:0 var(--spacing-1)}@container player (width >= 420px) and (height <= 300px){._interactive-pin-container_49pse_173{display:none}}._interactive-pin-wrapper_49pse_183{position:relative;width:100%;height:100%}._interactive-pin-icon_49pse_189{transform-box:fill-box;transform-origin:center;transition:transform .2s ease-out}._interactive-pin-icon_49pse_189[data-open=true]{transform:rotate(45deg)}._interactive-pin_49pse_173{filter:drop-shadow(0 3px 6px rgba(0 0 0 / .16)) drop-shadow(0 3px 6px rgba(0 0 0 / .1))}._interactive-pin_49pse_173>._bg_49pse_203{fill:var(--timeline-thumb-color)}._interactive-pin_49pse_173>._symbol_49pse_207{stroke:var(--controls-layout-bg-color)}._interactive-pin-button_49pse_212{position:absolute;cursor:pointer;transform:translate(-50%);background-color:transparent;border:none;padding:0;display:flex;z-index:1;touch-action:manipulation;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}._interactive-pin-button_49pse_212:hover ._interactive-pin_49pse_173>._bg_49pse_203{fill:#225f92}._interactive-pin-menu_49pse_232{display:flex;flex-direction:column;gap:.25rem;background-color:var(--settings-menu-bg-color, white);padding:.75rem .5rem;border-radius:var(--radius-2);width:169px;z-index:1000;filter:drop-shadow(0 .125rem .1875rem rgba(0 0 0 / .5))}._interactive-pin-menu-item_49pse_246{font-family:inherit;font-size:14px;text-rendering:geometricprecision;display:flex;align-items:center;gap:.25rem;color:var(--pin-color-3);padding:4px 6px;border-radius:var(--radius-2);border:1px solid #d7dade;background-color:var(--pin-color-1);cursor:pointer}._interactive-pin-menu-item_49pse_246:hover{background-color:#e8eaec}._arrow_49pse_267{fill:#fff}._wrapper_12cb0_1{display:flex;align-items:center}._track_12cb0_6{width:100%;height:.25rem;will-change:height;background-color:var(--volume-track-bg-color, #ccd0d2);border-radius:var(--radius-1);contain:strict;transition:height .15s,border-radius .15s}._thumb_12cb0_18{position:absolute;width:.875rem;height:.875rem;background-color:var(--volume-thumb-bg-color, #2d3b45);border-radius:var(--radius-3);cursor:pointer;opacity:0;transform:translate(-50%) translateZ(0);transition:opacity .15s ease-in;left:var(--slider-fill);will-change:left}._track-fill_12cb0_32{width:var(--slider-fill, 0%);will-change:width;height:100%;background-color:var(--volume-track-fill-bg-color, #2d3b45)}:is([data-fullscreen],[data-darkmode=true]) ._track_12cb0_6{background-color:#666}:is([data-fullscreen],[data-darkmode=true]) ._track-fill_12cb0_32,:is([data-fullscreen],[data-darkmode=true]) ._thumb_12cb0_18{background-color:#f5f5f5}._root_12cb0_51{display:inline-flex;height:1.25rem;align-items:center;contain:layout style;cursor:pointer;user-select:none;touch-action:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;width:0;will-change:width,margin;transition:all .15s;box-sizing:border-box}@media (max-width: 425px) and (hover: none){._root_12cb0_51{display:none}}._root_12cb0_51[data-active] ._track_12cb0_6{border-radius:.125rem;height:.3125rem}._root_12cb0_51[data-focus]{outline:none}._root_12cb0_51[data-focus] ._track_12cb0_6{outline:2px solid var(--focus-outline-color);outline-offset:1px;border-radius:2px}._root_12cb0_51[data-active] ._thumb_12cb0_18{opacity:1}._wrapper_12cb0_1:hover [data-media-volume-slider],[data-media-volume-slider][data-active]{margin-left:.5rem;width:4rem}[data-media-player]{--volume-track-bg-color: #ccd0d2;--volume-track-fill-bg-color: #2d3b45;--volume-thumb-bg-color: #2d3b45;--feedback-message-bg-color: black;--feedback-message-color: white;--feedback-icon-color: white;--feedback-icon-bg-color: black;--timeline-track-bg-color: #ccd0d2;--timeline-track-progress-bg-color: #adb2b6;--timeline-track-fill-bg-color: #2b7abc;--timeline-progress-bg-color: #adb2b6;--timeline-thumb-color: #2b7abc;--settings-menu-bg-color: white;--settings-submenu-color: #2d3b45;--settings-media-hover-color: white;--settings-media-hover-bg-color: rgb(43 122 188);--settings-media-submenu-hint-color: var(--settings-submenu-color);--captions-background-color: rgba(22 22 22 / .75);--captions-color: white;--captions-base-font-size-small: .75rem;--captions-base-font-size-normal: 1rem;--comments-background-color: rgba(0 0 0 / .8);--comments-color: white;--comments-font-size-small: .75rem;--comments-font-size-normal: .875rem;--comments-author-color: #c7cdd1;--controls-layout-bg-color: #f5f5f5;--media-button-icon-color: #2d3b45;--media-button-icon-hover-color: #e0e0e0;--focus-outline-color: #2b7abc;--spacing-1: .5rem;--spacing-2: .625rem;--spacing-3: 1rem;--spacing-4: 2rem;--radius-1: .0625rem;--radius-2: .25rem;--radius-3: 50%;--media-button-area-size-small: 2rem;--media-button-area-size-medium: 2.5rem;--media-button-area-size-large: 3rem;--media-button-icon-size-small: 1rem;--media-button-icon-size-medium: 1.5rem;--media-button-icon-size-large: 1.5rem;--action-buttons-color: #0374b5;--action-buttons-hover-color: #235f93;--action-buttons-border-color: #025483;--pin-color-1: #f2f4f4;--pin-color-2: #556572;--pin-color-3: #273540;outline:none;border-radius:var(--radius-2);position:relative;font-family:Lato,sans-serif;display:grid;container:player / size;width:100%;height:100%;grid-template-rows:1fr auto}[data-media-provider]{display:flex;position:relative;background-color:#000;contain:paint;border-top-left-radius:var(--radius-2);border-top-right-radius:var(--radius-2)}[data-media-provider] video,[data-media-provider] iframe{width:100%;height:100%;object-fit:contain;position:absolute}[data-media-player][data-view-type=audio]{container-type:normal;height:initial}[data-media-player][data-view-type=audio] [data-media-provider]{display:none}.controls-button{background-color:transparent;border:none;border-radius:var(--radius-2);cursor:pointer;padding:var(--spacing-1);margin:0;display:flex;align-items:center;justify-content:center;transition:background-color .2s;width:var(--media-button-area-size-small);height:var(--media-button-area-size-small)}@container player (width > 400px) and (height > 300px){.controls-button{width:var(--media-button-area-size-medium);height:var(--media-button-area-size-medium)}}@container player (width >= 720px) and (height > 300px){.controls-button{width:var(--media-button-area-size-large);height:var(--media-button-area-size-large)}}.controls-button[data-hover],.controls-button:hover{background-color:var(--media-button-icon-hover-color, #e0e0e0)}.controls-button:focus-visible,.controls-button[data-focus]{outline:2px solid var(--focus-outline-color)}.controls-button-icon{color:var(--media-button-icon-color);width:var(--media-button-icon-size-small);height:var(--media-button-icon-size-small)}@container player (width > 400px) and (height > 300px){.controls-button-icon{width:var(--media-button-icon-size-medium);height:var(--media-button-icon-size-medium)}}@container player (width >= 720px) and (height > 300px){.controls-button-icon{width:var(--media-button-icon-size-large);height:var(--media-button-icon-size-large)}}:is([data-fullscreen],[data-darkmode=true]) .controls-button-icon{color:#fff}:is([data-fullscreen],[data-darkmode=true]) .controls-button[data-hover],:is([data-fullscreen],[data-darkmode=true]) .controls-button:hover{background-color:#ffffff26}.icon-rotate{transition:transform .2s ease-out}.controls-button[aria-expanded=true] .icon-rotate{transform:rotate(60deg);transition:transform .1s ease-in}
|
package/dist/studio-player.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import './index-
|
|
1
|
+
import './index-D-eUgNCk.css';var De = Object.defineProperty;
|
|
2
2
|
var ze = (e, n, o) => n in e ? De(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
|
|
3
3
|
var N = (e, n, o) => ze(e, typeof n != "symbol" ? n + "" : n, o);
|
|
4
4
|
import { jsx as t, jsxs as s, Fragment as ee } from "react/jsx-runtime";
|
|
5
|
-
import { createContext as te, useContext as x, useState as
|
|
6
|
-
import { useMediaPlayer as
|
|
5
|
+
import { createContext as te, useContext as x, useState as T, useCallback as p, useEffect as E, useMemo as Z, useRef as ve } from "react";
|
|
6
|
+
import { useMediaPlayer as W, Spinner as X, useMediaRemote as G, useMediaState as _, isTrackCaptionKind as Ue, Track as je, Captions as qe, usePlaybackRateOptions as We, useCaptionOptions as Ge, useVideoQualityOptions as Qe, useMediaStore as Ce, FullscreenButton as ge, PlayButton as Ye, Poster as Xe, Time as re, TimeSlider as A, MuteButton as Je, VolumeSlider as z, MediaPlayer as et, MediaProvider as tt } from "@vidstack/react";
|
|
7
7
|
import { initReactI18next as nt, useTranslation as v } from "react-i18next";
|
|
8
8
|
import ot from "i18next";
|
|
9
9
|
import it from "i18next-resources-to-backend";
|
|
@@ -49,7 +49,7 @@ function C() {
|
|
|
49
49
|
);
|
|
50
50
|
return e;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const Te = te(null);
|
|
53
53
|
function ut({
|
|
54
54
|
hideFullScreen: e,
|
|
55
55
|
comments: n,
|
|
@@ -82,10 +82,10 @@ function ut({
|
|
|
82
82
|
forceComments: y,
|
|
83
83
|
disableCaptionSettings: k
|
|
84
84
|
};
|
|
85
|
-
return /* @__PURE__ */ t(
|
|
85
|
+
return /* @__PURE__ */ t(Te.Provider, { value: b, children: g });
|
|
86
86
|
}
|
|
87
87
|
function S() {
|
|
88
|
-
const e = x(
|
|
88
|
+
const e = x(Te);
|
|
89
89
|
if (!e)
|
|
90
90
|
throw new Error(
|
|
91
91
|
"useStudioPlayerPropsContext must be used within a StudioPlayerPropsContextProvider"
|
|
@@ -103,7 +103,7 @@ const dt = "_annotation-overlay_1kxzn_1", mt = {
|
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
105
|
function pt({ annotations: e }) {
|
|
106
|
-
const n =
|
|
106
|
+
const n = W(), o = C(), i = S(), [a, c] = T(
|
|
107
107
|
null
|
|
108
108
|
), l = p(
|
|
109
109
|
(m) => {
|
|
@@ -113,7 +113,7 @@ function pt({ annotations: e }) {
|
|
|
113
113
|
), u = () => {
|
|
114
114
|
i.interactive || (n == null || n.play(), o.enableInteractions()), c(null);
|
|
115
115
|
};
|
|
116
|
-
return
|
|
116
|
+
return E(() => {
|
|
117
117
|
if (!n)
|
|
118
118
|
return;
|
|
119
119
|
const m = [];
|
|
@@ -146,10 +146,10 @@ const _t = "_media-buffering-indicator_1fwjr_1", ft = "_media-buffering-spinner_
|
|
|
146
146
|
mediaBufferingTrackFill: gt
|
|
147
147
|
};
|
|
148
148
|
function bt() {
|
|
149
|
-
return /* @__PURE__ */ t("div", { className: U.mediaBufferingIndicator, children: /* @__PURE__ */ s(
|
|
150
|
-
/* @__PURE__ */ t(
|
|
149
|
+
return /* @__PURE__ */ t("div", { className: U.mediaBufferingIndicator, children: /* @__PURE__ */ s(X.Root, { className: U.mediaBufferingSpinner, size: 96, children: [
|
|
150
|
+
/* @__PURE__ */ t(X.Track, { className: U.mediaBufferingTrack, width: 8 }),
|
|
151
151
|
/* @__PURE__ */ t(
|
|
152
|
-
|
|
152
|
+
X.TrackFill,
|
|
153
153
|
{
|
|
154
154
|
className: U.mediaBufferingTrackFill,
|
|
155
155
|
width: 8
|
|
@@ -157,7 +157,7 @@ function bt() {
|
|
|
157
157
|
)
|
|
158
158
|
] }) });
|
|
159
159
|
}
|
|
160
|
-
const
|
|
160
|
+
const Me = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
161
161
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_149_104418", children: /* @__PURE__ */ t("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
162
162
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104418)", children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M22.5 21.8125V2.3125C22.5 1.9 22.1625 1.5625 21.75 1.5625H2.25C1.8375 1.5625 1.5 1.9 1.5 2.3125V21.8125C1.5 22.225 1.8375 22.5625 2.25 22.5625H21.75C22.1625 22.5625 22.5 22.225 22.5 21.8125ZM21.75 0.0625C22.9905 0.0625 24 1.072 24 2.3125V21.8125C24 23.053 22.9905 24.0625 21.75 24.0625H2.25C1.0095 24.0625 0 23.053 0 21.8125V2.3125C0 1.072 1.0095 0.0625 2.25 0.0625H21.75ZM10.744 10.6709H8.74403V10.0042H6.07736V14.0042H8.74403V13.3375H10.744V14.6709C10.744 15.4042 10.144 16.0042 9.41069 16.0042H5.41069C4.67736 16.0042 4.07736 15.4042 4.07736 14.6709V9.33753C4.07736 8.6042 4.67736 8.0042 5.41069 8.0042H9.41069C10.144 8.0042 10.744 8.6042 10.744 9.33753V10.6709ZM19.8065 10.6709H17.8065V10.0042H15.1399V14.0042H17.8065V13.3375H19.8065V14.6709C19.8065 15.4042 19.2065 16.0042 18.4732 16.0042H14.4732C13.7399 16.0042 13.1399 15.4042 13.1399 14.6709V9.33753C13.1399 8.6042 13.7399 8.0042 14.4732 8.0042H18.4732C19.2065 8.0042 19.8065 8.6042 19.8065 9.33753V10.6709Z", fill: "currentColor" }) })
|
|
163
163
|
] }), Ie = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
@@ -165,7 +165,7 @@ const Te = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0
|
|
|
165
165
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ t("path", { d: "M21.3333 0H2.66666C1.18666 0 0 1.35 0 3V21C0 22.65 1.18666 24 2.66666 24H21.3333C22.8 24 24 22.65 24 21V3C24 1.35 22.8 0 21.3333 0ZM10.6667 10.6667H8.66666V10H6V14H8.66666V13.3333H10.6667V14.6667C10.6667 15.4 10.0667 16 9.33334 16H5.33334C4.6 16 4 15.4 4 14.6667V9.33334C4 8.6 4.6 8 5.33334 8H9.33334C10.0667 8 10.6667 8.6 10.6667 9.33334V10.6667ZM20.0042 10.6667H18.0042V10H15.3375V14H18.0042V13.3333H20.0042V14.6667C20.0042 15.4 19.4042 16 18.6708 16H14.6708C13.9375 16 13.3375 15.4 13.3375 14.6667V9.33334C13.3375 8.6 13.9375 8 14.6708 8H18.6708C19.4042 8 20.0042 8.6 20.0042 9.33334V10.6667Z", fill: "currentColor" }) })
|
|
166
166
|
] });
|
|
167
167
|
function wt() {
|
|
168
|
-
const e =
|
|
168
|
+
const e = G(), n = _("textTrack"), o = _("hasCaptions"), i = n && Ue(n), a = C(), c = p(
|
|
169
169
|
(l) => {
|
|
170
170
|
e.toggleCaptions(l.nativeEvent);
|
|
171
171
|
},
|
|
@@ -180,7 +180,7 @@ function wt() {
|
|
|
180
180
|
"aria-label": "Captions",
|
|
181
181
|
"aria-pressed": i ? "true" : "false",
|
|
182
182
|
tabIndex: a.state.interactionsDisabled ? -1 : 0,
|
|
183
|
-
children: i ? /* @__PURE__ */ t(Ie, { className: "controls-button-icon" }) : /* @__PURE__ */ t(
|
|
183
|
+
children: i ? /* @__PURE__ */ t(Ie, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Me, { className: "controls-button-icon" })
|
|
184
184
|
}
|
|
185
185
|
) : null;
|
|
186
186
|
}
|
|
@@ -216,8 +216,8 @@ function Lt({ captions: e }) {
|
|
|
216
216
|
) : null
|
|
217
217
|
] });
|
|
218
218
|
}
|
|
219
|
-
const
|
|
220
|
-
const [, n] =
|
|
219
|
+
const V = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Pt = (e) => {
|
|
220
|
+
const [, n] = T({});
|
|
221
221
|
return Z(() => {
|
|
222
222
|
let o = [];
|
|
223
223
|
return {
|
|
@@ -241,9 +241,9 @@ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Pt = (e)
|
|
|
241
241
|
const c = a.detail.currentTime;
|
|
242
242
|
c >= e.timestamp && c < e.timestamp + n && !i && (o.add(e), i = !0), (c < e.timestamp || c >= e.timestamp + n) && i && (o.remove(e), i = !1);
|
|
243
243
|
};
|
|
244
|
-
},
|
|
245
|
-
const o =
|
|
246
|
-
return
|
|
244
|
+
}, Tt = (e, n = 5) => {
|
|
245
|
+
const o = W(), i = Pt(n);
|
|
246
|
+
return E(() => {
|
|
247
247
|
if (!o)
|
|
248
248
|
return;
|
|
249
249
|
const a = [];
|
|
@@ -261,51 +261,51 @@ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Pt = (e)
|
|
|
261
261
|
i.clear();
|
|
262
262
|
};
|
|
263
263
|
}, [o, i, e]), i;
|
|
264
|
-
},
|
|
264
|
+
}, Mt = "_comments-overlay_2woxe_1", It = "_comments-container_2woxe_9", St = "_comment_2woxe_1", Ht = "_comment-text_2woxe_45", Rt = "_comment-author-avatar_2woxe_68", Vt = "_comment-author-name_2woxe_87", B = {
|
|
265
265
|
"comments-overlay": "_comments-overlay_2woxe_1",
|
|
266
|
-
commentsOverlay:
|
|
266
|
+
commentsOverlay: Mt,
|
|
267
267
|
"comments-container": "_comments-container_2woxe_9",
|
|
268
268
|
commentsContainer: It,
|
|
269
269
|
comment: St,
|
|
270
270
|
"comment-text": "_comment-text_2woxe_45",
|
|
271
271
|
commentText: Ht,
|
|
272
272
|
"comment-author-avatar": "_comment-author-avatar_2woxe_68",
|
|
273
|
-
commentAuthorAvatar:
|
|
273
|
+
commentAuthorAvatar: Rt,
|
|
274
274
|
"comment-author-name": "_comment-author-name_2woxe_87",
|
|
275
|
-
commentAuthorName:
|
|
275
|
+
commentAuthorName: Vt
|
|
276
276
|
};
|
|
277
|
-
function
|
|
278
|
-
return /* @__PURE__ */ s("div", { className:
|
|
277
|
+
function Bt({ comment: e }) {
|
|
278
|
+
return /* @__PURE__ */ s("div", { className: B.comment, onClick: () => {
|
|
279
279
|
var n;
|
|
280
280
|
return (n = e.onClick) == null ? void 0 : n.call(e, e);
|
|
281
281
|
}, children: [
|
|
282
282
|
/* @__PURE__ */ t(
|
|
283
283
|
"img",
|
|
284
284
|
{
|
|
285
|
-
className:
|
|
285
|
+
className: B.commentAuthorAvatar,
|
|
286
286
|
src: e.user.avatar,
|
|
287
287
|
alt: e.user.name
|
|
288
288
|
}
|
|
289
289
|
),
|
|
290
|
-
/* @__PURE__ */ t("span", { className:
|
|
291
|
-
/* @__PURE__ */ t("span", { className:
|
|
290
|
+
/* @__PURE__ */ t("span", { className: B.commentText, children: e.text }),
|
|
291
|
+
/* @__PURE__ */ t("span", { className: B.commentAuthorName, children: e.user.name })
|
|
292
292
|
] });
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const Et = 5;
|
|
295
295
|
function At({ comments: e }) {
|
|
296
|
-
const n = C(), o =
|
|
296
|
+
const n = C(), o = Tt(e, Et), i = !!_("textTrack"), a = o.map((c) => /* @__PURE__ */ t(Bt, { comment: c }, c.id));
|
|
297
297
|
return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
|
|
298
298
|
"div",
|
|
299
299
|
{
|
|
300
|
-
className:
|
|
300
|
+
className: B.commentsOverlay,
|
|
301
301
|
style: {
|
|
302
302
|
flexDirection: n.state.captionPositionOnTop && i ? "column-reverse" : "column"
|
|
303
303
|
},
|
|
304
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
304
|
+
children: /* @__PURE__ */ t("div", { className: B.commentsContainer, children: i ? a.slice(-4) : a })
|
|
305
305
|
}
|
|
306
306
|
) : null;
|
|
307
307
|
}
|
|
308
|
-
const Ot = "_root_1x28e_1", Ft = "_left-controls_1x28e_28", Zt = "_right-controls_1x28e_34", $t = "_indicators_1x28e_40", Kt = "_normal-timeline_1x28e_49", Dt = "_compact-timeline_1x28e_55",
|
|
308
|
+
const Ot = "_root_1x28e_1", Ft = "_left-controls_1x28e_28", Zt = "_right-controls_1x28e_34", $t = "_indicators_1x28e_40", Kt = "_normal-timeline_1x28e_49", Dt = "_compact-timeline_1x28e_55", R = {
|
|
309
309
|
root: Ot,
|
|
310
310
|
"left-controls": "_left-controls_1x28e_28",
|
|
311
311
|
leftControls: Ft,
|
|
@@ -322,20 +322,20 @@ function zt({
|
|
|
322
322
|
playerRef: n,
|
|
323
323
|
showCaptionsButton: o = !0
|
|
324
324
|
}) {
|
|
325
|
-
const i =
|
|
326
|
-
return
|
|
325
|
+
const i = W();
|
|
326
|
+
return E(() => {
|
|
327
327
|
i && (i.remoteControl.pauseControls(), n && (n.current = i));
|
|
328
|
-
}, [i, n]), /* @__PURE__ */ s("div", { "data-darkmode": e, className:
|
|
329
|
-
/* @__PURE__ */ t(he, { className:
|
|
330
|
-
/* @__PURE__ */ s("div", { className:
|
|
331
|
-
/* @__PURE__ */ t(
|
|
332
|
-
/* @__PURE__ */ t(
|
|
328
|
+
}, [i, n]), /* @__PURE__ */ s("div", { "data-darkmode": e, className: R.root, children: [
|
|
329
|
+
/* @__PURE__ */ t(he, { className: R.normalTimeline }),
|
|
330
|
+
/* @__PURE__ */ s("div", { className: R.leftControls, children: [
|
|
331
|
+
/* @__PURE__ */ t(mo, {}),
|
|
332
|
+
/* @__PURE__ */ t(_i, {})
|
|
333
333
|
] }),
|
|
334
|
-
/* @__PURE__ */ t("div", { className:
|
|
335
|
-
/* @__PURE__ */ t(he, { className:
|
|
336
|
-
/* @__PURE__ */ s("div", { className:
|
|
334
|
+
/* @__PURE__ */ t("div", { className: R.indicators, children: /* @__PURE__ */ t(xo, {}) }),
|
|
335
|
+
/* @__PURE__ */ t(he, { className: R.compactTimeline }),
|
|
336
|
+
/* @__PURE__ */ s("div", { className: R.rightControls, children: [
|
|
337
337
|
o && /* @__PURE__ */ t(wt, {}),
|
|
338
|
-
/* @__PURE__ */ t(
|
|
338
|
+
/* @__PURE__ */ t(En, {}),
|
|
339
339
|
/* @__PURE__ */ t(Xn, {})
|
|
340
340
|
] })
|
|
341
341
|
] });
|
|
@@ -383,7 +383,7 @@ function Xt() {
|
|
|
383
383
|
label: i("CAPTIONS"),
|
|
384
384
|
hint: (o == null ? void 0 : o.label) ?? i("OFF"),
|
|
385
385
|
onClick: a,
|
|
386
|
-
Icon:
|
|
386
|
+
Icon: Me
|
|
387
387
|
}
|
|
388
388
|
) : null;
|
|
389
389
|
}
|
|
@@ -466,7 +466,7 @@ function dn() {
|
|
|
466
466
|
) : null;
|
|
467
467
|
}
|
|
468
468
|
function H(e) {
|
|
469
|
-
|
|
469
|
+
E(() => {
|
|
470
470
|
const n = (o) => {
|
|
471
471
|
o.key === "Escape" && (e == null || e());
|
|
472
472
|
};
|
|
@@ -488,7 +488,7 @@ function pn() {
|
|
|
488
488
|
/* @__PURE__ */ t(en, {})
|
|
489
489
|
] });
|
|
490
490
|
}
|
|
491
|
-
const
|
|
491
|
+
const Q = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) }), K = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), _n = "_menu-container_1bjr3_1", fn = "_menu-options_1bjr3_6", vn = "_menu-heading_1bjr3_11", Cn = "_check-icon_1bjr3_27", gn = "_menu-item-label_1bjr3_33", bn = "_menu-item_1bjr3_33", wn = "_menu-back-button_1bjr3_66", r = {
|
|
492
492
|
"menu-container": "_menu-container_1bjr3_1",
|
|
493
493
|
menuContainer: _n,
|
|
494
494
|
"menu-options": "_menu-options_1bjr3_6",
|
|
@@ -506,7 +506,7 @@ const G = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0
|
|
|
506
506
|
};
|
|
507
507
|
function kn() {
|
|
508
508
|
const e = x(P), n = We({
|
|
509
|
-
rates:
|
|
509
|
+
rates: V,
|
|
510
510
|
normalLabel: "1x"
|
|
511
511
|
}), { t: o } = v();
|
|
512
512
|
return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
@@ -534,7 +534,7 @@ function kn() {
|
|
|
534
534
|
},
|
|
535
535
|
className: r.menuItem,
|
|
536
536
|
children: [
|
|
537
|
-
/* @__PURE__ */ t(
|
|
537
|
+
/* @__PURE__ */ t(Q, { className: r.checkIcon }),
|
|
538
538
|
/* @__PURE__ */ t("span", { className: r.menuItemLabel, children: a })
|
|
539
539
|
]
|
|
540
540
|
},
|
|
@@ -612,7 +612,7 @@ function Nn() {
|
|
|
612
612
|
/* @__PURE__ */ t(Pn, {})
|
|
613
613
|
] }) : null;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Tn() {
|
|
616
616
|
const e = x(P), n = Ge(), { t: o } = v();
|
|
617
617
|
return H(e == null ? void 0 : e.backToCaptions), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
618
618
|
/* @__PURE__ */ s(
|
|
@@ -639,7 +639,7 @@ function Mn() {
|
|
|
639
639
|
},
|
|
640
640
|
className: r.menuItem,
|
|
641
641
|
children: [
|
|
642
|
-
/* @__PURE__ */ t(
|
|
642
|
+
/* @__PURE__ */ t(Q, { className: r.checkIcon }),
|
|
643
643
|
/* @__PURE__ */ t("span", { className: r.menuItemLabel, children: a })
|
|
644
644
|
]
|
|
645
645
|
},
|
|
@@ -647,7 +647,7 @@ function Mn() {
|
|
|
647
647
|
)) })
|
|
648
648
|
] }) : null;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function Mn() {
|
|
651
651
|
const e = C(), n = x(P), { t: o } = v();
|
|
652
652
|
return H(n == null ? void 0 : n.backToCaptions), n ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
|
|
653
653
|
/* @__PURE__ */ s(
|
|
@@ -674,7 +674,7 @@ function Tn() {
|
|
|
674
674
|
},
|
|
675
675
|
className: r.menuItem,
|
|
676
676
|
children: [
|
|
677
|
-
/* @__PURE__ */ t(
|
|
677
|
+
/* @__PURE__ */ t(Q, { className: r.checkIcon }),
|
|
678
678
|
/* @__PURE__ */ s("span", { className: r.menuItemLabel, children: [
|
|
679
679
|
i * 100,
|
|
680
680
|
"%"
|
|
@@ -712,7 +712,7 @@ function In() {
|
|
|
712
712
|
},
|
|
713
713
|
className: r.menuItem,
|
|
714
714
|
children: [
|
|
715
|
-
/* @__PURE__ */ t(
|
|
715
|
+
/* @__PURE__ */ t(Q, { className: r.checkIcon }),
|
|
716
716
|
/* @__PURE__ */ t("span", { className: r.menuItemLabel, children: c })
|
|
717
717
|
]
|
|
718
718
|
},
|
|
@@ -724,23 +724,23 @@ const Sn = {
|
|
|
724
724
|
main: pn,
|
|
725
725
|
speed: kn,
|
|
726
726
|
captions: Nn,
|
|
727
|
-
captionLanguage:
|
|
728
|
-
captionFontSize:
|
|
727
|
+
captionLanguage: Tn,
|
|
728
|
+
captionFontSize: Mn,
|
|
729
729
|
quality: In
|
|
730
730
|
};
|
|
731
731
|
function Hn() {
|
|
732
|
-
const [e, n] =
|
|
733
|
-
i((
|
|
734
|
-
}, []), c = p((
|
|
735
|
-
n(
|
|
732
|
+
const [e, n] = T("main"), [o, i] = T(!1), a = p(() => {
|
|
733
|
+
i((M) => !M);
|
|
734
|
+
}, []), c = p((M) => {
|
|
735
|
+
n(M);
|
|
736
736
|
}, []), l = p(() => {
|
|
737
737
|
n("captions");
|
|
738
738
|
}, []), u = p(() => {
|
|
739
739
|
n("main");
|
|
740
740
|
}, []), m = Z(() => Sn[e], [e]), h = ve(null), { refs: g, floatingStyles: y, context: k } = be({
|
|
741
741
|
open: o,
|
|
742
|
-
onOpenChange: (
|
|
743
|
-
i(
|
|
742
|
+
onOpenChange: (M) => {
|
|
743
|
+
i(M), u();
|
|
744
744
|
},
|
|
745
745
|
placement: "top-end",
|
|
746
746
|
whileElementsMounted: we,
|
|
@@ -766,12 +766,12 @@ function Hn() {
|
|
|
766
766
|
getFloatingProps: w
|
|
767
767
|
};
|
|
768
768
|
}
|
|
769
|
-
const
|
|
769
|
+
const Rn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.0692 12C21.0692 11.4776 21.0212 10.944 20.9238 10.4104L23.5511 8.13318L21.0579 3.87247L17.7431 4.97788C16.9059 4.28329 15.9515 3.73553 14.9449 3.37271L14.2616 0H9.28941L8.60612 3.37129C7.58823 3.73553 6.65082 4.27482 5.80659 4.97647L2.49318 3.87247L0 8.13318L2.62729 10.4104C2.52988 10.944 2.48188 11.4776 2.48188 12C2.48188 12.5224 2.52988 13.056 2.62729 13.5896L0 15.8668L2.49318 20.1275L5.808 19.0221C6.64518 19.7167 7.59953 20.2645 8.60612 20.6273L9.28941 24H14.2616L14.9449 20.6287C15.9614 20.2645 16.9002 19.7252 17.7445 19.0235L21.0579 20.1289L23.5511 15.8682L20.9238 13.5911C21.0212 13.056 21.0692 12.5224 21.0692 12ZM11.7755 16.9412C9.05082 16.9412 6.83435 14.7247 6.83435 12C6.83435 9.2753 9.05082 7.05883 11.7755 7.05883C14.5002 7.05883 16.7167 9.2753 16.7167 12C16.7167 14.7247 14.5002 16.9412 11.7755 16.9412Z", fill: "currentColor" }) }), Vn = "_settings-menu_hxlsv_1", Bn = "_arrow_hxlsv_15", de = {
|
|
770
770
|
"settings-menu": "_settings-menu_hxlsv_1",
|
|
771
|
-
settingsMenu:
|
|
772
|
-
arrow:
|
|
771
|
+
settingsMenu: Vn,
|
|
772
|
+
arrow: Bn
|
|
773
773
|
};
|
|
774
|
-
function
|
|
774
|
+
function En() {
|
|
775
775
|
const {
|
|
776
776
|
Page: e,
|
|
777
777
|
arrowRef: n,
|
|
@@ -798,7 +798,7 @@ function Rn() {
|
|
|
798
798
|
"aria-expanded": m,
|
|
799
799
|
tabIndex: k != null && k.state.interactionsDisabled ? -1 : 0,
|
|
800
800
|
...u(),
|
|
801
|
-
children: /* @__PURE__ */ t(
|
|
801
|
+
children: /* @__PURE__ */ t(Rn, { className: "controls-button-icon icon-rotate" })
|
|
802
802
|
}
|
|
803
803
|
),
|
|
804
804
|
m && /* @__PURE__ */ t(at, { context: a, initialFocus: -1, modal: !1, children: /* @__PURE__ */ s(
|
|
@@ -831,15 +831,15 @@ function Rn() {
|
|
|
831
831
|
}
|
|
832
832
|
function He(e, n = 1e3) {
|
|
833
833
|
return function() {
|
|
834
|
-
const i = _("lastKeyboardAction"), [a, c] =
|
|
835
|
-
return
|
|
834
|
+
const i = _("lastKeyboardAction"), [a, c] = T(!1), l = p(() => c(!1), []);
|
|
835
|
+
return E(() => {
|
|
836
836
|
c(!!i);
|
|
837
837
|
const u = setTimeout(l, n);
|
|
838
838
|
return () => clearTimeout(u);
|
|
839
839
|
}, [i, n]), a ? /* @__PURE__ */ t(e, {}) : null;
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
|
-
const oe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), ie = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }),
|
|
842
|
+
const oe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), ie = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), Re = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1179 1.41211V22.589H11.2943L5.64717 16.9418V7.05928L11.2943 1.41211H14.1179ZM4.23537 7.05928V16.9418H2.11769C0.957618 16.9418 0.0189406 16.0147 0.00028305 14.8592L0 14.8241V9.17696C0 8.01689 0.927077 7.07822 2.0826 7.05956L2.11769 7.05928H4.23537ZM22.3744 7.93711L24 9.56119L21.5623 11.9988L24 14.4365L22.3744 16.0621L19.9383 13.6245L17.5006 16.0621L15.875 14.4365L18.3127 11.9988L15.875 9.56119L17.5006 7.93711L19.9383 10.3748L22.3744 7.93711Z", fill: "currentColor" }) }), Ve = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }), Be = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 16.8627V6.98017L11.2943 1.33301H14.1179V22.5099H11.2943L5.64714 16.8627ZM0 14.745V9.09785C0 7.92607 0.945899 6.98017 2.11768 6.98017H4.23537V16.8627H2.11768C0.945899 16.8627 0 15.9168 0 14.745ZM16.9056 8.4209C17.8388 9.36962 18.3527 10.6134 18.3527 11.9207C18.3527 13.2295 17.8388 14.4732 16.9056 15.422L17.9094 16.4116C19.1066 15.1989 19.7645 13.6036 19.7645 11.9207C19.7645 10.2393 19.1066 8.64396 17.9094 7.43123L16.9056 8.4209ZM19.9016 5.43185L20.8997 4.43372C22.9002 6.43422 24 9.09403 24 11.9219C24 14.7497 22.9002 17.4081 20.8997 19.4086L19.9016 18.4104C21.6353 16.6782 22.5882 14.3727 22.5882 11.9219C22.5882 9.46957 21.6353 7.16553 19.9016 5.43185Z", fill: "currentColor" }) }), An = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.691 3.99987V10.5281L0 4.00655V20.2596L10.691 13.7367V20.2663L23.9987 12.1331L10.691 3.99987Z", fill: "currentColor" }) }), On = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.309 3.99987L0 12.1331L13.309 20.2663V13.7367L23.9987 20.2596V4.00655L13.309 10.5281V3.99987Z", fill: "currentColor" }) }), Fn = "_feedback-overlay_v4lbu_1", Zn = "_feedback-message_v4lbu_14", $n = "_feedback-icon_v4lbu_30", Kn = "_feedback-icon-animation_v4lbu_1", L = {
|
|
843
843
|
"feedback-overlay": "_feedback-overlay_v4lbu_1",
|
|
844
844
|
feedbackOverlay: Fn,
|
|
845
845
|
"feedback-message": "_feedback-message_v4lbu_14",
|
|
@@ -862,7 +862,7 @@ function Dn() {
|
|
|
862
862
|
case "volumeUp":
|
|
863
863
|
case "volumeDown":
|
|
864
864
|
case "toggleMuted":
|
|
865
|
-
return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(
|
|
865
|
+
return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(Re, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(Be, {}) : /* @__PURE__ */ t(Ve, {}) });
|
|
866
866
|
case "seekForward":
|
|
867
867
|
case "seekForward10":
|
|
868
868
|
return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(An, { className: "right" }) });
|
|
@@ -930,20 +930,22 @@ const Jn = "_gestures-container_1fn3b_1", eo = "_gesture_1fn3b_1", me = {
|
|
|
930
930
|
gesture: eo
|
|
931
931
|
};
|
|
932
932
|
function to() {
|
|
933
|
-
const e =
|
|
933
|
+
const e = G(), n = () => {
|
|
934
934
|
e.togglePaused();
|
|
935
935
|
};
|
|
936
936
|
return /* @__PURE__ */ t("div", { className: me.gesturesContainer, children: /* @__PURE__ */ t("div", { "aria-hidden": !0, className: me.gesture, onClick: n }) });
|
|
937
937
|
}
|
|
938
|
-
const no = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.76472 10.5294C5.05696 10.5294 5.29413 10.2922 5.29413 9.99999V8.94117C5.29413 8.64893 5.05696 8.41175 4.76472 8.41175H3.7059C3.41366 8.41175 3.17649 8.64893 3.17649 8.94117V9.99999C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472ZM11.1177 10.5294C11.4099 10.5294 11.6471 10.2922 11.6471 9.99999V8.94117C11.6471 8.64893 11.4099 8.41175 11.1177 8.41175H10.0588C9.76661 8.41175 9.52944 8.64893 9.52944 8.94117V9.99999C9.52944 10.2922 9.76661 10.5294 10.0588 10.5294H11.1177ZM14.8235 9.99999C14.8235 10.2922 14.5864 10.5294 14.2941 10.5294H13.2353C12.9431 10.5294 12.7059 10.2922 12.7059 9.99999V8.94117C12.7059 8.64893 12.9431 8.41175 13.2353 8.41175H14.2941C14.5864 8.41175 14.8235 8.64893 14.8235 8.94117V9.99999ZM14.8235 13.1765C14.8235 13.4687 14.5864 13.7059 14.2941 13.7059H13.2353C12.9431 13.7059 12.7059 13.4687 12.7059 13.1765V12.1176C12.7059 11.8254 12.9431 11.5882 13.2353 11.5882H14.2941C14.5864 11.5882 14.8235 11.8254 14.8235 12.1176V13.1765ZM11.6471 13.1765C11.6471 13.4687 11.4099 13.7059 11.1177 13.7059H6.88239C6.59015 13.7059 6.35297 13.4687 6.35297 13.1765V12.1176C6.35297 11.8254 6.59015 11.5882 6.88239 11.5882H11.1177C11.4099 11.5882 11.6471 11.8254 11.6471 12.1176V13.1765ZM5.29413 13.1765C5.29413 13.4687 5.05696 13.7059 4.76472 13.7059H3.7059C3.41366 13.7059 3.17649 13.4687 3.17649 13.1765V12.1176C3.17649 11.8254 3.41366 11.5882 3.7059 11.5882H4.76472C5.05696 11.5882 5.29413 11.8254 5.29413 12.1176V13.1765ZM6.88238 8.41175C6.59015 8.41175 6.35297 8.64893 6.35297 8.94117V9.99999C6.35297 10.2922 6.59015 10.5294 6.88238 10.5294H7.94121C8.23344 10.5294 8.47062 10.2922 8.47062 9.99999V8.94117C8.47062 8.64893 8.23344 8.41175 7.94121 8.41175H6.88238ZM16.4118 5.23529H9.57494C9.71471 4.42 10.1933 4.17118 10.8254 3.85565C11.6629 3.43741 12.7059 2.91541 12.7059 1H11.6471C11.6471 2.26106 11.1039 2.53212 10.3511 2.90906C9.59824 3.28494 8.68659 3.75506 8.50871 5.23529H1.58824C0.712588 5.23529 0 5.94788 0 6.82353V15.2941C0 16.1698 0.712588 16.8824 1.58824 16.8824H16.4118C17.2874 16.8824 18 16.1698 18 15.2941V6.82353C18 5.94788 17.2874 5.23529 16.4118 5.23529Z", fill: "currentColor" }) }),
|
|
939
|
-
"keyboard-shortcuts-overlay": "_keyboard-shortcuts-
|
|
938
|
+
const no = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.76472 10.5294C5.05696 10.5294 5.29413 10.2922 5.29413 9.99999V8.94117C5.29413 8.64893 5.05696 8.41175 4.76472 8.41175H3.7059C3.41366 8.41175 3.17649 8.64893 3.17649 8.94117V9.99999C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472ZM11.1177 10.5294C11.4099 10.5294 11.6471 10.2922 11.6471 9.99999V8.94117C11.6471 8.64893 11.4099 8.41175 11.1177 8.41175H10.0588C9.76661 8.41175 9.52944 8.64893 9.52944 8.94117V9.99999C9.52944 10.2922 9.76661 10.5294 10.0588 10.5294H11.1177ZM14.8235 9.99999C14.8235 10.2922 14.5864 10.5294 14.2941 10.5294H13.2353C12.9431 10.5294 12.7059 10.2922 12.7059 9.99999V8.94117C12.7059 8.64893 12.9431 8.41175 13.2353 8.41175H14.2941C14.5864 8.41175 14.8235 8.64893 14.8235 8.94117V9.99999ZM14.8235 13.1765C14.8235 13.4687 14.5864 13.7059 14.2941 13.7059H13.2353C12.9431 13.7059 12.7059 13.4687 12.7059 13.1765V12.1176C12.7059 11.8254 12.9431 11.5882 13.2353 11.5882H14.2941C14.5864 11.5882 14.8235 11.8254 14.8235 12.1176V13.1765ZM11.6471 13.1765C11.6471 13.4687 11.4099 13.7059 11.1177 13.7059H6.88239C6.59015 13.7059 6.35297 13.4687 6.35297 13.1765V12.1176C6.35297 11.8254 6.59015 11.5882 6.88239 11.5882H11.1177C11.4099 11.5882 11.6471 11.8254 11.6471 12.1176V13.1765ZM5.29413 13.1765C5.29413 13.4687 5.05696 13.7059 4.76472 13.7059H3.7059C3.41366 13.7059 3.17649 13.4687 3.17649 13.1765V12.1176C3.17649 11.8254 3.41366 11.5882 3.7059 11.5882H4.76472C5.05696 11.5882 5.29413 11.8254 5.29413 12.1176V13.1765ZM6.88238 8.41175C6.59015 8.41175 6.35297 8.64893 6.35297 8.94117V9.99999C6.35297 10.2922 6.59015 10.5294 6.88238 10.5294H7.94121C8.23344 10.5294 8.47062 10.2922 8.47062 9.99999V8.94117C8.47062 8.64893 8.23344 8.41175 7.94121 8.41175H6.88238ZM16.4118 5.23529H9.57494C9.71471 4.42 10.1933 4.17118 10.8254 3.85565C11.6629 3.43741 12.7059 2.91541 12.7059 1H11.6471C11.6471 2.26106 11.1039 2.53212 10.3511 2.90906C9.59824 3.28494 8.68659 3.75506 8.50871 5.23529H1.58824C0.712588 5.23529 0 5.94788 0 6.82353V15.2941C0 16.1698 0.712588 16.8824 1.58824 16.8824H16.4118C17.2874 16.8824 18 16.1698 18 15.2941V6.82353C18 5.94788 17.2874 5.23529 16.4118 5.23529Z", fill: "currentColor" }) }), Ee = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94968 7.74766L3.99993 2.79791L2.79785 3.99999L7.7476 8.94974L2.79785 13.8995L3.99993 15.1016L8.94968 10.1518L13.8994 15.1016L15.1015 13.8995L10.1518 8.94974L15.1015 3.99999L13.8994 2.79791L8.94968 7.74766Z", fill: "currentColor" }) }), oo = "_keyboard-shortcuts-overlay_dr03d_1", io = "_screen-reader-content_dr03d_66", ao = "_keyboard-shortcuts-button_dr03d_80", so = "_close-button_dr03d_106", q = {
|
|
939
|
+
"keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_dr03d_1",
|
|
940
940
|
keyboardShortcutsOverlay: oo,
|
|
941
|
-
"
|
|
942
|
-
|
|
943
|
-
"
|
|
944
|
-
|
|
941
|
+
"screen-reader-content": "_screen-reader-content_dr03d_66",
|
|
942
|
+
screenReaderContent: io,
|
|
943
|
+
"keyboard-shortcuts-button": "_keyboard-shortcuts-button_dr03d_80",
|
|
944
|
+
keyboardShortcutsButton: ao,
|
|
945
|
+
"close-button": "_close-button_dr03d_106",
|
|
946
|
+
closeButton: so
|
|
945
947
|
};
|
|
946
|
-
function
|
|
948
|
+
function co({ onClose: e }) {
|
|
947
949
|
const { t: n } = v();
|
|
948
950
|
H(e);
|
|
949
951
|
const o = (i) => {
|
|
@@ -952,9 +954,11 @@ function so({ onClose: e }) {
|
|
|
952
954
|
return /* @__PURE__ */ s(
|
|
953
955
|
"div",
|
|
954
956
|
{
|
|
955
|
-
className:
|
|
957
|
+
className: q.keyboardShortcutsOverlay,
|
|
956
958
|
tabIndex: 0,
|
|
957
959
|
ref: o,
|
|
960
|
+
role: "dialog",
|
|
961
|
+
"aria-label": n("KEYBOARD_SHORTCUTS"),
|
|
958
962
|
children: [
|
|
959
963
|
/* @__PURE__ */ s("header", { children: [
|
|
960
964
|
/* @__PURE__ */ t("h2", { children: n("KEYBOARD_SHORTCUTS") }),
|
|
@@ -962,14 +966,15 @@ function so({ onClose: e }) {
|
|
|
962
966
|
"button",
|
|
963
967
|
{
|
|
964
968
|
type: "button",
|
|
965
|
-
className:
|
|
969
|
+
className: q.closeButton,
|
|
966
970
|
onClick: e,
|
|
967
971
|
"aria-label": n("CLOSE"),
|
|
968
|
-
children: /* @__PURE__ */ t(
|
|
972
|
+
children: /* @__PURE__ */ t(Ee, {})
|
|
969
973
|
}
|
|
970
974
|
)
|
|
971
975
|
] }),
|
|
972
976
|
/* @__PURE__ */ s("table", { children: [
|
|
977
|
+
/* @__PURE__ */ t("caption", { className: q.screenReaderContent, children: n("KEYBOARD_SHORTCUTS") }),
|
|
973
978
|
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ s("tr", { children: [
|
|
974
979
|
/* @__PURE__ */ t("th", { children: n("ACTION") }),
|
|
975
980
|
/* @__PURE__ */ t("th", { children: n("SHORTCUT") })
|
|
@@ -1056,8 +1061,8 @@ function so({ onClose: e }) {
|
|
|
1056
1061
|
}
|
|
1057
1062
|
);
|
|
1058
1063
|
}
|
|
1059
|
-
function
|
|
1060
|
-
const [e, n] =
|
|
1064
|
+
function lo() {
|
|
1065
|
+
const [e, n] = T(!1), [o, i] = T(!1), [a, c] = T(!1), l = C(), u = _("playing"), m = G(), { t: h } = v(), g = p(() => {
|
|
1061
1066
|
n(!0), l.disableInteractions(), u && (c(!0), m.pause());
|
|
1062
1067
|
}, [u, m, l]), y = p(() => {
|
|
1063
1068
|
n(!1), i(!0), l.enableInteractions(), a && (c(!1), m.play());
|
|
@@ -1065,31 +1070,31 @@ function co() {
|
|
|
1065
1070
|
(b) => o && (b == null ? void 0 : b.focus()),
|
|
1066
1071
|
[o]
|
|
1067
1072
|
);
|
|
1068
|
-
return e ? /* @__PURE__ */ t(
|
|
1073
|
+
return e ? /* @__PURE__ */ t(co, { onClose: y }) : /* @__PURE__ */ t(
|
|
1069
1074
|
"button",
|
|
1070
1075
|
{
|
|
1071
1076
|
ref: k,
|
|
1072
1077
|
"aria-label": h("KEYBOARD_SHORTCUTS"),
|
|
1073
1078
|
type: "button",
|
|
1074
|
-
className:
|
|
1079
|
+
className: q.keyboardShortcutsButton,
|
|
1075
1080
|
onClick: g,
|
|
1076
1081
|
tabIndex: l.state.interactionsDisabled ? -1 : 0,
|
|
1077
1082
|
children: /* @__PURE__ */ t(no, {})
|
|
1078
1083
|
}
|
|
1079
1084
|
);
|
|
1080
1085
|
}
|
|
1081
|
-
const
|
|
1086
|
+
const ro = "_play-pause-button_kyuc5_1", uo = {
|
|
1082
1087
|
"play-pause-button": "_play-pause-button_kyuc5_1",
|
|
1083
|
-
playPauseButton:
|
|
1088
|
+
playPauseButton: ro
|
|
1084
1089
|
};
|
|
1085
|
-
function
|
|
1086
|
-
const e =
|
|
1090
|
+
function mo() {
|
|
1091
|
+
const e = W(), n = C(), o = _("paused"), { t: i } = v();
|
|
1087
1092
|
return e ? /* @__PURE__ */ t(
|
|
1088
1093
|
Ye,
|
|
1089
1094
|
{
|
|
1090
1095
|
"aria-label": i(o ? "PLAY" : "PAUSE"),
|
|
1091
1096
|
tabIndex: n.state.interactionsDisabled ? -1 : 0,
|
|
1092
|
-
className: `${
|
|
1097
|
+
className: `${uo.playPauseButton} controls-button`,
|
|
1093
1098
|
onKeyDown: (a) => {
|
|
1094
1099
|
a.key === " " && (e == null || e.$state.lastKeyboardAction.set({
|
|
1095
1100
|
action: "togglePaused",
|
|
@@ -1100,91 +1105,91 @@ function uo() {
|
|
|
1100
1105
|
}
|
|
1101
1106
|
) : null;
|
|
1102
1107
|
}
|
|
1103
|
-
const
|
|
1104
|
-
poster:
|
|
1108
|
+
const ho = "_poster_195hi_1", po = {
|
|
1109
|
+
poster: ho
|
|
1105
1110
|
};
|
|
1106
|
-
function
|
|
1111
|
+
function _o({ src: e }) {
|
|
1107
1112
|
const n = _("source");
|
|
1108
|
-
return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(Xe, { src: e, className:
|
|
1113
|
+
return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(Xe, { src: e, className: po.poster });
|
|
1109
1114
|
}
|
|
1110
|
-
const
|
|
1115
|
+
const fo = "_small-layout-overlay_1vli4_1", vo = "_small-layout-button_1vli4_14", Co = "_small-layout-icon-play_1vli4_24", go = "_small-layout-icon-pause_1vli4_30", bo = "_full-screen-close-icon_1vli4_36", wo = "_fade-out_1vli4_1", O = {
|
|
1111
1116
|
"small-layout-overlay": "_small-layout-overlay_1vli4_1",
|
|
1112
|
-
smallLayoutOverlay:
|
|
1117
|
+
smallLayoutOverlay: fo,
|
|
1113
1118
|
"small-layout-button": "_small-layout-button_1vli4_14",
|
|
1114
|
-
smallLayoutButton:
|
|
1119
|
+
smallLayoutButton: vo,
|
|
1115
1120
|
"small-layout-icon-play": "_small-layout-icon-play_1vli4_24",
|
|
1116
|
-
smallLayoutIconPlay:
|
|
1121
|
+
smallLayoutIconPlay: Co,
|
|
1117
1122
|
"small-layout-icon-pause": "_small-layout-icon-pause_1vli4_30",
|
|
1118
|
-
smallLayoutIconPause:
|
|
1123
|
+
smallLayoutIconPause: go,
|
|
1119
1124
|
"full-screen-close-icon": "_full-screen-close-icon_1vli4_36",
|
|
1120
|
-
fullScreenCloseIcon:
|
|
1125
|
+
fullScreenCloseIcon: bo,
|
|
1121
1126
|
"fade-out": "_fade-out_1vli4_1",
|
|
1122
|
-
fadeOut:
|
|
1127
|
+
fadeOut: wo
|
|
1123
1128
|
};
|
|
1124
|
-
function
|
|
1129
|
+
function ko() {
|
|
1125
1130
|
return /* @__PURE__ */ s("div", { className: O.smallLayoutOverlay, children: [
|
|
1126
|
-
/* @__PURE__ */ t(ge, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(
|
|
1131
|
+
/* @__PURE__ */ t(ge, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(Ee, {}) }),
|
|
1127
1132
|
/* @__PURE__ */ s("i", { className: O.smallLayoutButton, children: [
|
|
1128
1133
|
/* @__PURE__ */ t(ie, { className: O.smallLayoutIconPlay }),
|
|
1129
1134
|
/* @__PURE__ */ t(oe, { className: O.smallLayoutIconPause })
|
|
1130
1135
|
] })
|
|
1131
1136
|
] });
|
|
1132
1137
|
}
|
|
1133
|
-
const
|
|
1138
|
+
const yo = "_time-indicator_1rlpb_1", Lo = {
|
|
1134
1139
|
"time-indicator": "_time-indicator_1rlpb_1",
|
|
1135
|
-
timeIndicator:
|
|
1140
|
+
timeIndicator: yo
|
|
1136
1141
|
};
|
|
1137
|
-
function
|
|
1138
|
-
return /* @__PURE__ */ s("div", { className:
|
|
1142
|
+
function xo() {
|
|
1143
|
+
return /* @__PURE__ */ s("div", { className: Lo.timeIndicator, children: [
|
|
1139
1144
|
/* @__PURE__ */ t(re, { type: "current" }),
|
|
1140
1145
|
"/",
|
|
1141
1146
|
/* @__PURE__ */ t(re, { type: "duration" })
|
|
1142
1147
|
] });
|
|
1143
1148
|
}
|
|
1144
|
-
const
|
|
1149
|
+
const Po = "_comment-markers_49pse_1", No = "_comment-marker_49pse_1", To = "_timeline-wrapper_49pse_21", Mo = "_track_49pse_35", Io = "_thumb_49pse_48", So = "_root_49pse_62", Ho = "_track-inner_49pse_92", Ro = "_progress_49pse_98", Vo = "_track-fill_49pse_104", Bo = "_pins_49pse_121", Eo = "_pin-button_49pse_134", Ao = "_annotation-pin_49pse_154", Oo = "_quiz-pin_49pse_159", Fo = "_annotation-pin-child_49pse_164", Zo = "_quiz-pin-child_49pse_168", $o = "_interactive-pin-container_49pse_173", Ko = "_interactive-pin-wrapper_49pse_183", Do = "_interactive-pin-icon_49pse_189", zo = "_interactive-pin_49pse_173", Uo = "_bg_49pse_203", jo = "_symbol_49pse_207", qo = "_interactive-pin-button_49pse_212", Wo = "_interactive-pin-menu_49pse_232", Go = "_interactive-pin-menu-item_49pse_246", Qo = "_arrow_49pse_267", d = {
|
|
1145
1150
|
"comment-markers": "_comment-markers_49pse_1",
|
|
1146
|
-
commentMarkers:
|
|
1151
|
+
commentMarkers: Po,
|
|
1147
1152
|
"comment-marker": "_comment-marker_49pse_1",
|
|
1148
|
-
commentMarker:
|
|
1153
|
+
commentMarker: No,
|
|
1149
1154
|
"timeline-wrapper": "_timeline-wrapper_49pse_21",
|
|
1150
|
-
timelineWrapper:
|
|
1155
|
+
timelineWrapper: To,
|
|
1151
1156
|
track: Mo,
|
|
1152
|
-
thumb:
|
|
1153
|
-
root:
|
|
1157
|
+
thumb: Io,
|
|
1158
|
+
root: So,
|
|
1154
1159
|
"track-inner": "_track-inner_49pse_92",
|
|
1155
|
-
trackInner:
|
|
1156
|
-
progress:
|
|
1160
|
+
trackInner: Ho,
|
|
1161
|
+
progress: Ro,
|
|
1157
1162
|
"track-fill": "_track-fill_49pse_104",
|
|
1158
1163
|
trackFill: Vo,
|
|
1159
1164
|
pins: Bo,
|
|
1160
1165
|
"pin-button": "_pin-button_49pse_134",
|
|
1161
1166
|
pinButton: Eo,
|
|
1162
1167
|
"annotation-pin": "_annotation-pin_49pse_154",
|
|
1163
|
-
annotationPin:
|
|
1168
|
+
annotationPin: Ao,
|
|
1164
1169
|
"quiz-pin": "_quiz-pin_49pse_159",
|
|
1165
|
-
quizPin:
|
|
1170
|
+
quizPin: Oo,
|
|
1166
1171
|
"annotation-pin-child": "_annotation-pin-child_49pse_164",
|
|
1167
|
-
annotationPinChild:
|
|
1172
|
+
annotationPinChild: Fo,
|
|
1168
1173
|
"quiz-pin-child": "_quiz-pin-child_49pse_168",
|
|
1169
|
-
quizPinChild:
|
|
1174
|
+
quizPinChild: Zo,
|
|
1170
1175
|
"interactive-pin-container": "_interactive-pin-container_49pse_173",
|
|
1171
|
-
interactivePinContainer:
|
|
1176
|
+
interactivePinContainer: $o,
|
|
1172
1177
|
"interactive-pin-wrapper": "_interactive-pin-wrapper_49pse_183",
|
|
1173
|
-
interactivePinWrapper:
|
|
1178
|
+
interactivePinWrapper: Ko,
|
|
1174
1179
|
"interactive-pin-icon": "_interactive-pin-icon_49pse_189",
|
|
1175
|
-
interactivePinIcon:
|
|
1180
|
+
interactivePinIcon: Do,
|
|
1176
1181
|
"interactive-pin": "_interactive-pin_49pse_173",
|
|
1177
|
-
interactivePin:
|
|
1178
|
-
bg:
|
|
1179
|
-
symbol:
|
|
1182
|
+
interactivePin: zo,
|
|
1183
|
+
bg: Uo,
|
|
1184
|
+
symbol: jo,
|
|
1180
1185
|
"interactive-pin-button": "_interactive-pin-button_49pse_212",
|
|
1181
|
-
interactivePinButton:
|
|
1186
|
+
interactivePinButton: qo,
|
|
1182
1187
|
"interactive-pin-menu": "_interactive-pin-menu_49pse_232",
|
|
1183
|
-
interactivePinMenu:
|
|
1188
|
+
interactivePinMenu: Wo,
|
|
1184
1189
|
"interactive-pin-menu-item": "_interactive-pin-menu-item_49pse_246",
|
|
1185
|
-
interactivePinMenuItem:
|
|
1186
|
-
arrow:
|
|
1187
|
-
},
|
|
1190
|
+
interactivePinMenuItem: Go,
|
|
1191
|
+
arrow: Qo
|
|
1192
|
+
}, Yo = {
|
|
1188
1193
|
annotation: d.annotationPin,
|
|
1189
1194
|
quiz: d.quizPin
|
|
1190
1195
|
};
|
|
@@ -1206,7 +1211,7 @@ function Ae({
|
|
|
1206
1211
|
children: /* @__PURE__ */ s(
|
|
1207
1212
|
"svg",
|
|
1208
1213
|
{
|
|
1209
|
-
className:
|
|
1214
|
+
className: Yo[e],
|
|
1210
1215
|
width: "26",
|
|
1211
1216
|
height: "32",
|
|
1212
1217
|
viewBox: "0 0 26 32",
|
|
@@ -1220,7 +1225,7 @@ function Ae({
|
|
|
1220
1225
|
}
|
|
1221
1226
|
);
|
|
1222
1227
|
}
|
|
1223
|
-
function
|
|
1228
|
+
function Xo(e) {
|
|
1224
1229
|
return /* @__PURE__ */ t(Ae, { type: "annotation", ...e, children: /* @__PURE__ */ t(
|
|
1225
1230
|
"path",
|
|
1226
1231
|
{
|
|
@@ -1233,7 +1238,7 @@ function Yo(e) {
|
|
|
1233
1238
|
}
|
|
1234
1239
|
) });
|
|
1235
1240
|
}
|
|
1236
|
-
function
|
|
1241
|
+
function Jo(e) {
|
|
1237
1242
|
return /* @__PURE__ */ t(Ae, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ t("circle", { className: d.quizPinChild, cx: "13", cy: "13", r: "6" }) : /* @__PURE__ */ t(
|
|
1238
1243
|
"text",
|
|
1239
1244
|
{
|
|
@@ -1247,7 +1252,7 @@ function Xo(e) {
|
|
|
1247
1252
|
}
|
|
1248
1253
|
) });
|
|
1249
1254
|
}
|
|
1250
|
-
function
|
|
1255
|
+
function ei(e, n) {
|
|
1251
1256
|
return e.map((o, i) => ({
|
|
1252
1257
|
id: o.id,
|
|
1253
1258
|
time: o.time,
|
|
@@ -1256,7 +1261,7 @@ function Jo(e, n) {
|
|
|
1256
1261
|
onClick: () => n(o)
|
|
1257
1262
|
}));
|
|
1258
1263
|
}
|
|
1259
|
-
function
|
|
1264
|
+
function ti(e, n) {
|
|
1260
1265
|
const o = /* @__PURE__ */ new Map();
|
|
1261
1266
|
e.forEach((c) => {
|
|
1262
1267
|
var u;
|
|
@@ -1276,12 +1281,12 @@ function ei(e, n) {
|
|
|
1276
1281
|
}), a++;
|
|
1277
1282
|
}), i;
|
|
1278
1283
|
}
|
|
1279
|
-
function
|
|
1284
|
+
function ni(e, n, o, i) {
|
|
1280
1285
|
switch (e.type) {
|
|
1281
1286
|
case "annotation": {
|
|
1282
1287
|
const a = () => i ? e.onClick() : o.seek(e.time);
|
|
1283
1288
|
return /* @__PURE__ */ t(
|
|
1284
|
-
|
|
1289
|
+
Xo,
|
|
1285
1290
|
{
|
|
1286
1291
|
position: e.time / n * 100,
|
|
1287
1292
|
onClick: a
|
|
@@ -1291,7 +1296,7 @@ function ti(e, n, o, i) {
|
|
|
1291
1296
|
}
|
|
1292
1297
|
case "quiz":
|
|
1293
1298
|
return /* @__PURE__ */ t(
|
|
1294
|
-
|
|
1299
|
+
Jo,
|
|
1295
1300
|
{
|
|
1296
1301
|
position: e.time / n * 100,
|
|
1297
1302
|
ordinal: e.ordinal,
|
|
@@ -1304,17 +1309,17 @@ function ti(e, n, o, i) {
|
|
|
1304
1309
|
return null;
|
|
1305
1310
|
}
|
|
1306
1311
|
}
|
|
1307
|
-
function
|
|
1308
|
-
const e =
|
|
1309
|
-
...
|
|
1312
|
+
function oi() {
|
|
1313
|
+
const e = G(), n = _("duration"), o = S(), i = Z(() => [
|
|
1314
|
+
...ei(
|
|
1310
1315
|
o.annotations,
|
|
1311
1316
|
o.onAnnotationClick
|
|
1312
1317
|
),
|
|
1313
|
-
...
|
|
1314
|
-
].sort((c, l) => c.time - l.time).map((c) =>
|
|
1318
|
+
...ti(o.quizMarkers, o.onQuizMarkerClick)
|
|
1319
|
+
].sort((c, l) => c.time - l.time).map((c) => ni(c, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
|
|
1315
1320
|
return /* @__PURE__ */ t("div", { className: d.pins, children: i });
|
|
1316
1321
|
}
|
|
1317
|
-
function
|
|
1322
|
+
function ii() {
|
|
1318
1323
|
const e = _("duration"), n = S(), o = C();
|
|
1319
1324
|
return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: d.commentMarkers, children: n.comments.map((i) => {
|
|
1320
1325
|
const a = Math.min(
|
|
@@ -1334,8 +1339,8 @@ function oi() {
|
|
|
1334
1339
|
);
|
|
1335
1340
|
}) }) : null;
|
|
1336
1341
|
}
|
|
1337
|
-
function
|
|
1338
|
-
const [o, i] =
|
|
1342
|
+
function ai({ currentTime: e, position: n }) {
|
|
1343
|
+
const [o, i] = T(!1), a = S(), c = p(() => a.interactiveMenuElements.length > 0 ? i((b) => !b) : a.onInteractivePinClick(e), [
|
|
1339
1344
|
a.interactiveMenuElements,
|
|
1340
1345
|
a.onInteractivePinClick,
|
|
1341
1346
|
e
|
|
@@ -1457,20 +1462,20 @@ function ii({ currentTime: e, position: n }) {
|
|
|
1457
1462
|
)
|
|
1458
1463
|
] });
|
|
1459
1464
|
}
|
|
1460
|
-
function
|
|
1465
|
+
function si() {
|
|
1461
1466
|
const e = _("duration"), n = _("currentTime"), o = n / e * 100;
|
|
1462
|
-
return /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(
|
|
1467
|
+
return /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(ai, { currentTime: n, position: o }) }) });
|
|
1463
1468
|
}
|
|
1464
|
-
function
|
|
1469
|
+
function ci() {
|
|
1465
1470
|
const e = _("paused"), n = C();
|
|
1466
|
-
return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(
|
|
1471
|
+
return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(si, {}) : null;
|
|
1467
1472
|
}
|
|
1468
|
-
const
|
|
1473
|
+
const li = `${d.progress} ${d.trackInner}`, ri = `${d.trackFill} ${d.trackInner}`;
|
|
1469
1474
|
function he({ className: e }) {
|
|
1470
1475
|
const n = C(), { hasAnnotations: o, hasQuizmarkers: i, interactive: a } = S(), c = e ? `${d.timelineWrapper} ${e}` : d.timelineWrapper;
|
|
1471
1476
|
return /* @__PURE__ */ s("div", { className: c, children: [
|
|
1472
|
-
a ? /* @__PURE__ */ t(
|
|
1473
|
-
a || o || i ? /* @__PURE__ */ t(
|
|
1477
|
+
a ? /* @__PURE__ */ t(ci, {}) : null,
|
|
1478
|
+
a || o || i ? /* @__PURE__ */ t(oi, {}) : null,
|
|
1474
1479
|
/* @__PURE__ */ s(
|
|
1475
1480
|
A.Root,
|
|
1476
1481
|
{
|
|
@@ -1478,25 +1483,25 @@ function he({ className: e }) {
|
|
|
1478
1483
|
tabIndex: n.state.interactionsDisabled ? -1 : 0,
|
|
1479
1484
|
children: [
|
|
1480
1485
|
/* @__PURE__ */ s(A.Track, { className: d.track, children: [
|
|
1481
|
-
/* @__PURE__ */ t(A.Progress, { className:
|
|
1482
|
-
/* @__PURE__ */ t(A.TrackFill, { className:
|
|
1486
|
+
/* @__PURE__ */ t(A.Progress, { className: li }),
|
|
1487
|
+
/* @__PURE__ */ t(A.TrackFill, { className: ri })
|
|
1483
1488
|
] }),
|
|
1484
1489
|
/* @__PURE__ */ t(A.Thumb, { className: d.thumb })
|
|
1485
1490
|
]
|
|
1486
1491
|
}
|
|
1487
1492
|
),
|
|
1488
|
-
/* @__PURE__ */ t(
|
|
1493
|
+
/* @__PURE__ */ t(ii, {})
|
|
1489
1494
|
] });
|
|
1490
1495
|
}
|
|
1491
|
-
const
|
|
1492
|
-
wrapper:
|
|
1493
|
-
track:
|
|
1494
|
-
thumb:
|
|
1496
|
+
const ui = "_wrapper_12cb0_1", di = "_track_12cb0_6", mi = "_thumb_12cb0_18", hi = "_track-fill_12cb0_32", pi = "_root_12cb0_51", F = {
|
|
1497
|
+
wrapper: ui,
|
|
1498
|
+
track: di,
|
|
1499
|
+
thumb: mi,
|
|
1495
1500
|
"track-fill": "_track-fill_12cb0_32",
|
|
1496
|
-
trackFill:
|
|
1497
|
-
root:
|
|
1501
|
+
trackFill: hi,
|
|
1502
|
+
root: pi
|
|
1498
1503
|
};
|
|
1499
|
-
function
|
|
1504
|
+
function _i() {
|
|
1500
1505
|
const e = _("volume"), n = _("muted"), o = C(), i = n || e === 0, { t: a } = v();
|
|
1501
1506
|
return /* @__PURE__ */ s("div", { className: F.wrapper, children: [
|
|
1502
1507
|
/* @__PURE__ */ t(
|
|
@@ -1505,7 +1510,7 @@ function pi() {
|
|
|
1505
1510
|
tabIndex: o.state.interactionsDisabled ? -1 : 0,
|
|
1506
1511
|
className: "controls-button",
|
|
1507
1512
|
"aria-label": a(i ? "VOLUME" : "MUTE"),
|
|
1508
|
-
children: i ? /* @__PURE__ */ t(
|
|
1513
|
+
children: i ? /* @__PURE__ */ t(Re, { className: "controls-button-icon" }) : e < 0.5 ? /* @__PURE__ */ t(Ve, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Be, { className: "controls-button-icon" })
|
|
1509
1514
|
}
|
|
1510
1515
|
),
|
|
1511
1516
|
/* @__PURE__ */ s(
|
|
@@ -1559,8 +1564,8 @@ const pe = {
|
|
|
1559
1564
|
decreasePlaybackRate: {
|
|
1560
1565
|
keys: ["a"],
|
|
1561
1566
|
onKeyUp({ event: e, player: n, remote: o }) {
|
|
1562
|
-
const a =
|
|
1563
|
-
a >= 0 && (o.changePlaybackRate(
|
|
1567
|
+
const a = V.indexOf(n.playbackRate) - 1;
|
|
1568
|
+
a >= 0 && (o.changePlaybackRate(V[a]), n.$state.lastKeyboardAction.set({
|
|
1564
1569
|
action: "decreasePlaybackRate",
|
|
1565
1570
|
event: e
|
|
1566
1571
|
}));
|
|
@@ -1569,8 +1574,8 @@ const pe = {
|
|
|
1569
1574
|
increasePlaybackRate: {
|
|
1570
1575
|
keys: ["d"],
|
|
1571
1576
|
onKeyUp({ event: e, player: n, remote: o }) {
|
|
1572
|
-
const a =
|
|
1573
|
-
a <
|
|
1577
|
+
const a = V.indexOf(n.playbackRate) + 1;
|
|
1578
|
+
a < V.length && (o.changePlaybackRate(V[a]), n.$state.lastKeyboardAction.set({
|
|
1574
1579
|
action: "increasePlaybackRate",
|
|
1575
1580
|
event: e
|
|
1576
1581
|
}));
|
|
@@ -1607,7 +1612,7 @@ const pe = {
|
|
|
1607
1612
|
function _e(e) {
|
|
1608
1613
|
return typeof e == "number" && !isNaN(e);
|
|
1609
1614
|
}
|
|
1610
|
-
function
|
|
1615
|
+
function fi(e, n = 1e3) {
|
|
1611
1616
|
let o = !1;
|
|
1612
1617
|
return () => {
|
|
1613
1618
|
o || (e(), o = !0, setTimeout(() => {
|
|
@@ -1626,7 +1631,7 @@ const fe = {
|
|
|
1626
1631
|
invert: !1,
|
|
1627
1632
|
comments: !1
|
|
1628
1633
|
};
|
|
1629
|
-
class
|
|
1634
|
+
class vi {
|
|
1630
1635
|
constructor() {
|
|
1631
1636
|
N(this, "playerId", "studio-player");
|
|
1632
1637
|
N(this, "mediaId", null);
|
|
@@ -1638,7 +1643,7 @@ class fi {
|
|
|
1638
1643
|
const n = (this.time ?? 0).toString();
|
|
1639
1644
|
localStorage.setItem(this.mediaId, n);
|
|
1640
1645
|
});
|
|
1641
|
-
N(this, "saveTimeThrottled",
|
|
1646
|
+
N(this, "saveTimeThrottled", fi(this.saveTime, 1e3));
|
|
1642
1647
|
// only used for useStudioPlayer hook's state initialization
|
|
1643
1648
|
N(this, "initializeState", (n) => {
|
|
1644
1649
|
const o = localStorage.getItem(this.playerId);
|
|
@@ -1726,8 +1731,8 @@ class fi {
|
|
|
1726
1731
|
localStorage.setItem(this.playerId, n);
|
|
1727
1732
|
}
|
|
1728
1733
|
}
|
|
1729
|
-
function
|
|
1730
|
-
const a = Z(() => new
|
|
1734
|
+
function Ci(e, n, o, i) {
|
|
1735
|
+
const a = Z(() => new vi(), []), [c, l] = T(
|
|
1731
1736
|
a.initializeState(i)
|
|
1732
1737
|
), u = p(
|
|
1733
1738
|
(f) => {
|
|
@@ -1793,9 +1798,9 @@ function vi(e, n, o, i) {
|
|
|
1793
1798
|
storage: a
|
|
1794
1799
|
};
|
|
1795
1800
|
}
|
|
1796
|
-
const
|
|
1801
|
+
const gi = {}, J = () => {
|
|
1797
1802
|
};
|
|
1798
|
-
function
|
|
1803
|
+
function Ti({
|
|
1799
1804
|
title: e,
|
|
1800
1805
|
playerRef: n,
|
|
1801
1806
|
src: o,
|
|
@@ -1807,24 +1812,24 @@ function Ni({
|
|
|
1807
1812
|
annotations: m = [],
|
|
1808
1813
|
quizMarkers: h = [],
|
|
1809
1814
|
interactive: g = !1,
|
|
1810
|
-
onAnnotationClick: y =
|
|
1811
|
-
onQuizMarkerClick: k =
|
|
1812
|
-
onInteractivePinClick: b =
|
|
1815
|
+
onAnnotationClick: y = J,
|
|
1816
|
+
onQuizMarkerClick: k = J,
|
|
1817
|
+
onInteractivePinClick: b = J,
|
|
1813
1818
|
interactiveMenuElements: f = [],
|
|
1814
1819
|
darkMode: w = !1,
|
|
1815
|
-
autoLoadCaptionSrc:
|
|
1820
|
+
autoLoadCaptionSrc: M = "",
|
|
1816
1821
|
forceComments: ae,
|
|
1817
|
-
disableCaptionSettings:
|
|
1822
|
+
disableCaptionSettings: Y,
|
|
1818
1823
|
startAt: Oe,
|
|
1819
1824
|
crossOrigin: Fe
|
|
1820
1825
|
}) {
|
|
1821
|
-
const { contextValue: se, shortcuts: Ze, storage: $e } =
|
|
1826
|
+
const { contextValue: se, shortcuts: Ze, storage: $e } = Ci(
|
|
1822
1827
|
c,
|
|
1823
1828
|
ae ?? !1,
|
|
1824
|
-
|
|
1829
|
+
Y ?? !1,
|
|
1825
1830
|
Oe
|
|
1826
1831
|
), { i18n: ce } = v();
|
|
1827
|
-
return
|
|
1832
|
+
return E(() => {
|
|
1828
1833
|
ce.changeLanguage(u);
|
|
1829
1834
|
}, [ce, u]), /* @__PURE__ */ t(
|
|
1830
1835
|
ut,
|
|
@@ -1840,7 +1845,7 @@ function Ni({
|
|
|
1840
1845
|
interactiveMenuElements: f,
|
|
1841
1846
|
darkMode: w,
|
|
1842
1847
|
forceComments: ae ?? !1,
|
|
1843
|
-
disableCaptionSettings:
|
|
1848
|
+
disableCaptionSettings: Y ?? !1,
|
|
1844
1849
|
children: /* @__PURE__ */ t(rt, { contextValue: se, children: /* @__PURE__ */ s(
|
|
1845
1850
|
et,
|
|
1846
1851
|
{
|
|
@@ -1853,27 +1858,27 @@ function Ni({
|
|
|
1853
1858
|
keyDisabled: se.state.interactionsDisabled,
|
|
1854
1859
|
onTextTracksChange: (D) => {
|
|
1855
1860
|
const le = D == null ? void 0 : D.findIndex(
|
|
1856
|
-
(Ke) => Ke.src ===
|
|
1861
|
+
(Ke) => Ke.src === M
|
|
1857
1862
|
);
|
|
1858
1863
|
le > -1 && (D[le].mode = "showing");
|
|
1859
1864
|
},
|
|
1860
1865
|
children: [
|
|
1861
|
-
/* @__PURE__ */ t(
|
|
1862
|
-
/* @__PURE__ */ s(tt, { className:
|
|
1863
|
-
/* @__PURE__ */ t(
|
|
1866
|
+
/* @__PURE__ */ t(lo, {}),
|
|
1867
|
+
/* @__PURE__ */ s(tt, { className: gi.mediaProvider, children: [
|
|
1868
|
+
/* @__PURE__ */ t(_o, { src: a }),
|
|
1864
1869
|
/* @__PURE__ */ t(qn, {}),
|
|
1865
1870
|
/* @__PURE__ */ t(bt, {}),
|
|
1866
1871
|
/* @__PURE__ */ t(Lt, { captions: i }),
|
|
1867
1872
|
/* @__PURE__ */ t(to, {}),
|
|
1868
1873
|
/* @__PURE__ */ t(At, { comments: l }),
|
|
1869
|
-
/* @__PURE__ */ t(
|
|
1874
|
+
/* @__PURE__ */ t(ko, {})
|
|
1870
1875
|
] }),
|
|
1871
1876
|
/* @__PURE__ */ t(
|
|
1872
1877
|
zt,
|
|
1873
1878
|
{
|
|
1874
1879
|
darkMode: w,
|
|
1875
1880
|
playerRef: n,
|
|
1876
|
-
showCaptionsButton: !
|
|
1881
|
+
showCaptionsButton: !Y
|
|
1877
1882
|
}
|
|
1878
1883
|
),
|
|
1879
1884
|
/* @__PURE__ */ t(pt, { annotations: m })
|
|
@@ -1886,6 +1891,6 @@ function Ni({
|
|
|
1886
1891
|
export {
|
|
1887
1892
|
xt as CAPTION_FONT_SIZE_MULTIPLIERS,
|
|
1888
1893
|
Se as COMMENT_DURATION,
|
|
1889
|
-
|
|
1890
|
-
|
|
1894
|
+
V as PLAYBACK_RATES,
|
|
1895
|
+
Ti as StudioPlayer
|
|
1891
1896
|
};
|
package/package.json
CHANGED
package/dist/index-DAULLpyh.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._annotation-overlay_1kxzn_1{position:absolute;top:0;right:0;bottom:0;left:0;-webkit-user-select:none;user-select:none;z-index:1;background-color:#000c;display:flex;flex-direction:column;justify-content:center;align-items:center}._media-buffering-indicator_1fwjr_1{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;z-index:1;background-color:#00000080;transition:opacity .2s ease}[data-media-player][data-buffering] ._media-buffering-spinner_1fwjr_17{pointer-events:none;animation:_media-buffering-spin_1fwjr_17 1s linear infinite}._media-buffering-track_1fwjr_22{color:#f5f5f5;opacity:.25}._media-buffering-track-fill_1fwjr_27{color:var(--media-brand, #f5f5f5);opacity:.75}[data-media-player][data-buffering] ._media-buffering-indicator_1fwjr_1{opacity:1}@keyframes _media-buffering-spin_1fwjr_17{to{transform:rotate(360deg)}}._captions_13epz_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:var(--captions-flex-direction, column);align-items:center;padding:var(--spacing-3)}._captions_13epz_1[aria-hidden=true]{display:none}._captions_13epz_1 [data-part=cue-display]{display:inline-block;padding:var(--spacing-2);background-color:var(--captions-background-color, rgba(22 22 22 / .75));border-radius:var(--radius-2)}._captions_13epz_1 [data-part=cue]{color:var(--captions-color, white);text-align:center;max-width:50ch;line-height:1.5;font-size:calc(var(--captions-base-font-size-small) * var(--captions-font-size-multiplier, 1))}@container player (width > 425px){._captions_13epz_1 [data-part=cue]{font-size:calc(var(--captions-base-font-size-normal) * var(--captions-font-size-multiplier, 1))}}._comments-overlay_2woxe_1{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--spacing-1);display:flex;align-items:end}._comments-container_2woxe_9{display:flex;flex-direction:column;gap:.25rem;width:15.625rem}@container player (width >= 900px) and (height >= 640px){._comments-container_2woxe_9{width:23.4375rem}}@media (hover: none) and (orientation: portrait) and (max-width: 720px){[data-fullscreen] ._comments-overlay_2woxe_1{justify-content:end}}._comment_2woxe_1{display:grid;grid-template-areas:"avatar text";grid-template-columns:auto 1fr;align-items:center;padding:var(--spacing-1);gap:var(--spacing-1);border-radius:var(--radius-2);background-color:var(--comments-background-color);cursor:pointer;border:1px solid #666}@container player (width >= 720px) and (height >= 540px){._comment_2woxe_1{grid-template-areas:"text text" "avatar name"}}._comment-text_2woxe_45{grid-area:text;color:var(--comments-color);font-size:var(--comments-font-size-small);line-height:1.5;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;-webkit-user-select:none;user-select:none}@container player (height >= 400px){._comment-text_2woxe_45{-webkit-line-clamp:2;line-clamp:2}}@container player (width >= 900px) and (height >= 640px){._comment-text_2woxe_45{font-size:var(--comments-font-size-normal)}}._comment-author-avatar_2woxe_68{grid-area:avatar;box-sizing:border-box;display:inline-block;object-fit:cover;width:1.25rem;height:1.25rem;border-radius:50%;-webkit-user-select:none;user-select:none;pointer-events:none;background-color:#fff;contain:paint}@container player (width >= 900px) and (height >= 640px){._comment-author-avatar_2woxe_68{width:1.875rem;height:1.875rem}}._comment-author-name_2woxe_87{grid-area:name;color:var(--comments-author-color);font-size:var(--comments-font-size-small);font-weight:700;line-height:1.5;display:none}@container player (width >= 720px) and (height >= 540px){._comment-author-name_2woxe_87{display:inline}}@container player (width >= 900px) and (height >= 640px){._comment-author-name_2woxe_87{font-size:var(--comments-font-size-normal)}}._root_1x28e_1{background-color:var(--controls-layout-bg-color, #f5f5f5);padding:var(--spacing-1);display:grid;align-items:center;grid-template-columns:auto 1fr auto;grid-template-areas:"slider slider slider" "left-controls indicators right-controls";row-gap:.25rem;column-gap:1rem;border-bottom-left-radius:var(--radius-2);border-bottom-right-radius:var(--radius-2)}@container player (width >= 420px) and (height <= 300px){._root_1x28e_1{grid-template-columns:auto auto 1fr auto;grid-template-areas:"left-controls indicators slider right-controls"}}[data-fullscreen] ._root_1x28e_1,[data-darkmode=true]._root_1x28e_1{background-color:#000}._left-controls_1x28e_28{display:flex;gap:.25rem;grid-area:left-controls}._right-controls_1x28e_34{display:flex;gap:.25rem;grid-area:right-controls}._indicators_1x28e_40{grid-area:indicators;font-size:.875rem}@container player (width > 425px) and (height > 300px){._indicators_1x28e_40{font-size:1rem}}@container player (width >= 420px) and (height <= 300px){div._normal-timeline_1x28e_49{display:none}}div._compact-timeline_1x28e_55{display:none}@container player (width >= 420px) and (height <= 300px){div._compact-timeline_1x28e_55{display:flex;padding-bottom:0}}._menu-hint_k49ve_1{color:var(--settings-media-submenu-hint-color, #9ea6ad)}._menu-button_k49ve_5{position:relative;display:flex;align-items:center;width:100%;gap:var(--spacing-1);padding:6px 11px;color:var(--settings-submenu-color, #2d3b45);font-size:1rem;line-height:1.5;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;outline:none;border:none;touch-action:manipulation;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;font-family:inherit}._menu-button_k49ve_5:hover,._menu-button_k49ve_5:focus{color:var(--settings-media-hover-color, white);background-color:var(--settings-media-hover-bg-color, rgb(43 122 188))}._menu-button_k49ve_5:hover ._menu-hint_k49ve_1,._menu-button_k49ve_5:focus ._menu-hint_k49ve_1{color:var(--settings-media-hover-color, white)}._menu-label_k49ve_37{flex-grow:1;text-align:left}._menu-icon_k49ve_42{width:1.125rem;height:1.125rem}._switch-track_vptv3_1{position:relative;background-color:#e8e8e8;width:2.625rem;height:1.75rem;border-radius:.875rem;will-change:background-color;transition:background-color .2s}._switch-thumb_vptv3_11{background-color:#fff;width:1.5rem;height:1.5rem;border-radius:.75rem;transform:translate(.125rem,.125rem);box-shadow:#e8eaec 0 0 0 .0625rem inset;will-change:transform;transition:transform .2s;display:flex;align-items:center;justify-content:center}._switch-icon_vptv3_25{width:.875rem;height:.875rem;color:var(--settings-submenu-color)}._switch-body_vptv3_31{display:flex;align-items:center;gap:var(--spacing-1);padding:.375rem .6875rem;color:var(--settings-submenu-color);font-size:1rem;line-height:1.5;cursor:pointer;outline:none;touch-action:manipulation;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}._switch-body_vptv3_31[aria-checked=true] ._switch-track_vptv3_1{background-color:#03893d}._switch-body_vptv3_31[aria-checked=true] ._switch-icon_vptv3_25{color:#03893d}._switch-body_vptv3_31[aria-checked=true] ._switch-thumb_vptv3_11{transform:translate(1rem,.125rem)}._switch-body_vptv3_31:hover,._switch-body_vptv3_31:focus-visible{color:var(--settings-media-hover-color);background-color:var(--settings-media-hover-bg-color)}[aria-checked=true]:is(._switch-body_vptv3_31:hover,._switch-body_vptv3_31:focus-visible) ._switch-track_vptv3_1{background-color:#e8e8e8}._switch-label_vptv3_68{flex-grow:1}._menu-icon_vptv3_72{width:1.125rem;height:1.125rem}._main-menu_7h96l_1,._menu-container_1bjr3_1,._menu-options_1bjr3_6{display:flex;flex-direction:column}._menu-heading_1bjr3_11{user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;display:block;margin:0 var(--spacing-2);padding-top:var(--spacing-2);padding-bottom:.5625rem;border-bottom:.0625rem solid #c7cdd1;font-weight:700;line-height:1.5}._check-icon_1bjr3_27{width:1.25rem;height:1.25rem;visibility:hidden}._menu-item-label_1bjr3_33{display:block}._menu-item_1bjr3_33{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;outline:none;touch-action:manipulation;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;display:flex;align-items:center;padding:6px 11px;gap:var(--spacing-2);cursor:pointer;font-size:1rem;line-height:1.5;font-family:inherit;color:inherit}._menu-item_1bjr3_33:hover,._menu-item_1bjr3_33:focus{color:var(--settings-media-hover-color, white);background-color:var(--settings-media-hover-bg-color, rgb(43 122 188))}._menu-item_1bjr3_33[aria-checked=true] ._check-icon_1bjr3_27{visibility:visible}._menu-back-button_1bjr3_66{display:flex;align-items:center;gap:var(--spacing-1);padding:6px 11px;color:var(--settings-submenu-color, #2d3b45);font-size:1rem;line-height:1.5;cursor:pointer;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;outline:none;border:none;touch-action:manipulation;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;font-family:inherit}._menu-back-button_1bjr3_66:hover,._menu-back-button_1bjr3_66:focus{color:var(--settings-media-hover-color, white);background-color:var(--settings-media-hover-bg-color, rgb(43 122 188))}._settings-menu_hxlsv_1{display:flex;flex-direction:column;background-color:var(--settings-menu-bg-color, white);padding-top:.25rem;padding-bottom:.25rem;border-radius:var(--radius-2);width:294px;z-index:1000;filter:drop-shadow(0 .125rem .1875rem rgba(0 0 0 / .5))}._arrow_hxlsv_15{fill:#fff}._feedback-overlay_v4lbu_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;padding:var(--spacing-4);flex-direction:column;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;pointer-events:none}._feedback-message_v4lbu_14{font-weight:300;position:absolute;top:10%;display:flex;justify-content:center;align-items:center;padding:var(--spacing-2);background-color:var(--feedback-message-bg-color, black);color:var(--feedback-message-color, white);border-radius:var(--radius-2);font-size:1rem;line-height:1.5;opacity:.75}._feedback-icon_v4lbu_30{box-sizing:border-box;display:inline-flex;color:var(--feedback-icon-color, white);padding:var(--spacing-3);width:4.5rem;height:4.5rem;background-color:var(--feedback-icon-bg-color, black);border-radius:var(--radius-3);animation:_feedback-icon-animation_v4lbu_1 .4s linear;animation-fill-mode:forwards;will-change:transform,opacity}._feedback-icon_v4lbu_30:has(.right){align-self:end}._feedback-icon_v4lbu_30:has(.left){align-self:start}._feedback-icon_v4lbu_30>svg{width:100%;height:100%}@keyframes _feedback-icon-animation_v4lbu_1{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:.5}}@media (max-width: 425px){[data-fullscreen] ._full-screen-button_1xm32_2{display:none}}[data-media-player][data-view-type=audio] ._full-screen-button_1xm32_2{display:none}._gestures-container_1fn3b_1{display:contents}._gesture_1fn3b_1{position:absolute;top:0;right:0;bottom:0;left:0}[data-fullscreen] ._gesture_1fn3b_1{top:3.625rem}._keyboard-shortcuts-overlay_y5kv6_1{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;background-color:#000000b3;color:#fff;padding:1.5rem;-webkit-user-select:none;user-select:none;overflow-y:auto;display:flex;flex-direction:column;align-items:center}._keyboard-shortcuts-overlay_y5kv6_1 header{width:100%;display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}:is(._keyboard-shortcuts-overlay_y5kv6_1 header) h2{font-size:1rem;font-weight:500;margin:0}@container player (width > 400px) and (height > 300px){:is(._keyboard-shortcuts-overlay_y5kv6_1 header) h2{font-size:1.5rem}}._keyboard-shortcuts-overlay_y5kv6_1 table{width:100%;max-width:54rem;padding:0;border-collapse:collapse}@container player (width > 400px) and (height > 300px){._keyboard-shortcuts-overlay_y5kv6_1 table{padding:2rem}}:is(._keyboard-shortcuts-overlay_y5kv6_1 table) tr{border-bottom:1px solid rgba(232 234 236 / .2)}:is(._keyboard-shortcuts-overlay_y5kv6_1 table) tbody tr:last-child{border-bottom:none}:is(._keyboard-shortcuts-overlay_y5kv6_1 table) th,:is(._keyboard-shortcuts-overlay_y5kv6_1 table) td{text-align:left;font-size:.75rem;line-height:1.5}@container player (width > 400px) and (height > 300px){:is(._keyboard-shortcuts-overlay_y5kv6_1 table) th,:is(._keyboard-shortcuts-overlay_y5kv6_1 table) td{font-size:.875rem}}@container player (width >= 720px) and (height > 300px){:is(._keyboard-shortcuts-overlay_y5kv6_1 table) th,:is(._keyboard-shortcuts-overlay_y5kv6_1 table) td{font-size:1rem}}._keyboard-shortcuts-button_y5kv6_67{position:absolute;top:1rem;right:1rem;z-index:1;opacity:0;width:2.25rem;height:2.25rem;pointer-events:none;border-radius:var(--radius-2);border:1px solid #d7dade;background:var(--controls-layout-bg-color)}._keyboard-shortcuts-button_y5kv6_67:focus-visible{opacity:1;pointer-events:auto}[data-media-player][data-view-type=audio] ._keyboard-shortcuts-button_y5kv6_67{display:none}._close-button_y5kv6_93{background-color:transparent;border:none;cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;width:2.25rem;height:2.25rem}@media (max-width: 425px) and (hover: none){button._play-pause-button_kyuc5_1{display:none}}._poster_195hi_1{width:100%;height:100%;object-fit:contain;position:absolute;display:none}._poster_195hi_1[data-visible]{display:block}._small-layout-overlay_1vli4_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;visibility:hidden;align-items:center;justify-content:center}@media (max-width: 425px) and (hover: none){._small-layout-overlay_1vli4_1{visibility:visible}}._small-layout-button_1vli4_14{width:5rem;height:5rem;background-color:#1616164d;display:flex;align-items:center;justify-content:center;border-radius:50%}._small-layout-icon-play_1vli4_24,._small-layout-icon-pause_1vli4_30{width:3rem;height:3rem;color:#fff}._full-screen-close-icon_1vli4_36{display:none}[data-fullscreen] ._full-screen-close-icon_1vli4_36{background-color:transparent;border:none;display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;padding:1.25rem;color:#fff;cursor:pointer;-webkit-user-select:none;user-select:none}[data-fullscreen][data-playing] ._full-screen-close-icon_1vli4_36,[data-media-player][data-playing] ._small-layout-button_1vli4_14{animation:_fade-out_1vli4_1 1s;animation-delay:1.5s;animation-fill-mode:forwards}[data-media-player][data-playing] ._small-layout-icon-play_1vli4_24,[data-media-player][data-paused] ._small-layout-icon-pause_1vli4_30{display:none}@keyframes _fade-out_1vli4_1{0%{opacity:1}to{opacity:0}}._time-indicator_1rlpb_1{display:flex;color:#556572;-webkit-user-select:none;user-select:none}[data-fullscreen] ._time-indicator_1rlpb_1,[data-darkmode=true] ._time-indicator_1rlpb_1{color:#fff}._comment-markers_49pse_1{display:flex;position:relative;width:100%;height:.375rem;-webkit-user-select:none;user-select:none;pointer-events:none}@container player (width >= 420px) and (height <= 300px){._comment-markers_49pse_1{display:none}}._comment-marker_49pse_1{position:absolute;height:100%;background:linear-gradient(90deg,#2b7abc,#abd9ff);border-radius:.125rem}._timeline-wrapper_49pse_21{position:relative;display:flex;flex-direction:column;align-items:center;padding:0 var(--spacing-1);grid-area:slider;padding-bottom:.375rem}._timeline-wrapper_49pse_21:has(._comment-markers_49pse_1){padding-bottom:0}._track_49pse_35{width:100%;height:.25rem;will-change:height;position:relative;background-color:var(--timeline-track-bg-color, #ccd0d2);border-radius:var(--radius-1);contain:strict;transition:height .15s,border-radius .15s}._thumb_49pse_48{position:absolute;width:1.125rem;height:1.125rem;background-color:var(--timeline-thumb-color, #2b7abc);border-radius:var(--radius-3);cursor:pointer;opacity:0;transform:translate(-50%) translateZ(0);transition:opacity .15s ease-in;left:var(--slider-fill);will-change:left}._root_49pse_62{display:inline-flex;width:100%;height:1.25rem;position:relative;align-items:center;contain:layout style;outline:none;cursor:pointer;user-select:none;touch-action:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}._root_49pse_62[data-active] ._track_49pse_35{border-radius:var(--radius-2);height:.625rem}._root_49pse_62[data-focus] ._track_49pse_35{outline:2px solid var(--focus-outline-color);outline-offset:1px;border-radius:2px}._root_49pse_62[data-active] ._thumb_49pse_48{opacity:1}._track-inner_49pse_92{position:absolute;will-change:width;height:100%}._progress_49pse_98{z-index:0;width:var(--slider-progress, 0%);background-color:var(--timeline-track-progress-bg-color, #adb2b6)}._track-fill_49pse_104{z-index:1;width:var(--slider-fill, 0%);background-color:var(--timeline-track-fill-bg-color, #2b7abc)}:is([data-fullscreen] ._root_49pse_62,[data-darkmode=true] ._root_49pse_62) ._track_49pse_35{background-color:#333}:is([data-fullscreen] ._root_49pse_62,[data-darkmode=true] ._root_49pse_62) ._progress_49pse_98{background-color:#666}._pins_49pse_121{display:flex;position:relative;height:2rem;width:100%;-webkit-user-select:none;user-select:none;margin-top:var(--spacing-1)}@container player (width >= 420px) and (height <= 300px){._pins_49pse_121{display:none}}._pin-button_49pse_134{display:flex;background-color:transparent;border:none;padding:0;position:absolute;transform:translate(-50%);cursor:pointer;transition:transform .2s ease-out;touch-action:manipulation;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}._pin-button_49pse_134:hover{transform:translate(-50%) scale(1.25);z-index:1}._annotation-pin_49pse_154{fill:var(--pin-color-1);stroke:var(--pin-color-2)}._quiz-pin_49pse_159{fill:var(--pin-color-2);stroke:none}._annotation-pin-child_49pse_164{fill:var(--pin-color-3)}._quiz-pin-child_49pse_168{fill:#fff;font-size:.875rem}._interactive-pin-container_49pse_173{position:absolute;top:0;right:0;bottom:0;left:0;padding:0 var(--spacing-1)}@container player (width >= 420px) and (height <= 300px){._interactive-pin-container_49pse_173{display:none}}._interactive-pin-wrapper_49pse_183{position:relative;width:100%;height:100%}._interactive-pin-icon_49pse_189{transform-box:fill-box;transform-origin:center;transition:transform .2s ease-out}._interactive-pin-icon_49pse_189[data-open=true]{transform:rotate(45deg)}._interactive-pin_49pse_173{filter:drop-shadow(0 3px 6px rgba(0 0 0 / .16)) drop-shadow(0 3px 6px rgba(0 0 0 / .1))}._interactive-pin_49pse_173>._bg_49pse_203{fill:var(--timeline-thumb-color)}._interactive-pin_49pse_173>._symbol_49pse_207{stroke:var(--controls-layout-bg-color)}._interactive-pin-button_49pse_212{position:absolute;cursor:pointer;transform:translate(-50%);background-color:transparent;border:none;padding:0;display:flex;z-index:1;touch-action:manipulation;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}._interactive-pin-button_49pse_212:hover ._interactive-pin_49pse_173>._bg_49pse_203{fill:#225f92}._interactive-pin-menu_49pse_232{display:flex;flex-direction:column;gap:.25rem;background-color:var(--settings-menu-bg-color, white);padding:.75rem .5rem;border-radius:var(--radius-2);width:169px;z-index:1000;filter:drop-shadow(0 .125rem .1875rem rgba(0 0 0 / .5))}._interactive-pin-menu-item_49pse_246{font-family:inherit;font-size:14px;text-rendering:geometricprecision;display:flex;align-items:center;gap:.25rem;color:var(--pin-color-3);padding:4px 6px;border-radius:var(--radius-2);border:1px solid #d7dade;background-color:var(--pin-color-1);cursor:pointer}._interactive-pin-menu-item_49pse_246:hover{background-color:#e8eaec}._arrow_49pse_267{fill:#fff}._wrapper_12cb0_1{display:flex;align-items:center}._track_12cb0_6{width:100%;height:.25rem;will-change:height;background-color:var(--volume-track-bg-color, #ccd0d2);border-radius:var(--radius-1);contain:strict;transition:height .15s,border-radius .15s}._thumb_12cb0_18{position:absolute;width:.875rem;height:.875rem;background-color:var(--volume-thumb-bg-color, #2d3b45);border-radius:var(--radius-3);cursor:pointer;opacity:0;transform:translate(-50%) translateZ(0);transition:opacity .15s ease-in;left:var(--slider-fill);will-change:left}._track-fill_12cb0_32{width:var(--slider-fill, 0%);will-change:width;height:100%;background-color:var(--volume-track-fill-bg-color, #2d3b45)}:is([data-fullscreen],[data-darkmode=true]) ._track_12cb0_6{background-color:#666}:is([data-fullscreen],[data-darkmode=true]) ._track-fill_12cb0_32,:is([data-fullscreen],[data-darkmode=true]) ._thumb_12cb0_18{background-color:#f5f5f5}._root_12cb0_51{display:inline-flex;height:1.25rem;align-items:center;contain:layout style;cursor:pointer;user-select:none;touch-action:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;width:0;will-change:width,margin;transition:all .15s;box-sizing:border-box}@media (max-width: 425px) and (hover: none){._root_12cb0_51{display:none}}._root_12cb0_51[data-active] ._track_12cb0_6{border-radius:.125rem;height:.3125rem}._root_12cb0_51[data-focus]{outline:none}._root_12cb0_51[data-focus] ._track_12cb0_6{outline:2px solid var(--focus-outline-color);outline-offset:1px;border-radius:2px}._root_12cb0_51[data-active] ._thumb_12cb0_18{opacity:1}._wrapper_12cb0_1:hover [data-media-volume-slider],[data-media-volume-slider][data-active]{margin-left:.5rem;width:4rem}[data-media-player]{--volume-track-bg-color: #ccd0d2;--volume-track-fill-bg-color: #2d3b45;--volume-thumb-bg-color: #2d3b45;--feedback-message-bg-color: black;--feedback-message-color: white;--feedback-icon-color: white;--feedback-icon-bg-color: black;--timeline-track-bg-color: #ccd0d2;--timeline-track-progress-bg-color: #adb2b6;--timeline-track-fill-bg-color: #2b7abc;--timeline-progress-bg-color: #adb2b6;--timeline-thumb-color: #2b7abc;--settings-menu-bg-color: white;--settings-submenu-color: #2d3b45;--settings-media-hover-color: white;--settings-media-hover-bg-color: rgb(43 122 188);--settings-media-submenu-hint-color: var(--settings-submenu-color);--captions-background-color: rgba(22 22 22 / .75);--captions-color: white;--captions-base-font-size-small: .75rem;--captions-base-font-size-normal: 1rem;--comments-background-color: rgba(0 0 0 / .8);--comments-color: white;--comments-font-size-small: .75rem;--comments-font-size-normal: .875rem;--comments-author-color: #c7cdd1;--controls-layout-bg-color: #f5f5f5;--media-button-icon-color: #2d3b45;--media-button-icon-hover-color: #e0e0e0;--focus-outline-color: #2b7abc;--spacing-1: .5rem;--spacing-2: .625rem;--spacing-3: 1rem;--spacing-4: 2rem;--radius-1: .0625rem;--radius-2: .25rem;--radius-3: 50%;--media-button-area-size-small: 2rem;--media-button-area-size-medium: 2.5rem;--media-button-area-size-large: 3rem;--media-button-icon-size-small: 1rem;--media-button-icon-size-medium: 1.5rem;--media-button-icon-size-large: 1.5rem;--action-buttons-color: #0374b5;--action-buttons-hover-color: #235f93;--action-buttons-border-color: #025483;--pin-color-1: #f2f4f4;--pin-color-2: #556572;--pin-color-3: #273540;outline:none;border-radius:var(--radius-2);position:relative;font-family:Lato,sans-serif;display:grid;container:player / size;width:100%;height:100%;grid-template-rows:1fr auto}[data-media-provider]{display:flex;position:relative;background-color:#000;contain:paint;border-top-left-radius:var(--radius-2);border-top-right-radius:var(--radius-2)}[data-media-provider] video,[data-media-provider] iframe{width:100%;height:100%;object-fit:contain;position:absolute}[data-media-player][data-view-type=audio]{container-type:normal;height:initial}[data-media-player][data-view-type=audio] [data-media-provider]{display:none}.controls-button{background-color:transparent;border:none;border-radius:var(--radius-2);cursor:pointer;padding:var(--spacing-1);margin:0;display:flex;align-items:center;justify-content:center;transition:background-color .2s;width:var(--media-button-area-size-small);height:var(--media-button-area-size-small)}@container player (width > 400px) and (height > 300px){.controls-button{width:var(--media-button-area-size-medium);height:var(--media-button-area-size-medium)}}@container player (width >= 720px) and (height > 300px){.controls-button{width:var(--media-button-area-size-large);height:var(--media-button-area-size-large)}}.controls-button[data-hover],.controls-button:hover{background-color:var(--media-button-icon-hover-color, #e0e0e0)}.controls-button:focus-visible,.controls-button[data-focus]{outline:2px solid var(--focus-outline-color)}.controls-button-icon{color:var(--media-button-icon-color);width:var(--media-button-icon-size-small);height:var(--media-button-icon-size-small)}@container player (width > 400px) and (height > 300px){.controls-button-icon{width:var(--media-button-icon-size-medium);height:var(--media-button-icon-size-medium)}}@container player (width >= 720px) and (height > 300px){.controls-button-icon{width:var(--media-button-icon-size-large);height:var(--media-button-icon-size-large)}}:is([data-fullscreen],[data-darkmode=true]) .controls-button-icon{color:#fff}:is([data-fullscreen],[data-darkmode=true]) .controls-button[data-hover],:is([data-fullscreen],[data-darkmode=true]) .controls-button:hover{background-color:#ffffff26}.icon-rotate{transition:transform .2s ease-out}.controls-button[aria-expanded=true] .icon-rotate{transform:rotate(60deg);transition:transform .1s ease-in}
|