"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6066],{91949:function(n,s,e){e.r(s);var i,t,r,o,a,d,c=e(47005),l=e(53218),h=e(83094),u=e(47518);function g(){this.classList.add("hide")}function m(){d&&(clearTimeout(d),d=null)}function b(){m();var n=t;n&&(a?(n.offsetWidth,requestAnimationFrame((function(){n.classList.add("iconOsd-hidden"),h.ZP.addEventListener(n,h.ZP.whichTransitionEvent(),g,{once:!0})}))):g.call(n))}function f(){var n,s;(n=t)||(a=u.Z.supportsCssAnimation(),(n=document.createElement("div")).classList.add("hide"),n.classList.add("iconOsd"),n.classList.add("iconOsd-hidden"),n.classList.add("brightnessOsd"),n.innerHTML='<span class="material-icons iconOsdIcon brightness_high" aria-hidden="true"></span><div class="iconOsdProgressOuter"><div class="iconOsdProgressInner brightnessOsdProgressInner"></div></div>',r=n.querySelector(".material-icons"),o=n.querySelector(".iconOsdProgressInner"),document.body.appendChild(n),t=n),s=l.O.getBrightness(this),r&&function(n,s){n.classList.remove("brightness_high","brightness_medium","brightness_low"),n.classList.add(s)}(r,s>=80?"brightness_high":s>=20?"brightness_medium":"brightness_low"),o&&(o.style.width=(s||0)+"%"),function(){m();var n=t;h.ZP.removeEventListener(n,h.ZP.whichTransitionEvent(),g,{once:!0}),n.classList.remove("hide"),n.offsetWidth,requestAnimationFrame((function(){n.classList.remove("iconOsd-hidden"),d=setTimeout(b,3e3)}))}()}function p(n){n!==i&&(function(){var n=i;n&&(c.Events.off(n,"brightnesschange",f),c.Events.off(n,"playbackstop",b),i=null)}(),i=n,n&&(b(),c.Events.on(n,"brightnesschange",f),c.Events.on(n,"playbackstop",b)))}e(36079),e(85427),c.Events.on(l.O,"playerchange",(function(){p(l.O.getCurrentPlayer())})),p(l.O.getCurrentPlayer())},9668:function(n,s,e){var i=e(54933),t=e.n(i),r=e(93476),o=e.n(r)()(t());o.push([n.id,".iconOsd{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#222;background:rgba(0,0,0,.8);border-radius:.25em;color:#fff;padding:1em;position:fixed;right:3%;top:7%;transition:opacity .2s ease-out;z-index:100000}.iconOsd-hidden{opacity:0}.iconOsdIcon{display:block;font-size:320%;margin:.25em .7em}.iconOsdProgressOuter{background:#222;border-radius:.25em;height:.35em;margin:1.5em .25em 1em}.iconOsdProgressInner{background:#00a4dc;border-radius:.25em;height:100%}.brightnessOsdProgressInner{background:#ff9800}",""]),s.Z=o},36079:function(n,s,e){var i=e(1892),t=e.n(i),r=e(95760),o=e.n(r),a=e(38311),d=e.n(a),c=e(58192),l=e.n(c),h=e(38060),u=e.n(h),g=e(54865),m=e.n(g),b=e(9668),f={};f.styleTagTransform=m(),f.setAttributes=l(),f.insert=d().bind(null,"head"),f.domAPI=o(),f.insertStyleElement=u(),t()(b.Z,f),b.Z&&b.Z.locals&&b.Z.locals}}]);