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CAEA,GAAIF,EAAE3nB,cAAgBmoB,OAAQ,OAAOR,EAAE/U,SAAWgV,EAAEhV,QAAU+U,EAAES,QAAUR,EAAEQ,MAK5E,GAAIT,EAAEU,UAAYlrB,OAAOW,UAAUuqB,SAAgC,mBAAdV,EAAEU,SAA+C,mBAAdT,EAAES,QAAwB,OAAOV,EAAEU,YAAcT,EAAES,UAC3I,GAAIV,EAAE3E,WAAa7lB,OAAOW,UAAUklB,UAAkC,mBAAf2E,EAAE3E,UAAiD,mBAAf4E,EAAE5E,SAAyB,OAAO2E,EAAE3E,aAAe4E,EAAE5E,WAKhJ,IADAzX,GADAhC,EAAOpM,OAAOoM,KAAKoe,IACLpc,UACCpO,OAAOoM,KAAKqe,GAAGrc,OAAQ,OAAO,EAE7C,IAAKsc,EAAItc,EAAgB,GAARsc,KACf,IAAK1qB,OAAOW,UAAUC,eAAeO,KAAKspB,EAAGre,EAAKse,IAAK,OAAO,EAKhE,GAAIX,GAAkBS,aAAatQ,QAAS,OAAO,EAGnD,IAAKwQ,EAAItc,EAAgB,GAARsc,KACf,IAAiB,WAAZte,EAAKse,IAA+B,QAAZte,EAAKse,IAA4B,QAAZte,EAAKse,KAAiBF,EAAE3C,YAarE0C,EAAMC,EAAEpe,EAAKse,IAAKD,EAAEre,EAAKse,KAAM,OAAO,EAK7C,OAAO,CACT,CAEA,OAAOF,GAAMA,GAAKC,GAAMA,CAC1B,CAGAnoB,EAAOC,QAAU,SAAiBioB,EAAGC,GACnC,IACE,OAAOF,EAAMC,EAAGC,EAClB,CAAE,MAAO5X,GACP,IAAMA,EAAMwU,SAAW,IAAI5V,MAAM,oBAO/B,OADA1K,QAAQC,KAAK,mDACN,EAGT,MAAM6L,CACR,CACF,C","sources":["webpack://acura/./node_modules/react-player/lib/Player.js","webpack://acura/./node_modules/react-player/lib/Preview.js","webpack://acura/./node_modules/react-player/lib/ReactPlayer.js","webpack://acura/./node_modules/react-player/lib/index.js","webpack://acura/./node_modules/react-player/lib/patterns.js","webpack://acura/./node_modules/react-player/lib/players/DailyMotion.js","webpack://acura/./node_modules/react-player/lib/players/Facebook.js","webpack://acura/./node_modules/react-player/lib/players/FilePlayer.js","webpack://acura/./node_modules/react-player/lib/players/Kaltura.js","webpack://acura/./node_modules/react-player/lib/players/Mixcloud.js","webpack://acura/./node_modules/react-player/lib/players/Mux.js","webpack://acura/./node_modules/react-player/lib/players/SoundCloud.js","webpack://acura/./node_modules/react-player/lib/players/Streamable.js","webpack://acura/./node_modules/react-player/lib/players/Twitch.js","webpack://acura/./node_modules/react-player/lib/players/Vidyard.js","webpack://acura/./node_modules/react-player/lib/players/Vimeo.js","webpack://acura/./node_modules/react-player/lib/players/Wistia.js","webpack://acura/./node_modules/react-player/lib/players/YouTube.js","webpack://acura/./node_modules/react-player/lib/players/index.js","webpack://acura/./node_modules/react-player/lib/props.js","webpack://acura/./node_modules/react-player/lib/utils.js","webpack://acura/./node_modules/react-player/node_modules/deepmerge/dist/cjs.js","webpack://acura/./node_modules/react-player/node_modules/react-fast-compare/index.js"],"sourcesContent":["var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar Player_exports = {};\n__export(Player_exports, {\n default: () => Player\n});\nmodule.exports = __toCommonJS(Player_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_react_fast_compare = __toESM(require(\"react-fast-compare\"));\nvar import_props = require(\"./props\");\nvar import_utils = require(\"./utils\");\nconst SEEK_ON_PLAY_EXPIRY = 5e3;\nclass Player extends import_react.Component {\n constructor() {\n super(...arguments);\n __publicField(this, \"mounted\", false);\n __publicField(this, \"isReady\", false);\n __publicField(this, \"isPlaying\", false);\n // Track playing state internally to prevent bugs\n __publicField(this, \"isLoading\", true);\n // Use isLoading to prevent onPause when switching URL\n __publicField(this, \"loadOnReady\", null);\n __publicField(this, \"startOnPlay\", true);\n __publicField(this, \"seekOnPlay\", null);\n __publicField(this, \"onDurationCalled\", false);\n __publicField(this, \"handlePlayerMount\", (player) => {\n if (this.player) {\n this.progress();\n return;\n }\n this.player = player;\n this.player.load(this.props.url);\n this.progress();\n });\n __publicField(this, \"getInternalPlayer\", (key) => {\n if (!this.player)\n return null;\n return this.player[key];\n });\n __publicField(this, \"progress\", () => {\n if (this.props.url && this.player && this.isReady) {\n const playedSeconds = this.getCurrentTime() || 0;\n const loadedSeconds = this.getSecondsLoaded();\n const duration = this.getDuration();\n if (duration) {\n const progress = {\n playedSeconds,\n played: playedSeconds / duration\n };\n if (loadedSeconds !== null) {\n progress.loadedSeconds = loadedSeconds;\n progress.loaded = loadedSeconds / duration;\n }\n if (progress.playedSeconds !== this.prevPlayed || progress.loadedSeconds !== this.prevLoaded) {\n this.props.onProgress(progress);\n }\n this.prevPlayed = progress.playedSeconds;\n this.prevLoaded = progress.loadedSeconds;\n }\n }\n this.progressTimeout = setTimeout(this.progress, this.props.progressFrequency || this.props.progressInterval);\n });\n __publicField(this, \"handleReady\", () => {\n if (!this.mounted)\n return;\n this.isReady = true;\n this.isLoading = false;\n const { onReady, playing, volume, muted } = this.props;\n onReady();\n if (!muted && volume !== null) {\n this.player.setVolume(volume);\n }\n if (this.loadOnReady) {\n this.player.load(this.loadOnReady, true);\n this.loadOnReady = null;\n } else if (playing) {\n this.player.play();\n }\n this.handleDurationCheck();\n });\n __publicField(this, \"handlePlay\", () => {\n this.isPlaying = true;\n this.isLoading = false;\n const { onStart, onPlay, playbackRate } = this.props;\n if (this.startOnPlay) {\n if (this.player.setPlaybackRate && playbackRate !== 1) {\n this.player.setPlaybackRate(playbackRate);\n }\n onStart();\n this.startOnPlay = false;\n }\n onPlay();\n if (this.seekOnPlay) {\n this.seekTo(this.seekOnPlay);\n this.seekOnPlay = null;\n }\n this.handleDurationCheck();\n });\n __publicField(this, \"handlePause\", (e) => {\n this.isPlaying = false;\n if (!this.isLoading) {\n this.props.onPause(e);\n }\n });\n __publicField(this, \"handleEnded\", () => {\n const { activePlayer, loop, onEnded } = this.props;\n if (activePlayer.loopOnEnded && loop) {\n this.seekTo(0);\n }\n if (!loop) {\n this.isPlaying = false;\n onEnded();\n }\n });\n __publicField(this, \"handleError\", (...args) => {\n this.isLoading = false;\n this.props.onError(...args);\n });\n __publicField(this, \"handleDurationCheck\", () => {\n clearTimeout(this.durationCheckTimeout);\n const duration = this.getDuration();\n if (duration) {\n if (!this.onDurationCalled) {\n this.props.onDuration(duration);\n this.onDurationCalled = true;\n }\n } else {\n this.durationCheckTimeout = setTimeout(this.handleDurationCheck, 100);\n }\n });\n __publicField(this, \"handleLoaded\", () => {\n this.isLoading = false;\n });\n }\n componentDidMount() {\n this.mounted = true;\n }\n componentWillUnmount() {\n clearTimeout(this.progressTimeout);\n clearTimeout(this.durationCheckTimeout);\n if (this.isReady && this.props.stopOnUnmount) {\n this.player.stop();\n if (this.player.disablePIP) {\n this.player.disablePIP();\n }\n }\n this.mounted = false;\n }\n componentDidUpdate(prevProps) {\n if (!this.player) {\n return;\n }\n const { url, playing, volume, muted, playbackRate, pip, loop, activePlayer, disableDeferredLoading } = this.props;\n if (!(0, import_react_fast_compare.default)(prevProps.url, url)) {\n if (this.isLoading && !activePlayer.forceLoad && !disableDeferredLoading && !(0, import_utils.isMediaStream)(url)) {\n console.warn(`ReactPlayer: the attempt to load ${url} is being deferred until the player has loaded`);\n this.loadOnReady = url;\n return;\n }\n this.isLoading = true;\n this.startOnPlay = true;\n this.onDurationCalled = false;\n this.player.load(url, this.isReady);\n }\n if (!prevProps.playing && playing && !this.isPlaying) {\n this.player.play();\n }\n if (prevProps.playing && !playing && this.isPlaying) {\n this.player.pause();\n }\n if (!prevProps.pip && pip && this.player.enablePIP) {\n this.player.enablePIP();\n }\n if (prevProps.pip && !pip && this.player.disablePIP) {\n this.player.disablePIP();\n }\n if (prevProps.volume !== volume && volume !== null) {\n this.player.setVolume(volume);\n }\n if (prevProps.muted !== muted) {\n if (muted) {\n this.player.mute();\n } else {\n this.player.unmute();\n if (volume !== null) {\n setTimeout(() => this.player.setVolume(volume));\n }\n }\n }\n if (prevProps.playbackRate !== playbackRate && this.player.setPlaybackRate) {\n this.player.setPlaybackRate(playbackRate);\n }\n if (prevProps.loop !== loop && this.player.setLoop) {\n this.player.setLoop(loop);\n }\n }\n getDuration() {\n if (!this.isReady)\n return null;\n return this.player.getDuration();\n }\n getCurrentTime() {\n if (!this.isReady)\n return null;\n return this.player.getCurrentTime();\n }\n getSecondsLoaded() {\n if (!this.isReady)\n return null;\n return this.player.getSecondsLoaded();\n }\n seekTo(amount, type, keepPlaying) {\n if (!this.isReady) {\n if (amount !== 0) {\n this.seekOnPlay = amount;\n setTimeout(() => {\n this.seekOnPlay = null;\n }, SEEK_ON_PLAY_EXPIRY);\n }\n return;\n }\n const isFraction = !type ? amount > 0 && amount < 1 : type === \"fraction\";\n if (isFraction) {\n const duration = this.player.getDuration();\n if (!duration) {\n console.warn(\"ReactPlayer: could not seek using fraction \\u2013\\xA0duration not yet available\");\n return;\n }\n this.player.seekTo(duration * amount, keepPlaying);\n return;\n }\n this.player.seekTo(amount, keepPlaying);\n }\n render() {\n const Player2 = this.props.activePlayer;\n if (!Player2) {\n return null;\n }\n return /* @__PURE__ */ import_react.default.createElement(\n Player2,\n {\n ...this.props,\n onMount: this.handlePlayerMount,\n onReady: this.handleReady,\n onPlay: this.handlePlay,\n onPause: this.handlePause,\n onEnded: this.handleEnded,\n onLoaded: this.handleLoaded,\n onError: this.handleError\n }\n );\n }\n}\n__publicField(Player, \"displayName\", \"Player\");\n__publicField(Player, \"propTypes\", import_props.propTypes);\n__publicField(Player, \"defaultProps\", import_props.defaultProps);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar Preview_exports = {};\n__export(Preview_exports, {\n default: () => Preview\n});\nmodule.exports = __toCommonJS(Preview_exports);\nvar import_react = __toESM(require(\"react\"));\nconst ICON_SIZE = \"64px\";\nconst cache = {};\nclass Preview extends import_react.Component {\n constructor() {\n super(...arguments);\n __publicField(this, \"mounted\", false);\n __publicField(this, \"state\", {\n image: null\n });\n __publicField(this, \"handleKeyPress\", (e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n this.props.onClick();\n }\n });\n }\n componentDidMount() {\n this.mounted = true;\n this.fetchImage(this.props);\n }\n componentDidUpdate(prevProps) {\n const { url, light } = this.props;\n if (prevProps.url !== url || prevProps.light !== light) {\n this.fetchImage(this.props);\n }\n }\n componentWillUnmount() {\n this.mounted = false;\n }\n fetchImage({ url, light, oEmbedUrl }) {\n if (import_react.default.isValidElement(light)) {\n return;\n }\n if (typeof light === \"string\") {\n this.setState({ image: light });\n return;\n }\n if (cache[url]) {\n this.setState({ image: cache[url] });\n return;\n }\n this.setState({ image: null });\n return window.fetch(oEmbedUrl.replace(\"{url}\", url)).then((response) => response.json()).then((data) => {\n if (data.thumbnail_url && this.mounted) {\n const image = data.thumbnail_url.replace(\"height=100\", \"height=480\").replace(\"-d_295x166\", \"-d_640\");\n this.setState({ image });\n cache[url] = image;\n }\n });\n }\n render() {\n const { light, onClick, playIcon, previewTabIndex, previewAriaLabel } = this.props;\n const { image } = this.state;\n const isElement = import_react.default.isValidElement(light);\n const flexCenter = {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n };\n const styles = {\n preview: {\n width: \"100%\",\n height: \"100%\",\n backgroundImage: image && !isElement ? `url(${image})` : void 0,\n backgroundSize: \"cover\",\n backgroundPosition: \"center\",\n cursor: \"pointer\",\n ...flexCenter\n },\n shadow: {\n background: \"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)\",\n borderRadius: ICON_SIZE,\n width: ICON_SIZE,\n height: ICON_SIZE,\n position: isElement ? \"absolute\" : void 0,\n ...flexCenter\n },\n playIcon: {\n borderStyle: \"solid\",\n borderWidth: \"16px 0 16px 26px\",\n borderColor: \"transparent transparent transparent white\",\n marginLeft: \"7px\"\n }\n };\n const defaultPlayIcon = /* @__PURE__ */ import_react.default.createElement(\"div\", { style: styles.shadow, className: \"react-player__shadow\" }, /* @__PURE__ */ import_react.default.createElement(\"div\", { style: styles.playIcon, className: \"react-player__play-icon\" }));\n return /* @__PURE__ */ import_react.default.createElement(\n \"div\",\n {\n style: styles.preview,\n className: \"react-player__preview\",\n onClick,\n tabIndex: previewTabIndex,\n onKeyPress: this.handleKeyPress,\n ...previewAriaLabel ? { \"aria-label\": previewAriaLabel } : {}\n },\n isElement ? light : null,\n playIcon || defaultPlayIcon\n );\n }\n}\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar ReactPlayer_exports = {};\n__export(ReactPlayer_exports, {\n createReactPlayer: () => createReactPlayer\n});\nmodule.exports = __toCommonJS(ReactPlayer_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_deepmerge = __toESM(require(\"deepmerge\"));\nvar import_memoize_one = __toESM(require(\"memoize-one\"));\nvar import_react_fast_compare = __toESM(require(\"react-fast-compare\"));\nvar import_props = require(\"./props\");\nvar import_utils = require(\"./utils\");\nvar import_Player = __toESM(require(\"./Player\"));\nconst Preview = (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerPreview' */\n \"./Preview\"\n));\nconst IS_BROWSER = typeof window !== \"undefined\" && window.document && typeof document !== \"undefined\";\nconst IS_GLOBAL = typeof global !== \"undefined\" && global.window && global.window.document;\nconst SUPPORTED_PROPS = Object.keys(import_props.propTypes);\nconst UniversalSuspense = IS_BROWSER || IS_GLOBAL ? import_react.Suspense : () => null;\nconst customPlayers = [];\nconst createReactPlayer = (players, fallback) => {\n var _a;\n return _a = class extends import_react.Component {\n constructor() {\n super(...arguments);\n __publicField(this, \"state\", {\n showPreview: !!this.props.light\n });\n // Use references, as refs is used by React\n __publicField(this, \"references\", {\n wrapper: (wrapper) => {\n this.wrapper = wrapper;\n },\n player: (player) => {\n this.player = player;\n }\n });\n __publicField(this, \"handleClickPreview\", (e) => {\n this.setState({ showPreview: false });\n this.props.onClickPreview(e);\n });\n __publicField(this, \"showPreview\", () => {\n this.setState({ showPreview: true });\n });\n __publicField(this, \"getDuration\", () => {\n if (!this.player)\n return null;\n return this.player.getDuration();\n });\n __publicField(this, \"getCurrentTime\", () => {\n if (!this.player)\n return null;\n return this.player.getCurrentTime();\n });\n __publicField(this, \"getSecondsLoaded\", () => {\n if (!this.player)\n return null;\n return this.player.getSecondsLoaded();\n });\n __publicField(this, \"getInternalPlayer\", (key = \"player\") => {\n if (!this.player)\n return null;\n return this.player.getInternalPlayer(key);\n });\n __publicField(this, \"seekTo\", (fraction, type, keepPlaying) => {\n if (!this.player)\n return null;\n this.player.seekTo(fraction, type, keepPlaying);\n });\n __publicField(this, \"handleReady\", () => {\n this.props.onReady(this);\n });\n __publicField(this, \"getActivePlayer\", (0, import_memoize_one.default)((url) => {\n for (const player of [...customPlayers, ...players]) {\n if (player.canPlay(url)) {\n return player;\n }\n }\n if (fallback) {\n return fallback;\n }\n return null;\n }));\n __publicField(this, \"getConfig\", (0, import_memoize_one.default)((url, key) => {\n const { config } = this.props;\n return import_deepmerge.default.all([\n import_props.defaultProps.config,\n import_props.defaultProps.config[key] || {},\n config,\n config[key] || {}\n ]);\n }));\n __publicField(this, \"getAttributes\", (0, import_memoize_one.default)((url) => {\n return (0, import_utils.omit)(this.props, SUPPORTED_PROPS);\n }));\n __publicField(this, \"renderActivePlayer\", (url) => {\n if (!url)\n return null;\n const player = this.getActivePlayer(url);\n if (!player)\n return null;\n const config = this.getConfig(url, player.key);\n return /* @__PURE__ */ import_react.default.createElement(\n import_Player.default,\n {\n ...this.props,\n key: player.key,\n ref: this.references.player,\n config,\n activePlayer: player.lazyPlayer || player,\n onReady: this.handleReady\n }\n );\n });\n }\n shouldComponentUpdate(nextProps, nextState) {\n return !(0, import_react_fast_compare.default)(this.props, nextProps) || !(0, import_react_fast_compare.default)(this.state, nextState);\n }\n componentDidUpdate(prevProps) {\n const { light } = this.props;\n if (!prevProps.light && light) {\n this.setState({ showPreview: true });\n }\n if (prevProps.light && !light) {\n this.setState({ showPreview: false });\n }\n }\n renderPreview(url) {\n if (!url)\n return null;\n const { light, playIcon, previewTabIndex, oEmbedUrl, previewAriaLabel } = this.props;\n return /* @__PURE__ */ import_react.default.createElement(\n Preview,\n {\n url,\n light,\n playIcon,\n previewTabIndex,\n previewAriaLabel,\n oEmbedUrl,\n onClick: this.handleClickPreview\n }\n );\n }\n render() {\n const { url, style, width, height, fallback: fallback2, wrapper: Wrapper } = this.props;\n const { showPreview } = this.state;\n const attributes = this.getAttributes(url);\n const wrapperRef = typeof Wrapper === \"string\" ? this.references.wrapper : void 0;\n return /* @__PURE__ */ import_react.default.createElement(Wrapper, { ref: wrapperRef, style: { ...style, width, height }, ...attributes }, /* @__PURE__ */ import_react.default.createElement(UniversalSuspense, { fallback: fallback2 }, showPreview ? this.renderPreview(url) : this.renderActivePlayer(url)));\n }\n }, __publicField(_a, \"displayName\", \"ReactPlayer\"), __publicField(_a, \"propTypes\", import_props.propTypes), __publicField(_a, \"defaultProps\", import_props.defaultProps), __publicField(_a, \"addCustomPlayer\", (player) => {\n customPlayers.push(player);\n }), __publicField(_a, \"removeCustomPlayers\", () => {\n customPlayers.length = 0;\n }), __publicField(_a, \"canPlay\", (url) => {\n for (const Player2 of [...customPlayers, ...players]) {\n if (Player2.canPlay(url)) {\n return true;\n }\n }\n return false;\n }), __publicField(_a, \"canEnablePIP\", (url) => {\n for (const Player2 of [...customPlayers, ...players]) {\n if (Player2.canEnablePIP && Player2.canEnablePIP(url)) {\n return true;\n }\n }\n return false;\n }), _a;\n};\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar src_exports = {};\n__export(src_exports, {\n default: () => src_default\n});\nmodule.exports = __toCommonJS(src_exports);\nvar import_players = __toESM(require(\"./players\"));\nvar import_ReactPlayer = require(\"./ReactPlayer\");\nconst fallback = import_players.default[import_players.default.length - 1];\nvar src_default = (0, import_ReactPlayer.createReactPlayer)(import_players.default, fallback);\n","var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar patterns_exports = {};\n__export(patterns_exports, {\n AUDIO_EXTENSIONS: () => AUDIO_EXTENSIONS,\n DASH_EXTENSIONS: () => DASH_EXTENSIONS,\n FLV_EXTENSIONS: () => FLV_EXTENSIONS,\n HLS_EXTENSIONS: () => HLS_EXTENSIONS,\n MATCH_URL_DAILYMOTION: () => MATCH_URL_DAILYMOTION,\n MATCH_URL_FACEBOOK: () => MATCH_URL_FACEBOOK,\n MATCH_URL_FACEBOOK_WATCH: () => MATCH_URL_FACEBOOK_WATCH,\n MATCH_URL_KALTURA: () => MATCH_URL_KALTURA,\n MATCH_URL_MIXCLOUD: () => MATCH_URL_MIXCLOUD,\n MATCH_URL_MUX: () => MATCH_URL_MUX,\n MATCH_URL_SOUNDCLOUD: () => MATCH_URL_SOUNDCLOUD,\n MATCH_URL_STREAMABLE: () => MATCH_URL_STREAMABLE,\n MATCH_URL_TWITCH_CHANNEL: () => MATCH_URL_TWITCH_CHANNEL,\n MATCH_URL_TWITCH_VIDEO: () => MATCH_URL_TWITCH_VIDEO,\n MATCH_URL_VIDYARD: () => MATCH_URL_VIDYARD,\n MATCH_URL_VIMEO: () => MATCH_URL_VIMEO,\n MATCH_URL_WISTIA: () => MATCH_URL_WISTIA,\n MATCH_URL_YOUTUBE: () => MATCH_URL_YOUTUBE,\n VIDEO_EXTENSIONS: () => VIDEO_EXTENSIONS,\n canPlay: () => canPlay\n});\nmodule.exports = __toCommonJS(patterns_exports);\nvar import_utils = require(\"./utils\");\nconst MATCH_URL_YOUTUBE = /(?:youtu\\.be\\/|youtube(?:-nocookie|education)?\\.com\\/(?:embed\\/|v\\/|watch\\/|watch\\?v=|watch\\?.+&v=|shorts\\/|live\\/))((\\w|-){11})|youtube\\.com\\/playlist\\?list=|youtube\\.com\\/user\\//;\nconst MATCH_URL_SOUNDCLOUD = /(?:soundcloud\\.com|snd\\.sc)\\/[^.]+$/;\nconst MATCH_URL_VIMEO = /vimeo\\.com\\/(?!progressive_redirect).+/;\nconst MATCH_URL_MUX = /stream\\.mux\\.com\\/(?!\\w+\\.m3u8)(\\w+)/;\nconst MATCH_URL_FACEBOOK = /^https?:\\/\\/(www\\.)?facebook\\.com.*\\/(video(s)?|watch|story)(\\.php?|\\/).+$/;\nconst MATCH_URL_FACEBOOK_WATCH = /^https?:\\/\\/fb\\.watch\\/.+$/;\nconst MATCH_URL_STREAMABLE = /streamable\\.com\\/([a-z0-9]+)$/;\nconst MATCH_URL_WISTIA = /(?:wistia\\.(?:com|net)|wi\\.st)\\/(?:medias|embed)\\/(?:iframe\\/)?([^?]+)/;\nconst MATCH_URL_TWITCH_VIDEO = /(?:www\\.|go\\.)?twitch\\.tv\\/videos\\/(\\d+)($|\\?)/;\nconst MATCH_URL_TWITCH_CHANNEL = /(?:www\\.|go\\.)?twitch\\.tv\\/([a-zA-Z0-9_]+)($|\\?)/;\nconst MATCH_URL_DAILYMOTION = /^(?:(?:https?):)?(?:\\/\\/)?(?:www\\.)?(?:(?:dailymotion\\.com(?:\\/embed)?\\/video)|dai\\.ly)\\/([a-zA-Z0-9]+)(?:_[\\w_-]+)?(?:[\\w.#_-]+)?/;\nconst MATCH_URL_MIXCLOUD = /mixcloud\\.com\\/([^/]+\\/[^/]+)/;\nconst MATCH_URL_VIDYARD = /vidyard.com\\/(?:watch\\/)?([a-zA-Z0-9-_]+)/;\nconst MATCH_URL_KALTURA = /^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-_].*)$/;\nconst AUDIO_EXTENSIONS = /\\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\\?)/i;\nconst VIDEO_EXTENSIONS = /\\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\\d+]+)?($|\\?)/i;\nconst HLS_EXTENSIONS = /\\.(m3u8)($|\\?)/i;\nconst DASH_EXTENSIONS = /\\.(mpd)($|\\?)/i;\nconst FLV_EXTENSIONS = /\\.(flv)($|\\?)/i;\nconst canPlayFile = (url) => {\n if (url instanceof Array) {\n for (const item of url) {\n if (typeof item === \"string\" && canPlayFile(item)) {\n return true;\n }\n if (canPlayFile(item.src)) {\n return true;\n }\n }\n return false;\n }\n if ((0, import_utils.isMediaStream)(url) || (0, import_utils.isBlobUrl)(url)) {\n return true;\n }\n return AUDIO_EXTENSIONS.test(url) || VIDEO_EXTENSIONS.test(url) || HLS_EXTENSIONS.test(url) || DASH_EXTENSIONS.test(url) || FLV_EXTENSIONS.test(url);\n};\nconst canPlay = {\n youtube: (url) => {\n if (url instanceof Array) {\n return url.every((item) => MATCH_URL_YOUTUBE.test(item));\n }\n return MATCH_URL_YOUTUBE.test(url);\n },\n soundcloud: (url) => MATCH_URL_SOUNDCLOUD.test(url) && !AUDIO_EXTENSIONS.test(url),\n vimeo: (url) => MATCH_URL_VIMEO.test(url) && !VIDEO_EXTENSIONS.test(url) && !HLS_EXTENSIONS.test(url),\n mux: (url) => MATCH_URL_MUX.test(url),\n facebook: (url) => MATCH_URL_FACEBOOK.test(url) || MATCH_URL_FACEBOOK_WATCH.test(url),\n streamable: (url) => MATCH_URL_STREAMABLE.test(url),\n wistia: (url) => MATCH_URL_WISTIA.test(url),\n twitch: (url) => MATCH_URL_TWITCH_VIDEO.test(url) || MATCH_URL_TWITCH_CHANNEL.test(url),\n dailymotion: (url) => MATCH_URL_DAILYMOTION.test(url),\n mixcloud: (url) => MATCH_URL_MIXCLOUD.test(url),\n vidyard: (url) => MATCH_URL_VIDYARD.test(url),\n kaltura: (url) => MATCH_URL_KALTURA.test(url),\n file: canPlayFile\n};\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar DailyMotion_exports = {};\n__export(DailyMotion_exports, {\n default: () => DailyMotion\n});\nmodule.exports = __toCommonJS(DailyMotion_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_utils = require(\"../utils\");\nvar import_patterns = require(\"../patterns\");\nconst SDK_URL = \"https://api.dmcdn.net/all.js\";\nconst SDK_GLOBAL = \"DM\";\nconst SDK_GLOBAL_READY = \"dmAsyncInit\";\nclass DailyMotion extends import_react.Component {\n constructor() {\n super(...arguments);\n __publicField(this, \"callPlayer\", import_utils.callPlayer);\n __publicField(this, \"onDurationChange\", () => {\n const duration = this.getDuration();\n this.props.onDuration(duration);\n });\n __publicField(this, \"mute\", () => {\n this.callPlayer(\"setMuted\", true);\n });\n __publicField(this, \"unmute\", () => {\n this.callPlayer(\"setMuted\", false);\n });\n __publicField(this, \"ref\", (container) => {\n this.container = container;\n });\n }\n componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n }\n load(url) {\n const { controls, config, onError, playing } = this.props;\n const [, id] = url.match(import_patterns.MATCH_URL_DAILYMOTION);\n if (this.player) {\n this.player.load(id, {\n start: (0, import_utils.parseStartTime)(url),\n autoplay: playing\n });\n return;\n }\n (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY, (DM) => DM.player).then((DM) => {\n if (!this.container)\n return;\n const Player = DM.player;\n this.player = new Player(this.container, {\n width: \"100%\",\n height: \"100%\",\n video: id,\n params: {\n controls,\n autoplay: this.props.playing,\n mute: this.props.muted,\n start: (0, import_utils.parseStartTime)(url),\n origin: window.location.origin,\n ...config.params\n },\n events: {\n apiready: this.props.onReady,\n seeked: () => this.props.onSeek(this.player.currentTime),\n video_end: this.props.onEnded,\n durationchange: this.onDurationChange,\n pause: this.props.onPause,\n playing: this.props.onPlay,\n waiting: this.props.onBuffer,\n error: (event) => onError(event)\n }\n });\n }, onError);\n }\n play() {\n this.callPlayer(\"play\");\n }\n pause() {\n this.callPlayer(\"pause\");\n }\n stop() {\n }\n seekTo(seconds, keepPlaying = true) {\n this.callPlayer(\"seek\", seconds);\n if (!keepPlaying) {\n this.pause();\n }\n }\n setVolume(fraction) {\n this.callPlayer(\"setVolume\", fraction);\n }\n getDuration() {\n return this.player.duration || null;\n }\n getCurrentTime() {\n return this.player.currentTime;\n }\n getSecondsLoaded() {\n return this.player.bufferedTime;\n }\n render() {\n const { display } = this.props;\n const style = {\n width: \"100%\",\n height: \"100%\",\n display\n };\n return /* @__PURE__ */ import_react.default.createElement(\"div\", { style }, /* @__PURE__ */ import_react.default.createElement(\"div\", { ref: this.ref }));\n }\n}\n__publicField(DailyMotion, \"displayName\", \"DailyMotion\");\n__publicField(DailyMotion, \"canPlay\", import_patterns.canPlay.dailymotion);\n__publicField(DailyMotion, \"loopOnEnded\", true);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar Facebook_exports = {};\n__export(Facebook_exports, {\n default: () => Facebook\n});\nmodule.exports = __toCommonJS(Facebook_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_utils = require(\"../utils\");\nvar import_patterns = require(\"../patterns\");\nconst SDK_URL = \"https://connect.facebook.net/en_US/sdk.js\";\nconst SDK_GLOBAL = \"FB\";\nconst SDK_GLOBAL_READY = \"fbAsyncInit\";\nconst PLAYER_ID_PREFIX = \"facebook-player-\";\nclass Facebook extends import_react.Component {\n constructor() {\n super(...arguments);\n __publicField(this, \"callPlayer\", import_utils.callPlayer);\n __publicField(this, \"playerID\", this.props.config.playerId || `${PLAYER_ID_PREFIX}${(0, import_utils.randomString)()}`);\n __publicField(this, \"mute\", () => {\n this.callPlayer(\"mute\");\n });\n __publicField(this, \"unmute\", () => {\n this.callPlayer(\"unmute\");\n });\n }\n componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n }\n load(url, isReady) {\n if (isReady) {\n (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY).then((FB) => FB.XFBML.parse());\n return;\n }\n (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY).then((FB) => {\n FB.init({\n appId: this.props.config.appId,\n xfbml: true,\n version: this.props.config.version\n });\n FB.Event.subscribe(\"xfbml.render\", (msg) => {\n this.props.onLoaded();\n });\n FB.Event.subscribe(\"xfbml.ready\", (msg) => {\n if (msg.type === \"video\" && msg.id === this.playerID) {\n this.player = msg.instance;\n this.player.subscribe(\"startedPlaying\", this.props.onPlay);\n this.player.subscribe(\"paused\", this.props.onPause);\n this.player.subscribe(\"finishedPlaying\", this.props.onEnded);\n this.player.subscribe(\"startedBuffering\", this.props.onBuffer);\n this.player.subscribe(\"finishedBuffering\", this.props.onBufferEnd);\n this.player.subscribe(\"error\", this.props.onError);\n if (this.props.muted) {\n this.callPlayer(\"mute\");\n } else {\n this.callPlayer(\"unmute\");\n }\n this.props.onReady();\n document.getElementById(this.playerID).querySelector(\"iframe\").style.visibility = \"visible\";\n }\n });\n });\n }\n play() {\n this.callPlayer(\"play\");\n }\n pause() {\n this.callPlayer(\"pause\");\n }\n stop() {\n }\n seekTo(seconds, keepPlaying = true) {\n this.callPlayer(\"seek\", seconds);\n if (!keepPlaying) {\n this.pause();\n }\n }\n setVolume(fraction) {\n this.callPlayer(\"setVolume\", fraction);\n }\n getDuration() {\n return this.callPlayer(\"getDuration\");\n }\n getCurrentTime() {\n return this.callPlayer(\"getCurrentPosition\");\n }\n getSecondsLoaded() {\n return null;\n }\n render() {\n const { attributes } = this.props.config;\n const style = {\n width: \"100%\",\n height: \"100%\"\n };\n return /* @__PURE__ */ import_react.default.createElement(\n \"div\",\n {\n style,\n id: this.playerID,\n className: \"fb-video\",\n \"data-href\": this.props.url,\n \"data-autoplay\": this.props.playing ? \"true\" : \"false\",\n \"data-allowfullscreen\": \"true\",\n \"data-controls\": this.props.controls ? \"true\" : \"false\",\n ...attributes\n }\n );\n }\n}\n__publicField(Facebook, \"displayName\", \"Facebook\");\n__publicField(Facebook, \"canPlay\", import_patterns.canPlay.facebook);\n__publicField(Facebook, \"loopOnEnded\", true);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar FilePlayer_exports = {};\n__export(FilePlayer_exports, {\n default: () => FilePlayer\n});\nmodule.exports = __toCommonJS(FilePlayer_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_utils = require(\"../utils\");\nvar import_patterns = require(\"../patterns\");\nconst HAS_NAVIGATOR = typeof navigator !== \"undefined\";\nconst IS_IPAD_PRO = HAS_NAVIGATOR && navigator.platform === \"MacIntel\" && navigator.maxTouchPoints > 1;\nconst IS_IOS = HAS_NAVIGATOR && (/iPad|iPhone|iPod/.test(navigator.userAgent) || IS_IPAD_PRO) && !window.MSStream;\nconst IS_SAFARI = HAS_NAVIGATOR && /^((?!chrome|android).)*safari/i.test(navigator.userAgent) && !window.MSStream;\nconst HLS_SDK_URL = \"https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js\";\nconst HLS_GLOBAL = \"Hls\";\nconst DASH_SDK_URL = \"https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js\";\nconst DASH_GLOBAL = \"dashjs\";\nconst FLV_SDK_URL = \"https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js\";\nconst FLV_GLOBAL = \"flvjs\";\nconst MATCH_DROPBOX_URL = /www\\.dropbox\\.com\\/.+/;\nconst MATCH_CLOUDFLARE_STREAM = /https:\\/\\/watch\\.cloudflarestream\\.com\\/([a-z0-9]+)/;\nconst REPLACE_CLOUDFLARE_STREAM = \"https://videodelivery.net/{id}/manifest/video.m3u8\";\nclass FilePlayer extends import_react.Component {\n constructor() {\n super(...arguments);\n // Proxy methods to prevent listener leaks\n __publicField(this, \"onReady\", (...args) => this.props.onReady(...args));\n __publicField(this, \"onPlay\", (...args) => this.props.onPlay(...args));\n __publicField(this, \"onBuffer\", (...args) => this.props.onBuffer(...args));\n __publicField(this, \"onBufferEnd\", (...args) => this.props.onBufferEnd(...args));\n __publicField(this, \"onPause\", (...args) => this.props.onPause(...args));\n __publicField(this, \"onEnded\", (...args) => this.props.onEnded(...args));\n __publicField(this, \"onError\", (...args) => this.props.onError(...args));\n __publicField(this, \"onPlayBackRateChange\", (event) => this.props.onPlaybackRateChange(event.target.playbackRate));\n __publicField(this, \"onEnablePIP\", (...args) => this.props.onEnablePIP(...args));\n __publicField(this, \"onDisablePIP\", (e) => {\n const { onDisablePIP, playing } = this.props;\n onDisablePIP(e);\n if (playing) {\n this.play();\n }\n });\n __publicField(this, \"onPresentationModeChange\", (e) => {\n if (this.player && (0, import_utils.supportsWebKitPresentationMode)(this.player)) {\n const { webkitPresentationMode } = this.player;\n if (webkitPresentationMode === \"picture-in-picture\") {\n this.onEnablePIP(e);\n } else if (webkitPresentationMode === \"inline\") {\n this.onDisablePIP(e);\n }\n }\n });\n __publicField(this, \"onSeek\", (e) => {\n this.props.onSeek(e.target.currentTime);\n });\n __publicField(this, \"mute\", () => {\n this.player.muted = true;\n });\n __publicField(this, \"unmute\", () => {\n this.player.muted = false;\n });\n __publicField(this, \"renderSourceElement\", (source, index) => {\n if (typeof source === \"string\") {\n return /* @__PURE__ */ import_react.default.createElement(\"source\", { key: index, src: source });\n }\n return /* @__PURE__ */ import_react.default.createElement(\"source\", { key: index, ...source });\n });\n __publicField(this, \"renderTrack\", (track, index) => {\n return /* @__PURE__ */ import_react.default.createElement(\"track\", { key: index, ...track });\n });\n __publicField(this, \"ref\", (player) => {\n if (this.player) {\n this.prevPlayer = this.player;\n }\n this.player = player;\n });\n }\n componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n this.addListeners(this.player);\n const src = this.getSource(this.props.url);\n if (src) {\n this.player.src = src;\n }\n if (IS_IOS || this.props.config.forceDisableHls) {\n this.player.load();\n }\n }\n componentDidUpdate(prevProps) {\n if (this.shouldUseAudio(this.props) !== this.shouldUseAudio(prevProps)) {\n this.removeListeners(this.prevPlayer, prevProps.url);\n this.addListeners(this.player);\n }\n if (this.props.url !== prevProps.url && !(0, import_utils.isMediaStream)(this.props.url) && !(this.props.url instanceof Array)) {\n this.player.srcObject = null;\n }\n }\n componentWillUnmount() {\n this.player.removeAttribute(\"src\");\n this.removeListeners(this.player);\n if (this.hls) {\n this.hls.destroy();\n }\n }\n addListeners(player) {\n const { url, playsinline } = this.props;\n player.addEventListener(\"play\", this.onPlay);\n player.addEventListener(\"waiting\", this.onBuffer);\n player.addEventListener(\"playing\", this.onBufferEnd);\n player.addEventListener(\"pause\", this.onPause);\n player.addEventListener(\"seeked\", this.onSeek);\n player.addEventListener(\"ended\", this.onEnded);\n player.addEventListener(\"error\", this.onError);\n player.addEventListener(\"ratechange\", this.onPlayBackRateChange);\n player.addEventListener(\"enterpictureinpicture\", this.onEnablePIP);\n player.addEventListener(\"leavepictureinpicture\", this.onDisablePIP);\n player.addEventListener(\"webkitpresentationmodechanged\", this.onPresentationModeChange);\n if (!this.shouldUseHLS(url)) {\n player.addEventListener(\"canplay\", this.onReady);\n }\n if (playsinline) {\n player.setAttribute(\"playsinline\", \"\");\n player.setAttribute(\"webkit-playsinline\", \"\");\n player.setAttribute(\"x5-playsinline\", \"\");\n }\n }\n removeListeners(player, url) {\n player.removeEventListener(\"canplay\", this.onReady);\n player.removeEventListener(\"play\", this.onPlay);\n player.removeEventListener(\"waiting\", this.onBuffer);\n player.removeEventListener(\"playing\", this.onBufferEnd);\n player.removeEventListener(\"pause\", this.onPause);\n player.removeEventListener(\"seeked\", this.onSeek);\n player.removeEventListener(\"ended\", this.onEnded);\n player.removeEventListener(\"error\", this.onError);\n player.removeEventListener(\"ratechange\", this.onPlayBackRateChange);\n player.removeEventListener(\"enterpictureinpicture\", this.onEnablePIP);\n player.removeEventListener(\"leavepictureinpicture\", this.onDisablePIP);\n player.removeEventListener(\"webkitpresentationmodechanged\", this.onPresentationModeChange);\n if (!this.shouldUseHLS(url)) {\n player.removeEventListener(\"canplay\", this.onReady);\n }\n }\n shouldUseAudio(props) {\n if (props.config.forceVideo) {\n return false;\n }\n if (props.config.attributes.poster) {\n return false;\n }\n return import_patterns.AUDIO_EXTENSIONS.test(props.url) || props.config.forceAudio;\n }\n shouldUseHLS(url) {\n if (IS_SAFARI && this.props.config.forceSafariHLS || this.props.config.forceHLS) {\n return true;\n }\n if (IS_IOS || this.props.config.forceDisableHls) {\n return false;\n }\n return import_patterns.HLS_EXTENSIONS.test(url) || MATCH_CLOUDFLARE_STREAM.test(url);\n }\n shouldUseDASH(url) {\n return import_patterns.DASH_EXTENSIONS.test(url) || this.props.config.forceDASH;\n }\n shouldUseFLV(url) {\n return import_patterns.FLV_EXTENSIONS.test(url) || this.props.config.forceFLV;\n }\n load(url) {\n const { hlsVersion, hlsOptions, dashVersion, flvVersion } = this.props.config;\n if (this.hls) {\n this.hls.destroy();\n }\n if (this.dash) {\n this.dash.reset();\n }\n if (this.shouldUseHLS(url)) {\n (0, import_utils.getSDK)(HLS_SDK_URL.replace(\"VERSION\", hlsVersion), HLS_GLOBAL).then((Hls) => {\n this.hls = new Hls(hlsOptions);\n this.hls.on(Hls.Events.MANIFEST_PARSED, () => {\n this.props.onReady();\n });\n this.hls.on(Hls.Events.ERROR, (e, data) => {\n this.props.onError(e, data, this.hls, Hls);\n });\n if (MATCH_CLOUDFLARE_STREAM.test(url)) {\n const id = url.match(MATCH_CLOUDFLARE_STREAM)[1];\n this.hls.loadSource(REPLACE_CLOUDFLARE_STREAM.replace(\"{id}\", id));\n } else {\n this.hls.loadSource(url);\n }\n this.hls.attachMedia(this.player);\n this.props.onLoaded();\n });\n }\n if (this.shouldUseDASH(url)) {\n (0, import_utils.getSDK)(DASH_SDK_URL.replace(\"VERSION\", dashVersion), DASH_GLOBAL).then((dashjs) => {\n this.dash = dashjs.MediaPlayer().create();\n this.dash.initialize(this.player, url, this.props.playing);\n this.dash.on(\"error\", this.props.onError);\n if (parseInt(dashVersion) < 3) {\n this.dash.getDebug().setLogToBrowserConsole(false);\n } else {\n this.dash.updateSettings({ debug: { logLevel: dashjs.Debug.LOG_LEVEL_NONE } });\n }\n this.props.onLoaded();\n });\n }\n if (this.shouldUseFLV(url)) {\n (0, import_utils.getSDK)(FLV_SDK_URL.replace(\"VERSION\", flvVersion), FLV_GLOBAL).then((flvjs) => {\n this.flv = flvjs.createPlayer({ type: \"flv\", url });\n this.flv.attachMediaElement(this.player);\n this.flv.on(flvjs.Events.ERROR, (e, data) => {\n this.props.onError(e, data, this.flv, flvjs);\n });\n this.flv.load();\n this.props.onLoaded();\n });\n }\n if (url instanceof Array) {\n this.player.load();\n } else if ((0, import_utils.isMediaStream)(url)) {\n try {\n this.player.srcObject = url;\n } catch (e) {\n this.player.src = window.URL.createObjectURL(url);\n }\n }\n }\n play() {\n const promise = this.player.play();\n if (promise) {\n promise.catch(this.props.onError);\n }\n }\n pause() {\n this.player.pause();\n }\n stop() {\n this.player.removeAttribute(\"src\");\n if (this.dash) {\n this.dash.reset();\n }\n }\n seekTo(seconds, keepPlaying = true) {\n this.player.currentTime = seconds;\n if (!keepPlaying) {\n this.pause();\n }\n }\n setVolume(fraction) {\n this.player.volume = fraction;\n }\n enablePIP() {\n if (this.player.requestPictureInPicture && document.pictureInPictureElement !== this.player) {\n this.player.requestPictureInPicture();\n } else if ((0, import_utils.supportsWebKitPresentationMode)(this.player) && this.player.webkitPresentationMode !== \"picture-in-picture\") {\n this.player.webkitSetPresentationMode(\"picture-in-picture\");\n }\n }\n disablePIP() {\n if (document.exitPictureInPicture && document.pictureInPictureElement === this.player) {\n document.exitPictureInPicture();\n } else if ((0, import_utils.supportsWebKitPresentationMode)(this.player) && this.player.webkitPresentationMode !== \"inline\") {\n this.player.webkitSetPresentationMode(\"inline\");\n }\n }\n setPlaybackRate(rate) {\n try {\n this.player.playbackRate = rate;\n } catch (error) {\n this.props.onError(error);\n }\n }\n getDuration() {\n if (!this.player)\n return null;\n const { duration, seekable } = this.player;\n if (duration === Infinity && seekable.length > 0) {\n return seekable.end(seekable.length - 1);\n }\n return duration;\n }\n getCurrentTime() {\n if (!this.player)\n return null;\n return this.player.currentTime;\n }\n getSecondsLoaded() {\n if (!this.player)\n return null;\n const { buffered } = this.player;\n if (buffered.length === 0) {\n return 0;\n }\n const end = buffered.end(buffered.length - 1);\n const duration = this.getDuration();\n if (end > duration) {\n return duration;\n }\n return end;\n }\n getSource(url) {\n const useHLS = this.shouldUseHLS(url);\n const useDASH = this.shouldUseDASH(url);\n const useFLV = this.shouldUseFLV(url);\n if (url instanceof Array || (0, import_utils.isMediaStream)(url) || useHLS || useDASH || useFLV) {\n return void 0;\n }\n if (MATCH_DROPBOX_URL.test(url)) {\n return url.replace(\"www.dropbox.com\", \"dl.dropboxusercontent.com\");\n }\n return url;\n }\n render() {\n const { url, playing, loop, controls, muted, config, width, height } = this.props;\n const useAudio = this.shouldUseAudio(this.props);\n const Element = useAudio ? \"audio\" : \"video\";\n const style = {\n width: width === \"auto\" ? width : \"100%\",\n height: height === \"auto\" ? height : \"100%\"\n };\n return /* @__PURE__ */ import_react.default.createElement(\n Element,\n {\n ref: this.ref,\n src: this.getSource(url),\n style,\n preload: \"auto\",\n autoPlay: playing || void 0,\n controls,\n muted,\n loop,\n ...config.attributes\n },\n url instanceof Array && url.map(this.renderSourceElement),\n config.tracks.map(this.renderTrack)\n );\n }\n}\n__publicField(FilePlayer, \"displayName\", \"FilePlayer\");\n__publicField(FilePlayer, \"canPlay\", import_patterns.canPlay.file);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar Kaltura_exports = {};\n__export(Kaltura_exports, {\n default: () => Kaltura\n});\nmodule.exports = __toCommonJS(Kaltura_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_utils = require(\"../utils\");\nvar import_patterns = require(\"../patterns\");\nconst SDK_URL = \"https://cdn.embed.ly/player-0.1.0.min.js\";\nconst SDK_GLOBAL = \"playerjs\";\nclass Kaltura extends import_react.Component {\n constructor() {\n super(...arguments);\n __publicField(this, \"callPlayer\", import_utils.callPlayer);\n __publicField(this, \"duration\", null);\n __publicField(this, \"currentTime\", null);\n __publicField(this, \"secondsLoaded\", null);\n __publicField(this, \"mute\", () => {\n this.callPlayer(\"mute\");\n });\n __publicField(this, \"unmute\", () => {\n this.callPlayer(\"unmute\");\n });\n __publicField(this, \"ref\", (iframe) => {\n this.iframe = iframe;\n });\n }\n componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n }\n load(url) {\n (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((playerjs) => {\n if (!this.iframe)\n return;\n this.player = new playerjs.Player(this.iframe);\n this.player.on(\"ready\", () => {\n setTimeout(() => {\n this.player.isReady = true;\n this.player.setLoop(this.props.loop);\n if (this.props.muted) {\n this.player.mute();\n }\n this.addListeners(this.player, this.props);\n this.props.onReady();\n }, 500);\n });\n }, this.props.onError);\n }\n addListeners(player, props) {\n player.on(\"play\", props.onPlay);\n player.on(\"pause\", props.onPause);\n player.on(\"ended\", props.onEnded);\n player.on(\"error\", props.onError);\n player.on(\"timeupdate\", ({ duration, seconds }) => {\n this.duration = duration;\n this.currentTime = seconds;\n });\n }\n play() {\n this.callPlayer(\"play\");\n }\n pause() {\n this.callPlayer(\"pause\");\n }\n stop() {\n }\n seekTo(seconds, keepPlaying = true) {\n this.callPlayer(\"setCurrentTime\", seconds);\n if (!keepPlaying) {\n this.pause();\n }\n }\n setVolume(fraction) {\n this.callPlayer(\"setVolume\", fraction);\n }\n setLoop(loop) {\n this.callPlayer(\"setLoop\", loop);\n }\n getDuration() {\n return this.duration;\n }\n getCurrentTime() {\n return this.currentTime;\n }\n getSecondsLoaded() {\n return this.secondsLoaded;\n }\n render() {\n const style = {\n width: \"100%\",\n height: \"100%\"\n };\n return /* @__PURE__ */ import_react.default.createElement(\n \"iframe\",\n {\n ref: this.ref,\n src: this.props.url,\n frameBorder: \"0\",\n scrolling: \"no\",\n style,\n allow: \"encrypted-media; autoplay; fullscreen;\",\n referrerPolicy: \"no-referrer-when-downgrade\"\n }\n );\n }\n}\n__publicField(Kaltura, \"displayName\", \"Kaltura\");\n__publicField(Kaltura, \"canPlay\", import_patterns.canPlay.kaltura);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar Mixcloud_exports = {};\n__export(Mixcloud_exports, {\n default: () => Mixcloud\n});\nmodule.exports = __toCommonJS(Mixcloud_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_utils = require(\"../utils\");\nvar import_patterns = require(\"../patterns\");\nconst SDK_URL = \"https://widget.mixcloud.com/media/js/widgetApi.js\";\nconst SDK_GLOBAL = \"Mixcloud\";\nclass Mixcloud extends import_react.Component {\n constructor() {\n super(...arguments);\n __publicField(this, \"callPlayer\", import_utils.callPlayer);\n __publicField(this, \"duration\", null);\n __publicField(this, \"currentTime\", null);\n __publicField(this, \"secondsLoaded\", null);\n __publicField(this, \"mute\", () => {\n });\n __publicField(this, \"unmute\", () => {\n });\n __publicField(this, \"ref\", (iframe) => {\n this.iframe = iframe;\n });\n }\n componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n }\n load(url) {\n (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((Mixcloud2) => {\n this.player = Mixcloud2.PlayerWidget(this.iframe);\n this.player.ready.then(() => {\n this.player.events.play.on(this.props.onPlay);\n this.player.events.pause.on(this.props.onPause);\n this.player.events.ended.on(this.props.onEnded);\n this.player.events.error.on(this.props.error);\n this.player.events.progress.on((seconds, duration) => {\n this.currentTime = seconds;\n this.duration = duration;\n });\n this.props.onReady();\n });\n }, this.props.onError);\n }\n play() {\n this.callPlayer(\"play\");\n }\n pause() {\n this.callPlayer(\"pause\");\n }\n stop() {\n }\n seekTo(seconds, keepPlaying = true) {\n this.callPlayer(\"seek\", seconds);\n if (!keepPlaying) {\n this.pause();\n }\n }\n setVolume(fraction) {\n }\n getDuration() {\n return this.duration;\n }\n getCurrentTime() {\n return this.currentTime;\n }\n getSecondsLoaded() {\n return null;\n }\n render() {\n const { url, config } = this.props;\n const id = url.match(import_patterns.MATCH_URL_MIXCLOUD)[1];\n const style = {\n width: \"100%\",\n height: \"100%\"\n };\n const query = (0, import_utils.queryString)({\n ...config.options,\n feed: `/${id}/`\n });\n return /* @__PURE__ */ import_react.default.createElement(\n \"iframe\",\n {\n key: id,\n ref: this.ref,\n style,\n src: `https://www.mixcloud.com/widget/iframe/?${query}`,\n frameBorder: \"0\",\n allow: \"autoplay\"\n }\n );\n }\n}\n__publicField(Mixcloud, \"displayName\", \"Mixcloud\");\n__publicField(Mixcloud, \"canPlay\", import_patterns.canPlay.mixcloud);\n__publicField(Mixcloud, \"loopOnEnded\", true);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar Mux_exports = {};\n__export(Mux_exports, {\n default: () => Mux\n});\nmodule.exports = __toCommonJS(Mux_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_patterns = require(\"../patterns\");\nconst SDK_URL = \"https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs\";\nclass Mux extends import_react.Component {\n constructor() {\n super(...arguments);\n // Proxy methods to prevent listener leaks\n __publicField(this, \"onReady\", (...args) => this.props.onReady(...args));\n __publicField(this, \"onPlay\", (...args) => this.props.onPlay(...args));\n __publicField(this, \"onBuffer\", (...args) => this.props.onBuffer(...args));\n __publicField(this, \"onBufferEnd\", (...args) => this.props.onBufferEnd(...args));\n __publicField(this, \"onPause\", (...args) => this.props.onPause(...args));\n __publicField(this, \"onEnded\", (...args) => this.props.onEnded(...args));\n __publicField(this, \"onError\", (...args) => this.props.onError(...args));\n __publicField(this, \"onPlayBackRateChange\", (event) => this.props.onPlaybackRateChange(event.target.playbackRate));\n __publicField(this, \"onEnablePIP\", (...args) => this.props.onEnablePIP(...args));\n __publicField(this, \"onSeek\", (e) => {\n this.props.onSeek(e.target.currentTime);\n });\n __publicField(this, \"onDurationChange\", () => {\n const duration = this.getDuration();\n this.props.onDuration(duration);\n });\n __publicField(this, \"mute\", () => {\n this.player.muted = true;\n });\n __publicField(this, \"unmute\", () => {\n this.player.muted = false;\n });\n __publicField(this, \"ref\", (player) => {\n this.player = player;\n });\n }\n componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n this.addListeners(this.player);\n const playbackId = this.getPlaybackId(this.props.url);\n if (playbackId) {\n this.player.playbackId = playbackId;\n }\n }\n componentWillUnmount() {\n this.player.playbackId = null;\n this.removeListeners(this.player);\n }\n addListeners(player) {\n const { playsinline } = this.props;\n player.addEventListener(\"play\", this.onPlay);\n player.addEventListener(\"waiting\", this.onBuffer);\n player.addEventListener(\"playing\", this.onBufferEnd);\n player.addEventListener(\"pause\", this.onPause);\n player.addEventListener(\"seeked\", this.onSeek);\n player.addEventListener(\"ended\", this.onEnded);\n player.addEventListener(\"error\", this.onError);\n player.addEventListener(\"ratechange\", this.onPlayBackRateChange);\n player.addEventListener(\"enterpictureinpicture\", this.onEnablePIP);\n player.addEventListener(\"leavepictureinpicture\", this.onDisablePIP);\n player.addEventListener(\"webkitpresentationmodechanged\", this.onPresentationModeChange);\n player.addEventListener(\"canplay\", this.onReady);\n if (playsinline) {\n player.setAttribute(\"playsinline\", \"\");\n }\n }\n removeListeners(player) {\n player.removeEventListener(\"canplay\", this.onReady);\n player.removeEventListener(\"play\", this.onPlay);\n player.removeEventListener(\"waiting\", this.onBuffer);\n player.removeEventListener(\"playing\", this.onBufferEnd);\n player.removeEventListener(\"pause\", this.onPause);\n player.removeEventListener(\"seeked\", this.onSeek);\n player.removeEventListener(\"ended\", this.onEnded);\n player.removeEventListener(\"error\", this.onError);\n player.removeEventListener(\"ratechange\", this.onPlayBackRateChange);\n player.removeEventListener(\"enterpictureinpicture\", this.onEnablePIP);\n player.removeEventListener(\"leavepictureinpicture\", this.onDisablePIP);\n player.removeEventListener(\"canplay\", this.onReady);\n }\n async load(url) {\n var _a;\n const { onError, config } = this.props;\n if (!((_a = globalThis.customElements) == null ? void 0 : _a.get(\"mux-player\"))) {\n try {\n const sdkUrl = SDK_URL.replace(\"VERSION\", config.version);\n await import(\n /* webpackIgnore: true */\n `${sdkUrl}`\n );\n this.props.onLoaded();\n } catch (error) {\n onError(error);\n }\n }\n const [, id] = url.match(import_patterns.MATCH_URL_MUX);\n this.player.playbackId = id;\n }\n play() {\n const promise = this.player.play();\n if (promise) {\n promise.catch(this.props.onError);\n }\n }\n pause() {\n this.player.pause();\n }\n stop() {\n this.player.playbackId = null;\n }\n seekTo(seconds, keepPlaying = true) {\n this.player.currentTime = seconds;\n if (!keepPlaying) {\n this.pause();\n }\n }\n setVolume(fraction) {\n this.player.volume = fraction;\n }\n enablePIP() {\n if (this.player.requestPictureInPicture && document.pictureInPictureElement !== this.player) {\n this.player.requestPictureInPicture();\n }\n }\n disablePIP() {\n if (document.exitPictureInPicture && document.pictureInPictureElement === this.player) {\n document.exitPictureInPicture();\n }\n }\n setPlaybackRate(rate) {\n try {\n this.player.playbackRate = rate;\n } catch (error) {\n this.props.onError(error);\n }\n }\n getDuration() {\n if (!this.player)\n return null;\n const { duration, seekable } = this.player;\n if (duration === Infinity && seekable.length > 0) {\n return seekable.end(seekable.length - 1);\n }\n return duration;\n }\n getCurrentTime() {\n if (!this.player)\n return null;\n return this.player.currentTime;\n }\n getSecondsLoaded() {\n if (!this.player)\n return null;\n const { buffered } = this.player;\n if (buffered.length === 0) {\n return 0;\n }\n const end = buffered.end(buffered.length - 1);\n const duration = this.getDuration();\n if (end > duration) {\n return duration;\n }\n return end;\n }\n getPlaybackId(url) {\n const [, id] = url.match(import_patterns.MATCH_URL_MUX);\n return id;\n }\n render() {\n const { url, playing, loop, controls, muted, config, width, height } = this.props;\n const style = {\n width: width === \"auto\" ? width : \"100%\",\n height: height === \"auto\" ? height : \"100%\"\n };\n if (controls === false) {\n style[\"--controls\"] = \"none\";\n }\n return /* @__PURE__ */ import_react.default.createElement(\n \"mux-player\",\n {\n ref: this.ref,\n \"playback-id\": this.getPlaybackId(url),\n style,\n preload: \"auto\",\n autoPlay: playing || void 0,\n muted: muted ? \"\" : void 0,\n loop: loop ? \"\" : void 0,\n ...config.attributes\n }\n );\n }\n}\n__publicField(Mux, \"displayName\", \"Mux\");\n__publicField(Mux, \"canPlay\", import_patterns.canPlay.mux);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar SoundCloud_exports = {};\n__export(SoundCloud_exports, {\n default: () => SoundCloud\n});\nmodule.exports = __toCommonJS(SoundCloud_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_utils = require(\"../utils\");\nvar import_patterns = require(\"../patterns\");\nconst SDK_URL = \"https://w.soundcloud.com/player/api.js\";\nconst SDK_GLOBAL = \"SC\";\nclass SoundCloud extends import_react.Component {\n constructor() {\n super(...arguments);\n __publicField(this, \"callPlayer\", import_utils.callPlayer);\n __publicField(this, \"duration\", null);\n __publicField(this, \"currentTime\", null);\n __publicField(this, \"fractionLoaded\", null);\n __publicField(this, \"mute\", () => {\n this.setVolume(0);\n });\n __publicField(this, \"unmute\", () => {\n if (this.props.volume !== null) {\n this.setVolume(this.props.volume);\n }\n });\n __publicField(this, \"ref\", (iframe) => {\n this.iframe = iframe;\n });\n }\n componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n }\n load(url, isReady) {\n (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((SC) => {\n if (!this.iframe)\n return;\n const { PLAY, PLAY_PROGRESS, PAUSE, FINISH, ERROR } = SC.Widget.Events;\n if (!isReady) {\n this.player = SC.Widget(this.iframe);\n this.player.bind(PLAY, this.props.onPlay);\n this.player.bind(PAUSE, () => {\n const remaining = this.duration - this.currentTime;\n if (remaining < 0.05) {\n return;\n }\n this.props.onPause();\n });\n this.player.bind(PLAY_PROGRESS, (e) => {\n this.currentTime = e.currentPosition / 1e3;\n this.fractionLoaded = e.loadedProgress;\n });\n this.player.bind(FINISH, () => this.props.onEnded());\n this.player.bind(ERROR, (e) => this.props.onError(e));\n }\n this.player.load(url, {\n ...this.props.config.options,\n callback: () => {\n this.player.getDuration((duration) => {\n this.duration = duration / 1e3;\n this.props.onReady();\n });\n }\n });\n });\n }\n play() {\n this.callPlayer(\"play\");\n }\n pause() {\n this.callPlayer(\"pause\");\n }\n stop() {\n }\n seekTo(seconds, keepPlaying = true) {\n this.callPlayer(\"seekTo\", seconds * 1e3);\n if (!keepPlaying) {\n this.pause();\n }\n }\n setVolume(fraction) {\n this.callPlayer(\"setVolume\", fraction * 100);\n }\n getDuration() {\n return this.duration;\n }\n getCurrentTime() {\n return this.currentTime;\n }\n getSecondsLoaded() {\n return this.fractionLoaded * this.duration;\n }\n render() {\n const { display } = this.props;\n const style = {\n width: \"100%\",\n height: \"100%\",\n display\n };\n return /* @__PURE__ */ import_react.default.createElement(\n \"iframe\",\n {\n ref: this.ref,\n src: `https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,\n style,\n frameBorder: 0,\n allow: \"autoplay\"\n }\n );\n }\n}\n__publicField(SoundCloud, \"displayName\", \"SoundCloud\");\n__publicField(SoundCloud, \"canPlay\", import_patterns.canPlay.soundcloud);\n__publicField(SoundCloud, \"loopOnEnded\", true);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar Streamable_exports = {};\n__export(Streamable_exports, {\n default: () => Streamable\n});\nmodule.exports = __toCommonJS(Streamable_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_utils = require(\"../utils\");\nvar import_patterns = require(\"../patterns\");\nconst SDK_URL = \"https://cdn.embed.ly/player-0.1.0.min.js\";\nconst SDK_GLOBAL = \"playerjs\";\nclass Streamable extends import_react.Component {\n constructor() {\n super(...arguments);\n __publicField(this, \"callPlayer\", import_utils.callPlayer);\n __publicField(this, \"duration\", null);\n __publicField(this, \"currentTime\", null);\n __publicField(this, \"secondsLoaded\", null);\n __publicField(this, \"mute\", () => {\n this.callPlayer(\"mute\");\n });\n __publicField(this, \"unmute\", () => {\n this.callPlayer(\"unmute\");\n });\n __publicField(this, \"ref\", (iframe) => {\n this.iframe = iframe;\n });\n }\n componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n }\n load(url) {\n (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((playerjs) => {\n if (!this.iframe)\n return;\n this.player = new playerjs.Player(this.iframe);\n this.player.setLoop(this.props.loop);\n this.player.on(\"ready\", this.props.onReady);\n this.player.on(\"play\", this.props.onPlay);\n this.player.on(\"pause\", this.props.onPause);\n this.player.on(\"seeked\", this.props.onSeek);\n this.player.on(\"ended\", this.props.onEnded);\n this.player.on(\"error\", this.props.onError);\n this.player.on(\"timeupdate\", ({ duration, seconds }) => {\n this.duration = duration;\n this.currentTime = seconds;\n });\n this.player.on(\"buffered\", ({ percent }) => {\n if (this.duration) {\n this.secondsLoaded = this.duration * percent;\n }\n });\n if (this.props.muted) {\n this.player.mute();\n }\n }, this.props.onError);\n }\n play() {\n this.callPlayer(\"play\");\n }\n pause() {\n this.callPlayer(\"pause\");\n }\n stop() {\n }\n seekTo(seconds, keepPlaying = true) {\n this.callPlayer(\"setCurrentTime\", seconds);\n if (!keepPlaying) {\n this.pause();\n }\n }\n setVolume(fraction) {\n this.callPlayer(\"setVolume\", fraction * 100);\n }\n setLoop(loop) {\n this.callPlayer(\"setLoop\", loop);\n }\n getDuration() {\n return this.duration;\n }\n getCurrentTime() {\n return this.currentTime;\n }\n getSecondsLoaded() {\n return this.secondsLoaded;\n }\n render() {\n const id = this.props.url.match(import_patterns.MATCH_URL_STREAMABLE)[1];\n const style = {\n width: \"100%\",\n height: \"100%\"\n };\n return /* @__PURE__ */ import_react.default.createElement(\n \"iframe\",\n {\n ref: this.ref,\n src: `https://streamable.com/o/${id}`,\n frameBorder: \"0\",\n scrolling: \"no\",\n style,\n allow: \"encrypted-media; autoplay; fullscreen;\"\n }\n );\n }\n}\n__publicField(Streamable, \"displayName\", \"Streamable\");\n__publicField(Streamable, \"canPlay\", import_patterns.canPlay.streamable);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar Twitch_exports = {};\n__export(Twitch_exports, {\n default: () => Twitch\n});\nmodule.exports = __toCommonJS(Twitch_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_utils = require(\"../utils\");\nvar import_patterns = require(\"../patterns\");\nconst SDK_URL = \"https://player.twitch.tv/js/embed/v1.js\";\nconst SDK_GLOBAL = \"Twitch\";\nconst PLAYER_ID_PREFIX = \"twitch-player-\";\nclass Twitch extends import_react.Component {\n constructor() {\n super(...arguments);\n __publicField(this, \"callPlayer\", import_utils.callPlayer);\n __publicField(this, \"playerID\", this.props.config.playerId || `${PLAYER_ID_PREFIX}${(0, import_utils.randomString)()}`);\n __publicField(this, \"mute\", () => {\n this.callPlayer(\"setMuted\", true);\n });\n __publicField(this, \"unmute\", () => {\n this.callPlayer(\"setMuted\", false);\n });\n }\n componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n }\n load(url, isReady) {\n const { playsinline, onError, config, controls } = this.props;\n const isChannel = import_patterns.MATCH_URL_TWITCH_CHANNEL.test(url);\n const id = isChannel ? url.match(import_patterns.MATCH_URL_TWITCH_CHANNEL)[1] : url.match(import_patterns.MATCH_URL_TWITCH_VIDEO)[1];\n if (isReady) {\n if (isChannel) {\n this.player.setChannel(id);\n } else {\n this.player.setVideo(\"v\" + id);\n }\n return;\n }\n (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((Twitch2) => {\n this.player = new Twitch2.Player(this.playerID, {\n video: isChannel ? \"\" : id,\n channel: isChannel ? id : \"\",\n height: \"100%\",\n width: \"100%\",\n playsinline,\n autoplay: this.props.playing,\n muted: this.props.muted,\n // https://github.com/CookPete/react-player/issues/733#issuecomment-549085859\n controls: isChannel ? true : controls,\n time: (0, import_utils.parseStartTime)(url),\n ...config.options\n });\n const { READY, PLAYING, PAUSE, ENDED, ONLINE, OFFLINE, SEEK } = Twitch2.Player;\n this.player.addEventListener(READY, this.props.onReady);\n this.player.addEventListener(PLAYING, this.props.onPlay);\n this.player.addEventListener(PAUSE, this.props.onPause);\n this.player.addEventListener(ENDED, this.props.onEnded);\n this.player.addEventListener(SEEK, this.props.onSeek);\n this.player.addEventListener(ONLINE, this.props.onLoaded);\n this.player.addEventListener(OFFLINE, this.props.onLoaded);\n }, onError);\n }\n play() {\n this.callPlayer(\"play\");\n }\n pause() {\n this.callPlayer(\"pause\");\n }\n stop() {\n this.callPlayer(\"pause\");\n }\n seekTo(seconds, keepPlaying = true) {\n this.callPlayer(\"seek\", seconds);\n if (!keepPlaying) {\n this.pause();\n }\n }\n setVolume(fraction) {\n this.callPlayer(\"setVolume\", fraction);\n }\n getDuration() {\n return this.callPlayer(\"getDuration\");\n }\n getCurrentTime() {\n return this.callPlayer(\"getCurrentTime\");\n }\n getSecondsLoaded() {\n return null;\n }\n render() {\n const style = {\n width: \"100%\",\n height: \"100%\"\n };\n return /* @__PURE__ */ import_react.default.createElement(\"div\", { style, id: this.playerID });\n }\n}\n__publicField(Twitch, \"displayName\", \"Twitch\");\n__publicField(Twitch, \"canPlay\", import_patterns.canPlay.twitch);\n__publicField(Twitch, \"loopOnEnded\", true);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar Vidyard_exports = {};\n__export(Vidyard_exports, {\n default: () => Vidyard\n});\nmodule.exports = __toCommonJS(Vidyard_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_utils = require(\"../utils\");\nvar import_patterns = require(\"../patterns\");\nconst SDK_URL = \"https://play.vidyard.com/embed/v4.js\";\nconst SDK_GLOBAL = \"VidyardV4\";\nconst SDK_GLOBAL_READY = \"onVidyardAPI\";\nclass Vidyard extends import_react.Component {\n constructor() {\n super(...arguments);\n __publicField(this, \"callPlayer\", import_utils.callPlayer);\n __publicField(this, \"mute\", () => {\n this.setVolume(0);\n });\n __publicField(this, \"unmute\", () => {\n if (this.props.volume !== null) {\n this.setVolume(this.props.volume);\n }\n });\n __publicField(this, \"ref\", (container) => {\n this.container = container;\n });\n }\n componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n }\n load(url) {\n const { playing, config, onError, onDuration } = this.props;\n const id = url && url.match(import_patterns.MATCH_URL_VIDYARD)[1];\n if (this.player) {\n this.stop();\n }\n (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY).then((Vidyard2) => {\n if (!this.container)\n return;\n Vidyard2.api.addReadyListener((data, player) => {\n if (this.player) {\n return;\n }\n this.player = player;\n this.player.on(\"ready\", this.props.onReady);\n this.player.on(\"play\", this.props.onPlay);\n this.player.on(\"pause\", this.props.onPause);\n this.player.on(\"seek\", this.props.onSeek);\n this.player.on(\"playerComplete\", this.props.onEnded);\n }, id);\n Vidyard2.api.renderPlayer({\n uuid: id,\n container: this.container,\n autoplay: playing ? 1 : 0,\n ...config.options\n });\n Vidyard2.api.getPlayerMetadata(id).then((meta) => {\n this.duration = meta.length_in_seconds;\n onDuration(meta.length_in_seconds);\n });\n }, onError);\n }\n play() {\n this.callPlayer(\"play\");\n }\n pause() {\n this.callPlayer(\"pause\");\n }\n stop() {\n window.VidyardV4.api.destroyPlayer(this.player);\n }\n seekTo(amount, keepPlaying = true) {\n this.callPlayer(\"seek\", amount);\n if (!keepPlaying) {\n this.pause();\n }\n }\n setVolume(fraction) {\n this.callPlayer(\"setVolume\", fraction);\n }\n setPlaybackRate(rate) {\n this.callPlayer(\"setPlaybackSpeed\", rate);\n }\n getDuration() {\n return this.duration;\n }\n getCurrentTime() {\n return this.callPlayer(\"currentTime\");\n }\n getSecondsLoaded() {\n return null;\n }\n render() {\n const { display } = this.props;\n const style = {\n width: \"100%\",\n height: \"100%\",\n display\n };\n return /* @__PURE__ */ import_react.default.createElement(\"div\", { style }, /* @__PURE__ */ import_react.default.createElement(\"div\", { ref: this.ref }));\n }\n}\n__publicField(Vidyard, \"displayName\", \"Vidyard\");\n__publicField(Vidyard, \"canPlay\", import_patterns.canPlay.vidyard);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar Vimeo_exports = {};\n__export(Vimeo_exports, {\n default: () => Vimeo\n});\nmodule.exports = __toCommonJS(Vimeo_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_utils = require(\"../utils\");\nvar import_patterns = require(\"../patterns\");\nconst SDK_URL = \"https://player.vimeo.com/api/player.js\";\nconst SDK_GLOBAL = \"Vimeo\";\nconst cleanUrl = (url) => {\n return url.replace(\"/manage/videos\", \"\");\n};\nclass Vimeo extends import_react.Component {\n constructor() {\n super(...arguments);\n // Prevent checking isLoading when URL changes\n __publicField(this, \"callPlayer\", import_utils.callPlayer);\n __publicField(this, \"duration\", null);\n __publicField(this, \"currentTime\", null);\n __publicField(this, \"secondsLoaded\", null);\n __publicField(this, \"mute\", () => {\n this.setMuted(true);\n });\n __publicField(this, \"unmute\", () => {\n this.setMuted(false);\n });\n __publicField(this, \"ref\", (container) => {\n this.container = container;\n });\n }\n componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n }\n load(url) {\n this.duration = null;\n (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((Vimeo2) => {\n if (!this.container)\n return;\n const { playerOptions, title } = this.props.config;\n this.player = new Vimeo2.Player(this.container, {\n url: cleanUrl(url),\n autoplay: this.props.playing,\n muted: this.props.muted,\n loop: this.props.loop,\n playsinline: this.props.playsinline,\n controls: this.props.controls,\n ...playerOptions\n });\n this.player.ready().then(() => {\n const iframe = this.container.querySelector(\"iframe\");\n iframe.style.width = \"100%\";\n iframe.style.height = \"100%\";\n if (title) {\n iframe.title = title;\n }\n }).catch(this.props.onError);\n this.player.on(\"loaded\", () => {\n this.props.onReady();\n this.refreshDuration();\n });\n this.player.on(\"play\", () => {\n this.props.onPlay();\n this.refreshDuration();\n });\n this.player.on(\"pause\", this.props.onPause);\n this.player.on(\"seeked\", (e) => this.props.onSeek(e.seconds));\n this.player.on(\"ended\", this.props.onEnded);\n this.player.on(\"error\", this.props.onError);\n this.player.on(\"timeupdate\", ({ seconds }) => {\n this.currentTime = seconds;\n });\n this.player.on(\"progress\", ({ seconds }) => {\n this.secondsLoaded = seconds;\n });\n this.player.on(\"bufferstart\", this.props.onBuffer);\n this.player.on(\"bufferend\", this.props.onBufferEnd);\n this.player.on(\"playbackratechange\", (e) => this.props.onPlaybackRateChange(e.playbackRate));\n }, this.props.onError);\n }\n refreshDuration() {\n this.player.getDuration().then((duration) => {\n this.duration = duration;\n });\n }\n play() {\n const promise = this.callPlayer(\"play\");\n if (promise) {\n promise.catch(this.props.onError);\n }\n }\n pause() {\n this.callPlayer(\"pause\");\n }\n stop() {\n this.callPlayer(\"unload\");\n }\n seekTo(seconds, keepPlaying = true) {\n this.callPlayer(\"setCurrentTime\", seconds);\n if (!keepPlaying) {\n this.pause();\n }\n }\n setVolume(fraction) {\n this.callPlayer(\"setVolume\", fraction);\n }\n setMuted(muted) {\n this.callPlayer(\"setMuted\", muted);\n }\n setLoop(loop) {\n this.callPlayer(\"setLoop\", loop);\n }\n setPlaybackRate(rate) {\n this.callPlayer(\"setPlaybackRate\", rate);\n }\n getDuration() {\n return this.duration;\n }\n getCurrentTime() {\n return this.currentTime;\n }\n getSecondsLoaded() {\n return this.secondsLoaded;\n }\n render() {\n const { display } = this.props;\n const style = {\n width: \"100%\",\n height: \"100%\",\n overflow: \"hidden\",\n display\n };\n return /* @__PURE__ */ import_react.default.createElement(\n \"div\",\n {\n key: this.props.url,\n ref: this.ref,\n style\n }\n );\n }\n}\n__publicField(Vimeo, \"displayName\", \"Vimeo\");\n__publicField(Vimeo, \"canPlay\", import_patterns.canPlay.vimeo);\n__publicField(Vimeo, \"forceLoad\", true);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar Wistia_exports = {};\n__export(Wistia_exports, {\n default: () => Wistia\n});\nmodule.exports = __toCommonJS(Wistia_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_utils = require(\"../utils\");\nvar import_patterns = require(\"../patterns\");\nconst SDK_URL = \"https://fast.wistia.com/assets/external/E-v1.js\";\nconst SDK_GLOBAL = \"Wistia\";\nconst PLAYER_ID_PREFIX = \"wistia-player-\";\nclass Wistia extends import_react.Component {\n constructor() {\n super(...arguments);\n __publicField(this, \"callPlayer\", import_utils.callPlayer);\n __publicField(this, \"playerID\", this.props.config.playerId || `${PLAYER_ID_PREFIX}${(0, import_utils.randomString)()}`);\n // Proxy methods to prevent listener leaks\n __publicField(this, \"onPlay\", (...args) => this.props.onPlay(...args));\n __publicField(this, \"onPause\", (...args) => this.props.onPause(...args));\n __publicField(this, \"onSeek\", (...args) => this.props.onSeek(...args));\n __publicField(this, \"onEnded\", (...args) => this.props.onEnded(...args));\n __publicField(this, \"onPlaybackRateChange\", (...args) => this.props.onPlaybackRateChange(...args));\n __publicField(this, \"mute\", () => {\n this.callPlayer(\"mute\");\n });\n __publicField(this, \"unmute\", () => {\n this.callPlayer(\"unmute\");\n });\n }\n componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n }\n load(url) {\n const { playing, muted, controls, onReady, config, onError } = this.props;\n (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((Wistia2) => {\n if (config.customControls) {\n config.customControls.forEach((control) => Wistia2.defineControl(control));\n }\n window._wq = window._wq || [];\n window._wq.push({\n id: this.playerID,\n options: {\n autoPlay: playing,\n silentAutoPlay: \"allow\",\n muted,\n controlsVisibleOnLoad: controls,\n fullscreenButton: controls,\n playbar: controls,\n playbackRateControl: controls,\n qualityControl: controls,\n volumeControl: controls,\n settingsControl: controls,\n smallPlayButton: controls,\n ...config.options\n },\n onReady: (player) => {\n this.player = player;\n this.unbind();\n this.player.bind(\"play\", this.onPlay);\n this.player.bind(\"pause\", this.onPause);\n this.player.bind(\"seek\", this.onSeek);\n this.player.bind(\"end\", this.onEnded);\n this.player.bind(\"playbackratechange\", this.onPlaybackRateChange);\n onReady();\n }\n });\n }, onError);\n }\n unbind() {\n this.player.unbind(\"play\", this.onPlay);\n this.player.unbind(\"pause\", this.onPause);\n this.player.unbind(\"seek\", this.onSeek);\n this.player.unbind(\"end\", this.onEnded);\n this.player.unbind(\"playbackratechange\", this.onPlaybackRateChange);\n }\n play() {\n this.callPlayer(\"play\");\n }\n pause() {\n this.callPlayer(\"pause\");\n }\n stop() {\n this.unbind();\n this.callPlayer(\"remove\");\n }\n seekTo(seconds, keepPlaying = true) {\n this.callPlayer(\"time\", seconds);\n if (!keepPlaying) {\n this.pause();\n }\n }\n setVolume(fraction) {\n this.callPlayer(\"volume\", fraction);\n }\n setPlaybackRate(rate) {\n this.callPlayer(\"playbackRate\", rate);\n }\n getDuration() {\n return this.callPlayer(\"duration\");\n }\n getCurrentTime() {\n return this.callPlayer(\"time\");\n }\n getSecondsLoaded() {\n return null;\n }\n render() {\n const { url } = this.props;\n const videoID = url && url.match(import_patterns.MATCH_URL_WISTIA)[1];\n const className = `wistia_embed wistia_async_${videoID}`;\n const style = {\n width: \"100%\",\n height: \"100%\"\n };\n return /* @__PURE__ */ import_react.default.createElement(\"div\", { id: this.playerID, key: videoID, className, style });\n }\n}\n__publicField(Wistia, \"displayName\", \"Wistia\");\n__publicField(Wistia, \"canPlay\", import_patterns.canPlay.wistia);\n__publicField(Wistia, \"loopOnEnded\", true);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __publicField = (obj, key, value) => {\n __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n return value;\n};\nvar YouTube_exports = {};\n__export(YouTube_exports, {\n default: () => YouTube\n});\nmodule.exports = __toCommonJS(YouTube_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_utils = require(\"../utils\");\nvar import_patterns = require(\"../patterns\");\nconst SDK_URL = \"https://www.youtube.com/iframe_api\";\nconst SDK_GLOBAL = \"YT\";\nconst SDK_GLOBAL_READY = \"onYouTubeIframeAPIReady\";\nconst MATCH_PLAYLIST = /[?&](?:list|channel)=([a-zA-Z0-9_-]+)/;\nconst MATCH_USER_UPLOADS = /user\\/([a-zA-Z0-9_-]+)\\/?/;\nconst MATCH_NOCOOKIE = /youtube-nocookie\\.com/;\nconst NOCOOKIE_HOST = \"https://www.youtube-nocookie.com\";\nclass YouTube extends import_react.Component {\n constructor() {\n super(...arguments);\n __publicField(this, \"callPlayer\", import_utils.callPlayer);\n __publicField(this, \"parsePlaylist\", (url) => {\n if (url instanceof Array) {\n return {\n listType: \"playlist\",\n playlist: url.map(this.getID).join(\",\")\n };\n }\n if (MATCH_PLAYLIST.test(url)) {\n const [, playlistId] = url.match(MATCH_PLAYLIST);\n return {\n listType: \"playlist\",\n list: playlistId.replace(/^UC/, \"UU\")\n };\n }\n if (MATCH_USER_UPLOADS.test(url)) {\n const [, username] = url.match(MATCH_USER_UPLOADS);\n return {\n listType: \"user_uploads\",\n list: username\n };\n }\n return {};\n });\n __publicField(this, \"onStateChange\", (event) => {\n const { data } = event;\n const { onPlay, onPause, onBuffer, onBufferEnd, onEnded, onReady, loop, config: { playerVars, onUnstarted } } = this.props;\n const { UNSTARTED, PLAYING, PAUSED, BUFFERING, ENDED, CUED } = window[SDK_GLOBAL].PlayerState;\n if (data === UNSTARTED)\n onUnstarted();\n if (data === PLAYING) {\n onPlay();\n onBufferEnd();\n }\n if (data === PAUSED)\n onPause();\n if (data === BUFFERING)\n onBuffer();\n if (data === ENDED) {\n const isPlaylist = !!this.callPlayer(\"getPlaylist\");\n if (loop && !isPlaylist) {\n if (playerVars.start) {\n this.seekTo(playerVars.start);\n } else {\n this.play();\n }\n }\n onEnded();\n }\n if (data === CUED)\n onReady();\n });\n __publicField(this, \"mute\", () => {\n this.callPlayer(\"mute\");\n });\n __publicField(this, \"unmute\", () => {\n this.callPlayer(\"unMute\");\n });\n __publicField(this, \"ref\", (container) => {\n this.container = container;\n });\n }\n componentDidMount() {\n this.props.onMount && this.props.onMount(this);\n }\n getID(url) {\n if (!url || url instanceof Array || MATCH_PLAYLIST.test(url)) {\n return null;\n }\n return url.match(import_patterns.MATCH_URL_YOUTUBE)[1];\n }\n load(url, isReady) {\n const { playing, muted, playsinline, controls, loop, config, onError } = this.props;\n const { playerVars, embedOptions } = config;\n const id = this.getID(url);\n if (isReady) {\n if (MATCH_PLAYLIST.test(url) || MATCH_USER_UPLOADS.test(url) || url instanceof Array) {\n this.player.loadPlaylist(this.parsePlaylist(url));\n return;\n }\n this.player.cueVideoById({\n videoId: id,\n startSeconds: (0, import_utils.parseStartTime)(url) || playerVars.start,\n endSeconds: (0, import_utils.parseEndTime)(url) || playerVars.end\n });\n return;\n }\n (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY, (YT) => YT.loaded).then((YT) => {\n if (!this.container)\n return;\n this.player = new YT.Player(this.container, {\n width: \"100%\",\n height: \"100%\",\n videoId: id,\n playerVars: {\n autoplay: playing ? 1 : 0,\n mute: muted ? 1 : 0,\n controls: controls ? 1 : 0,\n start: (0, import_utils.parseStartTime)(url),\n end: (0, import_utils.parseEndTime)(url),\n origin: window.location.origin,\n playsinline: playsinline ? 1 : 0,\n ...this.parsePlaylist(url),\n ...playerVars\n },\n events: {\n onReady: () => {\n if (loop) {\n this.player.setLoop(true);\n }\n this.props.onReady();\n },\n onPlaybackRateChange: (event) => this.props.onPlaybackRateChange(event.data),\n onPlaybackQualityChange: (event) => this.props.onPlaybackQualityChange(event),\n onStateChange: this.onStateChange,\n onError: (event) => onError(event.data)\n },\n host: MATCH_NOCOOKIE.test(url) ? NOCOOKIE_HOST : void 0,\n ...embedOptions\n });\n }, onError);\n if (embedOptions.events) {\n console.warn(\"Using `embedOptions.events` will likely break things. Use ReactPlayer\\u2019s callback props instead, eg onReady, onPlay, onPause\");\n }\n }\n play() {\n this.callPlayer(\"playVideo\");\n }\n pause() {\n this.callPlayer(\"pauseVideo\");\n }\n stop() {\n if (!document.body.contains(this.callPlayer(\"getIframe\")))\n return;\n this.callPlayer(\"stopVideo\");\n }\n seekTo(amount, keepPlaying = false) {\n this.callPlayer(\"seekTo\", amount);\n if (!keepPlaying && !this.props.playing) {\n this.pause();\n }\n }\n setVolume(fraction) {\n this.callPlayer(\"setVolume\", fraction * 100);\n }\n setPlaybackRate(rate) {\n this.callPlayer(\"setPlaybackRate\", rate);\n }\n setLoop(loop) {\n this.callPlayer(\"setLoop\", loop);\n }\n getDuration() {\n return this.callPlayer(\"getDuration\");\n }\n getCurrentTime() {\n return this.callPlayer(\"getCurrentTime\");\n }\n getSecondsLoaded() {\n return this.callPlayer(\"getVideoLoadedFraction\") * this.getDuration();\n }\n render() {\n const { display } = this.props;\n const style = {\n width: \"100%\",\n height: \"100%\",\n display\n };\n return /* @__PURE__ */ import_react.default.createElement(\"div\", { style }, /* @__PURE__ */ import_react.default.createElement(\"div\", { ref: this.ref }));\n }\n}\n__publicField(YouTube, \"displayName\", \"YouTube\");\n__publicField(YouTube, \"canPlay\", import_patterns.canPlay.youtube);\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar players_exports = {};\n__export(players_exports, {\n default: () => players_default\n});\nmodule.exports = __toCommonJS(players_exports);\nvar import_utils = require(\"../utils\");\nvar import_patterns = require(\"../patterns\");\nvar players_default = [\n {\n key: \"youtube\",\n name: \"YouTube\",\n canPlay: import_patterns.canPlay.youtube,\n lazyPlayer: (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerYouTube' */\n \"./YouTube\"\n ))\n },\n {\n key: \"soundcloud\",\n name: \"SoundCloud\",\n canPlay: import_patterns.canPlay.soundcloud,\n lazyPlayer: (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerSoundCloud' */\n \"./SoundCloud\"\n ))\n },\n {\n key: \"vimeo\",\n name: \"Vimeo\",\n canPlay: import_patterns.canPlay.vimeo,\n lazyPlayer: (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerVimeo' */\n \"./Vimeo\"\n ))\n },\n {\n key: \"mux\",\n name: \"Mux\",\n canPlay: import_patterns.canPlay.mux,\n lazyPlayer: (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerMux' */\n \"./Mux\"\n ))\n },\n {\n key: \"facebook\",\n name: \"Facebook\",\n canPlay: import_patterns.canPlay.facebook,\n lazyPlayer: (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerFacebook' */\n \"./Facebook\"\n ))\n },\n {\n key: \"streamable\",\n name: \"Streamable\",\n canPlay: import_patterns.canPlay.streamable,\n lazyPlayer: (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerStreamable' */\n \"./Streamable\"\n ))\n },\n {\n key: \"wistia\",\n name: \"Wistia\",\n canPlay: import_patterns.canPlay.wistia,\n lazyPlayer: (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerWistia' */\n \"./Wistia\"\n ))\n },\n {\n key: \"twitch\",\n name: \"Twitch\",\n canPlay: import_patterns.canPlay.twitch,\n lazyPlayer: (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerTwitch' */\n \"./Twitch\"\n ))\n },\n {\n key: \"dailymotion\",\n name: \"DailyMotion\",\n canPlay: import_patterns.canPlay.dailymotion,\n lazyPlayer: (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerDailyMotion' */\n \"./DailyMotion\"\n ))\n },\n {\n key: \"mixcloud\",\n name: \"Mixcloud\",\n canPlay: import_patterns.canPlay.mixcloud,\n lazyPlayer: (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerMixcloud' */\n \"./Mixcloud\"\n ))\n },\n {\n key: \"vidyard\",\n name: \"Vidyard\",\n canPlay: import_patterns.canPlay.vidyard,\n lazyPlayer: (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerVidyard' */\n \"./Vidyard\"\n ))\n },\n {\n key: \"kaltura\",\n name: \"Kaltura\",\n canPlay: import_patterns.canPlay.kaltura,\n lazyPlayer: (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerKaltura' */\n \"./Kaltura\"\n ))\n },\n {\n key: \"file\",\n name: \"FilePlayer\",\n canPlay: import_patterns.canPlay.file,\n canEnablePIP: (url) => {\n return import_patterns.canPlay.file(url) && (document.pictureInPictureEnabled || (0, import_utils.supportsWebKitPresentationMode)()) && !import_patterns.AUDIO_EXTENSIONS.test(url);\n },\n lazyPlayer: (0, import_utils.lazy)(() => import(\n /* webpackChunkName: 'reactPlayerFilePlayer' */\n \"./FilePlayer\"\n ))\n }\n];\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar props_exports = {};\n__export(props_exports, {\n defaultProps: () => defaultProps,\n propTypes: () => propTypes\n});\nmodule.exports = __toCommonJS(props_exports);\nvar import_prop_types = __toESM(require(\"prop-types\"));\nconst { string, bool, number, array, oneOfType, shape, object, func, node } = import_prop_types.default;\nconst propTypes = {\n url: oneOfType([string, array, object]),\n playing: bool,\n loop: bool,\n controls: bool,\n volume: number,\n muted: bool,\n playbackRate: number,\n width: oneOfType([string, number]),\n height: oneOfType([string, number]),\n style: object,\n progressInterval: number,\n playsinline: bool,\n pip: bool,\n stopOnUnmount: bool,\n light: oneOfType([bool, string, object]),\n playIcon: node,\n previewTabIndex: number,\n previewAriaLabel: string,\n fallback: node,\n oEmbedUrl: string,\n wrapper: oneOfType([\n string,\n func,\n shape({ render: func.isRequired })\n ]),\n config: shape({\n soundcloud: shape({\n options: object\n }),\n youtube: shape({\n playerVars: object,\n embedOptions: object,\n onUnstarted: func\n }),\n facebook: shape({\n appId: string,\n version: string,\n playerId: string,\n attributes: object\n }),\n dailymotion: shape({\n params: object\n }),\n vimeo: shape({\n playerOptions: object,\n title: string\n }),\n mux: shape({\n attributes: object,\n version: string\n }),\n file: shape({\n attributes: object,\n tracks: array,\n forceVideo: bool,\n forceAudio: bool,\n forceHLS: bool,\n forceSafariHLS: bool,\n forceDisableHls: bool,\n forceDASH: bool,\n forceFLV: bool,\n hlsOptions: object,\n hlsVersion: string,\n dashVersion: string,\n flvVersion: string\n }),\n wistia: shape({\n options: object,\n playerId: string,\n customControls: array\n }),\n mixcloud: shape({\n options: object\n }),\n twitch: shape({\n options: object,\n playerId: string\n }),\n vidyard: shape({\n options: object\n })\n }),\n onReady: func,\n onStart: func,\n onPlay: func,\n onPause: func,\n onBuffer: func,\n onBufferEnd: func,\n onEnded: func,\n onError: func,\n onDuration: func,\n onSeek: func,\n onPlaybackRateChange: func,\n onPlaybackQualityChange: func,\n onProgress: func,\n onClickPreview: func,\n onEnablePIP: func,\n onDisablePIP: func\n};\nconst noop = () => {\n};\nconst defaultProps = {\n playing: false,\n loop: false,\n controls: false,\n volume: null,\n muted: false,\n playbackRate: 1,\n width: \"640px\",\n height: \"360px\",\n style: {},\n progressInterval: 1e3,\n playsinline: false,\n pip: false,\n stopOnUnmount: true,\n light: false,\n fallback: null,\n wrapper: \"div\",\n previewTabIndex: 0,\n previewAriaLabel: \"\",\n oEmbedUrl: \"https://noembed.com/embed?url={url}\",\n config: {\n soundcloud: {\n options: {\n visual: true,\n // Undocumented, but makes player fill container and look better\n buying: false,\n liking: false,\n download: false,\n sharing: false,\n show_comments: false,\n show_playcount: false\n }\n },\n youtube: {\n playerVars: {\n playsinline: 1,\n showinfo: 0,\n rel: 0,\n iv_load_policy: 3,\n modestbranding: 1\n },\n embedOptions: {},\n onUnstarted: noop\n },\n facebook: {\n appId: \"1309697205772819\",\n version: \"v3.3\",\n playerId: null,\n attributes: {}\n },\n dailymotion: {\n params: {\n api: 1,\n \"endscreen-enable\": false\n }\n },\n vimeo: {\n playerOptions: {\n autopause: false,\n byline: false,\n portrait: false,\n title: false\n },\n title: null\n },\n mux: {\n attributes: {},\n version: \"2\"\n },\n file: {\n attributes: {},\n tracks: [],\n forceVideo: false,\n forceAudio: false,\n forceHLS: false,\n forceDASH: false,\n forceFLV: false,\n hlsOptions: {},\n hlsVersion: \"1.1.4\",\n dashVersion: \"3.1.3\",\n flvVersion: \"1.5.0\",\n forceDisableHls: false\n },\n wistia: {\n options: {},\n playerId: null,\n customControls: null\n },\n mixcloud: {\n options: {\n hide_cover: 1\n }\n },\n twitch: {\n options: {},\n playerId: null\n },\n vidyard: {\n options: {}\n }\n },\n onReady: noop,\n onStart: noop,\n onPlay: noop,\n onPause: noop,\n onBuffer: noop,\n onBufferEnd: noop,\n onEnded: noop,\n onError: noop,\n onDuration: noop,\n onSeek: noop,\n onPlaybackRateChange: noop,\n onPlaybackQualityChange: noop,\n onProgress: noop,\n onClickPreview: noop,\n onEnablePIP: noop,\n onDisablePIP: noop\n};\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar utils_exports = {};\n__export(utils_exports, {\n callPlayer: () => callPlayer,\n getConfig: () => getConfig,\n getSDK: () => getSDK,\n isBlobUrl: () => isBlobUrl,\n isMediaStream: () => isMediaStream,\n lazy: () => lazy,\n omit: () => omit,\n parseEndTime: () => parseEndTime,\n parseStartTime: () => parseStartTime,\n queryString: () => queryString,\n randomString: () => randomString,\n supportsWebKitPresentationMode: () => supportsWebKitPresentationMode\n});\nmodule.exports = __toCommonJS(utils_exports);\nvar import_react = __toESM(require(\"react\"));\nvar import_load_script = __toESM(require(\"load-script\"));\nvar import_deepmerge = __toESM(require(\"deepmerge\"));\nconst lazy = (componentImportFn) => import_react.default.lazy(async () => {\n const obj = await componentImportFn();\n return typeof obj.default === \"function\" ? obj : obj.default;\n});\nconst MATCH_START_QUERY = /[?&#](?:start|t)=([0-9hms]+)/;\nconst MATCH_END_QUERY = /[?&#]end=([0-9hms]+)/;\nconst MATCH_START_STAMP = /(\\d+)(h|m|s)/g;\nconst MATCH_NUMERIC = /^\\d+$/;\nfunction parseTimeParam(url, pattern) {\n if (url instanceof Array) {\n return void 0;\n }\n const match = url.match(pattern);\n if (match) {\n const stamp = match[1];\n if (stamp.match(MATCH_START_STAMP)) {\n return parseTimeString(stamp);\n }\n if (MATCH_NUMERIC.test(stamp)) {\n return parseInt(stamp);\n }\n }\n return void 0;\n}\nfunction parseTimeString(stamp) {\n let seconds = 0;\n let array = MATCH_START_STAMP.exec(stamp);\n while (array !== null) {\n const [, count, period] = array;\n if (period === \"h\")\n seconds += parseInt(count, 10) * 60 * 60;\n if (period === \"m\")\n seconds += parseInt(count, 10) * 60;\n if (period === \"s\")\n seconds += parseInt(count, 10);\n array = MATCH_START_STAMP.exec(stamp);\n }\n return seconds;\n}\nfunction parseStartTime(url) {\n return parseTimeParam(url, MATCH_START_QUERY);\n}\nfunction parseEndTime(url) {\n return parseTimeParam(url, MATCH_END_QUERY);\n}\nfunction randomString() {\n return Math.random().toString(36).substr(2, 5);\n}\nfunction queryString(object) {\n return Object.keys(object).map((key) => `${key}=${object[key]}`).join(\"&\");\n}\nfunction getGlobal(key) {\n if (window[key]) {\n return window[key];\n }\n if (window.exports && window.exports[key]) {\n return window.exports[key];\n }\n if (window.module && window.module.exports && window.module.exports[key]) {\n return window.module.exports[key];\n }\n return null;\n}\nconst requests = {};\nconst getSDK = enableStubOn(function getSDK2(url, sdkGlobal, sdkReady = null, isLoaded = () => true, fetchScript = import_load_script.default) {\n const existingGlobal = getGlobal(sdkGlobal);\n if (existingGlobal && isLoaded(existingGlobal)) {\n return Promise.resolve(existingGlobal);\n }\n return new Promise((resolve, reject) => {\n if (requests[url]) {\n requests[url].push({ resolve, reject });\n return;\n }\n requests[url] = [{ resolve, reject }];\n const onLoaded = (sdk) => {\n requests[url].forEach((request) => request.resolve(sdk));\n };\n if (sdkReady) {\n const previousOnReady = window[sdkReady];\n window[sdkReady] = function() {\n if (previousOnReady)\n previousOnReady();\n onLoaded(getGlobal(sdkGlobal));\n };\n }\n fetchScript(url, (err) => {\n if (err) {\n requests[url].forEach((request) => request.reject(err));\n requests[url] = null;\n } else if (!sdkReady) {\n onLoaded(getGlobal(sdkGlobal));\n }\n });\n });\n});\nfunction getConfig(props, defaultProps) {\n return (0, import_deepmerge.default)(defaultProps.config, props.config);\n}\nfunction omit(object, ...arrays) {\n const omitKeys = [].concat(...arrays);\n const output = {};\n const keys = Object.keys(object);\n for (const key of keys) {\n if (omitKeys.indexOf(key) === -1) {\n output[key] = object[key];\n }\n }\n return output;\n}\nfunction callPlayer(method, ...args) {\n if (!this.player || !this.player[method]) {\n let message = `ReactPlayer: ${this.constructor.displayName} player could not call %c${method}%c \\u2013 `;\n if (!this.player) {\n message += \"The player was not available\";\n } else if (!this.player[method]) {\n message += \"The method was not available\";\n }\n console.warn(message, \"font-weight: bold\", \"\");\n return null;\n }\n return this.player[method](...args);\n}\nfunction isMediaStream(url) {\n return typeof window !== \"undefined\" && typeof window.MediaStream !== \"undefined\" && url instanceof window.MediaStream;\n}\nfunction isBlobUrl(url) {\n return /^blob:/.test(url);\n}\nfunction supportsWebKitPresentationMode(video = document.createElement(\"video\")) {\n const notMobile = /iPhone|iPod/.test(navigator.userAgent) === false;\n return video.webkitSupportsPresentationMode && typeof video.webkitSetPresentationMode === \"function\" && notMobile;\n}\nfunction enableStubOn(fn) {\n if (false) {\n const wrap = (...args) => wrap.stub(...args);\n wrap.stub = fn;\n return wrap;\n }\n return fn;\n}\n","'use strict';\n\nvar isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction getMergeFunction(key, options) {\n\tif (!options.customMerge) {\n\t\treturn deepmerge\n\t}\n\tvar customMerge = options.customMerge(key);\n\treturn typeof customMerge === 'function' ? customMerge : deepmerge\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n\treturn Object.getOwnPropertySymbols\n\t\t? Object.getOwnPropertySymbols(target).filter(function(symbol) {\n\t\t\treturn Object.propertyIsEnumerable.call(target, symbol)\n\t\t})\n\t\t: []\n}\n\nfunction getKeys(target) {\n\treturn Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))\n}\n\nfunction propertyIsOnObject(object, property) {\n\ttry {\n\t\treturn property in object\n\t} catch(_) {\n\t\treturn false\n\t}\n}\n\n// Protects from prototype poisoning and unexpected merging up the prototype chain.\nfunction propertyIsUnsafe(target, key) {\n\treturn propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n\t\t&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n\t\t\t&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tgetKeys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tgetKeys(source).forEach(function(key) {\n\t\tif (propertyIsUnsafe(target, key)) {\n\t\t\treturn\n\t\t}\n\n\t\tif (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n\t\t\tdestination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\t// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n\t// implementations can use it. The caller may not replace it.\n\toptions.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nmodule.exports = deepmerge_1;\n","/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */\n\nvar hasElementType = typeof Element !== 'undefined';\nvar hasMap = typeof Map === 'function';\nvar hasSet = typeof Set === 'function';\nvar hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;\n\n// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js\n\nfunction equal(a, b) {\n // START: fast-deep-equal es6/index.js 3.1.3\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n // START: Modifications:\n // 1. Extra `has &&` helpers in initial condition allow es6 code\n // to co-exist with es5.\n // 2. Replace `for of` with es5 compliant iteration using `for`.\n // Basically, take:\n //\n // ```js\n // for (i of a.entries())\n // if (!b.has(i[0])) return false;\n // ```\n //\n // ... and convert to:\n //\n // ```js\n // it = a.entries();\n // while (!(i = it.next()).done)\n // if (!b.has(i.value[0])) return false;\n // ```\n //\n // **Note**: `i` access switches to `i.value`.\n var it;\n if (hasMap && (a instanceof Map) && (b instanceof Map)) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!b.has(i.value[0])) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!equal(i.value[1], b.get(i.value[0]))) return false;\n return true;\n }\n\n if (hasSet && (a instanceof Set) && (b instanceof Set)) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!b.has(i.value[0])) return false;\n return true;\n }\n // END: Modifications\n\n if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (a[i] !== b[i]) return false;\n return true;\n }\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n // START: Modifications:\n // Apply guards for `Object.create(null)` handling. See:\n // - https://github.com/FormidableLabs/react-fast-compare/issues/64\n // - https://github.com/epoberezkin/fast-deep-equal/issues/49\n if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString();\n // END: Modifications\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n // END: fast-deep-equal\n\n // START: react-fast-compare\n // custom handling for DOM elements\n if (hasElementType && a instanceof Element) return false;\n\n // custom handling for React/Preact\n for (i = length; i-- !== 0;) {\n if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner\n // Preact-specific: avoid traversing Preact elements' __v and __o\n // __v = $_original / $_vnode\n // __o = $_owner\n // These properties contain circular references and are not needed when\n // comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of elements\n\n continue;\n }\n\n // all other properties should be traversed as usual\n if (!equal(a[keys[i]], b[keys[i]])) return false;\n }\n // END: react-fast-compare\n\n // START: fast-deep-equal\n return true;\n }\n\n return a !== a && b !== b;\n}\n// end fast-deep-equal\n\nmodule.exports = function isEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if (((error.message || '').match(/stack|recursion/i))) {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('react-fast-compare cannot handle circular refs');\n return false;\n }\n // some other error. we should definitely know about these\n throw error;\n }\n};\n"],"names":["mod","__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__copyProps","to","from","except","desc","key","call","get","enumerable","__toESM","isNodeMode","target","__esModule","value","__publicField","obj","configurable","writable","__defNormalProp","Player_exports","all","name","__export","default","Player","module","exports","import_react","import_react_fast_compare","import_props","import_utils","Component","constructor","super","arguments","this","player","load","props","url","progress","isReady","playedSeconds","getCurrentTime","loadedSeconds","getSecondsLoaded","duration","getDuration","played","loaded","prevPlayed","prevLoaded","onProgress","progressTimeout","setTimeout","progressFrequency","progressInterval","mounted","isLoading","onReady","playing","volume","muted","setVolume","loadOnReady","play","handleDurationCheck","isPlaying","onStart","onPlay","playbackRate","startOnPlay","setPlaybackRate","seekOnPlay","seekTo","e","onPause","activePlayer","loop","onEnded","loopOnEnded","args","onError","clearTimeout","durationCheckTimeout","onDurationCalled","onDuration","componentDidMount","componentWillUnmount","stopOnUnmount","stop","disablePIP","componentDidUpdate","prevProps","pip","disableDeferredLoading","forceLoad","isMediaStream","console","warn","pause","enablePIP","mute","unmute","setLoop","amount","type","keepPlaying","render","Player2","createElement","onMount","handlePlayerMount","handleReady","handlePlay","handlePause","handleEnded","onLoaded","handleLoaded","handleError","propTypes","defaultProps","Preview_exports","Preview","ICON_SIZE","cache","image","onClick","fetchImage","light","oEmbedUrl","isValidElement","setState","window","fetch","replace","then","response","json","data","thumbnail_url","playIcon","previewTabIndex","previewAriaLabel","state","isElement","flexCenter","display","alignItems","justifyContent","styles","preview","width","height","backgroundImage","backgroundSize","backgroundPosition","cursor","shadow","background","borderRadius","position","borderStyle","borderWidth","borderColor","marginLeft","defaultPlayIcon","style","className","tabIndex","onKeyPress","handleKeyPress","ReactPlayer_exports","createReactPlayer","import_deepmerge","import_memoize_one","import_Player","lazy","IS_BROWSER","document","IS_GLOBAL","g","SUPPORTED_PROPS","keys","UniversalSuspense","Suspense","customPlayers","players","fallback","_a","showPreview","wrapper","onClickPreview","getInternalPlayer","fraction","canPlay","config","omit","getActivePlayer","getConfig","ref","references","lazyPlayer","shouldComponentUpdate","nextProps","nextState","renderPreview","handleClickPreview","fallback2","Wrapper","attributes","getAttributes","wrapperRef","renderActivePlayer","push","length","canEnablePIP","src_exports","src_default","import_players","import_ReactPlayer","patterns_exports","AUDIO_EXTENSIONS","DASH_EXTENSIONS","FLV_EXTENSIONS","HLS_EXTENSIONS","MATCH_URL_DAILYMOTION","MATCH_URL_FACEBOOK","MATCH_URL_FACEBOOK_WATCH","MATCH_URL_KALTURA","MATCH_URL_MIXCLOUD","MATCH_URL_MUX","MATCH_URL_SOUNDCLOUD","MATCH_URL_STREAMABLE","MATCH_URL_TWITCH_CHANNEL","MATCH_URL_TWITCH_VIDEO","MATCH_URL_VIDYARD","MATCH_URL_VIMEO","MATCH_URL_WISTIA","MATCH_URL_YOUTUBE","VIDEO_EXTENSIONS","canPlayFile","Array","item","src","isBlobUrl","test","youtube","every","soundcloud","vimeo","mux","facebook","streamable","wistia","twitch","dailymotion","mixcloud","vidyard","kaltura","file","DailyMotion_exports","DailyMotion","import_patterns","callPlayer","container","controls","id","match","start","parseStartTime","autoplay","getSDK","DM","video","params","origin","location","events","apiready","seeked","onSeek","currentTime","video_end","durationchange","onDurationChange","waiting","onBuffer","error","event","seconds","bufferedTime","Facebook_exports","Facebook","SDK_URL","SDK_GLOBAL_READY","playerId","randomString","FB","XFBML","parse","init","appId","xfbml","version","Event","subscribe","msg","playerID","instance","onBufferEnd","getElementById","querySelector","visibility","FilePlayer_exports","FilePlayer","HAS_NAVIGATOR","navigator","IS_IPAD_PRO","platform","maxTouchPoints","IS_IOS","userAgent","MSStream","IS_SAFARI","MATCH_DROPBOX_URL","MATCH_CLOUDFLARE_STREAM","onPlaybackRateChange","onEnablePIP","onDisablePIP","supportsWebKitPresentationMode","webkitPresentationMode","source","index","track","prevPlayer","addListeners","getSource","forceDisableHls","shouldUseAudio","removeListeners","srcObject","removeAttribute","hls","destroy","playsinline","addEventListener","onPlayBackRateChange","onPresentationModeChange","shouldUseHLS","setAttribute","removeEventListener","forceVideo","poster","forceAudio","forceSafariHLS","forceHLS","shouldUseDASH","forceDASH","shouldUseFLV","forceFLV","hlsVersion","hlsOptions","dashVersion","flvVersion","dash","reset","Hls","on","Events","MANIFEST_PARSED","ERROR","loadSource","attachMedia","dashjs","MediaPlayer","initialize","parseInt","getDebug","setLogToBrowserConsole","updateSettings","debug","logLevel","Debug","LOG_LEVEL_NONE","flvjs","flv","createPlayer","attachMediaElement","URL","createObjectURL","promise","catch","requestPictureInPicture","pictureInPictureElement","webkitSetPresentationMode","exitPictureInPicture","rate","seekable","Infinity","end","buffered","useHLS","useDASH","useFLV","Element","preload","autoPlay","map","renderSourceElement","tracks","renderTrack","Kaltura_exports","Kaltura","iframe","playerjs","secondsLoaded","frameBorder","scrolling","allow","referrerPolicy","Mixcloud_exports","Mixcloud","Mixcloud2","PlayerWidget","ready","ended","query","queryString","options","feed","Mux_exports","Mux","playbackId","getPlaybackId","globalThis","customElements","sdkUrl","import","SoundCloud_exports","SoundCloud","SC","PLAY","PLAY_PROGRESS","PAUSE","FINISH","Widget","bind","currentPosition","fractionLoaded","loadedProgress","callback","encodeURIComponent","Streamable_exports","Streamable","percent","Twitch_exports","Twitch","isChannel","setChannel","setVideo","Twitch2","channel","time","READY","PLAYING","ENDED","ONLINE","OFFLINE","SEEK","Vidyard_exports","Vidyard","Vidyard2","api","addReadyListener","renderPlayer","uuid","getPlayerMetadata","meta","length_in_seconds","VidyardV4","destroyPlayer","Vimeo_exports","Vimeo","cleanUrl","setMuted","Vimeo2","playerOptions","title","refreshDuration","overflow","Wistia_exports","Wistia","Wistia2","customControls","forEach","control","defineControl","_wq","silentAutoPlay","controlsVisibleOnLoad","fullscreenButton","playbar","playbackRateControl","qualityControl","volumeControl","settingsControl","smallPlayButton","unbind","videoID","YouTube_exports","YouTube","MATCH_PLAYLIST","MATCH_USER_UPLOADS","MATCH_NOCOOKIE","listType","playlist","getID","join","playlistId","list","username","playerVars","onUnstarted","UNSTARTED","PAUSED","BUFFERING","CUED","PlayerState","isPlaylist","embedOptions","loadPlaylist","parsePlaylist","cueVideoById","videoId","startSeconds","endSeconds","parseEndTime","YT","onPlaybackQualityChange","onStateChange","host","body","contains","players_exports","players_default","pictureInPictureEnabled","props_exports","import_prop_types","string","bool","number","array","oneOfType","shape","object","func","node","isRequired","noop","visual","buying","liking","download","sharing","show_comments","show_playcount","showinfo","rel","iv_load_policy","modestbranding","autopause","byline","portrait","hide_cover","utils_exports","import_load_script","componentImportFn","async","MATCH_START_QUERY","MATCH_END_QUERY","MATCH_START_STAMP","MATCH_NUMERIC","parseTimeParam","pattern","stamp","exec","count","period","parseTimeString","Math","random","toString","substr","getGlobal","requests","fn","enableStubOn","sdkGlobal","sdkReady","isLoaded","fetchScript","existingGlobal","Promise","resolve","reject","sdk","request","previousOnReady","err","arrays","omitKeys","concat","output","indexOf","method","message","displayName","MediaStream","notMobile","webkitSupportsPresentationMode","isMergeableObject","isNonNullObject","stringValue","$$typeof","REACT_ELEMENT_TYPE","isReactElement","isSpecial","Symbol","for","cloneUnlessOtherwiseSpecified","clone","deepmerge","val","isArray","defaultArrayMerge","element","getKeys","getOwnPropertySymbols","filter","symbol","propertyIsEnumerable","getEnumerableOwnPropertySymbols","propertyIsOnObject","property","_","mergeObject","destination","propertyIsUnsafe","customMerge","getMergeFunction","arrayMerge","sourceIsArray","Error","reduce","prev","next","deepmerge_1","hasElementType","hasMap","Map","hasSet","Set","hasArrayBuffer","ArrayBuffer","isView","equal","a","b","i","it","size","entries","done","has","RegExp","flags","valueOf"],"sourceRoot":""}