Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bentoproject/dailymotion

Package Overview
Dependencies
Maintainers
3
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bentoproject/dailymotion - npm Package Compare versions

Comparing version 1.2202072236.0 to 1.2202082004.0

dist/web-component.css

2

dist/component-react.js

@@ -1,2 +0,2 @@

var n=Object.create,e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,o=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,i=function(n){return e(n,"__esModule",{value:!0})},a=function(a){return function(n,o,i){if(o&&"object"==typeof o||"function"==typeof o)for(var a,l=t(o),c=0,f=l.length;c<f;c++)a=l[c],u.call(n,a)||"default"===a||e(n,a,{get:function(n){return o[n]}.bind(null,a),enumerable:!(i=r(o,a))||i.enumerable});return n}(i(e(null!=a?n(o(a)):{},"default",a&&a.__esModule&&"default"in a?{get:function(){return a.default},enumerable:!0}:{value:a,enumerable:!0})),a)};function l(n,e,r){return e in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function c(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function f(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){l(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function s(n,e){if(null==n)return{};var r,t,o={},u=Object.keys(n);for(t=0;t<u.length;t++)r=u[t],e.indexOf(r)>=0||(o[r]=n[r]);return o}!function(n,r){for(var t in i(n),r)e(n,t,{get:r[t],enumerable:!0})}(exports,{BentoDailymotion:function(){return On},BentoDailymotionWithRef:function(){return jn}});var v=Array.isArray;function d(n){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function p(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}function m(n,e){if(n){if("string"==typeof n)return p(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(n,e):void 0}}function y(n,e){var r="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(r)return(r=r.call(n)).next.bind(r);if(Array.isArray(n)||(r=m(n))||e&&n&&"number"==typeof n.length){r&&(n=r);var t=0;return function(){return t>=n.length?{done:!0}:{done:!1,value:n[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var b=Object.prototype;function g(n){var e=Object.create(null);return n&&Object.assign(e,n),e}b.hasOwnProperty,b.toString;var w={bubbles:!0,cancelable:!0};function h(n,e,r,t){var o=r||{};n.ownerDocument;var u=n.ownerDocument.createEvent("Event");u.data=o;var i=t||w,a=i.bubbles,l=i.cancelable;u.initEvent(e,a,l),n.dispatchEvent(u)}var j=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function O(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(n)}catch(n){return e}}a(require("react-dom"));var S=a(require("react")),N=a(require("react"));function I(n){return n.children}var C=a(require("react")),k=function(){var n=this;this.promise=new Promise((function(e,r){n.resolve=e,n.reject=r}))};function E(n){return new Promise((function(e){e(n())}))}var q,P=a(require("react"));function R(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var t,o,u=[],i=!0,a=!1;try{for(r=r.call(n);!(i=(t=r.next()).done)&&(u.push(t.value),!e||u.length!==e);i=!0);}catch(n){a=!0,o=n}finally{try{i||null==r.return||r.return()}finally{if(a)throw o}}return u}}(n,e)||m(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(n){var e=function(n,e){if("object"!==d(n)||null===n)return n;var r=n[Symbol.toPrimitive];if(void 0!==r){var t=r.call(n,"string");if("object"!==d(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===d(e)?e:String(e)}var M,z=["auto","lazy","eager","unload"],x=(l(q={},"auto",0),l(q,"lazy",1),l(q,"eager",2),l(q,"unload",3),q);function T(n){var e=Object.getOwnPropertyDescriptor(n,"message");if(null!=e&&e.writable)return n;var r=n.message,t=n.stack,o=new Error(r);for(var u in n)o[u]=n[u];return o.stack=t,o}function U(n){for(var e,r=null,t="",o=y(arguments,!0);!(e=o()).done;){var u=e.value;u instanceof Error&&!r?r=T(u):(t&&(t+=" "),t+=u)}return r?t&&(r.message=t+": "+r.message):r=new Error(t),r}function L(n){var e,r;null===(e=(r=self).__AMP_REPORT_ERROR)||void 0===e||e.call(r,n)}function F(n){var e=U.apply(null,arguments);return e.expected=!0,e}var B=["Webkit","webkit","Moz","moz","ms","O","o"];function D(n,e,r,t,o){var u=function(n,e,r){if(V(e))return e;M||(M=g());var t=M[e];if(!t||r){if(t=e,void 0===n[e]){var o=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(e),u=function(n,e){for(var r=0;r<B.length;r++){var t=B[r]+e;if(void 0!==n[t])return t}return""}(n,o);void 0!==n[u]&&(t=u)}r||(M[e]=t)}return t}(n.style,e,o);if(u){var i=t?r+t:r;V(u)?n.style.setProperty(u,i):n.style[u]=i}}function V(n){return n.startsWith("--")}function W(n){return null==n.__AMP_AUTOPLAY&&(n.__AMP_AUTOPLAY=function(n){var e,r=n.document.createElement("video");return r.setAttribute("muted",""),r.setAttribute("playsinline",""),r.setAttribute("webkit-playsinline",""),r.setAttribute("height","0"),r.setAttribute("width","0"),r.muted=!0,r.playsInline=!0,r.playsinline=!0,r.webkitPlaysinline=!0,function(n,e){for(var r in e)D(n,r,e[r])}(r,{position:"fixed",top:"0",width:"0",height:"0",opacity:"0"}),e=r,E((function(){return e.play()})).catch((function(){})),Promise.resolve(!r.paused)}(n)),n.__AMP_AUTOPLAY}var _,J=a(require("react")),Y=a(require("react"));function $(){var n=_||(_=(0,S.createContext)({renderable:!0,playable:!0,loading:"auto"}));return(0,N.useContext)(n)}var H=[null,"paint","layout","content","size","size paint","size layout","strict"],Z={"position":"relative","width":"100%","height":"100%"},G=(0,Y.forwardRef)((function(n,e){var r="className",t=n.as,o=void 0===t?"div":t,u=n.children,i=n.contentAs,a=void 0===i?"div":i,l=n.contentClassName,c=n.contentProps,v=n.contentRef,d=n.contentStyle,p=n.layout,m=void 0!==p&&p,y=n.paint,b=void 0!==y&&y,g=n.size,w=void 0!==g&&g,h=n.style,j=n.wrapperClassName,O=n.wrapperStyle,N=n[r],I=s(n,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",r].map(A)),C=(w?4:0)+(m?2:0)+(b?1:0);return S.createElement(o,f(f({},I),{},{ref:e,className:"".concat(N||""," ").concat(j||"").trim()||null,style:f(f(f({},h),O),{},{contain:H[C]})}),S.createElement(a,f(f({},c),{},{ref:v,className:l,style:f(f({},w&&Z),{},{"overflow":b?"hidden":"visible"},d)}),u))}));function K(n){var e=(0,N.useRef)(null);return e.current=n,e}(0,a(require("react")).forwardRef)((function(n,e){var r="className",t=n.as,o=void 0===t?"div":t,u=n.children,i=n.style,a=n.wrapperClassName,l=n.wrapperStyle,c=n[r],v=s(n,["as","children","style","wrapperClassName","wrapperStyle",r].map(A));return S.createElement(o,f(f({},v),{},{ref:e,className:"".concat(c||""," ").concat(a||"").trim()||null,style:f(f({},i),l)}),u)}));var Q=self.AMP_CONFIG||{},X=("string"==typeof Q.thirdPartyFrameRegex?new RegExp(Q.thirdPartyFrameRegex):Q.thirdPartyFrameRegex,("string"==typeof Q.cdnProxyRegex?new RegExp(Q.cdnProxyRegex):Q.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function nn(n){if(!self.document||!self.document.head)return null;if(self.location&&X.test(self.location.origin))return null;var e=self.document.head.querySelector('meta[name="'.concat(n,'"]'));return e&&e.getAttribute("content")||null}Q.thirdPartyUrl,Q.thirdPartyFrameHost,Q.cdnUrl||nn("runtime-host"),Q.errorReportingUrl,Q.betaErrorReportingUrl,Q.localDev,Q.geoApiUrl||nn("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var en={"title":"","artist":"","album":"","artwork":[{"src":""}]};function rn(n){var e=n.querySelector('script[type="application/ld+json"]');if(e){var r=function(n,e){try{return function(n){return JSON.parse(n)}(n)}catch(n){return null}}(e.textContent);if(r&&r.image)return"string"==typeof r.image?r.image:r.image["@list"]&&"string"==typeof r.image["@list"][0]?r.image["@list"][0]:"string"==typeof r.image.url?r.image.url:"string"==typeof r.image[0]?r.image[0]:void 0}}function tn(n){var e=n.querySelector('link[rel="shortcut icon"]')||n.querySelector('link[rel="icon"]');return e?e.getAttribute("href"):void 0}function on(n){var e=n.displayIcon,r=n.displayOverlay,t=n.metadata,o=n.onOverlayClick,u=n.pause,i=n.play,a=n.playing,l=n.wrapperRef,c=$().playable;return(0,N.useEffect)((function(){if(c){var n=new IntersectionObserver((function(n){n[n.length-1].isIntersecting?i().catch((function(){})):u()}),{threshold:.5});return n.observe(l.current),function(){n.disconnect()}}u()}),[l,i,u,c]),S.createElement(I,null,e&&S.createElement("div",{className:"eq-0be5b4b"+(a?" eq-playing-0be5b4b":"")},S.createElement(cn,null)),r&&S.createElement("button",{"aria-label":t&&t.title||"Unmute video",tabIndex:"0",className:"autoplay-mask-button-0be5b4b fill-content-overlay-c645120",onClick:o}))}var un,an,ln,cn=(un=!1,an=null,ln=function(){return[1,2,3,4].map((function(n){return S.createElement("div",{className:"eq-col-0be5b4b",key:n})}))},function(){if(!un){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];an=ln.apply(self,e),un=!0,ln=null}return an}),fn=(0,J.forwardRef)((function(n,e){var r,t="className",o=n.autoplay,u=void 0!==o&&o,i=n.component,a=void 0===i?"video":i,l=n.controls,c=void 0!==l&&l,v=n.loading,d=n.loop,p=void 0!==d&&d,m=n.mediasession,y=void 0===m||m,b=n.noaudio,g=void 0!==b&&b,w=n.onPlayingState,h=n.onReadyState,j=n.poster,O=n.sources,I=n.src,C=n.style,q=n[t],P=s(n,["autoplay","component","controls","loading","loop","mediasession","noaudio","onPlayingState","onReadyState","poster","sources","src","style",t].map(A));r=$().notify,(0,N.useLayoutEffect)((function(){r&&r()}));var M=$().playable,T=function(n){var e,r,t,o,u,i=$().loading;return t=x[null!=(e=n)?e:"auto"]||0,o=x[null!=(r=i)?r:"auto"]||0,u=Math.max(t,o),z[u]}(v),U="unload"!==T,B=R((0,N.useState)(u),2),D=B[0],V=B[1],W=R((0,N.useState)(!1),2),_=W[0],J=W[1],Y=R((0,N.useState)(null),2),H=Y[0],Z=Y[1],Q=R((0,N.useState)(!u),2),X=Q[0],nn=Q[1],un=(0,N.useRef)(null),an=(0,N.useRef)(null),ln=(0,N.useMemo)((function(){return new k}),[]),cn=(0,N.useRef)("loading"),fn=K(h),sn=(0,N.useCallback)((function(n,e){if(n!==cn.current){cn.current=n;var r=fn.current;r&&r(n,e)}}),[fn]),vn=K(w),dn=(0,N.useCallback)((function(n){J(n);var e=vn.current;e&&e(n)}),[vn]);(0,N.useLayoutEffect)((function(){U||dn(!1)}),[U,dn]);var pn=(0,N.useCallback)((function(){return ln.promise.then((function(){return n=an.current,(e=E((function(){return n.play(!1)}))).catch((function(n){!function(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),t=1;t<e;t++)r[t-1]=arguments[t];L(F.apply(null,r))}("TRYPLAY",n)})),e;var n,e}))}),[ln]),mn=(0,N.useCallback)((function(){ln.promise.then((function(){var n;return null===(n=an.current)||void 0===n?void 0:n.pause()}))}),[ln]),yn=(0,N.useCallback)((function(){return ln.promise.then((function(){return an.current.requestFullscreen()}))}),[ln]),bn=(0,N.useCallback)((function(){V(!1),nn(!0)}),[]);return(0,N.useLayoutEffect)((function(){var n,e=null===(n=an.current)||void 0===n?void 0:n.readyState;null!=e&&sn(e>0?"complete":"loading")}),[sn]),(0,N.useLayoutEffect)((function(){return y&&_&&H&&function(n,e,r,t){var o=n.navigator;"mediaSession"in o&&n.MediaMetadata&&(o.mediaSession.metadata=new n.MediaMetadata(en),o.mediaSession.metadata=new n.MediaMetadata(e),o.mediaSession.setActionHandler("play",r),o.mediaSession.setActionHandler("pause",t))}(window,H,pn,mn),function(){}}),[y,_,H,pn,mn]),(0,N.useEffect)((function(){M||mn()}),[M,mn]),(0,N.useImperativeHandle)(e,(function(){return{get readyState(){return cn.current},play:pn,pause:mn,requestFullscreen:yn,get currentTime(){return an.current?an.current.currentTime:0},get duration(){return an.current?an.current.duration:NaN},get autoplay(){return u},get controls(){return c},get loop(){return p},userInteracted:bn,mute:function(){return V(!0)},unmute:function(){X&&V(!1)}}}),[pn,mn,yn,bn,X,u,c,p]),S.createElement(G,{contentRef:un,className:q,style:C,size:!0,layout:!0,paint:!0},U&&S.createElement(a,f(f({},P),{},{ref:an,loading:T,muted:D,loop:p,controls:c&&(!u||X),onCanPlay:function(){ln.resolve(),sn("complete")},onLoadedMetadata:function(){y&&ln.promise.then((function(){var n,e,r,t;Z((n=an.current,f({"title":(e=P).title||e["aria-label"]||document.title,"artist":e.artist||"","album":e.album||"","artwork":[{"src":e.artwork||e.poster||rn(document)||(r=document,t=r.querySelector('meta[property="og:image"]'),t?t.getAttribute("content"):void 0)||tn(document)||""}]},n&&n.getMetadata?n.getMetadata():Object.create(null))))})),sn("complete")},onPlaying:function(){return dn(!0)},onPause:function(){return dn(!1)},onEnded:function(){return dn(!1)},onError:function(n){sn("error",n),ln.reject(n)},className:"fill-stretch-c645120",src:I,poster:j}),O),u&&!X&&S.createElement(on,{metadata:H,playing:_,displayIcon:!g&&D,wrapperRef:un,play:pn,pause:mn,displayOverlay:c,onOverlayClick:bn}))}));fn.displayName="VideoWrapper";var sn=["loading","unloadOnPause","sandbox","muted","controls","origin","onCanPlay","onMessage","playerStateRef","makeMethodMessage","makeFullscreenMessage","onIframeLoad"],vn=["allow-scripts","allow-same-origin","allow-popups","allow-popups-to-escape-sandbox","allow-top-navigation-by-user-activation"].join(" ");function dn(n,e,r){n&&n.contentWindow&&e.then((function(){n.contentWindow.postMessage(r(),"*")}))}var pn=(0,P.forwardRef)((function(n,e){var r=n.loading,t=n.unloadOnPause,o=void 0!==t&&t,u=n.sandbox,i=void 0===u?vn:u,a=n.muted,l=void 0!==a&&a,c=n.controls,v=void 0!==c&&c,d=n.origin,p=n.onCanPlay,m=n.onMessage,y=n.playerStateRef,b=n.makeMethodMessage,g=n.makeFullscreenMessage,w=n.onIframeLoad,h=s(n,sn),j=(0,N.useRef)(null),O=(0,N.useMemo)((function(){return new k}),[]),I=(0,N.useRef)(b),C=(0,N.useCallback)((function(n){dn(null==j?void 0:j.current,O.promise,(function(){return I.current(n)}))}),[O.promise]),E=(0,N.useRef)(g),q=(0,N.useCallback)((function(){return dn(null==j?void 0:j.current,O.promise,E.current)}),[O.promise]);(0,N.useImperativeHandle)(e,(function(){return{get currentTime(){var n,e;return null!==(n=null==y||null===(e=y.current)||void 0===e?void 0:e.currentTime)&&void 0!==n?n:NaN},get duration(){var n,e;return null!==(n=null==y||null===(e=y.current)||void 0===e?void 0:e.duration)&&void 0!==n?n:NaN},requestFullscreen:function(){if(!E.current)return O.promise.then((function(){j.current.requestFullscreen()}));q()},play:function(){return C("play")},pause:function(){if(o){var n=j.current;n&&(n.src=n.src)}else C("pause")}}}),[y,C,q,O.promise,o]);var P=function(n){var e=(0,N.useRef)(null);return e.current=n,e}(m);return(0,N.useLayoutEffect)((function(){if(j.current){var n=j.current.ownerDocument.defaultView;return n.addEventListener("message",e),function(){return n.removeEventListener("message",e)}}function e(n){P.current&&(d&&!d.test(n.origin)||n.source!=j.current.contentWindow||P.current({currentTarget:j.current,target:j.current,data:n.data}))}}),[d,P]),(0,N.useLayoutEffect)((function(){C(l?"mute":"unmute")}),[l,C]),(0,N.useLayoutEffect)((function(){C(v?"showControls":"hideControls")}),[v,C]),S.createElement("iframe",f(f({},h),{},{ref:j,allowfullscreen:!0,frameborder:"0",sandbox:i,loading:r,onCanPlay:function(){p&&O.promise.then(p),O.resolve()},onLoad:function(n){null==w||w(n)}}))}));pn.displayName="VideoIframeInternal";var mn=(0,P.forwardRef)((function(n,e){return S.createElement(fn,f(f({ref:e},n),{},{component:pn}))}));function yn(n,e){return function(n,e,r){if(!e)return n;var t=n.split("#",2),o=t[0].split("?",2);return o[0]+(o[1]?"?".concat(o[1],"&").concat(e):"?".concat(e))+(t[1]?"#".concat(t[1]):"")}(n,function(n){var e,r,t,o=[];for(var u in n){var i=n[u];if(null!=i){i=v(t=i)?t:[t];for(var a=0;a<i.length;a++)o.push((e=u,r=i[a],"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(r))))}}return o.join("&")}(e))}function bn(n,e){return JSON.stringify({"command":n,"parameters":e})}mn.displayName="VideoIframe",new Set(["c","v","a","ad"]);var gn=["autoplay","endscreenEnable","info","mute","sharingEnable","start","uiHighlight","uiLogo","videoId"];function wn(n){switch(n){case"mute":return bn("muted",[!0]);case"unmute":return bn("muted",[!1]);case"showControls":return bn("controls",[!0]);case"hideControls":return bn("controls",[!1]);default:return bn(n)}}function hn(n){var e=n.currentTarget,r=function(n){var e,r=g();if(!n)return r;for(;e=j.exec(n);){var t=O(e[1],e[1]),o=e[2]?O(e[2].replace(/\+/g," "),e[2]):"";r[t]=o}return r}(n.data),t=null==r?void 0:r.event;"pause"===t?h(e,"pause"):"play"===t?h(e,"playing"):"end"===t?(h(e,"pause"),h(e,"end")):"apiready"===t&&h(e,"canplay")}function jn(n,e){var r=n.autoplay,t=n.endscreenEnable,o=n.info,u=n.mute,i=n.sharingEnable,a=n.start,l=n.uiHighlight,c=n.uiLogo,v=n.videoId,d=s(n,gn),p=(0,N.useMemo)((function(){return function(n,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],t=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],u=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],a=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,c=!(arguments.length>9&&void 0!==arguments[9])||arguments[9],s=arguments.length>10?arguments[10]:void 0;return yn("https://www.dailymotion.com/embed/video/".concat(encodeURIComponent(e),"?api=1&html=1&app=amp"),f({"endscreen-enable":t?void 0:t,"info":o?void 0:o,"mute":u||r&&W(n)?1:void 0,"sharing-enable":i?void 0:i,"start":a,"ui-highlight":l,"ui-logo":c?void 0:c},s))}(window,v,r,t,o,u,i,a,l,c)}),[v,r,t,o,u,i,a,l,c]);return S.createElement(mn,f(f({autoplay:r,controls:!0,ref:e},d),{},{src:p,makeMethodMessage:wn,onMessage:hn}))}var On=(0,C.forwardRef)(jn);On.displayName="BentoDailymotion";
var n=Object.create,e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,i=function(n){return e(n,"__esModule",{value:!0})},a=function(a){return function(n,o,i){if(o&&"object"==typeof o||"function"==typeof o)for(var a,l=r(o),c=0,f=l.length;c<f;c++)a=l[c],u.call(n,a)||"default"===a||e(n,a,{get:function(n){return o[n]}.bind(null,a),enumerable:!(i=t(o,a))||i.enumerable});return n}(i(e(null!=a?n(o(a)):{},"default",a&&a.__esModule&&"default"in a?{get:function(){return a.default},enumerable:!0}:{value:a,enumerable:!0})),a)};function l(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function c(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function f(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?c(Object(t),!0).forEach((function(e){l(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function s(n,e){if(null==n)return{};var t,r,o={},u=Object.keys(n);for(r=0;r<u.length;r++)t=u[r],e.indexOf(t)>=0||(o[t]=n[t]);return o}!function(n,t){for(var r in i(n),t)e(n,r,{get:t[r],enumerable:!0})}(exports,{BentoDailymotion:function(){return Nn},BentoDailymotionWithRef:function(){return Sn}});var v=Array.isArray;function d(n){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function m(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function p(n,e){if(n){if("string"==typeof n)return m(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(n,e):void 0}}function y(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=p(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var b=Object.prototype;function g(n){var e=Object.create(null);return n&&Object.assign(e,n),e}b.hasOwnProperty,b.toString;var w={bubbles:!0,cancelable:!0};function h(n,e,t,r){var o=t||{};n.ownerDocument;var u=n.ownerDocument.createEvent("Event");u.data=o;var i=r||w,a=i.bubbles,l=i.cancelable;u.initEvent(e,a,l),n.dispatchEvent(u)}var j=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function O(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(n)}catch(n){return e}}a(require("react-dom"));var S=a(require("react")),N=a(require("react"));function I(n){return n.children}var C,k=a(require("react")),E=["ref"],P="undefined"!=typeof Symbol&&(null===(C=Symbol.for)||void 0===C?void 0:C.call(Symbol,"react.forward_ref"))||3911,R=k.options.__b;k.options.__b=function(n){var e;null!==(e=n.type)&&void 0!==e&&e.v&&n.ref&&(n.props.ref=n.ref,n.ref=null),null==R||R(n)};var A,M=function(n){function e(e){var t=e.ref,r=s(e,E);return n(r,t)}return e.$$typeof=P,e.render=e,e.prototype.isReactComponent=!0,e.v=!0,e},z=function(){var n=this;this.promise=new Promise((function(e,t){n.resolve=e,n.reject=t}))};function q(n){return new Promise((function(e){e(n())}))}function x(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,u=[],i=!0,a=!1;try{for(t=t.call(n);!(i=(r=t.next()).done)&&(u.push(r.value),!e||u.length!==e);i=!0);}catch(n){a=!0,o=n}finally{try{i||null==t.return||t.return()}finally{if(a)throw o}}return u}}(n,e)||p(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(n){var e=function(n,e){if("object"!==d(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,"string");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===d(e)?e:String(e)}var U,L=["auto","lazy","eager","unload"],F=(l(A={},"auto",0),l(A,"lazy",1),l(A,"eager",2),l(A,"unload",3),A);function _(n){var e=Object.getOwnPropertyDescriptor(n,"message");if(null!=e&&e.writable)return n;var t=n.message,r=n.stack,o=new Error(t);for(var u in n)o[u]=n[u];return o.stack=r,o}function B(n){for(var e,t=null,r="",o=y(arguments,!0);!(e=o()).done;){var u=e.value;u instanceof Error&&!t?t=_(u):(r&&(r+=" "),r+=u)}return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function D(n){var e,t;null===(e=(t=self).__AMP_REPORT_ERROR)||void 0===e||e.call(t,n)}function V(n){var e=B.apply(null,arguments);return e.expected=!0,e}var W,J=["Webkit","webkit","Moz","moz","ms","O","o"];function Y(n,e,t,r,o){var u=function(n,e,t){if($(e))return e;U||(U=g());var r=U[e];if(!r||t){if(r=e,void 0===n[e]){var o=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(e),u=function(n,e){for(var t=0;t<J.length;t++){var r=J[t]+e;if(void 0!==n[r])return r}return""}(n,o);void 0!==n[u]&&(r=u)}t||(U[e]=r)}return r}(n.style,e,o);if(u){var i=r?t+r:t;$(u)?n.style.setProperty(u,i):n.style[u]=i}}function $(n){return n.startsWith("--")}function H(n){return null==n.__AMP_AUTOPLAY&&(n.__AMP_AUTOPLAY=function(n){var e,t=n.document.createElement("video");return t.setAttribute("muted",""),t.setAttribute("playsinline",""),t.setAttribute("webkit-playsinline",""),t.setAttribute("height","0"),t.setAttribute("width","0"),t.muted=!0,t.playsInline=!0,t.playsinline=!0,t.webkitPlaysinline=!0,function(n,e){for(var t in e)Y(n,t,e[t])}(t,{position:"fixed",top:"0",width:"0",height:"0",opacity:"0"}),e=t,q((function(){return e.play()})).catch((function(){})),Promise.resolve(!t.paused)}(n)),n.__AMP_AUTOPLAY}function Z(){var n=W||(W=(0,S.createContext)({renderable:!0,playable:!0,loading:"auto"}));return(0,N.useContext)(n)}var G=[null,"paint","layout","content","size","size paint","size layout","strict"],K={"position":"relative","width":"100%","height":"100%"},Q=M((function(n,e){var t="className",r=n.as,o=void 0===r?"div":r,u=n.children,i=n.contentAs,a=void 0===i?"div":i,l=n.contentClassName,c=n.contentProps,v=n.contentRef,d=n.contentStyle,m=n.layout,p=void 0!==m&&m,y=n.paint,b=void 0!==y&&y,g=n.size,w=void 0!==g&&g,h=n.style,j=n.wrapperClassName,O=n.wrapperStyle,N=n[t],I=s(n,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",t].map(T)),C=(w?4:0)+(p?2:0)+(b?1:0);return S.createElement(o,f(f({},I),{},{ref:e,className:"".concat(N||""," ").concat(j||"").trim()||null,style:f(f(f({},h),O),{},{contain:G[C]})}),S.createElement(a,f(f({},c),{},{ref:v,className:l,style:f(f({},w&&K),{},{"overflow":b?"hidden":"visible"},d)}),u))}));function X(n){var e=(0,N.useRef)(null);return e.current=n,e}M((function(n,e){var t="className",r=n.as,o=void 0===r?"div":r,u=n.children,i=n.style,a=n.wrapperClassName,l=n.wrapperStyle,c=n[t],v=s(n,["as","children","style","wrapperClassName","wrapperStyle",t].map(T));return S.createElement(o,f(f({},v),{},{ref:e,className:"".concat(c||""," ").concat(a||"").trim()||null,style:f(f({},i),l)}),u)}));var nn=self.AMP_CONFIG||{},en=("string"==typeof nn.thirdPartyFrameRegex?new RegExp(nn.thirdPartyFrameRegex):nn.thirdPartyFrameRegex,("string"==typeof nn.cdnProxyRegex?new RegExp(nn.cdnProxyRegex):nn.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function tn(n){if(!self.document||!self.document.head)return null;if(self.location&&en.test(self.location.origin))return null;var e=self.document.head.querySelector('meta[name="'.concat(n,'"]'));return e&&e.getAttribute("content")||null}nn.thirdPartyUrl,nn.thirdPartyFrameHost,nn.cdnUrl||tn("runtime-host"),nn.errorReportingUrl,nn.betaErrorReportingUrl,nn.localDev,nn.geoApiUrl||tn("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var rn={"title":"","artist":"","album":"","artwork":[{"src":""}]};function on(n){var e=n.querySelector('script[type="application/ld+json"]');if(e){var t=function(n,e){try{return function(n){return JSON.parse(n)}(n)}catch(n){return null}}(e.textContent);if(t&&t.image)return"string"==typeof t.image?t.image:t.image["@list"]&&"string"==typeof t.image["@list"][0]?t.image["@list"][0]:"string"==typeof t.image.url?t.image.url:"string"==typeof t.image[0]?t.image[0]:void 0}}function un(n){var e=n.querySelector('link[rel="shortcut icon"]')||n.querySelector('link[rel="icon"]');return e?e.getAttribute("href"):void 0}function an(n){var e=n.displayIcon,t=n.displayOverlay,r=n.metadata,o=n.onOverlayClick,u=n.pause,i=n.play,a=n.playing,l=n.wrapperRef,c=Z().playable;return(0,N.useEffect)((function(){if(c){var n=new IntersectionObserver((function(n){n[n.length-1].isIntersecting?i().catch((function(){})):u()}),{threshold:.5});return n.observe(l.current),function(){n.disconnect()}}u()}),[l,i,u,c]),S.createElement(I,null,e&&S.createElement("div",{className:"eq-0be5b4b"+(a?" eq-playing-0be5b4b":"")},S.createElement(sn,null)),t&&S.createElement("button",{"aria-label":r&&r.title||"Unmute video",tabIndex:"0",className:"autoplay-mask-button-0be5b4b fill-content-overlay-c645120",onClick:o}))}var ln,cn,fn,sn=(ln=!1,cn=null,fn=function(){return[1,2,3,4].map((function(n){return S.createElement("div",{className:"eq-col-0be5b4b",key:n})}))},function(){if(!ln){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];cn=fn.apply(self,e),ln=!0,fn=null}return cn}),vn=M((function(n,e){var t,r="className",o=n.autoplay,u=void 0!==o&&o,i=n.component,a=void 0===i?"video":i,l=n.controls,c=void 0!==l&&l,v=n.loading,d=n.loop,m=void 0!==d&&d,p=n.mediasession,y=void 0===p||p,b=n.noaudio,g=void 0!==b&&b,w=n.onPlayingState,h=n.onReadyState,j=n.poster,O=n.sources,I=n.src,C=n.style,k=n[r],E=s(n,["autoplay","component","controls","loading","loop","mediasession","noaudio","onPlayingState","onReadyState","poster","sources","src","style",r].map(T));t=Z().notify,(0,N.useLayoutEffect)((function(){t&&t()}));var P=Z().playable,R=function(n){var e,t,r,o,u,i=Z().loading;return r=F[null!=(e=n)?e:"auto"]||0,o=F[null!=(t=i)?t:"auto"]||0,u=Math.max(r,o),L[u]}(v),A="unload"!==R,M=x((0,N.useState)(u),2),U=M[0],_=M[1],B=x((0,N.useState)(!1),2),W=B[0],J=B[1],Y=x((0,N.useState)(null),2),$=Y[0],H=Y[1],G=x((0,N.useState)(!u),2),K=G[0],nn=G[1],en=(0,N.useRef)(null),tn=(0,N.useRef)(null),ln=(0,N.useMemo)((function(){return new z}),[]),cn=(0,N.useRef)("loading"),fn=X(h),sn=(0,N.useCallback)((function(n,e){if(n!==cn.current){cn.current=n;var t=fn.current;t&&t(n,e)}}),[fn]),vn=X(w),dn=(0,N.useCallback)((function(n){J(n);var e=vn.current;e&&e(n)}),[vn]);(0,N.useLayoutEffect)((function(){A||dn(!1)}),[A,dn]);var mn=(0,N.useCallback)((function(){return ln.promise.then((function(){return n=tn.current,(e=q((function(){return n.play(!1)}))).catch((function(n){!function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];D(V.apply(null,t))}("TRYPLAY",n)})),e;var n,e}))}),[ln]),pn=(0,N.useCallback)((function(){ln.promise.then((function(){var n;return null===(n=tn.current)||void 0===n?void 0:n.pause()}))}),[ln]),yn=(0,N.useCallback)((function(){return ln.promise.then((function(){return tn.current.requestFullscreen()}))}),[ln]),bn=(0,N.useCallback)((function(){_(!1),nn(!0)}),[]);return(0,N.useLayoutEffect)((function(){var n,e=null===(n=tn.current)||void 0===n?void 0:n.readyState;null!=e&&sn(e>0?"complete":"loading")}),[sn]),(0,N.useLayoutEffect)((function(){return y&&W&&$&&function(n,e,t,r){var o=n.navigator;"mediaSession"in o&&n.MediaMetadata&&(o.mediaSession.metadata=new n.MediaMetadata(rn),o.mediaSession.metadata=new n.MediaMetadata(e),o.mediaSession.setActionHandler("play",t),o.mediaSession.setActionHandler("pause",r))}(window,$,mn,pn),function(){}}),[y,W,$,mn,pn]),(0,N.useEffect)((function(){P||pn()}),[P,pn]),(0,N.useImperativeHandle)(e,(function(){return{get readyState(){return cn.current},play:mn,pause:pn,requestFullscreen:yn,get currentTime(){return tn.current?tn.current.currentTime:0},get duration(){return tn.current?tn.current.duration:NaN},get autoplay(){return u},get controls(){return c},get loop(){return m},userInteracted:bn,mute:function(){return _(!0)},unmute:function(){K&&_(!1)}}}),[mn,pn,yn,bn,K,u,c,m]),S.createElement(Q,{contentRef:en,className:k,style:C,size:!0,layout:!0,paint:!0},A&&S.createElement(a,f(f({},E),{},{ref:tn,loading:R,muted:U,loop:m,controls:c&&(!u||K),onCanPlay:function(){ln.resolve(),sn("complete")},onLoadedMetadata:function(){y&&ln.promise.then((function(){var n,e,t,r;H((n=tn.current,f({"title":(e=E).title||e["aria-label"]||document.title,"artist":e.artist||"","album":e.album||"","artwork":[{"src":e.artwork||e.poster||on(document)||(t=document,r=t.querySelector('meta[property="og:image"]'),r?r.getAttribute("content"):void 0)||un(document)||""}]},n&&n.getMetadata?n.getMetadata():Object.create(null))))})),sn("complete")},onPlaying:function(){return dn(!0)},onPause:function(){return dn(!1)},onEnded:function(){return dn(!1)},onError:function(n){sn("error",n),ln.reject(n)},className:"fill-stretch-c645120",src:I,poster:j}),O),u&&!K&&S.createElement(an,{metadata:$,playing:W,displayIcon:!g&&U,wrapperRef:en,play:mn,pause:pn,displayOverlay:c,onOverlayClick:bn}))}));vn.displayName="VideoWrapper";var dn=["loading","unloadOnPause","sandbox","muted","controls","origin","onCanPlay","onMessage","playerStateRef","makeMethodMessage","makeFullscreenMessage","onIframeLoad"],mn=["allow-scripts","allow-same-origin","allow-popups","allow-popups-to-escape-sandbox","allow-top-navigation-by-user-activation"].join(" ");function pn(n,e,t){n&&n.contentWindow&&e.then((function(){n.contentWindow.postMessage(t(),"*")}))}var yn=M((function(n,e){var t=n.loading,r=n.unloadOnPause,o=void 0!==r&&r,u=n.sandbox,i=void 0===u?mn:u,a=n.muted,l=void 0!==a&&a,c=n.controls,v=void 0!==c&&c,d=n.origin,m=n.onCanPlay,p=n.onMessage,y=n.playerStateRef,b=n.makeMethodMessage,g=n.makeFullscreenMessage,w=n.onIframeLoad,h=s(n,dn),j=(0,N.useRef)(null),O=(0,N.useMemo)((function(){return new z}),[]),I=(0,N.useRef)(b),C=(0,N.useCallback)((function(n){pn(null==j?void 0:j.current,O.promise,(function(){return I.current(n)}))}),[O.promise]),k=(0,N.useRef)(g),E=(0,N.useCallback)((function(){return pn(null==j?void 0:j.current,O.promise,k.current)}),[O.promise]);(0,N.useImperativeHandle)(e,(function(){return{get currentTime(){var n,e;return null!==(n=null==y||null===(e=y.current)||void 0===e?void 0:e.currentTime)&&void 0!==n?n:NaN},get duration(){var n,e;return null!==(n=null==y||null===(e=y.current)||void 0===e?void 0:e.duration)&&void 0!==n?n:NaN},requestFullscreen:function(){if(!k.current)return O.promise.then((function(){j.current.requestFullscreen()}));E()},play:function(){return C("play")},pause:function(){if(o){var n=j.current;n&&(n.src=n.src)}else C("pause")}}}),[y,C,E,O.promise,o]);var P=function(n){var e=(0,N.useRef)(null);return e.current=n,e}(p);return(0,N.useLayoutEffect)((function(){if(j.current){var n=j.current.ownerDocument.defaultView;return n.addEventListener("message",e),function(){return n.removeEventListener("message",e)}}function e(n){P.current&&(d&&!d.test(n.origin)||n.source!=j.current.contentWindow||P.current({currentTarget:j.current,target:j.current,data:n.data}))}}),[d,P]),(0,N.useLayoutEffect)((function(){C(l?"mute":"unmute")}),[l,C]),(0,N.useLayoutEffect)((function(){C(v?"showControls":"hideControls")}),[v,C]),S.createElement("iframe",f(f({},h),{},{ref:j,allowfullscreen:!0,frameborder:"0",sandbox:i,loading:t,onCanPlay:function(){m&&O.promise.then(m),O.resolve()},onLoad:function(n){null==w||w(n)}}))}));yn.displayName="VideoIframeInternal";var bn=M((function(n,e){return S.createElement(vn,f(f({ref:e},n),{},{component:yn}))}));function gn(n,e){return function(n,e,t){if(!e)return n;var r=n.split("#",2),o=r[0].split("?",2);return o[0]+(o[1]?"?".concat(o[1],"&").concat(e):"?".concat(e))+(r[1]?"#".concat(r[1]):"")}(n,function(n){var e,t,r,o=[];for(var u in n){var i=n[u];if(null!=i){i=v(r=i)?r:[r];for(var a=0;a<i.length;a++)o.push((e=u,t=i[a],"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t))))}}return o.join("&")}(e))}function wn(n,e){return JSON.stringify({"command":n,"parameters":e})}bn.displayName="VideoIframe",new Set(["c","v","a","ad"]);var hn=["autoplay","endscreenEnable","info","mute","sharingEnable","start","uiHighlight","uiLogo","videoId"];function jn(n){switch(n){case"mute":return wn("muted",[!0]);case"unmute":return wn("muted",[!1]);case"showControls":return wn("controls",[!0]);case"hideControls":return wn("controls",[!1]);default:return wn(n)}}function On(n){var e=n.currentTarget,t=function(n){var e,t=g();if(!n)return t;for(;e=j.exec(n);){var r=O(e[1],e[1]),o=e[2]?O(e[2].replace(/\+/g," "),e[2]):"";t[r]=o}return t}(n.data),r=null==t?void 0:t.event;"pause"===r?h(e,"pause"):"play"===r?h(e,"playing"):"end"===r?(h(e,"pause"),h(e,"end")):"apiready"===r&&h(e,"canplay")}function Sn(n,e){var t=n.autoplay,r=n.endscreenEnable,o=n.info,u=n.mute,i=n.sharingEnable,a=n.start,l=n.uiHighlight,c=n.uiLogo,v=n.videoId,d=s(n,hn),m=(0,N.useMemo)((function(){return function(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],u=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],a=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,c=!(arguments.length>9&&void 0!==arguments[9])||arguments[9],s=arguments.length>10?arguments[10]:void 0;return gn("https://www.dailymotion.com/embed/video/".concat(encodeURIComponent(e),"?api=1&html=1&app=amp"),f({"endscreen-enable":r?void 0:r,"info":o?void 0:o,"mute":u||t&&H(n)?1:void 0,"sharing-enable":i?void 0:i,"start":a,"ui-highlight":l,"ui-logo":c?void 0:c},s))}(window,v,t,r,o,u,i,a,l,c)}),[v,t,r,o,u,i,a,l,c]);return S.createElement(bn,f(f({autoplay:t,controls:!0,ref:e},d),{},{src:m,makeMethodMessage:jn,onMessage:On}))}var Nn=M(Sn);Nn.displayName="BentoDailymotion";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -42,2 +42,7 @@ var __create = Object.create;

// src/core/mode/prod.js
function isProd() {
return false;
}
// src/core/mode/minified.js

@@ -206,4 +211,45 @@ function isMinified() {

// extensions/amp-dailymotion/1.0/component.js
var import_compat5 = __toModule(require("react"));
// src/preact/compat.js
var import_preact2 = __toModule(require("react"));
var _excluded = ["ref"];
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null)
return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0)
continue;
target[key] = source[key];
}
return target;
}
var REACT_FORWARD_SYMBOL = typeof Symbol !== "undefined" && (Symbol.for == null ? void 0 : Symbol.for("react.forward_ref")) || 3911;
var diffKey = "__b";
var oldDiff = import_preact2.options[diffKey];
import_preact2.options[diffKey] = newDiff;
function newDiff(vnode) {
var _vnode$type;
if ((_vnode$type = vnode["type"]) != null && _vnode$type.forwardRef_ && vnode["ref"]) {
vnode["props"]["ref"] = vnode["ref"];
vnode["ref"] = null;
}
oldDiff == null ? void 0 : oldDiff(vnode);
}
var forwardRef = function forwardRef2(Component) {
function Forward(props) {
var ref = props.ref, clone = _objectWithoutPropertiesLoose(props, _excluded);
return Component(clone, ref);
}
Forward.$$typeof = REACT_FORWARD_SYMBOL;
Forward.render = Forward;
Forward.prototype.isReactComponent = true;
Forward.forwardRef_ = true;
if (!isProd()) {
Forward.displayName = "ForwardRef(" + (Component.displayName || Component.name) + ")";
}
return Forward;
};

@@ -224,5 +270,2 @@ // src/core/data-structures/promise.js

// extensions/amp-video/1.0/video-iframe.js
var import_compat4 = __toModule(require("react"));
// extensions/amp-video/1.0/autoplay.jss.js

@@ -486,8 +529,2 @@ var $autoplayMaskButton = "autoplay-mask-button-0be5b4b";

// extensions/amp-video/1.0/component.js
var import_compat3 = __toModule(require("react"));
// src/preact/component/contain.jsx
var import_compat = __toModule(require("react"));
// src/preact/context.tsx

@@ -536,3 +573,3 @@ var context;

}
function _objectWithoutPropertiesLoose(source, excluded) {
function _objectWithoutPropertiesLoose2(source, excluded) {
if (source == null)

@@ -583,3 +620,3 @@ return {};

function ContainWrapperWithRef(_ref, ref) {
var _propName = "className", _ref$as = _ref.as, Comp = _ref$as === void 0 ? "div" : _ref$as, children = _ref.children, _ref$contentAs = _ref.contentAs, ContentComp = _ref$contentAs === void 0 ? "div" : _ref$contentAs, contentClassName = _ref.contentClassName, contentProps = _ref.contentProps, contentRef = _ref.contentRef, contentStyle = _ref.contentStyle, _ref$layout = _ref.layout, layout = _ref$layout === void 0 ? false : _ref$layout, _ref$paint = _ref.paint, paint = _ref$paint === void 0 ? false : _ref$paint, _ref$size = _ref.size, size = _ref$size === void 0 ? false : _ref$size, style = _ref["style"], wrapperClassName = _ref.wrapperClassName, wrapperStyle = _ref.wrapperStyle, className = _ref[_propName], rest = _objectWithoutPropertiesLoose(_ref, ["as", "children", "contentAs", "contentClassName", "contentProps", "contentRef", "contentStyle", "layout", "paint", "size", "style", "wrapperClassName", "wrapperStyle", _propName].map(_toPropertyKey));
var _propName = "className", _ref$as = _ref.as, Comp = _ref$as === void 0 ? "div" : _ref$as, children = _ref.children, _ref$contentAs = _ref.contentAs, ContentComp = _ref$contentAs === void 0 ? "div" : _ref$contentAs, contentClassName = _ref.contentClassName, contentProps = _ref.contentProps, contentRef = _ref.contentRef, contentStyle = _ref.contentStyle, _ref$layout = _ref.layout, layout = _ref$layout === void 0 ? false : _ref$layout, _ref$paint = _ref.paint, paint = _ref$paint === void 0 ? false : _ref$paint, _ref$size = _ref.size, size = _ref$size === void 0 ? false : _ref$size, style = _ref["style"], wrapperClassName = _ref.wrapperClassName, wrapperStyle = _ref.wrapperStyle, className = _ref[_propName], rest = _objectWithoutPropertiesLoose2(_ref, ["as", "children", "contentAs", "contentClassName", "contentProps", "contentRef", "contentStyle", "layout", "paint", "size", "style", "wrapperClassName", "wrapperStyle", _propName].map(_toPropertyKey));
var containIndex = (size ? 4 : 0) + (layout ? 2 : 0) + (paint ? 1 : 0);

@@ -600,6 +637,5 @@ return import_preact.createElement(Comp, _extends({}, rest, {

}
var ContainWrapper = (0, import_compat.forwardRef)(ContainWrapperWithRef);
var ContainWrapper = forwardRef(ContainWrapperWithRef);
// src/preact/component/wrapper.js
var import_compat2 = __toModule(require("react"));
function _extends2() {

@@ -619,3 +655,3 @@ _extends2 = Object.assign || function(target) {

}
function _objectWithoutPropertiesLoose2(source, excluded) {
function _objectWithoutPropertiesLoose3(source, excluded) {
if (source == null)

@@ -651,3 +687,3 @@ return {};

function WrapperWithRef(_ref, ref) {
var _propName = "className", _ref$as = _ref.as, Comp = _ref$as === void 0 ? "div" : _ref$as, children = _ref.children, style = _ref["style"], wrapperClassName = _ref.wrapperClassName, wrapperStyle = _ref.wrapperStyle, className = _ref[_propName], rest = _objectWithoutPropertiesLoose2(_ref, ["as", "children", "style", "wrapperClassName", "wrapperStyle", _propName].map(_toPropertyKey2));
var _propName = "className", _ref$as = _ref.as, Comp = _ref$as === void 0 ? "div" : _ref$as, children = _ref.children, style = _ref["style"], wrapperClassName = _ref.wrapperClassName, wrapperStyle = _ref.wrapperStyle, className = _ref[_propName], rest = _objectWithoutPropertiesLoose3(_ref, ["as", "children", "style", "wrapperClassName", "wrapperStyle", _propName].map(_toPropertyKey2));
return import_preact.createElement(Comp, _extends2({}, rest, {

@@ -659,3 +695,3 @@ ref: ref,

}
var Wrapper = (0, import_compat2.forwardRef)(WrapperWithRef);
var Wrapper = forwardRef(WrapperWithRef);

@@ -765,3 +801,3 @@ // src/preact/component/value-ref.js

// extensions/amp-video/1.0/component.js
function _objectWithoutPropertiesLoose3(source, excluded) {
function _objectWithoutPropertiesLoose4(source, excluded) {
if (source == null)

@@ -821,3 +857,3 @@ return {};

function VideoWrapperWithRef(_ref, ref) {
var _propName = "className", _ref$autoplay = _ref.autoplay, autoplay = _ref$autoplay === void 0 ? false : _ref$autoplay, _ref$component = _ref.component, Component = _ref$component === void 0 ? "video" : _ref$component, _ref$controls = _ref.controls, controls = _ref$controls === void 0 ? false : _ref$controls, loadingProp = _ref.loading, _ref$loop = _ref.loop, loop = _ref$loop === void 0 ? false : _ref$loop, _ref$mediasession = _ref.mediasession, mediasession = _ref$mediasession === void 0 ? true : _ref$mediasession, _ref$noaudio = _ref.noaudio, noaudio = _ref$noaudio === void 0 ? false : _ref$noaudio, onPlayingState = _ref.onPlayingState, onReadyState = _ref.onReadyState, poster = _ref.poster, sources = _ref.sources, src = _ref.src, style = _ref.style, className = _ref[_propName], rest = _objectWithoutPropertiesLoose3(_ref, ["autoplay", "component", "controls", "loading", "loop", "mediasession", "noaudio", "onPlayingState", "onReadyState", "poster", "sources", "src", "style", _propName].map(_toPropertyKey3));
var _propName = "className", _ref$autoplay = _ref.autoplay, autoplay = _ref$autoplay === void 0 ? false : _ref$autoplay, _ref$component = _ref.component, Component = _ref$component === void 0 ? "video" : _ref$component, _ref$controls = _ref.controls, controls = _ref$controls === void 0 ? false : _ref$controls, loadingProp = _ref.loading, _ref$loop = _ref.loop, loop = _ref$loop === void 0 ? false : _ref$loop, _ref$mediasession = _ref.mediasession, mediasession = _ref$mediasession === void 0 ? true : _ref$mediasession, _ref$noaudio = _ref.noaudio, noaudio = _ref$noaudio === void 0 ? false : _ref$noaudio, onPlayingState = _ref.onPlayingState, onReadyState = _ref.onReadyState, poster = _ref.poster, sources = _ref.sources, src = _ref.src, style = _ref.style, className = _ref[_propName], rest = _objectWithoutPropertiesLoose4(_ref, ["autoplay", "component", "controls", "loading", "loop", "mediasession", "noaudio", "onPlayingState", "onReadyState", "poster", "sources", "src", "style", _propName].map(_toPropertyKey3));
useResourcesNotify();

@@ -1032,7 +1068,7 @@ var _useAmpContext = useAmpContext(), playable = _useAmpContext.playable;

});
var VideoWrapper = (0, import_compat3.forwardRef)(VideoWrapperWithRef);
var VideoWrapper = forwardRef(VideoWrapperWithRef);
VideoWrapper.displayName = "VideoWrapper";
// extensions/amp-video/1.0/video-iframe.js
var _excluded = ["loading", "unloadOnPause", "sandbox", "muted", "controls", "origin", "onCanPlay", "onMessage", "playerStateRef", "makeMethodMessage", "makeFullscreenMessage", "onIframeLoad"];
var _excluded2 = ["loading", "unloadOnPause", "sandbox", "muted", "controls", "origin", "onCanPlay", "onMessage", "playerStateRef", "makeMethodMessage", "makeFullscreenMessage", "onIframeLoad"];
function _extends4() {

@@ -1052,3 +1088,3 @@ _extends4 = Object.assign || function(target) {

}
function _objectWithoutPropertiesLoose4(source, excluded) {
function _objectWithoutPropertiesLoose5(source, excluded) {
if (source == null)

@@ -1082,3 +1118,3 @@ return {};

function VideoIframeInternalWithRef(_ref, ref) {
var loading = _ref.loading, _ref$unloadOnPause = _ref.unloadOnPause, unloadOnPause = _ref$unloadOnPause === void 0 ? false : _ref$unloadOnPause, _ref$sandbox = _ref.sandbox, sandbox = _ref$sandbox === void 0 ? DEFAULT_SANDBOX : _ref$sandbox, _ref$muted = _ref.muted, muted = _ref$muted === void 0 ? false : _ref$muted, _ref$controls = _ref.controls, controls = _ref$controls === void 0 ? false : _ref$controls, origin = _ref.origin, _onCanPlay = _ref.onCanPlay, onMessage2 = _ref.onMessage, playerStateRef = _ref.playerStateRef, makeMethodMessageProp = _ref.makeMethodMessage, makeFullscreenMessageProp = _ref.makeFullscreenMessage, onIframeLoad = _ref.onIframeLoad, rest = _objectWithoutPropertiesLoose4(_ref, _excluded);
var loading = _ref.loading, _ref$unloadOnPause = _ref.unloadOnPause, unloadOnPause = _ref$unloadOnPause === void 0 ? false : _ref$unloadOnPause, _ref$sandbox = _ref.sandbox, sandbox = _ref$sandbox === void 0 ? DEFAULT_SANDBOX : _ref$sandbox, _ref$muted = _ref.muted, muted = _ref$muted === void 0 ? false : _ref$muted, _ref$controls = _ref.controls, controls = _ref$controls === void 0 ? false : _ref$controls, origin = _ref.origin, _onCanPlay = _ref.onCanPlay, onMessage2 = _ref.onMessage, playerStateRef = _ref.playerStateRef, makeMethodMessageProp = _ref.makeMethodMessage, makeFullscreenMessageProp = _ref.makeFullscreenMessage, onIframeLoad = _ref.onIframeLoad, rest = _objectWithoutPropertiesLoose5(_ref, _excluded2);
var iframeRef = (0, import_hooks.useRef)(null);

@@ -1179,3 +1215,3 @@ var readyDeferred = (0, import_hooks.useMemo)(function() {

}
var VideoIframeInternal = (0, import_compat4.forwardRef)(VideoIframeInternalWithRef);
var VideoIframeInternal = forwardRef(VideoIframeInternalWithRef);
VideoIframeInternal.displayName = "VideoIframeInternal";

@@ -1189,3 +1225,3 @@ function VideoIframeWithRef(props, ref) {

}
var VideoIframe = (0, import_compat4.forwardRef)(VideoIframeWithRef);
var VideoIframe = forwardRef(VideoIframeWithRef);
VideoIframe.displayName = "VideoIframe";

@@ -1300,3 +1336,3 @@

// extensions/amp-dailymotion/1.0/component.js
var _excluded2 = ["autoplay", "endscreenEnable", "info", "mute", "sharingEnable", "start", "uiHighlight", "uiLogo", "videoId"];
var _excluded3 = ["autoplay", "endscreenEnable", "info", "mute", "sharingEnable", "start", "uiHighlight", "uiLogo", "videoId"];
function _extends6() {

@@ -1316,3 +1352,3 @@ _extends6 = Object.assign || function(target) {

}
function _objectWithoutPropertiesLoose5(source, excluded) {
function _objectWithoutPropertiesLoose6(source, excluded) {
if (source == null)

@@ -1361,3 +1397,3 @@ return {};

function BentoDailymotionWithRef(_ref2, ref) {
var autoplay = _ref2.autoplay, endscreenEnable = _ref2.endscreenEnable, info = _ref2.info, mute = _ref2.mute, sharingEnable = _ref2.sharingEnable, start = _ref2.start, uiHighlight = _ref2.uiHighlight, uiLogo = _ref2.uiLogo, videoId = _ref2.videoId, rest = _objectWithoutPropertiesLoose5(_ref2, _excluded2);
var autoplay = _ref2.autoplay, endscreenEnable = _ref2.endscreenEnable, info = _ref2.info, mute = _ref2.mute, sharingEnable = _ref2.sharingEnable, start = _ref2.start, uiHighlight = _ref2.uiHighlight, uiLogo = _ref2.uiLogo, videoId = _ref2.videoId, rest = _objectWithoutPropertiesLoose6(_ref2, _excluded3);
var src = (0, import_hooks.useMemo)(function() {

@@ -1376,5 +1412,5 @@ return getDailymotionIframeSrc(window, videoId, autoplay, endscreenEnable, info, mute, sharingEnable, start, uiHighlight, uiLogo);

}
var BentoDailymotion = (0, import_compat5.forwardRef)(BentoDailymotionWithRef);
var BentoDailymotion = forwardRef(BentoDailymotionWithRef);
BentoDailymotion.displayName = "BentoDailymotion";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-react.max.js.map

@@ -0,1 +1,6 @@

// src/core/mode/prod.js
function isProd() {
return false;
}
// src/core/mode/minified.js

@@ -162,4 +167,47 @@ function isMinified() {

// extensions/amp-dailymotion/1.0/component.js
import { forwardRef as forwardRef5 } from "react";
// src/preact/compat.js
import { options, toChildArray } from "react";
var _excluded = ["ref"];
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null)
return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0)
continue;
target[key] = source[key];
}
return target;
}
var REACT_FORWARD_SYMBOL = typeof Symbol !== "undefined" && (Symbol.for == null ? void 0 : Symbol.for("react.forward_ref")) || 3911;
var diffKey = "__b";
var oldDiff = options[diffKey];
options[diffKey] = newDiff;
function newDiff(vnode) {
var _vnode$type;
if ((_vnode$type = vnode["type"]) != null && _vnode$type.forwardRef_ && vnode["ref"]) {
vnode["props"]["ref"] = vnode["ref"];
vnode["ref"] = null;
}
oldDiff == null ? void 0 : oldDiff(vnode);
}
var forwardRef = function forwardRef2(Component) {
function Forward(props) {
const {
ref
} = props, clone = _objectWithoutPropertiesLoose(props, _excluded);
return Component(clone, ref);
}
Forward.$$typeof = REACT_FORWARD_SYMBOL;
Forward.render = Forward;
Forward.prototype.isReactComponent = true;
Forward.forwardRef_ = true;
if (!isProd()) {
Forward.displayName = `ForwardRef(${Component.displayName || Component.name})`;
}
return Forward;
};

@@ -181,5 +229,2 @@ // src/core/data-structures/promise.js

// extensions/amp-video/1.0/video-iframe.js
import { forwardRef as forwardRef4 } from "react";
// extensions/amp-video/1.0/autoplay.jss.js

@@ -402,8 +447,2 @@ var $autoplayMaskButton = "autoplay-mask-button-0be5b4b";

// extensions/amp-video/1.0/component.js
import { forwardRef as forwardRef3 } from "react";
// src/preact/component/contain.jsx
import { forwardRef } from "react";
// src/preact/context.tsx

@@ -456,3 +495,3 @@ var context;

}
function _objectWithoutPropertiesLoose(source, excluded) {
function _objectWithoutPropertiesLoose2(source, excluded) {
if (source == null)

@@ -518,3 +557,3 @@ return {};

[_propName]: className
} = _ref, rest = _objectWithoutPropertiesLoose(_ref, ["as", "children", "contentAs", "contentClassName", "contentProps", "contentRef", "contentStyle", "layout", "paint", "size", "style", "wrapperClassName", "wrapperStyle", _propName].map(_toPropertyKey));
} = _ref, rest = _objectWithoutPropertiesLoose2(_ref, ["as", "children", "contentAs", "contentClassName", "contentProps", "contentRef", "contentStyle", "layout", "paint", "size", "style", "wrapperClassName", "wrapperStyle", _propName].map(_toPropertyKey));
const containIndex = (size ? 4 : 0) + (layout ? 2 : 0) + (paint ? 1 : 0);

@@ -538,3 +577,2 @@ return createElement(Comp, _extends({}, rest, {

// src/preact/component/wrapper.js
import { forwardRef as forwardRef2 } from "react";
function _extends2() {

@@ -554,3 +592,3 @@ _extends2 = Object.assign || function(target) {

}
function _objectWithoutPropertiesLoose2(source, excluded) {
function _objectWithoutPropertiesLoose3(source, excluded) {
if (source == null)

@@ -593,3 +631,3 @@ return {};

[_propName]: className
} = _ref, rest = _objectWithoutPropertiesLoose2(_ref, ["as", "children", "style", "wrapperClassName", "wrapperStyle", _propName].map(_toPropertyKey2));
} = _ref, rest = _objectWithoutPropertiesLoose3(_ref, ["as", "children", "style", "wrapperClassName", "wrapperStyle", _propName].map(_toPropertyKey2));
return createElement(Comp, _extends2({}, rest, {

@@ -601,3 +639,3 @@ ref,

}
var Wrapper = forwardRef2(WrapperWithRef);
var Wrapper = forwardRef(WrapperWithRef);

@@ -709,3 +747,3 @@ // src/preact/component/value-ref.js

// extensions/amp-video/1.0/component.js
function _objectWithoutPropertiesLoose3(source, excluded) {
function _objectWithoutPropertiesLoose4(source, excluded) {
if (source == null)

@@ -778,3 +816,3 @@ return {};

[_propName]: className
} = _ref, rest = _objectWithoutPropertiesLoose3(_ref, ["autoplay", "component", "controls", "loading", "loop", "mediasession", "noaudio", "onPlayingState", "onReadyState", "poster", "sources", "src", "style", _propName].map(_toPropertyKey3));
} = _ref, rest = _objectWithoutPropertiesLoose4(_ref, ["autoplay", "component", "controls", "loading", "loop", "mediasession", "noaudio", "onPlayingState", "onReadyState", "poster", "sources", "src", "style", _propName].map(_toPropertyKey3));
useResourcesNotify();

@@ -988,7 +1026,7 @@ const {

});
var VideoWrapper = forwardRef3(VideoWrapperWithRef);
var VideoWrapper = forwardRef(VideoWrapperWithRef);
VideoWrapper.displayName = "VideoWrapper";
// extensions/amp-video/1.0/video-iframe.js
var _excluded = ["loading", "unloadOnPause", "sandbox", "muted", "controls", "origin", "onCanPlay", "onMessage", "playerStateRef", "makeMethodMessage", "makeFullscreenMessage", "onIframeLoad"];
var _excluded2 = ["loading", "unloadOnPause", "sandbox", "muted", "controls", "origin", "onCanPlay", "onMessage", "playerStateRef", "makeMethodMessage", "makeFullscreenMessage", "onIframeLoad"];
function _extends4() {

@@ -1008,3 +1046,3 @@ _extends4 = Object.assign || function(target) {

}
function _objectWithoutPropertiesLoose4(source, excluded) {
function _objectWithoutPropertiesLoose5(source, excluded) {
if (source == null)

@@ -1051,3 +1089,3 @@ return {};

onIframeLoad
} = _ref, rest = _objectWithoutPropertiesLoose4(_ref, _excluded);
} = _ref, rest = _objectWithoutPropertiesLoose5(_ref, _excluded2);
const iframeRef = useRef(null);

@@ -1138,3 +1176,3 @@ const readyDeferred = useMemo(() => new Deferred(), []);

}
var VideoIframeInternal = forwardRef4(VideoIframeInternalWithRef);
var VideoIframeInternal = forwardRef(VideoIframeInternalWithRef);
VideoIframeInternal.displayName = "VideoIframeInternal";

@@ -1148,3 +1186,3 @@ function VideoIframeWithRef(props, ref) {

}
var VideoIframe = forwardRef4(VideoIframeWithRef);
var VideoIframe = forwardRef(VideoIframeWithRef);
VideoIframe.displayName = "VideoIframe";

@@ -1241,3 +1279,3 @@

// extensions/amp-dailymotion/1.0/component.js
var _excluded2 = ["autoplay", "endscreenEnable", "info", "mute", "sharingEnable", "start", "uiHighlight", "uiLogo", "videoId"];
var _excluded3 = ["autoplay", "endscreenEnable", "info", "mute", "sharingEnable", "start", "uiHighlight", "uiLogo", "videoId"];
function _extends6() {

@@ -1257,3 +1295,3 @@ _extends6 = Object.assign || function(target) {

}
function _objectWithoutPropertiesLoose5(source, excluded) {
function _objectWithoutPropertiesLoose6(source, excluded) {
if (source == null)

@@ -1314,3 +1352,3 @@ return {};

videoId
} = _ref, rest = _objectWithoutPropertiesLoose5(_ref, _excluded2);
} = _ref, rest = _objectWithoutPropertiesLoose6(_ref, _excluded3);
const src = useMemo(() => getDailymotionIframeSrc(window, videoId, autoplay, endscreenEnable, info, mute, sharingEnable, start, uiHighlight, uiLogo), [videoId, autoplay, endscreenEnable, info, mute, sharingEnable, start, uiHighlight, uiLogo]);

@@ -1327,3 +1365,3 @@ return createElement(VideoIframe, _extends6({

}
var BentoDailymotion = forwardRef5(BentoDailymotionWithRef);
var BentoDailymotion = forwardRef(BentoDailymotionWithRef);
BentoDailymotion.displayName = "BentoDailymotion";

@@ -1330,0 +1368,0 @@ export {

@@ -1,2 +0,2 @@

function n(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function e(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function t(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))}))}return t}function r(n,e){if(null==n)return{};var t,r,o={},a=Object.keys(n);for(r=0;r<a.length;r++)t=a[r],e.indexOf(t)>=0||(o[t]=n[t]);return o}var{isArray:o}=Array;function a(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function l(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=function(n,e){if(n){if("string"==typeof n)return a(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(n,e):void 0}}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var{hasOwnProperty:i,toString:u}=Object.prototype;function s(n){const e=Object.create(null);return n&&Object.assign(e,n),e}var c={bubbles:!0,cancelable:!0};function f(n,e,t,r){const o=t||{};n.ownerDocument;const a=n.ownerDocument.createEvent("Event");a.data=o;const{bubbles:l,cancelable:i}=r||c;a.initEvent(e,l,i),n.dispatchEvent(a)}var d=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function p(n,e=""){try{return decodeURIComponent(n)}catch(n){return e}}import{hydrate as m,render as y}from"react-dom";import{createElement as v,cloneElement as b,createRef as g,createContext as w}from"react";import{useState as h,useRef as O,useEffect as S,useLayoutEffect as j,useContext as N,useMemo as C,useCallback as I,useImperativeHandle as R}from"react";function k(n){return n.children}import{forwardRef as P}from"react";var E=class{constructor(){this.promise=new Promise(((n,e)=>{this.resolve=n,this.reject=e}))}};function M(n){return new Promise((e=>{e(n())}))}import{forwardRef as $}from"react";function z(n){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function A(n){var e=function(n,e){if("object"!==z(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,"string");if("object"!==z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===z(e)?e:String(e)}var x,L=["auto","lazy","eager","unload"],T={auto:0,lazy:1,eager:2,unload:3};function U(n){const e=Object.getOwnPropertyDescriptor(n,"message");if(null!=e&&e.writable)return n;const{message:t,stack:r}=n,o=new Error(t);for(const e in n)o[e]=n[e];return o.stack=r,o}function q(n){let e=null,t="";for(var r,o=l(arguments,!0);!(r=o()).done;){const n=r.value;n instanceof Error&&!e?e=U(n):(t&&(t+=" "),t+=n)}return e?t&&(e.message=t+": "+e.message):e=new Error(t),e}function F(n){const e=q.apply(null,arguments);return e.expected=!0,e}function V(n,...e){var t,r,o;t=F.apply(null,e),null===(r=(o=self).__AMP_REPORT_ERROR)||void 0===r||r.call(o,t)}var H,J=["Webkit","webkit","Moz","moz","ms","O","o"];function W(n,e,t,r,o){const a=function(n,e,t){if(B(e))return e;x||(x=s());let r=x[e];if(!r||t){if(r=e,void 0===n[e]){const t=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(e),o=function(n,e){for(let t=0;t<J.length;t++){const r=J[t]+e;if(void 0!==n[r])return r}return""}(n,t);void 0!==n[o]&&(r=o)}t||(x[e]=r)}return r}(n.style,e,o);if(!a)return;const l=r?t+r:t;B(a)?n.style.setProperty(a,l):n.style[a]=l}function B(n){return n.startsWith("--")}function D(n){return null==n.__AMP_AUTOPLAY&&(n.__AMP_AUTOPLAY=function(n){const e=n.document.createElement("video");var t;return e.setAttribute("muted",""),e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("height","0"),e.setAttribute("width","0"),e.muted=!0,e.playsInline=!0,e.playsinline=!0,e.webkitPlaysinline=!0,function(n,e){for(const t in e)W(n,t,e[t])}(e,{position:"fixed",top:"0",width:"0",height:"0",opacity:"0"}),t=e,M((()=>t.play())).catch((()=>{})),Promise.resolve(!e.paused)}(n)),n.__AMP_AUTOPLAY}import{forwardRef as Z}from"react";import{forwardRef as _}from"react";function G(){const n=H||(H=w({renderable:!0,playable:!0,loading:"auto"}));return N(n)}var K=[null,"paint","layout","content","size","size paint","size layout","strict"],Q={"position":"relative","width":"100%","height":"100%"},X=_((function(n,e){let o="className",{as:a="div",children:l,contentAs:i="div",contentClassName:u,contentProps:s,contentRef:c,contentStyle:f,layout:d=!1,paint:p=!1,size:m=!1,"style":y,wrapperClassName:b,wrapperStyle:g,[o]:w}=n,h=r(n,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",o].map(A));const O=(m?4:0)+(d?2:0)+(p?1:0);return v(a,t(t({},h),{},{ref:e,className:`${w||""} ${b||""}`.trim()||null,style:t(t(t({},y),g),{},{contain:K[O]})}),v(i,t(t({},s),{},{ref:c,className:u,style:t(t({},m&&Q),{},{"overflow":p?"hidden":"visible"},f)}),l))}));import{forwardRef as Y}from"react";function nn(n){const e=O(null);return e.current=n,e}Y((function(n,e){let o="className",{as:a="div",children:l,"style":i,wrapperClassName:u,wrapperStyle:s,[o]:c}=n,f=r(n,["as","children","style","wrapperClassName","wrapperStyle",o].map(A));return v(a,t(t({},f),{},{ref:e,className:`${c||""} ${u||""}`.trim()||null,style:t(t({},i),s)}),l)}));var en=self.AMP_CONFIG||{},tn=("string"==typeof en.thirdPartyFrameRegex?new RegExp(en.thirdPartyFrameRegex):en.thirdPartyFrameRegex,("string"==typeof en.cdnProxyRegex?new RegExp(en.cdnProxyRegex):en.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function rn(n){if(!self.document||!self.document.head)return null;if(self.location&&tn.test(self.location.origin))return null;const e=self.document.head.querySelector(`meta[name="${n}"]`);return e&&e.getAttribute("content")||null}en.thirdPartyUrl,en.thirdPartyFrameHost,en.cdnUrl||rn("runtime-host"),en.errorReportingUrl,en.betaErrorReportingUrl,en.localDev,en.geoApiUrl||rn("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var on={"title":"","artist":"","album":"","artwork":[{"src":""}]};function an(n){const e=n.querySelector('script[type="application/ld+json"]');if(!e)return;const t=function(n,e){try{return function(n){return JSON.parse(n)}(n)}catch(n){return null}}(e.textContent);return t&&t.image?"string"==typeof t.image?t.image:t.image["@list"]&&"string"==typeof t.image["@list"][0]?t.image["@list"][0]:"string"==typeof t.image.url?t.image.url:"string"==typeof t.image[0]?t.image[0]:void 0:void 0}function ln(n){const e=n.querySelector('meta[property="og:image"]');return e?e.getAttribute("content"):void 0}function un(n){const e=n.querySelector('link[rel="shortcut icon"]')||n.querySelector('link[rel="icon"]');return e?e.getAttribute("href"):void 0}function sn({displayIcon:n,displayOverlay:e,metadata:t,onOverlayClick:r,pause:o,play:a,playing:l,wrapperRef:i}){const{playable:u}=G();return S((()=>{if(!u)return void o();const n=new IntersectionObserver((n=>{n[n.length-1].isIntersecting?a().catch((()=>{})):o()}),{threshold:.5});return n.observe(i.current),()=>{n.disconnect()}}),[i,a,o,u]),v(k,null,n&&v("div",{className:"eq-0be5b4b"+(l?" eq-playing-0be5b4b":"")},v(cn,null)),e&&v("button",{"aria-label":t&&t.title||"Unmute video",tabIndex:"0",className:"autoplay-mask-button-0be5b4b fill-content-overlay-c645120",onClick:r}))}var cn=function(n){let e=!1,t=null,r=()=>[1,2,3,4].map((n=>v("div",{className:"eq-col-0be5b4b",key:n})));return(...n)=>(e||(t=r.apply(self,n),e=!0,r=null),t)}(),fn=Z((function(n,e){let o="className",{autoplay:a=!1,component:l="video",controls:i=!1,loading:u,loop:s=!1,mediasession:c=!0,noaudio:f=!1,onPlayingState:d,onReadyState:p,poster:m,sources:y,src:b,style:g,[o]:w}=n,N=r(n,["autoplay","component","controls","loading","loop","mediasession","noaudio","onPlayingState","onReadyState","poster","sources","src","style",o].map(A));!function(){const{notify:n}=G();j((()=>{n&&n()}))}();const{playable:k}=G(),P=function(n){const{loading:e}=G();return function(n,e){const t=T[null!=n?n:"auto"]||0,r=T[null!=e?e:"auto"]||0,o=Math.max(t,r);return L[o]}(n,e)}(u),$="unload"!==P,[z,x]=h(a),[U,q]=h(!1),[F,H]=h(null),[J,W]=h(!a),B=O(null),D=O(null),Z=C((()=>new E),[]),_=O("loading"),K=nn(p),Q=I(((n,e)=>{if(n!==_.current){_.current=n;const t=K.current;t&&t(n,e)}}),[K]),Y=nn(d),en=I((n=>{q(n);const e=Y.current;e&&e(n)}),[Y]);j((()=>{$||en(!1)}),[$,en]);const tn=I((()=>Z.promise.then((()=>function(n,e){const t=M((()=>n.play(!1)));return t.catch((n=>{V(0,n)})),t}(D.current)))),[Z]),rn=I((()=>{Z.promise.then((()=>{var n;return null===(n=D.current)||void 0===n?void 0:n.pause()}))}),[Z]),cn=I((()=>Z.promise.then((()=>D.current.requestFullscreen()))),[Z]),fn=I((()=>{x(!1),W(!0)}),[]);return j((()=>{var n;const e=null===(n=D.current)||void 0===n?void 0:n.readyState;null!=e&&Q(e>0?"complete":"loading")}),[Q]),j((()=>(c&&U&&F&&function(n,e,t,r){const{navigator:o}=n;"mediaSession"in o&&n.MediaMetadata&&(o.mediaSession.metadata=new n.MediaMetadata(on),o.mediaSession.metadata=new n.MediaMetadata(e),o.mediaSession.setActionHandler("play",t),o.mediaSession.setActionHandler("pause",r))}(window,F,tn,rn),()=>{})),[c,U,F,tn,rn]),S((()=>{k||rn()}),[k,rn]),R(e,(()=>({get readyState(){return _.current},play:tn,pause:rn,requestFullscreen:cn,get currentTime(){return D.current?D.current.currentTime:0},get duration(){return D.current?D.current.duration:NaN},get autoplay(){return a},get controls(){return i},get loop(){return s},userInteracted:fn,mute:()=>x(!0),unmute:()=>{J&&x(!1)}})),[tn,rn,cn,fn,J,a,i,s]),v(X,{contentRef:B,className:w,style:g,size:!0,layout:!0,paint:!0},$&&v(l,t(t({},N),{},{ref:D,loading:P,muted:z,loop:s,controls:i&&(!a||J),onCanPlay:()=>{Z.resolve(),Q("complete")},onLoadedMetadata:()=>{c&&Z.promise.then((()=>{var n,e;H((n=D.current,t({"title":(e=N).title||e["aria-label"]||document.title,"artist":e.artist||"","album":e.album||"","artwork":[{"src":e.artwork||e.poster||an(document)||ln(document)||un(document)||""}]},n&&n.getMetadata?n.getMetadata():Object.create(null))))})),Q("complete")},onPlaying:()=>en(!0),onPause:()=>en(!1),onEnded:()=>en(!1),onError:n=>{Q("error",n),Z.reject(n)},className:"fill-stretch-c645120",src:b,poster:m}),y),a&&!J&&v(sn,{metadata:F,playing:U,displayIcon:!f&&z,wrapperRef:B,play:tn,pause:rn,displayOverlay:i,onOverlayClick:fn}))}));fn.displayName="VideoWrapper";var dn=["loading","unloadOnPause","sandbox","muted","controls","origin","onCanPlay","onMessage","playerStateRef","makeMethodMessage","makeFullscreenMessage","onIframeLoad"],pn=["allow-scripts","allow-same-origin","allow-popups","allow-popups-to-escape-sandbox","allow-top-navigation-by-user-activation"].join(" ");function mn(n,e,t){n&&n.contentWindow&&e.then((()=>{n.contentWindow.postMessage(t(),"*")}))}var yn=$((function(n,e){let{loading:o,unloadOnPause:a=!1,sandbox:l=pn,muted:i=!1,controls:u=!1,origin:s,onCanPlay:c,onMessage:f,playerStateRef:d,makeMethodMessage:p,makeFullscreenMessage:m,onIframeLoad:y}=n,b=r(n,dn);const g=O(null),w=C((()=>new E),[]),h=O(p),S=I((n=>{mn(null==g?void 0:g.current,w.promise,(()=>h.current(n)))}),[w.promise]),N=O(m),k=I((()=>mn(null==g?void 0:g.current,w.promise,N.current)),[w.promise]);R(e,(()=>({get currentTime(){var n,e;return null!==(n=null==d||null===(e=d.current)||void 0===e?void 0:e.currentTime)&&void 0!==n?n:NaN},get duration(){var n,e;return null!==(n=null==d||null===(e=d.current)||void 0===e?void 0:e.duration)&&void 0!==n?n:NaN},requestFullscreen:()=>{if(!N.current)return w.promise.then((()=>{g.current.requestFullscreen()}));k()},play:()=>S("play"),pause:()=>{if(a){const n=g.current;n&&(n.src=n.src)}else S("pause")}})),[d,S,k,w.promise,a]);const P=function(n){const e=O(null);return e.current=n,e}(f);return j((()=>{if(!g.current)return;function n(n){P.current&&(s&&!s.test(n.origin)||n.source!=g.current.contentWindow||P.current({currentTarget:g.current,target:g.current,data:n.data}))}const{defaultView:e}=g.current.ownerDocument;return e.addEventListener("message",n),()=>e.removeEventListener("message",n)}),[s,P]),j((()=>{S(i?"mute":"unmute")}),[i,S]),j((()=>{S(u?"showControls":"hideControls")}),[u,S]),v("iframe",t(t({},b),{},{ref:g,allowfullscreen:!0,frameborder:"0",sandbox:l,loading:o,onCanPlay:()=>{c&&w.promise.then(c),w.resolve()},onLoad:n=>{null==y||y(n)}}))}));yn.displayName="VideoIframeInternal";var vn=$((function(n,e){return v(fn,t(t({ref:e},n),{},{component:yn}))}));function bn(n,e){return JSON.stringify({"command":n,"parameters":e})}vn.displayName="VideoIframe",new Set(["c","v","a","ad"]);var gn=["autoplay","endscreenEnable","info","mute","sharingEnable","start","uiHighlight","uiLogo","videoId"];function wn(n){switch(n){case"mute":return bn("muted",[!0]);case"unmute":return bn("muted",[!1]);case"showControls":return bn("controls",[!0]);case"hideControls":return bn("controls",[!1]);default:return bn(n)}}function hn({currentTarget:n,data:e}){const t=function(n){const e=s();if(!n)return e;let t;for(;t=d.exec(n);){const n=p(t[1],t[1]),r=t[2]?p(t[2].replace(/\+/g," "),t[2]):"";e[n]=r}return e}(e),r=null==t?void 0:t.event;"pause"===r?f(n,"pause"):"play"===r?f(n,"playing"):"end"===r?(f(n,"pause"),f(n,"end")):"apiready"===r&&f(n,"canplay")}function On(n,e){let{autoplay:a,endscreenEnable:l,info:i,mute:u,sharingEnable:s,start:c,uiHighlight:f,uiLogo:d,videoId:p}=n,m=r(n,gn);const y=C((()=>function(n,e,r=!1,a=!0,l=!0,i=!1,u=!0,s,c,f=!0,d){return function(n,e,t){if(!e)return n;const r=n.split("#",2),o=r[0].split("?",2);let a=o[0]+(o[1]?`?${o[1]}&${e}`:`?${e}`);return a+=r[1]?`#${r[1]}`:"",a}(`https://www.dailymotion.com/embed/video/${encodeURIComponent(e)}?api=1&html=1&app=amp`,function(n){const e=[];for(const l in n){let i=n[l];if(null!=i){i=o(a=i)?a:[a];for(let n=0;n<i.length;n++)e.push((t=l,r=i[n],`${encodeURIComponent(t)}=${encodeURIComponent(r)}`))}}var t,r,a;return e.join("&")}(t({"endscreen-enable":a?void 0:a,"info":l?void 0:l,"mute":i||r&&D(n)?1:void 0,"sharing-enable":u?void 0:u,"start":s,"ui-highlight":c,"ui-logo":f?void 0:f},d)))}(window,p,a,l,i,u,s,c,f,d)),[p,a,l,i,u,s,c,f,d]);return v(vn,t(t({autoplay:a,controls:!0,ref:e},m),{},{src:y,makeMethodMessage:wn,onMessage:hn}))}var Sn=P(On);Sn.displayName="BentoDailymotion";export{Sn as BentoDailymotion,On as BentoDailymotionWithRef};
function n(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function e(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function t(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))}))}return t}function r(n,e){if(null==n)return{};var t,r,o={},a=Object.keys(n);for(r=0;r<a.length;r++)t=a[r],e.indexOf(t)>=0||(o[t]=n[t]);return o}var{isArray:o}=Array;function a(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function l(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(t)return(t=t.call(n)).next.bind(t);if(Array.isArray(n)||(t=function(n,e){if(n){if("string"==typeof n)return a(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(n,e):void 0}}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var{hasOwnProperty:i,toString:u}=Object.prototype;function s(n){const e=Object.create(null);return n&&Object.assign(e,n),e}var c={bubbles:!0,cancelable:!0};function f(n,e,t,r){const o=t||{};n.ownerDocument;const a=n.ownerDocument.createEvent("Event");a.data=o;const{bubbles:l,cancelable:i}=r||c;a.initEvent(e,l,i),n.dispatchEvent(a)}var d=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function p(n,e=""){try{return decodeURIComponent(n)}catch(n){return e}}import{hydrate as m,render as y}from"react-dom";import{createElement as v,cloneElement as b,createRef as g,createContext as w}from"react";import{useState as h,useRef as S,useEffect as O,useLayoutEffect as j,useContext as N,useMemo as C,useCallback as I,useImperativeHandle as k}from"react";function P(n){return n.children}import{options as E,toChildArray as M}from"react";var R,$=["ref"],z="undefined"!=typeof Symbol&&(null===(R=Symbol.for)||void 0===R?void 0:R.call(Symbol,"react.forward_ref"))||3911,A=E.__b;E.__b=function(n){var e;null!==(e=n.type)&&void 0!==e&&e.v&&n.ref&&(n.props.ref=n.ref,n.ref=null),null==A||A(n)};var x=function(n){function e(e){const{ref:t}=e,o=r(e,$);return n(o,t)}return e.$$typeof=z,e.render=e,e.prototype.isReactComponent=!0,e.v=!0,e},L=class{constructor(){this.promise=new Promise(((n,e)=>{this.resolve=n,this.reject=e}))}};function T(n){return new Promise((e=>{e(n())}))}function U(n){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function q(n){var e=function(n,e){if("object"!==U(n)||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,"string");if("object"!==U(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(n);return"symbol"===U(e)?e:String(e)}var F,V=["auto","lazy","eager","unload"],H={auto:0,lazy:1,eager:2,unload:3};function J(n){const e=Object.getOwnPropertyDescriptor(n,"message");if(null!=e&&e.writable)return n;const{message:t,stack:r}=n,o=new Error(t);for(const e in n)o[e]=n[e];return o.stack=r,o}function W(n){let e=null,t="";for(var r,o=l(arguments,!0);!(r=o()).done;){const n=r.value;n instanceof Error&&!e?e=J(n):(t&&(t+=" "),t+=n)}return e?t&&(e.message=t+": "+e.message):e=new Error(t),e}function _(n){const e=W.apply(null,arguments);return e.expected=!0,e}function B(n,...e){var t,r,o;t=_.apply(null,e),null===(r=(o=self).__AMP_REPORT_ERROR)||void 0===r||r.call(o,t)}var D,Z=["Webkit","webkit","Moz","moz","ms","O","o"];function G(n,e,t,r,o){const a=function(n,e,t){if(K(e))return e;F||(F=s());let r=F[e];if(!r||t){if(r=e,void 0===n[e]){const t=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(e),o=function(n,e){for(let t=0;t<Z.length;t++){const r=Z[t]+e;if(void 0!==n[r])return r}return""}(n,t);void 0!==n[o]&&(r=o)}t||(F[e]=r)}return r}(n.style,e,o);if(!a)return;const l=r?t+r:t;K(a)?n.style.setProperty(a,l):n.style[a]=l}function K(n){return n.startsWith("--")}function Q(n){return null==n.__AMP_AUTOPLAY&&(n.__AMP_AUTOPLAY=function(n){const e=n.document.createElement("video");var t;return e.setAttribute("muted",""),e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("height","0"),e.setAttribute("width","0"),e.muted=!0,e.playsInline=!0,e.playsinline=!0,e.webkitPlaysinline=!0,function(n,e){for(const t in e)G(n,t,e[t])}(e,{position:"fixed",top:"0",width:"0",height:"0",opacity:"0"}),t=e,T((()=>t.play())).catch((()=>{})),Promise.resolve(!e.paused)}(n)),n.__AMP_AUTOPLAY}function X(){const n=D||(D=w({renderable:!0,playable:!0,loading:"auto"}));return N(n)}var Y=[null,"paint","layout","content","size","size paint","size layout","strict"],nn={"position":"relative","width":"100%","height":"100%"},en=x((function(n,e){let o="className",{as:a="div",children:l,contentAs:i="div",contentClassName:u,contentProps:s,contentRef:c,contentStyle:f,layout:d=!1,paint:p=!1,size:m=!1,"style":y,wrapperClassName:b,wrapperStyle:g,[o]:w}=n,h=r(n,["as","children","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle",o].map(q));const S=(m?4:0)+(d?2:0)+(p?1:0);return v(a,t(t({},h),{},{ref:e,className:`${w||""} ${b||""}`.trim()||null,style:t(t(t({},y),g),{},{contain:Y[S]})}),v(i,t(t({},s),{},{ref:c,className:u,style:t(t({},m&&nn),{},{"overflow":p?"hidden":"visible"},f)}),l))}));function tn(n){const e=S(null);return e.current=n,e}x((function(n,e){let o="className",{as:a="div",children:l,"style":i,wrapperClassName:u,wrapperStyle:s,[o]:c}=n,f=r(n,["as","children","style","wrapperClassName","wrapperStyle",o].map(q));return v(a,t(t({},f),{},{ref:e,className:`${c||""} ${u||""}`.trim()||null,style:t(t({},i),s)}),l)}));var rn=self.AMP_CONFIG||{},on=("string"==typeof rn.thirdPartyFrameRegex?new RegExp(rn.thirdPartyFrameRegex):rn.thirdPartyFrameRegex,("string"==typeof rn.cdnProxyRegex?new RegExp(rn.cdnProxyRegex):rn.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function an(n){if(!self.document||!self.document.head)return null;if(self.location&&on.test(self.location.origin))return null;const e=self.document.head.querySelector(`meta[name="${n}"]`);return e&&e.getAttribute("content")||null}rn.thirdPartyUrl,rn.thirdPartyFrameHost,rn.cdnUrl||an("runtime-host"),rn.errorReportingUrl,rn.betaErrorReportingUrl,rn.localDev,rn.geoApiUrl||an("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var ln={"title":"","artist":"","album":"","artwork":[{"src":""}]};function un(n){const e=n.querySelector('script[type="application/ld+json"]');if(!e)return;const t=function(n,e){try{return function(n){return JSON.parse(n)}(n)}catch(n){return null}}(e.textContent);return t&&t.image?"string"==typeof t.image?t.image:t.image["@list"]&&"string"==typeof t.image["@list"][0]?t.image["@list"][0]:"string"==typeof t.image.url?t.image.url:"string"==typeof t.image[0]?t.image[0]:void 0:void 0}function sn(n){const e=n.querySelector('meta[property="og:image"]');return e?e.getAttribute("content"):void 0}function cn(n){const e=n.querySelector('link[rel="shortcut icon"]')||n.querySelector('link[rel="icon"]');return e?e.getAttribute("href"):void 0}function fn({displayIcon:n,displayOverlay:e,metadata:t,onOverlayClick:r,pause:o,play:a,playing:l,wrapperRef:i}){const{playable:u}=X();return O((()=>{if(!u)return void o();const n=new IntersectionObserver((n=>{n[n.length-1].isIntersecting?a().catch((()=>{})):o()}),{threshold:.5});return n.observe(i.current),()=>{n.disconnect()}}),[i,a,o,u]),v(P,null,n&&v("div",{className:"eq-0be5b4b"+(l?" eq-playing-0be5b4b":"")},v(dn,null)),e&&v("button",{"aria-label":t&&t.title||"Unmute video",tabIndex:"0",className:"autoplay-mask-button-0be5b4b fill-content-overlay-c645120",onClick:r}))}var dn=function(n){let e=!1,t=null,r=()=>[1,2,3,4].map((n=>v("div",{className:"eq-col-0be5b4b",key:n})));return(...n)=>(e||(t=r.apply(self,n),e=!0,r=null),t)}(),pn=x((function(n,e){let o="className",{autoplay:a=!1,component:l="video",controls:i=!1,loading:u,loop:s=!1,mediasession:c=!0,noaudio:f=!1,onPlayingState:d,onReadyState:p,poster:m,sources:y,src:b,style:g,[o]:w}=n,N=r(n,["autoplay","component","controls","loading","loop","mediasession","noaudio","onPlayingState","onReadyState","poster","sources","src","style",o].map(q));!function(){const{notify:n}=X();j((()=>{n&&n()}))}();const{playable:P}=X(),E=function(n){const{loading:e}=X();return function(n,e){const t=H[null!=n?n:"auto"]||0,r=H[null!=e?e:"auto"]||0,o=Math.max(t,r);return V[o]}(n,e)}(u),M="unload"!==E,[R,$]=h(a),[z,A]=h(!1),[x,U]=h(null),[F,J]=h(!a),W=S(null),_=S(null),D=C((()=>new L),[]),Z=S("loading"),G=tn(p),K=I(((n,e)=>{if(n!==Z.current){Z.current=n;const t=G.current;t&&t(n,e)}}),[G]),Q=tn(d),Y=I((n=>{A(n);const e=Q.current;e&&e(n)}),[Q]);j((()=>{M||Y(!1)}),[M,Y]);const nn=I((()=>D.promise.then((()=>function(n,e){const t=T((()=>n.play(!1)));return t.catch((n=>{B(0,n)})),t}(_.current)))),[D]),rn=I((()=>{D.promise.then((()=>{var n;return null===(n=_.current)||void 0===n?void 0:n.pause()}))}),[D]),on=I((()=>D.promise.then((()=>_.current.requestFullscreen()))),[D]),an=I((()=>{$(!1),J(!0)}),[]);return j((()=>{var n;const e=null===(n=_.current)||void 0===n?void 0:n.readyState;null!=e&&K(e>0?"complete":"loading")}),[K]),j((()=>(c&&z&&x&&function(n,e,t,r){const{navigator:o}=n;"mediaSession"in o&&n.MediaMetadata&&(o.mediaSession.metadata=new n.MediaMetadata(ln),o.mediaSession.metadata=new n.MediaMetadata(e),o.mediaSession.setActionHandler("play",t),o.mediaSession.setActionHandler("pause",r))}(window,x,nn,rn),()=>{})),[c,z,x,nn,rn]),O((()=>{P||rn()}),[P,rn]),k(e,(()=>({get readyState(){return Z.current},play:nn,pause:rn,requestFullscreen:on,get currentTime(){return _.current?_.current.currentTime:0},get duration(){return _.current?_.current.duration:NaN},get autoplay(){return a},get controls(){return i},get loop(){return s},userInteracted:an,mute:()=>$(!0),unmute:()=>{F&&$(!1)}})),[nn,rn,on,an,F,a,i,s]),v(en,{contentRef:W,className:w,style:g,size:!0,layout:!0,paint:!0},M&&v(l,t(t({},N),{},{ref:_,loading:E,muted:R,loop:s,controls:i&&(!a||F),onCanPlay:()=>{D.resolve(),K("complete")},onLoadedMetadata:()=>{c&&D.promise.then((()=>{var n,e;U((n=_.current,t({"title":(e=N).title||e["aria-label"]||document.title,"artist":e.artist||"","album":e.album||"","artwork":[{"src":e.artwork||e.poster||un(document)||sn(document)||cn(document)||""}]},n&&n.getMetadata?n.getMetadata():Object.create(null))))})),K("complete")},onPlaying:()=>Y(!0),onPause:()=>Y(!1),onEnded:()=>Y(!1),onError:n=>{K("error",n),D.reject(n)},className:"fill-stretch-c645120",src:b,poster:m}),y),a&&!F&&v(fn,{metadata:x,playing:z,displayIcon:!f&&R,wrapperRef:W,play:nn,pause:rn,displayOverlay:i,onOverlayClick:an}))}));pn.displayName="VideoWrapper";var mn=["loading","unloadOnPause","sandbox","muted","controls","origin","onCanPlay","onMessage","playerStateRef","makeMethodMessage","makeFullscreenMessage","onIframeLoad"],yn=["allow-scripts","allow-same-origin","allow-popups","allow-popups-to-escape-sandbox","allow-top-navigation-by-user-activation"].join(" ");function vn(n,e,t){n&&n.contentWindow&&e.then((()=>{n.contentWindow.postMessage(t(),"*")}))}var bn=x((function(n,e){let{loading:o,unloadOnPause:a=!1,sandbox:l=yn,muted:i=!1,controls:u=!1,origin:s,onCanPlay:c,onMessage:f,playerStateRef:d,makeMethodMessage:p,makeFullscreenMessage:m,onIframeLoad:y}=n,b=r(n,mn);const g=S(null),w=C((()=>new L),[]),h=S(p),O=I((n=>{vn(null==g?void 0:g.current,w.promise,(()=>h.current(n)))}),[w.promise]),N=S(m),P=I((()=>vn(null==g?void 0:g.current,w.promise,N.current)),[w.promise]);k(e,(()=>({get currentTime(){var n,e;return null!==(n=null==d||null===(e=d.current)||void 0===e?void 0:e.currentTime)&&void 0!==n?n:NaN},get duration(){var n,e;return null!==(n=null==d||null===(e=d.current)||void 0===e?void 0:e.duration)&&void 0!==n?n:NaN},requestFullscreen:()=>{if(!N.current)return w.promise.then((()=>{g.current.requestFullscreen()}));P()},play:()=>O("play"),pause:()=>{if(a){const n=g.current;n&&(n.src=n.src)}else O("pause")}})),[d,O,P,w.promise,a]);const E=function(n){const e=S(null);return e.current=n,e}(f);return j((()=>{if(!g.current)return;function n(n){E.current&&(s&&!s.test(n.origin)||n.source!=g.current.contentWindow||E.current({currentTarget:g.current,target:g.current,data:n.data}))}const{defaultView:e}=g.current.ownerDocument;return e.addEventListener("message",n),()=>e.removeEventListener("message",n)}),[s,E]),j((()=>{O(i?"mute":"unmute")}),[i,O]),j((()=>{O(u?"showControls":"hideControls")}),[u,O]),v("iframe",t(t({},b),{},{ref:g,allowfullscreen:!0,frameborder:"0",sandbox:l,loading:o,onCanPlay:()=>{c&&w.promise.then(c),w.resolve()},onLoad:n=>{null==y||y(n)}}))}));bn.displayName="VideoIframeInternal";var gn=x((function(n,e){return v(pn,t(t({ref:e},n),{},{component:bn}))}));function wn(n,e){return JSON.stringify({"command":n,"parameters":e})}gn.displayName="VideoIframe",new Set(["c","v","a","ad"]);var hn=["autoplay","endscreenEnable","info","mute","sharingEnable","start","uiHighlight","uiLogo","videoId"];function Sn(n){switch(n){case"mute":return wn("muted",[!0]);case"unmute":return wn("muted",[!1]);case"showControls":return wn("controls",[!0]);case"hideControls":return wn("controls",[!1]);default:return wn(n)}}function On({currentTarget:n,data:e}){const t=function(n){const e=s();if(!n)return e;let t;for(;t=d.exec(n);){const n=p(t[1],t[1]),r=t[2]?p(t[2].replace(/\+/g," "),t[2]):"";e[n]=r}return e}(e),r=null==t?void 0:t.event;"pause"===r?f(n,"pause"):"play"===r?f(n,"playing"):"end"===r?(f(n,"pause"),f(n,"end")):"apiready"===r&&f(n,"canplay")}function jn(n,e){let{autoplay:a,endscreenEnable:l,info:i,mute:u,sharingEnable:s,start:c,uiHighlight:f,uiLogo:d,videoId:p}=n,m=r(n,hn);const y=C((()=>function(n,e,r=!1,a=!0,l=!0,i=!1,u=!0,s,c,f=!0,d){return function(n,e,t){if(!e)return n;const r=n.split("#",2),o=r[0].split("?",2);let a=o[0]+(o[1]?`?${o[1]}&${e}`:`?${e}`);return a+=r[1]?`#${r[1]}`:"",a}(`https://www.dailymotion.com/embed/video/${encodeURIComponent(e)}?api=1&html=1&app=amp`,function(n){const e=[];for(const l in n){let i=n[l];if(null!=i){i=o(a=i)?a:[a];for(let n=0;n<i.length;n++)e.push((t=l,r=i[n],`${encodeURIComponent(t)}=${encodeURIComponent(r)}`))}}var t,r,a;return e.join("&")}(t({"endscreen-enable":a?void 0:a,"info":l?void 0:l,"mute":i||r&&Q(n)?1:void 0,"sharing-enable":u?void 0:u,"start":s,"ui-highlight":c,"ui-logo":f?void 0:f},d)))}(window,p,a,l,i,u,s,c,f,d)),[p,a,l,i,u,s,c,f,d]);return v(gn,t(t({autoplay:a,controls:!0,ref:e},m),{},{src:y,makeMethodMessage:Sn,onMessage:On}))}var Nn=x(jn);Nn.displayName="BentoDailymotion";export{Nn as BentoDailymotion,jn as BentoDailymotionWithRef};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
{
"name": "@bentoproject/dailymotion",
"version": "1.2202072236.0",
"version": "1.2202082004.0",
"description": "Bento dailymotion Component",

@@ -25,3 +25,4 @@ "author": "Bento Authors",

"require": "./dist/component-react.js"
}
},
"./web-component.css": "./dist/web-component.css"
},

@@ -28,0 +29,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc