import { jsxs as ve, jsx as oe } from "react/jsx-runtime";
import { bs as ge, bi as $, H as Oe, bt as we } from "./use-page-data.BYLN5MSa.js";
import { a as be } from "./twind.Cg2g8xBZ.js";
import te from "react";
import { r as _e, a as Se } from "./index.C71B2_wv.js";
import { b as Te } from "./use-section-style.CqWLdjop.js";
import { B as Re } from "./BrickRoot.CQgjTuOI.js";
var K, ie;
function Ee() {
  if (ie) return K;
  ie = 1, K = function(w, n, l) {
    var h = document.head || document.getElementsByTagName("head")[0], r = document.createElement("script");
    typeof n == "function" && (l = n, n = {}), n = n || {}, l = l || function() {
    }, r.type = n.type || "text/javascript", r.charset = n.charset || "utf8", r.async = "async" in n ? !!n.async : !0, r.src = w, n.attrs && g(r, n.attrs), n.text && (r.text = "" + n.text);
    var p = "onload" in r ? s : C;
    p(r, l), r.onload || s(r, l), h.appendChild(r);
  };
  function g(T, w) {
    for (var n in w)
      T.setAttribute(n, w[n]);
  }
  function s(T, w) {
    T.onload = function() {
      this.onerror = this.onload = null, w(null, T);
    }, T.onerror = function() {
      this.onerror = this.onload = null, w(new Error("Failed to load " + this.src), T);
    };
  }
  function C(T, w) {
    T.onreadystatechange = function() {
      this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, w(null, T));
    };
  }
  return K;
}
var W, se;
function q() {
  if (se) return W;
  se = 1;
  var g = Object.create, s = Object.defineProperty, C = Object.getOwnPropertyDescriptor, T = Object.getOwnPropertyNames, w = Object.getPrototypeOf, n = Object.prototype.hasOwnProperty, l = (o, y) => {
    for (var M in y)
      s(o, M, { get: y[M], enumerable: !0 });
  }, h = (o, y, M, k) => {
    if (y && typeof y == "object" || typeof y == "function")
      for (let j of T(y))
        !n.call(o, j) && j !== M && s(o, j, { get: () => y[j], enumerable: !(k = C(y, j)) || k.enumerable });
    return o;
  }, r = (o, y, M) => (M = o != null ? g(w(o)) : {}, h(
    // If the importer is in node compatibility mode or this is not an ESM
    // file that has been converted to a CommonJS file using a Babel-
    // compatible transform (i.e. "__esModule" has not been set), then set
    // "default" to the CommonJS "module.exports" for node compatibility.
    !o || !o.__esModule ? s(M, "default", { value: o, enumerable: !0 }) : M,
    o
  )), p = (o) => h(s({}, "__esModule", { value: !0 }), o), I = {};
  l(I, {
    callPlayer: () => t,
    getConfig: () => O,
    getSDK: () => P,
    isBlobUrl: () => N,
    isMediaStream: () => u,
    lazy: () => U,
    omit: () => R,
    parseEndTime: () => c,
    parseStartTime: () => f,
    queryString: () => E,
    randomString: () => S,
    supportsWebKitPresentationMode: () => H
  }), W = p(I);
  var e = r(te), d = r(Ee()), _ = r(_e());
  const U = (o) => e.default.lazy(async () => {
    const y = await o();
    return typeof y.default == "function" ? y : y.default;
  }), v = /[?&#](?:start|t)=([0-9hms]+)/, L = /[?&#]end=([0-9hms]+)/, m = /(\d+)(h|m|s)/g, b = /^\d+$/;
  function i(o, y) {
    if (o instanceof Array)
      return;
    const M = o.match(y);
    if (M) {
      const k = M[1];
      if (k.match(m))
        return a(k);
      if (b.test(k))
        return parseInt(k);
    }
  }
  function a(o) {
    let y = 0, M = m.exec(o);
    for (; M !== null; ) {
      const [, k, j] = M;
      j === "h" && (y += parseInt(k, 10) * 60 * 60), j === "m" && (y += parseInt(k, 10) * 60), j === "s" && (y += parseInt(k, 10)), M = m.exec(o);
    }
    return y;
  }
  function f(o) {
    return i(o, v);
  }
  function c(o) {
    return i(o, L);
  }
  function S() {
    return Math.random().toString(36).substr(2, 5);
  }
  function E(o) {
    return Object.keys(o).map((y) => `${y}=${o[y]}`).join("&");
  }
  function A(o) {
    return window[o] ? window[o] : window.exports && window.exports[o] ? window.exports[o] : window.module && window.module.exports && window.module.exports[o] ? window.module.exports[o] : null;
  }
  const D = {}, P = function(y, M, k = null, j = () => !0, V = d.default) {
    const B = A(M);
    return B && j(B) ? Promise.resolve(B) : new Promise((re, ae) => {
      if (D[y]) {
        D[y].push({ resolve: re, reject: ae });
        return;
      }
      D[y] = [{ resolve: re, reject: ae }];
      const ne = (z) => {
        D[y].forEach((F) => F.resolve(z));
      };
      if (k) {
        const z = window[k];
        window[k] = function() {
          z && z(), ne(A(M));
        };
      }
      V(y, (z) => {
        z ? (D[y].forEach((F) => F.reject(z)), D[y] = null) : k || ne(A(M));
      });
    });
  };
  function O(o, y) {
    return (0, _.default)(y.config, o.config);
  }
  function R(o, ...y) {
    const M = [].concat(...y), k = {}, j = Object.keys(o);
    for (const V of j)
      M.indexOf(V) === -1 && (k[V] = o[V]);
    return k;
  }
  function t(o, ...y) {
    if (!this.player || !this.player[o]) {
      let M = `ReactPlayer: ${this.constructor.displayName} player could not call %c${o}%c – `;
      return this.player ? this.player[o] || (M += "The method was not available") : M += "The player was not available", console.warn(M, "font-weight: bold", ""), null;
    }
    return this.player[o](...y);
  }
  function u(o) {
    return typeof window < "u" && typeof window.MediaStream < "u" && o instanceof window.MediaStream;
  }
  function N(o) {
    return /^blob:/.test(o);
  }
  function H(o = document.createElement("video")) {
    const y = /iPhone|iPod/.test(navigator.userAgent) === !1;
    return o.webkitSupportsPresentationMode && typeof o.webkitSetPresentationMode == "function" && y;
  }
  function x(o) {
    return o;
  }
  return W;
}
var X, le;
function Ce() {
  if (le) return X;
  le = 1;
  var g = Object.defineProperty, s = Object.getOwnPropertyDescriptor, C = Object.getOwnPropertyNames, T = Object.prototype.hasOwnProperty, w = (t, u) => {
    for (var N in u)
      g(t, N, { get: u[N], enumerable: !0 });
  }, n = (t, u, N, H) => {
    if (u && typeof u == "object" || typeof u == "function")
      for (let x of C(u))
        !T.call(t, x) && x !== N && g(t, x, { get: () => u[x], enumerable: !(H = s(u, x)) || H.enumerable });
    return t;
  }, l = (t) => n(g({}, "__esModule", { value: !0 }), t), h = {};
  w(h, {
    AUDIO_EXTENSIONS: () => S,
    DASH_EXTENSIONS: () => D,
    FLV_EXTENSIONS: () => P,
    HLS_EXTENSIONS: () => A,
    MATCH_URL_DAILYMOTION: () => i,
    MATCH_URL_FACEBOOK: () => _,
    MATCH_URL_FACEBOOK_WATCH: () => U,
    MATCH_URL_KALTURA: () => c,
    MATCH_URL_MIXCLOUD: () => a,
    MATCH_URL_MUX: () => d,
    MATCH_URL_SOUNDCLOUD: () => I,
    MATCH_URL_STREAMABLE: () => v,
    MATCH_URL_TWITCH_CHANNEL: () => b,
    MATCH_URL_TWITCH_VIDEO: () => m,
    MATCH_URL_VIDYARD: () => f,
    MATCH_URL_VIMEO: () => e,
    MATCH_URL_WISTIA: () => L,
    MATCH_URL_YOUTUBE: () => p,
    VIDEO_EXTENSIONS: () => E,
    canPlay: () => R
  }), X = l(h);
  var r = /* @__PURE__ */ q();
  const p = /(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//, I = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/, e = /vimeo\.com\/(?!progressive_redirect).+/, d = /stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/, _ = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/, U = /^https?:\/\/fb\.watch\/.+$/, v = /streamable\.com\/([a-z0-9]+)$/, L = /(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/, m = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/, b = /(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/, i = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/, a = /mixcloud\.com\/([^/]+\/[^/]+)/, f = /vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/, c = /^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/, S = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i, E = /\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i, A = /\.(m3u8)($|\?)/i, D = /\.(mpd)($|\?)/i, P = /\.(flv)($|\?)/i, O = (t) => {
    if (t instanceof Array) {
      for (const u of t)
        if (typeof u == "string" && O(u) || O(u.src))
          return !0;
      return !1;
    }
    return (0, r.isMediaStream)(t) || (0, r.isBlobUrl)(t) ? !0 : S.test(t) || E.test(t) || A.test(t) || D.test(t) || P.test(t);
  }, R = {
    youtube: (t) => t instanceof Array ? t.every((u) => p.test(u)) : p.test(t),
    soundcloud: (t) => I.test(t) && !S.test(t),
    vimeo: (t) => e.test(t) && !E.test(t) && !A.test(t),
    mux: (t) => d.test(t),
    facebook: (t) => _.test(t) || U.test(t),
    streamable: (t) => v.test(t),
    wistia: (t) => L.test(t),
    twitch: (t) => m.test(t) || b.test(t),
    dailymotion: (t) => i.test(t),
    mixcloud: (t) => a.test(t),
    vidyard: (t) => f.test(t),
    kaltura: (t) => c.test(t),
    file: O
  };
  return X;
}
var Y, ue;
function Ae() {
  if (ue) return Y;
  ue = 1;
  var g = Object.defineProperty, s = Object.getOwnPropertyDescriptor, C = Object.getOwnPropertyNames, T = Object.prototype.hasOwnProperty, w = (e, d) => {
    for (var _ in d)
      g(e, _, { get: d[_], enumerable: !0 });
  }, n = (e, d, _, U) => {
    if (d && typeof d == "object" || typeof d == "function")
      for (let v of C(d))
        !T.call(e, v) && v !== _ && g(e, v, { get: () => d[v], enumerable: !(U = s(d, v)) || U.enumerable });
    return e;
  }, l = (e) => n(g({}, "__esModule", { value: !0 }), e), h = {};
  w(h, {
    default: () => I
  }), Y = l(h);
  var r = /* @__PURE__ */ q(), p = /* @__PURE__ */ Ce(), I = [
    {
      key: "youtube",
      name: "YouTube",
      canPlay: p.canPlay.youtube,
      lazyPlayer: (0, r.lazy)(() => import(
        /* webpackChunkName: 'reactPlayerYouTube' */
        "./YouTube.DDaC-jmL.js"
      ).then((e) => e.Y))
    },
    {
      key: "soundcloud",
      name: "SoundCloud",
      canPlay: p.canPlay.soundcloud,
      lazyPlayer: (0, r.lazy)(() => import(
        /* webpackChunkName: 'reactPlayerSoundCloud' */
        "./SoundCloud.tkovTGRE.js"
      ).then((e) => e.S))
    },
    {
      key: "vimeo",
      name: "Vimeo",
      canPlay: p.canPlay.vimeo,
      lazyPlayer: (0, r.lazy)(() => import(
        /* webpackChunkName: 'reactPlayerVimeo' */
        "./Vimeo.BhHavv17.js"
      ).then((e) => e.V))
    },
    {
      key: "mux",
      name: "Mux",
      canPlay: p.canPlay.mux,
      lazyPlayer: (0, r.lazy)(() => import(
        /* webpackChunkName: 'reactPlayerMux' */
        "./Mux.CyebPxTN.js"
      ).then((e) => e.M))
    },
    {
      key: "facebook",
      name: "Facebook",
      canPlay: p.canPlay.facebook,
      lazyPlayer: (0, r.lazy)(() => import(
        /* webpackChunkName: 'reactPlayerFacebook' */
        "./Facebook.CFJPG6QS.js"
      ).then((e) => e.F))
    },
    {
      key: "streamable",
      name: "Streamable",
      canPlay: p.canPlay.streamable,
      lazyPlayer: (0, r.lazy)(() => import(
        /* webpackChunkName: 'reactPlayerStreamable' */
        "./Streamable.BOZubT4G.js"
      ).then((e) => e.S))
    },
    {
      key: "wistia",
      name: "Wistia",
      canPlay: p.canPlay.wistia,
      lazyPlayer: (0, r.lazy)(() => import(
        /* webpackChunkName: 'reactPlayerWistia' */
        "./Wistia.DPm-D9jD.js"
      ).then((e) => e.W))
    },
    {
      key: "twitch",
      name: "Twitch",
      canPlay: p.canPlay.twitch,
      lazyPlayer: (0, r.lazy)(() => import(
        /* webpackChunkName: 'reactPlayerTwitch' */
        "./Twitch.DEUnLiy_.js"
      ).then((e) => e.T))
    },
    {
      key: "dailymotion",
      name: "DailyMotion",
      canPlay: p.canPlay.dailymotion,
      lazyPlayer: (0, r.lazy)(() => import(
        /* webpackChunkName: 'reactPlayerDailyMotion' */
        "./DailyMotion.BM8rkA7x.js"
      ).then((e) => e.D))
    },
    {
      key: "mixcloud",
      name: "Mixcloud",
      canPlay: p.canPlay.mixcloud,
      lazyPlayer: (0, r.lazy)(() => import(
        /* webpackChunkName: 'reactPlayerMixcloud' */
        "./Mixcloud.DMlEazPW.js"
      ).then((e) => e.M))
    },
    {
      key: "vidyard",
      name: "Vidyard",
      canPlay: p.canPlay.vidyard,
      lazyPlayer: (0, r.lazy)(() => import(
        /* webpackChunkName: 'reactPlayerVidyard' */
        "./Vidyard.V7oltU77.js"
      ).then((e) => e.V))
    },
    {
      key: "kaltura",
      name: "Kaltura",
      canPlay: p.canPlay.kaltura,
      lazyPlayer: (0, r.lazy)(() => import(
        /* webpackChunkName: 'reactPlayerKaltura' */
        "./Kaltura.Yixuayhp.js"
      ).then((e) => e.K))
    },
    {
      key: "file",
      name: "FilePlayer",
      canPlay: p.canPlay.file,
      canEnablePIP: (e) => p.canPlay.file(e) && (document.pictureInPictureEnabled || (0, r.supportsWebKitPresentationMode)()) && !p.AUDIO_EXTENSIONS.test(e),
      lazyPlayer: (0, r.lazy)(() => import(
        /* webpackChunkName: 'reactPlayerFilePlayer' */
        "./FilePlayer.dmITdmmK.js"
      ).then((e) => e.F))
    }
  ];
  return Y;
}
var pe = Number.isNaN || function(s) {
  return typeof s == "number" && s !== s;
};
function Me(g, s) {
  return !!(g === s || pe(g) && pe(s));
}
function Le(g, s) {
  if (g.length !== s.length)
    return !1;
  for (var C = 0; C < g.length; C++)
    if (!Me(g[C], s[C]))
      return !1;
  return !0;
}
function Ie(g, s) {
  s === void 0 && (s = Le);
  var C, T = [], w, n = !1;
  function l() {
    for (var h = [], r = 0; r < arguments.length; r++)
      h[r] = arguments[r];
    return n && C === this && s(h, T) || (w = g.apply(this, h), n = !0, C = this, T = h), w;
  }
  return l;
}
const De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: Ie
}, Symbol.toStringTag, { value: "Module" })), ke = /* @__PURE__ */ ge(De);
var J, ce;
function me() {
  if (ce) return J;
  ce = 1;
  var g = typeof Element < "u", s = typeof Map == "function", C = typeof Set == "function", T = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
  function w(n, l) {
    if (n === l) return !0;
    if (n && l && typeof n == "object" && typeof l == "object") {
      if (n.constructor !== l.constructor) return !1;
      var h, r, p;
      if (Array.isArray(n)) {
        if (h = n.length, h != l.length) return !1;
        for (r = h; r-- !== 0; )
          if (!w(n[r], l[r])) return !1;
        return !0;
      }
      var I;
      if (s && n instanceof Map && l instanceof Map) {
        if (n.size !== l.size) return !1;
        for (I = n.entries(); !(r = I.next()).done; )
          if (!l.has(r.value[0])) return !1;
        for (I = n.entries(); !(r = I.next()).done; )
          if (!w(r.value[1], l.get(r.value[0]))) return !1;
        return !0;
      }
      if (C && n instanceof Set && l instanceof Set) {
        if (n.size !== l.size) return !1;
        for (I = n.entries(); !(r = I.next()).done; )
          if (!l.has(r.value[0])) return !1;
        return !0;
      }
      if (T && ArrayBuffer.isView(n) && ArrayBuffer.isView(l)) {
        if (h = n.length, h != l.length) return !1;
        for (r = h; r-- !== 0; )
          if (n[r] !== l[r]) return !1;
        return !0;
      }
      if (n.constructor === RegExp) return n.source === l.source && n.flags === l.flags;
      if (n.valueOf !== Object.prototype.valueOf && typeof n.valueOf == "function" && typeof l.valueOf == "function") return n.valueOf() === l.valueOf();
      if (n.toString !== Object.prototype.toString && typeof n.toString == "function" && typeof l.toString == "function") return n.toString() === l.toString();
      if (p = Object.keys(n), h = p.length, h !== Object.keys(l).length) return !1;
      for (r = h; r-- !== 0; )
        if (!Object.prototype.hasOwnProperty.call(l, p[r])) return !1;
      if (g && n instanceof Element) return !1;
      for (r = h; r-- !== 0; )
        if (!((p[r] === "_owner" || p[r] === "__v" || p[r] === "__o") && n.$$typeof) && !w(n[p[r]], l[p[r]]))
          return !1;
      return !0;
    }
    return n !== n && l !== l;
  }
  return J = function(l, h) {
    try {
      return w(l, h);
    } catch (r) {
      if ((r.message || "").match(/stack|recursion/i))
        return console.warn("react-fast-compare cannot handle circular refs"), !1;
      throw r;
    }
  }, J;
}
var Z, fe;
function Pe() {
  if (fe) return Z;
  fe = 1;
  var g = Object.create, s = Object.defineProperty, C = Object.getOwnPropertyDescriptor, T = Object.getOwnPropertyNames, w = Object.getPrototypeOf, n = Object.prototype.hasOwnProperty, l = (E, A) => {
    for (var D in A)
      s(E, D, { get: A[D], enumerable: !0 });
  }, h = (E, A, D, P) => {
    if (A && typeof A == "object" || typeof A == "function")
      for (let O of T(A))
        !n.call(E, O) && O !== D && s(E, O, { get: () => A[O], enumerable: !(P = C(A, O)) || P.enumerable });
    return E;
  }, r = (E, A, D) => (D = E != null ? g(w(E)) : {}, h(
    // If the importer is in node compatibility mode or this is not an ESM
    // file that has been converted to a CommonJS file using a Babel-
    // compatible transform (i.e. "__esModule" has not been set), then set
    // "default" to the CommonJS "module.exports" for node compatibility.
    !E || !E.__esModule ? s(D, "default", { value: E, enumerable: !0 }) : D,
    E
  )), p = (E) => h(s({}, "__esModule", { value: !0 }), E), I = {};
  l(I, {
    defaultProps: () => S,
    propTypes: () => f
  }), Z = p(I);
  var e = r(/* @__PURE__ */ Se());
  const { string: d, bool: _, number: U, array: v, oneOfType: L, shape: m, object: b, func: i, node: a } = e.default, f = {
    url: L([d, v, b]),
    playing: _,
    loop: _,
    controls: _,
    volume: U,
    muted: _,
    playbackRate: U,
    width: L([d, U]),
    height: L([d, U]),
    style: b,
    progressInterval: U,
    playsinline: _,
    pip: _,
    stopOnUnmount: _,
    light: L([_, d, b]),
    playIcon: a,
    previewTabIndex: U,
    previewAriaLabel: d,
    fallback: a,
    oEmbedUrl: d,
    wrapper: L([
      d,
      i,
      m({ render: i.isRequired })
    ]),
    config: m({
      soundcloud: m({
        options: b
      }),
      youtube: m({
        playerVars: b,
        embedOptions: b,
        onUnstarted: i
      }),
      facebook: m({
        appId: d,
        version: d,
        playerId: d,
        attributes: b
      }),
      dailymotion: m({
        params: b
      }),
      vimeo: m({
        playerOptions: b,
        title: d
      }),
      mux: m({
        attributes: b,
        version: d
      }),
      file: m({
        attributes: b,
        tracks: v,
        forceVideo: _,
        forceAudio: _,
        forceHLS: _,
        forceSafariHLS: _,
        forceDisableHls: _,
        forceDASH: _,
        forceFLV: _,
        hlsOptions: b,
        hlsVersion: d,
        dashVersion: d,
        flvVersion: d
      }),
      wistia: m({
        options: b,
        playerId: d,
        customControls: v
      }),
      mixcloud: m({
        options: b
      }),
      twitch: m({
        options: b,
        playerId: d
      }),
      vidyard: m({
        options: b
      })
    }),
    onReady: i,
    onStart: i,
    onPlay: i,
    onPause: i,
    onBuffer: i,
    onBufferEnd: i,
    onEnded: i,
    onError: i,
    onDuration: i,
    onSeek: i,
    onPlaybackRateChange: i,
    onPlaybackQualityChange: i,
    onProgress: i,
    onClickPreview: i,
    onEnablePIP: i,
    onDisablePIP: i
  }, c = () => {
  }, S = {
    playing: !1,
    loop: !1,
    controls: !1,
    volume: null,
    muted: !1,
    playbackRate: 1,
    width: "640px",
    height: "360px",
    style: {},
    progressInterval: 1e3,
    playsinline: !1,
    pip: !1,
    stopOnUnmount: !0,
    light: !1,
    fallback: null,
    wrapper: "div",
    previewTabIndex: 0,
    previewAriaLabel: "",
    oEmbedUrl: "https://noembed.com/embed?url={url}",
    config: {
      soundcloud: {
        options: {
          visual: !0,
          // Undocumented, but makes player fill container and look better
          buying: !1,
          liking: !1,
          download: !1,
          sharing: !1,
          show_comments: !1,
          show_playcount: !1
        }
      },
      youtube: {
        playerVars: {
          playsinline: 1,
          showinfo: 0,
          rel: 0,
          iv_load_policy: 3,
          modestbranding: 1
        },
        embedOptions: {},
        onUnstarted: c
      },
      facebook: {
        appId: "1309697205772819",
        version: "v3.3",
        playerId: null,
        attributes: {}
      },
      dailymotion: {
        params: {
          api: 1,
          "endscreen-enable": !1
        }
      },
      vimeo: {
        playerOptions: {
          autopause: !1,
          byline: !1,
          portrait: !1,
          title: !1
        },
        title: null
      },
      mux: {
        attributes: {},
        version: "2"
      },
      file: {
        attributes: {},
        tracks: [],
        forceVideo: !1,
        forceAudio: !1,
        forceHLS: !1,
        forceDASH: !1,
        forceFLV: !1,
        hlsOptions: {},
        hlsVersion: "1.1.4",
        dashVersion: "3.1.3",
        flvVersion: "1.5.0",
        forceDisableHls: !1
      },
      wistia: {
        options: {},
        playerId: null,
        customControls: null
      },
      mixcloud: {
        options: {
          hide_cover: 1
        }
      },
      twitch: {
        options: {},
        playerId: null
      },
      vidyard: {
        options: {}
      }
    },
    onReady: c,
    onStart: c,
    onPlay: c,
    onPause: c,
    onBuffer: c,
    onBufferEnd: c,
    onEnded: c,
    onError: c,
    onDuration: c,
    onSeek: c,
    onPlaybackRateChange: c,
    onPlaybackQualityChange: c,
    onProgress: c,
    onClickPreview: c,
    onEnablePIP: c,
    onDisablePIP: c
  };
  return Z;
}
var Q, ye;
function Ue() {
  if (ye) return Q;
  ye = 1;
  var g = Object.create, s = Object.defineProperty, C = Object.getOwnPropertyDescriptor, T = Object.getOwnPropertyNames, w = Object.getPrototypeOf, n = Object.prototype.hasOwnProperty, l = (i, a, f) => a in i ? s(i, a, { enumerable: !0, configurable: !0, writable: !0, value: f }) : i[a] = f, h = (i, a) => {
    for (var f in a)
      s(i, f, { get: a[f], enumerable: !0 });
  }, r = (i, a, f, c) => {
    if (a && typeof a == "object" || typeof a == "function")
      for (let S of T(a))
        !n.call(i, S) && S !== f && s(i, S, { get: () => a[S], enumerable: !(c = C(a, S)) || c.enumerable });
    return i;
  }, p = (i, a, f) => (f = i != null ? g(w(i)) : {}, r(
    // If the importer is in node compatibility mode or this is not an ESM
    // file that has been converted to a CommonJS file using a Babel-
    // compatible transform (i.e. "__esModule" has not been set), then set
    // "default" to the CommonJS "module.exports" for node compatibility.
    !i || !i.__esModule ? s(f, "default", { value: i, enumerable: !0 }) : f,
    i
  )), I = (i) => r(s({}, "__esModule", { value: !0 }), i), e = (i, a, f) => (l(i, typeof a != "symbol" ? a + "" : a, f), f), d = {};
  h(d, {
    default: () => b
  }), Q = I(d);
  var _ = p(te), U = p(me()), v = /* @__PURE__ */ Pe(), L = /* @__PURE__ */ q();
  const m = 5e3;
  class b extends _.Component {
    constructor() {
      super(...arguments), e(this, "mounted", !1), e(this, "isReady", !1), e(this, "isPlaying", !1), e(this, "isLoading", !0), e(this, "loadOnReady", null), e(this, "startOnPlay", !0), e(this, "seekOnPlay", null), e(this, "onDurationCalled", !1), e(this, "handlePlayerMount", (a) => {
        if (this.player) {
          this.progress();
          return;
        }
        this.player = a, this.player.load(this.props.url), this.progress();
      }), e(this, "getInternalPlayer", (a) => this.player ? this.player[a] : null), e(this, "progress", () => {
        if (this.props.url && this.player && this.isReady) {
          const a = this.getCurrentTime() || 0, f = this.getSecondsLoaded(), c = this.getDuration();
          if (c) {
            const S = {
              playedSeconds: a,
              played: a / c
            };
            f !== null && (S.loadedSeconds = f, S.loaded = f / c), (S.playedSeconds !== this.prevPlayed || S.loadedSeconds !== this.prevLoaded) && this.props.onProgress(S), this.prevPlayed = S.playedSeconds, this.prevLoaded = S.loadedSeconds;
          }
        }
        this.progressTimeout = setTimeout(this.progress, this.props.progressFrequency || this.props.progressInterval);
      }), e(this, "handleReady", () => {
        if (!this.mounted)
          return;
        this.isReady = !0, this.isLoading = !1;
        const { onReady: a, playing: f, volume: c, muted: S } = this.props;
        a(), !S && c !== null && this.player.setVolume(c), this.loadOnReady ? (this.player.load(this.loadOnReady, !0), this.loadOnReady = null) : f && this.player.play(), this.handleDurationCheck();
      }), e(this, "handlePlay", () => {
        this.isPlaying = !0, this.isLoading = !1;
        const { onStart: a, onPlay: f, playbackRate: c } = this.props;
        this.startOnPlay && (this.player.setPlaybackRate && c !== 1 && this.player.setPlaybackRate(c), a(), this.startOnPlay = !1), f(), this.seekOnPlay && (this.seekTo(this.seekOnPlay), this.seekOnPlay = null), this.handleDurationCheck();
      }), e(this, "handlePause", (a) => {
        this.isPlaying = !1, this.isLoading || this.props.onPause(a);
      }), e(this, "handleEnded", () => {
        const { activePlayer: a, loop: f, onEnded: c } = this.props;
        a.loopOnEnded && f && this.seekTo(0), f || (this.isPlaying = !1, c());
      }), e(this, "handleError", (...a) => {
        this.isLoading = !1, this.props.onError(...a);
      }), e(this, "handleDurationCheck", () => {
        clearTimeout(this.durationCheckTimeout);
        const a = this.getDuration();
        a ? this.onDurationCalled || (this.props.onDuration(a), this.onDurationCalled = !0) : this.durationCheckTimeout = setTimeout(this.handleDurationCheck, 100);
      }), e(this, "handleLoaded", () => {
        this.isLoading = !1;
      });
    }
    componentDidMount() {
      this.mounted = !0;
    }
    componentWillUnmount() {
      clearTimeout(this.progressTimeout), clearTimeout(this.durationCheckTimeout), this.isReady && this.props.stopOnUnmount && (this.player.stop(), this.player.disablePIP && this.player.disablePIP()), this.mounted = !1;
    }
    componentDidUpdate(a) {
      if (!this.player)
        return;
      const { url: f, playing: c, volume: S, muted: E, playbackRate: A, pip: D, loop: P, activePlayer: O, disableDeferredLoading: R } = this.props;
      if (!(0, U.default)(a.url, f)) {
        if (this.isLoading && !O.forceLoad && !R && !(0, L.isMediaStream)(f)) {
          console.warn(`ReactPlayer: the attempt to load ${f} is being deferred until the player has loaded`), this.loadOnReady = f;
          return;
        }
        this.isLoading = !0, this.startOnPlay = !0, this.onDurationCalled = !1, this.player.load(f, this.isReady);
      }
      !a.playing && c && !this.isPlaying && this.player.play(), a.playing && !c && this.isPlaying && this.player.pause(), !a.pip && D && this.player.enablePIP && this.player.enablePIP(), a.pip && !D && this.player.disablePIP && this.player.disablePIP(), a.volume !== S && S !== null && this.player.setVolume(S), a.muted !== E && (E ? this.player.mute() : (this.player.unmute(), S !== null && setTimeout(() => this.player.setVolume(S)))), a.playbackRate !== A && this.player.setPlaybackRate && this.player.setPlaybackRate(A), a.loop !== P && this.player.setLoop && this.player.setLoop(P);
    }
    getDuration() {
      return this.isReady ? this.player.getDuration() : null;
    }
    getCurrentTime() {
      return this.isReady ? this.player.getCurrentTime() : null;
    }
    getSecondsLoaded() {
      return this.isReady ? this.player.getSecondsLoaded() : null;
    }
    seekTo(a, f, c) {
      if (!this.isReady) {
        a !== 0 && (this.seekOnPlay = a, setTimeout(() => {
          this.seekOnPlay = null;
        }, m));
        return;
      }
      if (f ? f === "fraction" : a > 0 && a < 1) {
        const E = this.player.getDuration();
        if (!E) {
          console.warn("ReactPlayer: could not seek using fraction – duration not yet available");
          return;
        }
        this.player.seekTo(E * a, c);
        return;
      }
      this.player.seekTo(a, c);
    }
    render() {
      const a = this.props.activePlayer;
      return a ? /* @__PURE__ */ _.default.createElement(
        a,
        {
          ...this.props,
          onMount: this.handlePlayerMount,
          onReady: this.handleReady,
          onPlay: this.handlePlay,
          onPause: this.handlePause,
          onEnded: this.handleEnded,
          onLoaded: this.handleLoaded,
          onError: this.handleError
        }
      ) : null;
    }
  }
  return e(b, "displayName", "Player"), e(b, "propTypes", v.propTypes), e(b, "defaultProps", v.defaultProps), Q;
}
var G, de;
function Ne() {
  if (de) return G;
  de = 1;
  var g = Object.create, s = Object.defineProperty, C = Object.getOwnPropertyDescriptor, T = Object.getOwnPropertyNames, w = Object.getPrototypeOf, n = Object.prototype.hasOwnProperty, l = (P, O, R) => O in P ? s(P, O, { enumerable: !0, configurable: !0, writable: !0, value: R }) : P[O] = R, h = (P, O) => {
    for (var R in O)
      s(P, R, { get: O[R], enumerable: !0 });
  }, r = (P, O, R, t) => {
    if (O && typeof O == "object" || typeof O == "function")
      for (let u of T(O))
        !n.call(P, u) && u !== R && s(P, u, { get: () => O[u], enumerable: !(t = C(O, u)) || t.enumerable });
    return P;
  }, p = (P, O, R) => (R = P != null ? g(w(P)) : {}, r(
    // If the importer is in node compatibility mode or this is not an ESM
    // file that has been converted to a CommonJS file using a Babel-
    // compatible transform (i.e. "__esModule" has not been set), then set
    // "default" to the CommonJS "module.exports" for node compatibility.
    !P || !P.__esModule ? s(R, "default", { value: P, enumerable: !0 }) : R,
    P
  )), I = (P) => r(s({}, "__esModule", { value: !0 }), P), e = (P, O, R) => (l(P, typeof O != "symbol" ? O + "" : O, R), R), d = {};
  h(d, {
    createReactPlayer: () => D
  }), G = I(d);
  var _ = p(te), U = p(_e()), v = p(ke), L = p(me()), m = /* @__PURE__ */ Pe(), b = /* @__PURE__ */ q(), i = p(/* @__PURE__ */ Ue());
  const a = (0, b.lazy)(() => import(
    /* webpackChunkName: 'reactPlayerPreview' */
    "./Preview.DsLfoVXV.js"
  ).then((P) => P.P)), f = typeof window < "u" && window.document && typeof document < "u", c = typeof $ < "u" && $.window && $.window.document, S = Object.keys(m.propTypes), E = f || c ? _.Suspense : () => null, A = [], D = (P, O) => {
    var R;
    return R = class extends _.Component {
      constructor() {
        super(...arguments), e(this, "state", {
          showPreview: !!this.props.light
        }), e(this, "references", {
          wrapper: (t) => {
            this.wrapper = t;
          },
          player: (t) => {
            this.player = t;
          }
        }), e(this, "handleClickPreview", (t) => {
          this.setState({ showPreview: !1 }), this.props.onClickPreview(t);
        }), e(this, "showPreview", () => {
          this.setState({ showPreview: !0 });
        }), e(this, "getDuration", () => this.player ? this.player.getDuration() : null), e(this, "getCurrentTime", () => this.player ? this.player.getCurrentTime() : null), e(this, "getSecondsLoaded", () => this.player ? this.player.getSecondsLoaded() : null), e(this, "getInternalPlayer", (t = "player") => this.player ? this.player.getInternalPlayer(t) : null), e(this, "seekTo", (t, u, N) => {
          if (!this.player)
            return null;
          this.player.seekTo(t, u, N);
        }), e(this, "handleReady", () => {
          this.props.onReady(this);
        }), e(this, "getActivePlayer", (0, v.default)((t) => {
          for (const u of [...A, ...P])
            if (u.canPlay(t))
              return u;
          return O || null;
        })), e(this, "getConfig", (0, v.default)((t, u) => {
          const { config: N } = this.props;
          return U.default.all([
            m.defaultProps.config,
            m.defaultProps.config[u] || {},
            N,
            N[u] || {}
          ]);
        })), e(this, "getAttributes", (0, v.default)((t) => (0, b.omit)(this.props, S))), e(this, "renderActivePlayer", (t) => {
          if (!t)
            return null;
          const u = this.getActivePlayer(t);
          if (!u)
            return null;
          const N = this.getConfig(t, u.key);
          return /* @__PURE__ */ _.default.createElement(
            i.default,
            {
              ...this.props,
              key: u.key,
              ref: this.references.player,
              config: N,
              activePlayer: u.lazyPlayer || u,
              onReady: this.handleReady
            }
          );
        });
      }
      shouldComponentUpdate(t, u) {
        return !(0, L.default)(this.props, t) || !(0, L.default)(this.state, u);
      }
      componentDidUpdate(t) {
        const { light: u } = this.props;
        !t.light && u && this.setState({ showPreview: !0 }), t.light && !u && this.setState({ showPreview: !1 });
      }
      renderPreview(t) {
        if (!t)
          return null;
        const { light: u, playIcon: N, previewTabIndex: H, oEmbedUrl: x, previewAriaLabel: o } = this.props;
        return /* @__PURE__ */ _.default.createElement(
          a,
          {
            url: t,
            light: u,
            playIcon: N,
            previewTabIndex: H,
            previewAriaLabel: o,
            oEmbedUrl: x,
            onClick: this.handleClickPreview
          }
        );
      }
      render() {
        const { url: t, style: u, width: N, height: H, fallback: x, wrapper: o } = this.props, { showPreview: y } = this.state, M = this.getAttributes(t), k = typeof o == "string" ? this.references.wrapper : void 0;
        return /* @__PURE__ */ _.default.createElement(o, { ref: k, style: { ...u, width: N, height: H }, ...M }, /* @__PURE__ */ _.default.createElement(E, { fallback: x }, y ? this.renderPreview(t) : this.renderActivePlayer(t)));
      }
    }, e(R, "displayName", "ReactPlayer"), e(R, "propTypes", m.propTypes), e(R, "defaultProps", m.defaultProps), e(R, "addCustomPlayer", (t) => {
      A.push(t);
    }), e(R, "removeCustomPlayers", () => {
      A.length = 0;
    }), e(R, "canPlay", (t) => {
      for (const u of [...A, ...P])
        if (u.canPlay(t))
          return !0;
      return !1;
    }), e(R, "canEnablePIP", (t) => {
      for (const u of [...A, ...P])
        if (u.canEnablePIP && u.canEnablePIP(t))
          return !0;
      return !1;
    }), R;
  };
  return G;
}
var ee, he;
function je() {
  if (he) return ee;
  he = 1;
  var g = Object.create, s = Object.defineProperty, C = Object.getOwnPropertyDescriptor, T = Object.getOwnPropertyNames, w = Object.getPrototypeOf, n = Object.prototype.hasOwnProperty, l = (v, L) => {
    for (var m in L)
      s(v, m, { get: L[m], enumerable: !0 });
  }, h = (v, L, m, b) => {
    if (L && typeof L == "object" || typeof L == "function")
      for (let i of T(L))
        !n.call(v, i) && i !== m && s(v, i, { get: () => L[i], enumerable: !(b = C(L, i)) || b.enumerable });
    return v;
  }, r = (v, L, m) => (m = v != null ? g(w(v)) : {}, h(
    // If the importer is in node compatibility mode or this is not an ESM
    // file that has been converted to a CommonJS file using a Babel-
    // compatible transform (i.e. "__esModule" has not been set), then set
    // "default" to the CommonJS "module.exports" for node compatibility.
    !v || !v.__esModule ? s(m, "default", { value: v, enumerable: !0 }) : m,
    v
  )), p = (v) => h(s({}, "__esModule", { value: !0 }), v), I = {};
  l(I, {
    default: () => U
  }), ee = p(I);
  var e = r(/* @__PURE__ */ Ae()), d = /* @__PURE__ */ Ne();
  const _ = e.default[e.default.length - 1];
  var U = (0, d.createReactPlayer)(e.default, _);
  return ee;
}
var xe = /* @__PURE__ */ je();
const He = /* @__PURE__ */ Oe(xe);
function ze({ brick: g, editable: s }) {
  const C = Te(g), T = g.props;
  return /* @__PURE__ */ ve(
    Re,
    {
      brick: g,
      editable: s,
      manifest: we,
      className: be("relative", Object.values(C)),
      children: [
        s && /* @__PURE__ */ oe("div", { className: "absolute inset-0" }),
        /* @__PURE__ */ oe(He, { url: T.url, width: "100%", height: "100%" })
      ]
    }
  );
}
const Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: ze
}, Symbol.toStringTag, { value: "Module" }));
export {
  Ce as a,
  q as r,
  Xe as v
};
